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
listlengths
768
768
http://arxiv.org/abs/2405.18400v3
http://arxiv.org/pdf/2405.18400v3
Superposed Decoding: Multiple Generations from a Single Autoregressive Inference Pass
2024-05-28T17:40:48
2024-06-25T01:49:45
Ethan Shen, Alan Fan, Sarah M. Pratt, Jae Sung Park, Matthew Wallingford, Sham M. Kakade, Ari Holtzman, Ranjay Krishna, Ali Farhadi, Aditya Kusupati
cs.CL
cs.CL, cs.LG
Many applications today provide users with multiple auto-complete drafts as they type, including GitHub's code completion, Gmail's smart compose, and Apple's messaging auto-suggestions. Under the hood, language models support this by running an autoregressive inference pass to provide a draft. Consequently, providing $k$ drafts to the user requires running an expensive language model $k$ times. To alleviate the computation cost of running $k$ inference passes, we propose Superposed Decoding, a new decoding algorithm that generates $k$ drafts at the computation cost of one autoregressive inference pass. We achieve this by feeding a superposition of the most recent token embeddings from the $k$ drafts as input to the next decoding step of the language model. At every inference step we combine the $k$ drafts with the top-$k$ tokens to get $k^2$ new drafts and cache the $k$ most likely options, using an n-gram interpolation with minimal compute overhead to filter out incoherent generations. Our experiments show that $k$ drafts from Superposed Decoding are at least as coherent and factual as Nucleus Sampling and Greedy Decoding respectively, while being at least $2.44\times$ faster for $k\ge3$. In a compute-normalized setting, user evaluations demonstrably favor text generated by Superposed Decoding over Nucleus Sampling. Code and more examples open-sourced at https://github.com/RAIVNLab/SuperposedDecoding.
[ -0.3068540394306183, -0.39397841691970825, 0.33430182933807373, 0.4826902151107788, -0.2758534252643585, 0.3331882059574127, 0.2773614525794983, -0.5943418145179749, 0.220425084233284, 0.7543084025382996, -0.6757050156593323, 0.001292853499762714, -0.5551813840866089, 0.2726329565048218, -0.4925234615802765, 0.6376433968544006, 0.28944534063339233, 0.01928374357521534, -0.18405859172344208, 0.12097832560539246, -0.07399694621562958, -0.6520674228668213, -0.284496009349823, -0.49740830063819885, 0.013296502642333508, 0.5322021842002869, 0.713238537311554, 0.7103983759880066, 0.024410543963313103, 0.2510279417037964, -0.08126796782016754, 0.11521551758050919, -0.4136265218257904, 0.2974959909915924, 0.15303298830986023, -0.42996644973754883, -0.019832151010632515, 0.14644496142864227, 0.5728046894073486, 0.39799946546554565, -0.07922527194023132, -0.019051311537623405, -0.08686710894107819, 0.7506219148635864, -0.8975198864936829, 0.08627666532993317, -0.7083351016044617, -0.014767576940357685, 0.053690459579229355, -0.5733543634414673, -0.7873244285583496, -0.4400368928909302, -0.05613086000084877, -0.5977492928504944, 0.32383477687835693, -0.22761675715446472, 0.556257426738739, 0.024487722665071487, -0.2968221604824066, -0.40407848358154297, -0.6701893210411072, 0.7097272872924805, -0.6421180963516235, 0.4417794644832611, 0.3939971625804901, 0.06795603781938553, -0.2338651418685913, -0.8266310691833496, -0.8080031275749207, -0.20502471923828125, -0.09912964701652527, 0.2811708152294159, -0.16063371300697327, -0.048013027757406235, 0.17236752808094025, 0.4932171106338501, -0.4133913815021515, -0.22574251890182495, -0.06559368968009949, -0.32467150688171387, 0.43330392241477966, -0.010249079205095768, 0.2156505137681961, -0.20835727453231812, -0.41643980145454407, -0.34296295046806335, -0.45257604122161865, -0.5003260970115662, 0.5119275450706482, 0.03351052105426788, 0.1523897796869278, 0.24368159472942352, -0.5797744989395142, 0.7099844217300415, 0.313119113445282, 0.2687797248363495, 0.3916197121143341, -0.6591199040412903, -0.1900804191827774, -0.07614519447088242, 0.410261869430542, 0.3586389124393463, 0.1161770224571228, -0.16243594884872437, 0.0901016816496849, 0.09606580436229706, 0.13083331286907196, -0.6641579866409302, -0.44660717248916626, 0.1439613401889801, -0.5085017681121826, -0.10305269062519073, -0.2191270887851715, -0.7590100765228271, -0.3330332934856415, -0.23506207764148712, 0.26584863662719727, -0.7065004110336304, -0.16589872539043427, 0.3273095488548279, -0.3263776898384094, 0.26904913783073425, 0.17438682913780212, -1.2410928010940552, 0.12872593104839325, 0.514045774936676, 0.5394871234893799, 0.5532404780387878, -0.5623106360435486, -0.39843589067459106, 0.08066105842590332, -0.12306467443704605, 1.25228750705719, -0.7752876877784729, -0.5197697877883911, -0.1651792675256729, -0.3787211775779724, -0.19826512038707733, -0.49150577187538147, 0.43115296959877014, -0.8593007326126099, -0.004668699111789465, -0.22363361716270447, -0.7921651005744934, -0.05814090743660927, -0.17242223024368286, -0.764837920665741, 1.0367348194122314, 0.14070077240467072, -0.7268704771995544, 0.6535927057266235, -0.11404313892126083, -0.4466829299926758, 0.40390393137931824, -0.00007732983067398891, -0.2734625041484833, 0.07584282010793686, 0.5275793075561523, 0.3750980794429779, -0.09702999144792557, -0.24155285954475403, -0.09457537531852722, -0.2935163974761963, 0.015091457404196262, -0.4656755328178406, 1.0169767141342163, 0.4037528932094574, -0.35643434524536133, -0.1910337209701538, -0.9538664817810059, 0.24162428081035614, -0.000750300707295537, -0.5817030668258667, -0.2732263207435608, -0.1187252402305603, 0.10474809259176254, 0.07081194221973419, 0.036328140646219254, -0.5882622003555298, 0.4598207175731659, -0.37022995948791504, 0.6623821258544922, 0.44329366087913513, 0.09961193799972534, 0.7111550569534302, -0.3286381959915161, 0.44270938634872437, -0.08467186242341995, 0.4031478762626648, -0.6313078999519348, -0.2536424994468689, -0.43170836567878723, -0.26752614974975586, 0.42499375343322754, 0.42526954412460327, -0.9091126918792725, 0.28202012181282043, -0.062252338975667953, -0.4148242175579071, -0.5564667582511902, 0.055587515234947205, 0.48376113176345825, 0.07942850142717361, 0.5055066347122192, 0.022635649889707565, -0.803080141544342, -0.8776562809944153, -0.3375161588191986, -0.28580960631370544, 0.3261204957962036, 0.08061777055263519, 0.3439820408821106, -0.12019164860248566, 0.5947714447975159, -0.37625420093536377, 0.1515498161315918, -0.3347417414188385, 0.4232132136821747, -0.14267870783805847, 0.6872426271438599, 0.3942156732082367, -0.8727155923843384, -0.5097471475601196, -0.33725178241729736, -0.3642067611217499, -0.11396587640047073, -0.5061374306678772, -0.41371825337409973, 0.29183098673820496, 0.9436152577400208, -0.558330774307251, 0.21050848066806793, 0.6968636512756348, -0.47724801301956177, 0.8066790103912354, -0.40677616000175476, 0.13244403898715973, -0.8884854316711426, -0.21600905060768127, -0.48890361189842224, -0.06890822947025299, -0.5799033641815186, 0.5251815319061279, 0.3666894733905792, 0.40394267439842224, -0.3970697820186615, 0.253976047039032, -0.9087972640991211, 0.035095199942588806, -0.12604182958602905, -0.3413447439670563, 0.1166694387793541, 0.1833481788635254, -0.2160041779279709, 0.7767640948295593, 0.40419724583625793, -0.3393813371658325, 0.1360059231519699, 0.08058279752731323, -0.3576381206512451, 0.20291653275489807, -0.3034071922302246, 0.37853536009788513, -0.3840978443622589, 0.8678275942802429, -1.002835988998413, -0.22217479348182678, 0.06517287343740463, -0.5090637803077698, 0.12967103719711304, -0.26821884512901306, -0.6925399899482727, -0.40474745631217957, -0.3074754774570465, 0.6078503727912903, 0.26465511322021484, -0.5568516254425049, 0.8883581161499023, 0.3070845901966095, 0.11337694525718689, -0.5550499558448792, -0.8884586095809937, 0.3131147027015686, 0.3237334191799164, -0.29793643951416016, 0.3126913011074066, -0.1494576632976532, 0.38494518399238586, 0.19614467024803162, 0.04754094034433365, 0.2595682740211487, -0.08746559172868729, 0.03821530565619469, 0.2626909613609314, 0.029313530772924423, -0.27414149045944214, 0.09758782386779785, -0.49339741468429565, -0.329897403717041, -0.7150945663452148, 0.7751845717430115, 0.16151341795921326, -0.28718966245651245, -0.49001988768577576, 0.8204882144927979, 0.9290953278541565, -0.1727030873298645, 0.7244870662689209, 0.3055102825164795, -0.28964436054229736, -0.28925251960754395, -0.862233579158783, -0.05470013990998268, -0.4202929139137268, 0.03644637018442154, -0.6146300435066223, -0.8079220056533813, 0.6940226554870605, 0.31455904245376587, 0.2638069987297058, 0.4871934950351715, 0.5407341718673706, 0.21561245620250702, 1.2448573112487793, 0.33341383934020996, -0.13364721834659576, 0.6066946387290955, -0.4425964057445526, -0.057448435574769974, -0.6688427329063416, -0.335728257894516, -0.5400113463401794, -0.1533440500497818, -0.30813467502593994, -0.41323602199554443, -0.013465848751366138, 0.2526856064796448, 0.12912635505199432, 0.45200684666633606, -0.5370839238166809, 0.8080492615699768, 1.160086989402771, 0.12228205054998398, 0.46479296684265137, 0.15015272796154022, -0.37037894129753113, 0.3164260983467102, -1.0256259441375732, -0.2475801408290863, 1.1208701133728027, -0.02908688597381115, 0.7108756899833679, -0.17904654145240784, 0.9230300188064575, 0.24136961996555328, 0.39652255177497864, -0.48461079597473145, 0.5995179414749146, -0.4755212962627411, -0.6683996915817261, -0.10089915990829468, -0.546150267124176, -0.783378005027771, 0.32969173789024353, -0.2713061273097992, -0.6386973857879639, 0.45364704728126526, 0.419969767332077, -0.5813255906105042, 0.18628279864788055, -0.9890738129615784, 0.4908432364463806, 0.3632145822048187, -0.09060972929000854, -0.39927294850349426, -0.6284751296043396, 0.31780532002449036, 0.23119182884693146, 0.052090901881456375, 0.10274861752986908, 0.3328346312046051, 0.40839946269989014, -0.31172892451286316, 0.5610426068305969, -0.19138886034488678, 0.05508648231625557, 0.3897285759449005, 0.1856076866388321, 0.6771208047866821, -0.056760918349027634, -0.1444372981786728, -0.20912890136241913, 0.11393722146749496, -0.5494518280029297, -0.5550805926322937, 0.7400385737419128, -0.6204859614372253, -0.2600264847278595, -0.24890965223312378, -0.41973868012428284, -0.04791916534304619, 0.2513584792613983, 0.7467770576477051, 0.7191310524940491, 0.16104260087013245, 0.10992934554815292, 0.35136738419532776, -0.08347425609827042, 0.40739020705223083, 0.37132933735847473, -0.10689388960599899, -0.6213861703872681, 0.8698979616165161, 0.37736257910728455, 0.5569479465484619, 0.5210773348808289, 0.03134296461939812, -0.5210350155830383, -0.6488386392593384, -0.7601288557052612, 0.179381862282753, -0.7096285820007324, -0.1920197755098343, -1.0003268718719482, -0.22895947098731995, -0.6092087030410767, -0.3059859871864319, -0.3429112434387207, -0.4279545247554779, -0.19849084317684174, -0.1322135478258133, 0.02850152738392353, 0.4426393508911133, -0.3804077208042145, 0.31217485666275024, -0.9766964912414551, 0.6139850616455078, 0.5410779714584351, 0.2972134053707123, 0.3036889135837555, -0.2661285102367401, -0.2789091467857361, -0.07799431681632996, -0.07480467110872269, -0.7920372486114502, 0.05382257327437401, 0.1765134483575821, 0.7452126145362854, 0.17688575387001038, 0.07023413479328156, 0.7461434006690979, -0.3972524106502533, 0.6428450345993042, 0.12206989526748657, -1.0487021207809448, 0.13289138674736023, -0.036171913146972656, 0.716988205909729, 0.9866660833358765, 0.05289657786488533, -0.44538062810897827, -0.7136222720146179, -0.8044112920761108, -1.0668262243270874, 0.8911445736885071, 0.31129443645477295, 0.32432857155799866, -0.26535937190055847, 0.2957531809806824, 0.26425665616989136, -0.24080727994441986, -0.3948826491832733, -0.43567711114883423, -0.32342028617858887, -0.06514564901590347, -0.0071539548225700855, -0.7572546005249023, 0.26332908868789673, -0.2378329187631607, 0.6967025995254517, 0.020659571513533592, 0.4509274363517761, 0.41644665598869324, -0.23707742989063263, 0.00009522629989078268, 0.27529311180114746, 0.5435589551925659, 0.29324862360954285, -0.039283208549022675, 0.5733780264854431, -0.10876995325088501, -0.6861648559570312, 0.1953267902135849, 0.26702508330345154, -0.4684848487377167, 0.0007778940489515662, 0.5234521627426147, 0.6604036092758179, 0.14768759906291962, -0.36124342679977417, 0.17217981815338135, -0.13347075879573822, -0.7042567133903503, 0.11911150068044662, 0.019922446459531784, 0.17064522206783295, 0.35610759258270264, 0.7017166018486023, 0.20020903646945953, 0.28233614563941956, -0.5935450792312622, 0.4716443419456482, 0.29565873742103577, 0.07826332747936249, -0.20535175502300262, 0.7727949023246765, 0.06276793032884598, -0.15241196751594543, 0.704449474811554, -0.44310471415519714, -0.7471369504928589, 0.501343846321106, 0.7360389232635498, 0.9961305856704712, -0.17828698456287384, 0.3881688714027405, 0.27310019731521606, 0.19872818887233734, -0.42926353216171265, 0.6272609233856201, -0.32497933506965637, -0.8039336204528809, -0.7090476751327515, -0.7638931274414062, -0.2673533856868744, 0.08521199971437454, -0.5043342113494873, -0.3308992087841034, -0.34190523624420166, -0.12874427437782288, 0.2875831425189972, -0.29162946343421936, -0.42962339520454407, 0.09847667068243027, 0.32277268171310425, 1.119376540184021, -0.9061392545700073, 0.6235888600349426, 0.6408289670944214, -0.05412990599870682, -0.8021488189697266, 0.2785891592502594, -0.1175253838300705, -0.6987773180007935, 0.43313607573509216, 0.08413906395435333, -0.5085078477859497, 0.5173698663711548, -0.4030650854110718, -0.9170860052108765, 0.5390820503234863, 0.5114253163337708, -0.24431206285953522, 0.06225623935461044, -0.22595950961112976, 0.30496689677238464, -0.26806262135505676, 0.46069520711898804, 0.813111424446106, 0.38959887623786926, 0.23400557041168213, -0.5321930050849915, 0.04845768213272095, -0.4589628577232361, -0.005947632249444723, 0.20035570859909058, -0.7487398386001587, 0.6971316933631897, -0.12562106549739838, -0.5885000824928284, 0.02574988640844822, 0.6608496308326721, 0.28930196166038513, 0.12829534709453583, 0.586743950843811, 0.6612520217895508, 0.4170152544975281, 0.33384114503860474, 0.9913830161094666, -0.583087146282196, 0.35773327946662903, 1.0466015338897705, 0.08729524910449982, 0.7250196933746338, 0.4879723787307739, -0.2651613652706146, 0.5596264600753784, 0.30562734603881836, 0.28820696473121643, 0.6286603808403015, -0.009157134220004082, -0.3161686062812805, -0.34021249413490295, 0.21957403421401978, -0.35431262850761414, 0.30078935623168945, 0.2940462827682495, -0.3140641450881958, -0.3326197564601898, 0.08697069436311722, -0.0351870134472847, -0.05247483402490616, -0.015368527732789516, 0.6704802513122559, -0.19429035484790802, -0.8505114912986755, 0.6806420683860779, -0.10444281250238419, 0.5390666127204895, -0.3832252025604248, -0.028539197519421577, -0.3940531015396118, 0.06052568554878235, -0.29392701387405396, -0.7007136940956116, 0.17691649496555328, -0.23938089609146118, -0.3615390360355377, -0.6657165288925171, 0.5994407534599304, -0.30941906571388245, -0.5797297954559326, 0.38770899176597595, 0.2821163833141327, -0.00004055445242556743, -0.07222651690244675, -0.576937735080719, 0.08276910334825516, 0.14828121662139893, -0.5594984889030457, 0.024277539923787117, 0.32845640182495117, 0.1613914668560028, 0.590990424156189, 0.899626612663269, 0.12717173993587494, 0.5004894137382507, 0.4574531614780426, 0.872577965259552, -0.5689316987991333, -0.9473059773445129, -0.9837232828140259, 0.22164222598075867, 0.01694660075008869, -0.40674662590026855, 0.7764304876327515, 0.611054003238678, 0.9351694583892822, -0.08938528597354889, 0.9032134413719177, -0.0940207988023758, 0.3166225552558899, -0.7278336882591248, 0.43709471821784973, -0.3411962389945984, 0.15709331631660461, -0.24651144444942474, -0.7722545266151428, -0.4314013123512268, 0.4316413998603821, -0.19245487451553345, -0.020171649754047394, 0.5585725903511047, 0.735819399356842, 0.035708487033843994, 0.32376357913017273, 0.09344244748353958, 0.08425667881965637, 0.05091605708003044, 0.6205431818962097, 1.0561739206314087, -0.4069652259349823, 0.5943326354026794, -0.3473980724811554, -0.36135613918304443, -0.5383893847465515, -0.7739204168319702, -0.27992957830429077, -0.5380922555923462, -0.11312892287969589, -0.3090946078300476, 0.007791484706103802, 0.751020073890686, 0.9123693108558655, -0.7364665865898132, 0.13788706064224243, -0.5852726697921753, -0.03615962713956833, -0.587622344493866, -0.25521647930145264, 0.23631729185581207, -0.32754307985305786, -0.6721996665000916, 0.41013672947883606, 0.3266764283180237, 0.08303454518318176, -0.21570712327957153, 0.11189977079629898, -0.41631588339805603, 0.2990749478340149, 0.604651689529419, 0.30813995003700256, -0.34338006377220154, -0.2681020498275757, 0.028797194361686707, -0.2724910080432892, -0.008357619866728783, 1.2350842952728271, -0.9320971369743347, 0.6232964396476746, 0.8371559977531433, 0.615845799446106, 0.7429225444793701, 0.19075319170951843, 0.40974128246307373, -0.3126094341278076, -0.06781500577926636, 0.15030616521835327, 0.07851182669401169, 0.10598543286323547, -0.6024971604347229, 0.05916489288210869, 0.4125330150127411, -0.5667951107025146, -0.645313560962677, 0.4030095636844635, -0.574256181716919, -0.6333558559417725, 0.9780279397964478, 0.15700583159923553, -0.03410261124372482, -0.45982804894447327, -0.2210707813501358, 0.2571941018104553, -0.4437595307826996, 0.7504398822784424, 0.7577012181282043, -0.3764060139656067, -0.1817420870065689, -0.5030521750450134, 0.434757798910141, 0.6911749839782715, -0.3792724609375, 0.4517081677913666, 0.5501015186309814, -0.08294355869293213, 0.09901107102632523, 1.04860258102417, -0.16018825769424438, 0.3034476339817047, 0.6219300031661987, -0.0922943502664566, -0.11336413025856018, -0.4170844554901123, -0.3305860459804535, 0.4259757101535797, -0.3211541473865509, -0.2921912670135498 ]
http://arxiv.org/abs/2406.00049v1
http://arxiv.org/pdf/2406.00049v1
QUEST: Quality-Aware Metropolis-Hastings Sampling for Machine Translation
2024-05-28T17:36:06
2024-05-28T17:36:06
Gonçalo R. A. Faria, Sweta Agrawal, António Farinhas, Ricardo Rei, José G. C. de Souza, André F. T. Martins
cs.CL
cs.CL, cs.LG
An important challenge in machine translation (MT) is to generate high-quality and diverse translations. Prior work has shown that the estimated likelihood from the MT model correlates poorly with translation quality. In contrast, quality evaluation metrics (such as COMET or BLEURT) exhibit high correlations with human judgments, which has motivated their use as rerankers (such as quality-aware and minimum Bayes risk decoding). However, relying on a single translation with high estimated quality increases the chances of "gaming the metric''. In this paper, we address the problem of sampling a set of high-quality and diverse translations. We provide a simple and effective way to avoid over-reliance on noisy quality estimates by using them as the energy function of a Gibbs distribution. Instead of looking for a mode in the distribution, we generate multiple samples from high-density areas through the Metropolis-Hastings algorithm, a simple Markov chain Monte Carlo approach. The results show that our proposed method leads to high-quality and diverse outputs across multiple language pairs (English$\leftrightarrow${German, Russian}) with two strong decoder-only LLMs (Alma-7b, Tower-7b).
[ -0.22228078544139862, 0.04891514405608177, 0.6126969456672668, 0.2426692396402359, -0.39974623918533325, 0.1918153613805771, -0.07387425750494003, -0.025488000363111496, 0.4469022750854492, 0.5479947328567505, -0.4835313856601715, -0.7326453924179077, -0.7398526072502136, -0.055253271013498306, -0.3248772919178009, 0.8814362287521362, -0.18599684536457062, 0.24393774569034576, 0.1215163916349411, 0.007081255316734314, -0.004977728705853224, -0.43219566345214844, -0.37762871384620667, 0.03802003338932991, 0.7193169593811035, 0.247538760304451, 0.8306683301925659, 0.5073716044425964, 0.6700310111045837, 0.16270111501216888, 0.07626408338546753, 0.5230333805084229, -0.6364777088165283, 0.43222710490226746, -0.2803017795085907, -0.5060913562774658, -0.2955263555049896, -0.034849829971790314, 0.8764600157737732, 0.6288688778877258, -0.1709360033273697, 0.21091197431087494, 0.14232660830020905, 0.6965306401252747, -0.8580078482627869, -0.1757431924343109, -0.7911790013313293, 0.15457496047019958, -0.3582056164741516, -0.2915317714214325, -0.3868325650691986, -0.29412877559661865, -0.441294401884079, -0.5278138518333435, 0.47207170724868774, 0.10251998156309128, 0.8901042342185974, 0.2790387272834778, -0.46573856472969055, 0.11835676431655884, -0.585688591003418, 1.0111289024353027, -0.5961769819259644, 0.27193811535835266, 0.5442716479301453, 0.615003228187561, -0.4292975664138794, -0.3781620264053345, -0.5735454559326172, 0.17593878507614136, 0.3006381392478943, 0.5333964824676514, -0.05049128830432892, -0.1321161985397339, -0.022611698135733604, 0.3710855543613434, -0.41288942098617554, 0.06975194066762924, -0.3761615455150604, -0.23911267518997192, 0.642324686050415, 0.3171575367450714, 0.2220211923122406, -0.24389764666557312, -0.08892154693603516, -0.4641951024532318, -0.4364728629589081, 0.1450144648551941, 0.4577314257621765, 0.34823718667030334, 0.031495168805122375, 0.6046460270881653, -0.19733202457427979, 0.453319251537323, -0.2971923053264618, -0.06228667497634888, 0.46213382482528687, -0.2306738793849945, -0.08469690382480621, -0.3363496661186218, 1.1120554208755493, 0.2725856602191925, -0.17401079833507538, -0.24193568527698517, -0.4202006161212921, -0.28510603308677673, 0.44733867049217224, -0.669562041759491, -0.3754808008670807, 0.4236186146736145, -0.3923613131046295, 0.05990858003497124, 0.16053034365177155, -0.8137076497077942, -0.03871970996260643, 0.04888041689991951, 0.38820672035217285, -0.2787742614746094, -0.05772717297077179, 0.014507943764328957, -0.2229090929031372, -0.33338314294815063, 0.13324587047100067, -0.763647735118866, 0.07955669611692429, 0.10125159472227097, 0.7644819021224976, -0.524709165096283, -0.24383440613746643, -0.7932058572769165, 0.2827322781085968, -0.6060189604759216, 0.6336237788200378, -0.2630457580089569, -0.5046781897544861, 0.015441467054188251, -0.11077184230089188, 0.06647750735282898, -0.6522329449653625, 0.6422065496444702, -0.5143846869468689, -0.2305057793855667, -0.6226069331169128, -0.10318520665168762, -0.1821761429309845, 0.1850312501192093, -0.6668813824653625, 1.061059594154358, 0.3200218379497528, -0.6530064344406128, 0.4233992099761963, -0.232540100812912, -0.5450317859649658, -0.08538828045129776, -0.10001730173826218, -0.4711105525493622, 0.4862695038318634, 0.5753056406974792, 0.4616418182849884, -0.21938399970531464, 0.10600754618644714, -0.06531783938407898, -0.17363685369491577, 0.44087469577789307, -0.561934769153595, 0.46853935718536377, 0.832804262638092, 0.08349335938692093, 0.009018407203257084, -0.6860478520393372, 0.1764884889125824, -0.15531574189662933, -0.509269654750824, 0.014979277737438679, 0.2359987497329712, 0.012856986373662949, 0.3063770830631256, 0.06914932280778885, -0.5132771730422974, 0.10725552588701248, -0.24325136840343475, 0.018440410494804382, 0.3012256622314453, 0.2387334704399109, 0.1989898532629013, -0.5828277468681335, 0.6570435762405396, 0.36742568016052246, -0.03783320635557175, 0.045900143682956696, -0.4961772561073303, -0.40590089559555054, -0.6527922749519348, 0.3084969222545624, 0.6012537479400635, -1.1537429094314575, 0.2833499610424042, -0.42777279019355774, -0.5922407507896423, -1.1070045232772827, 0.22131754457950592, 0.22507710754871368, -0.11069762706756592, 0.6145957708358765, -0.45515838265419006, -0.09607121348381042, -0.862078070640564, -0.43795397877693176, 0.1448674499988556, -0.30992788076400757, -0.07491215318441391, 0.24323032796382904, -0.21543914079666138, 0.8022894859313965, -0.4412285089492798, 0.019386615604162216, -0.3149154484272003, 0.1558852195739746, 0.5465392470359802, 0.6969708204269409, 0.4760984778404236, -0.5776883363723755, -0.3241744339466095, -0.22593194246292114, -0.3851316571235657, -0.06337159126996994, -0.1308917999267578, -0.6946300268173218, -0.19841322302818298, -0.014973577111959457, -0.26572513580322266, 0.12935949862003326, 0.8257654905319214, 0.3099181652069092, 0.42326077818870544, -0.5049206614494324, 0.7285195589065552, -1.5373753309249878, 0.07912497222423553, -0.007325654849410057, -0.2540317475795746, -0.528942346572876, 0.36366793513298035, 0.0307856947183609, -0.0595388188958168, -0.5203998684883118, 0.13057567179203033, -0.35848167538642883, -0.20661190152168274, -0.2877286374568939, 0.21203090250492096, 0.05694272369146347, 0.3807207942008972, -0.09114975482225418, 0.6742995381355286, 0.23269812762737274, -0.7845199704170227, 0.16723878681659698, 0.13383324444293976, -0.6691167950630188, 0.4644644260406494, -0.36380499601364136, -0.13651496171951294, -0.2585584819316864, 0.22722095251083374, -1.2284983396530151, -0.1589895784854889, 0.22521653771400452, -0.6766957640647888, 0.4009011387825012, -0.12696383893489838, -0.8760738968849182, -0.292237788438797, 0.1165027916431427, 0.48909544944763184, 0.6111564636230469, -0.45664384961128235, 0.05729256570339203, 0.5118004083633423, -0.09840850532054901, -0.4338541626930237, -0.9150340557098389, 0.037563275545835495, 0.09947294741868973, -0.43209514021873474, 0.08834020048379898, -0.13476990163326263, 0.08667031675577164, -0.18591710925102234, -0.2500722110271454, -0.2932852804660797, 0.07518720626831055, 0.10909675806760788, -0.05179440975189209, 0.33650273084640503, -0.08189669251441956, 0.6473239064216614, -0.1702292412519455, -0.15671904385089874, -0.6484524607658386, 0.34107300639152527, 0.6258861422538757, -0.5687875747680664, -0.44378548860549927, 0.6662117838859558, 0.6388890743255615, -0.2584744691848755, 0.7401099801063538, 0.8820407390594482, -0.36118200421333313, -0.0722813829779625, -0.3935498297214508, -0.10409795492887497, -0.4148431122303009, 0.4652871787548065, -0.7261120080947876, -0.7170444130897522, 0.6610632538795471, 0.08410099148750305, 0.3428409695625305, 0.8175221085548401, 0.7140341401100159, -0.4992679953575134, 1.305131196975708, 0.2702970504760742, -0.18544335663318634, 0.245525062084198, -0.3339560627937317, 0.27417299151420593, -0.9033238887786865, -0.1301754117012024, -0.7909737825393677, -0.5884602069854736, -0.8513674736022949, -0.7144516110420227, 0.7467337846755981, 0.04129575565457344, 0.010241184383630753, 0.43088269233703613, -0.3000815212726593, 0.08754242956638336, 0.893352210521698, 0.21136292815208435, 0.16535751521587372, 0.4345361590385437, -0.47086524963378906, -0.3856004774570465, -0.9010889530181885, -0.3511437475681305, 0.8766976594924927, 0.027523471042513847, 0.5914019346237183, 0.33938679099082947, 0.9362648725509644, 0.1351926326751709, 0.16488678753376007, -0.43381819128990173, 0.32384762167930603, -0.2381579726934433, -0.7006256580352783, -0.09317918121814728, -1.1078472137451172, -1.1480975151062012, 0.492308646440506, -0.3801618814468384, -0.6189894676208496, 0.17236661911010742, 0.19200006127357483, -0.3830355405807495, 0.47902897000312805, -0.0992630124092102, 0.7174073457717896, 0.07256795465946198, -0.3136586844921112, -0.45462143421173096, -0.5318342447280884, 0.2796812653541565, -0.13342908024787903, 0.6534643173217773, -0.3675907552242279, 0.14853541553020477, 0.5481810569763184, -0.2933812141418457, 0.31766343116760254, 0.053084660321474075, -0.20502109825611115, 0.44294583797454834, 0.5389931201934814, 0.4811294674873352, 0.045817967504262924, -0.24912722408771515, 0.20605877041816711, 0.3091169595718384, -0.8282577395439148, -0.4550798833370209, 0.5468322038650513, -0.9486000537872314, -0.2895681858062744, -0.2432854175567627, -0.8155528903007507, -0.17097385227680206, -0.013926389627158642, 0.8282279968261719, 0.2653987407684326, 0.05913295969367027, -0.314096599817276, 0.41064393520355225, -0.3502821922302246, 0.08544525504112244, 0.32121655344963074, -0.13132762908935547, -0.7941122055053711, 1.3158234357833862, 0.14476768672466278, 0.6224865913391113, 0.6588583588600159, -0.12117984145879745, -0.07157577574253082, -0.7003604173660278, -0.5837997198104858, 0.009178785607218742, -0.5315139889717102, -0.17843306064605713, -0.609913170337677, 0.04078250005841255, -0.42231693863868713, -0.1431945115327835, -0.4486325681209564, -0.3999890983104706, -0.05225961655378342, 0.22822944819927216, -0.1317816525697708, 0.30581727623939514, -0.3048435151576996, 0.4879447817802429, -1.3257033824920654, 0.5213580131530762, 0.010289543308317661, 0.049116041511297226, -0.37546899914741516, -0.7155660390853882, -0.6110590696334839, 0.4974882900714874, -0.4048626720905304, -1.0496997833251953, 0.919140636920929, -0.1786036342382431, 0.8127972483634949, 0.30855295062065125, 0.22731661796569824, 0.45956456661224365, -0.5657086372375488, 0.9957619905471802, 0.3445040285587311, -0.6437034606933594, 0.40505632758140564, -0.27575889229774475, 0.4241369962692261, 0.898741602897644, 0.5378262996673584, -0.6820828318595886, -0.7491740584373474, -0.4854024052619934, -0.778910756111145, 0.29196929931640625, 0.35685744881629944, 0.04281849041581154, -0.41431745886802673, 0.2728179097175598, 0.06120748817920685, 0.4416496157646179, -0.24499200284481049, -0.14322346448898315, -0.10445050895214081, -0.4096340835094452, -0.37413859367370605, -0.136378675699234, 0.07614153623580933, -0.1128997951745987, 0.8838121294975281, 0.09108486771583557, 0.21651984751224518, 0.11539598554372787, -0.173733189702034, -0.19042931497097015, 0.2836596667766571, 0.34748780727386475, 0.30616334080696106, -0.2530326545238495, 0.2992771565914154, 0.09962083399295807, -0.5718415975570679, 0.16360168159008026, -0.21632106602191925, -0.16022780537605286, 0.3228699266910553, -0.2026364803314209, 0.3469880521297455, 0.032245222479104996, -0.47240668535232544, 0.14985957741737366, 0.2042529135942459, -0.02072482742369175, 0.16375358402729034, 0.0322171188890934, -0.14930331707000732, 0.10587354749441147, 0.27171725034713745, 0.2892811894416809, 0.3486442267894745, -0.509523332118988, 0.06565795093774796, 0.3212076425552368, -0.4050377607345581, -0.10105258971452713, 0.5956565141677856, 0.12903177738189697, 0.05014491826295853, 0.892261266708374, -0.8195122480392456, -0.5297403335571289, 0.29741913080215454, 0.3278154134750366, 0.744651198387146, -0.20200486481189728, -0.02890719287097454, 0.7108408808708191, 0.5963181853294373, -0.43247199058532715, 0.5226556658744812, 0.01116564404219389, -0.77865070104599, -0.6231659650802612, -0.6819465756416321, -0.5728825926780701, -0.48692426085472107, -0.764653205871582, -0.10604578256607056, 0.07372836023569107, -0.46782582998275757, -0.6656489968299866, 0.019937006756663322, -0.5410664677619934, 0.10988589376211166, -0.10655278712511063, 0.6819391846656799, -0.6316077709197998, 0.8606553673744202, 0.30006739497184753, -0.2815079689025879, -0.4063563644886017, 0.018118469044566154, -0.042417194694280624, -0.6422710418701172, 0.40985190868377686, -0.30135732889175415, -0.15953177213668823, 0.19999590516090393, -0.5905375480651855, -0.9878952503204346, 0.8101020455360413, 0.3174562156200409, -0.7374659180641174, 0.37699994444847107, 0.11063903570175171, 0.1185721904039383, 0.050919633358716965, 0.13338981568813324, 0.5296053290367126, 0.3364764153957367, 0.22152605652809143, -0.6622388958930969, -0.22257931530475616, -0.25589635968208313, 0.1644655466079712, 0.3876900374889374, -0.34350156784057617, 0.49436891078948975, -0.4167616069316864, -0.42550748586654663, 0.22181665897369385, 0.892223596572876, 0.4244171977043152, 0.029633451253175735, 0.12756943702697754, 0.5615130662918091, 0.9269167184829712, -0.14616930484771729, 1.1161400079727173, -0.5391567945480347, 0.34355050325393677, 0.9834023714065552, 0.22185038030147552, 1.0863029956817627, 0.41448870301246643, -0.28872546553611755, 0.25458842515945435, 0.7790548205375671, 0.045989930629730225, 0.5541667938232422, 0.8288878202438354, -0.2905881702899933, -0.46692705154418945, 0.057975273579359055, -0.23661887645721436, -0.10726447403430939, 0.5306396484375, -0.22226597368717194, -0.19865277409553528, -0.12205404043197632, -0.13740135729312897, 0.18337057530879974, -0.24931909143924713, 0.32292330265045166, 0.21907268464565277, -0.7649810910224915, 0.46276405453681946, 0.3173639476299286, 0.5697113275527954, -0.4468415379524231, 0.2152971774339676, -0.23283137381076813, -0.12773701548576355, -0.15576648712158203, -0.785125732421875, 0.15283538401126862, -0.024309922009706497, -0.35602614283561707, -0.1929740309715271, -0.12050846964120865, -0.6987053751945496, -0.576672375202179, -0.31337374448776245, 0.5187488198280334, 0.9126278758049011, -0.2557838261127472, -0.265756219625473, 0.09309130907058716, -0.19968143105506897, 0.031672194600105286, 0.35552263259887695, 0.5049247145652771, 0.3994518518447876, 0.43282338976860046, 0.7324016094207764, 0.26241883635520935, 0.17487812042236328, 0.09633191674947739, 0.2987666726112366, -0.3551828861236572, -0.4807218611240387, -0.5747084021568298, 0.5842941403388977, 0.10223710536956787, -0.32263824343681335, 0.6928253173828125, 0.6168555617332458, 0.6822052001953125, 0.058492228388786316, 0.859637439250946, 0.404267817735672, 0.33526748418807983, -0.5415221452713013, 0.8330066204071045, -0.5195398926734924, 0.04439781606197357, -0.237675741314888, -1.0721515417099, -0.22308756411075592, 0.6666127443313599, 0.004418551921844482, -0.08635266870260239, 0.7131879925727844, 0.5145535469055176, 0.007707655895501375, -0.38287830352783203, 0.6738736033439636, 0.05126826465129852, 0.5023472309112549, 0.8789829611778259, 0.4335530698299408, -0.5580035448074341, 0.5677891969680786, 0.12040755897760391, -0.10147172957658768, -0.2149917483329773, -0.695605993270874, -0.42283472418785095, -0.7092819213867188, -0.2655486762523651, -0.6597714424133301, -0.05518965423107147, 1.0699931383132935, 0.6452327966690063, -0.7584266066551208, -0.2934775650501251, 0.2778463065624237, 0.04636821895837784, -0.6460301280021667, -0.08414474874734879, 0.22722060978412628, -0.6910486221313477, -0.9647727012634277, 0.45105087757110596, 0.19824235141277313, 0.0357714481651783, -0.17682746052742004, -0.017950255423784256, 0.17858067154884338, 0.16098050773143768, 0.4033738076686859, 0.03462395444512367, -0.3150116503238678, -0.02155085653066635, -0.11142256110906601, -0.5496956706047058, 0.11325420439243317, 0.6483414769172668, -0.523958146572113, 0.6981765031814575, 0.6931635737419128, 0.8525481224060059, 0.8292390704154968, -0.23313334584236145, 0.6822909712791443, -0.6551600098609924, -0.23067578673362732, 0.2122247815132141, 0.45917993783950806, 0.19179099798202515, -0.04393438622355461, 0.2092864215373993, 0.3148811161518097, -0.5477365851402283, -0.4836929440498352, 0.42823144793510437, -1.161988377571106, -0.07210294157266617, 1.2119169235229492, -0.2000301033258438, -0.16919951140880585, 0.05419885739684105, -0.07539796829223633, 0.44994881749153137, -0.4181780219078064, 0.863475501537323, 0.5993859767913818, 0.26039212942123413, 0.12804733216762543, -1.0259369611740112, 0.15184682607650757, 0.4233854115009308, -0.6381933689117432, -0.286113977432251, 0.4010387361049652, 0.23793217539787292, 0.13730201125144958, 0.38891667127609253, -0.1119905561208725, 0.22757887840270996, -0.025672560557723045, 0.3879188299179077, 0.21258166432380676, -0.2867814600467682, -0.09075857698917389, 0.16892054677009583, 0.07220350950956345, -0.4749792814254761 ]
http://arxiv.org/abs/2405.18380v1
http://arxiv.org/pdf/2405.18380v1
OwLore: Outlier-weighed Layerwise Sampled Low-Rank Projection for Memory-Efficient LLM Fine-tuning
2024-05-28T17:22:22
2024-05-28T17:22:22
Pengxiang Li, Lu Yin, Xiaowei Gao, Shiwei Liu
cs.LG
cs.LG, cs.AI, cs.CL
The rapid advancements in Large Language Models (LLMs) have revolutionized various natural language processing tasks. However, the substantial size of LLMs presents significant challenges in training or fine-tuning. While parameter-efficient approaches such as low-rank adaptation (LoRA) have gained popularity, they often compromise performance compared to full-rank fine-tuning. In this paper, we propose Outlier-weighed Layerwise Sampled Low-Rank Projection (OwLore), a new memory-efficient fine-tuning approach, inspired by the layerwise outlier distribution of LLMs, which dynamically samples pre-trained layers to fine-tune instead of adding additional adaptors. We first interpret the outlier phenomenon through the lens of Heavy-Tailed Self-Regularization theory (HT-SR), discovering that layers with more outliers tend to be more heavy-tailed and consequently better trained. Inspired by this finding, OwLore strategically assigns higher sampling probabilities to layers with more outliers to better leverage the knowledge stored in pre-trained LLMs. To further mitigate the memory demands of fine-tuning, we integrate gradient low-rank projection into our approach, which facilitates each layer to be efficiently trained in a low-rank manner. By incorporating the efficient characteristics of low-rank and optimal layerwise sampling, OwLore significantly improves the memory-performance trade-off in LLM pruning. Our extensive experiments across various architectures, including LLaMa2, LLaMa3, and Mistral, demonstrate that OwLore consistently outperforms baseline approaches, including full fine-tuning. Specifically, it achieves up to a 1.1% average accuracy gain on the Commonsense Reasoning benchmark, a 3.0% improvement on MMLU, and a notable 10% boost on MT-Bench, while being more memory efficient. OwLore allows us to fine-tune LLaMa2-7B with only 21GB of memory.
[ -0.1463918685913086, -0.6740319132804871, 0.4514734148979187, -0.02754124067723751, -0.22607870399951935, -0.027609732002019882, -0.2933341860771179, -0.4425237774848938, 0.16297434270381927, 0.6584087610244751, -0.23746679723262787, -0.632703423500061, -0.5912715196609497, -0.35501930117607117, -0.3763371407985687, 0.8964160680770874, 0.3333559036254883, -0.28009381890296936, -0.19347138702869415, 0.020097533240914345, -0.3217211663722992, -0.1400715708732605, -0.7501440048217773, -0.17582786083221436, 0.5464090704917908, 0.8548049330711365, 0.4208289086818695, 0.821757435798645, 0.5185554027557373, 0.24926500022411346, -0.033439770340919495, 0.572072446346283, -0.7149220108985901, -0.1576022505760193, 0.01509828120470047, -0.3608158528804779, -0.7040719389915466, -0.05012164264917374, 0.5453606247901917, 0.5042694211006165, -0.2501959204673767, 0.26463162899017334, 0.3273886442184448, 0.7334585785865784, -0.8456628918647766, -0.16791772842407227, -1.0383102893829346, -0.036215756088495255, -0.2790336608886719, -0.5578852891921997, -0.34605878591537476, -0.119968481361866, -0.2979757487773895, -0.751304566860199, 0.04080919921398163, 0.45725393295288086, 0.7290067672729492, 0.5445009469985962, 0.006474316120147705, -0.10159613192081451, -0.4803897440433502, 1.2251813411712646, -0.7563048005104065, 0.09958105534315109, 0.5024524331092834, 0.168182373046875, -0.32713815569877625, -0.16408154368400574, -0.09071608632802963, -0.1282331347465515, 0.2461915910243988, 0.2730576694011688, -0.08880942314863205, -0.06509914249181747, 0.011982726864516735, 0.34675735235214233, -0.4211127758026123, 0.48424726724624634, -0.23106060922145844, -0.21499237418174744, 0.47435832023620605, -0.18223823606967926, -0.061232056468725204, -0.21145303547382355, -0.4881119430065155, -0.22965142130851746, -0.5170937180519104, -0.22082845866680145, 0.6349369883537292, 0.40956252813339233, 0.2718625068664551, 0.28641167283058167, -0.13847792148590088, 0.7790504097938538, 0.17923003435134888, -0.3784181773662567, 0.03295322135090828, -0.01620650477707386, -0.2802683711051941, 0.3282112777233124, 0.5571160912513733, 0.467098206281662, 0.33823537826538086, -0.03969657048583031, -0.1490088552236557, -0.049469370394945145, 0.009533698670566082, -0.917732298374176, -0.39947444200515747, 0.30435213446617126, -0.4771212637424469, -0.2657593786716461, -0.24773141741752625, -0.8563988208770752, -0.35175788402557373, -0.043573662638664246, 0.42190322279930115, -0.6404436230659485, -0.05662249028682709, 0.17525127530097961, 0.0055178143084049225, -0.15875796973705292, 0.5651242733001709, -0.7974154353141785, 0.21470242738723755, 0.6329275369644165, 0.5644086003303528, -0.3653724789619446, -0.26109975576400757, -1.0257301330566406, 0.46964409947395325, -0.33249783515930176, 0.9970133900642395, -0.6255979537963867, -0.08483915776014328, -0.18894271552562714, -0.5204557180404663, -0.12332850694656372, -1.0088938474655151, 0.6785788536071777, -0.17741483449935913, -0.0707327350974083, 0.039085276424884796, -0.4057891070842743, 0.0942341685295105, 0.4461280405521393, -0.18374750018119812, 1.29267418384552, -0.0012109348317608237, -0.7247918844223022, 0.4140775799751282, -0.31140241026878357, -0.22494235634803772, -0.19632188975811005, 0.07652798295021057, -0.3400307893753052, 0.22997629642486572, 0.4316039979457855, 0.49473005533218384, -0.41413646936416626, -0.2346750646829605, -0.23002766072750092, -0.579761266708374, -0.18835914134979248, -0.14208777248859406, 0.379590779542923, 0.37516215443611145, 0.16834084689617157, -0.0049718404188752174, -1.0501582622528076, 0.1929972767829895, -0.07537094503641129, -0.29087913036346436, -0.8025540113449097, 0.08835200220346451, -0.1846141219139099, -0.09666343033313751, 0.35016825795173645, -0.512557864189148, 0.23116470873355865, -0.40920329093933105, 0.4542521834373474, 0.7532687187194824, -0.06880918890237808, 0.5198347568511963, -0.29564622044563293, 0.0665365606546402, 0.39799317717552185, 0.29909250140190125, 0.0508253388106823, -0.23258937895298004, -0.7568053007125854, -0.48732805252075195, 0.0050404868088662624, 0.5848619937896729, -0.48177847266197205, 0.5017960071563721, -0.21455936133861542, -0.41797998547554016, -0.49479973316192627, 0.754449725151062, 0.3107731342315674, 0.7814832329750061, 0.6582767367362976, 0.17986205220222473, -0.41561803221702576, -0.8359752893447876, -0.3303818106651306, -0.1536523401737213, -0.009397097863256931, 0.17419548332691193, 0.295795738697052, -0.23171839118003845, 0.7846843004226685, -0.48813435435295105, -0.9054498672485352, -0.20115262269973755, 0.28524667024612427, 0.3889905512332916, 0.6029648780822754, 0.47408145666122437, -0.3672391176223755, -0.4200587570667267, 0.0017798106418922544, -0.3421875834465027, -0.16200107336044312, 0.0623362734913826, -0.2669410705566406, 0.039292775094509125, 0.49036574363708496, -0.3399312198162079, 0.058689311146736145, 0.7678842544555664, 0.16665060818195343, 0.11593634635210037, -0.43965643644332886, -0.22964338958263397, -1.2046667337417603, -0.258136123418808, -0.23569722473621368, -0.022659046575427055, -0.21145012974739075, -0.24010734260082245, 0.06199163571000099, 0.2042362540960312, -0.3053535521030426, 0.44691330194473267, -0.6086791157722473, -0.08274951577186584, -0.32926592230796814, 0.25472143292427063, -0.049612995237112045, 0.5098278522491455, -0.22009125351905823, 0.7766321301460266, 0.46340158581733704, -0.5811214447021484, -0.062408074736595154, 0.00936911255121231, -0.40920621156692505, 0.6861556172370911, -0.27309897541999817, 0.2076837420463562, -0.13445714116096497, -0.03532914072275162, -0.7369433641433716, 0.03355731442570686, 0.08986535668373108, -0.2533847987651825, 0.1980651617050171, -0.25157761573791504, -0.48490405082702637, -0.04173481464385986, -0.578191339969635, 0.3558295965194702, 0.5777812600135803, -0.6646691560745239, 0.5210676193237305, 0.3645695745944977, 0.2806868553161621, -0.571980893611908, -0.8090612292289734, -0.08651455491781235, -0.5234612822532654, -0.47704946994781494, 0.33292001485824585, -0.14163874089717865, -0.1730036735534668, -0.05207965895533562, -0.14322839677333832, 0.13310964405536652, 0.0214287918061018, -0.00036526634357869625, -0.09743548184633255, -0.1111740693449974, 0.005690282676368952, 0.0163651742041111, -0.21388967335224152, -0.25611448287963867, -0.4473467171192169, 0.47676849365234375, -0.008980203419923782, -0.2892627716064453, -0.2453518509864807, 0.1445101797580719, 0.221499964594841, -0.043604299426078796, 0.4374135434627533, 0.5022175908088684, -0.27793341875076294, -0.6394606828689575, -0.679080069065094, -0.17572811245918274, -0.43824803829193115, 0.41192421317100525, -0.025144925341010094, -0.6338049173355103, 0.4493454694747925, -0.23863466084003448, -0.02212381735444069, 0.2770095765590668, 0.2301119863986969, -0.36539313197135925, 0.983690083026886, 0.5347768068313599, -0.27281618118286133, 0.6577145457267761, -0.4354722499847412, 0.10746351629495621, -1.2617117166519165, 0.2801606059074402, -0.4281891882419586, -0.5538986921310425, -0.47765645384788513, -0.6272827386856079, 0.32253995537757874, 0.36443892121315, 0.023314444348216057, 0.25874483585357666, -0.5138794779777527, 0.29773223400115967, 0.5739375948905945, 0.048125967383384705, 0.5361607670783997, 0.15583480894565582, 0.014815843664109707, -0.0380752868950367, -0.7071734666824341, -0.2595333456993103, 0.9668230414390564, 0.08080590516328812, 0.9230101704597473, -0.10814736038446426, 1.0132098197937012, 0.24956993758678436, 0.21315856277942657, -0.7571635842323303, 0.6640529632568359, -0.49021774530410767, -0.30079641938209534, -0.423433780670166, -0.5515847206115723, -0.8214064836502075, 0.13682858645915985, -0.1797361671924591, -0.8343448638916016, 0.3659847676753998, 0.7297140955924988, -0.46946579217910767, 0.44668930768966675, -0.7947245240211487, 0.5306559801101685, -0.2512238919734955, -0.5458409190177917, -0.374407023191452, -0.16898538172245026, 0.22590427100658417, -0.03814203292131424, 0.25040632486343384, -0.3822745084762573, -0.021791987121105194, 0.6371811628341675, -0.4636940658092499, 0.667891800403595, -0.18275411427021027, -0.11571469157934189, 0.31539568305015564, 0.01563408225774765, 0.7914950251579285, 0.12360173463821411, -0.22038112580776215, 0.11597316712141037, 0.05796394497156143, -0.48300373554229736, -0.5273594260215759, 0.8959359526634216, -0.9282594919204712, -0.4309629201889038, -0.3809420168399811, -0.6367896795272827, -0.40861448645591736, 0.16571541130542755, 0.35647052526474, 0.19853653013706207, 0.04477955028414726, 0.3609525263309479, 0.6365732550621033, -0.19050092995166779, 0.29126259684562683, 0.33366847038269043, -0.15621648728847504, -0.23261387646198273, 1.2082300186157227, 0.3451758027076721, 0.24138864874839783, 0.7854022979736328, 0.45472288131713867, 0.14610791206359863, -0.9435712099075317, -0.17122407257556915, 0.16678054630756378, -0.3823651373386383, -0.508439302444458, -0.4153396487236023, -0.20973218977451324, -0.155152827501297, -0.10123477131128311, -0.6987829208374023, -0.2370336949825287, -0.17685458064079285, 0.20847320556640625, 0.474632203578949, 0.1566222757101059, -0.13592477142810822, 0.5030294060707092, -0.3706066906452179, 0.21770408749580383, 0.3498581647872925, 0.06766436249017715, -0.03648880496621132, -0.6526675820350647, -0.26646843552589417, -0.021837186068296432, -0.06607995182275772, -0.23579970002174377, 0.4044683575630188, 0.4703160524368286, 0.31423547863960266, 0.46531060338020325, 0.22299686074256897, 1.1508352756500244, -0.23687586188316345, 0.26294222474098206, -0.07465050369501114, -0.4494996666908264, 0.6639902591705322, -0.37945616245269775, 0.26510149240493774, 0.7695603370666504, -0.24067422747612, -0.04116644710302353, -0.456321120262146, -0.3240423798561096, -0.8518694043159485, 0.5672492384910583, -0.019964594393968582, -0.0860944464802742, 0.0069840154610574245, 0.27160966396331787, 0.05081171169877052, 0.15300561487674713, -0.23001208901405334, 0.08758067339658737, -0.17730098962783813, -0.21178081631660461, -0.2329733967781067, -0.38432836532592773, -0.11902526021003723, -0.22352327406406403, 0.6020281314849854, -0.4562377631664276, 0.16507352888584137, 0.09568630158901215, -0.37405478954315186, -0.25933244824409485, 0.22484806180000305, 0.37963518500328064, 0.49371618032455444, -0.7747281193733215, 0.3917151093482971, 0.3719051480293274, -0.5262715816497803, -0.42782163619995117, -0.05768490582704544, -0.3469927906990051, -0.4324808716773987, 0.31077954173088074, 0.6020919680595398, 0.5252110362052917, -0.5982620716094971, 0.21909934282302856, 0.20366941392421722, -0.09436143189668655, -0.3281216621398926, 0.2313174307346344, -0.00095605623209849, 0.08984095603227615, 0.5332723259925842, 0.18297450244426727, 0.12048342823982239, -0.6541303396224976, -0.09542345255613327, 0.6039319038391113, -0.22358563542366028, -0.1288093626499176, 0.5368121266365051, 0.01367789413779974, -0.071853868663311, 0.5631043910980225, 0.006397469900548458, 0.01041509211063385, 0.3001677393913269, 0.5683865547180176, 0.6385236382484436, -0.069307841360569, -0.0068263281136751175, 0.4167827069759369, 0.3141767978668213, -0.11478372663259506, 0.12160933017730713, -0.14506122469902039, -0.952393114566803, -0.4847973883152008, -0.8719601631164551, -0.3961622714996338, 0.14462760090827942, -0.5996246337890625, 0.18924593925476074, -0.7277381420135498, -0.03247474133968353, -0.44473448395729065, 0.28685733675956726, -0.3122689425945282, 0.18891215324401855, 0.004736620932817459, 1.031313419342041, -0.5567063093185425, 1.2714287042617798, 0.6182708740234375, -0.07230118662118912, -0.5161119699478149, 0.13974331319332123, -0.12556850910186768, -1.1846548318862915, 0.524941086769104, 0.007435871288180351, -0.4703810214996338, 0.23872996866703033, -0.4511954188346863, -1.0718786716461182, 1.1188585758209229, 0.538585901260376, -0.5569643974304199, -0.01212290395051241, 0.01528652012348175, 0.45052480697631836, -0.34573403000831604, 0.22304001450538635, 0.5054277777671814, 0.48965752124786377, 0.39097273349761963, -0.48759371042251587, -0.26754873991012573, -0.10043936967849731, 0.09712039679288864, 0.17969606816768646, -0.9935418963432312, 0.8641061782836914, -0.13654284179210663, 0.13869425654411316, 0.1332506239414215, 0.7427355647087097, 0.5119720697402954, 0.11078949272632599, 0.7314193248748779, 0.6972345113754272, 0.7110353708267212, -0.07750137895345688, 0.7800117135047913, -0.4837963879108429, 0.023560388013720512, 1.1431347131729126, -0.1997452825307846, 1.1013485193252563, 0.7595340013504028, 0.21246448159217834, 0.30840054154396057, 0.36440712213516235, 0.23396673798561096, 0.5259156227111816, -0.022371429949998856, 0.41519248485565186, -0.5791788697242737, -0.2000197470188141, -0.3461805582046509, 0.6102875471115112, 0.2993495464324951, 0.02740984782576561, -0.28366076946258545, -0.16337858140468597, 0.1470026969909668, 0.18907301127910614, -0.5001514554023743, 0.5374013781547546, 0.10941684991121292, -0.5568324327468872, 0.5138547420501709, -0.28385674953460693, 0.9021216034889221, -0.6621692180633545, -0.11849374324083328, -0.4171737730503082, 0.7224543690681458, -0.30632323026657104, -0.4122171998023987, 0.11183658242225647, -0.2494099885225296, -0.06267090141773224, -0.429939866065979, 0.6695530414581299, -0.3653453290462494, -0.6592024564743042, 0.6367120146751404, 0.2832418382167816, 0.2616117298603058, -0.231145441532135, -0.5684242844581604, 0.18691036105155945, -0.32191866636276245, -0.36061692237854004, 0.7348695993423462, 0.4355831444263458, -0.2582559287548065, 0.6571449637413025, 0.6758707165718079, 0.52739018201828, 0.06280147284269333, 0.03986541926860809, 0.7463693022727966, -0.4290381968021393, -0.45490527153015137, -0.453270822763443, 0.11290272325277328, -0.18471603095531464, -0.4021494686603546, 0.8157655000686646, 0.7195209264755249, 0.7446057796478271, 0.18153752386569977, 0.3442859351634979, 0.1952274888753891, 0.8506481647491455, -0.7113513946533203, 0.5056338310241699, -0.918168842792511, 0.3788849711418152, -0.32174649834632874, -1.0298606157302856, -0.13449959456920624, 0.6670718193054199, -0.4159572124481201, 0.008951579220592976, 0.4489452540874481, 0.8955262899398804, -0.12808527052402496, -0.4264850914478302, 0.5585569143295288, 0.5068646669387817, 0.10349604487419128, 0.7858906984329224, 0.8777629137039185, -0.49152520298957825, 0.7393041849136353, -0.31365320086479187, -0.2902781069278717, -0.49839237332344055, -1.1145930290222168, -0.8399403691291809, -0.24326451122760773, -0.22063471376895905, 0.11680901050567627, 0.21566863358020782, 0.7422789335250854, 0.8730891346931458, -0.9048194289207458, -0.32562559843063354, 0.088778056204319, 0.11458359658718109, -0.46812185645103455, -0.16866537928581238, 0.4373786449432373, -0.281673789024353, -0.9137647151947021, 0.5064700245857239, 0.5298961400985718, -0.39499127864837646, -0.11045539379119873, -0.12565463781356812, -0.1700778305530548, -0.014569707214832306, 0.6227811574935913, 0.24103489518165588, -0.5024517178535461, -0.5380243062973022, -0.15140634775161743, 0.11110351234674454, 0.2444506287574768, 0.46427154541015625, -0.75727379322052, 0.1049620658159256, 0.32275640964508057, 0.321921706199646, 0.5454056262969971, 0.19318147003650665, 0.12018590420484543, -0.6538295745849609, 0.4267951250076294, 0.139590784907341, 0.25747445225715637, 0.30848923325538635, -0.36195769906044006, 0.3997805714607239, 0.018408512696623802, -0.4688069522380829, -0.8830940127372742, 0.016000164672732353, -1.1459921598434448, -0.211131289601326, 1.132656455039978, 0.41822394728660583, -0.4137665629386902, 0.20294488966464996, -0.3356313407421112, -0.07388670742511749, -0.5820716619491577, 0.8804020285606384, 0.28062719106674194, -0.3170536458492279, -0.27163851261138916, -0.6204999089241028, 0.5761669278144836, 0.5191404819488525, -0.5642646551132202, 0.011595556512475014, 0.1600511521100998, 0.14150255918502808, 0.23154239356517792, 0.554616391658783, 0.08783701807260513, -0.180863156914711, -0.24938590824604034, -0.08436418324708939, -0.282389372587204, -0.3968845307826996, 0.24668096005916595, 0.2575905919075012, 0.2903744876384735, -0.16723978519439697 ]
http://arxiv.org/abs/2405.18375v1
http://arxiv.org/pdf/2405.18375v1
Thai Winograd Schemas: A Benchmark for Thai Commonsense Reasoning
2024-05-28T17:14:02
2024-05-28T17:14:02
Phakphum Artkaew
cs.CL
cs.CL
Commonsense reasoning is one of the important aspect of natural language understanding, with several benchmarks developed to evaluate it. However, only a few of these benchmarks are available in languages other than English. Developing parallel benchmarks facilitates cross-lingual evaluation, enabling a better understanding of different languages. This research introduces a collection of Winograd Schemas in Thai, a novel dataset designed to evaluate commonsense reasoning capabilities in the context of the Thai language. Through a methodology involving native speakers, professional translators, and thorough validation, the schemas aim to closely reflect Thai language nuances, idioms, and cultural references while maintaining ambiguity and commonsense challenges. We evaluate the performance of popular large language models on this benchmark, revealing their strengths, limitations, and providing insights into the current state-of-the-art. Results indicate that while models like GPT-4 and Claude-3-Opus achieve high accuracy in English, their performance significantly drops in Thai, highlighting the need for further advancements in multilingual commonsense reasoning.
[ -0.24321748316287994, -0.4151308834552765, 0.61240553855896, 0.19347093999385834, -0.2748774290084839, -0.01607419177889824, -0.4616573750972748, -0.4156886041164398, -0.3144732117652893, 0.48389098048210144, 0.09762819111347198, -0.7061663866043091, -0.6682671904563904, 0.3483862280845642, 0.26087313890457153, 0.707714855670929, -0.380866676568985, 0.24232567846775055, -0.1969570815563202, -0.7019592523574829, -0.5803806781768799, -0.011803903616964817, -0.1555546522140503, -0.20912139117717743, 0.3985036611557007, 1.022434949874878, 0.6316391825675964, 0.46819165349006653, 0.7931445240974426, 0.22095617651939392, -0.14840489625930786, 0.28793439269065857, -0.25228914618492126, 0.3833732008934021, -0.472337007522583, -0.31551989912986755, -0.25147518515586853, -0.047265633940696716, 0.5014054179191589, 0.746215283870697, -0.43707844614982605, 0.05776578560471535, -0.2686018943786621, 0.574386477470398, -0.8696104288101196, 0.4096856415271759, -0.5202897191047668, -0.11795509606599808, -0.42566734552383423, 0.08834325522184372, -0.3875829577445984, -0.5823817849159241, 0.15417790412902832, -0.9935007095336914, -0.1258535087108612, 0.09165941923856735, 0.9536272883415222, 0.02631532959640026, -0.7664472460746765, -0.3681115210056305, -0.20334933698177338, 0.9008990526199341, -0.7126996517181396, 0.7124136686325073, 0.3924197256565094, 0.8592084050178528, 0.009768479503691196, -0.7166094779968262, -0.6228328943252563, -0.28604230284690857, -0.1599062830209732, 0.12871338427066803, -0.2821677029132843, -0.06362450867891312, 0.1652163416147232, 0.45786136388778687, -0.8334576487541199, 0.15210328996181488, -0.43533292412757874, -0.20401187241077423, 0.5158491134643555, 0.05349789187312126, 0.19258275628089905, -0.4741170406341553, -0.3856578767299652, -0.05160202458500862, -0.8010720014572144, -0.30260294675827026, 0.337554007768631, 0.2692796289920807, -0.03833644837141037, 0.4998498857021332, -0.643835186958313, 0.5235050320625305, -0.29118672013282776, -0.3465857207775116, 0.23956730961799622, -0.5556238293647766, -0.08900938183069229, -0.02693375200033188, 0.5827791094779968, 0.7297348976135254, 0.6721835732460022, -0.08475268632173538, -0.022840410470962524, 0.4277721345424652, -0.396685928106308, -0.5618996024131775, -0.22457826137542725, 0.2051032930612564, -0.4310814142227173, -0.3206879794597626, -0.23703217506408691, -0.6902813911437988, -0.2251569628715515, -0.30415430665016174, 0.11727000772953033, -0.5194351673126221, -0.8219871520996094, 0.6702002882957458, -0.2708255648612976, 0.32802796363830566, 0.2825588285923004, -0.6054182648658752, 0.3763309717178345, 0.6136651039123535, 0.5794734954833984, -0.264622300863266, -0.6086012125015259, -0.3769508898258209, 0.4509676694869995, -0.3621443510055542, 1.0415663719177246, -0.9504994750022888, -0.1758352369070053, -0.2052185982465744, -0.10131476074457169, -0.0006870738579891622, -0.7713669538497925, 0.5381258726119995, -0.3804457485675812, 0.28416216373443604, -0.5607625246047974, -0.3591504693031311, -0.28681549429893494, 0.17870596051216125, -0.6685285568237305, 1.0012177228927612, 0.10810797661542892, -1.0675122737884521, 0.8076217174530029, -0.7346283793449402, -0.5080358386039734, 0.28779229521751404, 0.021870866417884827, 0.07826712727546692, 0.029914695769548416, 0.4140121042728424, 0.3928377330303192, -0.5007461309432983, 0.5983108878135681, -0.4551650583744049, -0.07142039388418198, 0.050661612302064896, -0.33888447284698486, 0.8864080309867859, 0.6650761365890503, -0.07535188645124435, 0.00969497300684452, -0.602150022983551, -0.09336049109697342, 0.1310129314661026, -0.058196377009153366, -0.6177831888198853, -0.4100850820541382, 0.22031192481517792, 0.3235665261745453, 0.14935725927352905, -0.564292848110199, 0.27218639850616455, 0.12718389928340912, 0.3673780560493469, 0.5754176378250122, 0.043019119650125504, 0.2564115524291992, -0.18646347522735596, 0.5374880433082581, 0.25676971673965454, -0.1940126270055771, -0.11374886333942413, -0.5140638947486877, -0.42586246132850647, -0.5379444360733032, 0.23697781562805176, 0.5340286493301392, -0.753307044506073, -0.2286616861820221, -0.5417547225952148, -0.7110259532928467, -0.5266246199607849, 0.12874048948287964, 0.4676295816898346, 0.35219883918762207, 0.22971795499324799, -0.3783978819847107, -0.3773369789123535, -1.130621075630188, -0.6938536167144775, -0.025614988058805466, 0.0929996594786644, 0.30680403113365173, 0.6109647750854492, 0.09780295938253403, 0.5900586843490601, -0.3782535493373871, -0.07694016396999359, -0.4228176772594452, 0.27229124307632446, -0.015181265771389008, 0.40888190269470215, 0.3299109935760498, -0.5341529250144958, -0.5832103490829468, 0.39006340503692627, -0.9612138271331787, -0.14622777700424194, 0.2799437642097473, -0.11619909107685089, -0.028950495645403862, 0.4824146628379822, -0.840242326259613, 0.13027790188789368, 0.4323839545249939, -0.3800830543041229, 0.7753080129623413, -0.1577075570821762, 0.32313477993011475, -0.9179821014404297, 0.18216274678707123, 0.0010777866700664163, -0.06572499871253967, -0.396383136510849, 0.3330906331539154, 0.16409681737422943, -0.12346725910902023, -0.49783241748809814, 0.6779297590255737, -0.4749516546726227, -0.1889985352754593, 0.22603058815002441, 0.18560121953487396, 0.06304024159908295, 0.2721017301082611, 0.32678258419036865, 0.8483591675758362, 0.5159947872161865, -0.31717780232429504, 0.37891313433647156, -0.1101127341389656, -0.7006556987762451, 1.367457389831543, -0.5662382245063782, -0.10750597715377808, -0.06209186092019081, 0.19841188192367554, -1.0519145727157593, -0.5785753726959229, 0.007638643030077219, -0.04171142354607582, 0.14582818746566772, 0.00192866544239223, -0.8502592444419861, -0.24923598766326904, 0.009580304846167564, 0.6822126507759094, 0.0033292558509856462, -0.45448020100593567, 0.1729351431131363, 0.40330955386161804, -0.22342540323734283, -0.6697031855583191, -0.5045167207717896, 0.17507340013980865, -0.5955471396446228, -0.5501691699028015, -0.19301457703113556, 0.2633734345436096, -0.5885518193244934, 0.08206818252801895, 0.04334649816155434, -0.1793135702610016, -0.08622738718986511, -0.27845892310142517, -0.16585662961006165, -0.49096551537513733, 0.15037256479263306, 0.10614985227584839, -0.38983678817749023, -0.2821151316165924, -0.5104301571846008, 0.11890513449907303, -0.6522691249847412, -0.3701574206352234, -0.457573264837265, 0.43206292390823364, 0.9462288022041321, -0.593505322933197, 0.20860323309898376, 0.29543066024780273, -0.37083005905151367, 0.04470446705818176, -0.6715365052223206, -0.0038427652325481176, -0.4401033818721771, 0.37101316452026367, -0.8089262843132019, -0.6555779576301575, 0.4847790002822876, -0.12779735028743744, -0.06220613792538643, 0.3288656771183014, 0.4789477586746216, 0.088523268699646, 0.7352330684661865, 0.08872894942760468, 0.13982924818992615, -0.1712205708026886, 0.15674282610416412, 0.09082835167646408, -0.4984204173088074, -0.04371766373515129, -0.3594280779361725, -0.047099124640226364, -0.7394994497299194, -0.6552762985229492, 0.05853034183382988, -0.04136387258768082, -0.5038244724273682, 0.5901243090629578, -0.3433929681777954, 0.6334467530250549, 0.5871858596801758, -0.3226143717765808, 0.7703520655632019, -0.0927196815609932, -0.5275657176971436, -0.3637997508049011, -0.6897455453872681, -0.6651527285575867, 1.2391940355300903, 0.2875532805919647, 0.6102718114852905, 0.3342805802822113, 0.3721081614494324, 0.065511554479599, 0.35299262404441833, -0.2637072503566742, 0.5223757028579712, 0.11631306260824203, -0.7862678170204163, -0.17259091138839722, -0.3454940915107727, -0.9413317441940308, 0.4929702877998352, 0.4598391354084015, -0.7326371073722839, 0.1345987766981125, -0.03303059563040733, 0.28562402725219727, 0.3544681966304779, -0.8035545945167542, 1.2097562551498413, -0.2739694118499756, -0.5065129399299622, -0.2790553867816925, -0.48682910203933716, 0.6299421787261963, 0.38398218154907227, 0.2102571427822113, -0.25868886709213257, -0.08631331473588943, 0.5476738214492798, -0.1694323569536209, 0.44943633675575256, -0.34246116876602173, -0.378257155418396, 0.2976312041282654, 0.20582686364650726, 0.4138753116130829, 0.033316224813461304, -0.05283673480153084, 0.33111321926116943, 0.2006499171257019, -0.7539435029029846, -0.4913684129714966, 0.6709678769111633, -0.40781182050704956, -0.24997389316558838, -0.4755084216594696, -0.679237425327301, -0.365868479013443, 0.4690816104412079, 0.16888020932674408, 0.09406439960002899, -0.09701643884181976, 0.042476702481508255, 0.3315623998641968, -0.15711599588394165, -0.007710051257163286, 0.6218503713607788, -0.2359771579504013, -0.4955703318119049, 1.134900450706482, 0.23002205789089203, 0.4418516755104065, 0.22567994892597198, 0.1993279755115509, -0.5367331504821777, -0.4185522794723511, -0.5712770819664001, 0.4460814893245697, -1.0415987968444824, -0.23119033873081207, -0.3347513675689697, 0.42721596360206604, -0.23590341210365295, -0.14395862817764282, -0.552167534828186, -0.6561857461929321, 0.49103617668151855, -0.3129867911338806, 0.2804061472415924, 0.9552414417266846, -0.21531234681606293, -0.052681367844343185, -0.12944820523262024, 0.20738984644412994, 0.47259020805358887, 0.7954327464103699, -0.09716659039258957, -0.17800165712833405, 0.06766127049922943, -0.2461676150560379, -0.1224435418844223, -0.9770816564559937, -0.02768239751458168, -0.19719374179840088, 0.7029021382331848, 0.6719798445701599, 0.022821128368377686, 0.5859401822090149, -0.3087993264198303, 0.5134028196334839, 0.03930189833045006, -0.8661471009254456, 0.4735488295555115, -0.8394292593002319, 0.33289673924446106, 0.7360878586769104, 0.3431646525859833, -0.8419252038002014, -0.5588209629058838, -0.6393492817878723, -0.5391343832015991, 0.23769184947013855, 0.17856843769550323, -0.41029396653175354, -0.1265340894460678, -0.29329782724380493, 0.42933228611946106, 0.3502006232738495, -0.5972035527229309, -0.006019724067300558, -0.30556225776672363, -0.17495834827423096, 0.03764379024505615, -0.12279181182384491, -0.06390805542469025, -0.22668419778347015, 0.25962933897972107, -0.14648178219795227, -0.013936777599155903, -0.160600483417511, -0.31303590536117554, 0.03632830083370209, 0.5777758955955505, 0.7612260580062866, 0.8722758293151855, -0.17073065042495728, 0.30994099378585815, 0.4133926033973694, -0.3602127730846405, 0.1831294745206833, 0.08654818683862686, 0.1548934280872345, 0.053937822580337524, 0.3340010643005371, 0.4581992030143738, 0.6315220594406128, -0.8489822745323181, 0.5420749187469482, 0.05518410727381706, -0.33010706305503845, 0.16072995960712433, -0.3253590166568756, 0.3876083791255951, -0.03547012805938721, 0.10901995003223419, -0.08734533190727234, 0.093630850315094, -0.13169966638088226, 0.27452248334884644, 0.28322941064834595, -0.06882193684577942, -0.16898192465305328, 0.6280129551887512, 0.21867026388645172, 0.15777315199375153, 0.4603050947189331, -0.4346520006656647, -0.49425724148750305, 0.3740013539791107, 0.5069251656532288, 0.5805949568748474, -0.19834688305854797, 0.27208974957466125, 0.4974081516265869, 0.41376495361328125, 0.10552619397640228, 0.4612995386123657, -0.3856350779533386, -0.5567615032196045, -0.41386109590530396, -0.25289225578308105, -0.6316631436347961, 0.07136223465204239, -0.8006061315536499, 0.18171840906143188, -0.03353794664144516, 0.39271414279937744, -0.21299931406974792, 0.12943778932094574, -0.9779642224311829, 0.015244174748659134, -0.07114351540803909, 1.1655222177505493, -1.11941397190094, 0.7554001808166504, 0.6665449142456055, -0.42852088809013367, -0.6298150420188904, -0.2563554048538208, 0.03500441461801529, -0.8247252702713013, 0.8078070878982544, 0.22933214902877808, -0.1270589679479599, -0.2526716887950897, -0.3780726194381714, -0.8199161887168884, 0.9947909116744995, 0.41515567898750305, -0.344515323638916, 0.128156378865242, 0.28800341486930847, 0.4941043555736542, -0.2251301407814026, 0.45458242297172546, 0.801194965839386, 0.794023871421814, -0.2702779173851013, -1.3179625272750854, 0.17269742488861084, -0.3156578540802002, -0.1536126732826233, -0.10060203075408936, -0.6864052414894104, 0.7188704609870911, -0.26003941893577576, -0.19493108987808228, -0.11788180470466614, 0.6015492081642151, 0.6889217495918274, 0.5506718754768372, 0.361234188079834, 0.8432151675224304, 0.9829146862030029, -0.025700533762574196, 0.8871460556983948, -0.16131342947483063, 0.20627053081989288, 1.0391685962677002, -0.5499793887138367, 0.9235522150993347, 0.6085001230239868, -0.30833032727241516, 0.613994836807251, 0.49473729729652405, 0.3225836753845215, 0.5786618590354919, 0.17435024678707123, -0.17659997940063477, -0.24648433923721313, -0.22323386371135712, -0.6489031910896301, 0.8392754793167114, 0.5499003529548645, 0.12525515258312225, -0.539625346660614, 0.16856242716312408, 0.29475319385528564, 0.16594722867012024, 0.009790265932679176, 0.5944335460662842, -0.1206153929233551, -0.8931549787521362, 0.5801793336868286, -0.1514851152896881, 0.44834503531455994, -0.3273213505744934, -0.1068265438079834, -0.48911476135253906, 0.1469600945711136, 0.0806702971458435, -0.9031950831413269, -0.03639364615082741, -0.011438969522714615, 0.28093913197517395, -0.23072078824043274, 0.49756985902786255, -0.49787965416908264, -0.4219765365123749, 0.14670364558696747, 0.5668607354164124, 0.46408191323280334, 0.23979008197784424, -0.3879983127117157, -0.14263196289539337, -0.26448819041252136, -0.1163889616727829, -0.007326498627662659, 0.8396105170249939, -0.24938100576400757, 0.7084019780158997, 0.5884519815444946, 0.3644353151321411, -0.16943836212158203, -0.11838531494140625, 0.6693547964096069, -0.6407918334007263, -0.6643218398094177, -0.2789161205291748, 0.3884207010269165, -0.33069083094596863, -0.6800286173820496, 0.9273767471313477, 0.6939946413040161, 1.1430495977401733, 0.04315583407878876, 0.9301636219024658, 0.24011389911174774, 0.7206479907035828, -0.3962804675102234, 0.6951218843460083, -0.5630468726158142, 0.19411210715770721, -0.518238365650177, -0.6334108114242554, -0.4058073163032532, 0.6622180342674255, -0.698478639125824, 0.011450872756540775, 0.7303746342658997, 0.7417516708374023, -0.4769616425037384, 0.21940959990024567, 0.2905341684818268, -0.008646617643535137, 0.2282360941171646, 0.8596562743186951, 0.8947277069091797, -0.19569599628448486, 0.6330186724662781, -0.3171902596950531, 0.08576001971960068, -0.269020140171051, -1.006615400314331, -0.6643156409263611, -0.48207995295524597, -0.11979035288095474, -0.21886025369167328, 0.2670495808124542, 0.46887895464897156, 0.5251068472862244, -0.8765475153923035, -0.3256170153617859, -0.3506399095058441, 0.2736271619796753, -0.40914273262023926, -0.283978134393692, 0.5234225988388062, -0.3497091233730316, -0.561996340751648, 0.21446718275547028, 0.41415104269981384, -0.2462332546710968, -0.24491088092327118, -0.43178680539131165, -0.1495237797498703, -0.11261552572250366, 0.4193423092365265, 0.4400019347667694, -1.014050006866455, -0.3834655284881592, 0.10817624628543854, -0.31851232051849365, 0.060557927936315536, 0.7806639671325684, -0.7639051675796509, 0.9290086030960083, 0.3272133767604828, 0.42753028869628906, 0.3448773920536041, -0.24715040624141693, 0.7136467099189758, -0.3659161925315857, 0.33172085881233215, 0.1510474532842636, 0.3967130184173584, 0.5656517148017883, 0.2509823739528656, 0.5218730568885803, 0.3471450209617615, -0.36485356092453003, -1.1356096267700195, 0.4393506944179535, -0.6029971837997437, -0.19489456713199615, 1.1625535488128662, -0.10301689058542252, 0.17779122292995453, -0.5648045539855957, -0.17536422610282898, -0.02643662877380848, -0.3003215193748474, 0.385772705078125, 1.0128254890441895, 0.10286687314510345, -0.3270682394504547, -0.7345854640007019, 0.5603187084197998, 0.7231130003929138, -0.8136027455329895, 0.45392313599586487, 0.3925933837890625, 0.3302834928035736, -0.055956318974494934, 0.724420428276062, -0.024648092687129974, 0.8493162393569946, 0.41824954748153687, -0.29050248861312866, 0.05339442938566208, -0.29695233702659607, 0.028269130736589432, 0.1688813716173172, 0.1589546650648117, -0.2873387634754181 ]
http://arxiv.org/abs/2405.18369v1
http://arxiv.org/pdf/2405.18369v1
PromptWizard: Task-Aware Agent-driven Prompt Optimization Framework
2024-05-28T17:08:31
2024-05-28T17:08:31
Eshaan Agarwal, Vivek Dani, Tanuja Ganu, Akshay Nambi
cs.CL
cs.CL, cs.AI, cs.LG
Large language models (LLMs) have revolutionized AI across diverse domains, showcasing remarkable capabilities. Central to their success is the concept of prompting, which guides model output generation. However, manual prompt engineering is labor-intensive and domain-specific, necessitating automated solutions. This paper introduces PromptWizard, a novel framework leveraging LLMs to iteratively synthesize and refine prompts tailored to specific tasks. Unlike existing approaches, PromptWizard optimizes both prompt instructions and in-context examples, maximizing model performance. The framework iteratively refines prompts by mutating instructions and incorporating negative examples to deepen understanding and ensure diversity. It further enhances both instructions and examples with the aid of a critic, synthesizing new instructions and examples enriched with detailed reasoning steps for optimal performance. PromptWizard offers several key features and capabilities, including computational efficiency compared to state-of-the-art approaches, adaptability to scenarios with varying amounts of training data, and effectiveness with smaller LLMs. Rigorous evaluation across 35 tasks on 8 datasets demonstrates PromptWizard's superiority over existing prompt strategies, showcasing its efficacy and scalability in prompt optimization.
[ -0.20972298085689545, -0.7830999493598938, 0.5286665558815002, 0.6615056395530701, 0.07028639316558838, 0.2138144075870514, -0.2509244680404663, 0.17223672568798065, -0.01264280267059803, 0.3631470203399658, -1.31503164768219, -0.4389573931694031, -0.25161492824554443, 0.5213582515716553, -0.19176413118839264, 0.8002306222915649, 0.09084473550319672, -0.1473061740398407, -0.3318294286727905, 0.08358337730169296, -0.7078204154968262, -0.056994128972291946, -0.9586880803108215, -0.20133161544799805, 0.6745269894599915, 0.6669498682022095, 0.639391303062439, 0.6139499545097351, -0.029999785125255585, 0.40604889392852783, 0.13307583332061768, 0.4455295205116272, -0.5567423701286316, 0.6675238609313965, -0.12983810901641846, -0.20450371503829956, -0.14180175960063934, -0.18913954496383667, 0.29057905077934265, 0.5951258540153503, -0.005996795371174812, 0.14558517932891846, -0.03579430654644966, 0.3233973979949951, -0.6515421271324158, 0.14972852170467377, -0.5059025287628174, 0.024124495685100555, 0.05597221106290817, -0.6093906164169312, -0.49195006489753723, -0.20051413774490356, -0.005155741702765226, -1.0081640481948853, 0.17455464601516724, 0.28494542837142944, 0.19220228493213654, 0.5730821490287781, -0.33855101466178894, -0.21247854828834534, -0.45262154936790466, 0.7524158358573914, -0.3810465633869171, 0.13444535434246063, -0.022153936326503754, 0.43165940046310425, -0.5964600443840027, -0.8082726001739502, -0.48022326827049255, -0.4847492277622223, 0.30982986092567444, 0.02941267006099224, -0.3238322138786316, 0.3202459216117859, 0.49464482069015503, -0.11595263332128525, -0.748217761516571, 0.25565487146377563, 0.17197658121585846, -0.37964102625846863, 0.6710155010223389, 0.5986555814743042, 0.42337146401405334, 0.03487643599510193, -0.3135589063167572, 0.029197148978710175, -0.4294697344303131, 0.38897794485092163, 0.36048203706741333, 0.6628230810165405, 0.029415691271424294, 0.4312523305416107, -0.3384312391281128, 0.6491086483001709, 0.30901286005973816, -0.4002765417098999, 0.14990568161010742, -0.17038756608963013, 0.1521390974521637, -0.1617908477783203, 0.7047573924064636, 0.34280791878700256, 0.15115928649902344, -0.10907071828842163, -0.5344138145446777, -0.09467276930809021, 0.12255024909973145, -0.9180182814598083, 0.010543244890868664, 0.5262336730957031, -0.2641315460205078, -0.34918105602264404, -0.5830567479133606, -0.5742476582527161, -0.77811598777771, -0.3644000291824341, 0.30673450231552124, -0.3147236108779907, -0.059246037155389786, -0.07402600347995758, -0.24657031893730164, -0.1599249243736267, 0.5789777636528015, -0.6959621906280518, -0.06592883169651031, 0.6644781827926636, 0.5599616169929504, -0.23833201825618744, -0.5368065237998962, -0.9986875057220459, -0.13590064644813538, -0.4230039417743683, 0.668895959854126, -0.6501505374908447, -0.7459564208984375, 0.043332722038030624, -0.18370097875595093, -0.0901140347123146, -0.2939740717411041, 0.6212167739868164, -0.445696622133255, 0.164711132645607, -0.13255000114440918, -0.5080702900886536, -0.1036423072218895, 0.257069855928421, -0.6897659301757812, 1.0763777494430542, 0.29738810658454895, -0.46909359097480774, 0.14084340631961823, -0.6279966831207275, -0.41899141669273376, 0.3746573328971863, -0.13510677218437195, 0.015785111114382744, 0.08542225509881973, 0.30729350447654724, 0.33283817768096924, -0.6765966415405273, 0.4512050449848175, -0.05573749542236328, -0.3987256586551666, -0.005020202603191137, -0.3775511085987091, 0.9112229943275452, 0.271515816450119, -0.268170028924942, 0.6687141060829163, -0.6847372055053711, -0.02472595125436783, 0.16104890406131744, -0.10421505570411682, 0.08401603251695633, -0.17101989686489105, 0.08758703619241714, 0.05984840169548988, 0.2374492734670639, -0.2956063151359558, 0.32005956768989563, -0.33079323172569275, 0.31918543577194214, 0.8415197730064392, 0.213492751121521, 0.6395207643508911, -0.5201718211174011, 1.1097911596298218, -0.32897818088531494, 0.32216277718544006, -0.6865286827087402, -0.45125508308410645, -0.3288699984550476, -0.6522155404090881, -0.21529661118984222, 0.6606272459030151, -1.0247251987457275, 0.29694750905036926, 0.09757436811923981, -0.5604934692382812, -0.37140092253685, 0.02389824576675892, -0.03244894742965698, 0.9251225590705872, 0.14182646572589874, 0.35466328263282776, -0.36631396412849426, -0.7084194421768188, -0.3963336646556854, -0.14512208104133606, 0.10574093461036682, 0.22306109964847565, 0.15058422088623047, -0.5350644588470459, 1.1183803081512451, -0.1933983862400055, 0.14465922117233276, -0.49709057807922363, -0.06207606941461563, 0.5052003860473633, 0.38288161158561707, 0.5098470449447632, -0.7278136014938354, -0.40008506178855896, -0.3381126821041107, -0.4585106074810028, -0.5255035758018494, -0.517723560333252, -0.08543211966753006, -0.005574462469667196, 0.31887462735176086, -0.8948876857757568, 0.16436420381069183, 0.05349642410874367, -0.4452322721481323, 0.7617952227592468, -0.12912389636039734, 0.17394615709781647, -0.8692054748535156, 0.021439792588353157, -0.045107387006282806, -0.22288542985916138, -0.6979582905769348, 0.12283233553171158, -0.0179902371019125, -0.5088821053504944, -0.23191452026367188, 1.1564711332321167, -0.48486387729644775, 0.2599017918109894, -0.4463713765144348, 0.015316097065806389, -0.01357127632945776, 0.5674957633018494, -0.15996809303760529, 1.004823923110962, 0.7179780602455139, -0.5238182544708252, 0.5325137376785278, 0.158457413315773, 0.11931875348091125, 0.5970267057418823, -0.6943743228912354, 0.07124263048171997, -0.2704847753047943, 0.13495689630508423, -1.0286014080047607, -0.34587129950523376, 0.35041412711143494, -0.38262778520584106, 0.1914079636335373, 0.10580988973379135, -0.41945239901542664, -0.5673461556434631, -0.5201382637023926, 0.3747316896915436, 0.620096743106842, -0.606100857257843, 1.0094619989395142, -0.027042841538786888, -0.26181110739707947, -0.8082822561264038, -0.013305545784533024, 0.06171971559524536, -0.11992166191339493, -0.590735912322998, 0.2731796205043793, -0.3500121235847473, -0.2941315472126007, -0.3458940088748932, -0.14682483673095703, 0.18044434487819672, 0.4163379967212677, 0.35298746824264526, 0.04064717888832092, 0.18981309235095978, 0.22993753850460052, 0.1822461634874344, -0.16632921993732452, 0.08826930075883865, -0.3568735420703888, 0.5480689406394958, 0.2712344527244568, -0.37604305148124695, -0.3950422704219818, 0.5572696328163147, 0.36157864332199097, -0.17106500267982483, 0.10718493163585663, 0.5917084217071533, -0.32754528522491455, -0.9205729365348816, -0.28417494893074036, -0.3629834055900574, -0.6516960859298706, 0.5984448194503784, -0.5099368095397949, -0.9240230321884155, 0.3562425374984741, -0.2840712368488312, 0.4973711669445038, 0.17110326886177063, 0.5795067548751831, 0.08897249400615692, 0.9909476637840271, 0.7336541414260864, -0.033312540501356125, 0.5269452333450317, 0.09117551147937775, 0.14815892279148102, -0.18009302020072937, -0.20755214989185333, -0.5752583146095276, -0.07938691228628159, -0.42804139852523804, -0.5968507528305054, 0.4616716504096985, -0.09147656708955765, -0.5583065748214722, 0.001688774791546166, -0.5810617804527283, 0.40991538763046265, 0.6033686399459839, -0.15904837846755981, 0.10854319483041763, -0.12594406306743622, -0.02684408240020275, 0.06744720041751862, -0.9281489849090576, -0.5408387184143066, 0.8715291619300842, 0.1808786392211914, 0.6489294767379761, -0.3130218982696533, 0.7621979713439941, 0.6056385040283203, 0.19557949900627136, -0.8517137765884399, 0.8343903422355652, 0.3545089066028595, -0.34221866726875305, -0.3153629004955292, -0.3930547535419464, -1.0165504217147827, -0.025762435048818588, -0.1782057136297226, -0.7057921886444092, 0.0029716945718973875, 0.21219046413898468, -0.41289791464805603, -0.14177672564983368, -0.5226488709449768, 0.8403679728507996, -0.1288190335035324, -0.31099069118499756, -0.11594104021787643, -0.5533963441848755, 0.1314176619052887, -0.07462556660175323, 0.20334988832473755, -0.3624724745750427, -0.4871118664741516, 0.41647958755493164, -0.5738582015037537, 0.7799832820892334, -0.3815878927707672, -0.1630711406469345, 0.4209643006324768, 0.2685434818267822, 0.7450571656227112, 0.17737455666065216, -0.27777963876724243, -0.4435131251811981, -0.34681257605552673, -0.34741008281707764, -0.7585171461105347, 0.6231136322021484, -0.5912501215934753, -0.848818838596344, 0.04359191283583641, -0.8249093294143677, -0.4218779504299164, 0.23404516279697418, 0.26734933257102966, 0.6821852922439575, -0.1465412974357605, -0.4777887463569641, 0.5072207450866699, -0.29534927010536194, 0.8382992744445801, 0.48675084114074707, -0.06387288868427277, -0.25081244111061096, 0.8872863054275513, -0.30704164505004883, -0.22743241488933563, 0.41750138998031616, 0.09912055730819702, -0.21072332561016083, -0.5260578989982605, -0.42019015550613403, -0.0625472441315651, -0.8861578106880188, -0.2678515315055847, -0.7702569365501404, 0.2224913388490677, -0.357914537191391, -0.48085129261016846, -0.21182510256767273, -0.329974502325058, -0.4232231080532074, -0.00389854540117085, 0.6283634901046753, 0.3509800136089325, 0.08581404387950897, 0.3864985704421997, -0.6283900737762451, 0.15707631409168243, 0.21858498454093933, -0.17793221771717072, 0.05584973469376564, -0.33982595801353455, 0.12298893183469772, -0.35773855447769165, -0.1697283685207367, -0.9396394491195679, 0.3868405520915985, 0.10672098398208618, 0.8393434286117554, 0.32393303513526917, 0.44788050651550293, 0.24458804726600647, -0.5305979251861572, 0.7924818396568298, 0.11258261650800705, -0.9485384225845337, 0.421036034822464, -0.4913936257362366, 0.4865574538707733, 0.5530328154563904, 0.37506991624832153, -0.4388508200645447, -0.36938461661338806, -0.30956605076789856, -1.0793520212173462, 0.49736759066581726, -0.03157375007867813, 0.2851905822753906, -0.1357293725013733, 0.4354236125946045, 0.3977493941783905, 0.39865145087242126, -0.26472973823547363, -0.28277769684791565, 0.026253975927829742, -0.597029983997345, -0.035477813333272934, -0.06430040299892426, -0.16690081357955933, 0.027895238250494003, 0.622873842716217, -0.5418868660926819, 0.31060007214546204, 0.06359443813562393, -0.16160783171653748, -0.0011459279339760542, 0.012889174744486809, 0.6044104695320129, 0.5682278275489807, 0.3188544809818268, -0.2524190843105316, 0.17097970843315125, -0.39659708738327026, 0.4284725785255432, 0.33230409026145935, -0.22824755311012268, 0.04863978922367096, 0.6569766998291016, 0.7878379821777344, 0.004598838277161121, -1.028437852859497, 0.48392394185066223, -0.0446372851729393, 0.08978122472763062, -0.19057562947273254, 0.4385564923286438, -0.15059517323970795, 0.6882327795028687, 0.7610341310501099, 0.15112519264221191, 0.472093790769577, -0.10930860042572021, 0.18800370395183563, 0.3584641218185425, 0.020113492384552956, -0.22489520907402039, 0.7613607048988342, 0.5110395550727844, -0.746370792388916, 0.35607606172561646, -0.3532858192920685, -0.4462219774723053, 0.8979887962341309, 0.39583805203437805, 1.2705210447311401, -0.14502251148223877, 0.31924304366111755, 0.41482439637184143, 0.21420663595199585, 0.10041912645101547, 0.4457445740699768, -0.3773728013038635, -0.4774577021598816, -0.3707773983478546, -0.2544252276420593, -0.5777552127838135, -0.4291376769542694, -0.29958871006965637, 0.2871902585029602, -0.5297982692718506, -0.3355909287929535, -0.306365042924881, 0.06405546516180038, -0.7926392555236816, 0.10582558810710907, -0.14260081946849823, 1.1937026977539062, -0.4142185151576996, 0.38448286056518555, 0.6753785610198975, -0.14366266131401062, -0.995882511138916, 0.054717373102903366, 0.14468710124492645, -0.9361405372619629, 0.4489399492740631, 0.42061999440193176, -0.17736324667930603, 0.19787321984767914, -0.630233108997345, -0.6433397531509399, 1.1074310541152954, 0.5759387016296387, -0.7101482152938843, -0.20505046844482422, -0.16697587072849274, 0.2604641616344452, -0.6317568421363831, 0.6360165476799011, 0.29941365122795105, 0.44349896907806396, 0.08695871382951736, -0.6949455142021179, 0.2756875157356262, -0.4255509376525879, 0.21616336703300476, -0.1674336940050125, -0.6442532539367676, 0.7365631461143494, -0.5685978531837463, -0.21719472110271454, 0.27626389265060425, 0.6314045786857605, 0.5534319281578064, 0.473548948764801, 0.5095213055610657, -0.005690206773579121, 1.0434238910675049, 0.05485830083489418, 1.0793979167938232, -0.5502750873565674, -0.17611218988895416, 0.9692657589912415, -0.4910934865474701, 0.11647478491067886, 0.44916728138923645, 0.1358155608177185, 0.3052966594696045, 0.9088442921638489, 0.12676310539245605, 0.5204439163208008, 0.3074706196784973, -0.4168221950531006, -0.379184752702713, -0.3427656888961792, -0.09015427529811859, 0.1834269016981125, 0.042687464505434036, -0.07214856147766113, -0.3092937171459198, 0.4285053610801697, -0.0018499509897083044, 0.17305304110050201, -0.5366639494895935, 0.5612062215805054, -0.16023024916648865, -0.7329578399658203, 0.5056918859481812, -0.020918188616633415, 0.6935542225837708, -0.5638499855995178, 0.13543498516082764, -0.4857148230075836, -0.08297570794820786, 0.08760546892881393, -0.39903581142425537, -0.19886118173599243, 0.02867560088634491, -0.22683903574943542, -0.32699206471443176, 0.7698270678520203, -0.2345413863658905, -0.15269017219543457, 0.15405888855457306, 0.6055635809898376, -0.1916157454252243, -0.0536162406206131, -0.7973238825798035, 0.11787982285022736, 0.010883420705795288, -0.6225937604904175, -0.13185463845729828, 0.7714585661888123, -0.21646501123905182, 1.1759982109069824, 0.44282427430152893, -0.15867698192596436, -0.32044342160224915, 0.04398280754685402, 1.0394564867019653, -0.617581844329834, -0.6979852318763733, -0.8360635638237, 0.7432647943496704, -0.11204886436462402, -0.534426748752594, 0.768636167049408, 0.30988380312919617, 0.3370591402053833, -0.12264879792928696, 0.7473568320274353, 0.29792842268943787, 0.35165345668792725, -0.16709540784358978, 0.3606780469417572, -0.44058623909950256, 0.2427598536014557, -0.1644086092710495, -0.9554750919342041, 0.04442160204052925, 0.2727576792240143, -0.012605168856680393, 0.24813392758369446, 0.3003193736076355, 0.9758290648460388, 0.48201918601989746, 0.11696523427963257, 0.2517479956150055, -0.2458244115114212, 0.21589979529380798, 0.5717023015022278, 0.9524989128112793, 0.10276469588279724, 0.30841225385665894, -0.03502249717712402, -0.3335782587528229, -0.17574012279510498, -0.9051074385643005, -1.1405596733093262, -0.5725495219230652, -0.34481626749038696, -0.08105964213609695, 0.13846811652183533, 1.5738288164138794, 0.6228598952293396, -0.4541064202785492, -0.14204908907413483, -0.10371903330087662, 0.30296462774276733, -0.1488744616508484, -0.24268944561481476, -0.04380060359835625, -0.779158353805542, -0.754796028137207, 0.8022189736366272, 0.293902724981308, -0.006638772785663605, -0.14460696280002594, -0.2072862982749939, 0.3662862479686737, 0.43002113699913025, 0.5023136138916016, 0.3286462724208832, -0.4388408958911896, 0.0776781439781189, 0.23784402012825012, -0.30717113614082336, -0.3538171052932739, 0.8306247591972351, -0.756287693977356, 0.444712370634079, 0.4764379858970642, 0.9279963970184326, 0.11115533113479614, -0.022984128445386887, 0.841863751411438, -0.8133265376091003, 0.3970051109790802, 0.7213573455810547, 0.28223875164985657, 0.23623749613761902, -0.5997110605239868, 0.4284253418445587, 0.15345501899719238, -0.42427393794059753, -0.9367005825042725, 0.1423293650150299, -0.9135758876800537, -0.5312524437904358, 1.2625116109848022, 0.06955695897340775, -0.23671598732471466, 0.08163456618785858, -0.47186213731765747, 0.11401088535785675, -0.8556597232818604, 0.36492037773132324, 0.25028422474861145, -0.2083633691072464, -0.3732641935348511, -0.29121506214141846, 0.7959127426147461, 0.4129399061203003, -0.8694518804550171, 0.046551112085580826, 0.7989282608032227, 0.14423952996730804, -0.11945986747741699, 0.8012516498565674, 0.5406601428985596, 0.5016533732414246, 0.05436467006802559, 0.08766685426235199, -0.4670640826225281, -0.4052567183971405, -0.4239727854728699, 0.3963147699832916, 0.1385168880224228, 0.018567699939012527 ]
http://arxiv.org/abs/2406.00048v1
http://arxiv.org/pdf/2406.00048v1
Towards a theory of how the structure of language is acquired by deep neural networks
2024-05-28T17:01:22
2024-05-28T17:01:22
Francesco Cagnetta, Matthieu Wyart
cs.CL
cs.CL, cond-mat.dis-nn, cs.LG
How much data is required to learn the structure of a language via next-token prediction? We study this question for synthetic datasets generated via a Probabilistic Context-Free Grammar (PCFG) -- a hierarchical generative model that captures the tree-like structure of natural languages. We determine token-token correlations analytically in our model and show that they can be used to build a representation of the grammar's hidden variables, the longer the range the deeper the variable. In addition, a finite training set limits the resolution of correlations to an effective range, whose size grows with that of the training set. As a result, a Language Model trained with increasingly many examples can build a deeper representation of the grammar's structure, thus reaching good performance despite the high dimensionality of the problem. We conjecture that the relationship between training set size and effective range of correlations holds beyond our synthetic datasets. In particular, our conjecture predicts how the scaling law for the test loss behaviour with training set size depends on the length of the context window, which we confirm empirically for a collection of lines from Shakespeare's plays.
[ -0.22545897960662842, -0.6575471758842468, 0.34023353457450867, -0.03215263783931732, -0.10686130076646805, -0.12399657815694809, -0.3603246510028839, -0.3394368886947632, 0.08363375812768936, 0.1508931666612625, -0.3154107928276062, -0.1204325333237648, -0.49837952852249146, -0.319532573223114, -0.6166830658912659, 0.899273693561554, 0.31175923347473145, 0.07713976502418518, -0.3726885914802551, 0.19350451231002808, -0.34864354133605957, -0.6329934000968933, -0.5990737080574036, -0.17429262399673462, 0.588660478591919, 0.30449625849723816, 0.7395167946815491, 0.8883906006813049, 0.558310866355896, 0.20364902913570404, -0.30465272068977356, -0.10228065401315689, -0.468000203371048, 0.08926009386777878, -0.007130232639610767, -0.9009845852851868, -0.07793600112199783, 0.17532412707805634, 0.9129430651664734, 1.2232367992401123, 0.24897657334804535, 0.010715114884078503, 0.13398543000221252, 0.5922307968139648, -0.27353233098983765, 0.5227283835411072, -0.48416414856910706, 0.33235612511634827, -0.24877677857875824, 0.005763343535363674, -0.4857753813266754, 0.07323803752660751, 0.2689628601074219, -0.519264817237854, 0.2284688502550125, -0.10575999319553375, 0.7033892273902893, -0.08212966471910477, -0.6259483695030212, -0.004084838088601828, -0.5682699680328369, 0.6485583782196045, -0.4108157157897949, 0.3576347827911377, 0.6242831349372864, 0.23909085988998413, -0.4382678270339966, -0.7631879448890686, -0.46939095854759216, -0.4794755280017853, -0.3068828284740448, -0.05815482512116432, 0.10511619597673416, 0.10648062825202942, 0.10655183345079422, 0.7095159888267517, -0.5114196538925171, 0.0318177156150341, -0.42925968766212463, -0.052450262010097504, 0.49965158104896545, 0.09316413104534149, 0.2430090755224228, -0.18313758075237274, -0.14730936288833618, -0.25630301237106323, -0.7626845240592957, 0.15188956260681152, 0.22171472012996674, 0.7739655375480652, -0.2398969531059265, 0.4905100166797638, 0.19136175513267517, 0.55238276720047, 0.10782890766859055, 0.07322516292333603, 0.09805374592542648, -0.4735430181026459, -0.28868988156318665, 0.02503112517297268, 0.7779828906059265, -0.011754047125577927, 0.4718555510044098, -0.41549742221832275, 0.1363903284072876, 0.05202268436551094, -0.005696453619748354, -0.7030090689659119, -0.3655056953430176, -0.1178784891963005, -0.41094064712524414, -0.41087979078292847, 0.12632592022418976, -0.3485196530818939, -0.16397801041603088, -0.3559305667877197, 0.12476521730422974, -0.5849704146385193, -0.37645041942596436, -0.04688918963074684, -0.11373519897460938, 0.22948919236660004, -0.31326213479042053, -1.1113415956497192, 0.40449848771095276, 0.7642581462860107, 0.746065080165863, 0.03327347710728645, -0.441977322101593, -0.5825980305671692, -0.0432250089943409, -0.8952485918998718, 0.32860225439071655, -0.6875621676445007, -0.2887878119945526, 0.003268900327384472, 0.0252667386084795, -0.14319045841693878, -0.21460261940956116, 0.2663405239582062, -0.48086804151535034, 0.2466924786567688, -0.3750516176223755, -0.7430761456489563, 0.11677739769220352, 0.14060406386852264, -0.7584683299064636, 0.6777229309082031, 0.0868423730134964, -0.6764707565307617, 0.5472056269645691, -0.26133280992507935, -0.6879059076309204, 0.12688477337360382, -0.4715653955936432, -0.23154570162296295, 0.6069091558456421, -0.0295258741825819, 0.5077711343765259, -0.28382745385169983, 0.37370914220809937, -0.36946335434913635, -0.4712708592414856, 0.3345072269439697, -0.5203356146812439, 0.835593044757843, 0.15044815838336945, -0.25561460852622986, -0.25338393449783325, -0.8226498365402222, 0.13550245761871338, -0.16744297742843628, -0.4905242621898651, -0.21367402374744415, 0.17788997292518616, -0.24212504923343658, 0.2270398736000061, 0.012193513102829456, -0.42807698249816895, 0.05338383838534355, -0.6707947850227356, 0.4267822206020355, 0.7369011640548706, -0.2147650569677353, 0.6849445700645447, -0.0778064951300621, 0.3183280825614929, 0.12019840627908707, -0.07511253654956818, -0.23155072331428528, -0.35676172375679016, -0.6643337607383728, -0.074961356818676, 0.47473108768463135, 0.13255423307418823, -0.21992862224578857, 0.4142482578754425, -0.449319452047348, -0.17385388910770416, -0.0774838775396347, 0.0288984514772892, 0.3896731734275818, 0.28645119071006775, 0.03726458176970482, -0.23649068176746368, -0.6611151099205017, -0.8479465842247009, -0.054823361337184906, -0.506242573261261, -0.0248726774007082, 0.2890496551990509, 0.38396376371383667, 0.038707830011844635, 0.8372904658317566, -0.1317271590232849, -0.2833828628063202, -0.20678450167179108, -0.09617391973733902, 0.3688128590583801, 0.6750802993774414, 0.708836019039154, -0.6405868530273438, -0.3720400333404541, 0.26475971937179565, -0.597693920135498, 0.37592050433158875, -0.06370455771684647, 0.0048306784592568874, -0.05308099091053009, 0.8212823271751404, -0.6425409913063049, 0.3249737620353699, 0.6807345151901245, -0.4299353361129761, 0.39186811447143555, -0.21010227501392365, -0.39974305033683777, -1.2577557563781738, 0.0808514803647995, -0.2938859760761261, 0.044999368488788605, -0.6866250038146973, 0.13001005351543427, -0.06294466555118561, -0.04572371765971184, -0.2272968590259552, 0.41326799988746643, -0.3717805743217468, -0.25796908140182495, -0.08463684469461441, -0.14492012560367584, -0.09347855299711227, 0.5101683735847473, -0.08925016969442368, 0.8230568766593933, 0.6027848720550537, -0.5952473282814026, 0.0681663528084755, 0.06264457106590271, -0.3605656623840332, 0.18934032320976257, -0.37373244762420654, -0.1509283185005188, -0.20025180280208588, 0.15035521984100342, -1.1125367879867554, -0.36095210909843445, -0.3130197823047638, -0.7307463884353638, 0.405030220746994, -0.13569748401641846, -0.39340558648109436, -0.18207567930221558, -0.017199089750647545, 0.590268075466156, 0.4322894513607025, -0.5679926872253418, 0.4462096095085144, 0.23430322110652924, 0.29616767168045044, -0.6485252976417542, -1.0581752061843872, 0.16265691816806793, -0.10096768289804459, -0.42097145318984985, 0.4028933644294739, 0.020709369331598282, -0.3611682653427124, -0.0036241780035197735, -0.01307003665715456, -0.21078793704509735, 0.17000962793827057, 0.40910759568214417, -0.12355111539363861, -0.5887857675552368, 0.642777681350708, -0.17423667013645172, 0.15312452614307404, 0.45081302523612976, -0.6900012493133545, 0.5816535353660583, -0.4368533194065094, -0.0009458916611038148, -0.27194350957870483, 0.22273460030555725, 0.6772200465202332, -0.11013013869524002, 0.821997344493866, 0.35075366497039795, -0.3062008023262024, -0.27026504278182983, 0.03602041304111481, -0.07353223860263824, -0.46055832505226135, 0.44048362970352173, -0.7160353660583496, -0.8199158906936646, 0.7478809952735901, 0.2989603579044342, -0.248692587018013, 0.7396645545959473, 0.34800058603286743, -0.11636430025100708, 0.7806081175804138, 0.7489389181137085, -0.257333368062973, 0.622481107711792, -0.44462940096855164, 0.19641539454460144, -0.6058915257453918, -0.3392125964164734, -0.30152085423469543, -0.3415817618370056, -0.8185593485832214, -0.3635059595108032, -0.05967472493648529, 0.3523988425731659, -0.424641877412796, 0.39327093958854675, -0.0005165745387785137, 0.7162893414497375, 0.7316603660583496, -0.07599232345819473, -0.08280915766954422, 0.25822290778160095, -0.6990835070610046, 0.1667848527431488, -0.779793918132782, -0.048388224095106125, 1.1512434482574463, 0.2411426156759262, 0.2704000771045685, 0.11846347153186798, 0.5180959105491638, -0.08868655562400818, -0.04057207331061363, -0.9050466418266296, 0.40772947669029236, -0.40962716937065125, -0.7148697376251221, -0.44377601146698, -0.4279676079750061, -1.0767096281051636, 0.1324402242898941, -0.041468583047389984, -0.5352369546890259, 0.44043833017349243, 0.1894920915365219, -0.2660747468471527, 0.41168084740638733, -0.586458683013916, 0.7486163973808289, -0.1593620479106903, -0.37795311212539673, -0.02733723260462284, -0.768426239490509, 0.252667099237442, 0.010194052010774612, -0.015138410963118076, 0.23240694403648376, 0.2067277878522873, 0.6737829446792603, -0.5023627281188965, 0.9689072370529175, 0.10117453336715698, 0.012903546914458275, 0.5392784476280212, 0.38214123249053955, 0.3043297827243805, 0.15383175015449524, -0.040699705481529236, 0.020703615620732307, -0.07894374430179596, -0.5524092316627502, -0.5544113516807556, 0.5534369945526123, -0.8820395469665527, -0.2966345548629761, -0.37687164545059204, -0.6127047538757324, -0.32416388392448425, 0.18221956491470337, 0.308536171913147, 0.5102511644363403, -0.264140784740448, 0.5984832644462585, 0.3520616888999939, -0.031340982764959335, 0.6360270380973816, -0.06711629778146744, -0.1565939486026764, -0.3481551706790924, 0.6977699398994446, 0.10315275937318802, 0.3071180284023285, 0.7020615935325623, 0.3973352313041687, -0.20486892759799957, -0.617416262626648, -0.07335646450519562, 0.032618217170238495, -0.6532964706420898, -0.027105802670121193, -0.21172334253787994, -0.4715946614742279, -0.3285040855407715, 0.019593972712755203, -0.16823329031467438, -0.6462235450744629, -0.4750276207923889, -0.6172656416893005, 0.23985478281974792, 0.6251142621040344, -0.2257409542798996, 0.5869333148002625, -0.3015895485877991, -0.2715277075767517, 0.366842120885849, 0.5938450694084167, 0.07444420456886292, -0.5849295854568481, -0.3598601520061493, 0.03706476464867592, 0.16623537242412567, -0.3806309998035431, 0.3135240972042084, 0.3946554362773895, 0.39879003167152405, 0.6631632447242737, -0.3634856343269348, 0.8202073574066162, -0.559543251991272, 0.8629730939865112, 0.2642366290092468, -0.7004210948944092, 0.14595215022563934, -0.5487608313560486, 0.15181472897529602, 0.5393251180648804, 0.13189123570919037, -0.5138810873031616, -0.19136305153369904, -0.6493239998817444, -0.6450066566467285, 0.4763351380825043, 0.12453407794237137, 0.5249186754226685, -0.461378276348114, 0.6856274008750916, -0.05637962371110916, 0.13656003773212433, -0.788514256477356, -0.04822768643498421, -0.18567481637001038, -0.22023122012615204, -0.49471160769462585, -0.3030203878879547, 0.12595641613006592, -0.3716587424278259, 0.1146322712302208, -0.19104313850402832, 0.356192409992218, -0.11231217533349991, -0.07645799964666367, -0.0359756164252758, -0.06727468222379684, 0.4303697943687439, 0.627025842666626, -0.21864619851112366, 0.5606282353401184, -0.03502167388796806, -0.49533137679100037, -0.015348372049629688, -0.17300164699554443, 0.15917043387889862, -0.2000853717327118, 0.8055076599121094, 0.8964933156967163, -0.031003793701529503, -0.5132107734680176, 0.5360891222953796, -0.025768939405679703, -0.3917369842529297, -0.48401015996932983, -0.07808719575405121, 0.09992741793394089, 0.18748591840267181, 0.20726372301578522, -0.04212801530957222, -0.10959219187498093, -0.7870529890060425, 0.6057692170143127, 0.39546042680740356, -0.740123450756073, -0.5381088256835938, 0.5265640616416931, -0.17282971739768982, -0.2749689519405365, 0.7917882204055786, -0.0008507649763487279, -0.3653027415275574, 0.8549138903617859, 0.7411072850227356, 0.8168258666992188, -0.16295360028743744, 0.2497585415840149, 0.3832858204841614, 0.18114757537841797, -0.12355224788188934, 0.04081403464078903, -0.054451290518045425, -0.5829451680183411, -0.626600980758667, -0.7786390781402588, 0.16361035406589508, 0.39215943217277527, -0.3992743194103241, -0.062006670981645584, -0.6408457159996033, 0.01926620490849018, -0.11030921339988708, 0.04831836372613907, -0.5563088059425354, 0.40320461988449097, 0.16249655187129974, 0.750053882598877, -0.7596704363822937, 0.797847330570221, 0.0998530313372612, -0.48903411626815796, -0.9340918660163879, 0.02763393521308899, -0.20559248328208923, -0.7570541501045227, 1.0926430225372314, 0.24432796239852905, 0.08491171151399612, -0.23823854327201843, -0.3364088237285614, -1.2799694538116455, 0.7733687162399292, 0.5230353474617004, -0.4314430356025696, -0.2837887704372406, 0.3104342818260193, 0.9024251103401184, -0.5500022768974304, -0.047549378126859665, 0.5283111333847046, 0.015776874497532845, 0.15671871602535248, -0.6260607838630676, -0.06449612975120544, -0.4097055196762085, 0.10604675859212875, 0.26854750514030457, -0.4318675398826599, 1.3578873872756958, -0.14314797520637512, -0.2013195902109146, 0.19483226537704468, 0.6264683604240417, -0.22353185713291168, -0.267286479473114, 0.32548967003822327, 0.4997057616710663, 0.5926392674446106, 0.04552094265818596, 1.4074963331222534, -0.37865981459617615, 0.22260351479053497, 1.2412477731704712, 0.22915136814117432, 0.9330725073814392, 0.4842517077922821, -0.13619159162044525, 0.5922334790229797, 0.7064986228942871, 0.05810776352882385, 0.6453090310096741, 0.5906795263290405, -0.10175792127847672, -0.16362690925598145, -0.03604920208454132, -0.2009100317955017, 0.5226926207542419, 0.4225868880748749, -0.8394243717193604, 0.17414134740829468, -0.2560976445674896, -0.04874110594391823, -0.035164929926395416, -0.3061027228832245, 0.5870839953422546, 0.2038583755493164, -0.6973870396614075, 0.5941038131713867, -0.16441267728805542, 0.05904654040932655, -0.40999123454093933, 0.1983395367860794, -0.4696451723575592, 0.4536212086677551, 0.01408303715288639, -0.4545053541660309, 0.24936524033546448, -0.48984840512275696, -0.13274189829826355, -0.020694207400083542, 0.2809298038482666, -0.4797094762325287, -0.6634258031845093, 0.3583749234676361, 0.515489935874939, 0.1827283501625061, 0.23914462327957153, -0.23591138422489166, -0.3529854416847229, -0.2965663969516754, -0.23985938727855682, 0.40632930397987366, 0.504091203212738, -0.14704301953315735, 0.3007966876029968, 0.6539399027824402, 0.35788384079933167, 0.36943861842155457, 0.09499000012874603, 0.7575386166572571, -0.5981984734535217, -0.6158260703086853, -0.9886534214019775, 0.2070266455411911, -0.04120631888508797, -0.30650952458381653, 0.591987133026123, 0.6008942127227783, 1.1198124885559082, 0.07517316937446594, 0.6230164766311646, 0.18290461599826813, -0.0705455094575882, -0.3130107522010803, 0.43933260440826416, -0.4128652811050415, 0.040108922868967056, -0.125335231423378, -0.6701935529708862, -0.6583775281906128, 0.8003156781196594, -0.27350369095802307, -0.018012385815382004, 0.941749095916748, 0.6774591207504272, -0.17611299455165863, -0.20307022333145142, 0.38416871428489685, 0.16004331409931183, 0.3874374032020569, 0.6448025107383728, 0.6918286681175232, -0.43731674551963806, 0.68986976146698, -0.10967648029327393, 0.0469944067299366, -0.04612668231129646, -0.5991076231002808, -1.1458605527877808, -0.7056890726089478, 0.05648193508386612, -0.4039246141910553, 0.016618115827441216, 0.6737064719200134, 0.7640417814254761, -0.7554118633270264, -0.5415164828300476, -0.7834967374801636, -0.1380172222852707, -0.32971009612083435, -0.17202121019363403, 0.7100706696510315, -0.6406701803207397, -0.461196631193161, 0.4602588415145874, 0.11548834294080734, 0.3278310000896454, -0.19903630018234253, -0.0056250933557748795, -0.11514335125684738, 0.13152945041656494, 0.7615842819213867, 0.24979424476623535, -0.5531884431838989, -0.3628848195075989, 0.12594039738178253, 0.019437100738286972, 0.16953200101852417, 0.8779008388519287, -0.7265812754631042, 0.37312498688697815, 0.600918173789978, 0.8103065490722656, 0.46144139766693115, -0.358193039894104, 0.8564477562904358, -1.179261565208435, 0.2859320342540741, 0.0016285729361698031, 0.38132238388061523, 0.05974002555012703, -0.3620435297489166, 0.3859120309352875, 0.16870898008346558, -0.09855255484580994, -0.8450040221214294, 0.45266231894493103, -0.6407704949378967, -0.4804941713809967, 0.9690587520599365, -0.1063656285405159, -0.3530578315258026, 0.23141661286354065, 0.23332799971103668, 0.22023215889930725, -0.0840003713965416, 0.6699861288070679, 0.8484007716178894, -0.012242062017321587, -0.1533237099647522, -0.28481051325798035, 0.7980462908744812, 0.4909105896949768, -0.45416608452796936, 0.3347708284854889, 0.4264044761657715, 0.11213257163763046, 0.3857592046260834, 0.3769984841346741, -0.19084432721138, 0.14782831072807312, 0.3204343020915985, -0.49209752678871155, -0.049581579864025116, -0.644830048084259, -0.5279944539070129, 0.5626575946807861, 0.04224051907658577, -0.22737431526184082 ]
http://arxiv.org/abs/2405.18359v1
http://arxiv.org/pdf/2405.18359v1
Bridging the Gap: Dynamic Learning Strategies for Improving Multilingual Performance in LLMs
2024-05-28T16:56:42
2024-05-28T16:56:42
Somnath Kumar, Vaibhav Balloli, Mercy Ranjit, Kabir Ahuja, Tanuja Ganu, Sunayana Sitaram, Kalika Bali, Akshay Nambi
cs.CL
cs.CL, cs.AI, cs.LG
Large language models (LLMs) are at the forefront of transforming numerous domains globally. However, their inclusivity and effectiveness remain limited for non-Latin scripts and low-resource languages. This paper tackles the imperative challenge of enhancing the multilingual performance of LLMs without extensive training or fine-tuning. Through systematic investigation and evaluation of diverse languages using popular question-answering (QA) datasets, we present novel techniques that unlock the true potential of LLMs in a polyglot landscape. Our approach encompasses three key strategies that yield significant improvements in multilingual proficiency. First, by meticulously optimizing prompts tailored for polyglot LLMs, we unlock their latent capabilities, resulting in substantial performance boosts across languages. Second, we introduce a new hybrid approach that synergizes LLM Retrieval Augmented Generation (RAG) with multilingual embeddings and achieves improved multilingual task performance. Finally, we introduce a novel learning approach that dynamically selects the optimal prompt strategy, LLM model, and embedding model per query at run-time. This dynamic adaptation maximizes the efficacy of LLMs across languages, outperforming best static and random strategies. Additionally, our approach adapts configurations in both offline and online settings, and can seamlessly adapt to new languages and datasets, leading to substantial advancements in multilingual understanding and generation across diverse languages.
[ -0.36723849177360535, -0.8617624044418335, 0.5532456636428833, -0.021732434630393982, -0.12465119361877441, 1.0906989574432373, -0.39448806643486023, -0.43776950240135193, 0.17396597564220428, 0.028847992420196533, -0.7025442719459534, -0.49177229404449463, -0.3709575831890106, 0.21220816671848297, 0.22244159877300262, 0.7690321803092957, -0.09734738618135452, 0.16167113184928894, -0.4992711842060089, -0.2354869842529297, -0.5058122277259827, -0.49412521719932556, -0.5103480219841003, -0.2540544867515564, 0.7897958755493164, 0.41515660285949707, 0.5409639477729797, 0.3716624081134796, 0.14527909457683563, 0.24198909103870392, -0.28151488304138184, 0.7740445733070374, -0.679305911064148, 0.39775410294532776, -0.049799006432294846, -0.731479823589325, -0.20752371847629547, -0.3153572678565979, 0.8919934034347534, 0.6753482818603516, -0.3554171323776245, 0.1491905301809311, 0.0047964430414140224, 0.44175004959106445, -0.5631735324859619, 0.17272678017616272, -0.7276961207389832, 0.15116973221302032, -0.4254876673221588, -0.25760146975517273, -0.24612054228782654, -0.38877326250076294, -0.02102971263229847, -0.6735390424728394, -0.01784789003431797, -0.07616990059614182, 0.5182353258132935, 0.12404627352952957, -0.5292587280273438, -0.30491936206817627, -0.6885848641395569, 0.758970320224762, -0.46085745096206665, 0.4896084666252136, 0.03238772973418236, 0.4406367838382721, -0.06614972651004791, -0.5660415887832642, -0.3758295178413391, -0.10422626882791519, 0.14688627421855927, 0.1526155322790146, 0.14849428832530975, -0.22765767574310303, 0.212337926030159, 0.327150821685791, -0.5303875207901001, 0.34553372859954834, -0.051901474595069885, -0.15120893716812134, 0.4648391306400299, 0.2275819331407547, 0.4210365414619446, 0.05440596863627434, -0.2802574336528778, -0.11710886657238007, -0.7657967209815979, 0.5082317590713501, 0.541960597038269, 0.43178439140319824, -0.28108641505241394, 0.30826878547668457, 0.22037379443645477, 0.6160528063774109, -0.015541693195700645, -0.47306549549102783, 0.26045194268226624, -0.45630165934562683, 0.2786473333835602, -0.24329164624214172, 0.38420161604881287, -0.12633611261844635, 0.12206435203552246, -0.2102663516998291, -0.22733210027217865, -0.2110837996006012, -0.1349271535873413, -0.40668293833732605, 0.13901324570178986, -0.020266106352210045, -0.10454732179641724, -0.07091065496206284, -0.03303370997309685, -1.084761619567871, -0.5602052211761475, -0.23991413414478302, 0.18015511333942413, -0.20918132364749908, -0.5054409503936768, 0.139693483710289, 0.24110844731330872, 0.33538296818733215, 0.3999505639076233, -0.8102870583534241, 0.12432549148797989, 0.4753990173339844, 0.7328435778617859, -0.40989845991134644, -0.34797486662864685, -0.6252769231796265, 0.15803445875644684, -0.31394022703170776, 0.5843852162361145, -0.6806897521018982, -0.2627931535243988, 0.2922200560569763, -0.08596811443567276, -0.43971943855285645, -0.6973483562469482, 0.14392633736133575, -0.8149623870849609, 0.3736106753349304, -0.24716605246067047, -0.34420350193977356, -0.24868138134479523, 0.3254964053630829, -0.6712515950202942, 1.171756625175476, 0.03288409858942032, -0.6195077896118164, 0.005405860487371683, -0.5447486042976379, -0.40229374170303345, 0.04457049071788788, -0.22419697046279907, -0.27425986528396606, 0.11329060792922974, 0.40453290939331055, 0.14936552941799164, -0.2942432463169098, 0.20480424165725708, 0.0012667445698753, -0.27040374279022217, 0.23302330076694489, -0.3597760796546936, 0.658572256565094, 0.019082868471741676, -0.2736334800720215, 0.16791872680187225, -0.6586118936538696, 0.023445818573236465, 0.36542636156082153, -0.5865266919136047, -0.017497830092906952, -0.04495975375175476, -0.15642233192920685, 0.22247348725795746, 0.3324969410896301, -0.3069779872894287, 0.21620312333106995, -0.48161911964416504, 0.1708945780992508, 0.6946618556976318, -0.14214935898780823, 0.250550776720047, -0.31654101610183716, 1.124818205833435, -0.10237792134284973, -0.05066455155611038, -0.3868807256221771, -0.2978106737136841, -0.7337680459022522, -0.25921308994293213, 0.39739853143692017, 0.8301777839660645, -1.2573705911636353, -0.09721080958843231, -0.13458546996116638, -0.42627188563346863, -0.709036111831665, 0.514373779296875, 0.30727627873420715, 0.19334562122821808, 0.2810293138027191, -0.11596395820379257, -0.30545976758003235, -0.5363810658454895, -0.2927241623401642, -0.11361930519342422, 0.2929007411003113, 0.3588525652885437, 0.032885558903217316, -0.08196764439344406, 0.5394747257232666, -0.3659191131591797, 0.13839520514011383, -0.7142529487609863, -0.019655557349324226, 0.5057284235954285, -0.00021691063011530787, 0.4188612699508667, -0.899127721786499, -0.7400469779968262, 0.031322915107011795, -0.739338755607605, -0.21021738648414612, -0.1289331614971161, -0.031303245574235916, 0.18910165131092072, 0.5544082522392273, -0.4490051865577698, -0.18294033408164978, 0.6503347754478455, -0.11362814158201218, 0.6532317399978638, -0.30325618386268616, 0.002186724916100502, -1.0175434350967407, -0.2822762429714203, -0.22453726828098297, -0.29837727546691895, -0.6773026585578918, 0.2824208438396454, 0.0349925234913826, -0.26354238390922546, -0.7122927904129028, 0.7347894906997681, -0.8732908368110657, 0.08504832535982132, -0.09809070825576782, 0.2892613112926483, -0.12682312726974487, 0.3662124276161194, -0.2270413190126419, 0.9930862784385681, 0.7823907732963562, -0.4403984248638153, 0.5939667820930481, 0.14928306639194489, -0.38679924607276917, 0.1840466409921646, -0.35313066840171814, 0.15121334791183472, -0.41829001903533936, 0.19999009370803833, -0.9571482539176941, -0.09295689314603806, 0.030022021383047104, -0.20097282528877258, 0.556786835193634, -0.08125416934490204, -0.7053568363189697, -0.252949059009552, -0.33705997467041016, 0.652926504611969, 0.505262017250061, -0.5524622797966003, 0.7712845802307129, 0.3838662803173065, -0.5027708411216736, -0.5605329871177673, -0.34333571791648865, 0.12460528314113617, -0.34242677688598633, -0.6951865553855896, 0.35470494627952576, -0.16347013413906097, -0.27613914012908936, -0.5131980776786804, 0.07698385417461395, 0.24949388206005096, 0.1870027333498001, -0.31960463523864746, 0.13847431540489197, -0.2635115385055542, 0.3434922695159912, 0.1206524670124054, -0.08860357850790024, -0.2529677450656891, -0.17179031670093536, 0.7665299773216248, -0.13642238080501556, -0.43142232298851013, -0.05848314240574837, 0.37787729501724243, 0.6956733465194702, -0.6974314451217651, 0.7052013874053955, 0.8282026052474976, -0.12031085789203644, -0.352546364068985, -0.5625248551368713, -0.19335013628005981, -0.4584914743900299, 0.27749359607696533, -0.46982094645500183, -1.0491442680358887, 0.7063696384429932, -0.3726469874382019, -0.01350396778434515, -0.022177934646606445, 0.7035479545593262, 0.0353870652616024, 0.7837622165679932, 0.8129255175590515, 0.20745669305324554, 0.43981826305389404, -0.040814828127622604, 0.30716952681541443, -0.6651132702827454, -0.4736630320549011, -0.07804464548826218, -0.1598072350025177, -0.8456310033798218, -0.8810990452766418, 0.8372634053230286, 0.18033269047737122, 0.2215040624141693, -0.14990156888961792, 0.10200284421443939, 0.4800247251987457, 0.45421573519706726, 0.05548718571662903, 0.2768644690513611, 0.18034231662750244, -0.6283429265022278, -0.12003763765096664, -1.0594594478607178, -0.4171735346317291, 0.8105405569076538, 0.3513478934764862, 0.7547876834869385, 0.5243633389472961, 0.44377902150154114, 0.07408108562231064, -0.1630626618862152, -0.43094968795776367, 0.5686138868331909, 0.005088805221021175, -0.2830551564693451, -0.24200549721717834, -0.3733040392398834, -0.9990167021751404, 0.5477097034454346, -0.40352028608322144, -0.49101710319519043, -0.1237846314907074, 0.010171418078243732, -0.4187150299549103, 0.42149919271469116, -0.512955367565155, 0.6256918907165527, -0.6033000349998474, -0.7585186958312988, -0.13563172519207, -0.5411017537117004, 0.16642513871192932, -0.37920641899108887, 0.3298780918121338, -0.18943749368190765, -0.3803311288356781, 0.336730420589447, 0.12002222239971161, 0.9383318424224854, -0.13480930030345917, -0.38372132182121277, 0.24106985330581665, 0.07070606201887131, 0.5999612808227539, 0.17701172828674316, -0.1276341825723648, 0.09227225184440613, -0.238007590174675, -0.5573145747184753, -0.5653202533721924, 0.5785395503044128, -0.6754708886146545, -0.6960015296936035, -0.35725072026252747, -0.8124369382858276, -0.5710091590881348, 0.00389794260263443, -0.12748688459396362, 0.36695635318756104, -0.12585490942001343, -0.0649980679154396, 0.8764259219169617, -0.8050802946090698, 0.49815991520881653, 0.6777749061584473, -0.22832247614860535, -0.3892109990119934, 0.9212522506713867, 0.08298581093549728, 0.3452772796154022, 0.535114586353302, 0.17299789190292358, -0.6156356334686279, -0.6245834827423096, -0.6163535118103027, 0.6619118452072144, -0.6315821409225464, -0.04690171033143997, -0.6755885481834412, -0.019843166694045067, -0.449914813041687, 0.03260643780231476, -0.0855245515704155, -0.14050772786140442, -0.2012815922498703, -0.15470628440380096, 0.2875252664089203, 0.5256168246269226, -0.10791188478469849, 0.16762584447860718, -0.7848393321037292, 0.11551361531019211, 0.3173939883708954, 0.11661987751722336, 0.16858330368995667, -0.3434666097164154, -0.24103006720542908, -0.07094407826662064, -0.3276525139808655, -0.8219316601753235, 0.3211471140384674, 0.3255368769168854, 0.959341824054718, -0.01463114470243454, -0.03038642182946205, 0.589950442314148, -0.6369316577911377, 0.7729030847549438, 0.07799551635980606, -0.8191336393356323, 0.4990770220756531, -0.5186962485313416, 0.4737021327018738, 0.3618655502796173, 0.654617965221405, -0.674491822719574, -0.2717929780483246, -0.3715192377567291, -1.0834455490112305, 0.5277105569839478, -0.023894280195236206, 0.2298744171857834, 0.21298827230930328, 0.22023703157901764, 0.33749452233314514, 0.4086468815803528, -0.8139231204986572, -0.15392360091209412, 0.23366570472717285, -0.162894144654274, -0.2572818994522095, -0.23956018686294556, -0.08222665637731552, -0.20928998291492462, 0.4879312813282013, -0.415016770362854, -0.006991383153945208, -0.2299458533525467, -0.29774004220962524, 0.014911411330103874, 0.22623470425605774, 0.6172744035720825, 1.1009587049484253, 0.09627711772918701, 0.14433205127716064, 0.4561392664909363, -0.10624954104423523, 0.3139972984790802, 0.1514950543642044, -0.07175074517726898, 0.009235995821654797, 0.5028620362281799, 0.8155516982078552, 0.120867058634758, -0.9610556960105896, 0.2036229372024536, -0.053482428193092346, 0.3232724368572235, -0.266853928565979, -0.004541704896837473, 0.28973308205604553, 0.4128052890300751, 0.41560235619544983, -0.4647713899612427, -0.39667004346847534, -0.6233149766921997, 0.19330884516239166, 0.3919568657875061, -0.05451115965843201, -0.3139129877090454, 0.4557710587978363, 0.2544953227043152, -0.26306402683258057, 0.30577608942985535, -0.16410252451896667, -0.5677466988563538, 0.3902783691883087, 0.5372868180274963, 0.5109819173812866, -0.42374172806739807, 0.4460565149784088, 0.2046823501586914, 0.2575424909591675, 0.13389356434345245, 0.42290177941322327, -0.01156274601817131, -0.6824281215667725, -0.5997831225395203, -0.624128520488739, -0.41908901929855347, 0.0061914315447211266, -0.4442674517631531, 0.33291077613830566, -0.2738935947418213, 0.06793994456529617, -0.29514119029045105, 0.12565761804580688, -0.4489017426967621, -0.15427330136299133, 0.39669278264045715, 0.8335087895393372, -0.8023712038993835, 0.6199168562889099, 0.8697046637535095, -0.22134467959403992, -0.5399591326713562, 0.07575765997171402, 0.14206518232822418, -0.9998890161514282, 0.3857082426548004, 0.032259080559015274, -0.13020822405815125, 0.14710505306720734, -0.12207548320293427, -1.0381673574447632, 0.996016800403595, 0.6246645450592041, -0.5439210534095764, -0.0854865089058876, 0.341913104057312, 0.5500413775444031, -0.3322165012359619, 0.37768155336380005, 0.30621230602264404, 0.35319313406944275, 0.08704373240470886, -0.9390105605125427, -0.19282346963882446, -0.0744381994009018, 0.018818987533450127, 0.2976800203323364, -0.7586721181869507, 0.7824947834014893, -0.32293590903282166, -0.30989348888397217, 0.08289238810539246, 0.5231102705001831, 0.4324174225330353, 0.2052227407693863, 0.5561153888702393, 0.2962339222431183, 1.0722572803497314, -0.17362608015537262, 1.0508990287780762, -0.23874618113040924, 0.17129158973693848, 0.8383477330207825, -0.5053945183753967, 0.6954901218414307, 0.41400936245918274, 0.005999108776450157, 0.5786976218223572, 0.8838695287704468, 0.1472800225019455, 0.48929691314697266, 0.4108866751194, -0.6004635095596313, -0.4803890287876129, -0.39647600054740906, -0.2888752222061157, 0.5021553635597229, 0.3952300250530243, 0.021794253960251808, -0.5328221917152405, 0.3480265438556671, 0.010204882360994816, 0.44295942783355713, -0.17167244851589203, 0.8100570440292358, 0.007910161279141903, -0.608047604560852, 0.7262812852859497, -0.03144530579447746, 0.7818166017532349, -0.8307728171348572, -0.06364599615335464, -0.41242796182632446, 0.015501132234930992, -0.015174700878560543, -0.5967305302619934, -0.07655192166566849, 0.046556469053030014, -0.14403584599494934, -0.38153961300849915, 0.5476377010345459, -0.8708949685096741, -0.6449568271636963, 0.5763002634048462, 1.0838813781738281, -0.0015844193985685706, 0.35924649238586426, -0.8920724987983704, 0.09255628287792206, 0.03744850680232048, 0.13451194763183594, 0.4331907331943512, 0.5588456988334656, -0.1237957626581192, 0.8628109097480774, 0.778141438961029, 0.37444400787353516, 0.29900556802749634, 0.27268338203430176, 0.8929280638694763, -0.4735763967037201, -0.560331404209137, -0.6646303534507751, 0.5123038291931152, 0.060179512947797775, -0.14725977182388306, 0.8278026580810547, 0.5170409679412842, 1.0540070533752441, 0.008296199142932892, 0.6184237003326416, 0.2733445465564728, 0.7688829898834229, -0.7072253823280334, 0.36141929030418396, -0.7918330430984497, 0.4217967987060547, -0.012346307747066021, -0.8735522031784058, -0.1622520238161087, 0.2739819288253784, -0.15675070881843567, 0.08358044177293777, 0.5843374133110046, 0.8531894087791443, -0.04360385984182358, -0.3879363238811493, 0.4949181377887726, 0.08851832151412964, 0.48977699875831604, 0.6405330300331116, 1.1697927713394165, -0.09557685256004333, 0.4942677617073059, 0.11808952689170837, -0.33108094334602356, 0.05725691094994545, -0.8521202206611633, -0.8252027034759521, -0.3431096076965332, -0.2690199613571167, -0.183124840259552, 0.31231969594955444, 0.8881561756134033, 0.5124260187149048, -0.5132935643196106, -0.595047116279602, 0.37346264719963074, 0.412969172000885, -0.16258518397808075, -0.18275175988674164, 0.17027956247329712, -0.6538762450218201, -0.8791781663894653, 0.6797724962234497, 0.1973462700843811, 0.0537092424929142, -0.39455339312553406, 0.02593154087662697, -0.47516903281211853, -0.04706796258687973, 0.7063632607460022, 0.31730973720550537, -0.6935523152351379, 0.19007432460784912, 0.2513186037540436, 0.14090994000434875, 0.03882142901420593, 0.8244197964668274, -0.6986821293830872, 0.5062936544418335, 0.5380684733390808, 1.083860993385315, 0.387315034866333, -0.0887928232550621, 0.7399413585662842, -0.8268738985061646, 0.2105637639760971, 0.4642402231693268, 0.18017645180225372, 0.5817040801048279, -0.2729547321796417, 0.3806381821632385, 0.38576653599739075, -0.27196818590164185, -0.8378515243530273, 0.3714766502380371, -0.6441037058830261, -0.3704868257045746, 1.3210126161575317, -0.1826348900794983, -0.0004924819222651422, -0.17333918809890747, 0.03015468269586563, 0.13794782757759094, -0.11043989658355713, 0.6955926418304443, 0.6389350295066833, -0.2291126400232315, -0.39094167947769165, -0.6140849590301514, 0.3829130232334137, 0.5213027000427246, -0.8115735650062561, 0.09868001192808151, 0.3239046633243561, 0.15606063604354858, 0.18745218217372894, 0.37173038721084595, -0.10981152951717377, 0.09516814351081848, -0.5353624820709229, -0.1350739598274231, 0.012128717266023159, -0.48806825280189514, -0.5108187198638916, 0.1850767433643341, 0.10130061209201813, 0.04479672759771347 ]
http://arxiv.org/abs/2405.18358v1
http://arxiv.org/pdf/2405.18358v1
MMCTAgent: Multi-modal Critical Thinking Agent Framework for Complex Visual Reasoning
2024-05-28T16:55:41
2024-05-28T16:55:41
Somnath Kumar, Yash Gadhia, Tanuja Ganu, Akshay Nambi
cs.CL
cs.CL, cs.AI, cs.CV, cs.LG
Recent advancements in Multi-modal Large Language Models (MLLMs) have significantly improved their performance in tasks combining vision and language. However, challenges persist in detailed multi-modal understanding, comprehension of complex tasks, and reasoning over multi-modal information. This paper introduces MMCTAgent, a novel multi-modal critical thinking agent framework designed to address the inherent limitations of current MLLMs in complex visual reasoning tasks. Inspired by human cognitive processes and critical thinking, MMCTAgent iteratively analyzes multi-modal information, decomposes queries, plans strategies, and dynamically evolves its reasoning. Additionally, MMCTAgent incorporates critical thinking elements such as verification of final answers and self-reflection through a novel approach that defines a vision-based critic and identifies task-specific evaluation criteria, thereby enhancing its decision-making abilities. Through rigorous evaluations across various image and video understanding benchmarks, we demonstrate that MMCTAgent (with and without the critic) outperforms both foundational MLLMs and other tool-augmented pipelines.
[ -0.6679074168205261, -0.8351933360099792, 0.7546911835670471, 0.03626347705721855, -0.20117565989494324, 0.33421021699905396, -0.23927034437656403, -0.36208492517471313, 0.0023513163905590773, 0.2934107780456543, -0.8104052543640137, -0.17580369114875793, -0.4345897138118744, 0.18088416755199432, 0.04557611420750618, 0.47096991539001465, 0.10083061456680298, 0.25724831223487854, -0.18769784271717072, -0.34489086270332336, -0.3915242552757263, -0.40152791142463684, -0.36937516927719116, -0.11869531869888306, 0.43001890182495117, 0.23347772657871246, 0.8120096921920776, 0.1874292939901352, 0.6945858597755432, 0.4673665463924408, 0.2611803412437439, 0.7073211669921875, -0.40197157859802246, 0.22868943214416504, -0.2600041925907135, -0.24792224168777466, -0.3433164060115814, -0.0693405494093895, 0.43204066157341003, 0.3527079224586487, -0.10902596265077591, 0.2772824466228485, -0.04703059792518616, 0.531534731388092, -1.1520968675613403, 0.29469382762908936, -0.5048829317092896, 0.2797134220600128, 0.28525546193122864, -0.3016732931137085, -0.5583251118659973, 0.0966174378991127, 0.1914040744304657, -0.5968986749649048, 0.129338338971138, -0.1880427598953247, 0.32324478030204773, 0.6652168035507202, -0.37970399856567383, -0.10375522822141647, -0.766681432723999, 0.7822698950767517, -0.2006659209728241, 0.612806499004364, -0.11836753785610199, 0.7337687015533447, 0.011935161426663399, -0.5329566597938538, -0.6287805438041687, -0.4491874873638153, 0.3638150095939636, 0.4301973879337311, -0.052297770977020264, 0.08583830296993256, 0.15996643900871277, 0.0018904845928773284, -0.36963164806365967, -0.38115426898002625, -0.17558719217777252, -0.441727876663208, 0.27429482340812683, 0.5612794756889343, -0.05409098416566849, -0.2511483132839203, -0.7559804320335388, -0.034012261778116226, -0.03848573565483093, 0.4211125671863556, 0.005141106899827719, 0.11454378813505173, 0.17249928414821625, 0.5265610814094543, -0.2811667323112488, 0.5980494618415833, -0.20799671113491058, -0.2751423418521881, 0.3130238354206085, -0.30053257942199707, -0.5322632789611816, -0.24239304661750793, 0.6545310616493225, 0.5706046223640442, 0.1293492466211319, 0.39452245831489563, -0.2908772826194763, 0.19133681058883667, 0.3476509153842926, -0.6214959025382996, -0.25717785954475403, 0.2589324712753296, -0.5334905982017517, -0.5242254734039307, 0.050367891788482666, -0.6316901445388794, -0.631045401096344, -0.49191614985466003, 0.47286099195480347, -0.43544456362724304, -0.522491991519928, 0.3165173828601837, -0.33555707335472107, 0.11296138912439346, 0.8147704601287842, -0.33370110392570496, -0.17988763749599457, 0.4524947702884674, 0.6518259048461914, 0.04831165820360184, -0.6089707612991333, -0.4726596474647522, 0.12755271792411804, -0.39969193935394287, 1.003721833229065, -0.6885042190551758, -0.15781651437282562, 0.03413786739110947, -0.0752686932682991, -0.16911286115646362, -0.39558207988739014, 0.4409664273262024, -0.35427621006965637, 0.0032420572824776173, -0.38117605447769165, -0.05850762873888016, -0.48670417070388794, 0.9355644583702087, -0.8663631081581116, 0.39118799567222595, -0.16614338755607605, -0.4820220470428467, 0.5663870573043823, -0.703123152256012, -0.17003901302814484, 0.1296999305486679, -0.4537542760372162, -0.18864430487155914, -0.05996467173099518, 0.2869209051132202, 0.5778445601463318, -0.43613171577453613, 0.10627191513776779, -0.6573929786682129, -0.17708347737789154, 0.5252509117126465, -0.7050970196723938, 0.785038411617279, 0.27855733036994934, -0.3605193793773651, 0.5920610427856445, -0.5198110938072205, 0.15399757027626038, 0.15678219497203827, -0.35574600100517273, 0.10015932470560074, -0.02039235457777977, 0.12401989847421646, 0.3305304944515228, 0.003997082356363535, -0.3475673794746399, 0.015979189425706863, 0.24898944795131683, 0.41871169209480286, 1.0372238159179688, -0.04134560748934746, 0.2257867306470871, -0.36777186393737793, 0.39140942692756653, 0.10217619687318802, 0.6184217929840088, -0.17140580713748932, -0.32440802454948425, -0.9039403200149536, -0.5640631914138794, -0.322881817817688, 0.6203184127807617, -1.1971776485443115, -0.17276550829410553, -0.009668422862887383, -0.42036712169647217, -0.48605719208717346, 0.03764883428812027, 0.4859776198863983, 0.2882632613182068, 0.36037757992744446, -0.02613450400531292, -0.38107210397720337, -0.8583947420120239, 0.014771271497011185, -0.07961877435445786, 0.23958326876163483, 0.5851148962974548, 0.6181095838546753, -0.6024550795555115, 0.37326478958129883, -0.6538981795310974, -0.524850606918335, -0.4188432991504669, 0.040189675986766815, -0.0672401487827301, 0.19294269382953644, 0.3963155150413513, -0.8694074749946594, -0.11664046347141266, -0.03614140301942825, -0.8640955686569214, 0.2325710952281952, -0.6293599009513855, -0.05589650198817253, 0.04645799845457077, 0.6131711006164551, -0.6298863291740417, 0.1356993317604065, 0.3856911063194275, -0.5345418453216553, 1.1708886623382568, -0.11562193185091019, 0.44922494888305664, -0.7434282898902893, -0.05743130296468735, -0.01937721110880375, -0.2719113528728485, -0.3497062027454376, 0.27667421102523804, -0.06704197824001312, 0.06908117234706879, -0.5049758553504944, 0.13722793757915497, -0.49529123306274414, 0.28459152579307556, -0.010839126072824001, -0.04736693203449249, 0.07830455899238586, 0.7329830527305603, -0.13489045202732086, 0.7684076428413391, 0.5738062262535095, -0.44539952278137207, 0.727437436580658, 0.02848288044333458, -0.4172717332839966, 0.7272841930389404, -0.30615752935409546, -0.1049077957868576, -0.1996944397687912, -0.011525627225637436, -0.7893216013908386, 0.01020703837275505, 0.34975776076316833, -0.2554486393928528, -0.04835892468690872, -0.05292372405529022, -0.30197176337242126, -0.3336075246334076, -0.31217071413993835, 0.39992424845695496, -0.05668763071298599, -0.40735381841659546, 1.0969713926315308, 0.3986548185348511, 0.32957789301872253, -0.8673601150512695, -0.34512636065483093, 0.35976335406303406, 0.1212841272354126, -0.4917124807834625, -0.24926842749118805, -0.5006403923034668, -0.4474547803401947, -0.0783143937587738, -0.04026878997683525, -0.24000567197799683, 0.011222537606954575, 0.15361936390399933, 0.344115674495697, -0.25993603467941284, 0.0600157156586647, -0.21125133335590363, -0.14349906146526337, 0.21859799325466156, -0.19707094132900238, 0.2793750762939453, -0.7459623217582703, -0.5710614323616028, -0.1675064116716385, 0.43898850679397583, 1.1024142503738403, -0.47477108240127563, 0.1882471740245819, 0.9077314734458923, -0.10195781290531158, -0.43099260330200195, -0.8008028268814087, -0.13913953304290771, -0.46572408080101013, 0.5358874797821045, -0.9312136769294739, -0.7793897986412048, 0.2931217551231384, -0.1970461755990982, -0.08639983832836151, 0.12229785323143005, 1.015268325805664, -0.2509038746356964, 1.2327566146850586, 0.47875192761421204, 0.3096996247768402, 0.33578893542289734, -0.671480119228363, -0.09273932874202728, -0.6758516430854797, -0.4735702574253082, 0.19802077114582062, -0.14006806910037994, -0.026469636708498, -0.8360388278961182, 0.4784093201160431, -0.48618224263191223, -0.14479416608810425, -0.09159189462661743, -0.4767613708972931, 0.6487561464309692, 0.3863506019115448, 0.31076517701148987, 0.3066316246986389, -0.4740614593029022, -0.5235809087753296, 0.21084803342819214, -0.40160706639289856, -0.3954908549785614, 0.7897571921348572, 0.23122389614582062, 0.638640284538269, 0.4446796774864197, -0.09667156636714935, 0.48078659176826477, 0.025282762944698334, -1.043112874031067, 0.8095880746841431, 0.15111464262008667, -0.6644613146781921, -0.19062690436840057, -0.24945712089538574, -0.4726390838623047, 0.9485923051834106, -0.5544121861457825, -0.11367692053318024, 0.1979084610939026, -0.10963575541973114, -0.39752197265625, 0.45401880145072937, -0.691159188747406, 0.8150826096534729, -0.20442356169223785, -0.45654982328414917, -0.5988406538963318, -0.5908169150352478, 0.44608548283576965, 0.25202155113220215, 0.24259789288043976, -0.25238072872161865, -0.17090247571468353, 0.17340393364429474, -0.2720153033733368, 0.7393860816955566, -0.19075530767440796, 0.2977178394794464, 0.6260350346565247, 0.5606195330619812, 0.005520456936210394, 0.16405867040157318, 0.37699657678604126, 0.062445688992738724, 0.01211326103657484, -0.321072518825531, -0.5961141586303711, 0.37310686707496643, -0.5905900001525879, -0.6845335364341736, -0.3329519033432007, -0.7368115186691284, -0.2548997700214386, 0.39152631163597107, -0.05819808319211006, 0.6192991137504578, -0.29568085074424744, 0.16406284272670746, 0.6169813871383667, 0.43603575229644775, 0.517675518989563, 0.33340421319007874, 0.06909309327602386, -0.6325035691261292, 0.7427786588668823, -0.13032440841197968, 0.1625790297985077, 0.26092496514320374, 0.22028371691703796, -0.0909513533115387, -0.4194915294647217, -0.6652532815933228, -0.1008928045630455, -0.9094651937484741, -0.17398937046527863, -0.6170353293418884, 0.05681510642170906, 0.1330808401107788, -0.17620255053043365, -0.40959981083869934, -0.09578412771224976, 0.01337374746799469, 0.04047471657395363, -0.4142936170101166, 0.5632120966911316, -0.08417847752571106, -0.30844634771347046, -0.6728400588035583, 0.32493042945861816, 0.7898477911949158, 0.24294543266296387, 0.1768016219139099, 0.08017680048942566, -0.10526925325393677, -0.11222458630800247, -0.2954322099685669, -0.7904377579689026, -0.05212871730327606, 0.0016799709992483258, 0.6812236309051514, 0.8754664063453674, -0.03767053037881851, 0.7136995196342468, -0.4285474121570587, 0.5254685878753662, 0.40774837136268616, -0.7942691445350647, 0.40883344411849976, -0.3175639510154724, 0.3113071620464325, 0.4769222140312195, 0.08210752159357071, -0.11169502884149551, -0.4370869994163513, -0.1893552541732788, -0.2963179349899292, 0.14289797842502594, 0.07970993965864182, -0.1980198323726654, 0.17454014718532562, -0.17544540762901306, 0.1357855498790741, 0.16704417765140533, -0.6397591829299927, 0.19330565631389618, -0.37959280610084534, 0.07381439208984375, -0.08082150667905807, -0.22289830446243286, -0.4087170660495758, -0.3825945556163788, 0.3227959871292114, -0.5510019063949585, 0.1720464676618576, 0.6170395016670227, -0.5751282572746277, -0.03487442061305046, 0.2552178204059601, 0.8495413064956665, 0.6381234526634216, -0.22227279841899872, 0.4403931200504303, 0.31172940135002136, -0.5485199689865112, 0.17096136510372162, -0.17940233647823334, 0.2878856062889099, -0.21458172798156738, 0.5559738874435425, 0.3259662687778473, 0.010512781329452991, -1.0428152084350586, 0.7845067381858826, -0.287910133600235, -0.34434568881988525, -0.37452462315559387, 0.0904398038983345, -0.20663350820541382, 0.8772578835487366, 0.19826659560203552, 0.8974196314811707, 0.5699967741966248, -0.43698689341545105, 0.24901577830314636, 0.41556188464164734, -0.7686098217964172, -0.20876361429691315, 0.5619340538978577, 0.2911302149295807, 0.14960066974163055, 0.36366990208625793, -0.13292625546455383, -0.6408496499061584, 0.5196011066436768, 0.16205307841300964, 0.9713296890258789, -0.07875511795282364, 0.42432522773742676, 0.1986517608165741, 0.6041335463523865, 0.24459053575992584, 0.542523980140686, -0.4363786280155182, -0.9578564167022705, -0.5115976929664612, -0.12500153481960297, -0.5452709794044495, -0.2252897024154663, -0.30366161465644836, 0.024833982810378075, -0.8608761429786682, -0.41159072518348694, 0.19576552510261536, -0.17791439592838287, -0.6912253499031067, 0.18868371844291687, 0.36360734701156616, 0.7954276204109192, -0.7035830020904541, 0.4418482780456543, 0.840449333190918, -0.7329624891281128, -0.45978501439094543, -0.16024117171764374, 0.33874204754829407, -0.8365519642829895, 0.5247814655303955, 0.36521974205970764, -0.9482887983322144, -0.40109848976135254, -0.4157380759716034, -0.4734186828136444, 0.9439213275909424, 0.3746405243873596, -0.2058992087841034, 0.30234238505363464, -0.18496528267860413, 0.31006982922554016, -0.48678916692733765, 0.3073348104953766, 0.2951110601425171, 0.46741801500320435, 0.36868816614151, -0.7505097389221191, 0.25827157497406006, -0.5708461403846741, -0.37106895446777344, 0.046125512570142746, -0.7278028726577759, 0.9334527254104614, -0.9336283802986145, -0.029949594289064407, -0.26426631212234497, 0.3261905908584595, -0.010988821275532246, 0.25776153802871704, 0.8298420310020447, 0.5259922742843628, 0.5423164367675781, 0.13289466500282288, 0.7175478339195251, 0.05496974661946297, 0.2512817978858948, 0.8828470706939697, 0.0033303191885352135, 0.7067804932594299, 0.40200185775756836, 0.14935654401779175, 0.6354827880859375, 0.30219566822052, -0.3079933524131775, 0.4720446765422821, -0.37779706716537476, -0.372244268655777, -0.902290403842926, -0.19650384783744812, -0.11208692938089371, 0.8077304363250732, 0.2687922716140747, -0.1530168354511261, -0.04942513257265091, 0.19387660920619965, -0.20729659497737885, 0.024533316493034363, -0.39737340807914734, 0.8390169739723206, -0.14997731149196625, -0.438932865858078, 0.6236436367034912, -0.36401867866516113, 0.2579386830329895, -0.12681373953819275, -0.12092326581478119, 0.3550153970718384, 0.6213934421539307, -0.2067294865846634, -1.0861375331878662, 0.12310845404863358, -0.42646968364715576, -0.23433661460876465, -0.0744631439447403, 0.5972782969474792, -0.04082483425736427, -0.3381901681423187, 0.23754438757896423, 0.8231381177902222, -0.2833804488182068, -0.3635299503803253, -1.1147491931915283, 0.08192093670368195, -0.04820084944367409, -0.027535762637853622, -0.275836318731308, 0.46736493706703186, 0.15852494537830353, 1.0929229259490967, 0.8695200085639954, -0.14765647053718567, -0.14175879955291748, 0.45632439851760864, 0.9978110790252686, -0.6353139877319336, -0.4246954619884491, -1.0146020650863647, 0.7225145697593689, -0.21512314677238464, -0.24936209619045258, 0.2964334189891815, 0.568697988986969, 0.5897535085678101, -0.3370440602302551, 0.6723470687866211, 0.21737156808376312, 0.04071127250790596, -0.3723452687263489, 0.7438796758651733, -0.5484036207199097, -0.05421397089958191, -0.1772460788488388, -0.7372326850891113, -0.3740490972995758, 0.6454907655715942, -0.1223457083106041, -0.24308989942073822, 0.8432902693748474, 0.6658979058265686, -0.048420876264572144, -0.04125320166349411, 0.5448676347732544, 0.24423471093177795, 0.5836053490638733, 0.7393593788146973, 1.2022781372070312, -0.00438743457198143, 0.9366723299026489, -0.10517147928476334, -0.5672633051872253, -0.2919405698776245, -0.5486367344856262, -1.2000486850738525, -0.8812164068222046, 0.08596592396497726, -0.29536890983581543, -0.19786161184310913, 1.1363834142684937, 0.780143678188324, -0.46191102266311646, -0.24046078324317932, 0.1657884567975998, 0.2510315775871277, -0.43041905760765076, -0.24077115952968597, -0.025264309719204903, -0.3879796266555786, -0.43335720896720886, 0.3204892575740814, 0.7333436608314514, -0.18245235085487366, -0.611164391040802, -0.042634762823581696, -0.17221049964427948, 0.3087456226348877, 1.0417131185531616, -0.1701948344707489, -0.9401087760925293, -0.3400118947029114, 0.06095153093338013, -0.26886284351348877, 0.04946071654558182, 0.8784824013710022, -0.7086431384086609, 1.0242571830749512, 0.3855019211769104, 0.42205777764320374, 0.24103084206581116, -0.4244595468044281, 0.3755914866924286, 0.030366690829396248, 0.30525997281074524, 0.51680588722229, 0.5622050166130066, 0.12953083217144012, -0.1527547985315323, 0.42147889733314514, 0.36881813406944275, -0.2875083088874817, -0.5829466581344604, 0.6121887564659119, -1.214545726776123, -0.5640576481819153, 0.8522721529006958, 0.19741827249526978, -0.26470133662223816, -0.1348143368959427, -0.703608512878418, -0.16726556420326233, -0.36059996485710144, 0.8465378284454346, 0.5071383118629456, -0.1965811550617218, -0.5223188400268555, -0.449796587228775, 0.3775124251842499, 0.20123516023159027, -0.5637977719306946, 0.027892738580703735, 0.7374292016029358, 0.14841967821121216, 0.28164559602737427, 0.4032389521598816, 0.0652182474732399, 0.6316507458686829, 0.34945571422576904, -0.06873754411935806, -0.5847887992858887, -0.6982641816139221, 0.06089840084314346, 0.6283270120620728, -0.12212026864290237, -0.3077020049095154 ]
http://arxiv.org/abs/2405.18357v2
http://arxiv.org/pdf/2405.18357v2
Faithful Logical Reasoning via Symbolic Chain-of-Thought
2024-05-28T16:55:33
2024-06-11T07:41:03
Jundong Xu, Hao Fei, Liangming Pan, Qian Liu, Mong-Li Lee, Wynne Hsu
cs.CL
cs.CL
While the recent Chain-of-Thought (CoT) technique enhances the reasoning ability of large language models (LLMs) with the theory of mind, it might still struggle in handling logical reasoning that relies much on symbolic expressions and rigid deducing rules. To strengthen the logical reasoning capability of LLMs, we propose a novel Symbolic Chain-of-Thought, namely SymbCoT, a fully LLM-based framework that integrates symbolic expressions and logic rules with CoT prompting. Technically, building upon an LLM, SymbCoT 1) first translates the natural language context into the symbolic format, and then 2) derives a step-by-step plan to solve the problem with symbolic logical rules, 3) followed by a verifier to check the translation and reasoning chain. Via thorough evaluations on 5 standard datasets with both First-Order Logic and Constraint Optimization symbolic expressions, SymbCoT shows striking improvements over the CoT method consistently, meanwhile refreshing the current state-of-the-art performances. We further demonstrate that our system advances in more faithful, flexible, and explainable logical reasoning. To our knowledge, this is the first to combine symbolic expressions and rules into CoT for logical reasoning with LLMs. Code is open at https://github.com/Aiden0526/SymbCoT.
[ -0.19498950242996216, -0.7725529074668884, 1.0368491411209106, 0.0976235419511795, -0.6732804179191589, 0.3351580798625946, -0.00038114149356260896, -0.4351244866847992, 0.26982730627059937, 0.7014796137809753, -0.7807823419570923, -0.5104784369468689, -0.6228576302528381, 0.3639313876628876, -0.2907654047012329, 0.8515938520431519, -0.25523650646209717, 0.12345919758081436, -0.12463017553091049, -0.15242338180541992, -0.49553799629211426, -0.5321033596992493, -0.3838385343551636, -0.3130987584590912, 0.268219918012619, -0.05859685316681862, 0.7736185193061829, 0.6537376046180725, 0.5698449611663818, 0.23743906617164612, -0.028926225379109383, 0.7525162100791931, -0.45522695779800415, 0.35872533917427063, -0.6354414224624634, -0.5578490495681763, -0.5052345991134644, -0.36529406905174255, 0.5541977286338806, 0.2874915301799774, -0.27227523922920227, 0.08034536242485046, -0.16388140618801117, 0.4748552739620209, -0.6403289437294006, 0.32420286536216736, -0.9790570735931396, -0.18654657900333405, 0.02218596264719963, -0.17385295033454895, -0.6488372087478638, -0.3633129298686981, -0.34782320261001587, -0.4533715546131134, -0.32761088013648987, 0.3079003691673279, 0.6299425363540649, 0.32247307896614075, -0.46917134523391724, -0.050238873809576035, -0.5676919221878052, 0.7255373001098633, -0.5937219858169556, 0.6082659959793091, 0.21072623133659363, 0.47662585973739624, -0.5034335851669312, -0.8061994910240173, -0.6893560290336609, -0.18169847130775452, -0.11867108196020126, -0.04761383682489395, -0.2568935453891754, 0.1146298497915268, 0.5148226022720337, 0.1137998104095459, -0.30958572030067444, -0.4852277636528015, -0.17730021476745605, -0.12365113198757172, 0.46969786286354065, 0.29471227526664734, 0.303048700094223, 0.05641580745577812, -0.650935709476471, 0.18041777610778809, -0.8880617618560791, -0.32704856991767883, -0.13211794197559357, 0.08651161938905716, -0.046884000301361084, 0.5716108083724976, -0.1325211375951767, 0.7335566282272339, -0.2708684504032135, -0.040624022483825684, -0.1742805391550064, -0.23358610272407532, -0.37059053778648376, 0.3384895920753479, 0.6976118683815002, 0.1661655306816101, 0.40146467089653015, -0.011512122116982937, -0.5048213005065918, 0.7749658823013306, 0.2548834979534149, -0.5514897108078003, -0.1865548938512802, 0.09590587764978409, -0.14863218367099762, -0.22469094395637512, 0.25077590346336365, -0.2493574172258377, -0.315407931804657, -0.44938796758651733, 0.2766724228858948, -0.57738196849823, -0.13218934834003448, 0.6013137698173523, -0.044493626803159714, 0.11761245131492615, 0.596202552318573, -0.3800605237483978, 0.7356221079826355, 0.9916777014732361, 0.7601176500320435, 0.0378645621240139, -0.1255646049976349, -0.5569690465927124, 0.5440102219581604, -0.3980928063392639, 0.8858685493469238, -0.5797361135482788, -0.07852035760879517, -0.41041481494903564, -0.059390101581811905, 0.1866931915283203, -0.23922288417816162, 0.2829686105251312, -0.359939306974411, 0.005951256025582552, -0.40052273869514465, -0.3647172749042511, 0.042185958474874496, 0.3484981060028076, -0.5493831634521484, 0.7681353092193604, 0.07878488302230835, -0.7276073098182678, 0.18227706849575043, -0.2848682701587677, -0.507823646068573, 0.08829013258218765, -0.5551558136940002, -0.018999019637703896, 0.08921617269515991, 0.16737471520900726, 0.09303511679172516, -0.7095230221748352, 0.5568133592605591, -0.5714120268821716, -0.24193988740444183, 0.3845742344856262, -0.347452312707901, 1.054682731628418, 0.29833999276161194, -0.29908275604248047, 0.035916347056627274, -0.3708985149860382, 0.1697695255279541, 0.16489161550998688, 0.3096492290496826, -0.19627757370471954, 0.13880100846290588, -0.5613757371902466, 0.5023115873336792, 0.14048171043395996, -0.4887232184410095, 0.40785080194473267, -0.2915806770324707, 0.5952610373497009, 1.1029146909713745, 0.014222747646272182, 0.08235641568899155, -0.4540019929409027, 0.5128418207168579, 0.0236942321062088, 0.36770448088645935, -0.05020177736878395, -0.5622652769088745, -0.5399569869041443, -0.4006103277206421, -0.09663432836532593, 0.32289034128189087, -0.8778240084648132, 0.4111439287662506, -0.13598975539207458, -0.23866905272006989, -0.4634583294391632, 0.11619261652231216, 0.49741002917289734, 0.46868208050727844, 0.4731927812099457, -0.21808898448944092, -0.6512192487716675, -0.6875077486038208, -0.2710005044937134, -0.6561592817306519, 0.29187580943107605, -0.07996153831481934, 0.5633636713027954, -0.22134581208229065, 0.9117733836174011, -0.7014238834381104, 0.024295158684253693, -0.5019409656524658, -0.405050128698349, 0.4792546033859253, 0.3009268045425415, 0.10561926662921906, -0.29990944266319275, -0.012482945807278156, 0.1511068195104599, -0.7430475950241089, -0.2996748983860016, -0.0815008133649826, -0.700233519077301, 0.14870770275592804, 0.20745913684368134, -1.0380439758300781, 0.4467885494232178, 0.08464407920837402, -0.6461355686187744, 0.8193386197090149, -0.03783724457025528, -0.0688580572605133, -1.0513712167739868, -0.11996160447597504, -0.4176528751850128, -0.507716715335846, -0.29447147250175476, 0.23537437617778778, 0.15011566877365112, 0.13015180826187134, -0.4139900803565979, 0.5439311861991882, -0.28065183758735657, 0.1843135952949524, -0.13021405041217804, 0.22147788107395172, 0.15759865939617157, 0.4290911853313446, -0.0912809669971466, 0.44153037667274475, 0.5471967458724976, -0.4611060917377472, 0.5038348436355591, 0.2658117711544037, -0.09956207871437073, 0.5040296316146851, -0.4756477177143097, 0.07246900349855423, -0.14836479723453522, 0.6769053339958191, -0.8330285549163818, 0.0897376537322998, 0.5175620913505554, -0.10690581798553467, -0.10822710394859314, 0.10382739454507828, -0.8078031539916992, -0.4702119529247284, -0.15776392817497253, 0.4242812693119049, 0.4980553686618805, -0.497896283864975, 0.7842534184455872, 0.2633264660835266, 0.16859810054302216, -0.3430103361606598, -0.6171811819076538, 0.06833603233098984, 0.042528584599494934, -0.43852418661117554, 0.26761525869369507, 0.17420382797718048, -0.43459606170654297, -0.04116019234061241, -0.7782066464424133, 0.08071662485599518, -0.04772325977683067, 0.014056379906833172, 0.536213755607605, -0.1126166433095932, 0.29122859239578247, 0.4216417372226715, -0.11350248754024506, 0.5144215226173401, -0.7488285899162292, 0.5445446968078613, -0.4064701795578003, -0.4940025508403778, -0.44607993960380554, 0.1292000412940979, 0.6228449940681458, -0.38688409328460693, 0.48213014006614685, 0.03409598395228386, -0.529748797416687, -0.6463543772697449, -0.4585171043872833, -0.4412387013435364, -0.44329842925071716, -0.021774129942059517, -0.47231948375701904, -0.6457928419113159, 0.2078007012605667, -0.2881842255592346, -0.1353934109210968, 0.2579325735569, 0.39690646529197693, -0.02812327817082405, 1.082464337348938, 0.32174152135849, 0.06196654587984085, -0.08269912004470825, -0.12961134314537048, 0.375081866979599, -0.5615521669387817, -0.37066444754600525, -0.2872103452682495, -0.28536075353622437, -0.4759214222431183, -0.5478548407554626, 0.13213223218917847, 0.20755727589130402, -0.5333192944526672, 0.6195799112319946, -0.48390406370162964, 0.593810498714447, 0.1315484493970871, 0.5104377269744873, 0.5254530310630798, -0.1400410234928131, -0.6141507029533386, 0.4304141700267792, -0.7136853337287903, -0.6694876551628113, 0.6278319358825684, 0.17423619329929352, 1.0460299253463745, 0.3081231415271759, 0.6788331270217896, 0.157610222697258, 0.3754626214504242, -0.5372570753097534, 1.0754395723342896, -0.043257955461740494, -0.44200801849365234, -0.012833242304623127, -0.5686066746711731, -0.5356658697128296, 0.2476784586906433, -0.21521523594856262, -1.0045185089111328, -0.1226554811000824, 0.30748122930526733, -0.1120195984840393, 0.4463537931442261, -0.5274195075035095, 0.5500936508178711, -0.5902500152587891, -0.49087658524513245, -0.423226922750473, -0.7012484669685364, 0.40414950251579285, -0.0676691085100174, -0.020569533109664917, -0.19604800641536713, -0.19515575468540192, 0.47362667322158813, -0.8293174505233765, 0.6323962211608887, 0.13668930530548096, -0.27451425790786743, 0.4714732766151428, 0.6109265685081482, 0.7284319996833801, 0.17389240860939026, 0.07708818465471268, 0.15684807300567627, 0.23230017721652985, -0.2728792726993561, -1.1323050260543823, 0.5342527627944946, -0.37530717253685, -1.0614924430847168, -0.4687756896018982, -0.6097669005393982, -0.36674803495407104, 0.43572622537612915, -0.31756386160850525, 0.31545326113700867, 0.2687355875968933, -0.05835649371147156, 0.519855797290802, 0.11338593810796738, -0.11181945353746414, 0.08373713493347168, -0.7314476370811462, -0.7562467455863953, 0.5631482601165771, -0.29344215989112854, 0.5852673053741455, 0.5022451877593994, 0.38181790709495544, -0.4344013035297394, 0.06155019998550415, -0.28465840220451355, 0.5139045715332031, -0.8030788898468018, -0.41454944014549255, -0.5934979319572449, -0.23384703695774078, -0.2231454998254776, -0.09778743237257004, -0.1506514549255371, -0.6734166145324707, 0.35366836190223694, -0.17311735451221466, 0.4835008382797241, 0.6151725053787231, 0.46359553933143616, 0.1871732622385025, -0.5086175203323364, 0.4652899503707886, 0.10064733028411865, 0.39374110102653503, -0.08033149689435959, -0.08858373016119003, 0.09309693425893784, 0.24363267421722412, -0.530213475227356, -1.0260009765625, 0.10270828753709793, -0.2960059642791748, 0.5079342722892761, 0.5292529463768005, 0.15139441192150116, 0.9379215240478516, -0.44364431500434875, 0.30793941020965576, 0.5261377692222595, -1.1144503355026245, 0.7606967091560364, -0.14985160529613495, 0.41226813197135925, 0.2535286545753479, 0.20236548781394958, -0.3147977888584137, -0.7552505135536194, -0.7557343244552612, -0.437756210565567, 0.5373110771179199, 0.5278538465499878, -0.3123266398906708, -0.330748975276947, 0.11495078355073929, 0.12036393582820892, 0.27032187581062317, -0.6466042995452881, 0.05663764849305153, 0.015579083934426308, -0.3255969285964966, 0.2989346385002136, 0.11019369214773178, -0.10558431595563889, -0.4966706931591034, 0.6115055084228516, -0.123537577688694, 0.31761714816093445, 0.22002744674682617, -0.11382269859313965, -0.06699660420417786, 0.11026404052972794, 0.3396123945713043, 0.7850095629692078, -0.13228042423725128, 0.6848801374435425, 0.3265264928340912, -0.38042211532592773, 0.2900506258010864, -0.19142785668373108, 0.05783465877175331, -0.05388433486223221, 0.49084484577178955, 0.6973061561584473, 0.04123137891292572, -0.7380349636077881, 0.2303190678358078, 0.11953539401292801, -0.08900628983974457, 0.1370701789855957, 0.29802966117858887, -0.05381331592798233, 0.2677902579307556, -0.13790616393089294, 0.07166007906198502, -0.17507199943065643, -0.5759514570236206, 0.39155441522598267, 0.4518231153488159, -0.2781592011451721, -0.20250394940376282, 0.6767687797546387, -0.028103146702051163, -0.17155975103378296, 0.5191487669944763, 0.08753752708435059, -0.7331373691558838, 0.5326359868049622, 1.0663620233535767, 0.9628511667251587, -0.09831888228654861, 0.15793147683143616, -0.04457468166947365, 0.6251315474510193, -0.23262840509414673, 0.7426520586013794, -0.5198253393173218, -0.5981865525245667, -0.4524335265159607, -0.5372037291526794, -0.2822740375995636, -0.4052600860595703, -0.16938582062721252, 0.6121925115585327, -0.8886526226997375, -0.29205745458602905, -0.45830637216567993, -0.30789801478385925, -0.4122615456581116, 0.10720528662204742, 0.10606797784566879, 1.144686222076416, -0.5139806866645813, 0.981852114200592, 0.6527435779571533, -0.18517068028450012, -0.8361318707466125, 0.003984830807894468, -0.07938655465841293, -0.7758331894874573, 0.6027675271034241, 0.39465609192848206, -0.7862798571586609, -0.02964060753583908, -0.434530109167099, -0.5799591541290283, 1.1649789810180664, 0.8162562251091003, -0.7089095711708069, 0.004725147504359484, 0.26846131682395935, 0.4526731073856354, -0.3800300657749176, 0.2668130099773407, 0.347603440284729, 0.3397505581378937, 0.2484571486711502, -0.6515607833862305, 0.6085066199302673, -0.16733233630657196, -0.04931259527802467, 0.8246407508850098, -0.5624138712882996, 0.5146030187606812, -0.3615328073501587, -0.374482125043869, -0.020058657974004745, 0.5808137655258179, 0.7829570174217224, 0.3399556279182434, 0.5831292271614075, 0.803293764591217, 0.8486707806587219, -0.11960367113351822, 0.9612563252449036, -0.4229932129383087, 0.2534674108028412, 1.1353555917739868, -0.60616534948349, 0.6818835735321045, 0.6961509585380554, -0.133571594953537, 0.8993169069290161, 0.20622427761554718, 0.29874396324157715, 0.36400020122528076, 0.41652345657348633, -0.4532583951950073, -0.6728372573852539, -0.2119438499212265, -0.31954818964004517, 0.11830823123455048, 0.33267301321029663, -0.3413834273815155, -0.3459310829639435, -0.34400099515914917, 0.016900887712836266, 0.024364078417420387, -0.243317648768425, 0.4419063329696655, 0.5363994836807251, -0.6477662324905396, 0.5740593671798706, -0.21066482365131378, -0.09528079628944397, -0.7091813087463379, -0.35873839259147644, 0.007649765815585852, 0.2485181838274002, -0.1262931227684021, -0.8825953602790833, 0.2501484751701355, 0.08528199046850204, 0.2750580310821533, -0.47847893834114075, 0.8937925696372986, -0.08432890474796295, -0.6522305607795715, 0.37526267766952515, 0.4606965184211731, -0.06573981046676636, 0.19526398181915283, -0.4055805206298828, 0.15102878212928772, -0.2067328244447708, 0.2660125494003296, -0.18056383728981018, 0.8556936383247375, -0.4957432150840759, 1.0087250471115112, 0.7745909094810486, 0.27204352617263794, -0.3339402973651886, 0.04241843521595001, 1.1319923400878906, -0.8296805620193481, -0.6131927371025085, -1.3512245416641235, 0.3252180218696594, -0.08426874130964279, -0.0717456042766571, 0.46084073185920715, 0.490854412317276, 0.8369901180267334, -0.045194707810878754, 0.46977636218070984, -0.006430872716009617, -0.3406291604042053, -0.7063344120979309, 0.6058934330940247, -0.3201180100440979, 0.4579266309738159, -0.5071364641189575, -0.8441813588142395, -0.4381873309612274, 0.6670269966125488, -0.31827375292778015, -0.15547069907188416, 1.3013511896133423, 0.7992543578147888, -0.13872016966342926, 0.3979460895061493, 0.19684293866157532, 0.3455240726470947, 0.2677534818649292, 0.926362931728363, 1.0409942865371704, -0.07719992101192474, 0.2870994210243225, -0.21350015699863434, -0.2955438792705536, 0.4108997583389282, -0.9321110844612122, -0.8182145357131958, -0.3055652379989624, -0.2054460495710373, -0.6378895044326782, 0.4404660165309906, 1.3258506059646606, 0.3545982539653778, -0.5813120007514954, -0.4505816698074341, -0.640828013420105, 0.5311561226844788, -0.4824800491333008, -0.14640089869499207, 0.08779846131801605, -0.3163616359233856, -0.019597623497247696, -0.034346453845500946, 0.6820721626281738, -0.2904396951198578, -0.09921082854270935, -0.2630041837692261, -0.310312420129776, 0.2855657935142517, 0.8485015034675598, -0.2729727625846863, -0.965634822845459, -0.216367706656456, -0.06334923207759857, -0.05318089574575424, -0.18360616266727448, 0.966228187084198, -1.0797574520111084, 0.3944283723831177, 0.4956417381763458, 0.6683210134506226, 0.10940700024366379, -0.05410100147128105, 0.6479402780532837, -0.16509072482585907, -0.08972694724798203, 0.31206390261650085, 0.6230976581573486, -0.2866688668727875, -0.26191872358322144, 0.49279531836509705, 0.5437237620353699, -0.05624057725071907, -0.9553225040435791, 0.6226760745048523, -1.173953652381897, -0.3035670816898346, 1.0977901220321655, 0.09442020952701569, -0.5276272892951965, 0.15581946074962616, -0.4539315700531006, 0.2039427012205124, -0.2298985868692398, 0.8379806280136108, 0.6493092179298401, -0.23974117636680603, -0.1314065158367157, -0.033486295491456985, 0.08267468959093094, 0.48177778720855713, -1.0540002584457397, 0.15792644023895264, 0.45220673084259033, -0.0888727456331253, -0.17243440449237823, 0.47882628440856934, -0.31750890612602234, 0.36789634823799133, -0.23524591326713562, -0.30262061953544617, -0.15024469792842865, -0.5668980479240417, 0.1414402425289154, -0.1806599199771881, -0.04669893532991409, 0.01038419734686613 ]
http://arxiv.org/abs/2405.18350v1
http://arxiv.org/pdf/2405.18350v1
A System for Automatic English Text Expansion
2024-05-28T16:48:05
2024-05-28T16:48:05
Silvia García Méndez, Milagros Fernández Gavilanes, Enrique Costa Montenegro, Jonathan Juncal Martínez, Francisco Javier González Castaño, Ehud Reiter
cs.CL
cs.CL, cs.AI
We present an automatic text expansion system to generate English sentences, which performs automatic Natural Language Generation (NLG) by combining linguistic rules with statistical approaches. Here, "automatic" means that the system can generate coherent and correct sentences from a minimum set of words. From its inception, the design is modular and adaptable to other languages. This adaptability is one of its greatest advantages. For English, we have created the highly precise aLexiE lexicon with wide coverage, which represents a contribution on its own. We have evaluated the resulting NLG library in an Augmentative and Alternative Communication (AAC) proof of concept, both directly (by regenerating corpus sentences) and manually (from annotations) using a popular corpus in the NLG field. We performed a second analysis by comparing the quality of text expansion in English to Spanish, using an ad-hoc Spanish-English parallel corpus. The system might also be applied to other domains such as report and news generation.
[ -0.33513134717941284, -0.8912100195884705, 0.3222688138484955, 0.4346994161605835, -0.20418784022331238, 0.01254875585436821, -0.30090510845184326, -0.6911143660545349, 0.4845570921897888, 0.35870295763015747, -0.4536600708961487, -0.45068344473838806, -0.6936056613922119, 0.9470570087432861, -0.5734924674034119, 0.7497305274009705, -0.06888819485902786, -0.17925181984901428, 0.06369200348854065, -0.010997016914188862, -0.8128249645233154, 0.013756673783063889, -0.9085168242454529, 0.03743482381105423, 0.34262534976005554, 0.5898215770721436, 0.9309704303741455, 0.9532930850982666, 0.7027310729026794, 0.434164822101593, 0.4141732454299927, 0.6359660625457764, 0.07917524874210358, 0.2294798195362091, -0.02609015628695488, -0.15546204149723053, -0.5798591375350952, -0.2623741924762726, 0.701505720615387, 0.48449182510375977, -0.18308478593826294, -0.07384927570819855, -0.011457138694822788, 0.6339931488037109, -0.27025550603866577, 0.10613732784986496, -0.5244443416595459, -0.023018965497612953, 0.1476706564426422, -0.3750060796737671, -0.5010334253311157, -0.5199986100196838, 0.24283334612846375, -0.6186287999153137, -0.12964795529842377, 0.4074476659297943, 0.7810129523277283, 0.25197723507881165, -0.43197745084762573, -0.8152903318405151, -0.7534186244010925, 0.6305359601974487, -0.5986934900283813, 0.13340245187282562, 0.09340601414442062, 0.1524639129638672, -0.2809750735759735, -0.7234997153282166, -0.4172661006450653, -0.39829570055007935, -0.36697980761528015, 0.15206557512283325, -0.36936312913894653, 0.18965166807174683, -0.1696077287197113, 0.5038251876831055, -0.7292840480804443, -0.14300572872161865, -0.5538657903671265, 0.05298531800508499, 0.9757970571517944, 0.03588821738958359, 0.8087542653083801, -0.20763908326625824, 0.06766821444034576, 0.05302707850933075, -0.5499225854873657, -0.47028109431266785, 0.5974549055099487, 0.3246762454509735, 0.12339580059051514, 0.8113385438919067, -0.1260201781988144, 0.702481210231781, -0.02732180431485176, 0.13616244494915009, 0.2356732189655304, -0.3084915280342102, -0.33837735652923584, 0.18571513891220093, 1.0027878284454346, 0.3526160418987274, 0.21366235613822937, -0.2870367169380188, -0.18957741558551788, -0.06732123345136642, 0.43262842297554016, -0.451288640499115, -0.08789706230163574, 0.05715451017022133, -0.3233746886253357, -0.4853214919567108, 0.272760272026062, -0.4108397364616394, 0.1511138528585434, -0.1490660011768341, 0.538312554359436, -0.5686209797859192, -0.03256835788488388, 0.29405438899993896, -0.2562573254108429, -0.23038312792778015, -0.07141184061765671, -0.842613935470581, 0.4467398226261139, 0.1918432116508484, 0.47663599252700806, -0.2537442445755005, -0.23061004281044006, -0.23653779923915863, 0.17851831018924713, -0.5806642174720764, 0.804298460483551, -0.31269627809524536, -0.29728347063064575, 0.1964552402496338, 0.43597567081451416, 0.4805108904838562, -0.4668300747871399, 0.5895811915397644, -0.47935888171195984, 0.7411380410194397, 0.21313904225826263, -0.6052101850509644, -0.11006458848714828, -0.062291745096445084, -0.588478684425354, 0.923484206199646, -0.10340791195631027, -0.4814286231994629, 0.3783852159976959, -0.8937472701072693, -0.7257261872291565, 0.42829233407974243, 0.028528103604912758, -0.1388610303401947, 0.04885878786444664, 0.260656476020813, 0.30983132123947144, -0.2060149759054184, 0.3531697690486908, 0.2716335952281952, -0.09022427350282669, -0.1242416724562645, -0.4642828404903412, 0.7012419104576111, 0.22974906861782074, -0.2888600528240204, -0.14129388332366943, -0.9440374970436096, 0.052523933351039886, -0.002989193657413125, -0.45213669538497925, -0.39715391397476196, 0.1685178279876709, -0.1860322207212448, -0.27015817165374756, 0.3992449939250946, -0.4621780514717102, 0.3666122257709503, -0.8288552761077881, 0.01601327210664749, 0.3959799110889435, 0.2600054144859314, 0.7292709350585938, -0.2991282045841217, 0.6258363723754883, -0.36285749077796936, -0.1330205500125885, -0.6231153011322021, -0.5812823176383972, -0.798209547996521, -0.09537288546562195, 0.5257679224014282, 0.8924296498298645, -0.6505308151245117, 1.2115843296051025, -0.11367658525705338, -0.288061261177063, -0.4260988235473633, -0.011903258040547371, 0.0304166991263628, 0.05300120636820793, 0.32020336389541626, -0.2651287913322449, -0.8962242603302002, -1.1173346042633057, -0.17013777792453766, -0.3194182515144348, -0.23522059619426727, 0.16190864145755768, 0.22323301434516907, -0.17634795606136322, 0.8488167524337769, -0.46621087193489075, -0.17236073315143585, -0.20310187339782715, 0.4930935502052307, 0.02046288177371025, 0.2700340151786804, 0.2869422137737274, -0.388468861579895, -0.7197920083999634, 0.24515613913536072, -0.7942851781845093, -0.5639347434043884, -0.483550488948822, -0.0875711739063263, 0.35670551657676697, 0.48353564739227295, -0.2029968649148941, 0.44486144185066223, 0.5818973779678345, -0.3799898028373718, 0.42066115140914917, -0.6109599471092224, 0.41151443123817444, -1.3431681394577026, -0.37755197286605835, 0.08222056925296783, -0.5216837525367737, -0.5037423372268677, 0.08448603749275208, -0.06296410411596298, 0.18089856207370758, -0.16050076484680176, 0.6297474503517151, -0.5930880308151245, 0.09600137919187546, -0.7191372513771057, 0.3310993015766144, 0.008050949312746525, -0.01605529710650444, 0.002811493817716837, 0.7128900289535522, 0.5519918203353882, -0.7060883045196533, 0.6557810306549072, 0.14156919717788696, 0.08714007586240768, 0.15621505677700043, -0.5233142375946045, -0.2670573890209198, -0.2545015215873718, 0.05802300199866295, -0.8761542439460754, -0.47018593549728394, 0.10676653683185577, -0.5919412970542908, 0.11392137408256531, 0.3541369140148163, -0.5928822159767151, -0.5227527618408203, 0.17841219902038574, 0.0039046795573085546, 0.767376184463501, -0.6485284566879272, 0.4837222099304199, 0.47588983178138733, -0.4845808446407318, -0.4092874526977539, -0.764037013053894, 0.5155589580535889, -0.08166027814149857, -0.6955699920654297, 0.29874247312545776, 0.06052689254283905, -0.6000183820724487, 0.4006982445716858, 0.35915952920913696, -0.18046881258487701, -0.2821892499923706, -0.06292737275362015, 0.21948780119419098, -0.35342228412628174, 0.4000408947467804, 0.38955795764923096, 0.3170650601387024, 0.10228744149208069, -0.4728630781173706, 0.366729736328125, -0.11235816776752472, 0.0658733993768692, -0.24888727068901062, 0.6918458342552185, 0.2563771605491638, 0.0022743986919522285, 0.6723281145095825, 0.32873913645744324, -0.541070818901062, -0.48102453351020813, -0.328250527381897, -0.1056123599410057, -0.5651364922523499, 0.32521599531173706, -0.26452475786209106, -0.5406752228736877, 0.27024567127227783, 0.34799954295158386, 0.47870588302612305, 0.8956936597824097, 0.5460518002510071, -0.1404733955860138, 0.9943771362304688, 1.0215002298355103, 0.3896813690662384, 0.2587544023990631, 0.26110681891441345, 0.2341284602880478, -0.18343399465084076, 0.2582129240036011, -0.25047028064727783, -0.19044369459152222, -0.7826038599014282, -0.13015976548194885, 0.011516818776726723, 0.08785128593444824, 0.42817699909210205, 0.8114606142044067, -0.8521910905838013, 0.7910531163215637, 0.3822602927684784, -0.2446833699941635, 0.46302908658981323, -0.11630197614431381, -0.09583412855863571, 0.06648798286914825, -0.7525802850723267, -0.90757155418396, 1.1940386295318604, 0.3013700842857361, 0.4927234351634979, 0.18337856233119965, 0.8781429529190063, 0.6006686687469482, 0.5465396046638489, -0.753262460231781, 0.6057695746421814, -0.4846121370792389, -0.5358542799949646, -0.45761755108833313, -0.4160652756690979, -1.0486706495285034, -0.15618404746055603, -0.2849944233894348, -0.35253340005874634, 0.009998897090554237, 0.1761917918920517, -0.49242687225341797, 0.17686022818088531, -1.023000717163086, 0.18369129300117493, -0.0901084691286087, -0.14801821112632751, -0.26223742961883545, -0.35234007239341736, 0.27958986163139343, -0.12738481163978577, 0.2300872504711151, 0.1587381511926651, -0.1677609533071518, 0.7639650106430054, -0.3720683455467224, 0.4749758839607239, 0.22518931329250336, -0.20753079652786255, 0.6356750726699829, 0.02686685137450695, 0.43794089555740356, 0.14235204458236694, 0.1717042326927185, -0.327170193195343, -0.2844320237636566, -0.23126834630966187, -0.4981902241706848, 0.5792021155357361, -0.42298319935798645, -0.4607289135456085, -0.44787338376045227, -0.6302880644798279, -0.08934666216373444, 0.2446965128183365, -0.0011367247207090259, 0.35569289326667786, -0.539631187915802, 0.2121473103761673, 0.38968026638031006, -0.465835303068161, 0.7344785928726196, 0.5261856913566589, -0.4252440333366394, -0.5417905449867249, 0.6047555804252625, 0.034568630158901215, 0.19212478399276733, 0.2770780324935913, 0.2764831483364105, -0.3025694191455841, -0.2708028554916382, -0.5796563625335693, 0.1746876835823059, -0.3839415907859802, -0.14871683716773987, -0.7610702514648438, -0.23533493280410767, -0.5766006708145142, -0.3793955445289612, 0.05286134034395218, -0.5796453952789307, -0.2657324969768524, -0.13154812157154083, 0.4090504050254822, 1.167663812637329, -0.3056661784648895, 0.44929319620132446, -0.911790132522583, 0.3651835322380066, 0.3329690396785736, 0.2055714875459671, -0.5717475414276123, -0.5115057229995728, -0.3959091305732727, -0.30398476123809814, -0.38329601287841797, -1.1683647632598877, 0.7168467044830322, 0.256358802318573, 0.10362214595079422, 0.23315760493278503, -0.1752592772245407, 0.5180434584617615, -1.1486977338790894, 0.737564206123352, 0.26349762082099915, -0.6452274322509766, 0.4827037453651428, -0.570017397403717, 0.405753493309021, 0.33567243814468384, 0.386739581823349, -0.5126940011978149, -0.9963553547859192, -0.9610469341278076, -0.9032576680183411, 0.35658976435661316, 0.18166765570640564, 0.24899893999099731, -0.5820707082748413, 0.44578078389167786, 0.07565513253211975, 0.04152221977710724, -0.8179541230201721, -0.23541072010993958, 0.17989014089107513, -0.6434532403945923, 0.20089508593082428, 0.028686491772532463, 0.01910659484565258, -0.10652294754981995, 1.0640374422073364, -0.15326760709285736, 0.18120400607585907, 0.47217175364494324, -0.1272028684616089, -0.24428202211856842, 0.4386625587940216, 0.3409002721309662, 0.4888502359390259, -0.002190117724239826, -0.10805133730173111, 0.3442208468914032, -0.38300779461860657, 0.25738614797592163, 0.0985226258635521, -0.16188110411167145, 0.4771590232849121, 0.22919870913028717, 0.5597801804542542, -0.24219901859760284, -0.6993142366409302, 0.2684960663318634, -0.191566601395607, -0.5791107416152954, -0.5032525658607483, 0.012244434095919132, -0.136325865983963, -0.033931538462638855, 0.6005009412765503, 0.19150438904762268, 0.310687392950058, -0.6468982100486755, 0.8186662197113037, 0.375291645526886, -0.1518656462430954, -0.06564707309007645, 0.5936206579208374, 0.520014226436615, -0.7559722065925598, -0.15076996386051178, -0.7673733234405518, -0.11956947296857834, 0.5713725090026855, 0.7263856530189514, 0.9689130187034607, -0.21596759557724, 0.24103456735610962, 0.6122365593910217, 0.8434469699859619, -0.3065510392189026, 0.16068316996097565, 0.5001860857009888, -0.7413216829299927, -0.8213828206062317, -0.4388164281845093, -0.1569208800792694, 0.09185373038053513, -0.2603723704814911, 0.5986796617507935, -0.28462907671928406, -0.04126518964767456, -0.1368570625782013, -0.01645474322140217, -0.3120270073413849, 0.549605131149292, 0.19461511075496674, 0.9751923084259033, -0.9311994910240173, 0.6118751168251038, 0.6763454675674438, -0.03547125682234764, -0.6543303728103638, 0.07612252980470657, -0.2432229220867157, -0.5038567185401917, 0.4278455972671509, -0.1287502646446228, -0.27232232689857483, 0.0715421661734581, -0.08441460877656937, -0.7790451049804688, 0.8284626007080078, -0.06384024024009705, -0.574469268321991, -0.18390265107154846, 0.15266059339046478, 0.7592073082923889, -0.7473872900009155, 0.36986228823661804, 0.37029531598091125, 0.49004364013671875, -0.2848042845726013, -0.7910714745521545, -0.11994128674268723, -0.19387094676494598, -0.2826220393180847, 0.29344847798347473, -0.2635303735733032, 0.2324015200138092, 0.09250275045633316, -0.4251968264579773, 0.06979340314865112, 1.00635826587677, -0.3474976420402527, -0.3470061123371124, 0.7252473831176758, 0.4367961287498474, 0.6871445775032043, -0.0673694759607315, 0.8848745822906494, -0.48689907789230347, -0.0010451731504872441, 1.1861648559570312, 0.004208252765238285, 0.6907896399497986, 0.25763899087905884, 0.10650323331356049, 0.6869955062866211, 0.3535955548286438, -0.0007677032263018191, 0.1666695475578308, 0.156332865357399, -0.33443593978881836, 0.20220328867435455, 0.020410684868693352, 0.15043792128562927, 0.24659211933612823, 0.2462359219789505, -0.6379381418228149, -0.10603320598602295, 0.05731948837637901, -0.0703774020075798, 0.33803704380989075, -0.21524852514266968, 0.9930347800254822, -0.2779647707939148, -0.9475993514060974, 0.2548415958881378, 0.20943887531757355, 0.8698483109474182, -0.46567246317863464, 0.0549447163939476, -0.05998561903834343, -0.20368598401546478, -0.37136170268058777, -0.7308720946311951, 0.7839856743812561, 0.20314417779445648, 0.0595703125, -0.40841010212898254, 0.7747665643692017, -0.7411242723464966, -0.6576133370399475, 0.05448020249605179, 0.4955206513404846, 0.06739863753318787, 0.596954345703125, -0.32291942834854126, -0.40901169180870056, 0.12425078451633453, -0.2114657759666443, -0.31388145685195923, 0.666762113571167, 0.1060054674744606, 0.40380409359931946, 0.27394992113113403, 0.4797413647174835, 0.4031708836555481, -0.08972088247537613, 0.2544960379600525, -0.4889780580997467, -0.4829622805118561, -0.8198027014732361, 0.6335650682449341, -0.37188225984573364, -0.21401967108249664, 0.7763582468032837, 0.6705566048622131, 0.420213520526886, 0.09002120047807693, 1.0994300842285156, -0.3893639147281647, 0.5042396187782288, -0.2611094117164612, 0.5348436236381531, -0.5371378660202026, 0.1059543713927269, -0.0513479970395565, -0.9036015868186951, -0.6333528161048889, 0.6485335230827332, -0.048212047666311264, -0.5203523635864258, 1.1212859153747559, 0.7832239866256714, 0.0114767299965024, 0.10529836267232895, 0.25176623463630676, 0.2357659488916397, 0.21658071875572205, 0.0594952255487442, 0.43777185678482056, -0.623102068901062, 0.6515376567840576, 0.06776721030473709, -0.5447561740875244, 0.23843875527381897, -0.8377806544303894, -0.6511824727058411, -0.6246557235717773, -0.43835341930389404, -0.3283804655075073, 0.11262337118387222, 1.1363290548324585, 0.49563950300216675, -0.6641280651092529, -0.3050072491168976, -0.5410230159759521, -0.21501772105693817, 0.0796230286359787, -0.3436727523803711, -0.027199264615774155, -0.7506463527679443, -1.042531132698059, 0.6462217569351196, 0.6056047081947327, 0.05197945982217789, -0.39864060282707214, 0.03532666712999344, -0.2777664363384247, 0.6958704590797424, 0.5264742970466614, 0.2943577170372009, -0.40684568881988525, -0.44829776883125305, 0.09865844249725342, -0.10644933581352234, 0.138075053691864, 0.5518640279769897, -0.5811113715171814, 0.27316346764564514, 0.48068559169769287, 0.7863959670066833, -0.19920149445533752, -0.08141742646694183, 1.2155728340148926, -1.0622100830078125, 0.14554215967655182, 0.2114265263080597, 0.3008306920528412, 0.1319059133529663, -0.45411238074302673, 0.3949684798717499, -0.10248928517103195, -0.862309455871582, -0.6635521650314331, 0.3194284737110138, -0.38032495975494385, -0.18538379669189453, 1.2412244081497192, 0.1799759864807129, -0.36710137128829956, -0.03139694780111313, -0.3021310865879059, 0.15147261321544647, -0.3469371199607849, 0.8557279109954834, 1.0458340644836426, -0.13353730738162994, -0.08451206982135773, -0.4319261908531189, 0.6848161220550537, 0.4115019142627716, -1.2126814126968384, -0.10800250619649887, 0.48802101612091064, 0.020074810832738876, 0.4211234450340271, 0.6512101888656616, -0.15127263963222504, 0.25370171666145325, -0.16728700697422028, 0.35663244128227234, 0.3672354817390442, -0.45595672726631165, -0.39903292059898376, 0.12889070808887482, -0.13353361189365387, -0.09715115278959274 ]
http://arxiv.org/abs/2405.18348v1
http://arxiv.org/pdf/2405.18348v1
Can Automatic Metrics Assess High-Quality Translations?
2024-05-28T16:44:02
2024-05-28T16:44:02
Sweta Agrawal, António Farinhas, Ricardo Rei, André F. T. Martins
cs.CL
cs.CL
Automatic metrics for evaluating translation quality are typically validated by measuring how well they correlate with human assessments. However, correlation methods tend to capture only the ability of metrics to differentiate between good and bad source-translation pairs, overlooking their reliability in distinguishing alternative translations for the same source. In this paper, we confirm that this is indeed the case by showing that current metrics are insensitive to nuanced differences in translation quality. This effect is most pronounced when the quality is high and the variance among alternatives is low. Given this finding, we shift towards detecting high-quality correct translations, an important problem in practical decision-making scenarios where a binary check of correctness is prioritized over a nuanced evaluation of quality. Using the MQM framework as the gold standard, we systematically stress-test the ability of current metrics to identify translations with no errors as marked by humans. Our findings reveal that current metrics often over or underestimate translation quality, indicating significant room for improvement in automatic evaluation methods.
[ -0.39347144961357117, -0.3989385664463043, 0.4279020130634308, 0.3183048665523529, -0.2747887372970581, 0.19438216090202332, -0.18230295181274414, -0.6260952949523926, 0.04536416754126549, 0.38726845383644104, -0.08509503304958344, -0.3249210715293884, -0.8393924832344055, 0.5387052297592163, -0.6000606417655945, 0.9309393167495728, -0.38306495547294617, 0.08066152036190033, -0.34142574667930603, -0.5746695399284363, -0.369827002286911, -0.4443070888519287, -0.40212324261665344, -0.2345963567495346, 0.5021227598190308, 0.4425792694091797, 1.389259934425354, 0.47692370414733887, 1.05307137966156, 0.27614492177963257, -0.03281468152999878, 0.41494348645210266, -0.2383234053850174, 0.014563861303031445, -0.12719795107841492, -0.5535088777542114, -0.6872181296348572, 0.292731374502182, 0.7429723143577576, 0.40732264518737793, 0.25268781185150146, 0.4423597455024719, 0.12735262513160706, 0.8417717814445496, -0.7370955944061279, -0.17813332378864288, -0.42973968386650085, 0.15005192160606384, -0.20979861915111542, -0.33868274092674255, -0.21877308189868927, -0.4859974682331085, -0.14861679077148438, -0.3886258602142334, 0.1091928705573082, 0.15388908982276917, 1.222350835800171, 0.6117439866065979, -0.5834396481513977, -0.3423945903778076, -0.7314498424530029, 0.899297833442688, -0.7519595623016357, 0.43639621138572693, 0.5033745169639587, 0.4257831275463104, -0.05860717594623566, -0.10578614473342896, -0.4033717215061188, -0.335593044757843, -0.09137747436761856, 0.35754188895225525, -0.2966077923774719, -0.3650580048561096, 0.11490976810455322, 0.6192677617073059, -0.4708099961280823, 0.16331283748149872, -0.06630625575780869, -0.2683657109737396, 0.7307788729667664, 0.2600645124912262, 0.3199361264705658, -0.27918124198913574, -0.5053387880325317, -0.27502018213272095, -0.3524225652217865, 0.07291890680789948, 0.2254178375005722, -0.09373048692941666, 0.05867038294672966, 0.5338298678398132, -0.132438063621521, 0.44270384311676025, 0.007948101498186588, -0.24148492515087128, 0.4957130253314972, -0.8098161220550537, -0.07623552531003952, -0.2246282547712326, 1.1268876791000366, 0.5661143064498901, 0.07121463119983673, -0.2167421281337738, -0.4889017939567566, 0.13627806305885315, 0.3249785006046295, -0.37016937136650085, 0.1584165245294571, 0.17121143639087677, -0.34466731548309326, -0.3323686122894287, 0.179220050573349, -0.5862599611282349, -0.09953758120536804, -0.1107446700334549, 0.6013897061347961, -0.23967082798480988, -0.10396560281515121, 0.2051384001970291, -0.04543052241206169, 0.17393329739570618, 0.4462312161922455, -0.373981773853302, 0.24843227863311768, 0.603583037853241, 0.9678930044174194, -0.42609703540802, -0.364865243434906, -0.6642287969589233, -0.1831456571817398, -0.8617969155311584, 0.919826328754425, 0.013059571385383606, -0.22614775598049164, -0.2696799635887146, -0.02452629804611206, 0.14755931496620178, -0.6943168044090271, 1.0282007455825806, -0.33060020208358765, -0.04905618727207184, -0.3144717514514923, -0.31490835547447205, -0.10831715166568756, 0.24782730638980865, -0.5972646474838257, 0.9706529974937439, 0.3843131959438324, -0.5304180979728699, 0.6489810943603516, -0.27585870027542114, -0.39029672741889954, -0.16527919471263885, 0.15791179239749908, -0.6293009519577026, 0.2526825964450836, 0.08786231279373169, 0.016668368130922318, -0.608452558517456, 0.11246825754642487, -0.28577929735183716, -0.48347267508506775, 0.7510270476341248, -0.6656592488288879, 0.5237675905227661, 0.4708385467529297, -0.2068248689174652, -0.046443063765764236, -0.5585557222366333, 0.23599819839000702, -0.23854631185531616, -0.3817824721336365, -0.3445277810096741, -0.16981010138988495, -0.30884769558906555, 0.6484193205833435, 0.14578497409820557, -0.3468608856201172, -0.15414106845855713, -0.3372615575790405, 0.05853661522269249, 0.377631276845932, -0.035091567784547806, 0.5058059096336365, -0.46347692608833313, 0.4342309236526489, 0.2832508385181427, 0.39499184489250183, 0.3206561505794525, -0.47681790590286255, -0.9669556021690369, 0.08582942187786102, 0.4227084815502167, 0.7030648589134216, -0.3196404278278351, 0.9472317099571228, -0.4084893763065338, -0.6427486538887024, -0.8488611578941345, 0.5691841244697571, 0.5254697799682617, 0.2476658821105957, 0.4518229365348816, -0.8796769976615906, -0.015540902502834797, -0.5569469332695007, -0.6222067475318909, -0.32808127999305725, 0.1339135318994522, -0.1154865249991417, 0.5486792325973511, -0.19586122035980225, 0.7014309763908386, -0.18921881914138794, -0.325408399105072, 0.11469767987728119, 0.4237004220485687, 0.13994501531124115, 0.6072520017623901, 0.5822205543518066, -0.7482776641845703, -0.5693932175636292, -0.01681550219655037, -0.793567955493927, -0.29196470975875854, -0.19689755141735077, -0.6335031986236572, 0.001434092060662806, 0.3649102449417114, -0.49118462204933167, 0.33257564902305603, 0.6700952649116516, -0.3751731812953949, 0.633317232131958, -0.31317904591560364, 0.5958049893379211, -0.7306314706802368, 0.10168317705392838, 0.08358460664749146, -0.19868870079517365, -0.17003652453422546, 0.06217425689101219, 0.3722464442253113, 0.1724056899547577, -0.4197332561016083, 0.4677475094795227, -0.2904742658138275, -0.3592536747455597, -0.23278535902500153, 0.13057489693164825, 0.4230153262615204, 0.057169366627931595, -0.381320595741272, 0.8559573292732239, 0.05308183655142784, -0.5982116460800171, 0.5653696060180664, 0.4908149838447571, -0.5346701741218567, 1.106123685836792, -0.4566451907157898, -0.20331703126430511, 0.0725891962647438, 0.1998349279165268, -1.0603328943252563, -0.0615726076066494, 0.3615400791168213, -0.8178238272666931, 0.22435759007930756, -0.05023552477359772, -0.7383204102516174, -0.3399398922920227, 0.07942754030227661, 0.3046063482761383, 0.5729854702949524, -0.30728766322135925, -0.12433367967605591, 0.14904801547527313, 0.09834838658571243, -0.542951226234436, -0.7933903932571411, 0.2916940152645111, -0.15626591444015503, -0.5908253192901611, -0.08650922030210495, -0.01717214286327362, -0.3345233201980591, 0.01993313990533352, -0.30608057975769043, -0.42306283116340637, 0.4472081959247589, 0.03979530557990074, -0.12608949840068817, -0.29682594537734985, 0.14204023778438568, -0.011121466755867004, -0.6150264143943787, 0.024518271908164024, -0.1817040592432022, -0.026659559458494186, -0.2748231291770935, -0.598411500453949, -0.5954242944717407, 0.20488911867141724, 0.9751971960067749, -0.7322424054145813, 0.44211545586586, 0.9704434275627136, -0.0941825732588768, 0.4181308150291443, -0.6085330247879028, 0.13376332819461823, -0.4362229108810425, 0.3262350261211395, -0.38075315952301025, -0.3114509880542755, 0.4302065670490265, -0.0029540201649069786, 0.031120777130126953, 0.7022023797035217, 0.27371081709861755, -0.39174792170524597, 1.552176594734192, 0.006522899027913809, -0.13328692317008972, 0.14580300450325012, -0.15352803468704224, 0.1934126764535904, -0.8969681859016418, 0.3201552629470825, -0.8470969200134277, -0.3881310820579529, -0.7584434747695923, -0.36036571860313416, 0.3967646062374115, 0.38659945130348206, -0.11481063812971115, 0.2939649820327759, -0.22355106472969055, 0.45789405703544617, 0.4721161723136902, -0.11956541985273361, 0.7114830613136292, -0.16869504749774933, 0.12563081085681915, -0.15691223740577698, -0.3326805830001831, -0.8269120454788208, 0.7182087302207947, 0.33391058444976807, 0.7061888575553894, 0.1814611852169037, 0.4880896806716919, 0.3243391215801239, 0.44370752573013306, -0.9621579051017761, 0.11290646344423294, -0.3097507357597351, -0.6930402517318726, -0.2927173972129822, -0.7292141318321228, -0.9439335465431213, 0.4007841944694519, -0.5372443795204163, -0.1665177345275879, 0.23301443457603455, 0.2556813359260559, -0.3487183749675751, 0.3304263949394226, -0.5772954225540161, 1.001267671585083, -0.6439794301986694, -0.2628856301307678, -0.14915616810321808, -0.5973402857780457, 0.22747397422790527, -0.332782119512558, 0.5590310096740723, -0.5472638010978699, -0.06554573029279709, 0.5429784655570984, -0.09316745400428772, 0.3354978561401367, 0.17645145952701569, -0.21582496166229248, 0.2559559941291809, 0.5616377592086792, 0.3175390362739563, -0.031680602580308914, -0.3446999788284302, 0.2641978859901428, 0.16595576703548431, -0.7516704201698303, -0.8731907606124878, 0.39525121450424194, -0.8985141515731812, -0.4142202138900757, -0.4554367661476135, -0.29227694869041443, -0.155417799949646, 0.25878196954727173, 0.47098666429519653, 0.17207583785057068, -0.1915108561515808, 0.04750020429491997, 0.16477136313915253, -0.14582477509975433, -0.1633797436952591, 0.5786923170089722, 0.23024776577949524, -0.49309685826301575, 1.0545990467071533, 0.20302191376686096, 0.6315740346908569, 0.2901930510997772, 0.2879123389720917, -0.1775161325931549, -0.6160119771957397, -0.7028619647026062, 0.22751256823539734, -0.7370102405548096, -0.1968737244606018, -0.2011493444442749, 0.06906475126743317, -0.17958395183086395, -0.13291668891906738, -0.6600382328033447, -0.2806771695613861, -0.10043495893478394, 0.155129536986351, -0.00011531922064023092, 0.45456790924072266, -0.15919509530067444, 0.16558505594730377, -1.272155523300171, 0.20507961511611938, 0.10135726630687714, 0.28758060932159424, -0.26983842253685, -0.7741265892982483, -0.6853384971618652, 0.1844031810760498, -0.5520133376121521, -0.6484652757644653, 0.483498215675354, 0.07965333014726639, 0.40203413367271423, 0.3870762586593628, 0.20851708948612213, 0.6556849479675293, -0.19456201791763306, 0.8428412675857544, 0.13560424745082855, -0.9835765361785889, 0.3276628255844116, 0.0454103946685791, 0.30753570795059204, 0.8638370037078857, 0.43805426359176636, -0.7323949933052063, -0.870814323425293, -0.5797584652900696, -0.5607318878173828, 0.23706543445587158, 0.22967375814914703, 0.08330947905778885, 0.02573690377175808, 0.3120347857475281, 0.07523045688867569, 0.12147144228219986, -0.42900025844573975, -0.08765517920255661, -0.18827416002750397, -0.09352071583271027, -0.5826289653778076, -0.025516420602798462, -0.042070068418979645, -0.27512234449386597, 0.5402969121932983, 0.047482870519161224, 0.18999135494232178, 0.24460437893867493, -0.3655751943588257, -0.6581943035125732, 0.4454052746295929, 0.27895617485046387, 0.7026989459991455, -0.36171287298202515, 0.24671104550361633, 0.16340519487857819, -0.28968003392219543, 0.5913456678390503, -0.6205896735191345, -0.19883520901203156, 0.3389631509780884, 0.28713780641555786, 0.5987145900726318, 0.23695361614227295, -0.24336078763008118, 0.8867842555046082, 0.037252943962812424, -0.10287799686193466, -0.30397212505340576, 0.14591439068317413, -0.3839026391506195, -0.11898356676101685, -0.07507143169641495, 0.5376641154289246, 0.10958964377641678, -0.3067190647125244, 0.23296236991882324, 0.2797184884548187, -0.8391001224517822, -0.37485751509666443, 0.2974167466163635, 0.45075032114982605, -0.30890125036239624, 0.6141189932823181, -0.3613262176513672, -0.41214606165885925, 0.4518437683582306, 0.24060139060020447, 0.7673723101615906, -0.2667626738548279, 0.10404958575963974, 0.6108925342559814, 0.5408608317375183, -0.2978515625, 0.020455168560147285, 0.1890212893486023, -0.8130174279212952, -0.5425183773040771, -0.3211674690246582, -0.6520308256149292, -0.20704825222492218, -0.8795127272605896, 0.2388020157814026, 0.019996682181954384, -0.5782774090766907, -0.2125965654850006, -0.023971043527126312, -0.6815099120140076, 0.38305410742759705, -0.24822179973125458, 0.6944188475608826, -0.9926794767379761, 0.5158638954162598, 0.5328683257102966, -0.5857301950454712, -0.3068408668041229, -0.029375692829489708, 0.08182607591152191, -0.5053068399429321, 0.5109817981719971, -0.15519186854362488, -0.24986647069454193, 0.0014510806649923325, -0.35232529044151306, -1.0698204040527344, 0.6763308644294739, 0.22270303964614868, 0.0026213277596980333, 0.07126840949058533, 0.21315807104110718, 0.6407608985900879, 0.22429105639457703, 0.3263496160507202, 0.6182986497879028, 0.664520800113678, -0.26593491435050964, -1.1602317094802856, -0.06053931266069412, -0.17125174403190613, -0.2477170079946518, 0.43435028195381165, -0.8081479072570801, 0.6955322027206421, -0.07339233160018921, -0.35894840955734253, 0.10857069492340088, 0.339846134185791, -0.34999218583106995, 0.23738212883472443, 0.5086692571640015, 0.49325528740882874, 0.582297682762146, -0.17503033578395844, 0.9437041878700256, -0.26824480295181274, 0.36261406540870667, 0.8847954869270325, -0.0638345330953598, 1.0119916200637817, 0.5186538100242615, -0.2340467870235443, 0.284542053937912, 0.49060890078544617, -0.10221101343631744, 0.19693847000598907, 0.09152527153491974, 0.035622432827949524, -0.5699663162231445, 0.0577949658036232, -0.22076816856861115, 0.5079495310783386, 0.4171954095363617, -0.24451234936714172, -0.18477626144886017, -0.17755113542079926, -0.2073969542980194, 0.17437143623828888, 0.04742422327399254, 0.740407407283783, 0.24042636156082153, -0.8157415986061096, 1.0168098211288452, -0.0019067969406023622, 0.6075140237808228, -0.22032935917377472, 0.23816242814064026, -0.2526622712612152, 0.03730563446879387, -0.4129992127418518, -0.9651927351951599, 0.4258250296115875, -0.06979352235794067, -0.007336260285228491, -0.17434021830558777, 0.2849141061306, -0.10567192733287811, -0.30471310019493103, 0.21135084331035614, 0.8403478264808655, 0.42944827675819397, -0.03516706824302673, -0.6629217267036438, -0.19814978539943695, -0.3077653646469116, 0.002992730587720871, 0.1611713171005249, 0.6507508158683777, -0.027699556201696396, 0.7186238765716553, 0.6180331707000732, 0.32876524329185486, -0.07840793579816818, -0.18707667291164398, 0.06768772006034851, -0.7469361424446106, -0.5024470686912537, -0.7059248089790344, 0.3119587004184723, 0.00401023356243968, -0.6406244039535522, 0.9153438210487366, 0.3180006146430969, 1.0099941492080688, 0.12711101770401, 0.6380326747894287, 0.514933705329895, 0.4885762929916382, -0.41534772515296936, 0.6773795485496521, -0.726805567741394, 0.06065625697374344, -0.5116404891014099, -0.897490382194519, -0.4956548511981964, 0.7400764226913452, -0.226614847779274, -0.3540773391723633, 0.7973225712776184, 0.527734637260437, -0.118318572640419, -0.2202681303024292, 0.5035273432731628, 0.12849080562591553, 0.4044007658958435, 0.47194141149520874, 1.1077091693878174, -0.774892270565033, 0.7802457809448242, -0.015495129860937595, -0.2918356955051422, -0.4569048583507538, -0.7594364881515503, -0.31571733951568604, -0.4504997134208679, -0.5216188430786133, -0.5803313255310059, -0.15940281748771667, 0.8980538249015808, 0.4638890027999878, -0.7351832985877991, -0.37435609102249146, 0.0782095193862915, 0.28815901279449463, -0.633618175983429, -0.19998009502887726, 0.20346100628376007, -0.5931217670440674, -0.6016994118690491, 0.03683498874306679, 0.1908177137374878, 0.38683900237083435, -0.24937911331653595, -0.36737021803855896, 0.28123927116394043, 0.003220745362341404, 0.4508228600025177, 0.2321268767118454, -0.6386275291442871, -0.356928288936615, -0.11656002700328827, -0.7014197111129761, 0.4847319424152374, 0.5377898812294006, -0.19973428547382355, 0.525044858455658, 0.7233720421791077, 0.5802252292633057, 0.19816899299621582, 0.0442180372774601, 0.6615968942642212, -0.2431810051202774, -0.10441873967647552, 0.2702212631702423, 0.19631288945674896, 0.361962229013443, -0.11901094019412994, 0.38699662685394287, 0.17917600274085999, -0.7184858322143555, -0.7715660333633423, 0.25281938910484314, -0.6430100798606873, 0.17913007736206055, 1.0803029537200928, -0.27804261445999146, -0.2256813496351242, -0.2867431938648224, -0.16790173947811127, 0.34143614768981934, -0.12562598288059235, 0.9926035404205322, 0.9381396770477295, -0.02552398294210434, 0.26083576679229736, -0.7135452628135681, 0.5588918328285217, 0.6505117416381836, -0.7080127000808716, -0.15403401851654053, 0.23039832711219788, 0.055376965552568436, 0.4999743103981018, 0.43827545642852783, -0.48344406485557556, 0.5920682549476624, -0.2124931663274765, -0.063295878469944, 0.37229663133621216, -0.055631935596466064, -0.2269086241722107, -0.46919065713882446, 0.6191313862800598, -0.05404940992593765 ]
http://arxiv.org/abs/2405.18344v1
http://arxiv.org/pdf/2405.18344v1
The Battle of LLMs: A Comparative Study in Conversational QA Tasks
2024-05-28T16:42:43
2024-05-28T16:42:43
Aryan Rangapur, Aman Rangapur
cs.CL
cs.CL, cs.AI, I.7, I.m
Large language models have gained considerable interest for their impressive performance on various tasks. Within this domain, ChatGPT and GPT-4, developed by OpenAI, and the Gemini, developed by Google, have emerged as particularly popular among early adopters. Additionally, Mixtral by Mistral AI and Claude by Anthropic are newly released, further expanding the landscape of advanced language models. These models are viewed as disruptive technologies with applications spanning customer service, education, healthcare, and finance. More recently, Mistral has entered the scene, captivating users with its unique ability to generate creative content. Understanding the perspectives of these users is crucial, as they can offer valuable insights into the potential strengths, weaknesses, and overall success or failure of these technologies in various domains. This research delves into the responses generated by ChatGPT, GPT-4, Gemini, Mixtral and Claude across different Conversational QA corpora. Evaluation scores were meticulously computed and subsequently compared to ascertain the overall performance of these models. Our study pinpointed instances where these models provided inaccurate answers to questions, offering insights into potential areas where they might be susceptible to errors. In essence, this research provides a comprehensive comparison and evaluation of these state of-the-art language models, shedding light on their capabilities while also highlighting potential areas for improvement
[ -0.33865419030189514, -0.7248803973197937, 0.6871952414512634, 0.0783875435590744, 0.07079371809959412, 0.3637765944004059, 0.10661201179027557, -0.49267634749412537, 0.015186348930001259, 0.3912334740161896, -0.5522845387458801, -0.3576269745826721, -0.55886310338974, 0.07641206681728363, -0.6570869088172913, 0.8452646136283875, -0.0805361196398735, 0.2023071050643921, -0.2709135115146637, -0.05960088223218918, -0.3600178062915802, -0.9372020363807678, -0.8050073385238647, -0.33463096618652344, 0.4436509609222412, -0.0449291355907917, 0.9790427088737488, 0.15910378098487854, 0.6996047496795654, 0.39058196544647217, -0.2913562059402466, 0.01753171719610691, -0.7063215970993042, 0.4151972830295563, -0.0032241696026176214, -0.5347775220870972, -0.32928600907325745, -0.01298568956553936, 0.41770562529563904, 0.4512667953968048, -0.33958080410957336, 0.09967951476573944, -0.00818888284265995, 0.6340301632881165, -0.1963372826576233, 0.0017567311879247427, -0.8058643937110901, -0.049886833876371384, -0.13680844008922577, -0.0584225133061409, 0.025486880913376808, -0.4037034213542938, 0.2949388027191162, -0.521420955657959, 0.026330504566431046, -0.025802932679653168, 1.068956971168518, 0.24592234194278717, -0.41541412472724915, -0.7524856925010681, -0.7142389416694641, 0.5156034231185913, -0.8861696720123291, 0.32996323704719543, 0.06713980436325073, 0.323103129863739, -0.24902021884918213, -0.8444371819496155, -0.627486526966095, -0.40374457836151123, 0.27543625235557556, 0.30439773201942444, -0.7427265048027039, 0.06747069209814072, 0.14277853071689606, 0.5287341475486755, -0.49260273575782776, 0.2172408550977707, -0.5205107927322388, -0.08828501403331757, 0.3543264865875244, 0.46025845408439636, 0.39122188091278076, -0.11660200357437134, -0.3371026813983917, 0.016065925359725952, -0.7635461091995239, 0.15897011756896973, 0.4160732924938202, -0.04037506878376007, -0.1580156832933426, 0.8490633368492126, -0.1307607889175415, 0.5248293876647949, 0.16577811539173126, -0.10140679031610489, -0.015694832429289818, -0.4686743915081024, -0.308884859085083, -0.4710873067378998, 1.0350971221923828, 0.2619710862636566, 0.2616838216781616, -0.2012431025505066, -0.3818550407886505, 0.21908192336559296, 0.4882795214653015, -0.5184680223464966, -0.06524330377578735, 0.4950217604637146, -0.23932233452796936, -0.24843798577785492, -0.18425270915031433, -0.32528167963027954, -0.5286604166030884, -0.3401259183883667, 0.39954888820648193, -0.34097909927368164, -0.1900392472743988, -0.013782170601189137, 0.014497664757072926, 0.26472607254981995, 0.29347002506256104, -0.7674514055252075, 0.22995427250862122, 1.0059540271759033, 0.7511395215988159, -0.4494488835334778, 0.00445196870714426, -0.05760933458805084, -0.35015007853507996, -0.3994193375110626, 0.6419209241867065, -0.46670690178871155, -0.6591684818267822, 0.20477701723575592, -0.43321165442466736, -0.1866985559463501, -0.951367974281311, 0.4481014609336853, -0.7964674830436707, 0.4083520472049713, -0.33144310116767883, -0.5286810398101807, -0.07370825856924057, 0.5728440284729004, -0.5369629263877869, 1.017592430114746, 0.3202058672904968, -0.8824861645698547, 0.04711272567510605, -0.5230181813240051, 0.12996965646743774, 0.15546394884586334, -0.39416268467903137, -0.23274238407611847, -0.017096608877182007, 0.01751355454325676, 0.40546533465385437, -0.5041118860244751, 0.18055711686611176, -0.1666538268327713, -0.3292996883392334, 0.9388857483863831, -0.3618975579738617, 0.49794304370880127, 0.39140692353248596, -0.3917703628540039, 0.34458839893341064, -0.5816267728805542, -0.03835379704833031, 0.2166132628917694, -0.3312620222568512, -0.018817691132426262, -0.13510648906230927, -0.13700412213802338, 0.5111569166183472, 0.2686503529548645, -0.23805847764015198, -0.10010787844657898, -0.2792920470237732, 0.5862522721290588, 0.6926445960998535, 0.12187377363443375, -0.008689424954354763, -0.4325518310070038, 0.8959870934486389, 0.07686156779527664, 0.40417230129241943, -0.023128695785999298, -0.6610736846923828, -0.8898085951805115, -0.22926723957061768, 0.22879552841186523, 0.6626033186912537, -0.8463378548622131, -0.07919254153966904, -0.18784424662590027, -0.7278470993041992, -0.8263272643089294, 0.26795199513435364, 0.33167269825935364, 0.3881411850452423, -0.09656118601560593, -0.2759610712528229, -0.34590965509414673, -0.935014545917511, -0.21385090053081512, -0.45261552929878235, 0.05111426115036011, 0.42848631739616394, 0.206415593624115, -0.514695405960083, 0.8166564702987671, -0.11664603650569916, 0.07520505785942078, -0.23600834608078003, -0.13428540527820587, 0.15784120559692383, -0.1117771565914154, 0.29965919256210327, -0.7636110782623291, -0.36316972970962524, 0.08383142948150635, -0.8628436326980591, -0.2755284607410431, 0.047701146453619, 0.07876548916101456, 0.038279760628938675, 0.30027079582214355, -0.5858305096626282, 0.12438875436782837, 0.9640472531318665, -0.3563050925731659, 0.6952455043792725, -0.026513779535889626, 0.4797390103340149, -1.031316876411438, -0.029965892434120178, 0.04799765348434448, -0.1383456140756607, -0.8564630150794983, 0.08983758836984634, -0.06843062490224838, -0.2400115728378296, -0.6594827771186829, 0.38740822672843933, -0.1659645438194275, -0.13464969396591187, -0.1806122213602066, 0.5087925791740417, -0.29263734817504883, 0.23572807013988495, -0.23373357951641083, 1.1623650789260864, 0.44670242071151733, -0.5571165680885315, 0.5912560820579529, 0.25721845030784607, -0.34721747040748596, 0.4466128647327423, -1.089682698249817, 0.24537184834480286, 0.26820018887519836, -0.039886225014925, -1.2695527076721191, 0.08529044687747955, 0.35039734840393066, -0.6072956919670105, -0.21167153120040894, 0.14969240128993988, -0.5901911854743958, -0.28210943937301636, -0.15186989307403564, 0.29291653633117676, 0.6129267811775208, -0.3088657259941101, 0.42435798048973083, 0.41257694363594055, -0.44984740018844604, -0.586255669593811, -0.3860679566860199, 0.21474377810955048, -0.4470165967941284, -0.7932133078575134, 0.0813545510172844, -0.03740638494491577, -0.7338784337043762, -0.2942730486392975, -0.04461483657360077, 0.025241246446967125, 0.09390978515148163, 0.5109485387802124, 0.4874451756477356, -0.3995639681816101, -0.17995423078536987, -0.41016334295272827, -0.048139456659555435, 0.10952425748109818, 0.021675297990441322, 0.6779195070266724, -0.2301042228937149, -0.6292986869812012, -0.5061987638473511, 0.05986962839961052, 0.7500938773155212, -0.16343867778778076, 0.5976995825767517, 0.36765238642692566, -0.05421794205904007, 0.2739732563495636, -0.8825467824935913, 0.14148922264575958, -0.5021588206291199, 0.24039700627326965, -0.32274919748306274, -1.1503783464431763, 0.754459798336029, 0.02054121345281601, 0.1710713803768158, 0.4474581778049469, 0.8891699910163879, -0.10386950522661209, 0.816335141658783, 0.5925450325012207, -0.09335976839065552, 0.5611361265182495, -0.06780101358890533, 0.2958492636680603, -0.5844921469688416, -0.29412177205085754, -0.5882768630981445, 0.06379973888397217, -0.6443204283714294, -0.531619668006897, 0.641394853591919, -0.1891603171825409, -0.14738556742668152, 0.16478712856769562, -0.18282540142536163, -0.0634860023856163, 0.38102245330810547, -0.24160075187683105, 0.4625147581100464, -0.03826216608285904, -0.15702062845230103, -0.06887875497341156, -0.6950287818908691, -0.8338629007339478, 1.1629400253295898, 0.6341860294342041, 0.7798979878425598, 0.28348028659820557, 0.5287412405014038, 0.3336317837238312, 0.3086123764514923, -0.6246235370635986, 0.41239336133003235, 0.17721478641033173, -0.5490646362304688, -0.2003086656332016, -0.4799085855484009, -1.0793811082839966, 0.6462826132774353, -0.1660066395998001, -0.5956828594207764, -0.11819209158420563, -0.1435834765434265, -0.37609627842903137, 0.13668905198574066, -0.742885410785675, 0.798015296459198, -0.26038795709609985, -0.17401304841041565, -0.15302973985671997, -0.3611750900745392, 0.4149227440357208, -0.11856453865766525, 0.26888003945350647, -0.03639663755893707, -0.1643933802843094, 0.7271757125854492, -0.10418898612260818, 0.8277789950370789, 0.31749773025512695, -0.5987051725387573, 0.4477424621582031, -0.003940264228731394, 0.2670478820800781, -0.12344394624233246, -0.0038060208316892385, 0.14093072712421417, 0.33530235290527344, -0.27495047450065613, -0.5259955525398254, 0.6305533647537231, -1.038267731666565, -0.5483856201171875, -0.37260305881500244, -0.19606463611125946, -0.3741839528083801, -0.17369616031646729, 0.07890276610851288, 0.355923056602478, -0.57295161485672, -0.29792147874832153, 0.6084593534469604, -0.26170432567596436, 0.28984764218330383, 0.7030606865882874, -0.37869423627853394, -0.4684250056743622, 0.615398645401001, -0.19664038717746735, 0.637502133846283, 0.23173888027668, -0.24995920062065125, -0.407717764377594, -0.5016329288482666, -0.4195413291454315, 0.460496187210083, -0.8328391909599304, 0.048672690987586975, -0.7394298315048218, -0.3011246621608734, -0.43913763761520386, 0.009600496850907803, -0.432476669549942, -0.17664127051830292, -0.08869730681180954, 0.19682547450065613, 0.011299241334199905, 1.1118119955062866, 0.4755345582962036, 0.5378398299217224, -0.667866587638855, 0.3590298891067505, 0.42399248480796814, 0.01844007521867752, -0.04469112306833267, -0.4704955816268921, 0.05738763138651848, -0.021846167743206024, -0.7164522409439087, -1.0186879634857178, 0.3727935552597046, -0.33625468611717224, 0.685585081577301, 0.32729774713516235, -0.42397043108940125, 0.4833325743675232, -0.17408984899520874, 1.07220458984375, 0.275817334651947, -0.8923109173774719, 0.20813122391700745, -0.39937832951545715, 0.21219854056835175, 0.37270212173461914, 0.3959573805332184, -0.9841070771217346, -0.5733921527862549, -0.8459692001342773, -0.806329071521759, 0.31732791662216187, 0.3981868624687195, 0.13595204055309296, 0.01661464013159275, 0.21196474134922028, 0.17011982202529907, 0.35540565848350525, -0.7837606072425842, -0.21697093546390533, 0.09713207930326462, -0.1587539166212082, -0.08689532428979874, -0.3811969757080078, -0.1135668158531189, 0.2845335602760315, 0.5969148278236389, 0.11341550946235657, 0.1648465245962143, -0.014312755316495895, 0.0454869270324707, 0.08871129900217056, 0.46181192994117737, 0.5370115041732788, 0.9870131611824036, 0.17176569998264313, -0.087074413895607, 0.1567734330892563, -0.48918449878692627, 0.0796329528093338, -0.08651996403932571, -0.14462198317050934, -0.01535507570952177, 0.266615092754364, 0.6667305827140808, 0.1740514189004898, -0.9851431846618652, 0.594858705997467, -0.22140122950077057, -0.08332175761461258, -0.3751530349254608, 0.04370061680674553, 0.23836283385753632, 0.5499234795570374, 0.2529489994049072, -0.19263561069965363, 0.1490357220172882, -0.6530879139900208, -0.0209664199501276, 0.5682240724563599, -0.532490074634552, -0.1982612907886505, 0.4932997524738312, 0.22139734029769897, -0.3114437460899353, 0.5199152231216431, -0.0015841005370020866, -0.6118956208229065, 0.5023095011711121, 0.35013547539711, 0.6684916615486145, -0.18708032369613647, 0.21378546953201294, -0.030302781611680984, 0.2883566915988922, 0.022779393941164017, 0.186884343624115, 0.13266797363758087, -0.6748157143592834, -0.25093063712120056, -0.3618887662887573, -0.7301076054573059, 0.23585376143455505, -0.38437455892562866, 0.08654243499040604, -0.4177924394607544, -0.5283271670341492, -0.026352902874350548, -0.02688264288008213, -0.8317596316337585, 0.06535087525844574, 0.2639274299144745, 0.6670001149177551, -0.5630080103874207, 0.46588796377182007, 0.7860684990882874, -0.3534137010574341, -0.5864816904067993, 0.036567457020282745, 0.12744544446468353, -0.9474225044250488, 0.645750105381012, -0.3036361038684845, -0.15801535546779633, -0.29840177297592163, -0.18524833023548126, -0.8434306383132935, 1.0328283309936523, 0.12967747449874878, -0.564936637878418, 0.01155158318579197, 0.3288135826587677, 0.8089356422424316, -0.28752416372299194, 0.6322945356369019, 0.6890195608139038, 0.19694936275482178, 0.1344800442457199, -1.2619024515151978, -0.16421259939670563, -0.15033365786075592, 0.11510589718818665, -0.13776779174804688, -0.7231325507164001, 0.7555873394012451, -0.07525899261236191, -0.34407660365104675, 0.3026236295700073, 0.6613620519638062, 0.45482784509658813, 0.29566690325737, 0.2592427432537079, 0.25117725133895874, 0.6321256160736084, -0.20248578488826752, 1.0043081045150757, -0.22348494827747345, 0.14936812222003937, 0.6719551086425781, -0.28696146607398987, 0.9598141312599182, 0.49794912338256836, -0.5659782886505127, 0.23118232190608978, 0.736386239528656, 0.14571943879127502, 0.16979357600212097, 0.46044445037841797, -0.2604096531867981, 0.013071401044726372, 0.08969395607709885, -0.42111924290657043, 0.4401491582393646, 0.4458625912666321, -0.2605791389942169, -0.05748210474848747, -0.14884810149669647, 0.16125109791755676, 0.07393058389425278, -0.1681424081325531, 0.9637426137924194, 0.20549176633358002, -0.7774401903152466, 0.8271729946136475, 0.1779640167951584, 0.8749071359634399, -0.6637349128723145, 0.252521812915802, -0.35807356238365173, 0.08149290829896927, -0.03388145938515663, -0.6636603474617004, -0.016054123640060425, 0.19765686988830566, 0.18419340252876282, 0.08503038436174393, 0.44049742817878723, -0.27528002858161926, -0.25202110409736633, 0.20537962019443512, 0.8824432492256165, 0.33548060059547424, -0.1303468495607376, -1.023618459701538, 0.438541442155838, 0.006175802554935217, -0.028090745210647583, 0.25152236223220825, 0.41483643651008606, -0.012827497906982899, 1.0975604057312012, 0.3782423734664917, 0.143327996134758, 0.3044367730617523, 0.1373876929283142, 0.8858274221420288, -0.7053442597389221, -0.3515036106109619, -0.7760485410690308, 0.23911985754966736, 0.04466766491532326, -0.614037811756134, 0.917560875415802, 0.5482580065727234, 0.5250962972640991, 0.05803786590695381, 0.8290008902549744, 0.25858041644096375, 0.557408332824707, -0.49878066778182983, 0.5301324129104614, -0.34406089782714844, 0.5188593864440918, -0.29381465911865234, -0.7970775961875916, 0.08028429001569748, 0.14547239243984222, -0.3763958513736725, 0.23673783242702484, 0.6121859550476074, 0.8096635341644287, 0.06204714626073837, 0.1406528651714325, 0.5015304088592529, 0.2181474268436432, 0.6189864873886108, 0.556307852268219, 1.5209287405014038, -0.3791666626930237, 0.5370948314666748, 0.13491736352443695, -0.13700827956199646, -0.19922272861003876, -0.43691486120224, -0.9601498246192932, -0.7224303483963013, -0.3302192986011505, -0.3823941648006439, 0.26727452874183655, 0.6607874035835266, 0.40002772212028503, -0.6787922382354736, -0.414061963558197, 0.3890122175216675, -0.03655533120036125, -0.042452506721019745, -0.1654159128665924, 0.0709465816617012, -0.37738919258117676, -0.5424783825874329, 0.2653469443321228, 0.16690343618392944, 0.3683478832244873, -0.5107182264328003, -0.03844349458813667, 0.26145052909851074, 0.41661402583122253, 0.5412387847900391, 0.16425082087516785, -1.0957328081130981, 0.2224871665239334, 0.1303640455007553, -0.5506837368011475, 0.004018515348434448, 0.9192678928375244, -0.6605191230773926, 0.06148605793714523, 0.2639954388141632, 0.6916989684104919, 0.3362869322299957, 0.1661684513092041, 0.5747344493865967, -0.16433502733707428, -0.23484519124031067, 0.09011612087488174, 0.22818894684314728, 0.6243401765823364, -0.2080034464597702, 0.5211077332496643, 0.023196790367364883, -0.6215007305145264, -0.6328763961791992, 0.07933216542005539, -1.0977259874343872, -0.08103816211223602, 1.381687045097351, -0.13036835193634033, -0.04534395784139633, -0.10015340894460678, -0.5536161065101624, 0.014617957174777985, -0.2715752422809601, 0.9919614195823669, 0.8425962328910828, -0.19792352616786957, 0.02893245406448841, -0.9130218625068665, 0.5112894773483276, 0.5735073685646057, -0.7658237814903259, -0.0914345234632492, 0.41178131103515625, 0.4186014235019684, 0.0819522961974144, 0.8377878069877625, -0.3852376937866211, 0.1321975439786911, -0.05670074373483658, -0.05084410682320595, 0.1751241534948349, 0.16704517602920532, -0.43128401041030884, 0.2698529064655304, 0.492023229598999, -0.09782712906599045 ]
http://arxiv.org/abs/2405.18335v1
http://arxiv.org/pdf/2405.18335v1
Interpretable classification of wiki-review streams
2024-05-28T16:28:58
2024-05-28T16:28:58
Silvia García Méndez, Fátima Leal, Benedita Malheiro, Juan Carlos Burguillo Rial
cs.CL
cs.CL, cs.AI, cs.LG
Wiki articles are created and maintained by a crowd of editors, producing a continuous stream of reviews. Reviews can take the form of additions, reverts, or both. This crowdsourcing model is exposed to manipulation since neither reviews nor editors are automatically screened and purged. To protect articles against vandalism or damage, the stream of reviews can be mined to classify reviews and profile editors in real-time. The goal of this work is to anticipate and explain which reviews to revert. This way, editors are informed why their edits will be reverted. The proposed method employs stream-based processing, updating the profiling and classification models on each incoming event. The profiling uses side and content-based features employing Natural Language Processing, and editor profiles are incrementally updated based on their reviews. Since the proposed method relies on self-explainable classification algorithms, it is possible to understand why a review has been classified as a revert or a non-revert. In addition, this work contributes an algorithm for generating synthetic data for class balancing, making the final classification fairer. The proposed online method was tested with a real data set from Wikivoyage, which was balanced through the aforementioned synthetic data generation. The results attained near-90 % values for all evaluation metrics (accuracy, precision, recall, and F-measure).
[ -0.509181022644043, -0.5930246114730835, 0.12319120764732361, 0.047283656895160675, -0.29256364703178406, 0.09500429779291153, -0.15964597463607788, -0.831991970539093, 0.4608455300331116, 0.7726228833198547, -0.7862392067909241, -0.1539481282234192, -0.39915046095848083, 0.4429956376552582, -0.9665743112564087, 1.4952737092971802, -0.23564748466014862, -0.07699663192033768, -0.25129076838493347, -0.3179045617580414, -0.34839558601379395, -0.2367384135723114, -0.5395259857177734, -0.37797191739082336, 0.8503357172012329, 0.22459259629249573, 0.47455525398254395, 0.4756297767162323, 0.11124914139509201, 0.33844485878944397, 0.0832175612449646, 0.295576274394989, -0.6509541273117065, 0.05926932394504547, -0.5329133868217468, -0.4229569733142853, -0.42460882663726807, 0.19134201109409332, 0.39907512068748474, 0.42082449793815613, -0.1832403689622879, 0.5357567667961121, 0.3305087387561798, 0.7066457867622375, -0.6787879467010498, -0.10245658457279205, -0.6628609895706177, 0.0783090591430664, -0.15843524038791656, -0.48616400361061096, -0.5965055823326111, -0.37515535950660706, -0.10527853667736053, -0.8327468633651733, 0.5722821354866028, -0.25486958026885986, 0.9022737145423889, -0.011732373386621475, -0.2739439308643341, -0.21253184974193573, -0.967026948928833, 0.5985369086265564, -0.5641161799430847, 0.3120022416114807, 0.41459354758262634, 0.32612818479537964, 0.0188987348228693, -0.6893813014030457, -1.0718109607696533, 0.17864635586738586, -0.11419849097728729, 0.25794196128845215, 0.07738102227449417, -0.12453742325305939, -0.11930141597986221, 0.42473524808883667, -0.4484432339668274, 0.134372740983963, -0.5460751056671143, -0.12171000242233276, 1.0099704265594482, 0.31856459379196167, 0.08792025595903397, -0.21303436160087585, -0.10148939490318298, 0.031395215541124344, -0.30503347516059875, -0.09173605591058731, 0.6536439061164856, -0.009082276374101639, 0.07166217267513275, 0.6268098950386047, -0.6349484920501709, 0.5545346140861511, 0.6171130537986755, -0.2631790041923523, 0.39753037691116333, -0.433303564786911, -0.12007468938827515, 0.005843585357069969, 0.5471439361572266, 0.8858755826950073, 0.11046013236045837, -0.048447612673044205, -0.17444689571857452, -0.18576788902282715, 0.6831246018409729, -0.5790198445320129, -0.17055904865264893, 0.1355229914188385, -0.7534369230270386, -1.113887906074524, 0.21584554016590118, -0.6820380091667175, -0.6157639622688293, -0.5020920038223267, 0.6184747815132141, 0.14308248460292816, -0.3492039740085602, -0.22240516543388367, -0.2974788248538971, -0.14047697186470032, 0.7024872899055481, -0.6441431045532227, 0.07719796150922775, 0.6169272661209106, 0.639598548412323, -0.25001806020736694, -0.4497913420200348, -0.06240685284137726, 0.19998231530189514, -0.1037892997264862, 1.0293753147125244, -0.10185801237821579, -0.11047337204217911, 0.07942603528499603, 0.25086474418640137, 0.15694935619831085, -0.28521403670310974, 0.3241879940032959, -0.7144250273704529, 0.5457424521446228, -0.004116155207157135, -0.6982396245002747, -0.2771894335746765, 0.5956495404243469, -0.8618637323379517, 0.6776853203773499, 0.17156843841075897, -1.0699833631515503, 0.5401334762573242, -0.20940075814723969, -0.14986668527126312, 0.1678997427225113, 0.4753718376159668, -0.7233906388282776, -0.006718214601278305, -0.07298345118761063, 0.2656351625919342, 0.18068155646324158, 0.20404689013957977, -0.5624831914901733, -0.12727591395378113, 0.3862260580062866, -0.509558916091919, 0.7967121601104736, 0.41308388113975525, -0.20621158182621002, 0.27698662877082825, -0.7587164044380188, 0.07455170154571533, -0.1375293731689453, -0.41477105021476746, -0.3662267029285431, 0.3878982961177826, 0.13371242582798004, 0.07055329531431198, 0.024240104481577873, -0.512040913105011, 0.3592275083065033, -0.41604864597320557, 0.0748038962483406, 0.896880567073822, 0.46684038639068604, 0.460976779460907, -0.22871530055999756, 0.24514274299144745, -0.2856294810771942, 0.8024133443832397, 0.11813771724700928, -0.4860694706439972, -0.9820911288261414, 0.02129090391099453, 0.30335965752601624, 0.49890461564064026, -0.7798223495483398, 0.5150513648986816, -0.32907986640930176, -0.8563597798347473, -0.606834352016449, 0.5004545450210571, 0.20733337104320526, 0.6413025259971619, 0.2859444320201874, -0.3052155077457428, -0.4067329466342926, -0.640920877456665, -0.5377252697944641, -0.436646968126297, -0.051956191658973694, -0.3094899654388428, 0.16773556172847748, -0.4877317249774933, 0.6968608498573303, -0.3989585340023041, -0.12296797335147858, 0.0241226963698864, 0.35639119148254395, -0.016939105466008186, 0.08164844661951065, 0.2687903940677643, -0.834223210811615, -0.4082823693752289, 0.07260842621326447, -0.5809281468391418, -0.5804473757743835, -0.2862642705440521, -0.06759536266326904, 0.3539268672466278, 0.3712371289730072, -0.46025100350379944, 0.5940898656845093, 0.20025195181369781, -0.4312419593334198, 0.731238603591919, 0.1528719812631607, 0.3655646741390228, -0.7713743448257446, -0.14235255122184753, -0.3117431700229645, -0.259526789188385, -0.5467378497123718, 0.01634778268635273, 0.040250830352306366, 0.08012843877077103, -0.26886752247810364, 0.6151286363601685, -0.06291108578443527, 0.1977676898241043, -0.4483569264411926, 0.06746019423007965, 0.3121697008609772, 0.33241894841194153, -0.08604653179645538, -0.08469989150762558, -0.08630864322185516, -0.6320980787277222, 0.7554804086685181, -0.04065171629190445, -0.33876660466194153, 0.8179282546043396, -0.11651881039142609, 0.10843519121408463, -0.3192894160747528, 0.4176851511001587, -0.7412709593772888, -0.12369180470705032, 0.3781838119029999, -0.6952077150344849, 0.28800955414772034, -0.2448657900094986, -0.3124825656414032, -0.26518136262893677, -0.6600497961044312, -0.1303820163011551, -0.1591506451368332, -0.8381810188293457, 0.6081492304801941, 0.24953815340995789, -0.011685707606375217, -0.5523091554641724, -0.21434901654720306, -0.11382915079593658, -0.10302785038948059, -0.4178311824798584, 0.3088298738002777, -0.11266449838876724, -0.3985599875450134, 0.5458393692970276, -0.10855268687009811, -0.039042677730321884, 0.14219936728477478, 0.3806794285774231, 0.3584025800228119, 0.2780790328979492, 0.3169800043106079, -0.031111907213926315, -0.0037136273458600044, -0.08387690782546997, -0.261144757270813, 0.2516095042228699, 0.30855226516723633, -0.043229784816503525, -0.4216478765010834, 0.1646091789007187, 0.5141825675964355, -0.020377280190587044, 0.8708160519599915, 0.8007009625434875, -0.2452014982700348, -0.43649041652679443, -0.7423080205917358, -0.05509680509567261, -0.4120500683784485, 0.34513893723487854, -0.07687193900346756, -0.46635621786117554, 0.4704972207546234, 0.46045151352882385, 0.5469146370887756, 0.9539859890937805, 0.7489335536956787, -0.5806900262832642, 0.9727706909179688, 0.2253967523574829, -0.09876574575901031, 0.6125357151031494, -0.20709030330181122, 0.05225498974323273, -0.33039700984954834, -0.512447714805603, -0.4966837465763092, -0.5796409249305725, -0.7226254343986511, 0.033179059624671936, 0.07225856184959412, 0.26146507263183594, 0.14982621371746063, 0.2814567983150482, -0.7340068221092224, 0.44397875666618347, 0.2683989107608795, -0.009264782071113586, 0.314982533454895, 0.12843312323093414, 0.47497159242630005, 0.4497860372066498, -0.2227090746164322, -0.38693857192993164, 1.0810014009475708, 0.18281827867031097, 0.6769984364509583, 0.015466754324734211, 0.6286845803260803, 0.8555968999862671, 1.021000623703003, -0.5497232675552368, 0.3021751046180725, 0.09824679046869278, -0.9816080927848816, -0.5630390644073486, -0.30885979533195496, -0.8066559433937073, 0.2984996438026428, -0.6403293609619141, -0.09360968321561813, 0.1116286888718605, 0.23737148940563202, 0.16598379611968994, 0.5402461886405945, -0.8589780926704407, 0.8126427531242371, -0.17004013061523438, -0.3197525143623352, -0.8201450705528259, -0.21364948153495789, 0.3508160412311554, -0.2730322778224945, 0.465121865272522, -0.05856018513441086, 0.1770351678133011, 0.7538185119628906, -0.8229540586471558, 0.6773213148117065, -0.3248806595802307, 0.010556354187428951, 0.5647674202919006, -0.008390737697482109, 0.21427029371261597, 0.07583993673324585, 0.11847852170467377, 0.2529758810997009, 0.27240586280822754, -0.2532929480075836, -0.7896024584770203, 0.9563594460487366, -0.9390518665313721, -0.34987321496009827, -0.3275442123413086, 0.11371184140443802, -0.059891168028116226, 0.1281324326992035, 0.5044103860855103, 0.23648065328598022, 0.052261825650930405, -0.07006290555000305, 0.18123099207878113, -0.03936481475830078, 0.2784271538257599, 0.8745975494384766, -0.49163514375686646, -0.5828761458396912, 1.0110641717910767, 0.5300778746604919, 0.022570474073290825, 0.33836913108825684, 0.19430416822433472, -0.0590675063431263, -0.5309962034225464, -0.53986656665802, 0.02420198731124401, -0.5287817716598511, -0.4908948540687561, -0.4194321036338806, -0.22912193834781647, -0.25717979669570923, -0.06752218306064606, -0.07678183168172836, -0.8952751159667969, -0.2846604883670807, -0.40627017617225647, 0.29414066672325134, 0.826491117477417, 0.16038228571414948, 0.10528994351625443, -0.728420615196228, 0.3463136851787567, 0.5629002451896667, 0.696495771408081, 0.24689777195453644, -0.5718258619308472, -0.48906609416007996, -0.18386921286582947, -0.6595733165740967, -1.1204559803009033, 0.29402804374694824, 0.1626383662223816, 0.48808714747428894, 0.6103051900863647, 0.09766566008329391, 0.6734089255332947, -0.3127862811088562, 0.6598870754241943, 0.12148801237344742, -0.6073136329650879, 0.4872961938381195, -0.06633427739143372, 0.0011420389637351036, 0.5675058960914612, 0.09173968434333801, -0.6851807236671448, -0.6318990588188171, -0.6656771898269653, -0.6945090293884277, 0.4418652653694153, 0.06581026315689087, 0.2098817527294159, 0.04475077614188194, 0.5951037406921387, 0.4247033894062042, 0.1331768035888672, -0.7094663381576538, -0.10914472490549088, -0.7707496285438538, -0.2016904056072235, -0.0496298223733902, -0.1907389760017395, 0.12392091006040573, -0.4063664972782135, 1.0336886644363403, 0.13511592149734497, -0.05546266958117485, 0.15254229307174683, -0.3238976299762726, -0.4651508629322052, 0.26529568433761597, 0.3633147180080414, 0.7576736211776733, -0.19882337749004364, 0.2114761620759964, 0.29402482509613037, -0.5958516597747803, -0.0803186371922493, -0.06794610619544983, -0.5542817711830139, 0.17047818005084991, 0.7908262610435486, 0.6098527908325195, -0.05056729167699814, -0.3399913012981415, 0.3527493178844452, -0.03553609922528267, -0.020638659596443176, -0.6015773415565491, 0.22816656529903412, -0.12604191899299622, 0.04325312748551369, 0.3545295298099518, 0.0856659784913063, 0.2703539729118347, -0.6136721968650818, 0.069400355219841, 0.23054014146327972, -0.09767621755599976, -0.6031178832054138, 0.46717891097068787, 0.5271748304367065, -0.32798704504966736, 0.6627565026283264, -0.07731208950281143, -0.4886283874511719, 0.22617903351783752, -0.07824409753084183, 1.0318529605865479, -0.3360028862953186, 0.21003074944019318, 0.6383631825447083, 0.1770811378955841, 0.256402850151062, -0.0494326576590538, -0.19456183910369873, -0.8634297251701355, -0.38279563188552856, -0.8233391642570496, -0.1962665617465973, 0.28447484970092773, -0.6907051801681519, 0.31848394870758057, -0.46169382333755493, -0.39726948738098145, 0.4887903928756714, 0.12276804447174072, -0.4077421724796295, 0.19180993735790253, 0.1560109406709671, 0.8941291570663452, -0.9998013973236084, 0.7394647598266602, 0.4114072322845459, -0.28686538338661194, -0.4001411497592926, -0.12411568313837051, 0.3169519901275635, -0.2644360661506653, 0.2803940176963806, 0.0618685744702816, 0.03100004605948925, -0.3732266128063202, -0.6198065280914307, -0.2855496108531952, 0.7723024487495422, -0.10734820365905762, -0.518303394317627, 0.06935694068670273, -0.27054694294929504, 0.8280537128448486, 0.07757329195737839, 0.0043635121546685696, -0.033547986298799515, 0.49331051111221313, -0.30077454447746277, -0.9852616786956787, -0.52134770154953, -0.5128719806671143, -0.5420896410942078, 0.37190139293670654, -0.4423935115337372, 0.4298766553401947, 0.18917813897132874, -0.06323055922985077, -0.2302946150302887, 0.6275215148925781, -0.09169698506593704, 0.7028872966766357, 0.8243648409843445, 0.6026806831359863, 0.5568296313285828, 0.06860341131687164, 1.0209839344024658, 0.11240140348672867, 0.4390376806259155, 0.9866583943367004, 0.06628944724798203, 0.8726980686187744, 0.5003576874732971, -0.20791685581207275, 0.7287649512290955, 0.5629395842552185, -0.32464292645454407, 0.5009503960609436, -0.0016306355828419328, -0.38076820969581604, -0.10843343287706375, -0.005140983499586582, -0.047000110149383545, 0.25506821274757385, 0.0652189552783966, -0.2548145353794098, 0.09540480375289917, 0.07087308168411255, -0.02207699604332447, -0.005899401381611824, -0.8057538270950317, 0.9297212958335876, -0.2406936138868332, -0.8753831386566162, 0.2671140730381012, 0.33764883875846863, 0.5631318092346191, -0.34859809279441833, -0.08348806947469711, -0.16741915047168732, 0.37019607424736023, -0.7622142434120178, -1.1042652130126953, 0.5504767298698425, 0.28284263610839844, -0.6043886542320251, -0.4231233596801758, 0.8329389691352844, -0.3379966616630554, -0.6248651742935181, 0.11544845998287201, 0.050602708011865616, -0.05272304639220238, 0.03178083896636963, -0.4968203008174896, 0.07535695284605026, 0.045416317880153656, -0.4639907777309418, 0.3179437518119812, 0.17741821706295013, -0.5684197545051575, 0.5028597116470337, 0.5904122591018677, 0.06584087759256363, 0.18785829842090607, 0.1727401167154312, 0.772462010383606, -0.2965528666973114, -0.48492923378944397, -0.6256557106971741, 0.42891910672187805, -0.43288230895996094, -0.1591372936964035, 0.8570517897605896, 0.8157491087913513, 1.1507681608200073, -0.22616876661777496, 0.5704958438873291, -0.06351692229509354, 0.7268709540367126, -0.30541470646858215, 1.027117133140564, -0.3869025409221649, -0.02215213142335415, -0.2117878645658493, -0.7229246497154236, 0.07086463272571564, 0.4295921325683594, 0.0664854571223259, -0.28497961163520813, 0.25651612877845764, 0.5243954658508301, 0.19312091171741486, 0.11402920633554459, -0.07908853888511658, 0.27113470435142517, 0.2406204789876938, -0.08289229869842529, 0.8124149441719055, -0.22024159133434296, 0.595940113067627, -0.527995228767395, -0.13405941426753998, -0.2911994755268097, -0.6308674812316895, -0.8369021415710449, -0.7573887705802917, -0.5380641222000122, -0.5697029232978821, -0.15048848092556, 0.6066186428070068, 0.5194008946418762, -0.941304087638855, -0.013750363141298294, 0.2961735129356384, 0.32757019996643066, -0.4723670780658722, -0.35415375232696533, 0.21623042225837708, -0.056175682693719864, -0.43805965781211853, 0.020811624825000763, 0.031174013391137123, -0.2861492335796356, -0.45406433939933777, -0.27553752064704895, 0.0569988377392292, 0.06958603858947754, 0.6401918530464172, 0.34990236163139343, -0.690292239189148, -0.4362819790840149, -0.20538771152496338, 0.08316634595394135, -0.3534995913505554, 0.5582553744316101, -0.7946339249610901, 0.9178516268730164, 0.8078582882881165, 0.16185273230075836, 0.854857325553894, 0.07742798328399658, 0.14719156920909882, -0.6400647163391113, -0.26944613456726074, -0.11190313845872879, -0.009179813787341118, 0.185908243060112, -0.41038262844085693, 0.3848394751548767, 0.6338983178138733, -0.3270804286003113, -0.8783410787582397, -0.1171075627207756, -0.8626151084899902, -0.276001900434494, 0.7287536859512329, 0.06760315597057343, -0.032602205872535706, -0.1957142949104309, -0.1196187436580658, 0.428493469953537, 0.16622047126293182, 1.1810415983200073, 0.9664974808692932, -0.18884600698947906, -0.24721650779247284, -0.4141174256801605, 0.3981444239616394, -0.297694593667984, -0.8796051740646362, 0.02793404459953308, 0.6214009523391724, 0.7076151371002197, 0.3001503646373749, 0.46986153721809387, -0.2010757029056549, 0.3320293724536896, -0.4227208197116852, 0.14409610629081726, -0.20743988454341888, -0.1526414155960083, -0.3397480547428131, 0.1877126544713974, -0.10907848924398422, 0.04559096693992615 ]
http://arxiv.org/abs/2405.18320v1
http://arxiv.org/pdf/2405.18320v1
Self-Supervised Learning Based Handwriting Verification
2024-05-28T16:11:11
2024-05-28T16:11:11
Mihir Chauhan, Mohammad Abuzar Shaikh, Bina Ramamurthy, Mingchen Gao, Siwei Lyu, Sargur Srihari
cs.CV
cs.CV, cs.AI, cs.CL
We present SSL-HV: Self-Supervised Learning approaches applied to the task of Handwriting Verification. This task involves determining whether a given pair of handwritten images originate from the same or different writer distribution. We have compared the performance of multiple generative, contrastive SSL approaches against handcrafted feature extractors and supervised learning on CEDAR AND dataset. We show that ResNet based Variational Auto-Encoder (VAE) outperforms other generative approaches achieving 76.3% accuracy, while ResNet-18 fine-tuned using Variance-Invariance-Covariance Regularization (VICReg) outperforms other contrastive approaches achieving 78% accuracy. Using a pre-trained VAE and VICReg for the downstream task of writer verification we observed a relative improvement in accuracy of 6.7% and 9% over ResNet-18 supervised baseline with 10% writer labels.
[ 0.2362915724515915, -0.5754354000091553, 0.43325531482696533, 0.18123573064804077, -0.09776636213064194, 0.2397729903459549, -0.0031069256365299225, -0.591631293296814, 0.21849894523620605, 0.7358286380767822, -0.7846022844314575, -0.8227807283401489, -0.5940024852752686, 0.2266731709241867, -0.3999392092227936, 0.6878747940063477, -0.18331703543663025, -0.059542216360569, -0.401361346244812, -0.1636715978384018, -0.1340184062719345, -0.5255069136619568, -0.5855637192726135, -0.0057692574337124825, 0.4027383029460907, 0.448265939950943, 0.06624039262533188, 0.9500200152397156, 0.9173703789710999, 0.4079190194606781, 0.2974933087825775, 0.2966427206993103, -0.23322828114032745, 0.3414463400840759, -0.0019336738623678684, -0.4578125774860382, -0.4336908459663391, 0.14616510272026062, 0.3115338683128357, -0.08085037767887115, -0.019040418788790703, 0.3529447615146637, -0.007002894766628742, 0.8972976803779602, -0.9775633811950684, -0.19798150658607483, -0.29790887236595154, 0.36201655864715576, -0.41015222668647766, -0.08271845430135727, -0.6397197246551514, -0.5303232073783875, 0.05634390562772751, -0.6424151062965393, 0.8131418228149414, 0.035505328327417374, 0.8652424812316895, 0.2861359417438507, -0.27131563425064087, -0.6326635479927063, -0.6441100239753723, 0.6812511682510376, -0.49677661061286926, 0.3418864905834198, 0.5593864321708679, 0.4739307463169098, 0.11053408682346344, -1.037471055984497, -0.5487577319145203, -0.3177047669887543, -0.13666602969169617, 0.6045782566070557, 0.2896306812763214, 0.045974250882864, 0.27790629863739014, 0.712760329246521, -0.47413957118988037, 0.29048752784729004, -0.23590916395187378, -0.4203132688999176, 0.7324067950248718, 0.17410051822662354, 0.2627096176147461, 0.027997896075248718, -0.348812073469162, -0.3724440634250641, -0.5823310613632202, 0.21350498497486115, 0.705091118812561, 0.052124522626399994, -0.3204621374607086, 0.35134992003440857, -0.10551025718450546, 0.7543287873268127, 0.4255348742008209, -0.2559114992618561, 0.20770540833473206, -0.3319610357284546, -0.31166529655456543, -0.30229467153549194, 1.0187723636627197, 0.02365618385374546, 0.06117375195026398, 0.03492093086242676, -0.010873868130147457, -0.24495728313922882, 0.2911893129348755, -0.4443610608577728, -0.4677095115184784, -0.15411591529846191, -0.7660325169563293, -0.501274824142456, 0.1976466178894043, -0.5690147876739502, -0.559735894203186, -0.33051788806915283, 0.3150061070919037, -0.28177034854888916, -0.042627353221178055, -0.020921381190419197, -0.2901332378387451, 0.3945929706096649, 0.6512274742126465, -1.0740083456039429, 0.13916711509227753, 0.402329683303833, 0.5525398254394531, -0.39555808901786804, -0.45035848021507263, -0.270587295293808, -0.032856285572052, -0.47216475009918213, 0.48515307903289795, 0.10555825382471085, -0.2024233490228653, -0.15918882191181183, -0.07461600750684738, -0.09640716761350632, -0.44169527292251587, 0.5905938148498535, -0.1551445573568344, 0.5146104097366333, -0.16414088010787964, -0.5604680776596069, 0.09680506587028503, 0.2504085600376129, -0.850304126739502, 1.2546113729476929, 0.4605279862880707, -0.8148412704467773, 0.4641519784927368, -0.20051974058151245, -0.5252184271812439, 0.06160642206668854, -0.35327017307281494, -1.067225694656372, 0.017482947558164597, 0.2904883921146393, 0.8356257677078247, -0.2904551029205322, -0.22767044603824615, -0.3055945336818695, -0.401140421628952, 0.3073051869869232, -0.7177307605743408, 0.9934658408164978, 0.22553594410419464, -0.4263848662376404, 0.013871245086193085, -1.219989538192749, 0.00022129253193270415, 0.014323556795716286, -0.37222209572792053, -0.04799174144864082, -0.5020068287849426, 0.03146779537200928, 0.18577821552753448, 0.39386916160583496, -1.0778884887695312, -0.022649528458714485, -0.21638305485248566, 0.08830180764198303, 0.44719967246055603, 0.13812480866909027, 0.10190164297819138, -0.31052324175834656, 0.5633610486984253, 0.023372109979391098, 0.39617544412612915, -0.10499342530965805, -0.004779892973601818, -1.0299193859100342, -0.47598347067832947, 0.5009790658950806, 0.551451563835144, -0.7110810875892639, 0.7310591340065002, 0.16772104799747467, -0.6378310918807983, -0.8253660798072815, 0.2574622929096222, 0.837921679019928, 0.7740876078605652, 0.5683403015136719, -0.5367166996002197, -0.4740489423274994, -0.9937263131141663, -0.11437293887138367, -0.18247288465499878, 0.10351862758398056, 0.273233562707901, 0.21455442905426025, 0.15824107825756073, 0.582633912563324, -0.2728482484817505, -0.6998624205589294, 0.22582311928272247, 0.5283382534980774, 0.023613112047314644, 0.7100232243537903, 0.4221138656139374, -0.383607417345047, -1.150460958480835, -0.04236937686800957, -1.0533376932144165, 0.08300869166851044, -0.5095357894897461, 0.06987930089235306, 0.5651478171348572, 0.8043766021728516, 0.08786465972661972, 0.8209259510040283, 0.40721869468688965, -0.16394519805908203, 0.6800004243850708, -0.7319499254226685, 0.4243062138557434, -0.7525622248649597, -0.128646582365036, 0.20072244107723236, -0.31808146834373474, -0.413486123085022, 0.12213808298110962, 0.6104045510292053, 0.37160974740982056, -0.11936695128679276, -0.08933587372303009, -0.9271313548088074, 0.012423713691532612, -0.19292564690113068, -0.3620026111602783, 0.05288530886173248, 0.4228510558605194, 0.3279222846031189, 0.7086008787155151, 0.6640592217445374, 0.08139783889055252, 0.532200038433075, -0.19382840394973755, -0.23976264894008636, 0.8447449207305908, -0.5866169929504395, 0.29155296087265015, -0.16643022000789642, 0.042221177369356155, -1.1767066717147827, 0.12495991587638855, 0.2013804018497467, -0.5027885437011719, 0.6241526007652283, -0.06679647415876389, -0.20969584584236145, -0.6343026161193848, -0.15421338379383087, -0.06392867863178253, 0.6332746744155884, -0.7203571200370789, 0.9660096168518066, -0.2900337278842926, 0.33615198731422424, -0.8227929472923279, -0.8341553211212158, -0.0001002441204036586, -0.12691809237003326, -0.46596187353134155, 0.26675814390182495, 0.08753474801778793, 0.20748578011989594, -0.285938024520874, -0.07735989987850189, -0.13863511383533478, 0.15297196805477142, 0.5260070562362671, 0.37100693583488464, -0.32781982421875, -0.044624559581279755, 0.03124975971877575, -0.12322964519262314, 0.13834896683692932, -0.03241328150033951, -0.053774915635585785, -0.10158108919858932, -0.6338353157043457, -0.9199824333190918, 0.08964869379997253, 0.39318689703941345, -0.2712286412715912, 0.5917003750801086, 0.6350457072257996, 0.019713209941983223, -0.3495352566242218, -0.9503647089004517, -0.12321232259273529, -0.49739089608192444, -0.19768187403678894, -0.7074226140975952, -0.7819864749908447, 0.5970853567123413, 0.027798177674412727, -0.24875935912132263, 0.6389762759208679, 0.438925176858902, -0.7241554260253906, 0.09218838810920715, 0.48691534996032715, 0.10261405259370804, 0.4229269027709961, -0.32198330760002136, -0.20246395468711853, -0.7718952298164368, -0.21865782141685486, -0.3656161427497864, -0.03161892294883728, -0.5518282055854797, -0.23516127467155457, 0.04393565654754639, -0.24272070825099945, 0.09195392578840256, 0.5760897397994995, -0.8555058240890503, 0.6397112011909485, 0.9113682508468628, 0.38419702649116516, 0.10516075789928436, -0.23518534004688263, -0.29982614517211914, -0.05477236583828926, -0.3361237049102783, -0.20348429679870605, 1.5319559574127197, 0.2443610280752182, 0.7260667681694031, -0.18322424590587616, 1.3693259954452515, 0.6403656601905823, 0.40739142894744873, -0.1798008382320404, 0.2626648247241974, -0.44691404700279236, -0.44124090671539307, -0.8308930993080139, -0.06290945410728455, -0.908532440662384, 0.20999442040920258, -0.6102353930473328, -0.3790127635002136, 0.3162650763988495, 0.41488364338874817, -0.3216635584831238, 0.012275110930204391, -0.6202730536460876, 0.7992015480995178, -0.2703939974308014, -0.7026069760322571, 0.07980307191610336, -0.9071717262268066, 0.09854234755039215, -0.0029998605605214834, -0.2672516405582428, 0.05577566474676132, 0.4658406376838684, 0.4887789487838745, -0.5752593874931335, 1.147709846496582, -0.11118866503238678, -0.23815913498401642, 0.5273045897483826, 0.10300595313310623, 0.40939438343048096, -0.414849191904068, -0.16955581307411194, 0.008562826551496983, -0.13111743330955505, -0.08302637934684753, -0.7061599493026733, 0.5985090136528015, -0.8806813955307007, -0.4324549436569214, -0.4881547689437866, -0.0071702259592711926, 0.14708666503429413, 0.06850801408290863, 0.7488411068916321, 0.5165954232215881, -0.2856709659099579, 0.2305954098701477, 0.6511166095733643, 0.0581030435860157, 0.5440930724143982, 0.5806513428688049, 0.373275488615036, -0.5996836423873901, 0.9209434986114502, 0.12951183319091797, 0.06535840034484863, 0.5553351640701294, 0.2340119630098343, -0.34531262516975403, -0.7124111652374268, -0.6349384784698486, 0.17418457567691803, -0.8994129300117493, -0.05959782749414444, -0.19192644953727722, -0.35607460141181946, -0.4208383560180664, -0.2716452181339264, -0.516873836517334, -0.3640625774860382, -0.6191841959953308, 0.05458703637123108, 0.0352371521294117, 0.5299845337867737, -0.1162201389670372, 0.28514909744262695, -0.5249955654144287, 0.1879933923482895, 0.3811558783054352, 0.2121150940656662, -0.07433594763278961, -0.5491981506347656, -0.22480995953083038, -0.3821812868118286, -0.2591315805912018, -0.7175849676132202, 0.1290075182914734, 0.000006995225248829229, 0.5593392848968506, 0.17362470924854279, -0.04534931108355522, 0.49173620343208313, -0.22202928364276886, 0.6515127420425415, 0.4186193645000458, -0.9322271943092346, 0.5613798499107361, -0.4176599979400635, 0.12338054180145264, 0.832365095615387, 0.3002762496471405, -0.426878422498703, -0.542292058467865, -0.8799542188644409, -0.4777306616306305, 0.29782235622406006, 0.2046113759279251, -0.3079414665699005, 0.2552644610404968, 0.7298159003257751, 0.360810250043869, -0.13423839211463928, -0.7930600643157959, -0.28314003348350525, -0.44187450408935547, -0.6166003942489624, 0.09412427246570587, -0.22760017216205597, 0.14123934507369995, -0.1776026040315628, 0.5241323113441467, -0.13324695825576782, -0.0468796007335186, 0.5466002821922302, -0.04022527113556862, 0.05328771844506264, -0.10494433343410492, 0.645126223564148, 0.44914379715919495, -0.1630145013332367, 0.07313177734613419, 0.09247270226478577, -0.4010368883609772, 0.3659876585006714, -0.22644682228565216, -0.35519644618034363, -0.23216098546981812, 0.9623361229896545, 0.6068760752677917, -0.38726285099983215, -0.03387635946273804, 0.8589102625846863, -0.21204087138175964, -0.7045825123786926, -0.6222587823867798, 0.31095123291015625, -0.06925921142101288, -0.03081861324608326, -0.010502856224775314, -0.009269787929952145, 0.37843143939971924, -0.028609929606318474, -0.0491226464509964, 0.2920033931732178, -0.42556890845298767, -0.03747601807117462, 0.3676510751247406, 0.22385071218013763, -0.5068507194519043, 0.9219874143600464, 0.07171253859996796, -0.10729087144136429, 0.9890048503875732, 0.6309724450111389, 1.0426775217056274, -0.3637034296989441, 0.2438521385192871, 0.5937728881835938, 0.2856110632419586, 0.06810812652111053, 0.4908604621887207, -0.5286073088645935, -0.5697625875473022, -0.1258435845375061, -0.20550118386745453, -0.7078657746315002, -0.09833525866270065, -0.9475566148757935, -0.03716905042529106, -0.5347293615341187, -0.05578417703509331, 0.09319421648979187, -0.26904645562171936, -0.640961229801178, 0.5188417434692383, -0.125620037317276, 0.3871523439884186, -1.1042729616165161, 0.8601868152618408, 0.2703094184398651, -0.43054962158203125, -0.6978839039802551, -0.062490999698638916, -0.050300419330596924, -0.7234287261962891, 0.843475878238678, 0.17696645855903625, -0.5134784579277039, -0.040551796555519104, -0.4151366055011749, -0.8970674872398376, 1.3185182809829712, -0.09893251955509186, -0.6224769353866577, 0.5032592415809631, 0.10917670279741287, 1.042792558670044, -0.27703920006752014, 0.3078744411468506, 0.3676459491252899, 0.09733950346708298, 0.22828885912895203, -0.7383430004119873, 0.10117641091346741, -0.11344645172357559, 0.10138769447803497, 0.02819138765335083, -0.7735493183135986, 0.583878219127655, 0.08927478641271591, -0.11983007192611694, 0.08325980603694916, 1.0653613805770874, 0.057472143322229385, 0.18836800754070282, 0.11811944097280502, 0.6058142781257629, 0.8453722596168518, 0.07857409119606018, 0.7221301794052124, -0.17061595618724823, 0.0295727476477623, 1.330654263496399, -0.11953593790531158, 0.7531536221504211, 0.35550984740257263, -0.29003411531448364, 0.9595162868499756, 0.45003974437713623, -0.45707353949546814, 0.24355414509773254, 0.5244407653808594, -0.2756884694099426, -0.2512044310569763, 0.4891151487827301, 0.009642655961215496, 0.6460961103439331, 0.13961519300937653, -0.7901857495307922, -0.014782649464905262, 0.10641776025295258, -0.549354076385498, 0.5269262790679932, -0.011782998219132423, 1.0238322019577026, -0.2010074108839035, -0.9879214763641357, 0.4007878601551056, 0.17392610013484955, 0.6970131397247314, -0.4549773037433624, -0.016185453161597252, -0.13599662482738495, 0.29070326685905457, -0.16520211100578308, -0.7377345561981201, 0.21258139610290527, -0.42452019453048706, -0.12336792796850204, -0.43001970648765564, 1.187103509902954, -0.4675728678703308, -0.4011206030845642, -0.15185889601707458, 0.3724210262298584, 0.1065634936094284, 0.35898566246032715, -0.6920289397239685, -0.10762743651866913, -0.1129036694765091, 0.009010560810565948, 0.04897613823413849, 0.44386136531829834, 0.12729474902153015, 0.5794313549995422, 0.5107437968254089, -0.05563262477517128, 0.06669022887945175, 0.052077069878578186, 0.29741737246513367, -0.5186874866485596, -0.5826472043991089, -1.0498298406600952, 0.23978284001350403, -0.37913763523101807, -0.6026793122291565, 1.1787891387939453, 0.6723672151565552, 0.6417515277862549, -0.6338517665863037, 0.8073412775993347, 0.3627588450908661, 0.6397197842597961, -0.7064760327339172, 0.6986066699028015, -0.23310044407844543, -0.306932270526886, -0.15753716230392456, -0.27347666025161743, -0.44699007272720337, 0.9294275045394897, -0.14054231345653534, 0.08054082840681076, 0.8271458148956299, 0.7481039762496948, 0.06310027092695236, 0.07517524063587189, 0.2813381850719452, -0.6122826933860779, 0.11116742342710495, 0.5704717636108398, 0.7953361868858337, -0.5642077922821045, -0.04911920055747032, -0.529940128326416, -0.2668229937553406, -0.11519550532102585, -1.1992840766906738, -1.227137804031372, -0.6908032298088074, -0.7411253452301025, -0.45328691601753235, -0.009658340364694595, 0.5940716862678528, 0.7617139220237732, -0.5750423073768616, -0.2682795226573944, -0.2864242494106293, -0.2008652687072754, -0.4441257119178772, -0.1314152628183365, 0.8638139367103577, -0.054054148495197296, -0.3661438524723053, 0.2521047592163086, 0.406226247549057, 0.6973665356636047, -0.4180818498134613, 0.08265327662229538, 0.1462249457836151, -0.13284921646118164, 0.16095131635665894, 0.47044315934181213, -0.7237804532051086, -0.004767401609569788, -0.1228995993733406, -0.5553986430168152, 0.3208767771720886, 0.7656728029251099, -0.5985641479492188, 0.6496228575706482, 0.5239837765693665, 0.4997045397758484, 0.9737941026687622, 0.14106903970241547, 0.12872011959552765, -0.7624463438987732, -0.3469870388507843, 0.054242536425590515, 0.2511897087097168, 0.38306474685668945, -0.8435802459716797, 0.47053924202919006, 0.3905647397041321, -0.6059941649436951, -0.1650930941104889, 0.20174719393253326, -0.8830565810203552, -0.07958202809095383, 0.6233382225036621, -0.5760299563407898, -0.41016000509262085, -0.18398213386535645, -0.018060648813843727, 0.2168624997138977, 0.10013119131326675, 0.959417998790741, 0.7943789958953857, -0.3150493800640106, -0.4375482499599457, 0.31703755259513855, 0.6688067317008972, 0.43037816882133484, -0.9657633900642395, 0.1205897331237793, 0.5618786215782166, 0.40268832445144653, 0.10753244161605835, 1.2344331741333008, -0.10852060467004776, 0.5781510472297668, 0.3234005570411682, 0.4504646956920624, -0.5356156229972839, -0.48126301169395447, -0.3349318206310272, 0.3524928689002991, 0.11878793686628342, -0.3281335234642029 ]
http://arxiv.org/abs/2405.18308v1
http://arxiv.org/pdf/2405.18308v1
Joint Lemmatization and Morphological Tagging with LEMMING
2024-05-28T16:01:19
2024-05-28T16:01:19
Thomas Muller, Ryan Cotterell, Alexander Fraser, Hinrich Schütze
cs.CL
cs.CL
We present LEMMING, a modular log-linear model that jointly models lemmatization and tagging and supports the integration of arbitrary global features. It is trainable on corpora annotated with gold standard tags and lemmata and does not rely on morphological dictionaries or analyzers. LEMMING sets the new state of the art in token-based statistical lemmatization on six languages; e.g., for Czech lemmatization, we reduce the error by 60%, from 4.05 to 1.58. We also give empirical evidence that jointly modeling morphological tags and lemmata is mutually beneficial.
[ -0.37233421206474304, -0.9337789416313171, 0.3310033977031708, 0.059904880821704865, -0.5483800172805786, -0.07085084915161133, -0.26328855752944946, -0.6493396759033203, 0.5111760497093201, 0.4187220633029938, -0.3883082866668701, -0.7407485246658325, -0.3947385251522064, -0.16257980465888977, -0.16748793423175812, 0.8605782389640808, 0.24981249868869781, 0.38438472151756287, -0.23497606813907623, -0.24203315377235413, -0.3904499113559723, -1.244807481765747, -0.44306349754333496, -0.24399079382419586, 0.8323307633399963, -0.032199058681726456, 0.6559555530548096, 0.760599672794342, 0.41241756081581116, 0.25252220034599304, -0.11277700960636139, 0.2771044373512268, 0.1379346400499344, 0.06076793745160103, -0.34300047159194946, -0.5216712951660156, -1.2047128677368164, -0.1314680576324463, 0.6863582134246826, 0.9734933972358704, -0.02157689817249775, 0.09317439794540405, -0.22435148060321808, 0.4036650061607361, -0.4076164662837982, 0.06411460041999817, -0.7096309065818787, -0.1479845494031906, -0.36523839831352234, -0.17345592379570007, -0.365848183631897, -0.15120750665664673, -0.12768135964870453, -0.39122074842453003, 0.07736797630786896, -0.24671998620033264, 0.7450311779975891, 0.2893103361129761, -0.25996312499046326, -0.4204103946685791, -0.29803407192230225, 0.8473155498504639, -0.8806888461112976, 0.3955082297325134, 0.6412608623504639, 0.027180511504411697, 0.06532303988933563, -0.810158908367157, -0.08868435025215149, -0.07768520712852478, -0.28293177485466003, -0.20868898928165436, 0.04787812754511833, 0.013599266298115253, -0.00018415965314488858, 0.21217624843120575, -0.5097525119781494, 0.3351462483406067, -0.22510948777198792, -0.34787699580192566, 0.910794198513031, 0.14578412473201752, 0.7128105759620667, -0.10418348759412766, -0.31246429681777954, 0.31119415163993835, -0.4722224771976471, -0.2581169307231903, 0.583757221698761, 0.7404419183731079, 0.08974604308605194, 0.7161892652511597, 0.13888657093048096, 0.6859945058822632, -0.33851075172424316, -0.2822369933128357, 0.34854650497436523, -0.34133630990982056, -0.2956889867782593, -0.047331880778074265, 0.7480539679527283, 0.40274912118911743, 0.24876266717910767, -0.11344457417726517, -0.30870965123176575, 0.41478410363197327, -0.1180652603507042, -0.35314908623695374, -0.5195742249488831, 0.1880170851945877, -0.2727590501308441, -0.029961340129375458, -0.009677516296505928, -0.9504153728485107, -0.09637211263179779, -0.2592153549194336, 0.6306567192077637, -0.7335336208343506, -0.6085683107376099, 0.3690287470817566, -0.17761695384979248, 0.06146528944373131, 0.30605658888816833, -1.276917815208435, 0.5815099477767944, 1.1236138343811035, 1.0555238723754883, -0.007121224422007799, -0.25443705916404724, -0.7206405401229858, 0.288364976644516, -0.27630379796028137, 1.0108864307403564, -0.8666473627090454, -0.35727018117904663, -0.007493490818887949, 0.02029561996459961, -0.45628631114959717, -0.5298393368721008, 0.014679175801575184, -0.23646171391010284, -0.07137808948755264, -0.10621750354766846, -0.9716710448265076, -0.33364588022232056, 0.17498794198036194, -0.7042350172996521, 1.195615530014038, -0.11186008155345917, -0.9613489508628845, 0.47494810819625854, -0.5401691794395447, -0.14665882289409637, 0.3075981140136719, -0.04948097839951515, -0.34808480739593506, 0.035168882459402084, 0.10951538383960724, 0.5060166716575623, 0.33310845494270325, 0.4947059750556946, -0.47579002380371094, -0.2774139642715454, 0.04721713811159134, 0.013595959171652794, 0.7863644361495972, -0.08423877507448196, -0.04619213193655014, 0.08299313485622406, -0.5873052477836609, -0.08485304564237595, -0.238275408744812, -0.23644980788230896, -0.7152447700500488, 0.19314588606357574, -0.03103446215391159, -0.18897923827171326, 0.5811849236488342, -0.24318689107894897, 0.5323667526245117, -0.28091275691986084, 0.2885478734970093, 0.5526978969573975, 0.1027614027261734, 0.45281982421875, -0.38886284828186035, 0.3393172323703766, -0.0931134894490242, 0.033639244735240936, -0.35216033458709717, -0.806501030921936, -0.6587049961090088, -0.9840832948684692, 0.9069827198982239, 0.7027345299720764, -0.1633949726819992, 0.7361314296722412, 0.06399231404066086, -0.3619033098220825, -0.40316081047058105, 0.009604011662304401, 0.19108697772026062, -0.11135818064212799, 0.2724168300628662, -0.6994737982749939, -0.7703812718391418, -0.7467361688613892, -0.08955386281013489, -0.29203808307647705, 0.2555443346500397, -0.2784607410430908, 0.44956132769584656, -0.18016570806503296, 0.8278392553329468, -0.10758022218942642, -0.4333568811416626, -0.3670446276664734, 0.46250119805336, 0.1376897543668747, 0.7120029330253601, 0.744031548500061, -0.6775860786437988, -0.7097686529159546, 0.2612914443016052, -0.5008367896080017, -0.20854173600673676, 0.2351313680410385, 0.09282699972391129, 0.7589976191520691, 0.5400436520576477, -0.7193058133125305, 0.6346222162246704, 0.5462765693664551, -0.055803392082452774, 0.39654093980789185, -0.4079276919364929, -0.2206343412399292, -1.1163370609283447, -0.027653280645608902, 0.06256670504808426, -0.5260640382766724, -0.6461746692657471, 0.16855274140834808, -0.09104457497596741, 0.46470504999160767, -0.4921938180923462, 0.7265411019325256, -0.5781916379928589, -0.5520136952400208, -0.08124679327011108, 0.09414337575435638, -0.25414517521858215, 0.2880811393260956, 0.07051479071378708, 0.5307518243789673, 0.8145439624786377, -0.37697455286979675, 0.3106129467487335, -0.030064526945352554, -0.1744997203350067, 0.6347578167915344, -0.32032284140586853, -0.06124803051352501, -0.041599053889513016, 0.09649883955717087, -0.8729698061943054, -0.3187229335308075, 0.37631887197494507, -0.6169741153717041, 0.2636502683162689, -0.6820458769798279, -1.1628097295761108, 0.0668925940990448, -0.401471346616745, 0.22891858220100403, 0.8001919388771057, -0.33478644490242004, 0.6068059802055359, 0.6172642707824707, -0.2488265186548233, -0.5106162428855896, -0.6384925842285156, -0.13806672394275665, -0.44427475333213806, -0.4828571081161499, 0.16888059675693512, -0.16496451199054718, -0.36945241689682007, 0.367019921541214, 0.039572399109601974, -0.3248116672039032, 0.00989028625190258, 0.0023186812177300453, 0.21807415783405304, -0.2722034752368927, 0.27508556842803955, -0.2444041520357132, -0.3294966220855713, -0.273585706949234, -0.45019248127937317, 0.9456572532653809, 0.06987059861421585, -0.5020763278007507, -0.5065315961837769, 0.46912238001823425, 0.1717522144317627, -0.43017229437828064, 0.6124095916748047, 0.9257150292396545, -0.6583034992218018, -0.1672690361738205, -0.4021930694580078, 0.3054056763648987, -0.47812968492507935, 0.3194172978401184, -0.40463483333587646, -0.9522530436515808, 0.7362793684005737, -0.010011604987084866, 0.02356196939945221, 0.49645891785621643, 0.7033124566078186, -0.16147886216640472, 1.2278972864151, 0.9399587512016296, 0.09402479976415634, 0.3708450198173523, -0.13141605257987976, 0.07108335196971893, -0.6283078789710999, -0.3369337320327759, -0.4943419396877289, -0.08624909818172455, -0.7680001854896545, -0.7574804425239563, 0.017148906365036964, 0.4879657030105591, 0.14474661648273468, 0.24198965728282928, -0.47517189383506775, 0.533089816570282, 0.5630287528038025, -0.19680267572402954, 0.29790055751800537, 0.09783870726823807, -0.5860666036605835, -0.1831078827381134, -0.6022820472717285, -0.6982275247573853, 0.794273316860199, 0.28438153862953186, 0.8601935505867004, -0.057891666889190674, 1.0404309034347534, 0.2695227265357971, 0.2498636692762375, -0.9325020909309387, 0.7972086668014526, -0.5638036131858826, -0.742563784122467, -0.22811134159564972, -0.22630836069583893, -0.7746562957763672, 0.35146671533584595, 0.03978116437792778, -1.331230640411377, -0.11312800645828247, 0.2812564969062805, -0.12175562977790833, 0.8426164388656616, -0.5889301300048828, 0.7954257130622864, -0.10668271034955978, -0.03014235384762287, -0.3005647659301758, -0.4391803741455078, 0.27508124709129333, -0.219234898686409, 0.4823787808418274, -0.7182164192199707, -0.5297801494598389, 0.7149593234062195, -0.44237077236175537, 1.3491013050079346, -0.2079353928565979, -0.10248979926109314, 0.25525325536727905, 0.15998601913452148, -0.08238895237445831, 0.0908951386809349, -0.12130342423915863, 0.2813497483730316, 0.36866217851638794, -0.5862137675285339, -0.2904239594936371, 0.6619589924812317, -0.6001250743865967, -0.3108506500720978, -0.6391054391860962, -0.6836138963699341, -0.026600511744618416, 0.18891935050487518, -0.07147427648305893, 0.5005019307136536, -0.23766794800758362, -0.23754821717739105, 0.5164037942886353, -0.12883387506008148, 0.6688178181648254, 0.17910170555114746, -0.6037409901618958, -0.7521704435348511, 1.0301775932312012, 0.4226020276546478, 0.21492548286914825, 0.41741910576820374, -0.03133256360888481, -0.21199096739292145, -0.43655773997306824, -0.36124667525291443, 0.6952624320983887, -0.8688690066337585, -0.1663554459810257, -0.8717585206031799, -0.5418965816497803, -0.2788096070289612, -0.1541910171508789, -0.348844975233078, -0.7267695665359497, -0.34915125370025635, 0.14828453958034515, 0.5437241792678833, 1.1685950756072998, -0.6242466568946838, 0.4547187089920044, -1.0395995378494263, -0.11616485565900803, 0.37205809354782104, 0.2925577759742737, -0.19201038777828217, -0.26325491070747375, -0.46257954835891724, -0.05924016237258911, 0.005539939738810062, -0.8617870807647705, 0.6095461845397949, 0.18585051596164703, 0.8566504120826721, 0.03197242319583893, -0.35725218057632446, 0.8218821287155151, -0.7281269431114197, 0.9471949934959412, 0.15540173649787903, -1.2607916593551636, 0.3086963891983032, -0.48260918259620667, 0.06735725700855255, 0.13270919024944305, 0.6264545917510986, -0.5797972083091736, -0.39597123861312866, -0.6571982502937317, -0.828302264213562, 0.48861974477767944, -0.2954028844833374, 0.3044629991054535, -0.19759999215602875, 0.18914972245693207, 0.3684987723827362, 0.11652681976556778, -0.5087196230888367, -0.0195141714066267, 0.2546918988227844, -0.32163718342781067, -0.11861952394247055, -0.3811533749103546, 0.09318867325782776, -0.5020158290863037, 0.6900171041488647, -0.2084086686372757, 0.18722136318683624, -0.03750398010015488, -0.3981291651725769, -0.19327199459075928, 0.014485565945506096, 0.6023097634315491, 0.761168897151947, -0.3497823476791382, 0.4149796962738037, 0.24581727385520935, -0.22757431864738464, 0.06924863159656525, -0.001462837215512991, 0.09822027385234833, 0.5287522673606873, 0.5904860496520996, 0.3808751702308655, 0.2888680100440979, -0.39948225021362305, 0.3435264527797699, 0.1660267561674118, -0.42644429206848145, -0.1599356234073639, 0.05688662827014923, 0.535464346408844, 0.25902119278907776, 0.33528396487236023, 0.03516412898898125, -0.08158715069293976, -0.4665503203868866, 0.5751233696937561, 0.6372650265693665, -0.22534602880477905, -0.8185309171676636, 0.3874289393424988, -0.037497274577617645, -0.5778718590736389, 0.008539589121937752, -0.2560728192329407, -0.5624397397041321, 0.5049669146537781, 0.6031286120414734, 0.58236163854599, -0.6255563497543335, 0.316122442483902, 0.48740696907043457, 0.3132284879684448, -0.09874805063009262, 0.5233870148658752, 0.0826709195971489, -0.4125809073448181, -0.6303030848503113, -0.7514188885688782, -0.5748971104621887, -0.04551789537072182, -0.7785750031471252, 0.562273383140564, -0.5084210634231567, -0.3701578974723816, 0.36152446269989014, 0.12476219981908798, -0.2238466739654541, 0.049724359065294266, 0.3785255253314972, 0.98199462890625, -0.8598616123199463, 1.1961963176727295, 1.0302520990371704, -0.41562917828559875, -0.24016694724559784, -0.10513249784708023, 0.022894348949193954, -0.8133483529090881, 0.6262168884277344, 0.41252660751342773, 0.282291978597641, -0.020054973661899567, -0.5465716123580933, -0.984803318977356, 0.873770534992218, 0.2545519173145294, -0.3875879943370819, -0.01904095895588398, 0.15023230016231537, 0.5404912233352661, -0.5779672265052795, -0.16612911224365234, 0.38849425315856934, 0.41132476925849915, -0.01973320171236992, -1.333108901977539, -0.3988955616950989, -0.09096609801054001, -0.14036065340042114, 0.4531894028186798, -0.731784462928772, 1.1726946830749512, 0.15476612746715546, -0.2656984031200409, 0.3660370707511902, 0.3682187497615814, 0.0448242649435997, 0.1847693920135498, 0.5457810759544373, 0.8212375640869141, 0.8315913677215576, 0.13512292504310608, 0.5479168891906738, -0.06715189665555954, 0.4585402011871338, 0.969436764717102, -0.3286561667919159, 1.129510760307312, 0.42155739665031433, -0.09827110171318054, 0.6091776490211487, 0.8804311752319336, 0.07154076546430588, 0.4131990075111389, 0.0719079002737999, -0.4459761381149292, -0.5362504124641418, -0.2022351175546646, -0.33365151286125183, 0.19847406446933746, 0.7324877977371216, 0.012124919332563877, -0.3357582688331604, -0.2878141403198242, 0.20791737735271454, 0.0304565466940403, -0.31839853525161743, 0.8739441633224487, 0.22422979772090912, -0.4030603766441345, 0.4100037217140198, 0.17476457357406616, 0.9301628470420837, -0.6176512241363525, -0.0825500637292862, -0.29650038480758667, 0.11974678188562393, -0.22505424916744232, -0.5919392108917236, 0.6069932579994202, 0.019702669233083725, 0.08761625736951828, -0.014153946191072464, 0.7683477997779846, -0.6886932253837585, -0.6149441599845886, 0.616659939289093, 0.7446085214614868, 0.437792032957077, 0.6206837892532349, -0.7007131576538086, 0.4069836437702179, -0.25269630551338196, 0.028776418417692184, 0.5222572684288025, 0.5549600720405579, -0.12758080661296844, 0.5095431804656982, 0.6260079741477966, 0.2495022714138031, 0.484937846660614, 0.15719850361347198, 0.906799852848053, -0.7788092494010925, -0.5902209281921387, -1.2035223245620728, 0.7885533571243286, -0.044459063559770584, 0.27680620551109314, 0.7048067450523376, 0.6138219833374023, 0.9499900937080383, 0.13020694255828857, 0.8213370442390442, -0.061873916536569595, 0.4641064405441284, -0.5635249018669128, 0.4923526644706726, -0.7490631341934204, 0.0589376725256443, -0.11666643619537354, -1.1068506240844727, -0.8815088272094727, 0.6026294827461243, -0.20943564176559448, -0.12427635490894318, 0.7061737775802612, 0.6978205442428589, -0.2921574115753174, -0.3625085651874542, 0.7278035283088684, -0.1580379605293274, 0.10567701607942581, 0.24887071549892426, 1.0104410648345947, -0.14466720819473267, 0.19836121797561646, -0.17444439232349396, -0.10326101630926132, -0.2839926779270172, -0.9702845215797424, -1.4424110651016235, -0.6221163272857666, -0.3724775016307831, -0.041341837495565414, 0.12387266755104065, 0.9612218141555786, 1.0295199155807495, -0.6021001935005188, -0.48869186639785767, 0.31497636437416077, 0.07735611498355865, 0.0966096892952919, -0.1631777286529541, 0.22215129435062408, -0.8273035883903503, -0.7743043303489685, 0.1260482221841812, 0.6282492876052856, 0.17266738414764404, -0.48829370737075806, -0.037314821034669876, -0.5268233418464661, 0.3904859125614166, 0.23455792665481567, -0.10665956139564514, -0.8319766521453857, -0.31613439321517944, -0.20169128477573395, -0.17982377111911774, 0.359612375497818, 0.7048906683921814, -0.39019617438316345, 0.26208728551864624, 0.4418651759624481, 0.374439001083374, 0.5479763746261597, -0.07044682651758194, 0.3871461749076843, -0.9580327272415161, 0.5544117093086243, -0.07935629785060883, 0.32543376088142395, 0.6871376037597656, -0.038174666464328766, 0.6024401187896729, 0.5821270942687988, -0.4629809558391571, -1.0753164291381836, 0.31728747487068176, -0.8464781045913696, -0.2363298088312149, 0.8212147355079651, -0.49036717414855957, -0.6832959055900574, -0.034517522901296616, -0.11665060371160507, 0.2753790616989136, -0.016075940802693367, 0.0992608368396759, 0.7139908671379089, 0.008278315886855125, -0.2248803824186325, -0.5111420154571533, 0.4565536081790924, 0.19700942933559418, -0.7135878801345825, -0.14518317580223083, 0.4692666530609131, 0.5308759212493896, 0.2508273124694824, 1.0764424800872803, -0.07199767231941223, 0.17152465879917145, 0.2746932804584503, 0.27505016326904297, 0.2731128931045532, -0.3640585243701935, -0.3794587552547455, -0.13548605144023895, 0.30515697598457336, -0.13506458699703217 ]
http://arxiv.org/abs/2405.18292v1
http://arxiv.org/pdf/2405.18292v1
Semantic are Beacons: A Semantic Perspective for Unveiling Parameter-Efficient Fine-Tuning in Knowledge Learning
2024-05-28T15:47:11
2024-05-28T15:47:11
Renzhi Wang, Piji Li
cs.CL
cs.CL
Parameter-Efficient Fine-Tuning (PEFT) methods enable efficient adaptation of Large Language Models (LLMs) to various downstream applications. However, the effectiveness of the PEFT diminishes notably when downstream tasks require accurate learning of factual knowledge. In this paper, we adopt a semantic perspective to investigate this phenomenon, uncovering the reasons behind PEFT's limitations in knowledge learning task. Our findings reveal that: (1) PEFT presents a notable risk of pushing the model away from the intended knowledge target; (2) multiple knowledge interfere with each other, and such interference suppresses the learning and expression of knowledge features. Based on these insights, we introduce a data filtering strategy to exclude data that is detrimental to knowledge learning and a re-weighted learning strategy to make the model attentive to semantic distance during knowledge learning. Experimental results demonstrate the effectiveness of the proposed method on open-source large language model, further validate the semantic challenge in PEFT, thus paving the way for future research.
[ -0.30145466327667236, -0.9402161240577698, 0.7650423645973206, -0.23638802766799927, -0.24540004134178162, -0.040693361312150955, -0.4524059593677521, -0.5299966931343079, -0.3485294580459595, 0.6452268362045288, -0.659963071346283, -0.6133295893669128, -0.8889801502227783, -0.14226950705051422, -0.3754473328590393, 1.1839038133621216, -0.03343696519732475, -0.22267116606235504, -0.06724909693002701, -0.022755850106477737, -0.4677293300628662, -0.08346540480852127, -0.6022191643714905, -0.2944725453853607, 0.48816895484924316, 0.5219569802284241, 0.6366137266159058, 0.5904707908630371, 0.3690449595451355, 0.24996492266654968, 0.020042765885591507, 0.2772860825061798, -0.6005136370658875, 0.2650526165962219, -0.379981130361557, -0.5469395518302917, -0.043121904134750366, 0.12163568288087845, 0.8538456559181213, 1.099802851676941, 0.15370845794677734, 0.1339685022830963, 0.2882075011730194, 0.8880795240402222, -0.8848642110824585, 0.21449172496795654, -1.0992850065231323, -0.27547362446784973, -0.24804705381393433, 0.14518864452838898, -0.3138165771961212, 0.062411047518253326, 0.4122706651687622, -0.8494846224784851, 0.2606208622455597, 0.11540918052196503, 0.9715487360954285, 0.6243638396263123, -0.5834841132164001, -0.15469127893447876, -0.6908129453659058, 1.2226793766021729, -0.4519845247268677, 0.6680502891540527, 0.4937720000743866, 0.17257362604141235, -0.5097528696060181, -0.5424011945724487, -0.3793290853500366, -0.04427672550082207, 0.0907612070441246, -0.20627973973751068, -0.037958964705467224, 0.12357623875141144, 0.08650422841310501, -0.12446904182434082, -0.027986904606223106, 0.11664409190416336, -0.3228951394557953, -0.31520816683769226, 0.3514466881752014, -0.015567518770694733, -0.07995409518480301, -0.05551568791270256, -0.5478310585021973, -0.039301443845033646, -0.8801916241645813, 0.05867849290370941, 0.27700719237327576, 0.43528828024864197, 0.17711643874645233, 0.42702123522758484, -0.6205195188522339, 1.1033008098602295, -0.12505173683166504, -0.22661210596561432, 0.07461746037006378, -0.286276251077652, -0.0936664342880249, -0.10486998409032822, 0.35106316208839417, 0.26153436303138733, 0.1499485969543457, -0.43969735503196716, -0.13389669358730316, -0.1526191234588623, 0.26962900161743164, -0.47143682837486267, -0.1491062343120575, 0.12412548810243607, -0.26308196783065796, -0.09118547290563583, -0.014073681086301804, -0.607125461101532, -0.18137475848197937, -0.3386436402797699, 0.7340540289878845, -0.6276551485061646, -0.0845797210931778, 0.3966529369354248, -0.2330808937549591, 0.2945695221424103, 0.41891568899154663, -0.7319355607032776, 0.29175400733947754, 0.853754460811615, 0.44207072257995605, 0.09938587993383408, -0.5515298843383789, -0.6108457446098328, 0.471783310174942, -0.16322439908981323, 0.8285117149353027, -0.6392427086830139, -0.299472838640213, -0.42066559195518494, -0.013860412873327732, -0.34191247820854187, -0.3836333751678467, 0.5982294678688049, -0.6507771611213684, 0.06561557948589325, -0.5245185494422913, -0.8238377571105957, -0.42254146933555603, -0.005735716316848993, -0.39670220017433167, 0.7543020844459534, 0.1977817863225937, -0.6722528338432312, 0.8127387762069702, -0.34998419880867004, -0.27848154306411743, -0.02770952694118023, -0.10267946124076843, -0.19870534539222717, 0.27812689542770386, -0.11028735339641571, 0.47971946001052856, -0.39883485436439514, 0.14941245317459106, -0.22404521703720093, -0.22454789280891418, -0.02543422393500805, -0.21895404160022736, 0.2241259664297104, 0.3042559325695038, -0.3784347176551819, 0.0078030056320130825, -0.9685306549072266, 0.014711585827171803, 0.005727577954530716, -0.481330007314682, -0.7182047963142395, 0.4765862822532654, -0.3511512279510498, 0.11498548835515976, 0.12113365530967712, -0.7723134756088257, -0.23348000645637512, -0.7480611801147461, 0.33735501766204834, 0.7916874885559082, 0.03444775938987732, 0.505299985408783, -0.4196696877479553, 0.00987448450177908, 0.038252588361501694, 0.17968402802944183, 0.19145654141902924, -0.4867328405380249, -0.5918220281600952, -0.2917290925979614, 0.3598693013191223, 0.30892205238342285, -0.6438314318656921, 0.36495837569236755, -0.20628313720226288, -0.42920535802841187, -0.5168302059173584, 0.5304248332977295, 0.4192725121974945, 1.0215295553207397, 0.3427466154098511, 0.11437420547008514, -0.1024056002497673, -0.8448386192321777, -0.6886817812919617, -0.04008368030190468, -0.02574881725013256, -0.03874463960528374, 0.4299255609512329, 0.05997273325920105, 1.1246925592422485, -0.4397898316383362, -0.35647013783454895, 0.0783846452832222, -0.14018762111663818, 0.008486264385282993, 0.5324949622154236, 0.3453616797924042, -1.0974397659301758, -0.3032805621623993, -0.1083512231707573, -0.3718525767326355, 0.0028225602582097054, 0.007393871434032917, -0.13951744139194489, 0.11320818215608597, 0.5023731589317322, -0.5631906390190125, 0.37418124079704285, 0.23657451570034027, -0.6545222401618958, 0.24963468313217163, -0.30089616775512695, -0.09912142902612686, -0.7243069410324097, -0.1687411367893219, -0.06024410203099251, -0.020535817369818687, -0.44960248470306396, 0.09619667381048203, 0.21500688791275024, 0.2559964954853058, -0.4601916968822479, 0.4396677315235138, -0.17664958536624908, 0.3390229642391205, -0.3573313057422638, 0.34172001481056213, 0.3081202805042267, 0.25413358211517334, 0.058266375213861465, 0.20112743973731995, 0.4901532530784607, -0.8357378840446472, 0.3456057906150818, 0.21776890754699707, -0.3888773024082184, 0.45133158564567566, -0.5255865454673767, -0.20478969812393188, -0.08903146535158157, -0.13245974481105804, -0.9945929646492004, -0.11962291598320007, 0.1817801147699356, -0.3150942027568817, 0.3001948595046997, -0.11531473696231842, -0.49630045890808105, 0.13322237133979797, -0.3893662393093109, 0.2721004784107208, 0.5653365850448608, -0.5073302388191223, 0.585456907749176, 0.13209384679794312, 0.22120842337608337, -0.33129534125328064, -0.3654695749282837, -0.16620543599128723, -0.36249375343322754, -0.7660965323448181, 0.5183795094490051, 0.38355395197868347, -0.31282979249954224, 0.17399899661540985, -0.3245656490325928, 0.21752187609672546, 0.3781763017177582, 0.19361968338489532, 0.14347611367702484, 0.05962378904223442, 0.6387607455253601, 0.23200182616710663, -0.2128177434206009, 0.08671454340219498, -0.5850549936294556, 0.22768911719322205, 0.048281602561473846, -0.6332201957702637, -0.20421521365642548, 0.2850237488746643, 0.4705429673194885, -0.23180976510047913, 1.2308884859085083, 0.6322324872016907, -0.2604215741157532, -0.35872381925582886, -0.6024079918861389, -0.18417292833328247, -0.47453656792640686, 0.5539254546165466, -0.37650424242019653, -1.0173412561416626, 0.4987662434577942, -0.511945903301239, 0.08565666526556015, 0.6239249110221863, 0.2627504765987396, 0.047484055161476135, 0.7694659233093262, 0.7810957431793213, 0.14024221897125244, 0.3240461051464081, 0.06440421938896179, 0.244015172123909, -0.8546905517578125, -0.5672121047973633, -0.7830957174301147, -0.17944490909576416, -0.5045514106750488, -0.08921477943658829, 0.5271457433700562, 0.3835238516330719, -0.43423962593078613, -0.037258654832839966, -0.39685219526290894, 0.31210747361183167, 0.5865393877029419, 0.4000215232372284, 0.4511018395423889, -0.049491021782159805, -0.11991076171398163, -0.021346867084503174, -0.679461658000946, -0.23692746460437775, 1.1976120471954346, 0.3614560067653656, 0.9483195543289185, -0.021839575842022896, 0.4583892524242401, -0.03498346358537674, -0.5338613390922546, -0.7589368224143982, 0.3805181682109833, -0.20114822685718536, -0.4190315008163452, -0.5703219175338745, -0.4509998559951782, -0.7367043495178223, 0.09845242649316788, -0.3060351014137268, -0.5923444628715515, 0.18723873794078827, 0.0038280251901596785, -0.3147743046283722, 0.3340989053249359, -0.919388473033905, 0.7528493404388428, -0.07677188515663147, -0.4416375756263733, -0.4032800495624542, -0.7162305116653442, -0.05373603105545044, -0.4884408712387085, 0.35797959566116333, -0.36673370003700256, -0.34569910168647766, 0.8778401017189026, -0.56850266456604, 1.0280535221099854, -0.3935989439487457, -0.2707965075969696, 0.11144672334194183, -0.08085719496011734, 0.6366501450538635, -0.15322616696357727, 0.006406458094716072, 0.011473385617136955, 0.07085162401199341, -0.7012194395065308, -0.4591536521911621, 0.6681839823722839, -0.7261021137237549, -0.6980820298194885, 0.027711661532521248, -0.5992220044136047, -0.6495537161827087, 0.2342546135187149, 0.3591693639755249, 0.2924653887748718, 0.1681148111820221, 0.15663962066173553, 0.9105774760246277, -0.29525017738342285, 0.18474851548671722, 0.7087798118591309, 0.029916439205408096, 0.0760037750005722, 0.8982423543930054, 0.2398955225944519, 0.5889055728912354, 0.43365830183029175, 0.28411874175071716, -0.21124175190925598, -0.8831549286842346, -0.07371845096349716, 0.22538556158542633, -0.8204840421676636, -0.03831551596522331, -0.46652352809906006, 0.10210573673248291, -0.467082679271698, -0.09345429390668869, -0.47747957706451416, -0.42579779028892517, -0.20354299247264862, 0.15794111788272858, 0.7163472175598145, 0.7114370465278625, 0.10799828916788101, 0.27805188298225403, -0.8044369220733643, 0.18742536008358002, 0.39607927203178406, 0.4927341043949127, -0.017438028007745743, -0.5733128786087036, -0.3472687304019928, 0.12307697534561157, -0.1580318808555603, -0.46327412128448486, -0.14905932545661926, 0.6452057361602783, 0.7842055559158325, 0.3041810691356659, 0.38641783595085144, 0.4466763436794281, -0.41731423139572144, 0.6081939339637756, -0.049899838864803314, -0.9162306785583496, 0.8017662763595581, -0.2651645541191101, 0.3753925561904907, 0.5476507544517517, 0.3817465901374817, -0.2055523544549942, -0.4382581412792206, -0.3074764609336853, -0.9376842975616455, 0.6101248860359192, -0.10261350125074387, 0.11487563699483871, 0.030497873201966286, 0.7279953360557556, 0.26981741189956665, 0.1421879529953003, -0.15136516094207764, 0.06470532715320587, -0.05052003636956215, -0.22083742916584015, 0.03215895593166351, -0.2932055592536926, -0.05379918962717056, -0.4254850447177887, 0.7482424378395081, -0.16810788214206696, -0.08801622688770294, 0.1764383763074875, -0.13194070756435394, -0.23722189664840698, 0.21743284165859222, 0.2639963626861572, 0.5386247634887695, -0.03673641383647919, 0.17298690974712372, 0.21902039647102356, -0.5667484402656555, -0.16655942797660828, 0.013664978556334972, -0.20049776136875153, -0.26408618688583374, 0.47933080792427063, 0.6545231938362122, 0.5653529167175293, -0.7019551992416382, 0.4504084885120392, 0.2946223318576813, -0.20040351152420044, -0.03715485706925392, 0.38197267055511475, 0.009673934429883957, 0.35047420859336853, 0.4327148199081421, 0.10484867542982101, -0.07499837875366211, -0.30136746168136597, 0.18342220783233643, 0.6745108962059021, -0.3638230860233307, -0.18230687081813812, 0.6388739347457886, 0.09024003893136978, 0.18025393784046173, 0.5382384657859802, 0.05197561904788017, -0.4815666973590851, 0.26045355200767517, 0.2720116376876831, 0.4087372124195099, -0.05139511078596115, 0.042851537466049194, -0.11204923689365387, 0.321969211101532, -0.0328228734433651, 0.13888348639011383, -0.334080308675766, -0.8309475779533386, -0.7024306654930115, -1.0016419887542725, -0.14595654606819153, -0.24959604442119598, -0.567799985408783, 0.2891441583633423, -0.35667625069618225, -0.05517764389514923, 0.10725339502096176, 0.11142574995756149, -0.48433542251586914, 0.09148181229829788, -0.1222713366150856, 1.1143063306808472, -0.756809651851654, 1.0618795156478882, 0.6385892033576965, -0.027911018580198288, -0.9173609614372253, -0.06337582319974899, -0.021694954484701157, -0.8304691910743713, 0.9005023837089539, -0.2829878628253937, -0.3745388090610504, 0.19920527935028076, -0.5278910994529724, -0.8431891798973083, 0.8118684887886047, 0.5170760750770569, -0.2947539687156677, -0.25338950753211975, 0.19076959788799286, 0.24038581550121307, -0.08076674491167068, -0.45599859952926636, 0.658367395401001, 0.53510981798172, 0.1619662344455719, -0.9898242950439453, 0.04576133191585541, 0.20318643748760223, -0.08929138630628586, 0.505453884601593, -0.7852223515510559, 0.8132502436637878, -0.11412668973207474, 0.07911094278097153, -0.11118297278881073, 0.273822546005249, -0.10046347230672836, 0.15572085976600647, 0.4724995195865631, 0.5943924188613892, 0.5835944414138794, -0.1813167929649353, 0.813114583492279, -0.11706242710351944, 0.5625877380371094, 0.9182667136192322, -0.2042672485113144, 0.729828417301178, 0.7296944260597229, -0.19253121316432953, 0.4169127941131592, 0.5380582809448242, -0.008100810460746288, 0.8250809907913208, -0.03419151157140732, -0.4115754961967468, -0.515562891960144, -0.13239017128944397, -0.1821512132883072, 0.7823750376701355, 0.5187304615974426, -0.28162452578544617, -0.6828662753105164, 0.4443882703781128, 0.04659591615200043, 0.17737458646297455, -0.40807420015335083, 0.7765247225761414, -0.05110948905348778, -0.4373406767845154, 0.5188303589820862, 0.018081875517964363, 0.6304495930671692, -0.8169814348220825, 0.005506050772964954, 0.42960089445114136, 0.269735187292099, -0.21987299621105194, -0.48619452118873596, 0.48757776618003845, -0.34754446148872375, -0.2856639325618744, -0.05329655110836029, 0.9458669424057007, -0.15920867025852203, -0.23205094039440155, 0.59816974401474, 0.6764852404594421, -0.09470156580209732, -0.3633376657962799, -0.5724518895149231, 0.04930776357650757, -0.03174638748168945, -0.40816548466682434, 0.583672285079956, 0.7111344337463379, 0.10035542398691177, 0.6679264307022095, 0.4074651002883911, 0.2693377435207367, 0.13052938878536224, -0.3345259726047516, 0.9305915236473083, -0.509454071521759, -0.35351282358169556, -0.9935404658317566, 0.13515956699848175, 0.3061615228652954, -0.1367923766374588, 0.9645480513572693, 0.216038778424263, 1.084795355796814, 0.1636417955160141, 0.5589200258255005, -0.08106522262096405, 0.7907464504241943, -0.8005792498588562, 0.7867840528488159, -0.5752155184745789, 0.5131539702415466, -0.15467238426208496, -0.6729968786239624, -0.20917481184005737, 0.18508462607860565, -0.6302827000617981, 0.05552464723587036, 0.5899943709373474, 0.510818600654602, 0.09611044824123383, 0.1761453002691269, 0.5426437854766846, 0.24518020451068878, 0.031841572374105453, 0.8417540788650513, 0.7367841005325317, -0.2925299108028412, 0.3972030580043793, -0.4464593231678009, -0.2880892753601074, 0.027990568429231644, -0.8140751719474792, -0.7080737352371216, -0.8140113353729248, -0.28741005063056946, -0.17273029685020447, -0.021349379792809486, 0.7077401876449585, 0.8102717399597168, -0.7144908905029297, 0.27240675687789917, -0.2241564840078354, 0.40084704756736755, 0.019073761999607086, -0.1400577276945114, 0.4401995837688446, -0.7480772733688354, -0.49524354934692383, 0.2872956097126007, 0.18539002537727356, -0.16984467208385468, 0.00884883664548397, 0.0882241353392601, -0.17708663642406464, -0.28601211309432983, 0.572304368019104, 0.10308526456356049, -0.6302849054336548, -0.7328274250030518, -0.19064585864543915, 0.32103464007377625, -0.37408921122550964, 0.602117121219635, -1.2220560312271118, 0.3930816352367401, 0.16460810601711273, 0.762961745262146, 0.053988296538591385, -0.2950568199157715, 0.33278581500053406, -0.6083866357803345, 0.12780356407165527, -0.11505040526390076, 0.19097720086574554, -0.031227795407176018, -0.5796791315078735, 0.16981594264507294, 0.4531317353248596, -0.5786353349685669, -0.5851587057113647, 0.31009986996650696, -0.6444012522697449, -0.6314203143119812, 0.9684991836547852, -0.1055845320224762, -0.31014272570610046, -0.5431094169616699, -0.00196891650557518, 0.24218487739562988, -0.2359563112258911, 0.7168889045715332, 0.79649817943573, -0.3208056688308716, 0.1484827995300293, -0.6257966756820679, 0.6373357772827148, 0.5213171243667603, -0.34180352091789246, 0.07200677692890167, 0.35560810565948486, 0.6149256825447083, -0.011324824765324593, 0.029626257717609406, -0.17871634662151337, 0.1218009814620018, -0.03165489435195923, -0.41275665163993835, -0.14949321746826172, -0.32955390214920044, -0.2675609886646271, 0.33449286222457886, 0.4786280691623688, -0.2251572161912918 ]
http://arxiv.org/abs/2405.18258v1
http://arxiv.org/pdf/2405.18258v1
Text-only Synthesis for Image Captioning
2024-05-28T15:11:17
2024-05-28T15:11:17
Qing Zhou, Junlin Huang, Qiang Li, Junyu Gao, Qi Wang
cs.CV
cs.CV, cs.AI, cs.CL
From paired image-text training to text-only training for image captioning, the pursuit of relaxing the requirements for high-cost and large-scale annotation of good quality data remains consistent. In this paper, we propose Text-only Synthesis for Image Captioning (ToCa), which further advances this relaxation with fewer human labor and less computing time. Specifically, we deconstruct caption text into structures and lexical words, which serve as the fundamental components of the caption. By combining different structures and lexical words as inputs to the large language model, massive captions that contain various patterns of lexical words are generated. This method not only approaches the target domain but also surpasses it by generating new captions, thereby enhancing the zero-shot generalization ability of the model. Considering the different levels of data access in the real world, we define three synthesis scenarios: cross-domain synthesis, in-domain synthesis, and data-efficient synthesis. Experiments in these scenarios demonstrate the generalizability, transferability and practicability of ToCa with a nearly 5 CIDEr improvement for zero-shot cross-domain captioning and a maximum increase of over 20 CIDEr for data-efficient captioning.
[ -0.35225218534469604, -0.605383574962616, 0.6134815812110901, 0.3169305622577667, -0.7076729536056519, 0.13046500086784363, -0.229910746216774, -0.479838490486145, 0.27314648032188416, 0.6895607709884644, -0.5377397537231445, -0.7164767980575562, -0.30122897028923035, 0.28405970335006714, -0.5170603394508362, 1.184677243232727, -0.18331557512283325, -0.15327170491218567, -0.2365654706954956, -0.18353767693042755, -0.33368679881095886, -0.3745664954185486, -0.46141451597213745, 0.09494125097990036, 0.4242812991142273, 0.4588538706302643, 0.5745635628700256, 0.896882951259613, 0.4469250440597534, 0.10719654709100723, 0.3703323304653168, 0.30296823382377625, -0.3542199432849884, 0.07165708392858505, -0.1885383129119873, -0.465136855840683, -0.2616764008998871, -0.07001058012247086, 0.6445639133453369, 0.5260024070739746, 0.5601063966751099, -0.05836377292871475, -0.37844061851501465, 0.8375846147537231, -0.7407619953155518, 0.4435586929321289, -0.8514024615287781, 0.20459650456905365, 0.152229905128479, -0.6465478539466858, -0.5653213262557983, -0.12823331356048584, -0.022551778703927994, -0.729607880115509, 0.5472598075866699, 0.26890939474105835, 0.9448958039283752, 0.3523250222206116, -0.1497705727815628, 0.037251003086566925, -0.681663453578949, 0.741093099117279, -0.3979809284210205, 0.1355287730693817, -0.0013742203591391444, 0.357018381357193, 0.13575930893421173, -0.6032442450523376, -0.7046955823898315, -0.3888700008392334, 0.04837609827518463, 0.4768681526184082, 0.122793048620224, 0.12235391139984131, 0.07020019739866257, 0.2920161187648773, -0.26414692401885986, -0.08503789454698563, -0.3282403349876404, -0.2289474457502365, 0.8843845725059509, -0.06394518911838531, 0.49748557806015015, -0.0026119528338313103, -0.5375282168388367, -0.32810497283935547, -1.0363807678222656, -0.12673601508140564, -0.10711715370416641, 0.4368823766708374, -0.14998680353164673, 0.782353401184082, -0.10467608273029327, 0.30317598581314087, -0.21682903170585632, -0.04977412894368172, -0.11131992191076279, -0.3205615282058716, -0.31328731775283813, 0.11843721568584442, 0.7996314764022827, 0.6533704400062561, 0.0971614420413971, -0.5679327845573425, -0.2163582593202591, 0.2562595307826996, 0.10947094857692719, -0.8135851621627808, -0.13186773657798767, 0.1851561963558197, -0.1806533932685852, -0.6712530255317688, -0.03958204761147499, -0.8235923051834106, -0.3601181209087372, -0.3572255074977875, 0.3763762414455414, 0.007438546512275934, 0.17552787065505981, -0.18690717220306396, -0.02423865534365177, 0.26906663179397583, 0.3422190845012665, -0.571725606918335, 0.4926688075065613, 0.13899515569210052, 0.8969353437423706, -0.48476797342300415, -0.4217833876609802, -0.733936071395874, 0.41016125679016113, -0.8888682723045349, 0.9487677216529846, -0.15962807834148407, -0.2922237515449524, 0.06828853487968445, 0.014299333095550537, 0.24895483255386353, -0.2784099876880646, 0.1188996210694313, -0.4183190166950226, 0.046938516199588776, 0.006100653670728207, -0.4287528991699219, -0.15228796005249023, -0.023100094869732857, -0.9090617895126343, 0.4748772978782654, -0.024468423798680305, -0.561811089515686, 0.22177022695541382, -1.0366755723953247, -0.8433853983879089, -0.061593297868967056, -0.23546481132507324, -0.5674388408660889, 0.1578405797481537, 0.6161399483680725, 0.38525399565696716, -0.5738106369972229, 0.21309055387973785, 0.12012644857168198, -0.3684123158454895, 0.4530041217803955, -0.12233973294496536, 0.09859628975391388, 0.09454107284545898, -0.4680938124656677, 0.05498101934790611, -0.6796416640281677, -0.15076065063476562, 0.4843135476112366, -0.190911203622818, -0.05952594801783562, -0.09302950650453568, 0.43583983182907104, -0.04891547933220863, -0.0731770321726799, -0.5361651182174683, 0.13096441328525543, -0.38116317987442017, 0.505001425743103, 0.46628618240356445, 0.2883715331554413, 0.8457837104797363, -0.2795966863632202, 0.44700387120246887, -0.13555440306663513, -0.05957924947142601, -0.607042133808136, -0.3917643427848816, -0.8035247921943665, -0.5516935586929321, 0.4266771972179413, 0.449353963136673, -1.1799379587173462, 0.29270103573799133, -0.42959311604499817, -0.3490058183670044, -0.2107066512107849, -0.07388273626565933, 0.5253067016601562, 0.267843633890152, 0.33182960748672485, -0.5127864480018616, -0.3593878448009491, -0.8067268133163452, 0.06386282294988632, -0.06752923130989075, 0.13379570841789246, 0.22881516814231873, 0.3570912182331085, 0.22081880271434784, 0.5919923782348633, -0.7251416444778442, -0.6687754988670349, -0.24131335318088531, -0.10715300589799881, -0.13983480632305145, 0.346375048160553, 0.6107155680656433, -0.6092216968536377, -0.6305410265922546, 0.12667995691299438, -0.5910546779632568, 0.016554255038499832, -0.7649710774421692, -0.295137494802475, 0.5966230034828186, 0.7617228627204895, -0.47784423828125, 0.6048256754875183, 0.4340667426586151, 0.30308613181114197, 0.39396151900291443, -0.18906694650650024, 0.2711055874824524, -0.8107564449310303, 0.25566500425338745, -0.11628978699445724, -0.11216876655817032, -0.7062815427780151, 0.43218687176704407, -0.056192561984062195, -0.5529348850250244, -0.4419713318347931, 0.5814107656478882, -0.6993768215179443, -0.16542787849903107, -0.22740845382213593, 0.12295782566070557, -0.03077360987663269, 0.8585116863250732, 0.4948435127735138, 0.8106555342674255, 1.0457907915115356, -0.4711715579032898, 0.16034165024757385, 0.4196615219116211, -0.3536636233329773, 0.2232799082994461, -0.6296804547309875, 0.1383821815252304, -0.42734670639038086, 0.3904246389865875, -1.3396414518356323, -0.31568974256515503, 0.4040323495864868, -0.4975055158138275, 0.2944655120372772, -0.017666105180978775, -0.5097314715385437, 0.0944121703505516, -0.4801733195781708, 0.32404953241348267, 0.45699888467788696, -0.5146257877349854, 0.5425188541412354, 0.0644923597574234, -0.36045515537261963, -0.2331136167049408, -1.0283457040786743, 0.64542555809021, 0.1280112862586975, -0.2689928710460663, 0.6575839519500732, -0.19286100566387177, 0.19833432137966156, -0.1349046379327774, -0.1085781455039978, -0.3097238838672638, -0.4433547556400299, 0.3533015847206116, 0.5484948754310608, 0.1706821769475937, 0.09938530623912811, 0.46339669823646545, -0.01259633619338274, -0.28853556513786316, -0.2588338553905487, 0.14424020051956177, 0.3166613280773163, -0.14273227751255035, -0.5254883170127869, 0.5744305849075317, 0.7343016862869263, -0.37417399883270264, 0.2861323058605194, 0.27240249514579773, -0.20206184685230255, -0.3328385651111603, -0.26704806089401245, -0.24021048843860626, -0.3947572112083435, 0.32764190435409546, -0.3346180319786072, -0.6823435425758362, 0.2523656189441681, 0.11142893880605698, 0.5247146487236023, 0.20908984541893005, 0.42504438757896423, -0.029698001220822334, 0.5989079475402832, 0.45706450939178467, 0.02236652746796608, 0.4401401877403259, -0.1940900832414627, 0.28018680214881897, -0.39285388588905334, 0.0023995644878596067, -0.2686794400215149, -0.15931594371795654, -0.5358022451400757, -0.49980583786964417, 0.4995734989643097, -0.5763353109359741, 0.09065673500299454, 0.33461540937423706, -0.7880682945251465, 0.6090412735939026, 0.3439500629901886, 0.27931052446365356, 0.20944057404994965, 0.8758824467658997, 0.3892843425273895, -0.013452360406517982, -0.41888856887817383, -0.18335111439228058, 1.2622402906417847, -0.032349057495594025, 0.5662680864334106, -0.23599152266979218, 0.8359876871109009, 0.269991397857666, 0.27917271852493286, -0.9223268032073975, 0.7670807242393494, -0.38827836513519287, -0.6522067785263062, -0.34610578417778015, -0.35954758524894714, -0.777202308177948, 0.12212711572647095, -0.5558406710624695, -0.10593417286872864, -0.31179937720298767, -0.04337157681584358, -0.15091028809547424, 0.3436325788497925, -0.5137515068054199, 0.41805365681648254, -0.07325553148984909, -0.2778241038322449, 0.02548747882246971, -0.8326667547225952, 0.14826402068138123, -0.2726256549358368, 0.3260782063007355, 0.22082524001598358, -0.25661617517471313, 0.3809375762939453, -0.24513791501522064, 0.7817082405090332, -0.06408923864364624, -0.0777493342757225, 0.6660898923873901, 0.34100139141082764, 0.39130088686943054, -0.12056652456521988, 0.44666385650634766, 0.1517253965139389, 0.04776783660054207, -0.35035452246665955, -0.3457966446876526, 0.5860824584960938, -0.5977516770362854, -0.4354759156703949, -0.21482886373996735, -0.7229692339897156, -0.1100439578294754, 0.15361493825912476, 0.28265896439552307, 0.4888952374458313, -0.0840451791882515, 0.038279689848423004, 0.4884735643863678, -0.5559784173965454, 0.5800308585166931, 0.10956289619207382, -0.13461989164352417, -0.9087279438972473, 0.9118576049804688, -0.06639520823955536, 0.29525089263916016, 0.8712285757064819, -0.04200908541679382, -0.2682702839374542, -0.5862431526184082, -0.8466085195541382, 0.394907146692276, -0.7186304926872253, -0.2263234406709671, -0.3964184820652008, -0.11107981204986572, -0.3470604419708252, -0.5114451050758362, -0.36759403347969055, -0.6906822919845581, -0.18762615323066711, 0.011778617277741432, 0.27927687764167786, 0.2202560156583786, 0.14103969931602478, 0.2799932658672333, -0.8329667448997498, 0.6330435276031494, 0.3415500223636627, 0.17285697162151337, 0.018126126378774643, -0.2739448845386505, -0.03734014928340912, -0.23032985627651215, -0.19365333020687103, -0.6660791039466858, 0.3086733818054199, 0.5286949872970581, 0.04492035508155823, 0.024980681017041206, 0.05004514753818512, 0.5660154819488525, -0.6738098859786987, 1.0243339538574219, 0.6487245559692383, -0.9616725444793701, 0.43860846757888794, -0.23234450817108154, 0.14583805203437805, 0.28758350014686584, -0.10712962597608566, -0.16683724522590637, -0.479786217212677, -0.32782870531082153, -0.9208459854125977, 0.558327853679657, 0.49308741092681885, 0.5247865915298462, 0.23847627639770508, 0.40073156356811523, 0.20647893846035004, 0.10639625042676926, -0.9105684161186218, -0.12554439902305603, -0.32226040959358215, -0.028578869998455048, 0.10598871856927872, 0.07879158854484558, -0.2286377102136612, -0.2087891548871994, 0.6452683210372925, -0.3782989978790283, 0.46067267656326294, 0.33509501814842224, -0.016369380056858063, -0.18990182876586914, 0.15319319069385529, 0.4887324571609497, 0.4406246244907379, 0.09800118952989578, -0.0064193978905677795, -0.03540131822228432, -0.07267758995294571, 0.14665713906288147, -0.02735133282840252, -0.382683128118515, 0.25808417797088623, 0.3359636068344116, 0.7183233499526978, -0.05117718502879143, -0.7281554937362671, 0.6309706568717957, 0.15439380705356598, -0.5703126788139343, -0.25886595249176025, -0.16669853031635284, -0.09906866401433945, -0.14474283158779144, 0.32240232825279236, 0.04060530290007591, 0.00398803036659956, -0.6541229486465454, -0.053956132382154465, 0.17682264745235443, -0.11364715546369553, -0.22443275153636932, 0.8779662251472473, 0.1057492345571518, 0.3936711251735687, 0.23114490509033203, -0.018788550049066544, -0.13781651854515076, 0.580238401889801, 0.515172004699707, 0.7944943308830261, 0.17731468379497528, 0.41659417748451233, 0.42967119812965393, 0.21476833522319794, 0.03235646337270737, 0.30354106426239014, -0.18639536201953888, -0.35546842217445374, -0.6539730429649353, -0.3262064754962921, -0.5068090558052063, -0.27121102809906006, -0.3361629247665405, 0.2563736140727997, -0.8032468557357788, 0.10303211212158203, 0.3447079658508301, -0.38305240869522095, -0.380409836769104, 0.5976949334144592, 0.15060819685459137, 0.5836142301559448, -0.8354513645172119, 0.6672612428665161, 0.9845304489135742, -0.7816343903541565, -0.5916688442230225, -0.190129354596138, -0.4458068609237671, -0.7129666209220886, 0.24150699377059937, 0.15376418828964233, 0.12503503262996674, -0.11305787414312363, -1.2261192798614502, -0.2754371464252472, 0.9785508513450623, 0.2437644600868225, -0.5067218542098999, -0.08232156932353973, 0.46094879508018494, 0.4975387752056122, -0.5913794636726379, -0.38471147418022156, 0.25672414898872375, 0.4845171570777893, 0.684201180934906, -0.541178822517395, 0.3219601809978485, -0.07192052155733109, 0.28421127796173096, -0.2135617434978485, -0.456614226102829, 0.41089296340942383, -0.31951698660850525, -0.5256405472755432, 0.4958203136920929, 0.6416818499565125, 0.1454637050628662, 0.3836227357387543, 0.34903520345687866, 0.16649065911769867, 0.14297835528850555, -0.11503996700048447, 1.14463472366333, -0.21048469841480255, 0.1289789378643036, 0.8766599893569946, -0.22779881954193115, 0.5653725266456604, 0.714168906211853, -0.03569437935948372, 0.15512381494045258, 0.4412146210670471, -0.2748233675956726, 0.8744903206825256, 0.20913605391979218, -0.20698226988315582, -0.24256093800067902, -0.2909048795700073, 0.00497735571116209, 0.22165004909038544, -0.0022684037685394287, -0.5242201089859009, -0.16298890113830566, -0.11846809089183807, 0.07898897677659988, 0.14620551466941833, -0.42072930932044983, 0.7841712832450867, 0.0880066454410553, -0.6683800220489502, 0.9797297716140747, 0.06268924474716187, 0.46153897047042847, -0.4912891387939453, -0.02100244350731373, -0.2716211676597595, -0.2747654318809509, -0.3860490024089813, -0.8097667098045349, 0.25504007935523987, 0.16966067254543304, -0.03055492602288723, -0.06126498058438301, 0.5256186127662659, -0.6509019136428833, -0.43954935669898987, -0.1293952614068985, 0.28580909967422485, 0.4317929744720459, -0.4072902798652649, -0.25592443346977234, 0.09452363848686218, 0.3254101872444153, 0.06890534609556198, 0.20889034867286682, 0.13149617612361908, -0.21508009731769562, 0.36553114652633667, 0.832558274269104, 0.2784188985824585, -0.1340508908033371, 0.1988179236650467, 0.9097822904586792, -0.6469817161560059, -0.3396100401878357, -0.5578896403312683, 0.48923805356025696, 0.14570419490337372, 0.049331165850162506, 0.14035502076148987, 0.3241165280342102, 0.5143424868583679, -0.6069141626358032, 1.2713228464126587, -0.2136300951242447, -0.26657065749168396, -0.6015281677246094, 0.7461743354797363, -0.7567651271820068, -0.29577013850212097, -0.3434748649597168, -1.3498659133911133, -0.8799166083335876, 0.2685237526893616, 0.17280925810337067, -0.5199111104011536, 0.7952893972396851, 0.9356012344360352, 0.11248856782913208, -0.045156922191381454, 0.5782151222229004, -0.18410447239875793, 0.46531254053115845, 0.6988288760185242, 0.47564804553985596, -0.5848499536514282, 0.8950117230415344, -0.15374526381492615, -0.27876904606819153, 0.19322063028812408, -1.0487830638885498, -0.9843026995658875, -0.6478859186172485, -0.7721004486083984, 0.004595618695020676, -0.020350906997919083, 0.7771936655044556, 0.48138415813446045, -0.8627297878265381, -0.0037281156983226538, -0.1137920543551445, -0.18732315301895142, -0.17202076315879822, -0.17851771414279938, 0.576327919960022, -0.239886075258255, -0.7665776014328003, 0.24207191169261932, 0.5409054160118103, 0.20917101204395294, -0.009500203654170036, 0.13171273469924927, 0.26060885190963745, 0.4391479790210724, 0.7499871253967285, 0.31828945875167847, -0.48079338669776917, -0.26160678267478943, -0.05794185400009155, 0.06789811700582504, 0.27959102392196655, 0.5967404842376709, -0.21111160516738892, 0.6644909977912903, 0.3577211797237396, 0.7638497352600098, 0.76678067445755, -0.06876473873853683, 0.1718878597021103, -0.8502039313316345, 0.23858895897865295, -0.24440132081508636, 0.13638241589069366, 0.4921990633010864, -0.07422560453414917, 0.534360408782959, 0.10073085874319077, -0.1913871020078659, -0.509990394115448, 0.24702052772045135, -1.3008254766464233, -0.28198322653770447, 1.115709662437439, -0.13123548030853271, -0.3958926200866699, 0.5798043012619019, -0.5263758301734924, 0.3914124071598053, -0.4023398756980896, 0.9787439703941345, 0.34626275300979614, 0.17845115065574646, -0.3532333970069885, -0.20947568118572235, 0.15275543928146362, 0.06155075877904892, -1.0109162330627441, 0.010616916231811047, 0.9013984799385071, 0.41640201210975647, 0.3091302514076233, 0.45717528462409973, -0.6053305864334106, 0.4996173679828644, -0.07697606086730957, 0.49190500378608704, -0.33663496375083923, -0.4591016471385956, 0.040664125233888626, 0.07439692318439484, -0.025363871827721596, -0.3984474539756775 ]
http://arxiv.org/abs/2405.18241v1
http://arxiv.org/pdf/2405.18241v1
Active Use of Latent Constituency Representation in both Humans and Large Language Models
2024-05-28T14:50:22
2024-05-28T14:50:22
Wei Liu, Ming Xiang, Nai Ding
cs.CL
cs.CL, cs.AI
Understanding how sentences are internally represented in the human brain, as well as in large language models (LLMs) such as ChatGPT, is a major challenge for cognitive science. Classic linguistic theories propose that the brain represents a sentence by parsing it into hierarchically organized constituents. In contrast, LLMs do not explicitly parse linguistic constituents and their latent representations remains poorly explained. Here, we demonstrate that humans and LLMs construct similar latent representations of hierarchical linguistic constituents by analyzing their behaviors during a novel one-shot learning task, in which they infer which words should be deleted from a sentence. Both humans and LLMs tend to delete a constituent, instead of a nonconstituent word string. In contrast, a naive sequence processing model that has access to word properties and ordinal positions does not show this property. Based on the word deletion behaviors, we can reconstruct the latent constituency tree representation of a sentence for both humans and LLMs. These results demonstrate that a latent tree-structured constituency representation can emerge in both the human brain and LLMs.
[ -0.007751988247036934, -1.0140117406845093, 0.6772777438163757, -0.15344731509685516, -0.31371957063674927, 0.19285325706005096, -0.33940550684928894, -0.20978134870529175, 0.060336511582136154, 0.30486905574798584, -0.49084654450416565, -0.31990042328834534, -0.30920976400375366, -0.16826152801513672, -0.2399599850177765, 0.8606844544410706, 0.3712955415248871, -0.01598428376019001, -0.270869642496109, 0.046830132603645325, -0.22449979186058044, -1.0000044107437134, -0.5496122241020203, -0.48901617527008057, 0.7618611454963684, 0.11600732803344727, 0.6915786862373352, 0.589678943157196, 0.315439909696579, 0.33901163935661316, -0.36593198776245117, -0.27847570180892944, -0.5531148314476013, 0.07834761589765549, -0.08064307272434235, -0.7033023238182068, -0.329289048910141, 0.21452274918556213, 0.8114446997642517, 1.2366621494293213, -0.34633415937423706, -0.4673849642276764, 0.22877579927444458, 0.49381163716316223, -0.36754995584487915, 0.31847572326660156, -0.8370254039764404, 0.14903506636619568, -0.3423053026199341, -0.2537674009799957, -0.2478921264410019, -0.127024307847023, 0.20881754159927368, -0.3467487394809723, 0.13883589208126068, -0.03804521635174751, 0.7649033069610596, 0.012751876376569271, -0.4907729923725128, -0.11239125579595566, -0.4264205992221832, 0.4163490831851959, -0.461146742105484, 0.4189883768558502, 0.4228576421737671, -0.05434896796941757, -0.31245848536491394, -0.4837454557418823, -0.6006841659545898, -0.3943348824977875, -0.3843102753162384, -0.07046794891357422, 0.03450955078005791, 0.25913065671920776, 0.28386181592941284, 0.2682468295097351, -0.6666057109832764, 0.24055981636047363, -0.32988205552101135, -0.4228877127170563, 0.2540103495121002, 0.3314289152622223, 0.3106718957424164, -0.722535252571106, -0.31444990634918213, 0.0431608222424984, -0.8619500994682312, 0.21997980773448944, 0.3678618371486664, 0.5390297174453735, 0.04876916483044624, 0.7153871059417725, 0.273266464471817, 0.5302647948265076, -0.16890406608581543, 0.004741599317640066, 0.038719482719898224, 0.00892632082104683, -0.20235545933246613, 0.019814951345324516, 0.948417067527771, -0.11197958141565323, 0.19535745680332184, -0.32398444414138794, -0.20724008977413177, 0.18074624240398407, 0.28235867619514465, -0.5047852396965027, -0.25405973196029663, -0.05862922593951225, -0.735673725605011, -0.12821486592292786, 0.05112035199999809, -0.5234735608100891, -0.5761876702308655, -0.2921818494796753, 0.17167535424232483, -0.5582638382911682, -0.2443007528781891, -0.01819399558007717, 0.11480399966239929, 0.3117642104625702, 0.08514337241649628, -1.1123239994049072, 0.41869884729385376, 0.8300326466560364, 0.5609006881713867, -0.21096424758434296, -0.4135459065437317, -0.39393314719200134, -0.008720103651285172, -0.45596715807914734, 0.6950239539146423, -0.7508355379104614, -0.27680259943008423, -0.018815593793988228, 0.051488909870386124, -0.15318280458450317, -0.7297943234443665, 0.2149454802274704, -0.5821266174316406, 0.42203041911125183, -0.48140010237693787, -0.7642813920974731, -0.324741393327713, 0.2533762753009796, -0.4328720271587372, 0.5230380892753601, 0.16214841604232788, -0.8180157542228699, 0.27476125955581665, -0.60988450050354, -0.33301809430122375, 0.11901839077472687, -0.6487124562263489, -0.3284912109375, 0.3540068566799164, -0.00546928821131587, 0.6180305480957031, 0.12887759506702423, 0.29434648156166077, -0.19869999587535858, -0.23880811035633087, 0.46601998805999756, -0.5673898458480835, 0.8998651504516602, -0.0941147655248642, 0.02342870458960533, 0.0794794112443924, -0.4940713942050934, -0.2696016728878021, 0.1603722870349884, -0.5654004812240601, -0.2913205325603485, 0.44460755586624146, -0.14535292983055115, -0.042044974863529205, 0.2163356989622116, -0.7274064421653748, 0.44790396094322205, -0.6107901930809021, 0.8541904091835022, 0.636042058467865, 0.22507773339748383, 0.5486207604408264, -0.12630976736545563, 0.2725890874862671, 0.2717278301715851, -0.434058278799057, -0.45716243982315063, -0.2600201666355133, -0.6245968341827393, -0.17270508408546448, 0.03193751350045204, 0.455228716135025, -0.4149690568447113, 0.37103238701820374, -0.36845704913139343, 0.10595846176147461, -0.15335194766521454, -0.1539713442325592, 0.1647542417049408, 0.32414132356643677, 0.17278391122817993, -0.2150566726922989, -0.450149804353714, -1.081991195678711, -0.25335443019866943, -0.6807319521903992, -0.19782015681266785, 0.16955024003982544, 0.46280667185783386, 0.08779162913560867, 1.1850396394729614, -0.5406084656715393, -0.20067453384399414, -0.12169622629880905, 0.31714481115341187, -0.1732075959444046, 0.3791313171386719, 0.49343159794807434, -0.5341799259185791, 0.19181734323501587, 0.0019498149631544948, -0.7391349077224731, 0.1360544115304947, -0.20696350932121277, 0.03465442359447479, 0.18983837962150574, 0.5342540144920349, -0.5540227293968201, 0.5851181745529175, 0.22287584841251373, -0.6136983633041382, 0.3458171486854553, -0.14757783710956573, 0.02711658924818039, -1.0308836698532104, 0.00033767620334401727, -0.38835760951042175, -0.44378262758255005, -0.20904357731342316, -0.07825589179992676, -0.027355527505278587, -0.22230423986911774, -0.2513822913169861, 0.16329152882099152, -0.513786792755127, -0.35290947556495667, 0.0006108995294198394, 0.03492226079106331, -0.25894686579704285, 0.8219782710075378, 0.23568567633628845, 0.7483896017074585, 0.42966169118881226, -0.3379717171192169, -0.010088874958455563, 0.08649551123380661, -0.4424903094768524, 0.35600200295448303, -0.5814997553825378, 0.0401889942586422, -0.547776460647583, 0.13456812500953674, -1.200823187828064, -0.27575406432151794, 0.25024956464767456, -0.3298797607421875, 0.3099534213542938, -0.004532841965556145, -0.6334388852119446, -0.06795097142457962, 0.016157003119587898, 0.23397774994373322, 0.568790853023529, -0.3002088963985443, 0.27645260095596313, 0.5626541972160339, -0.2370070368051529, -0.0756765604019165, -0.8832618594169617, 0.17098650336265564, -0.3602878153324127, -0.3114216923713684, 0.4624096155166626, 0.31447985768318176, -0.217472106218338, 0.13813823461532593, -0.05369306728243828, -0.2069355845451355, 0.012783273123204708, 0.29490190744400024, 0.20901073515415192, -0.29439276456832886, 0.549703061580658, -0.23016709089279175, 0.043953023850917816, 0.2689468562602997, -0.04209790751338005, 0.4941351115703583, 0.05009818822145462, -0.44175979495048523, -0.4708385765552521, 0.6196057200431824, 0.6067531704902649, -0.20776478946208954, 0.7043799757957458, 0.22561265528202057, -0.574179470539093, 0.1401926577091217, -0.34400674700737, -0.48984137177467346, -0.3724779486656189, 0.7060317993164062, -0.34280824661254883, -1.0811923742294312, 0.672314465045929, 0.08342904597520828, 0.0925997868180275, 0.11469016969203949, 0.46053117513656616, -0.25625237822532654, 0.6868480443954468, 0.3633185029029846, -0.035056207329034805, 0.6091803312301636, -0.21366049349308014, 0.14288902282714844, -0.987829864025116, -0.3429346978664398, -0.5978797674179077, -0.31815508008003235, -0.5036619305610657, -0.46364548802375793, 0.29071706533432007, 0.1415461003780365, -0.3720094561576843, 0.2361198365688324, -0.35734274983406067, 0.48888736963272095, 0.2609269917011261, 0.3133011758327484, 0.13319166004657745, 0.2749400734901428, -0.39474552869796753, -0.421591579914093, -0.5997998118400574, -0.7777531743049622, 0.6568871140480042, 0.26494869589805603, 0.5115466713905334, 0.03674633800983429, 0.6980597972869873, -0.0496387705206871, 0.07439815998077393, -1.0852572917938232, 0.7983179688453674, -0.3592211902141571, -0.4525403082370758, -0.1106499657034874, -0.5084055662155151, -1.3338054418563843, 0.4881843030452728, -0.15603674948215485, -1.2314655780792236, 0.14647243916988373, -0.12336916476488113, -0.4291146993637085, 0.4670852720737457, -0.5937916040420532, 0.9964717030525208, -0.0645454078912735, -0.3053446114063263, -0.17571935057640076, -0.5079845190048218, 0.2071840763092041, 0.23647569119930267, -0.09310836344957352, 0.013980492018163204, -0.35759374499320984, 0.9527485966682434, -0.5169646143913269, 0.9818350672721863, -0.15469342470169067, -0.10360381752252579, 0.49559736251831055, 0.3314583897590637, 0.22332575917243958, 0.0317695327103138, -0.07572544366121292, 0.0013597995275631547, -0.12680572271347046, -0.2721303403377533, -0.7616957426071167, 0.602677047252655, -0.9172831773757935, -0.579293966293335, -0.5074150562286377, -0.31812429428100586, -0.0986577644944191, -0.0794883593916893, 0.07235629111528397, 0.5211697220802307, -0.5046131014823914, 0.49789178371429443, 0.29353776574134827, -0.23538710176944733, 0.7560855150222778, 0.36543524265289307, -0.2268235832452774, -0.07779030501842499, 0.701576292514801, 0.21723583340644836, 0.06364374607801437, 0.6189451217651367, 0.21878638863563538, -0.28152090311050415, -0.5254881381988525, 0.19672293961048126, 0.24100849032402039, -0.4243966341018677, 0.23125587403774261, -0.7725263833999634, -0.2884006202220917, -0.11028023064136505, 0.07042524218559265, -0.25804248452186584, -0.31861650943756104, -0.39998146891593933, -0.09727759659290314, 0.047771260142326355, 0.9146433472633362, 0.06426110118627548, 0.38752481341362, -0.7000777125358582, 0.2751002907752991, 0.6740671396255493, 0.14753246307373047, 0.16634221374988556, -0.3779987096786499, 0.13444381952285767, 0.22312213480472565, -0.43790072202682495, -1.1535817384719849, 0.2972175180912018, 0.3222024142742157, 0.6001033186912537, 0.40781736373901367, -0.30408793687820435, 0.819339394569397, -0.6137712001800537, 1.1637629270553589, 0.015188643708825111, -0.7724230289459229, 0.4171905517578125, -0.574329137802124, 0.561941921710968, 0.32575827836990356, 0.27344417572021484, -0.71783447265625, -0.16542553901672363, -0.4529010057449341, -0.6935258507728577, 0.7595487236976624, 0.32689741253852844, 0.28435420989990234, -0.4390178322792053, 0.521147608757019, 0.18085908889770508, 0.1256156861782074, -0.7820535898208618, 0.031114323064684868, -0.06383851915597916, 0.10113932937383652, -0.039381567388772964, -0.23289360105991364, 0.1957099735736847, -0.12226223200559616, 0.1394273191690445, 0.042724743485450745, 0.48789292573928833, 0.17062115669250488, -0.017889734357595444, 0.057080648839473724, 0.4228542745113373, 0.13456034660339355, 0.3961271643638611, -0.07538961619138718, 0.24358418583869934, -0.21566030383110046, -0.278789222240448, 0.049796316772699356, -0.28094998002052307, -0.025055881589651108, -0.25308850407600403, 0.868313193321228, 0.7412174344062805, 0.46626901626586914, -0.4425983428955078, 0.5204837322235107, -0.05154568701982498, -0.10022180527448654, -0.12005850672721863, -0.1390712559223175, 0.5325660109519958, 0.069435715675354, 0.4114001393318176, 0.1390291005373001, -0.017109479755163193, -1.0971430540084839, 0.20626051723957062, 0.4647597670555115, -0.32490018010139465, -0.6193355321884155, 0.4679111838340759, -0.04273089021444321, -0.4955596625804901, 1.0005921125411987, -0.2986777722835541, -0.7357706427574158, 0.43476009368896484, 0.34597915410995483, 0.9286425709724426, 0.007500265259295702, 0.2928239405155182, 0.3523625433444977, 0.097772516310215, 0.23518234491348267, 0.19201526045799255, -0.09723903238773346, -0.7929118275642395, -0.4121795892715454, -0.5767386555671692, 0.14286990463733673, 0.30293890833854675, -0.5111477971076965, -0.03338729217648506, -0.23982219398021698, -0.16980776190757751, 0.2966760993003845, 0.06364043802022934, -0.5670539736747742, -0.1511697918176651, 0.34676843881607056, 0.13097183406352997, -0.8045579195022583, 0.7589749693870544, 0.8702801465988159, -0.41983774304389954, -1.0076223611831665, 0.27614566683769226, 0.10944317281246185, -0.5344025492668152, 0.6536573767662048, 0.10650563985109329, 0.29212406277656555, -0.178813636302948, -0.509156346321106, -0.5213049650192261, 0.6704588532447815, 0.5552561283111572, -0.5701869130134583, -0.30317914485931396, 0.13662417232990265, 0.675895631313324, -0.4801110327243805, 0.15133139491081238, 0.18373557925224304, 0.18414142727851868, 0.25984469056129456, -0.6914201378822327, -0.06098153069615364, 0.14068850874900818, 0.13706547021865845, 0.2629435956478119, -0.3476666808128357, 1.2826592922210693, -0.0936208963394165, -0.5693673491477966, 0.055716387927532196, 0.6267465949058533, 0.19931738078594208, -0.2566511332988739, 0.5380265712738037, 0.3158629536628723, 0.7367182374000549, -0.07958890497684479, 0.892026960849762, 0.047174058854579926, 0.3351074457168579, 1.2547872066497803, -0.2057163268327713, 1.110876441001892, 0.6538727879524231, -0.36004626750946045, 0.637008786201477, 0.7369318008422852, 0.5182801485061646, 0.4690364599227905, 0.5257505774497986, -0.18021704256534576, -0.4384935796260834, 0.09360393136739731, -0.04319573938846588, 0.9887620210647583, 0.4756704866886139, -0.20195844769477844, -0.3979058563709259, -0.04423772543668747, 0.04472682625055313, 0.24157656729221344, -0.057292427867650986, 1.1008708477020264, 0.043706540018320084, -0.856925368309021, 0.5630367994308472, -0.26671311259269714, 0.47669002413749695, -0.5678195357322693, -0.17747290432453156, -0.1285591423511505, -0.030881302431225777, -0.15942126512527466, -0.8461574912071228, 0.5231655836105347, -0.16593976318836212, -0.10532208532094955, -0.30237868428230286, 0.3781738579273224, -0.7829912900924683, -0.3065553903579712, 0.24128226935863495, 0.7127025127410889, 0.4239409267902374, -0.13262557983398438, -0.5811893343925476, 0.047396834939718246, 0.019717823714017868, -0.5303694605827332, 0.34171047806739807, 0.6328803300857544, -0.17492423951625824, 0.4581182599067688, 0.46424150466918945, 0.2611190974712372, 0.06153661757707596, 0.08369997143745422, 0.9862934350967407, -0.7673549652099609, -0.490816593170166, -0.9560080170631409, 0.4705978333950043, -0.015266213566064835, -0.10091149061918259, 0.29252150654792786, 0.5895732641220093, 0.6078850626945496, 0.009669845923781395, 0.5506044626235962, -0.317082941532135, 0.33066311478614807, -0.4826248586177826, 0.7368261218070984, -0.6314871311187744, 0.25912269949913025, -0.08323628455400467, -1.123040795326233, -0.24834923446178436, 1.008598804473877, -0.2780570983886719, 0.17497894167900085, 1.125794768333435, 0.9368213415145874, -0.11473024636507034, 0.007725230883806944, 0.4328584671020508, 0.44867947697639465, 0.3364967405796051, 0.7601412534713745, 0.7975733876228333, -0.24383559823036194, 0.35869523882865906, -0.06351027637720108, -0.05378653109073639, 0.12981489300727844, -0.7672102451324463, -0.9925646185874939, -0.884087324142456, -0.37916722893714905, 0.05879594013094902, 0.013873209245502949, 1.050758957862854, 0.82161945104599, -0.5372582077980042, -0.38213738799095154, -0.20162273943424225, 0.03465474024415016, -0.08081493526697159, -0.2679004669189453, 0.46134689450263977, -0.3836212754249573, -0.5956850647926331, 0.388672411441803, 0.3654797673225403, -0.00529906153678894, -0.5147343277931213, 0.25444018840789795, -0.49188926815986633, -0.16024087369441986, 0.6661417484283447, -0.05019668489694595, -1.0665717124938965, -0.5720284581184387, -0.0573606863617897, -0.3866206407546997, 0.30562373995780945, 1.167601466178894, -1.1856086254119873, 0.3314085006713867, 0.8219541907310486, 0.3884562849998474, 0.14920814335346222, 0.024471137672662735, 0.5756358504295349, -0.9300287961959839, 0.25664693117141724, 0.47215956449508667, 0.4182654619216919, 0.41687247157096863, -0.14448586106300354, 0.2835409939289093, 0.2975813150405884, -0.45284610986709595, -0.5150890350341797, 0.34478938579559326, -0.9915164709091187, -0.47173434495925903, 0.9882915019989014, -0.2804703116416931, -0.4225923717021942, -0.11569077521562576, -0.56905597448349, 0.20908354222774506, -0.435605525970459, 0.6477421522140503, 0.8552983999252319, 0.007299872115254402, -0.36066383123397827, -0.23572827875614166, 0.3102056682109833, 0.395935982465744, -0.66150963306427, 0.2936095595359802, 0.5682153105735779, 0.1310471147298813, 0.11464706808328629, 0.6447489261627197, -0.24549080431461334, -0.024985646829009056, 0.04100549593567848, -0.1863812953233719, 0.08175968378782272, -0.02358751744031906, -0.33827733993530273, 0.584686815738678, -0.11286837607622147, -0.24550870060920715 ]
http://arxiv.org/abs/2405.18208v1
http://arxiv.org/pdf/2405.18208v1
A Human-Like Reasoning Framework for Multi-Phases Planning Task with Large Language Models
2024-05-28T14:13:32
2024-05-28T14:13:32
Chengxing Xie, Difan Zou
cs.AI
cs.AI, cs.CL, cs.LG
Recent studies have highlighted their proficiency in some simple tasks like writing and coding through various reasoning strategies. However, LLM agents still struggle with tasks that require comprehensive planning, a process that challenges current models and remains a critical research issue. In this study, we concentrate on travel planning, a Multi-Phases planning problem, that involves multiple interconnected stages, such as outlining, information gathering, and planning, often characterized by the need to manage various constraints and uncertainties. Existing reasoning approaches have struggled to effectively address this complex task. Our research aims to address this challenge by developing a human-like planning framework for LLM agents, i.e., guiding the LLM agent to simulate various steps that humans take when solving Multi-Phases problems. Specifically, we implement several strategies to enable LLM agents to generate a coherent outline for each travel query, mirroring human planning patterns. Additionally, we integrate Strategy Block and Knowledge Block into our framework: Strategy Block facilitates information collection, while Knowledge Block provides essential information for detailed planning. Through our extensive experiments, we demonstrate that our framework significantly improves the planning capabilities of LLM agents, enabling them to tackle the travel planning task with improved efficiency and effectiveness. Our experimental results showcase the exceptional performance of the proposed framework; when combined with GPT-4-Turbo, it attains $10\times$ the performance gains in comparison to the baseline framework deployed on GPT-4-Turbo.
[ -0.375505268573761, -0.46892595291137695, 1.1346791982650757, 0.33373358845710754, -0.035974130034446716, 0.16599400341510773, -0.13367055356502533, -0.1985156536102295, 0.1324765533208847, 0.47316670417785645, -0.9903910160064697, -0.39311015605926514, -0.05346525087952614, 0.13856764137744904, -0.16559399664402008, 0.31374725699424744, -0.3296906054019928, -0.13660545647144318, 0.11130712181329727, 0.3319460451602936, -0.37286892533302307, -0.5659549236297607, -0.6893470287322998, -0.8357269763946533, 0.49521031975746155, 0.6682988405227661, 0.6932899951934814, 0.29521262645721436, 0.23260211944580078, 0.2607823610305786, 0.003025968326255679, 0.47119632363319397, -0.05742049589753151, 0.32229217886924744, -0.4296230971813202, -0.22612904012203217, -0.5720533728599548, -0.5166364908218384, 0.546214759349823, 0.49607858061790466, -0.4063820242881775, -0.12694112956523895, -0.020359016954898834, 0.49915942549705505, -0.20082634687423706, 0.4190457761287689, -0.5765817761421204, 0.0698103979229927, -0.039378367364406586, -0.36789387464523315, -0.09656748175621033, 0.11838939040899277, 0.15256361663341522, -0.8514024615287781, 0.3406873643398285, 0.26127374172210693, 0.5792518854141235, 0.1437056064605713, -0.409332811832428, -0.2626644968986511, -0.9998508095741272, 0.4186970591545105, -0.4966700077056885, 0.3324844539165497, 0.3915764391422272, 0.2878398895263672, -0.6449839472770691, -0.41688603162765503, -0.7615281343460083, -0.06627680361270905, 0.09487516433000565, -0.024204887449741364, 0.2856571674346924, 0.3117976486682892, 0.1670123189687729, -0.5116003751754761, -0.836304783821106, -0.11640498787164688, -0.07519759982824326, -0.2955188453197479, 0.5917875170707703, 0.29839739203453064, 0.12941770255565643, -0.09953919053077698, -0.4711401164531708, 0.09152045100927353, -0.7127727270126343, 0.06797605752944946, 0.08731209486722946, 0.36505547165870667, -0.015378210693597794, 0.4525561034679413, -0.6505416631698608, 0.5460383296012878, -0.0439169742166996, -0.3525817096233368, -0.11955732107162476, -0.586300253868103, -0.30895498394966125, -0.15041087567806244, 0.3648059070110321, 0.4015592932701111, 0.219253808259964, -0.37295079231262207, -0.348987340927124, -0.32445839047431946, 0.2452867478132248, -0.7908056378364563, -0.05310172960162163, 0.40453705191612244, -0.223602294921875, 0.06084489822387695, -0.2799972891807556, -0.7946266531944275, -0.44365227222442627, -0.471957266330719, 0.27676862478256226, -0.4936503469944, -0.47403109073638916, 0.510762631893158, 0.09773285686969757, 0.41752928495407104, 0.7466897964477539, -0.7693334221839905, 0.27646997570991516, 0.7004398703575134, 0.6261129379272461, 0.06405583024024963, -0.6686193346977234, -0.13100430369377136, 0.5640321373939514, -0.18021157383918762, 1.1760050058364868, -0.2802148461341858, -0.6847895979881287, 0.24391807615756989, -0.16182833909988403, -0.11781495809555054, -0.39847204089164734, 0.5214881300926208, -0.2745223045349121, -0.17753873765468597, -0.7165477871894836, -0.0393395759165287, -0.559298574924469, 0.9185116291046143, -0.35085198283195496, 0.6590166687965393, 0.037829380482435226, -0.2265983372926712, 0.3596968948841095, -0.7059175968170166, -0.5857301354408264, 0.0827161967754364, -0.30997374653816223, -0.11470133811235428, -0.3730960190296173, 0.20400193333625793, 0.575065016746521, -0.5280455350875854, 0.42358332872390747, -0.060076337307691574, -0.368649423122406, 0.12450483441352844, 0.22092077136039734, 0.3063229024410248, 0.09131830185651779, -0.5588192939758301, 0.46181246638298035, -0.525791347026825, 0.2592114508152008, 0.023024018853902817, -0.6827166080474854, 0.29413115978240967, 0.32149451971054077, -0.10030806809663773, 0.4966817796230316, 0.15527884662151337, -0.2818784713745117, 0.5686923861503601, -0.1427009105682373, 0.4385407865047455, 0.6724808216094971, 0.029408302158117294, 0.7766061425209045, -0.5942374467849731, 0.7346007823944092, -0.053321193903684616, 0.22960074245929718, -0.12109475582838058, -0.43961405754089355, -0.8583486080169678, 0.25348249077796936, -0.22520115971565247, 0.5862952470779419, -0.8505851626396179, 0.26386886835098267, -0.28804636001586914, -0.16028882563114166, 0.09977813810110092, -0.01682749018073082, 0.25248560309410095, 0.3992023169994354, 0.4477475881576538, 0.19371509552001953, -0.35036084055900574, -0.6071964502334595, 0.04532293230295181, -0.414302796125412, 0.1255474090576172, -0.03629913181066513, 0.6954272389411926, -0.2533561587333679, 0.8098150491714478, -0.4401707351207733, -0.28511708974838257, -0.6576220393180847, 0.24868632853031158, -0.17177295684814453, 0.4241834878921509, 0.16010533273220062, -0.8695635795593262, -0.14968492090702057, -0.16088160872459412, -0.5802931785583496, 0.09201407432556152, -0.5826635360717773, -0.6317706108093262, -0.09157037734985352, 0.3944665789604187, -0.8184404969215393, 0.28364866971969604, 0.12532010674476624, -0.7214180827140808, 0.7401049733161926, -0.2574641704559326, 0.05555884912610054, -0.9228561520576477, -0.08521538227796555, 0.042717646807432175, -0.4119565486907959, -0.7431921362876892, 0.31079843640327454, -0.03136983513832092, -0.08916023373603821, -0.32752305269241333, 0.47309979796409607, -0.49193429946899414, 0.038795169442892075, -0.3412819504737854, -0.12671436369419098, 0.26086926460266113, 0.9369131326675415, 0.21273602545261383, 0.730823814868927, 0.3350493311882019, -0.39078691601753235, 0.16316533088684082, 0.30160602927207947, 0.12359561026096344, 0.7562779784202576, -0.30067166686058044, 0.22297360002994537, -0.23104675114154816, 0.7520991563796997, -0.5684115290641785, -0.19856064021587372, 0.44662222266197205, 0.02189270593225956, 0.3361426889896393, -0.19557201862335205, -0.664300799369812, -0.33107128739356995, -0.34919223189353943, 0.24289272725582123, 0.2523016631603241, -0.10258615761995316, 1.2916548252105713, 0.1818334311246872, -0.15205007791519165, -0.1933312714099884, -0.5330899953842163, 0.23169223964214325, -0.33311617374420166, -0.7872710824012756, 0.5606430172920227, -0.1939018964767456, -0.24825617671012878, -0.006871133577078581, -0.2829623222351074, -0.32607725262641907, -0.15303321182727814, 0.33411145210266113, 0.15088723599910736, 0.1221134290099144, -0.153525248169899, -0.05793250352144241, -0.11375406384468079, 0.10717523843050003, -0.5881390571594238, 0.7510854005813599, -0.004317175131291151, -0.4078778624534607, -0.39207467436790466, 0.5975961685180664, 0.45892155170440674, -0.13878017663955688, 0.30396708846092224, 0.34324556589126587, -0.3664530813694, -0.3640837073326111, -0.5995065569877625, -0.08062712848186493, -0.4176790714263916, 0.226583331823349, -0.9282681941986084, -0.5268370509147644, 0.447237491607666, -0.3279261291027069, 0.18053986132144928, 0.020809607580304146, 0.5750047564506531, -0.11026690900325775, 0.8231686353683472, 0.521361231803894, 0.22043000161647797, -0.07416480034589767, -0.4014117419719696, -0.0558789037168026, -0.8795086741447449, -0.6412969827651978, -0.5759770274162292, -0.3126731514930725, -0.130945086479187, -1.1471973657608032, 0.410675585269928, 0.009542269632220268, -0.4287305772304535, 0.1449812948703766, -0.24761158227920532, 0.2747727632522583, 0.3962401747703552, -0.09576068818569183, 0.5548940300941467, -0.3060302436351776, -0.29306554794311523, 0.47555458545684814, -0.6439112424850464, -0.5631566643714905, 0.8439883589744568, 0.07283668220043182, 0.7174989581108093, -0.06408075988292694, 0.6187037825584412, 0.06830297410488129, -0.10355187207460403, -0.5391507148742676, 0.8564416170120239, 0.49036476016044617, -0.7468120455741882, -0.49617913365364075, -0.3975151777267456, -0.7576788663864136, 0.6060177683830261, -0.2863280177116394, -0.6482991576194763, 0.27311447262763977, 0.07053711265325546, -0.5336005091667175, 0.4226685166358948, -0.6368685364723206, 0.3931860327720642, -0.4925749897956848, -0.3071346580982208, -0.3287016749382019, -0.6160558462142944, 0.16202935576438904, -0.30858302116394043, 0.3424064517021179, -0.5389962196350098, -0.10695983469486237, 0.47860315442085266, -0.19453838467597961, 0.540300190448761, -0.2334083765745163, 0.0991845428943634, 0.3278302550315857, 0.3877326548099518, 0.6735298037528992, -0.07720829546451569, -0.253171443939209, 0.0593382865190506, -0.15476013720035553, -0.38071689009666443, -0.46707069873809814, 0.5165361166000366, -0.4947628974914551, -0.447971910238266, -0.28376805782318115, -0.8812987208366394, -0.37787312269210815, 0.3765699565410614, 0.007334042806178331, 0.3552967309951782, -0.04024609923362732, -0.6055572628974915, 0.3144574761390686, -0.16489464044570923, 0.5166985988616943, 0.7143152356147766, -0.36141437292099, -0.10244479030370712, 0.7765052914619446, 0.12933184206485748, 0.12855757772922516, 0.5396804213523865, 0.029340222477912903, -0.5764511823654175, -0.9646073579788208, -0.4533366858959198, 0.3092416524887085, -0.5441053509712219, -0.06945207715034485, -0.46982383728027344, 0.04121983423829079, -0.3386116027832031, -0.33264702558517456, -0.1924777626991272, -0.2985379695892334, 0.24380028247833252, 0.09046950936317444, -0.38383087515830994, 0.8082437515258789, 0.10598951578140259, 0.3020985722541809, -0.3572307527065277, 0.46701475977897644, 0.29878541827201843, 0.09462985396385193, -0.004169147927314043, 0.124590203166008, -0.24312683939933777, -0.01840466819703579, -0.5911375880241394, -0.7149562835693359, 0.2584376335144043, -0.2677106261253357, 0.5702247023582458, 0.2672267556190491, 0.06306806951761246, 0.9943597316741943, -0.5545198917388916, 0.6021581888198853, 0.030203785747289658, -0.5861307978630066, 0.43132367730140686, -0.5776808261871338, 0.392397940158844, 0.723017692565918, 0.22061580419540405, -0.34284090995788574, -0.29030856490135193, -0.594460129737854, -0.8967800140380859, 0.5705876350402832, 0.48383671045303345, -0.6347136497497559, 0.524949848651886, 0.279962956905365, -0.16584601998329163, 0.39140623807907104, -0.5710049271583557, 0.10039868950843811, -0.06357520073652267, 0.23484519124031067, 0.03409558907151222, -0.36027249693870544, -0.1334737241268158, -0.2859153151512146, 0.6132651567459106, -0.19533173739910126, 0.35452139377593994, 0.33730244636535645, 0.1107720211148262, -0.1618347018957138, 0.4102965295314789, 0.8386419415473938, 0.9762368202209473, -0.31176072359085083, 0.24231700599193573, 0.10972052067518234, -0.2275029718875885, 0.4305839538574219, 0.38561075925827026, -0.3864654004573822, -0.47473859786987305, 0.3028234541416168, 0.15241248905658722, 0.12867777049541473, -0.7089503407478333, 0.16555960476398468, -0.149337500333786, -0.49243515729904175, -0.4892372786998749, 0.054788149893283844, 0.3012278378009796, 0.5234002470970154, 0.2102690488100052, 0.09488378465175629, 0.15804265439510345, -0.36786484718322754, -0.1241598129272461, 0.1242433488368988, -0.08147872239351273, -0.459206759929657, 0.7032479643821716, 0.5898858904838562, -0.48942649364471436, 0.4302211105823517, -0.7479300498962402, -0.6649567484855652, 0.38582685589790344, 0.38907310366630554, 0.7694212794303894, -0.07895717024803162, 0.32357528805732727, 0.19426612555980682, 0.492859423160553, -0.4605489671230316, 0.7377365827560425, -0.1681845635175705, -0.9082723259925842, -0.7136291861534119, -0.6421474814414978, -0.33535996079444885, -0.15836001932621002, 0.07010050117969513, 0.21075904369354248, -0.3402716815471649, 0.0005649013910442591, -0.6375134587287903, 0.06538628786802292, -0.7206196784973145, -0.04374087229371071, 0.3319995105266571, 0.8290669918060303, -0.37595054507255554, 0.7081469297409058, 0.9295554757118225, -0.4165780246257782, -1.327284812927246, 0.42641735076904297, 0.3435872793197632, -0.7928393483161926, 0.36862823367118835, 0.22202999889850616, -0.5595250129699707, -0.08694686740636826, 0.00195501372218132, -0.7228338122367859, 1.2310925722122192, 0.14181670546531677, -0.6829611659049988, -0.80195152759552, 0.3494618237018585, 0.06358445435762405, -0.3456612825393677, 0.00022968639677856117, 0.6571645140647888, 0.7802008986473083, 0.41423431038856506, -0.9660840630531311, 0.28333553671836853, 0.13293132185935974, -0.0568351112306118, 0.18979308009147644, -0.5701888203620911, 0.7600586414337158, -0.25803142786026, -0.1969202607870102, 0.05534131079912186, 0.36867740750312805, 0.48197752237319946, 0.45556923747062683, 0.9276873469352722, 0.5728706121444702, 0.828892707824707, 0.12258611619472504, 0.8777772188186646, -0.1746334582567215, 0.147287979722023, 1.014251470565796, -0.6751524806022644, 0.45945456624031067, 0.20715931057929993, -0.022367024794220924, 0.6199886798858643, 0.3938685655593872, 0.4998634159564972, 0.4073205590248108, 0.311077743768692, -0.3356676399707794, -0.5520760416984558, 0.00045251534902490675, -0.08496201783418655, 0.5206797122955322, 0.16596710681915283, 0.3849731981754303, -0.6164091229438782, -0.05129564553499222, 0.4194549024105072, -0.02135363779962063, -0.3810490369796753, 0.43253257870674133, -0.03846532478928566, -0.8673085570335388, 0.2870528995990753, 0.11294034868478775, 0.5088999271392822, -0.6834568977355957, -0.07529769837856293, 0.09775688499212265, -0.021255357190966606, -0.1548338681459427, -0.9344642758369446, 0.19125573337078094, -0.22250953316688538, 0.03204132989048958, -0.7044118642807007, 0.8006330132484436, -0.39010927081108093, -0.36443814635276794, 0.2043057680130005, 0.6978951096534729, -0.0024028446059674025, -0.5771273374557495, -0.7032050490379333, -0.1444382667541504, 0.10673850029706955, -0.2985154092311859, 0.33974120020866394, 0.6564176678657532, -0.02847881242632866, 0.9971625804901123, 0.7358728647232056, 0.3596545457839966, -0.006847984157502651, 0.04414147883653641, 0.882231593132019, -0.972023606300354, -0.7375081181526184, -0.7198495268821716, 0.5783435702323914, -0.09444877505302429, -0.032818134874105453, 0.21462933719158173, 0.648339033126831, 0.5244028568267822, 0.24270287156105042, 0.6809163689613342, -0.03809257596731186, 0.4258992373943329, -0.6363232135772705, 0.18865825235843658, -0.3913813829421997, 0.4530273377895355, 0.09794306010007858, -0.6878540515899658, -0.14038702845573425, 0.5954238176345825, -0.027560735121369362, -0.18754109740257263, 0.8502151370048523, 0.9285662174224854, 0.15446405112743378, -0.11848951876163483, 0.27772119641304016, -0.07515262067317963, 1.0043569803237915, 0.8979207873344421, 1.0770031213760376, 0.38652661442756653, 0.6739910840988159, -0.32516995072364807, -0.0939207449555397, -0.07613706588745117, -0.7011904120445251, -0.8278250098228455, -0.7319251298904419, 0.053387537598609924, -0.1598375290632248, 0.049265772104263306, 1.1070727109909058, 1.1201852560043335, -0.05853753164410591, -0.44103965163230896, -0.3130492568016052, 0.26865342259407043, -0.10850676149129868, -0.17955562472343445, 0.033610258251428604, -0.2897310256958008, -0.30802252888679504, 0.543963611125946, 0.3637281060218811, 0.02648494578897953, -0.5825721025466919, -0.270781546831131, -0.1788242608308792, -0.0788949728012085, 0.5997416377067566, 0.18075482547283173, -0.6044834852218628, -0.1063598096370697, -0.11902859807014465, 0.012626961804926395, -0.06723128259181976, 1.2376015186309814, -0.5661289095878601, 0.2568509578704834, 0.25833451747894287, 0.21926581859588623, 0.8678207397460938, 0.23273523151874542, 0.6508932113647461, -0.4484047293663025, 0.2887879014015198, 0.45502275228500366, 0.46735021471977234, 0.11989256739616394, -0.4444275498390198, 0.6229107975959778, -0.03041517175734043, -0.94029301404953, -0.27736708521842957, 0.49730485677719116, -1.4095252752304077, -0.4347204267978668, 1.4614368677139282, 0.03638405352830887, -0.03897254914045334, -0.5300428867340088, -0.429859459400177, -0.11593315005302429, -0.711485743522644, 0.6080794930458069, 0.5960461497306824, -0.8952081799507141, 0.17700311541557312, -0.5250455141067505, 0.4388042986392975, -0.08306045085191727, -1.0449250936508179, -0.04632408171892166, 0.5556023120880127, 0.29034537076950073, 0.1598924845457077, 1.3706066608428955, 0.3084900975227356, -0.13975320756435394, -0.24430300295352936, 0.11315619945526123, -0.24455343186855316, -0.6772105693817139, 0.2372794896364212, 0.38567662239074707, 0.3133213222026825, -0.026138218119740486 ]
http://arxiv.org/abs/2405.18203v2
http://arxiv.org/pdf/2405.18203v2
IAPT: Instruction-Aware Prompt Tuning for Large Language Models
2024-05-28T14:11:01
2024-06-07T06:41:18
Wei Zhu, Aaron Xuxiang Tian, Congrui Yin, Yuan Ni, Xiaoling Wang, Guotong Xie
cs.CL
cs.CL
Soft prompt tuning is a widely studied parameter-efficient fine-tuning method. However, it has a clear drawback: many soft tokens must be inserted into the input sequences to guarantee downstream performance. As a result, soft prompt tuning is less considered than Low-rank adaptation (LoRA) in the large language modeling (LLM) era. In this work, we propose a novel prompt tuning method, Instruction-Aware Prompt Tuning (IAPT), that requires only four soft tokens. First, we install a parameter-efficient soft prompt generator at each Transformer layer to generate idiosyncratic soft prompts for each input instruction. The generated soft prompts can be seen as a semantic summary of the input instructions and can effectively guide the output generation. Second, the soft prompt generators are modules with a bottleneck architecture consisting of a self-attention pooling operation, two linear projections, and an activation function. Pilot experiments show that prompt generators at different Transformer layers require different activation functions. Thus, we propose to learn the idiosyncratic activation functions for prompt generators automatically with the help of rational functions. We have conducted experiments on various tasks, and the experimental results demonstrate that (a) our IAPT method can outperform the recent baselines with comparable tunable parameters. (b) Our IAPT method is more efficient than LoRA under the single-backbone multi-tenant setting.
[ -0.46105462312698364, -0.8314149379730225, 0.47990840673446655, 0.40367597341537476, -0.23119571805000305, -0.17575867474079132, -0.4779781401157379, 0.09172077476978302, -0.2547701895236969, 0.44788822531700134, -0.7090566754341125, -0.3088703155517578, -0.27043142914772034, 0.30959561467170715, 0.05465826392173767, 0.8693943619728088, 0.3550640642642975, -0.07099077850580215, 0.13219036161899567, -0.16158662736415863, -0.7313063740730286, 0.018098721280694008, -0.891103982925415, -0.04967333748936653, 0.5399671196937561, 0.8409825563430786, 0.37660107016563416, 0.8320392370223999, 0.0974736288189888, 0.3569280207157135, 0.003118271706625819, 0.3756921887397766, -0.08899697661399841, 0.23986883461475372, -0.270175576210022, -0.3700698912143707, -0.3220789432525635, -0.2606491148471832, 0.8218411207199097, 0.46130606532096863, 0.14316371083259583, 0.23393675684928894, 0.3870756924152374, 0.6400062441825867, -0.6195690631866455, 0.33971574902534485, -0.9676608443260193, -0.1031850129365921, -0.018794598057866096, -0.4994342625141144, -0.7167669534683228, -0.2512243390083313, -0.22774642705917358, -0.5466535687446594, 0.1686629205942154, 0.33779123425483704, 0.30597010254859924, 0.5508584976196289, -0.5344935655593872, -0.20914410054683685, -0.44895169138908386, 0.6081289052963257, -0.7044281959533691, -0.01748385839164257, 0.12580431997776031, 0.15930414199829102, -0.31455904245376587, -0.48440614342689514, -0.6118463277816772, -0.3106727600097656, -0.11531607806682587, -0.051769789308309555, -0.036063261330127716, 0.33557072281837463, 0.4592503607273102, 0.027096543461084366, -0.3837325870990753, 0.5321032404899597, -0.07395311444997787, -0.07331003248691559, 0.2760169208049774, 0.15325698256492615, 0.14410997927188873, -0.20502710342407227, -0.4698964059352875, -0.007301256991922855, -0.7869635224342346, 0.28082984685897827, 0.5405014157295227, 0.7700046896934509, -0.15104231238365173, 0.2766475975513458, -0.022463489323854446, 0.6013453006744385, 0.4978715181350708, -0.0329759456217289, -0.02441544644534588, -0.07919462025165558, 0.1429712176322937, 0.2994163930416107, 0.758763313293457, 0.07280547171831131, 0.34963005781173706, 0.0811285600066185, -0.33611860871315, -0.29635152220726013, 0.15782636404037476, -0.8485367894172668, -0.09781010448932648, 0.006354843731969595, -0.27400997281074524, -0.20485366880893707, -0.15944375097751617, -0.763594925403595, -0.4772058129310608, -0.5127838253974915, 0.5746802687644958, -0.5435295104980469, -0.14975742995738983, -0.10355634242296219, 0.1191602498292923, 0.5308875441551208, 0.19246390461921692, -1.125753402709961, 0.28331050276756287, 0.8154060244560242, 0.6552954912185669, -0.2697392702102661, -0.3807085156440735, -1.0708181858062744, -0.04456520825624466, 0.01036897860467434, 0.8061248660087585, -0.40638187527656555, -0.27353689074516296, 0.04684043303132057, 0.046710263937711716, -0.43152692914009094, -0.42025062441825867, 0.4866630434989929, -0.40222984552383423, 0.26326850056648254, -0.050993964076042175, -0.4066631495952606, 0.1255117654800415, -0.008373557589948177, -0.5007666349411011, 0.8244027495384216, 0.15017785131931305, -0.4941084682941437, 0.13079556822776794, -0.7567922472953796, -0.6742040514945984, 0.26340076327323914, -0.052978143095970154, -0.37031906843185425, 0.3122405409812927, 0.47628405690193176, 0.34983423352241516, -0.27462270855903625, 0.14899952709674835, -0.05792217701673508, -0.5127592086791992, 0.2710568904876709, -0.7699109315872192, 0.6068176031112671, 0.12301275879144669, -0.5504825115203857, 0.34692373871803284, -0.8530542850494385, 0.22294218838214874, -0.1687014400959015, -0.23185375332832336, -0.06032309681177139, -0.15610271692276, -0.11712295562028885, -0.0173201784491539, 0.284003347158432, -0.29692375659942627, 0.5817081332206726, -0.5119104385375977, 0.5692448616027832, 1.130335807800293, 0.1030772253870964, 0.4657638669013977, -0.04189896211028099, 0.6511732339859009, 0.013955183327198029, 0.1458410620689392, -0.6982704997062683, -0.3153727948665619, -0.7812049388885498, -0.4752228856086731, 0.3991968631744385, 0.6027131080627441, -0.7576816082000732, 0.7261509299278259, -0.027609597891569138, -0.19202204048633575, -0.5452617406845093, 0.024387063458561897, 0.38506805896759033, 0.8651055693626404, 0.2661758363246918, 0.23284922540187836, -0.159857377409935, -0.8343638777732849, -0.3970656096935272, -0.15146255493164062, 0.08780629187822342, 0.4170050621032715, 0.08539091050624847, 0.2742479145526886, 0.6726673245429993, -0.3450217545032501, -0.28585508465766907, -0.29262351989746094, 0.13294894993305206, 0.6287261247634888, 0.5167555809020996, 0.3732045292854309, -0.5477498769760132, -0.6447767615318298, -0.18153898417949677, -0.0908946618437767, -0.41359743475914, -0.2718423008918762, -0.010254593566060066, 0.30176663398742676, 0.71156907081604, -0.753032386302948, 0.01653832569718361, 0.3406859040260315, -0.5500714778900146, 0.4933789074420929, -0.49470505118370056, 0.18473529815673828, -0.9111531972885132, 0.07100768387317657, -0.11535576730966568, -0.17595823109149933, -0.2906831204891205, -0.016808589920401573, 0.3505191504955292, -0.34712618589401245, -0.41618967056274414, 0.6396799087524414, -0.43240952491760254, 0.24257025122642517, -0.36576083302497864, -0.08038754016160965, 0.020302679389715195, 0.8737648129463196, -0.3590989112854004, 0.9826293587684631, 0.6521024703979492, -0.8030052185058594, 0.028746023774147034, 0.025235004723072052, -0.34793218970298767, 0.5679605603218079, -0.6231825947761536, 0.25615838170051575, -0.28861111402511597, 0.16673703491687775, -1.1528172492980957, -0.035090506076812744, 0.3356020450592041, -0.08092702180147171, 0.47768181562423706, -0.4011766016483307, -0.5948359966278076, -0.11676716804504395, -0.10506021976470947, 0.43320682644844055, 0.6573774814605713, -0.7639937996864319, 0.7989599704742432, -0.08359638601541519, -0.36459073424339294, -0.4336898922920227, -0.07679066807031631, -0.126654252409935, -0.5145081877708435, -0.4191434383392334, 0.3063226640224457, -0.19036678969860077, 0.10555685311555862, -0.21179445087909698, 0.07114201039075851, 0.16653695702552795, 0.2113710343837738, 0.2434592843055725, 0.07583048194646835, -0.4776149094104767, 0.349724143743515, 0.3397669494152069, -0.39353808760643005, -0.11697642505168915, -0.44368597865104675, 0.6555835008621216, -0.2773359417915344, -0.32484257221221924, -0.5475565195083618, 0.48829400539398193, 0.6250666379928589, -0.3991335332393646, 0.5665777921676636, 0.6512197256088257, -0.07953041791915894, -0.6649327874183655, -0.3988352119922638, -0.3252536654472351, -0.6156790256500244, 0.31007322669029236, -0.418851375579834, -0.754786491394043, 0.3932301104068756, -0.38170281052589417, 0.19923390448093414, 0.4061276614665985, 0.543065071105957, -0.02385435439646244, 1.263286828994751, 0.5585573315620422, 0.08584014326334, 0.6839507818222046, 0.09466244280338287, 0.25491970777511597, -0.7069154977798462, 0.028411928564310074, -0.726092517375946, -0.5588275194168091, -0.6048762202262878, -0.104148268699646, 0.8468811511993408, -0.08604923635721207, -0.5421258211135864, 0.17381547391414642, -0.5705119371414185, 0.6717630624771118, 0.653394341468811, -0.041842021048069, 0.24982227385044098, -0.07985644787549973, -0.023906245827674866, 0.06453212350606918, -0.821255624294281, -0.25614550709724426, 0.6462582349777222, 0.20681391656398773, 0.6906237006187439, -0.0821160301566124, 0.33805984258651733, 0.27200618386268616, 0.0018678158521652222, -0.8580081462860107, 0.6751359701156616, -0.3087533116340637, -0.13314251601696014, -0.3503839373588562, -0.34196361899375916, -0.9710683226585388, 0.155131533741951, -0.0941200777888298, -0.5625770688056946, 0.10516511648893356, 0.6494160294532776, -0.595759391784668, 0.059411320835351944, -1.0733506679534912, 0.719656765460968, -0.31218937039375305, -0.27014613151550293, -0.28789660334587097, -0.4995354115962982, 0.07332416623830795, 0.10329630225896835, 0.04904025420546532, -0.17601284384727478, -0.1491294801235199, 0.26406538486480713, -0.24933111667633057, 0.8080726265907288, -0.5362145900726318, -0.16662535071372986, 0.20569688081741333, 0.04141509160399437, 0.8280681371688843, 0.29056233167648315, -0.33373889327049255, -0.2336748242378235, -0.17783503234386444, -0.18881820142269135, -0.6962314248085022, 0.9058868288993835, -0.6622456312179565, -0.7673048973083496, -0.13290922343730927, -0.5000755190849304, -0.3983137011528015, 0.28676939010620117, 0.4302358329296112, 0.7627156972885132, 0.18053248524665833, 0.220359668135643, 0.8357241153717041, -0.2591569423675537, 0.6420256495475769, 0.6246821284294128, 0.17933368682861328, -0.27448412775993347, 0.8992874026298523, -0.131820410490036, 0.06254534423351288, 0.4332125782966614, 0.4451804757118225, -0.34227946400642395, -0.34985679388046265, -0.662929356098175, 0.1178068220615387, -0.49437543749809265, -0.5357909202575684, -0.5963156223297119, -0.13841719925403595, -0.3251897096633911, -0.19787302613258362, -0.4127606153488159, -0.46014276146888733, -0.4114014804363251, 0.2976672649383545, 0.5229292511940002, 0.2501911520957947, 0.28770211338996887, 0.6250418424606323, -0.5501257181167603, 0.5494944453239441, 0.3118971884250641, 0.5654199719429016, -0.08118429034948349, -0.6416776180267334, -0.10480238497257233, -0.2107681930065155, -0.182273268699646, -0.5357455015182495, 0.1265820860862732, 0.6449946761131287, 0.45430445671081543, 0.3226897120475769, 0.32872700691223145, 0.4440489709377289, -0.7837192416191101, 0.5242093205451965, -0.041735876351594925, -0.9504596590995789, 0.5581423044204712, -0.3183266520500183, 0.8504424095153809, 0.7204744815826416, -0.029817631468176842, -0.22180584073066711, -0.0726194828748703, -0.2819981873035431, -1.017454743385315, 0.8027918338775635, -0.294233113527298, 0.44815593957901, -0.03400169312953949, 0.41997092962265015, 0.3749710023403168, 0.12099612504243851, -0.5679255127906799, -0.21286465227603912, -0.10468637943267822, -0.5013883709907532, 0.2175479233264923, -0.1079796776175499, 0.061693333089351654, -0.16075392067432404, 0.7603740692138672, -0.6134544610977173, 0.10538820177316666, -0.1510603427886963, -0.07903696596622467, -0.2628055810928345, 0.5048573017120361, 0.27225014567375183, 0.4641025960445404, 0.18456871807575226, 0.1282641440629959, 0.2353522777557373, -0.20588137209415436, 0.09368495643138885, 0.10820697247982025, -0.3226620554924011, -0.25093308091163635, 0.14117936789989471, 1.1241329908370972, 0.2944938540458679, -0.7006623148918152, 0.5802689790725708, -0.22224551439285278, 0.017492016777396202, -0.3837396204471588, 0.5532529950141907, -0.22355784475803375, 0.3306919038295746, 0.3790624737739563, 0.18289141356945038, -0.015904709696769714, -0.31581249833106995, -0.05025061219930649, 0.49773895740509033, -0.3167775571346283, -0.22278597950935364, 0.501060962677002, 0.41788023710250854, -0.6020002365112305, 0.8315938115119934, -0.21543604135513306, -0.25690892338752747, 0.5492499470710754, 0.802817702293396, 0.9400959610939026, -0.21024857461452484, 0.11539746075868607, 0.39926308393478394, 0.18197156488895416, 0.26343834400177, 0.2023913413286209, -0.2485019564628601, -0.28882771730422974, -0.5125007033348083, -0.656069815158844, -0.3165494501590729, 0.25095319747924805, -0.4374384582042694, 0.729306161403656, -0.5646231770515442, 0.06314754486083984, -0.15319038927555084, -0.19149288535118103, -0.7665172815322876, -0.1279461532831192, 0.09023655205965042, 1.0211519002914429, -0.5741751790046692, 0.6141337752342224, 0.532036304473877, 0.2532520294189453, -0.8072737455368042, 0.15715007483959198, -0.2628549337387085, -0.966126024723053, 0.17771711945533752, 0.3256838619709015, -0.18977126479148865, 0.4748969078063965, -0.5592575073242188, -0.6880223751068115, 0.8582507371902466, 0.5774603486061096, -0.6555088758468628, -0.07922808825969696, 0.04368259385228157, 0.34077131748199463, -0.4467891752719879, 0.12065645307302475, 0.41259580850601196, 0.5439478754997253, -0.0710090920329094, -0.5946785807609558, 0.25411731004714966, -0.2779105007648468, -0.037115488201379776, 0.22138476371765137, -0.8405248522758484, 0.6540994048118591, -0.3028109073638916, -0.22740112245082855, 0.285062313079834, 0.702647864818573, 0.31338420510292053, 0.04086273908615112, 1.0237475633621216, -0.029972098767757416, 0.5185157656669617, -0.03799586743116379, 0.7629961967468262, -0.7723231911659241, -0.1146482527256012, 1.070633053779602, -0.08797506988048553, 0.4419553577899933, 0.4922856390476227, 0.28570887446403503, 0.3616349697113037, 0.15261536836624146, 0.06606568396091461, 0.5625124573707581, 0.1924828290939331, -0.3153305947780609, -0.309037446975708, -0.2676834762096405, -0.25656306743621826, 0.6162562966346741, 0.5263429880142212, -0.297296404838562, -0.08895344287157059, 0.17491461336612701, -0.06605427712202072, -0.040161676704883575, -0.447270005941391, 0.8954929113388062, 0.0874239057302475, -1.165033221244812, 0.5606638193130493, 0.1005263403058052, 0.49115124344825745, -0.8024941682815552, -0.1666296422481537, -0.09651005268096924, 0.24475567042827606, 0.11596380919218063, -0.5506382584571838, -0.19499017298221588, -0.07350439578294754, -0.11919886618852615, -0.47608596086502075, 0.6992250084877014, -0.4283004403114319, -0.3201432228088379, -0.18264880776405334, 0.35342901945114136, -0.33465567231178284, -0.16124208271503448, -0.48508161306381226, -0.06628803163766861, -0.0734955444931984, -0.4708064794540405, 0.23538948595523834, 0.7608875632286072, -0.027713099494576454, 0.5911406874656677, 0.4954686462879181, 0.05001180246472359, -0.06945066154003143, 0.2317279875278473, 0.7733166813850403, -0.6791595220565796, -0.7594001293182373, -0.7459233403205872, 0.7393326759338379, 0.2553962171077728, -0.7183342576026917, 0.5157472491264343, 0.1968597173690796, 0.3134143054485321, -0.15777084231376648, 0.6798449158668518, 0.021583909168839455, 0.3331058919429779, -0.7050339579582214, 0.4400058090686798, -0.35351553559303284, 0.39000239968299866, 0.06844782829284668, -1.122939944267273, 0.006202975288033485, 0.2148953378200531, -0.026699822396039963, -0.046682942658662796, 0.5031367540359497, 0.8829953074455261, -0.20151598751544952, -0.025974884629249573, 0.11380823701620102, 0.34199586510658264, 0.17473597824573517, 0.3948494493961334, 0.734551191329956, -0.18796007335186005, 0.47995710372924805, -0.12063243985176086, -0.3231361508369446, -0.33483728766441345, -1.0810624361038208, -0.7298659086227417, -0.6523792743682861, -0.3203388750553131, -0.21276763081550598, -0.0294280294328928, 1.234975814819336, 0.5433936715126038, -0.7754452228546143, 0.11310197412967682, -0.10013706982135773, 0.21729038655757904, -0.3253268301486969, -0.26950353384017944, 0.5057386159896851, -0.7058568000793457, -0.7913288474082947, 0.552591860294342, 0.4012896716594696, -0.21745432913303375, -0.2775837481021881, 0.021644622087478638, 0.24517352879047394, 0.1943335086107254, 0.5053337216377258, 0.28946173191070557, -0.4203616678714752, -0.4206371605396271, 0.11967696994543076, 0.006449434440582991, 0.0598440021276474, 1.0126798152923584, -0.9439201951026917, 0.2766316831111908, 0.3703017830848694, 0.5061445236206055, 0.18133021891117096, -0.0005904168938286602, 0.5867722630500793, -0.9579052329063416, 0.14656925201416016, 0.3534700870513916, 0.37955042719841003, 0.22943587601184845, -0.5807589292526245, -0.03486640006303787, -0.08721806108951569, -0.5821743607521057, -0.7568449974060059, 0.36068904399871826, -1.0343252420425415, -0.16112522780895233, 1.1077390909194946, 0.051991600543260574, -0.232932910323143, 0.07623279839754105, -0.4621180295944214, 0.22113725543022156, -0.5549799799919128, 0.9281958937644958, 0.1148819848895073, -0.15864107012748718, -0.3287748098373413, -0.17036570608615875, 0.44246038794517517, 0.4736376106739044, -0.697375476360321, 0.22630047798156738, 0.3096795678138733, 0.04461473599076271, -0.24900688230991364, 0.36809974908828735, 0.09159339964389801, 0.3040044903755188, -0.28406015038490295, -0.26238924264907837, -0.34586355090141296, -0.4041156470775604, -0.49716687202453613, 0.3305720090866089, 0.14650897681713104, 0.044538550078868866 ]
http://arxiv.org/abs/2406.00046v2
http://arxiv.org/pdf/2406.00046v2
Hate Speech Detection with Generalizable Target-aware Fairness
2024-05-28T13:09:22
2024-06-11T13:18:14
Tong Chen, Danny Wang, Xurong Liang, Marten Risius, Gianluca Demartini, Hongzhi Yin
cs.CL
cs.CL, cs.LG
To counter the side effect brought by the proliferation of social media platforms, hate speech detection (HSD) plays a vital role in halting the dissemination of toxic online posts at an early stage. However, given the ubiquitous topical communities on social media, a trained HSD classifier easily becomes biased towards specific targeted groups (e.g., female and black people), where a high rate of false positive/negative results can significantly impair public trust in the fairness of content moderation mechanisms, and eventually harm the diversity of online society. Although existing fairness-aware HSD methods can smooth out some discrepancies across targeted groups, they are mostly specific to a narrow selection of targets that are assumed to be known and fixed. This inevitably prevents those methods from generalizing to real-world use cases where new targeted groups constantly emerge over time. To tackle this defect, we propose Generalizable target-aware Fairness (GetFair), a new method for fairly classifying each post that contains diverse and even unseen targets during inference. To remove the HSD classifier's spurious dependence on target-related features, GetFair trains a series of filter functions in an adversarial pipeline, so as to deceive the discriminator that recovers the targeted group from filtered post embeddings. To maintain scalability and generalizability, we innovatively parameterize all filter functions via a hypernetwork that is regularized by the semantic affinity among targets. Taking a target's pretrained word embedding as input, the hypernetwork generates the weights used by each target-specific filter on-the-fly without storing dedicated filter parameters. Finally, comparative experiments on two HSD datasets have shown advantageous performance of GetFair on out-of-sample targets.
[ -0.4390815794467926, -0.7717442512512207, 0.24861927330493927, 0.12566633522510529, -0.13151828944683075, -0.03623564541339874, -0.09770812839269638, -0.36778998374938965, 0.34366369247436523, 0.41152843832969666, -0.3106689453125, -0.44804468750953674, -1.0159529447555542, -0.37328481674194336, -0.4557497203350067, 1.3045223951339722, 0.32315149903297424, -0.041298989206552505, 0.22378699481487274, -0.5013601183891296, -0.04852578043937683, -0.6096615195274353, -0.7568888664245605, -0.12122152000665665, 0.7638952732086182, 0.20675764977931976, 0.8164464831352234, 0.730150043964386, 0.5472139716148376, 0.2495667189359665, -0.22677715122699738, -0.10844834893941879, -0.5912082195281982, 0.08276129513978958, -0.399883508682251, -0.17155611515045166, -0.32346591353416443, 0.08396437764167786, 0.5440015196800232, 0.3929934501647949, -0.20496051013469696, 0.22649233043193817, 0.07344576716423035, 0.3977784216403961, -0.894106388092041, -0.29086342453956604, -0.7829455733299255, 0.3195749521255493, -0.31650710105895996, 0.003011152148246765, -0.09601018577814102, -0.20580916106700897, -0.05018113926053047, -0.649014949798584, 0.4563904106616974, -0.028961563482880592, 0.9255111813545227, 0.37940552830696106, -0.23704154789447784, -0.1740807294845581, -0.7567305564880371, 0.8902178406715393, -0.4041481912136078, 0.6742525100708008, 0.3582746982574463, 0.6086359024047852, -0.02221648581326008, -0.5506923794746399, -0.46390607953071594, 0.03704594075679779, 0.15840260684490204, 0.03008880652487278, -0.5829543471336365, 0.052285436540842056, 0.39851418137550354, 0.34948229789733887, -0.5359671711921692, 0.07941081374883652, -0.023296108469367027, -0.568284273147583, 0.38467565178871155, -0.2792153060436249, 0.17060105502605438, -0.05302928760647774, -0.18081654608249664, 0.03460845351219177, -0.14929349720478058, 0.024948492646217346, 0.6230826377868652, 0.5273802876472473, -0.13811646401882172, 0.2266480177640915, -0.4183809757232666, 0.5683853030204773, 0.38902387022972107, 0.04300181195139885, 0.2879504859447479, 0.041701484471559525, -0.13587063550949097, -0.10314324498176575, 0.5064950585365295, 0.1811707466840744, 0.48225417733192444, -0.3159913122653961, -0.15457996726036072, 0.33570706844329834, 0.2066439986228943, -0.7407574653625488, 0.014193251729011536, 0.06017633154988289, -0.4747261106967926, -0.4335745871067047, -0.18054713308811188, -0.9369669556617737, -0.46735361218452454, -0.03891639783978462, 0.43934834003448486, -0.018890632316470146, -0.31260043382644653, -0.11539926379919052, -0.325366348028183, 0.13687275350093842, 0.07473534345626831, -0.7332078814506531, 0.28346729278564453, 0.5900706648826599, 0.7483970522880554, -0.2986010015010834, 0.004818563815206289, -1.33884859085083, 0.32218101620674133, 0.04679037630558014, 0.6668691635131836, -0.7700788378715515, -0.08345357328653336, 0.005325652193278074, -0.1950184851884842, 0.37081095576286316, -0.580321729183197, 0.7895117402076721, -0.6046294569969177, 0.17490248382091522, -0.20797519385814667, -0.36809101700782776, -0.022540921345353127, 0.3261643350124359, -0.5429666638374329, 0.6665773391723633, 0.24272453784942627, -0.7990625500679016, 0.6381085515022278, -0.5786619782447815, -0.4247211515903473, 0.1271689385175705, -0.28403159976005554, -0.6146185398101807, -0.04126589372754097, 0.29636886715888977, 0.4244118630886078, -0.00798112154006958, 0.3781708776950836, -0.6201652884483337, -0.41894975304603577, -0.2756091356277466, -0.40918388962745667, 0.8234214782714844, 0.5141863822937012, -0.7578102946281433, 0.25156277418136597, -0.38774213194847107, -0.14648596942424774, 0.021518150344491005, -0.2572520673274994, -0.32358238101005554, 0.02431357651948929, 0.2262251228094101, 0.403091162443161, -0.13552120327949524, -0.8423712849617004, -0.6380745768547058, -0.19184590876102448, 0.02556675113737583, 1.081980586051941, -0.13561534881591797, 0.247475266456604, -0.4289155900478363, 0.46054700016975403, 0.1332443803548813, 0.39895832538604736, 0.4752759039402008, -0.5450344085693359, -0.5422506332397461, -0.5373151898384094, 0.15255151689052582, 0.36407479643821716, -0.5352035164833069, 0.4571434259414673, 0.032733142375946045, -0.38915109634399414, -0.48458173871040344, 0.22752578556537628, 0.5347128510475159, 0.5211141705513, 0.4792996942996979, -0.22575433552265167, -0.4161217212677002, -0.8427658677101135, -0.6196662187576294, 0.08490011841058731, 0.03532600775361061, 0.21892912685871124, 0.18662746250629425, -0.24298711121082306, 0.8312247395515442, -0.5070456862449646, -0.552372932434082, 0.023063549771904945, -0.031028226017951965, -0.12710225582122803, 0.35678181052207947, 0.5766012072563171, -1.1973847150802612, -0.5109475255012512, -0.15952880680561066, -0.4852674901485443, -0.2804338037967682, 0.2766694724559784, -0.4991872310638428, -0.23671776056289673, 0.43447375297546387, -0.09455280750989914, 0.4837150275707245, 0.5365068912506104, -0.6319637298583984, 0.3874148428440094, 0.23558710515499115, 0.2880367338657379, -0.8453481793403625, 0.007029046770185232, 0.18622736632823944, -0.3312664031982422, -0.6931554675102234, 0.04283687472343445, -0.3320426642894745, -0.11039058119058609, -0.5944786071777344, 0.6474979519844055, 0.018351390957832336, -0.07737398147583008, -0.31547340750694275, -0.061226263642311096, -0.18641972541809082, 0.5946540832519531, -0.10744736343622208, 0.1721159964799881, 0.4145914614200592, -0.6767322421073914, 0.17947469651699066, -0.06445056945085526, 0.10613735765218735, 0.9770359992980957, -0.5203635096549988, 0.13261328637599945, -0.34570130705833435, 0.27309170365333557, -0.7741811275482178, -0.1449877768754959, 0.5574982166290283, -0.7407334446907043, -0.1477903425693512, -0.43737807869911194, -0.0195771474391222, -0.3219040334224701, -0.18546898663043976, 0.3272132873535156, 0.31121426820755005, -0.5651925206184387, 0.6898026466369629, 0.5997759103775024, 0.21985919773578644, -0.7638075947761536, -0.6603583097457886, -0.18431077897548676, -0.31022995710372925, -0.4111870229244232, 0.4659372568130493, -0.35006868839263916, -0.22777195274829865, 0.14492641389369965, -0.14038118720054626, -0.38989022374153137, 0.15031282603740692, 0.4751577079296112, -0.14989210665225983, 0.0617804080247879, 0.07964334636926651, 0.31694841384887695, 0.04805445671081543, -0.1199469193816185, -0.21241377294063568, 0.5688408017158508, -0.03065399080514908, -0.3071459233760834, -0.30961909890174866, 0.6106557250022888, 0.5651094317436218, -0.2531413733959198, 0.5577768683433533, 1.053204894065857, -0.7522450089454651, -0.40343356132507324, -0.7093381881713867, -0.08057073503732681, -0.5026271939277649, 0.32464754581451416, -0.20588147640228271, -1.4168256521224976, 0.37141939997673035, 0.3475296199321747, 0.15271258354187012, 0.2813877761363983, 0.4125743806362152, 0.0766015574336052, 1.0564521551132202, 0.6721901893615723, -0.27015426754951477, 0.5685707926750183, 0.06714820116758347, 0.007318553980439901, -0.4637865126132965, 0.04897205904126167, -0.6046506762504578, -0.34869465231895447, -0.5090994238853455, -0.21570689976215363, 0.07776779681444168, -0.14847959578037262, -0.4326089918613434, -0.01607813872396946, -0.7173817753791809, 0.5406587719917297, 0.4824526011943817, 0.15816663205623627, 0.22668713331222534, 0.48221394419670105, -0.07766585797071457, -0.3209753632545471, -0.22896651923656464, -0.07723087817430496, 1.0953747034072876, 0.2510327100753784, 0.18943369388580322, 0.24001117050647736, 0.7035616040229797, 0.9687278270721436, 0.5889567732810974, -0.705540657043457, 0.388184517621994, -0.6218016743659973, -0.7528238296508789, -0.18730008602142334, -0.6219494342803955, -0.7433943748474121, 0.2938062846660614, -0.07720709592103958, -0.4543949365615845, 0.281717449426651, 0.47336745262145996, -0.2556701600551605, 0.6767770648002625, -0.460662841796875, 0.665019690990448, 0.05849279835820198, -0.2738383412361145, -0.32363197207450867, -0.33334389328956604, 0.25328078866004944, -0.20974723994731903, 0.4925170838832855, -0.3830963671207428, 0.14963304996490479, 1.0691016912460327, -0.280806303024292, 0.50053471326828, -0.8087759613990784, 0.1979704350233078, 0.034521911293268204, 0.005580635275691748, 0.21921105682849884, -0.3850845992565155, -0.26578035950660706, 0.36472347378730774, -0.5456860661506653, -0.5695666670799255, -0.5171974897384644, 0.734519898891449, -0.5733628273010254, -0.4498955309391022, -0.2500235438346863, -0.3947378695011139, -0.3628404438495636, 0.2971515357494354, 0.3654879629611969, 0.31259849667549133, -0.26116129755973816, -0.0001297295093536377, 0.5607602000236511, -0.08907479047775269, 0.2868598401546478, 0.48421159386634827, -0.2013951539993286, -0.41680625081062317, 1.1604372262954712, 0.018986478447914124, 0.12286738306283951, 0.25918200612068176, 0.2267104834318161, -0.11409018188714981, -0.48120784759521484, -0.12515537440776825, 0.09493833780288696, -0.5159602761268616, -0.07777730375528336, -0.7938475608825684, -0.20566631853580475, -0.5889697670936584, -0.4083482325077057, -0.2505359649658203, -0.17479325830936432, -0.0019564467947930098, 0.055211424827575684, 0.15368767082691193, 0.34944823384284973, -0.633643627166748, 0.38737669587135315, -0.2060936838388443, 0.8683393597602844, 0.5586915612220764, 0.45732465386390686, -0.07402842491865158, -0.8671173453330994, -0.10792970657348633, 0.12486320734024048, -0.18833495676517487, -0.5778867602348328, 0.2233210951089859, 0.13177208602428436, 0.592887818813324, 0.5613165497779846, 0.13099612295627594, 0.32593971490859985, -0.3790811598300934, 0.27989697456359863, 0.35643270611763, -0.7749838829040527, 0.5899413228034973, -0.27574893832206726, -0.048797357827425, 0.4837646484375, 0.6451849937438965, -0.653733491897583, -0.5465337634086609, -0.3025181293487549, -0.5338034629821777, 0.5050435662269592, 0.07215456664562225, 0.10627061128616333, -0.14306123554706573, 0.11839333921670914, -0.06441616266965866, 0.1626676321029663, -0.7797622084617615, -0.3752516806125641, -0.4560069739818573, -0.2896325886249542, 0.21484972536563873, -0.1496879756450653, -0.09886416047811508, -0.2749878466129303, 0.5521802306175232, 0.12833841145038605, 0.19290785491466522, 0.06415078788995743, -0.14980711042881012, -0.2526639997959137, 0.38028907775878906, 0.14702850580215454, 0.31519266963005066, -0.37718963623046875, 0.0800800547003746, -0.2611100375652313, -0.7314625382423401, 0.379535049200058, 0.32184210419654846, -0.38898542523384094, 0.014204464852809906, -0.16345886886119843, 0.5620005130767822, -0.12483680248260498, -0.4999314546585083, 0.7649666666984558, -0.08049150556325912, -0.19254828989505768, 0.03470078110694885, 0.16453875601291656, -0.2580759525299072, 0.28368663787841797, 0.43000170588493347, 0.23299019038677216, 0.46732959151268005, -0.19528348743915558, 0.6520757079124451, 0.4543265402317047, -0.8472381234169006, -0.15450723469257355, 0.8294048309326172, 0.2978520095348358, -0.4887951910495758, 0.18736128509044647, -0.5149226784706116, -0.578906238079071, 0.44310852885246277, 0.43117550015449524, 0.9290145039558411, -0.47257769107818604, 0.5621844530105591, 0.17141854763031006, 0.27159884572029114, 0.2425748109817505, 0.03166673332452774, -0.047329869121313095, -1.07354736328125, -0.320069283246994, -0.9236704707145691, -0.3411937654018402, 0.20458631217479706, -0.6634951233863831, -0.052478253841400146, -0.9357495307922363, -0.3421419560909271, 0.09341114014387131, -0.12713444232940674, -0.6459162831306458, 0.4349520206451416, 0.27481839060783386, 0.39053618907928467, -0.7000994682312012, 0.45101991295814514, 0.42925867438316345, -0.0985342487692833, -0.5165433287620544, 0.1963176280260086, 0.28663185238838196, -0.7099407315254211, 0.5527006983757019, 0.20051467418670654, -0.43173348903656006, 0.15237177908420563, -0.6163941025733948, -0.4768107235431671, 0.5131329894065857, 0.46719804406166077, -0.5331672430038452, 0.005617524031549692, 0.11490204930305481, 0.28664079308509827, -0.22232306003570557, 0.048581358045339584, 0.29403093457221985, 0.4833155572414398, 0.07935983687639236, -0.5445544123649597, 0.1477968692779541, -0.15896180272102356, -0.09990469366312027, 0.05707293748855591, -0.6372225880622864, 0.8085690140724182, -0.10320239514112473, -0.10219359397888184, -0.5158183574676514, 0.6624491810798645, 0.2572224736213684, 0.48977234959602356, 0.8952190279960632, 0.8441627025604248, 0.7808379530906677, 0.04001498967409134, 0.8929001688957214, 0.2243901491165161, 0.052445441484451294, 1.0636907815933228, -0.13881422579288483, 0.5494170784950256, 0.15173663198947906, -0.0011308345710858703, 0.35159793496131897, 0.22269998490810394, -0.14842955768108368, 0.5374069809913635, 0.40296033024787903, -0.49285414814949036, -0.33673176169395447, -0.5268877148628235, -0.3282541334629059, 0.41641148924827576, 0.17937947809696198, -0.14646579325199127, -0.32510778307914734, 0.27633020281791687, 0.2780229151248932, 0.34168192744255066, -0.5233891606330872, 0.38532555103302, -0.13530738651752472, -0.3546265661716461, 0.310987263917923, 0.23414011299610138, 1.3586583137512207, -0.6717658638954163, 0.07840929180383682, -0.2796899080276489, 0.27139177918434143, -0.2806161344051361, -0.42291489243507385, 0.4266239404678345, 0.21475404500961304, -0.35286036133766174, -0.018395451828837395, 0.844470202922821, -0.4245600402355194, -0.28755608201026917, 0.710748016834259, 0.2881864011287689, -0.018427876755595207, -0.6092227101325989, -0.9794144034385681, 0.17436766624450684, 0.1514974981546402, -0.010663504712283611, 0.41244176030158997, 0.10743208974599838, 0.07125797867774963, 0.5141704082489014, 0.7275554537773132, 0.2795940339565277, 0.10107014328241348, 0.19745288789272308, 0.7549384236335754, -0.5916568636894226, -0.5774663686752319, -0.5557422637939453, 0.21948577463626862, -0.22340770065784454, -0.45552027225494385, 0.5231820344924927, 0.40094664692878723, 0.9586240649223328, 0.2637362480163574, 0.6902070641517639, -0.05852106586098671, 0.8374233245849609, -0.0384364128112793, 0.9198145270347595, -0.6180675029754639, -0.16125771403312683, -0.5591364502906799, -0.8533258438110352, -0.4636588394641876, 0.4619565010070801, -0.18479444086551666, 0.1738160103559494, 0.26521992683410645, 0.9102862477302551, -0.15193305909633636, -0.24800878763198853, 0.4903620779514313, 0.05854320526123047, 0.6877087950706482, 0.3811834156513214, 0.44459637999534607, -0.271721750497818, 0.9816829562187195, -0.19817645847797394, -0.3789580166339874, -0.08318188041448593, -0.5513247847557068, -0.5607388615608215, -0.29556989669799805, -0.47551465034484863, -0.4011557996273041, 0.47175776958465576, 0.6193075776100159, 0.7724060416221619, -0.9322261214256287, -0.03956960141658783, 0.17777693271636963, 0.45956918597221375, -0.040452416986227036, -0.3584669530391693, 0.24707476794719696, -0.08283952623605728, -0.5710498690605164, 0.13790510594844818, 0.2716158926486969, -0.20599126815795898, 0.16365750133991241, -0.39068230986595154, -0.3398147523403168, 0.1468893140554428, 0.4618096351623535, 0.4763481616973877, -0.40287330746650696, -0.3801092207431793, -0.394540399312973, -0.0758066475391388, -0.06272637099027634, 0.6444092988967896, -0.5661396384239197, 0.22160445153713226, 0.12186697870492935, 0.8755961060523987, 0.31969261169433594, -0.11072245985269547, 0.07925911992788315, -0.7396144866943359, 0.24185526371002197, 0.3696150779724121, 0.15895049273967743, 0.3716653883457184, -0.37780848145484924, 0.3028416037559509, 0.6480287909507751, -0.3569693863391876, -0.8313464522361755, 0.34299448132514954, -0.7848171591758728, -0.2949872314929962, 0.9717058539390564, -0.08358059078454971, 0.00239722547121346, -0.4241713285446167, 0.07436781376600266, 0.43714264035224915, -0.6548919677734375, 0.6128389835357666, 0.5531083941459656, 0.265789657831192, 0.07312699407339096, -0.15480543673038483, 0.6193155646324158, 0.4927431643009186, -0.7350553870201111, -0.06242312490940094, 0.7380325198173523, 0.29722025990486145, -0.06654179096221924, 0.9457835555076599, -0.19162237644195557, 0.4248327910900116, -0.21464522182941437, -0.05117267370223999, -0.01136384904384613, -0.37907353043556213, -0.22429583966732025, 0.45509466528892517, -0.3748299181461334, -0.16950707137584686 ]
http://arxiv.org/abs/2406.17790v1
http://arxiv.org/pdf/2406.17790v1
Mashee at SemEval-2024 Task 8: The Impact of Samples Quality on the Performance of In-Context Learning for Machine Text Classification
2024-05-28T12:47:43
2024-05-28T12:47:43
Areeg Fahad Rasheed, M. Zarkoosh
cs.CL
cs.CL
Within few-shot learning, in-context learning (ICL) has become a potential method for leveraging contextual information to improve model performance on small amounts of data or in resource-constrained environments where training models on large datasets is prohibitive. However, the quality of the selected sample in a few shots severely limits the usefulness of ICL. The primary goal of this paper is to enhance the performance of evaluation metrics for in-context learning by selecting high-quality samples in few-shot learning scenarios. We employ the chi-square test to identify high-quality samples and compare the results with those obtained using low-quality samples. Our findings demonstrate that utilizing high-quality samples leads to improved performance with respect to all evaluated metrics.
[ -0.36023569107055664, -0.5705936551094055, 0.3550223708152771, -0.07517554610967636, -0.21473297476768494, 0.10617581009864807, -0.001675588428042829, -0.7253164649009705, -0.4563916325569153, 0.15885496139526367, -0.19813378155231476, -0.5152800679206848, -0.5842074155807495, 0.28887611627578735, -0.3030022382736206, 1.1858136653900146, 0.07874911278486252, 0.3728521764278412, -0.3780617415904999, -0.306942343711853, -0.38970014452934265, -0.46725890040397644, -0.4090918004512787, -0.38505277037620544, 0.1903119534254074, 0.7519441246986389, 0.24590842425823212, 0.2595587968826294, 0.5951284170150757, 0.22656357288360596, 0.0427897609770298, 0.16020646691322327, -0.6845462918281555, 0.06676546484231949, -0.0056742290034890175, -0.5732337236404419, -0.02281884290277958, 0.48965150117874146, 0.863074779510498, 0.5665638446807861, 0.4493156671524048, 0.31989264488220215, 0.8415845036506653, 0.3565889894962311, -0.8342437744140625, -0.1619497537612915, -0.535107433795929, 0.18853314220905304, -0.24929234385490417, -0.3731296956539154, -0.4777069091796875, -0.42713770270347595, 0.291847288608551, -0.3691306412220001, 0.27098292112350464, 0.07518775761127472, 0.9398056268692017, 0.2033969908952713, -0.3516409397125244, -0.24742244184017181, -0.4844125211238861, 0.9886027574539185, -0.6062471270561218, 0.2796843647956848, 0.8332893252372742, 0.5908289551734924, -0.10549494624137878, -0.5472181439399719, -0.32729625701904297, 0.04660224914550781, -0.15159785747528076, 0.22356516122817993, 0.21001364290714264, -0.1489401012659073, 0.26111501455307007, -0.04732751473784447, -0.28345030546188354, 0.08574678003787994, -0.3773725628852844, -0.13152147829532623, 0.600226879119873, 0.2588823139667511, -0.06796355545520782, -0.2300964742898941, -0.3442312777042389, -0.07637648284435272, -0.5938704013824463, 0.5911586284637451, 0.1865948587656021, 0.4115280508995056, 0.029207667335867882, 0.4099428057670593, -0.14408515393733978, 0.5480107665061951, 0.02287832461297512, -0.6740623116493225, 0.24846406280994415, -0.4070240259170532, -0.39667198061943054, 0.09775363653898239, 0.5427589416503906, 0.09882518649101257, -0.39597880840301514, 0.3006259799003601, -0.29186874628067017, -0.29978129267692566, 0.0981047973036766, -1.150954246520996, -0.055810149759054184, -0.059823159128427505, -0.7466432452201843, -0.4114677309989929, 0.2882175147533417, -0.8657215237617493, -0.32444053888320923, -0.3357658088207245, 0.7788853049278259, -0.6582428216934204, 0.46571218967437744, -0.4098277688026428, -0.2436707615852356, 0.03146221116185188, 0.6765418648719788, -0.5058150887489319, 0.2069709748029709, 0.44765332341194153, 0.8358624577522278, -0.1864931285381317, -0.3815630078315735, -0.8748849630355835, -0.2621181309223175, -0.43035343289375305, 0.9341990947723389, -0.6878109574317932, -0.4530315399169922, -0.1677425652742386, -0.19151811301708221, 0.11570098251104355, -0.7917647957801819, 0.5060753226280212, -0.2732516825199127, 0.2268436700105667, -0.37211889028549194, -0.6757083535194397, -0.294376403093338, 0.32776328921318054, -0.40216755867004395, 1.264732837677002, 0.5195362567901611, -0.6774208545684814, 0.8887024521827698, -0.2825956642627716, -0.5205267667770386, 0.24352778494358063, -0.4563860595226288, -0.6218163371086121, 0.0652693584561348, 0.04970531910657883, 0.8579926490783691, -0.14458730816841125, -0.35089442133903503, -0.3685491979122162, -0.8493627309799194, 0.36010658740997314, -0.5041616559028625, 0.749406635761261, 0.2464759200811386, -0.5243738293647766, -0.21304751932621002, -0.886883556842804, 0.142220139503479, -0.3245435655117035, -0.7676348090171814, -0.4653991758823395, -0.26222681999206543, 0.247309148311615, 0.3877947926521301, -0.4189418852329254, -0.49321866035461426, -0.08650710433721542, -0.40656083822250366, 0.02514871396124363, 0.5675791501998901, 0.1860167384147644, 0.6171731352806091, -0.44585105776786804, 0.5710095763206482, 0.18138761818408966, 0.00221911258995533, -0.24549412727355957, -0.22989676892757416, -0.4926444888114929, -0.553838312625885, 0.473927766084671, 0.32785317301750183, -0.6834812760353088, 0.3568333387374878, 0.05038006603717804, -0.6005252599716187, -0.5287799835205078, 0.3364991545677185, 0.4474698007106781, 0.6146243810653687, 0.3822494447231293, -0.29755210876464844, -0.32485461235046387, -0.544359028339386, -0.18310235440731049, 0.05903523042798042, -0.062009330838918686, 0.4809204638004303, 0.7261254191398621, -0.03376968204975128, 1.2474088668823242, -0.11078905314207077, -0.3347676992416382, -0.34163525700569153, 0.19142885506153107, 0.03935912996530533, 0.41870319843292236, 0.7398240566253662, -0.4416021704673767, -0.6949961185455322, -0.17350709438323975, -0.6430659294128418, -0.03663136437535286, -0.10178287327289581, -0.20381176471710205, 0.17902803421020508, 0.4483952224254608, 0.013167213648557663, 0.7385088801383972, 0.3397703766822815, -0.28898167610168457, 0.5364740490913391, 0.1334889680147171, 0.5237868428230286, -0.9038316011428833, -0.08016125112771988, 0.21712014079093933, -0.39155900478363037, -0.26169389486312866, -0.27379363775253296, 0.3365960419178009, -0.17607738077640533, -0.6218395233154297, 0.5532429218292236, -0.05015728250145912, -0.1498313546180725, -0.4461928606033325, 0.010192482732236385, 0.21734727919101715, 0.07097683101892471, -0.23439541459083557, 0.8906527161598206, 0.22061486542224884, -0.8434590697288513, -0.3014206886291504, 0.2774409055709839, -0.7372273802757263, 0.9000841975212097, -0.29209843277931213, -0.10372219234704971, -0.22242800891399384, 0.4911210238933563, -0.8817242383956909, -0.28972306847572327, 0.029874471947550774, -0.5612459182739258, 0.3249835968017578, -0.009484326466917992, -0.33975541591644287, 0.14308874309062958, -0.3884584903717041, 0.38093477487564087, 0.3549804985523224, -0.7932366728782654, 0.10488827526569366, 0.24340540170669556, 0.2564501464366913, -0.5967992544174194, -0.7945234775543213, -0.3787454068660736, -0.3384051024913788, 0.01645379699766636, 0.2937275767326355, -0.093150794506073, -0.13438154757022858, -0.09522024542093277, -0.06965120136737823, -0.11114383488893509, 0.21500612795352936, 0.22005192935466766, 0.07987233996391296, -0.15822435915470123, 0.30653950572013855, 0.22953206300735474, -0.08839551359415054, -0.2720913589000702, -0.2047785371541977, 0.27588003873825073, 0.016779424622654915, -0.25657275319099426, -0.6659443378448486, 0.26282820105552673, 0.31181812286376953, -0.04082513228058815, 0.618211030960083, 0.6404450535774231, -0.5241296887397766, -0.5635426044464111, -0.18811744451522827, -0.25792062282562256, -0.4301033616065979, 0.43526846170425415, -0.5290514826774597, -0.9039824604988098, 0.024520497769117355, -0.10808689892292023, -0.07643671333789825, 0.4584067165851593, 0.30940356850624084, -0.7267327308654785, 0.9160938858985901, 0.6796891689300537, -0.35098814964294434, 0.510269820690155, -0.4810901880264282, 0.15326829254627228, -0.7263182997703552, -0.1739647090435028, -0.8972348570823669, -0.47861960530281067, -0.36581525206565857, -0.3212451934814453, 0.6526234745979309, 0.3103294372558594, -0.36107829213142395, 0.32148197293281555, -0.38580507040023804, 0.6804503798484802, 0.7136565446853638, 0.43961140513420105, 0.26529955863952637, -0.014246607199311256, -0.16738715767860413, -0.22353492677211761, -0.7289432287216187, -0.7701224088668823, 0.9896103143692017, 0.3923717737197876, 0.6585691571235657, -0.12258382141590118, 0.7592262625694275, 0.15231359004974365, 0.21922792494297028, -0.8356121182441711, 0.26583918929100037, 0.008229300379753113, -0.6364757418632507, -0.38886758685112, -0.3823021948337555, -0.8940309286117554, 0.295472651720047, -0.49892306327819824, -0.6030035018920898, 0.29531556367874146, -0.008380175568163395, -0.6985090970993042, 0.05461825802922249, -0.37853285670280457, 0.7162240743637085, -0.2581389844417572, -0.3454030156135559, -0.3115294277667999, -0.47436514496803284, 0.16887503862380981, -0.21020637452602386, 0.07465000450611115, -0.0956864207983017, -0.002759220777079463, 0.6339364051818848, -0.18683834373950958, 0.8243534564971924, -0.06422828137874603, 0.35974571108818054, 0.4407340884208679, 0.0016942326910793781, 0.2501804232597351, 0.19499462842941284, -0.2834526598453522, 0.17664965987205505, 0.2590336501598358, -0.5260738134384155, -0.6476736664772034, 0.3600744307041168, -0.8165850639343262, 0.07354158908128738, -0.5453879833221436, -0.1783282458782196, -0.3680626451969147, 0.007601405493915081, 0.9184034466743469, 0.7122615575790405, -0.11551990360021591, 0.6171282529830933, 0.4423235058784485, -0.5159025192260742, 0.5891847610473633, 0.10489947348833084, 0.1994612067937851, -0.40359848737716675, 0.7206609845161438, 0.3812023997306824, 0.21452607214450836, 0.4080272316932678, 0.24819087982177734, -0.13988488912582397, -0.5694156289100647, -0.30601736903190613, -0.30407455563545227, -0.942544162273407, -0.7386109232902527, -0.5038498640060425, -0.3452414274215698, -0.26677000522613525, -0.3623589277267456, -0.24672506749629974, -0.0836828276515007, -0.5380986928939819, 0.02988227643072605, -0.17098897695541382, 0.5394394993782043, 0.43937939405441284, 0.4838687777519226, -0.9807958006858826, -0.13311666250228882, 0.09243685007095337, 0.22631987929344177, -0.023605789989233017, -0.7465788125991821, -0.7197040319442749, -0.3337726593017578, -0.6221033334732056, -0.677282989025116, 0.3122040927410126, 0.4109427332878113, 0.7600314021110535, 0.5927588939666748, 0.05159370228648186, 0.713261604309082, -0.3276219666004181, 0.7288914322853088, 0.020444605499505997, -0.8639219403266907, 0.7154743671417236, -0.08078448474407196, 0.4742562472820282, 1.292794108390808, 0.6693055629730225, -0.22828130424022675, -0.23822838068008423, -0.5931397080421448, -0.35692834854125977, 0.7004573345184326, 0.1817350685596466, -0.002921378007158637, 0.15801581740379333, 0.3481729030609131, 0.4783586263656616, 0.08224166929721832, -0.5458298921585083, 0.07542098313570023, -0.03190551698207855, -0.3122049570083618, -0.16469256579875946, -0.2119859904050827, 0.1371172070503235, -0.6357770562171936, 0.7451175451278687, -0.3099948763847351, 0.15288399159908295, 0.28972628712654114, -0.3239489495754242, -0.07463924586772919, 0.20703817903995514, 0.3365294933319092, 0.6207858920097351, -0.05396778881549835, 0.12671232223510742, 0.5193033218383789, -0.4251490533351898, 0.17488780617713928, -0.3081655502319336, -0.2953800559043884, 0.03942161798477173, 0.5937449336051941, 0.5779575109481812, 0.29550379514694214, -0.6916044354438782, 0.6698839068412781, 0.06426592171192169, -0.009168069809675217, 0.00024844505242072046, 0.19266806542873383, -0.7257837057113647, 0.44230976700782776, 0.4617999792098999, 0.25537869334220886, 0.47738808393478394, -0.7602018713951111, 0.4000070095062256, 0.3535505533218384, -0.6708683967590332, -0.03535923361778259, 0.22936591506004333, 0.12463720142841339, -0.22002463042736053, 0.5932970643043518, -0.3322141766548157, -0.6021164059638977, 0.46626928448677063, 0.6207879185676575, 0.7231458425521851, 0.007064767647534609, 0.12677504122257233, 0.7874270081520081, 0.14756013453006744, 0.05139763280749321, -0.02584713324904442, -0.2186264842748642, -0.6336126327514648, -0.1834278404712677, -0.5953616499900818, -0.3246418237686157, 0.1654072403907776, -0.31679874658584595, 0.6586023569107056, -0.5253296494483948, -0.1650981605052948, -0.37290340662002563, 0.35961610078811646, -0.7508951425552368, 0.43664607405662537, -0.13834872841835022, 0.8217923641204834, -0.7565368413925171, 0.885341227054596, 0.521553635597229, -0.34894615411758423, -0.6030226945877075, 0.2984893321990967, 0.3013922870159149, -0.055738311260938644, 0.6844465136528015, 0.4638627767562866, -0.1997758448123932, -0.15982244908809662, -0.6995297074317932, -0.6889323592185974, 1.1840808391571045, 0.11161398142576218, -0.3870513141155243, 0.5181089639663696, 0.013078145682811737, 0.4096181094646454, -0.37951233983039856, 0.5415292978286743, 0.6287636160850525, 0.15079838037490845, -0.11523901671171188, -0.6960728168487549, -0.368662029504776, -0.13566239178180695, -0.035812072455883026, -0.09487241506576538, -0.49798688292503357, 0.37685006856918335, 0.008823766373097897, -0.21395224332809448, -0.08424510806798935, 0.7516131401062012, 0.48072177171707153, 0.789774477481842, 0.447186678647995, 0.2752275764942169, 0.8984192609786987, 0.013906343840062618, 1.0387576818466187, 0.13045725226402283, 0.3177335262298584, 1.1069835424423218, -0.011179843917489052, 1.1778857707977295, 0.25064387917518616, -0.24691137671470642, 0.18620489537715912, 1.073773741722107, 0.032075319439172745, 0.5120187401771545, 0.017455745488405228, -0.3003990948200226, -0.03807436302304268, -0.12065087258815765, -0.14627739787101746, 0.7823737859725952, 0.18527889251708984, -0.22880081832408905, -0.18153798580169678, 0.41841521859169006, -0.20087330043315887, 0.22648029029369354, -0.15418313443660736, 0.6706321239471436, 0.12630826234817505, -0.36486953496932983, 0.20643015205860138, -0.04116038605570793, 0.9585010409355164, -0.20040903985500336, -0.15319094061851501, -0.1933670938014984, 0.19597464799880981, -0.40369176864624023, -0.5265675783157349, 0.1918729990720749, -0.029369942843914032, -0.1524859517812729, 0.05415608733892441, 0.7259779572486877, -0.27360299229621887, -0.49688616394996643, 0.07085122168064117, 0.2767167389392853, 0.29928573966026306, -0.10939396917819977, -0.6101719737052917, -0.1689491868019104, -0.3938201069831848, -0.11116175353527069, 0.668685257434845, 0.5146477818489075, 0.05741462856531143, 0.31131646037101746, 0.4293837547302246, -0.0956307202577591, -0.13989637792110443, -0.20143721997737885, 0.4164195656776428, -0.5725181102752686, -0.5285544395446777, -0.915790855884552, 0.43325233459472656, -0.15522614121437073, -0.6911203861236572, 0.8341391086578369, 0.9763177633285522, 1.2546827793121338, 0.0745772272348404, 0.9207845330238342, 0.1494186520576477, 0.6556318402290344, -0.5296544432640076, 0.8421579599380493, -0.6085501909255981, 0.19494576752185822, -0.5965057611465454, -0.8584728240966797, -0.2903763949871063, 0.881708025932312, -0.10083746165037155, 0.0514601431787014, 0.9730799198150635, 0.4855124056339264, -0.1363172084093094, 0.0360446535050869, 0.6242807507514954, -0.3291075527667999, 0.20003642141819, 0.39191681146621704, 0.9846384525299072, -0.75504469871521, 0.38227346539497375, -0.5811614990234375, -0.24901120364665985, -0.32980430126190186, -0.6805047392845154, -0.9798898100852966, -0.9207338094711304, -0.1403343677520752, -0.47124072909355164, -0.2394166737794876, 1.3653064966201782, 0.9954636693000793, -0.793709933757782, -0.24817948043346405, 0.32028982043266296, -0.11315298080444336, -0.20154164731502533, -0.26598885655403137, 0.3434695601463318, -0.764883279800415, -0.909954309463501, 0.49978572130203247, 0.3514012396335602, 0.1687086522579193, 0.09121441096067429, -0.16799159348011017, -0.04866601526737213, -0.16341401636600494, 1.0224260091781616, -0.09347259253263474, -0.28482282161712646, -0.21671062707901, -0.16537371277809143, -0.41358473896980286, 0.29035741090774536, 0.8140236735343933, -0.8485999703407288, 0.3007597327232361, 0.7047562003135681, 1.201054573059082, 0.520990252494812, 0.157136470079422, 0.32037362456321716, -0.7793039083480835, 0.052025824785232544, 0.5095279812812805, 0.14700141549110413, 0.07171961665153503, -0.4717358648777008, 0.5507054924964905, 0.15805035829544067, -0.7360551953315735, -0.6977221369743347, -0.1505710631608963, -0.6395803689956665, -0.5098103880882263, 1.120313048362732, -0.1425991654396057, -0.0638287290930748, -0.2005346715450287, -0.2900220453739166, 0.1694037765264511, -0.26713716983795166, 0.8087489604949951, 0.7907994389533997, -0.456012099981308, -0.2376958727836609, -0.8041144013404846, 0.7094290852546692, 0.28047409653663635, -1.0986957550048828, -0.6155582666397095, 0.4946053922176361, 0.12248246371746063, -0.307110071182251, 0.5745676755905151, -0.11006239801645279, 0.23781509697437286, -0.18266576528549194, -0.2830488979816437, 0.30117008090019226, -0.6709582209587097, -0.6265786290168762, 0.39846596121788025, 0.062233082950115204, -0.31475523114204407 ]
http://arxiv.org/abs/2405.18115v1
http://arxiv.org/pdf/2405.18115v1
The Knesset Corpus: An Annotated Corpus of Hebrew Parliamentary Proceedings
2024-05-28T12:23:39
2024-05-28T12:23:39
Gili Goldin, Nick Howell, Noam Ordan, Ella Rabinovich, Shuly Wintner
cs.CL
cs.CL, 68T50, I.2.7
We present the Knesset Corpus, a corpus of Hebrew parliamentary proceedings containing over 30 million sentences (over 384 million tokens) from all the (plenary and committee) protocols held in the Israeli parliament between 1998 and 2022. Sentences are annotated with morpho-syntactic information and are associated with detailed meta-information reflecting demographic and political properties of the speakers, based on a large database of parliament members and factions that we compiled. We discuss the structure and composition of the corpus and the various processing steps we applied to it. To demonstrate the utility of this novel dataset we present two use cases. We show that the corpus can be used to examine historical developments in the style of political discussions by showing a reduction in lexical richness in the proceedings over time. We also investigate some differences between the styles of men and women speakers. These use cases exemplify the potential of the corpus to shed light on important trends in the Israeli society, supporting research in linguistics, political science, communication, law, etc.
[ -0.5969237685203552, -0.38469070196151733, 0.18159189820289612, 0.05591144040226936, -0.4545908570289612, -0.272824227809906, -0.19011996686458588, -0.030614245682954788, 0.6137979626655579, 0.7261339426040649, 0.01186895091086626, -0.47147008776664734, -0.5770143270492554, 0.08315402269363403, -0.7484769225120544, 0.5869401693344116, 0.5770096778869629, 0.1653289794921875, 0.12487690895795822, -0.21513602137565613, -0.46071845293045044, -0.3911760151386261, -0.1936868578195572, -0.4279051423072815, 0.38767799735069275, 0.4656100571155548, 0.8997278213500977, 0.746355414390564, 0.15516583621501923, 0.3819276690483093, -0.24915681779384613, 0.10450970381498337, -0.11658567935228348, 0.15810219943523407, -0.15098336338996887, -0.4893791377544403, -0.42975401878356934, -0.08229192346334457, 0.9166035652160645, 0.7198176980018616, -0.062028028070926666, 0.2592761218547821, -0.39130479097366333, 0.9209728240966797, -0.654975950717926, 0.4655710756778717, -0.5302466750144958, 0.18816494941711426, -0.9045618176460266, -0.5635173320770264, -0.6809219717979431, -0.07581289857625961, -0.053546514362096786, -0.18665768206119537, -0.16693879663944244, 0.2167866975069046, 0.4239940345287323, -0.07919619977474213, -0.310190349817276, -0.14779189229011536, -0.4734995663166046, 0.41732144355773926, -0.5568080544471741, 0.25327879190444946, 0.7444618344306946, 0.16585946083068848, -0.2775286138057709, -0.8335742950439453, -0.25898653268814087, -0.15227936208248138, -0.18711796402931213, 0.07875094562768936, -0.18949341773986816, -0.16513054072856903, -0.06004175543785095, 0.1256415694952011, -0.5337526202201843, 0.01424128282815218, -0.7338501811027527, -0.4259333908557892, 0.26596012711524963, 0.10434580594301224, 0.3829317092895508, -0.7187222838401794, -0.02894452214241028, -0.16208600997924805, -0.716513991355896, -0.12871119379997253, 0.8415419459342957, 0.2602680027484894, -0.02898268960416317, 0.8713542222976685, -0.23224961757659912, 0.6187344193458557, -0.35890308022499084, 0.3235379159450531, 0.16124065220355988, -0.5257640480995178, 0.07944165170192719, 0.270211398601532, 0.8151834607124329, 0.24217011034488678, 0.3183533251285553, -0.06468205153942108, 0.28068822622299194, -0.042502861469984055, 0.33675137162208557, -0.8442431688308716, -0.30476024746894836, 0.05974506214261055, -0.7613230347633362, -0.09645974636077881, 0.24446462094783783, -1.037148118019104, -0.3124874234199524, -0.3073700964450836, -0.35473769903182983, -0.6161708235740662, -0.3235219120979309, 0.09202796965837479, -0.48935025930404663, 0.05229906365275383, 0.13852062821388245, -0.8744271397590637, 0.4709461033344269, 0.8515741229057312, 0.6647709608078003, 0.23259127140045166, -0.08122575283050537, -0.612955629825592, -0.0767330452799797, -0.4828958511352539, 0.6372696757316589, -0.9481903314590454, -0.49055957794189453, 0.303803026676178, -0.3103213310241699, 0.20743320882320404, -0.5765787959098816, 0.46406856179237366, -0.7258428931236267, -0.057397663593292236, -0.07697222381830215, -0.726709246635437, 0.18013359606266022, -0.14554688334465027, -0.8430082201957703, 0.6619698405265808, -0.0789521262049675, -0.6817821264266968, 0.16315890848636627, -0.9455007314682007, -0.3997345566749573, 0.23871049284934998, -0.52833491563797, -0.2112080603837967, 0.047760508954524994, -0.11999356746673584, 0.23758681118488312, 0.12797169387340546, 0.5659429430961609, 0.2406199723482132, -0.373929888010025, 0.6037925481796265, -0.11013124883174896, 0.8116969466209412, 0.2632138133049011, -0.19665996730327606, 0.36898404359817505, -0.956459641456604, -0.27907970547676086, -0.2750299870967865, -0.36467647552490234, -0.10443606227636337, 0.2070130556821823, 0.2948477864265442, -0.13351936638355255, 0.2110411822795868, -0.6247809529304504, -0.04589862376451492, -0.640846312046051, 0.8729143738746643, 0.5150793790817261, -0.18098066747188568, 0.49705740809440613, -0.35009509325027466, 0.21329672634601593, -0.0015989196253940463, 0.00818719994276762, -0.385337769985199, -0.7944469451904297, -0.3974112868309021, -0.0031081608030945063, 0.9146956205368042, 0.39857810735702515, -0.07401234656572342, 0.4625096321105957, -0.10114773362874985, -0.4607759118080139, -0.2979932427406311, -0.3130233585834503, 0.23635677993297577, 0.13619069755077362, 0.15950633585453033, -0.30753520131111145, -0.8601608872413635, -1.0979002714157104, 0.07242674380540848, -0.7065485119819641, 0.24613548815250397, 0.2742697596549988, 0.5665423274040222, 0.3822130262851715, 0.9322107434272766, 0.07310330122709274, 0.12059540301561356, -0.023954417556524277, 0.5613032579421997, -0.20848201215267181, 0.3223154842853546, 0.3722670376300812, -1.0118341445922852, -0.16044041514396667, 0.06333167850971222, -0.24927964806556702, -0.30365708470344543, 0.11065319925546646, -0.3566909730434418, 0.056071557104587555, 0.6138597726821899, -0.427672415971756, 0.6208210587501526, 0.4422183632850647, -0.7668183445930481, 0.3920014798641205, 0.20096607506275177, 0.292654424905777, -0.8876978754997253, 0.08876322209835052, -0.637599527835846, -0.4608769714832306, -0.4214332103729248, -0.18605837225914001, 0.158086895942688, -0.2280655801296234, -0.7069148421287537, 0.4799033999443054, -0.1766187846660614, -0.23364436626434326, -0.2743624448776245, 0.2730284035205841, -0.26770737767219543, 0.1811881810426712, -0.34161868691444397, 0.9467824697494507, 0.10714391618967056, -0.23560252785682678, 0.2990414500236511, 1.0095635652542114, -0.5455302000045776, 0.1400618553161621, -0.042395275086164474, 0.2834652364253998, -0.30957576632499695, 0.09047586470842361, -1.1734912395477295, -0.3106989860534668, 0.3156435787677765, -0.44285938143730164, 0.3152170777320862, -0.01635204441845417, -0.5734824538230896, 0.09405891597270966, -0.26731666922569275, 0.5046051740646362, 0.41921016573905945, 0.3112022876739502, 0.5101481676101685, 0.7625521421432495, -0.4934140741825104, -0.7463528513908386, -0.6706535220146179, 0.5327373743057251, -0.05636617913842201, -0.5385019183158875, 0.5251173377037048, 0.20436573028564453, -0.7259556651115417, 0.5594069957733154, 0.3069375157356262, 0.0952451080083847, -0.08600214868783951, 0.5984185934066772, 0.05332870036363602, -0.38043317198753357, 0.32141441106796265, -0.3125183880329132, -0.17961229383945465, -0.17422804236412048, 0.06032548472285271, 1.2810417413711548, -0.21276436746120453, -0.351304829120636, -0.7572931051254272, 0.6393756866455078, 0.5763029456138611, -0.2904961109161377, 0.8086436986923218, 0.15322467684745789, -0.16968335211277008, 0.13053230941295624, -0.5601757168769836, 0.06130591034889221, -0.3428381085395813, 0.40703991055488586, 0.1160944476723671, -0.8256076574325562, 0.6932591795921326, -0.15790286660194397, 0.1857655942440033, 0.7365671992301941, 0.8251011967658997, 0.17211772501468658, 0.2440093457698822, 0.1771102249622345, -0.27350711822509766, 0.5982142090797424, 0.3636048436164856, -0.06723122298717499, -0.5592721104621887, -0.23696763813495636, -0.8029757142066956, -0.6340707540512085, -0.5564408302307129, -0.32272759079933167, -0.01889529637992382, -0.43194133043289185, -0.1885686069726944, 0.29029446840286255, -0.07300975173711777, 0.2760551869869232, 0.8338832259178162, -0.18517954647541046, -0.07785362750291824, -0.3048705756664276, 0.13656233251094818, -0.07795669138431549, -0.3873073160648346, -0.7690587639808655, 1.1044400930404663, 0.03274144232273102, 0.08849973231554031, 0.25931960344314575, 0.6035908460617065, 0.7374143004417419, 0.19560134410858154, -0.4291038513183594, 0.8863732218742371, -0.28691551089286804, -0.6818934082984924, -0.3015146255493164, -0.3400023281574249, -1.1156628131866455, 0.2426445186138153, 0.1205502301454544, -0.5686584711074829, 0.10972684621810913, -0.21031156182289124, -0.5848592519760132, 0.21496964991092682, -0.30776429176330566, 0.7740379571914673, 0.20076261460781097, 0.06006899103522301, -0.39063534140586853, -0.8975306153297424, 0.14314106106758118, 0.30709487199783325, 0.19620183110237122, -0.35117626190185547, -0.07659999281167984, 1.2118943929672241, -0.37554019689559937, 0.939620316028595, 0.13273440301418304, 0.5299519300460815, 0.42187032103538513, -0.08400087803602219, 0.048493240028619766, -0.02137565240263939, -0.37172117829322815, -0.05220082774758339, 0.13359829783439636, -0.3405320346355438, -0.11941443383693695, 0.32001549005508423, -0.7433491349220276, -0.4887704849243164, -0.25756311416625977, -0.7772607207298279, 0.08626766502857208, 0.051287829875946045, -0.22064648568630219, 0.9364684224128723, -0.4559060037136078, 0.7876787781715393, 0.1126231998205185, -0.2225978523492813, 0.6858015656471252, 0.07363667339086533, -0.45518794655799866, -0.5840120315551758, 0.4641563594341278, 0.3398146629333496, -0.20363780856132507, 0.44935137033462524, 0.34093308448791504, -0.19225506484508514, -0.626875102519989, -0.4631638824939728, -0.009226852096617222, -0.7929466962814331, -0.07390192896127701, -0.43399882316589355, -0.2677105665206909, -0.38748738169670105, 0.1195957288146019, -0.3571704030036926, -0.8030427098274231, -0.183217853307724, 0.044852811843156815, 0.20221172273159027, 0.6346840858459473, 0.01727139763534069, 0.5330767631530762, -0.5609573721885681, 0.016131287440657616, -0.07332449406385422, 0.013148896396160126, -0.4614357352256775, -0.30295538902282715, 0.29140573740005493, -0.405078262090683, -0.18462629616260529, -1.2435399293899536, 0.33431413769721985, 0.3733235001564026, 0.22476103901863098, 0.22623245418071747, 0.026623785495758057, 0.5064570307731628, -0.9479645490646362, 1.1674448251724243, -0.08807504922151566, -0.7034221291542053, 0.5613032579421997, -0.46394261717796326, 0.1830778568983078, 0.5380995273590088, -0.11464671790599823, -0.5673643946647644, -0.5219873785972595, -0.7139186859130859, -1.0109244585037231, 0.5158511996269226, 0.37612077593803406, 0.5421224236488342, -0.35842251777648926, 0.5553157925605774, 0.41124051809310913, 0.4300115406513214, -0.149335116147995, -0.3867407441139221, -0.08696254342794418, -0.11801015585660934, 0.443909227848053, -0.6886586546897888, -0.38796672224998474, -0.197500541806221, 0.5966572761535645, 0.07379327714443207, 0.2901413142681122, 0.03448580577969551, -0.001167750800959766, -0.05150502547621727, 0.7033680081367493, 0.9011160731315613, 1.1078078746795654, -0.02725141867995262, 0.6041194200515747, -0.1117914468050003, -0.34332966804504395, -0.18177935481071472, -0.016664788126945496, -0.2716520428657532, 0.4010615944862366, 0.273263543844223, 0.6498209834098816, 0.5774345397949219, -0.7661216855049133, 0.5044810175895691, 0.0018663523951545358, -0.37460094690322876, -0.7851690053939819, -0.31021648645401, 0.5443455576896667, 0.5381954908370972, 0.19642730057239532, 0.22620020806789398, 0.12882468104362488, -0.9484925866127014, 0.7831910252571106, 0.1724315583705902, 0.04184878617525101, -0.2756481468677521, 0.5288513898849487, 0.06977291405200958, -0.670165479183197, 0.39969179034233093, -0.3000481128692627, -0.3396887183189392, 0.4392912685871124, 0.33181801438331604, 0.3620188534259796, -0.10450703650712967, 0.41260620951652527, 0.05457129701972008, -0.1049283891916275, 0.128522589802742, 0.30706867575645447, 0.01436945702880621, -0.4233093857765198, -0.5154117941856384, -0.8183776140213013, -0.5356076955795288, 0.2257693111896515, -0.4798879623413086, 0.014782354235649109, -0.5545803904533386, -0.5956047773361206, 0.49376195669174194, -0.006354725919663906, -0.41569069027900696, -0.6388893127441406, 0.5518463253974915, 0.9337324500083923, -0.6632539629936218, 0.5081265568733215, 0.3883059024810791, -0.17493267357349396, -0.1586378812789917, -0.46035298705101013, 0.12463366240262985, -0.8456675410270691, 0.9244497418403625, -0.1080239862203598, 0.035544849932193756, -0.22538426518440247, -0.1302790492773056, -0.43015995621681213, 0.5679749250411987, 0.42542558908462524, -0.5695337653160095, 0.19797158241271973, 0.4498126208782196, 0.14613917469978333, -0.14329738914966583, 0.05082162842154503, 0.45824623107910156, 0.7250381708145142, -0.11087871342897415, -0.9019028544425964, -0.18520590662956238, -0.5733462572097778, -0.3289833962917328, 0.5711880326271057, -0.6403483748435974, 0.9350329637527466, 0.8070624470710754, -0.15131941437721252, 0.49235090613365173, 0.9104025959968567, -0.13925260305404663, 0.12505808472633362, 0.33932942152023315, 0.370371550321579, 0.8385217785835266, -0.1966608613729477, 0.7672260403633118, -0.5489817261695862, -0.26126629114151, 0.7627485990524292, -0.3192545771598816, 1.0928397178649902, 0.5564078092575073, -0.19056200981140137, 0.38339757919311523, 0.3006126880645752, 0.12441016733646393, 0.3332923352718353, 0.5528383851051331, -0.3358749747276306, -0.2357911616563797, -0.4351324439048767, -0.2437286078929901, 0.723534107208252, 0.3226679265499115, -0.230331689119339, -0.4123535454273224, -0.10832536220550537, 0.1459048092365265, 0.3050374388694763, -0.31380361318588257, 0.51114422082901, 0.10542304813861847, -0.7160112261772156, -0.1972636729478836, -0.02483176253736019, 0.1664973944425583, -0.47561460733413696, -0.16069748997688293, 0.27152496576309204, 0.023509511724114418, -0.11217190325260162, -0.8533409237861633, 0.5251443386077881, 0.014331628568470478, 0.09912221878767014, -0.36953797936439514, 0.7282678484916687, -0.21387898921966553, -0.23024334013462067, -0.005744127091020346, 0.6918379068374634, 0.5343679785728455, 0.2062997668981552, -0.08077298849821091, 0.35944172739982605, -0.381618469953537, -0.4156745374202728, 0.39372387528419495, 0.45398879051208496, -0.12186247110366821, 0.11789596080780029, 0.3539517819881439, 0.2778993844985962, 0.3796277940273285, 0.3628814220428467, 0.7571114301681519, -0.7351338267326355, -0.4105663299560547, -1.3037911653518677, 0.4069330096244812, -0.32598820328712463, -0.5490642189979553, 0.35979196429252625, 0.6718364357948303, 0.5858176350593567, 0.251447468996048, 0.6104846596717834, -0.1519106924533844, 0.12970788776874542, -0.6576701998710632, 0.7237290143966675, -0.03319717198610306, -0.14167261123657227, 0.49779781699180603, -0.4743989408016205, -0.43263673782348633, 0.631109893321991, -0.2544347047805786, -0.24673767387866974, 0.504974365234375, 0.4810224175453186, 0.05468244478106499, 0.648009717464447, 0.348526269197464, 0.025615988299250603, -0.05040239542722702, 0.038662731647491455, 1.0466587543487549, 0.025774482637643814, 0.4603307247161865, -0.18532948195934296, 0.18745112419128418, -0.3629879355430603, -0.6700149774551392, -0.8370541334152222, -0.9324490427970886, -0.17557479441165924, -0.22181054949760437, 0.2502838969230652, 1.2588093280792236, 0.5163081884384155, -0.7680577039718628, -0.384917289018631, 0.07484688609838486, -0.4995286762714386, 0.15564605593681335, -0.10635089874267578, 0.5624815225601196, -0.4352913498878479, -0.5938567519187927, 0.5518273711204529, 0.42620140314102173, -0.4987483620643616, -0.09479192644357681, 0.2914125323295593, -0.3980565071105957, 0.06544000655412674, 0.3163506090641022, 0.16273090243339539, -0.9065346717834473, -0.6580677032470703, -0.2620180547237396, 0.012604320421814919, 0.41242149472236633, 0.9699028134346008, -0.2847064137458801, 0.2597539722919464, 0.7273970246315002, 0.7738397717475891, 0.56276935338974, -0.03696915879845619, 0.3701340854167938, -0.9284800887107849, 0.41091951727867126, 0.46825000643730164, 0.7740296125411987, 0.2737719416618347, 0.16180679202079773, 0.4742116928100586, 0.1502186506986618, -0.520156741142273, -0.727318286895752, 0.32077309489250183, -1.1702460050582886, -0.3420826494693756, 0.9950317740440369, -0.002905456116423011, -0.45854705572128296, -0.576171338558197, -0.49479326605796814, 0.5281767845153809, -0.5708027482032776, 0.6343967318534851, 1.1877778768539429, -0.0826745480298996, -0.23442332446575165, -1.2128565311431885, 0.29187673330307007, 0.6812504529953003, -0.443302184343338, 0.020670238882303238, 0.30994462966918945, -0.11288820952177048, 0.6116880178451538, 0.8974894285202026, -0.6238365173339844, 0.3015647232532501, 0.27866217494010925, -0.12679415941238403, -0.2116910219192505, -0.2664179503917694, 0.017699776217341423, 0.8639866709709167, -0.10025226324796677, -0.22094716131687164 ]
http://arxiv.org/abs/2405.18113v1
http://arxiv.org/pdf/2405.18113v1
Facilitating Multi-Role and Multi-Behavior Collaboration of Large Language Models for Online Job Seeking and Recruiting
2024-05-28T12:23:16
2024-05-28T12:23:16
Hongda Sun, Hongzhan Lin, Haiyu Yan, Chen Zhu, Yang Song, Xin Gao, Shuo Shang, Rui Yan
cs.CL
cs.CL, cs.AI
The emergence of online recruitment services has revolutionized the traditional landscape of job seeking and recruitment, necessitating the development of high-quality industrial applications to improve person-job fitting. Existing methods generally rely on modeling the latent semantics of resumes and job descriptions and learning a matching function between them. Inspired by the powerful role-playing capabilities of Large Language Models (LLMs), we propose to introduce a mock interview process between LLM-played interviewers and candidates. The mock interview conversations can provide additional evidence for candidate evaluation, thereby augmenting traditional person-job fitting based solely on resumes and job descriptions. However, characterizing these two roles in online recruitment still presents several challenges, such as developing the skills to raise interview questions, formulating appropriate answers, and evaluating two-sided fitness. To this end, we propose MockLLM, a novel applicable framework that divides the person-job matching process into two modules: mock interview generation and two-sided evaluation in handshake protocol, jointly enhancing their performance through collaborative behaviors between interviewers and candidates. We design a role-playing framework as a multi-role and multi-behavior paradigm to enable a single LLM agent to effectively behave with multiple functions for both parties. Moreover, we propose reflection memory generation and dynamic prompt modification techniques to refine the behaviors of both sides, enabling continuous optimization of the augmented additional evidence. Extensive experimental results show that MockLLM can achieve the best performance on person-job matching accompanied by high mock interview quality, envisioning its emerging application in real online recruitment in the future.
[ -0.4199228584766388, -0.6452597975730896, 0.7663289904594421, 0.2846255898475647, 0.07451720535755157, 0.14862380921840668, 0.022134220227599144, -0.7536713480949402, 0.5692940950393677, 0.4579581320285797, -0.7701495885848999, -0.0514829196035862, -0.05789215862751007, 0.029497873038053513, -0.021672965958714485, 0.6472371816635132, 0.31230899691581726, 0.2780560553073883, -0.5149211287498474, 0.06735661625862122, -0.3444802165031433, -0.6687261462211609, -0.8615769147872925, -0.2977944016456604, 0.46314284205436707, 0.257991224527359, 0.6526299715042114, 0.3331802785396576, 0.08102068305015564, 0.34739941358566284, 0.15930123627185822, 0.285595566034317, -0.5111181139945984, 0.3553749620914459, -0.0908193290233612, -0.5074887275695801, -0.8112680912017822, 0.35950207710266113, 0.3877160847187042, 0.4157830774784088, -0.7127286195755005, 0.05222403630614281, -0.2527346611022949, -0.0017000281950458884, -0.32223767042160034, 0.08822771161794662, -0.6055694818496704, -0.11906041204929352, -0.03034752979874611, -0.3965367376804352, -0.29438114166259766, -0.27559974789619446, 0.07450283318758011, -0.5506171584129333, 0.2901206612586975, 0.22189746797084808, 0.5539847016334534, -0.24566888809204102, -0.44204407930374146, -0.19296008348464966, -0.6172612905502319, 0.657701313495636, -0.8254681825637817, 0.46005868911743164, 0.6782668828964233, 0.46152248978614807, -0.38751381635665894, -0.38075941801071167, -0.6834214329719543, -0.16052553057670593, -0.06072140485048294, 0.24715574085712433, 0.7735846042633057, 0.39930883049964905, 0.06291574239730835, 0.39505982398986816, -0.6003889441490173, 0.22646206617355347, -0.33166441321372986, -0.030528713017702103, 0.6750697493553162, 0.03810853883624077, 0.40492868423461914, 0.37936532497406006, -0.3509603440761566, -0.395261287689209, -0.4099803566932678, 0.0204403605312109, 0.6817569732666016, 0.39988332986831665, -0.048159778118133545, 0.33463671803474426, 0.026556357741355896, 0.47964930534362793, -0.015634942799806595, -0.35116446018218994, -0.0994432121515274, -0.2628259062767029, 0.015141001902520657, 0.059648092836141586, 0.45916715264320374, 0.4065084159374237, -0.032219111919403076, -0.05016394332051277, -0.15444082021713257, 0.01144515909254551, 0.5284035205841064, -0.7330887913703918, 0.09182028472423553, 0.46139293909072876, -0.4501170516014099, -0.3720656931400299, 0.24403870105743408, -0.9921625256538391, -0.5314216017723083, -0.2017693966627121, 0.6203505992889404, 0.0025207968428730965, -0.4577438235282898, 0.17630308866500854, -0.12548677623271942, 0.37159115076065063, 0.407633513212204, -0.596303403377533, 0.4752691388130188, 0.8498556613922119, 0.7050336599349976, -0.10633919388055801, -0.4661107659339905, -0.880991518497467, 0.17145289480686188, -0.1468760073184967, 0.5248510241508484, -0.5871238112449646, -0.3081248700618744, 0.25753387808799744, -0.22164638340473175, -0.11753810197114944, -0.46641889214515686, 0.2074204385280609, -0.905782163143158, 0.3586028218269348, 0.08983166515827179, -0.36926764249801636, 0.1059294119477272, 0.8003036379814148, -0.7829180359840393, 1.1983671188354492, 0.0808420330286026, -0.2730177342891693, 0.31821444630622864, -0.7506802678108215, -0.29896280169487, 0.018708674237132072, -0.40047428011894226, -0.4670964777469635, 0.01003709714859724, 0.028789659962058067, 0.5153056383132935, -0.3638424873352051, -0.03182324767112732, -0.514591634273529, -0.701096773147583, 0.4752848148345947, 0.2763732373714447, 0.6575639843940735, -0.07025928795337677, 0.06711184978485107, 0.11903711408376694, -0.24580223858356476, 0.10757672786712646, 0.11878423392772675, -0.41498157382011414, -0.07959465682506561, 0.03215118125081062, 0.04609721153974533, 0.7263798713684082, -0.06565927714109421, -0.3689688742160797, 0.2795698642730713, -0.34940969944000244, 0.00530887208878994, 0.5544002056121826, -0.016898471862077713, 0.3102494776248932, -0.6707248687744141, 0.7280957102775574, -0.12511609494686127, 0.380683571100235, -0.10695390403270721, -0.40207439661026, -0.4190850555896759, -0.24892252683639526, -0.23104622960090637, 0.6910765171051025, -0.8634482622146606, 0.21822451055049896, -0.01110787969082594, -0.5010256171226501, -0.6656386256217957, 0.08695131540298462, 0.2821448743343353, -0.03497549518942833, 0.43798160552978516, -0.34965255856513977, -0.6606024503707886, -0.712371289730072, -0.4198587238788605, -0.3777359426021576, -0.08720866590738297, 0.259295791387558, 0.08368077129125595, -0.16267499327659607, 0.9248722791671753, -0.16714170575141907, -0.6815756559371948, -0.3274942934513092, 0.11632786691188812, 0.2344728410243988, 0.3116084933280945, 0.4434913992881775, -1.0040334463119507, -0.4042023718357086, -0.3442184329032898, -0.6135028004646301, 0.06469166278839111, -0.249790757894516, -0.030269278213381767, 0.06505905836820602, 0.542048454284668, -0.6386218070983887, 0.024443112313747406, 0.8471734523773193, -0.23111435770988464, 0.5917763710021973, -0.3091524541378021, 0.5549582242965698, -1.1262547969818115, -0.05632198601961136, 0.03772031143307686, -0.33980849385261536, -0.7328455448150635, 0.5037886500358582, -0.35078197717666626, -0.24296608567237854, -0.6125984191894531, 0.5669634938240051, -0.8082339763641357, -0.26329296827316284, -0.17904382944107056, 0.3041851222515106, -0.02103041112422943, 0.2759081721305847, -0.03089999593794346, 0.7174153923988342, 0.3901047706604004, -0.6621990203857422, 0.389076828956604, 0.3278418481349945, -0.2301340401172638, 0.9213159680366516, -0.3884217143058777, 0.45957475900650024, -0.19753585755825043, 0.6562063097953796, -0.9388965368270874, -0.3665086627006531, -0.19874528050422668, -0.12290990352630615, 0.129959836602211, -0.2849380373954773, -0.8087230920791626, -0.3920464515686035, -0.603142499923706, 0.6747115850448608, 0.4077131450176239, -0.4706520140171051, 0.9702478647232056, 0.4457113742828369, -0.14563527703285217, -0.34857016801834106, -0.6489956378936768, 0.09293462336063385, -0.24125155806541443, -0.7282914519309998, 0.6782959699630737, -0.26799944043159485, -0.28161224722862244, -0.6123316884040833, 0.02383442409336567, -0.5538318157196045, 0.1694100946187973, -0.0642923042178154, 0.6671925783157349, 0.0587630569934845, -0.3004046678543091, -0.25352150201797485, 0.22033549845218658, -0.09671656787395477, 0.012641671113669872, 0.5344429612159729, 0.2648329734802246, -0.5298200249671936, -0.2665083110332489, 0.3627142608165741, 0.5595093369483948, 0.008509702980518341, 0.9653399586677551, 0.8021224141120911, -0.22902560234069824, -0.16617923974990845, -1.0458693504333496, -0.6584179997444153, -0.521160364151001, 0.1922760009765625, -0.2711791396141052, -1.0955277681350708, 0.35904479026794434, -0.22312581539154053, 0.09806536138057709, -0.31267234683036804, 0.3982280492782593, -0.07578780502080917, 0.9706479907035828, 0.6568742394447327, 0.2852019667625427, 0.2683987021446228, 0.3800707757472992, 0.19680514931678772, -0.5528597235679626, -0.41372212767601013, -0.1701320856809616, -0.2992534041404724, -0.35233694314956665, -0.8015698790550232, 0.4582231342792511, 0.18637892603874207, 0.34477534890174866, 0.39385420083999634, -0.2681180238723755, 0.39166924357414246, 0.3423566520214081, 0.15943703055381775, 0.24870778620243073, -0.2468789964914322, -0.2381209433078766, -0.18489708006381989, -0.4391094446182251, -0.36478114128112793, 0.5476778745651245, 0.15151116251945496, 0.5102862119674683, 0.4711010158061981, 0.4871467649936676, 0.08097916841506958, 0.19789069890975952, -0.6556926965713501, 0.732684850692749, 0.3367443382740021, -0.8158456087112427, -0.18822114169597626, -0.4265916645526886, -0.6796504259109497, 0.5006962418556213, -0.5421507358551025, -0.8084183931350708, -0.2640732526779175, 0.32240617275238037, -0.30953118205070496, 0.2112666219472885, -0.45770353078842163, 0.7658072710037231, -0.43604910373687744, -0.4364103376865387, -0.502217710018158, -0.5946609973907471, 0.38210800290107727, -0.28445449471473694, 0.5596377849578857, 0.056258976459503174, 0.03765517845749855, 0.38425812125205994, -0.2073020488023758, 0.8135521411895752, -0.20696201920509338, -0.030815547332167625, 0.061656851321458817, 0.5003035068511963, 0.7303158044815063, 0.05869375169277191, -0.5792397260665894, 0.11656978726387024, 0.35345062613487244, -0.3403269648551941, -0.46610209345817566, 0.6229187846183777, -0.4007524847984314, -0.546039342880249, -0.37307900190353394, -0.4439699947834015, -0.5542572736740112, 0.08071461319923401, -0.19264891743659973, -0.08016387373209, -0.5448223352432251, 0.07111237198114395, 0.4202694296836853, -0.4508167803287506, 0.11227867007255554, 0.4025789201259613, -0.5786874890327454, -0.06057317554950714, 0.6913727521896362, -0.2668295204639435, 0.2516283690929413, 0.3511451184749603, 0.044038545340299606, -0.3540775179862976, -0.03202512115240097, -0.0840873122215271, 0.41605839133262634, -0.25698643922805786, 0.21332257986068726, -0.5352233052253723, 0.040960561484098434, -0.6337575316429138, -0.18987812101840973, -0.2095465064048767, 0.07259411364793777, 0.29762765765190125, 0.04807193949818611, 0.1118646040558815, 0.523200273513794, 0.08600118011236191, 0.14500932395458221, -0.619102418422699, 0.34800443053245544, 0.6276336908340454, 0.4769030809402466, -0.019022535532712936, -0.12308759987354279, -0.18338938057422638, 0.0549914576113224, -0.0665523111820221, -0.7779964804649353, 0.06604611873626709, 0.3167538046836853, 0.7002854943275452, 0.18731841444969177, -0.008934220299124718, 0.7932426929473877, -0.3277420401573181, 0.7562962174415588, 0.08620274811983109, -0.6011583805084229, 0.2821316421031952, -0.5245994329452515, -0.1358596384525299, 0.624740719795227, 0.489120215177536, -0.8791543245315552, -0.123049795627594, -0.407189279794693, -0.9251199960708618, 1.098812460899353, 0.35324764251708984, 0.04381565749645233, -0.06166348233819008, 0.1501368135213852, -0.05883374065160751, 0.4439159035682678, -0.5100832581520081, 0.044545359909534454, -0.0716780573129654, -0.005409932229667902, 0.07997360825538635, -0.29089033603668213, -0.30577418208122253, -0.06441070884466171, 0.5862710475921631, -0.14314968883991241, 0.44438260793685913, -0.04280136525630951, -0.008657981641590595, 0.10291218757629395, 0.21380801498889923, 0.5738890767097473, 0.42136090993881226, -0.2106051743030548, 0.16422250866889954, 0.4179862439632416, -0.07136007398366928, 0.02188505418598652, -0.02031799778342247, 0.3529913127422333, -0.2896271347999573, 0.0008794027380645275, 0.2948000431060791, 0.36655673384666443, -0.9492524862289429, 0.8572164177894592, -0.09024026989936829, -0.24132058024406433, -0.6791577339172363, 0.19965265691280365, 0.3818443715572357, 0.32415151596069336, 0.6036269068717957, -0.4441221356391907, -0.044486332684755325, -0.8895102739334106, 0.32364222407341003, 0.5566791296005249, -0.15413397550582886, -0.2992100119590759, 0.7002002596855164, 0.13973724842071533, -0.6897593140602112, 0.486778199672699, -0.39330220222473145, -0.5441422462463379, 0.5180302858352661, 0.6802233457565308, 0.43607297539711, -0.5587716102600098, 0.29463645815849304, 0.16166794300079346, -0.09351344406604767, -0.7929919958114624, 0.26282963156700134, 0.2240312397480011, -0.827524721622467, -0.4783908724784851, -0.5257870554924011, -0.6004121899604797, 0.2067527323961258, -0.4707447588443756, 0.45545852184295654, -0.4641454815864563, 0.05297326296567917, -0.3985028564929962, -0.3314145803451538, -0.6553683280944824, 0.014129189774394035, 0.02405884675681591, 0.33115723729133606, -0.6214928030967712, 0.6255422830581665, 0.9868696331977844, -0.4891129434108734, -0.5962951183319092, 0.05284808576107025, 0.3839271664619446, -0.6250620484352112, 0.3276694118976593, 0.4203339219093323, -0.15462768077850342, 0.1375964730978012, -0.22004841268062592, -0.5473288297653198, 1.218140959739685, 0.3742969334125519, -0.06673385202884674, -0.4696424901485443, 0.14759418368339539, 0.46078839898109436, -0.40258440375328064, 0.7987972497940063, 0.09164756536483765, 0.4323877692222595, 0.27161282300949097, -1.3001066446304321, 0.15267275273799896, -0.13983328640460968, 0.09795308113098145, -0.08594945073127747, -0.7726430296897888, 0.8341324925422668, 0.11427422612905502, -0.12972216308116913, 0.05344934016466141, 0.3105856478214264, 0.6799177527427673, 0.08896208554506302, 0.875767707824707, 0.1224462166428566, 0.6014795899391174, 0.27625012397766113, 0.700884222984314, -0.30981045961380005, 0.338334858417511, 1.1287007331848145, -0.9236205816268921, 0.7035248875617981, 0.5742021203041077, -0.1360022872686386, 0.601616382598877, 0.3769921362400055, -0.007926998659968376, -0.07437137514352798, 0.16227610409259796, -0.32922691106796265, -0.6586700677871704, -0.17765691876411438, 0.07843735814094543, 0.49225348234176636, 0.12411613762378693, -0.01902185007929802, -0.3422330617904663, -0.04997260123491287, -0.0704854428768158, 0.3797789216041565, -0.004264598712325096, 0.4925048053264618, 0.1218518614768982, -0.7642203569412231, -0.06832189112901688, 0.2217588573694229, 0.9353976845741272, -0.44561269879341125, -0.4693930149078369, 0.013924581930041313, 0.19601045548915863, -0.27433791756629944, -0.511063277721405, 0.18931056559085846, -0.45166051387786865, 0.10535461455583572, -0.5456082820892334, 0.5651494860649109, -0.5668832063674927, -0.12352200597524643, 0.6841764450073242, 0.6445652842521667, 0.38916015625, -0.22186081111431122, -0.8328282237052917, 0.0883290022611618, -0.5873938798904419, -0.0855330228805542, 0.7195001244544983, 0.16140681505203247, 0.05277673900127411, 0.6096959114074707, 0.7976038455963135, 0.1603071093559265, -0.009637906216084957, 0.27190566062927246, 0.49875909090042114, -0.34641507267951965, -0.8106705546379089, -0.5649291276931763, 0.4358751177787781, -0.40508660674095154, -0.05566641688346863, 0.5206776857376099, 0.6790162324905396, 0.8986235857009888, -0.08392518758773804, 0.38783690333366394, -0.050236813724040985, 0.6318699717521667, -0.4290531277656555, 0.5650818347930908, -0.6465960144996643, 0.17008371651172638, -0.4794420003890991, -1.0327836275100708, 0.04731025546789169, 0.8233697414398193, 0.21877522766590118, 0.547592043876648, 0.6023240685462952, 1.1199368238449097, -0.476758748292923, -0.4107973873615265, 0.5093982219696045, 0.05284259468317032, 0.4061472713947296, 0.3003549873828888, 0.6345655918121338, -0.4252910912036896, 0.6272203922271729, 0.253807008266449, -0.13820791244506836, -0.6724352836608887, -0.88739013671875, -0.9201904535293579, -0.5378657579421997, -0.189559668302536, -0.5506455302238464, -0.22132539749145508, 1.4058455228805542, 0.88663250207901, -0.40445229411125183, -0.6864622831344604, 0.09820500761270523, -0.31017425656318665, -0.5538528561592102, -0.3219214081764221, -0.41150593757629395, 0.02113814651966095, -0.6293684840202332, 1.0281683206558228, 0.18193268775939941, -0.1147313043475151, -0.5444850325584412, -0.24569033086299896, -0.6528031826019287, 0.3312714099884033, 0.5949463844299316, 0.30751845240592957, -0.625781774520874, -0.32051900029182434, 0.04267681762576103, -0.3089061677455902, -0.13058000802993774, 0.9426127672195435, -0.6312918066978455, 0.42512306571006775, 0.2259366661310196, 0.777116596698761, 0.7009017467498779, 0.2773580551147461, 0.7348909974098206, -0.9756723046302795, 0.2144419550895691, 0.2302340269088745, -0.00048769221757538617, 0.30299967527389526, -0.4879021644592285, 0.5399518013000488, 0.10254435986280441, -0.4835190773010254, -0.822620689868927, 0.4337224066257477, -0.9253385663032532, -0.2663355767726898, 1.1891216039657593, 0.0817577913403511, 0.14913132786750793, -0.4086282253265381, -0.1193484365940094, 0.3981442153453827, -0.27217406034469604, 1.058864951133728, 0.6702038645744324, -0.2603584825992584, -0.2758958637714386, -0.6202097535133362, 0.39377710223197937, 0.28442731499671936, -0.8481391668319702, -0.28435200452804565, 0.3839285373687744, 0.11856735497713089, 0.131442129611969, 0.9818786382675171, 0.042560890316963196, 0.1705237179994583, -0.26359981298446655, 0.300744891166687, -0.19900698959827423, -0.20217478275299072, 0.08343905955553055, 0.11684654653072357, 0.3138357400894165, 0.24669548869132996 ]
http://arxiv.org/abs/2405.18111v2
http://arxiv.org/pdf/2405.18111v2
ATM: Adversarial Tuning Multi-agent System Makes a Robust Retrieval-Augmented Generator
2024-05-28T12:18:50
2024-06-16T12:30:32
Junda Zhu, Lingyong Yan, Haibo Shi, Dawei Yin, Lei Sha
cs.CL
cs.CL
Large language models (LLMs) are proven to benefit a lot from retrieval-augmented generation (RAG) in alleviating hallucinations confronted with knowledge-intensive questions. RAG adopts information retrieval techniques to inject external knowledge from semantic-relevant documents as input contexts. However, due to today's Internet being flooded with numerous noisy and fabricating content, it is inevitable that RAG systems are vulnerable to these noises and prone to respond incorrectly. To this end, we propose to optimize the retrieval-augmented Generator with a Adversarial Tuning Multi-agent system (ATM). The ATM steers the Generator to have a robust perspective of useful documents for question answering with the help of an auxiliary Attacker agent. The Generator and the Attacker are tuned adversarially for several iterations. After rounds of multi-agent iterative tuning, the Generator can eventually better discriminate useful documents amongst fabrications. The experimental results verify the effectiveness of ATM and we also observe that the Generator can achieve better performance compared to state-of-the-art baselines.
[ -0.6839916706085205, -1.189605712890625, 0.44000938534736633, -0.22471857070922852, -0.3756006360054016, 0.36480915546417236, -0.12006157636642456, -0.4387367069721222, 0.15547049045562744, 0.6178861856460571, -0.29901614785194397, 0.0019377820426598191, -0.640303373336792, 0.17316710948944092, -0.6128608584403992, 0.9430673718452454, 0.43321239948272705, 0.021356597542762756, 0.254518985748291, -0.11272688210010529, -0.24198155105113983, -0.42753008008003235, -1.2775366306304932, -0.2756412923336029, 0.5530558824539185, 0.0643749013543129, 0.9136060476303101, 0.7268004417419434, 0.5054495930671692, 0.5117097496986389, -0.09543808549642563, 0.7933470010757446, -0.5213612914085388, 0.5054569840431213, -0.15980969369411469, -0.4386032819747925, -0.25311028957366943, -0.0907953679561615, 0.5138645768165588, -0.14657968282699585, -0.02418379858136177, 0.11323735862970352, -0.1294470876455307, 0.493971586227417, -0.6300258040428162, -0.30223923921585083, -1.281106948852539, -0.31951090693473816, -0.14351829886436462, -0.6555507183074951, -0.5026055574417114, -0.23581013083457947, -0.3823486268520355, -0.6136720180511475, 0.3545454740524292, 0.2728129029273987, 0.9662531614303589, 0.5833306908607483, -0.5336576104164124, -0.39150431752204895, -0.5714799761772156, 0.5436359643936157, -0.22967471182346344, 0.22431612014770508, 0.3252064287662506, 0.42632946372032166, -0.375485897064209, -0.477302610874176, -0.6907231211662292, -0.19383838772773743, 0.21550723910331726, 0.13315755128860474, -0.10678860545158386, -0.03524641692638397, 0.04025588184595108, 0.2996971011161804, -0.31449055671691895, -0.03310327231884003, -0.11563780903816223, -0.3559221625328064, 0.44713979959487915, -0.018391624093055725, 0.15631191432476044, -0.05678112804889679, -0.38383981585502625, -0.2760923504829407, -0.6893231272697449, -0.3229902982711792, 0.7640931606292725, 0.4573417603969574, 0.5167038440704346, 0.571761965751648, 0.19679994881153107, 0.9403210878372192, 0.3732399046421051, -0.16496972739696503, -0.02402903139591217, -0.09318257868289948, -0.0006045604241080582, -0.024030068889260292, 0.6294946670532227, -0.05861394479870796, 0.13498279452323914, -0.27709996700286865, -0.47782376408576965, -0.048293326050043106, 0.9498485326766968, -0.5032720565795898, 0.08879371732473373, -0.0031102881766855717, 0.03965127468109131, -0.5547297596931458, -0.13764247298240662, -0.590108335018158, -0.6147215962409973, -0.31778132915496826, 0.779421865940094, -0.6978250741958618, -0.15871065855026245, -0.3780614733695984, -0.6007820963859558, 0.19390363991260529, 0.2842237949371338, -0.4804162383079529, 0.04695705324411392, 0.6937287449836731, 0.7438868880271912, 0.17262226343154907, -0.40457943081855774, -0.9564067125320435, 0.3243560492992401, -0.3809889256954193, 1.0907704830169678, -0.40889185667037964, -0.420819491147995, -0.06212577596306801, -0.20975731313228607, -0.06628569960594177, -0.5507006645202637, 0.4709962010383606, -1.050429344177246, -0.17821401357650757, -0.13338486850261688, -0.3329905867576599, 0.13674098253250122, 0.5207443237304688, -0.7825760245323181, 0.914136528968811, 0.22041356563568115, -0.6608730554580688, 0.052529476583004, -0.34063833951950073, -0.46420368552207947, -0.048068393021821976, -0.01830395869910717, -0.5787248015403748, 0.1557886004447937, 0.3410186767578125, 0.026944907382130623, -0.2925182580947876, -0.18030181527137756, -0.24107405543327332, -0.5210568308830261, 0.4298671782016754, -0.5309285521507263, 0.6223616003990173, 0.6050564050674438, -0.08992505073547363, 0.06649806350469589, -0.7748045325279236, 0.019878752529621124, 0.09253457933664322, -0.6146745085716248, -0.3789356052875519, -0.11722707003355026, -0.13982632756233215, -0.09056930243968964, 0.31019124388694763, -0.34701016545295715, 0.10477232187986374, -0.5115597248077393, 0.09221780300140381, 1.1448988914489746, 0.16621403396129608, 0.17493750154972076, -0.6710910201072693, 0.552904486656189, -0.16928765177726746, -0.03928287327289581, 0.11498831957578659, -0.17274849116802216, -0.6922246217727661, -0.5149085521697998, -0.04874984174966812, 0.486614465713501, -1.4025793075561523, 0.2396029680967331, 0.13957010209560394, -0.4476195275783539, -0.7992416024208069, 0.21917185187339783, 0.5442187786102295, 0.7183958292007446, 0.3046782314777374, 0.2618652880191803, -0.5337093472480774, -0.654754102230072, -0.4374428987503052, -0.3505493998527527, -0.030316336080431938, 0.4094390273094177, 0.21013346314430237, -0.14009012281894684, 0.42410221695899963, -0.26450663805007935, -0.22802524268627167, -0.25291869044303894, 0.10135502368211746, -0.1282707154750824, 0.0634799674153328, 0.5305991768836975, -0.8748759627342224, -0.47357144951820374, 0.06337505578994751, -0.415743350982666, -0.06809856742620468, 0.11351168155670166, -0.3180685043334961, 0.3142661154270172, 0.3440212607383728, -0.6803185343742371, -0.04332059994339943, 0.1799382120370865, -0.3101750314235687, 0.6840623617172241, -0.32072317600250244, 0.3239477574825287, -1.2965905666351318, 0.11751553416252136, -0.42067551612854004, -0.38716885447502136, -0.4342406392097473, 0.6525410413742065, -0.0010173831833526492, -0.35019516944885254, -0.3107328414916992, 0.5640897154808044, -0.34190258383750916, 0.15816785395145416, -0.717701256275177, 0.2877832353115082, 0.13161057233810425, 0.3855416774749756, -0.3819831609725952, 1.2027829885482788, 0.45997369289398193, -0.7660079598426819, 0.5415201783180237, 0.23604533076286316, 0.05502568557858467, 0.7436783909797668, -0.38390451669692993, 0.4526825249195099, -0.4242754280567169, 0.011722610332071781, -0.5552942156791687, -0.08221317082643509, 0.04893244430422783, -0.9111462235450745, 0.6209433674812317, -0.003902553813531995, -0.6060033440589905, -0.07943523675203323, -0.43698635697364807, 0.11065758019685745, 0.1444000005722046, -0.6625884175300598, 0.8109511137008667, 0.5272437334060669, 0.040582187473773956, -0.829310953617096, -0.1374310702085495, 0.10962983965873718, -0.38335469365119934, -0.5311598181724548, 0.012531150132417679, -0.017780212685465813, -0.2881079614162445, 0.07026403397321701, -0.09261313825845718, -0.06524946540594101, 0.36855313181877136, -0.12663616240024567, 0.20991502702236176, -0.032031189650297165, 0.3104502856731415, -0.0922783836722374, -0.1137695461511612, -0.1029781699180603, -0.2966013550758362, 0.49936795234680176, -0.12080221623182297, -0.37366390228271484, 0.2579291760921478, 0.45774003863334656, 0.5484432578086853, -0.40629035234451294, 0.8926365971565247, 0.7435420155525208, -0.14332164824008942, -0.3982362747192383, -0.7352569699287415, -0.05751897022128105, -0.553196132183075, 0.4550834894180298, -0.6317101716995239, -0.7989791631698608, 0.5121254920959473, -0.10411358624696732, -0.015004518441855907, 0.6368203163146973, 0.4789981245994568, 0.028830811381340027, 1.2869778871536255, 0.3899981677532196, -0.34099647402763367, 0.6054991483688354, -0.28529778122901917, -0.11339903622865677, -0.9706991910934448, 0.16312070190906525, -0.9299864768981934, -0.03611307218670845, -0.4838257431983948, -0.21899786591529846, 0.817215621471405, -0.01062008086591959, -0.44878673553466797, 0.16152013838291168, -0.5484848618507385, 0.3912445902824402, 0.6898261308670044, 0.29092472791671753, 0.22641335427761078, -0.03136282041668892, -0.1621275395154953, 0.5097312927246094, -0.5221179127693176, -0.37751418352127075, 1.2690387964248657, -0.027864065021276474, 0.7751700282096863, 0.34830814599990845, 0.6815252304077148, 0.39968642592430115, 0.14419089257717133, -0.5469228625297546, 0.48650267720222473, -0.1915297955274582, -0.7993729710578918, -0.4574727714061737, -0.6084710955619812, -1.0708374977111816, 0.559822678565979, -0.10985540598630905, -0.5417734980583191, -0.07241874188184738, 0.1412113457918167, -0.15358079969882965, 0.39253905415534973, -0.6414927244186401, 0.35662615299224854, -0.15800659358501434, -0.24956916272640228, -0.30233585834503174, -0.4026176631450653, 0.17197242379188538, -0.17545105516910553, 0.14344419538974762, 0.22544515132904053, -0.04226855933666229, 0.19150853157043457, -0.48327958583831787, 0.2388298660516739, -0.1325967162847519, -0.0941133052110672, 0.5072275400161743, -0.01641932688653469, 0.9834072589874268, 0.12211792916059494, -0.45249685645103455, -0.40430134534835815, -0.2927079498767853, -0.280758798122406, -0.5762829780578613, 0.8280295729637146, -1.0689774751663208, -0.9348207116127014, -0.3813862204551697, -0.5359691977500916, -0.19873091578483582, 0.3682042956352234, 0.4262147545814514, 0.4673198461532593, -0.1924227476119995, 0.12997817993164062, 0.9677124619483948, -0.08024976402521133, 0.20063191652297974, 0.818805456161499, 0.16269700229167938, -0.512701690196991, 1.2510920763015747, -0.02853740006685257, 0.27971509099006653, 0.46855682134628296, 0.02061086893081665, -0.3777916431427002, -0.5398276448249817, -0.6728100180625916, -0.011887697502970695, -0.6876645088195801, -0.5983290672302246, -0.5253608822822571, -0.4057314693927765, -0.5221251845359802, -0.05520179867744446, -0.3032236099243164, -0.2874132990837097, -0.37586984038352966, -0.07618089765310287, 0.42923688888549805, 0.5400495529174805, -0.09301172941923141, 0.2656920552253723, -0.6352892518043518, 0.8684830665588379, 0.4423685073852539, 0.20893077552318573, -0.2057977020740509, -0.6033670902252197, -0.3500612676143646, 0.046888887882232666, -0.5667194128036499, -1.030735731124878, 0.2498113363981247, 0.39358216524124146, 0.5762647390365601, 0.39136508107185364, 0.20792770385742188, 0.5889214277267456, -0.4871281087398529, 0.21888388693332672, -0.4048174321651459, -0.5745002031326294, 0.46057140827178955, -0.3927534520626068, 0.3914801776409149, 0.6159107089042664, -0.06747951358556747, -0.03939918801188469, -1.0719729661941528, -0.3934164047241211, -0.8541195392608643, 0.8052576780319214, 0.23454581201076508, -0.0830514058470726, -0.19626730680465698, 0.37739819288253784, -0.10824747383594513, 0.268907755613327, -0.3792354464530945, -0.4499935507774353, -0.3772745728492737, -0.08479686081409454, -0.1529412716627121, 0.015266075730323792, -0.30460965633392334, 0.23711581528186798, 1.1389905214309692, -0.2819434702396393, 0.21137964725494385, 0.21071721613407135, -0.16377577185630798, -0.45824939012527466, 0.31083014607429504, 0.33484965562820435, 0.4080069363117218, -0.19407954812049866, 0.3466140031814575, 0.032596949487924576, -0.5131409764289856, 0.22688604891300201, 0.6671038866043091, -0.35488224029541016, -0.09848374128341675, 0.12191221863031387, 0.7253839373588562, -0.3708071708679199, -0.5891045928001404, 0.09192308038473129, -0.21462492644786835, 0.0897589847445488, -0.4265034794807434, 0.3053742051124573, -0.24546672403812408, 0.37693148851394653, 0.6587592363357544, 0.3001798093318939, 0.2792973816394806, -0.49108561873435974, 0.13872745633125305, 0.9765647053718567, -0.08721312880516052, 0.1054159551858902, 0.7133561372756958, 0.10161559283733368, -0.6337664127349854, 0.34333881735801697, -0.38837170600891113, -0.6238709688186646, 0.7140209674835205, 0.49389347434043884, 0.9146477580070496, -0.30976060032844543, 0.12693406641483307, 0.07030027359724045, 0.618825376033783, 0.1391972154378891, 0.20002833008766174, -0.08058870583772659, -0.592229962348938, -0.1927642673254013, -0.8428946137428284, -0.30037039518356323, 0.17992226779460907, -0.5045046210289001, 0.07373736053705215, -0.24602510035037994, -0.18821211159229279, 0.03183009475469589, 0.23734351992607117, -0.5007194876670837, 0.18172891438007355, -0.28720298409461975, 0.7062059640884399, -0.258964866399765, 0.7761736512184143, 0.9062460064888, -0.34506091475486755, -0.6709921956062317, -0.08067219704389572, 0.0852930024266243, -1.0885530710220337, 0.01843065768480301, -0.06475479155778885, -0.4301643371582031, 0.2751598060131073, -0.30328673124313354, -0.970824658870697, 0.8735404014587402, 0.5552462935447693, 0.018510781228542328, 0.13725419342517853, -0.04056992009282112, 0.686162531375885, 0.014406073838472366, 0.3018691837787628, 0.28428927063941956, 0.5138185024261475, 0.216371551156044, -0.6824223399162292, -0.050332825630903244, -0.48025569319725037, -0.2192123979330063, 0.5065307021141052, -1.0068973302841187, 0.7968310713768005, -0.021686794236302376, -0.1653820127248764, 0.17352862656116486, 0.31071561574935913, 0.4077149033546448, 0.17733612656593323, 0.6191150546073914, 0.7691841721534729, 0.6734858155250549, 0.0019180168164893985, 1.0776492357254028, -0.4842480719089508, -0.09209123253822327, 0.9746414422988892, 0.06461358815431595, 0.5615434050559998, 0.3456915318965912, 0.07039511203765869, 0.07390520721673965, 0.3361690044403076, 0.12487547844648361, 0.45787402987480164, -0.0019087385153397918, -0.4961288869380951, -0.2609962821006775, -0.14387089014053345, -0.5546004772186279, 0.44998037815093994, 0.4333730936050415, -0.21828334033489227, -0.13325528800487518, -0.01418848242610693, -0.14787937700748444, 0.18706537783145905, -0.36272042989730835, 1.228570580482483, -0.12288830429315567, -1.0194942951202393, 0.6384464502334595, 0.17706610262393951, 0.21342867612838745, -0.8644821047782898, 0.036177121102809906, -0.1253344863653183, 0.34968242049217224, 0.2598167657852173, -0.22052736580371857, 0.28857406973838806, -0.0021607044618576765, -0.12115015089511871, -0.03419092670083046, 1.0952425003051758, -0.3297949433326721, -0.5265789031982422, 0.13513410091400146, 0.36676040291786194, -0.07841722667217255, -0.39208269119262695, -0.580213725566864, -0.10213415324687958, -0.21435993909835815, -0.40923115611076355, 0.5208008885383606, 0.7396882772445679, 0.2796398401260376, 0.7358167171478271, 0.5894603133201599, 0.26669764518737793, 0.062882199883461, 0.02916388213634491, 1.1445649862289429, -0.47719258069992065, -0.43538326025009155, -0.6621606945991516, 0.16889908909797668, -0.05502667278051376, -0.09486467391252518, 0.9093566536903381, 0.49307242035865784, 0.5921105742454529, 0.2658374309539795, 0.8700348138809204, -0.025540662929415703, 0.7208777070045471, -0.416236013174057, 0.8349822759628296, -0.7852616310119629, 0.4141441583633423, -0.14460311830043793, -0.7300264239311218, 0.20900829136371613, 0.21353891491889954, 0.47276192903518677, 0.05636594817042351, 0.4081648886203766, 0.9319669604301453, 0.24893751740455627, -0.3368707597255707, 0.3168002963066101, 0.23865561187267303, 0.40891337394714355, 0.36853182315826416, 0.7566689848899841, -0.3693851828575134, 1.0819785594940186, -0.06855658441781998, -0.1582290679216385, -0.14641782641410828, -0.36691954731941223, -0.8974872827529907, -0.4348389506340027, 0.24592293798923492, -0.37910836935043335, 0.42392152547836304, 0.5583902597427368, 0.3781984746456146, -0.540044367313385, 0.1324770301580429, 0.11688219010829926, 0.4932210445404053, -0.27814868092536926, -0.2124200165271759, 0.2745836079120636, -0.7639670372009277, -0.8235896229743958, 0.7222235798835754, 0.15799471735954285, -0.05597596615552902, -0.3980034291744232, -0.06956864148378372, -0.42634913325309753, 0.4171437621116638, 0.3314116597175598, 0.17717501521110535, -0.5651600956916809, -0.3394680917263031, -0.019522294402122498, -0.08610527962446213, -0.12369866669178009, 0.7090481519699097, -0.6844674944877625, 0.7827333807945251, 0.24689580500125885, 0.8623232245445251, 0.29397913813591003, 0.3949865698814392, 0.5182579159736633, -0.980998694896698, 0.10780367255210876, 0.2817785441875458, 0.3212113678455353, 0.19420254230499268, -0.6428198218345642, 0.32070672512054443, -0.04456176236271858, -0.8050148487091064, -0.830502450466156, 0.31501340866088867, -0.4952407777309418, -0.4816935956478119, 0.9979988932609558, -0.0027352727483958006, -0.17772729694843292, -0.3087857663631439, -0.4739174544811249, 0.5817279815673828, -0.6341865062713623, 1.2107433080673218, 0.524760901927948, -0.0038332282565534115, 0.03240574896335602, -0.1740611046552658, 0.5053051114082336, 0.31710389256477356, -0.6805201768875122, -0.34606602787971497, 0.6317228078842163, -0.13905742764472961, 0.2880488336086273, 0.5629727840423584, 0.11804170161485672, 0.35075560212135315, 0.2551780045032501, -0.44960176944732666, -0.47008806467056274, -0.43252813816070557, -0.10913903266191483, 0.43348196148872375, 0.3897116482257843, -0.1331690549850464 ]
http://arxiv.org/abs/2405.18061v1
http://arxiv.org/pdf/2405.18061v1
Context is Important in Depressive Language: A Study of the Interaction Between the Sentiments and Linguistic Markers in Reddit Discussions
2024-05-28T11:19:39
2024-05-28T11:19:39
Neha Sharma, Kairit Sirts
cs.CL
cs.CL
Research exploring linguistic markers in individuals with depression has demonstrated that language usage can serve as an indicator of mental health. This study investigates the impact of discussion topic as context on linguistic markers and emotional expression in depression, using a Reddit dataset to explore interaction effects. Contrary to common findings, our sentiment analysis revealed a broader range of emotional intensity in depressed individuals, with both higher negative and positive sentiments than controls. This pattern was driven by posts containing no emotion words, revealing the limitations of the lexicon based approaches in capturing the full emotional context. We observed several interesting results demonstrating the importance of contextual analyses. For instance, the use of 1st person singular pronouns and words related to anger and sadness correlated with increased positive sentiments, whereas a higher rate of present-focused words was associated with more negative sentiments. Our findings highlight the importance of discussion contexts while interpreting the language used in depression, revealing that the emotional intensity and meaning of linguistic markers can vary based on the topic of discussion.
[ -0.8326480984687805, -1.0386416912078857, 0.7383228540420532, 0.6138227581977844, -0.4889476001262665, -0.4463243782520294, -0.3127884566783905, -0.41668444871902466, 0.694661557674408, 0.12363746017217636, -0.46810540556907654, -0.4796404540538788, -1.022228479385376, 0.5928156971931458, -0.29449042677879333, 0.9337605834007263, -0.044963642954826355, -0.049666378647089005, 0.020729942247271538, -0.12841252982616425, -0.7881456613540649, -0.8505675196647644, -0.8073029518127441, -0.046907939016819, 0.6252185106277466, 0.20338283479213715, 0.586351215839386, -0.17569805681705475, 0.45814627408981323, 0.3910090923309326, -0.3491222560405731, -0.5970233678817749, -0.6412537097930908, 0.5564364194869995, -0.4074438512325287, -0.3143787086009979, -0.3865223228931427, -0.002478488953784108, -0.13469764590263367, 0.6589192748069763, 0.1344357430934906, -0.11935818195343018, 0.1767209768295288, 0.6107115745544434, -0.7626987099647522, 0.02283930405974388, -0.12708957493305206, 0.14548707008361816, -0.1138167753815651, -0.4097522497177124, 0.15263794362545013, -0.24265235662460327, 0.281560480594635, -0.016875308007001877, -0.057950668036937714, -0.7624594569206238, 0.8217899799346924, 0.3975524306297302, -0.7785612344741821, -0.46931612491607666, -0.4960898756980896, 0.6466777920722961, -0.7192363739013672, -0.10277874022722244, 0.39172402024269104, -0.13690730929374695, -0.03644610196352005, -0.24615295231342316, -0.5758065581321716, 0.550313413143158, -0.4610985815525055, 0.19286467134952545, -0.36341145634651184, 0.09471810609102249, 0.18603867292404175, 0.28706464171409607, -0.08747679740190506, -0.291232705116272, -0.19962875545024872, 0.23509159684181213, 0.46839603781700134, 0.22997568547725677, 0.6088980436325073, -0.6848167777061462, 0.10345067083835602, 0.21250073611736298, -0.29941225051879883, 0.12679098546504974, -0.18431806564331055, 0.48284223675727844, -0.276302307844162, 0.532929003238678, -0.2872314453125, 0.8818385601043701, -0.05086146667599678, -0.2246866673231125, 0.04884174466133118, -0.4048755466938019, -0.21627728641033173, 0.08571209758520126, 0.5862968564033508, 0.9444888234138489, 0.2002660036087036, 0.27669769525527954, 0.12021796405315399, 0.42381224036216736, 0.34474560618400574, -0.7213575839996338, -0.17458848655223846, 0.390605092048645, -0.40590259432792664, 0.229111447930336, 0.04554964229464531, -1.1783868074417114, -0.5295785069465637, -0.2646486163139343, -0.10859934985637665, 0.0032536471262574196, -0.3893457055091858, 0.04647742211818695, -0.3705121874809265, -0.05273633077740669, 0.5089794397354126, -0.7128742337226868, 0.12752024829387665, 0.6385084390640259, 0.8827762007713318, 0.20205555856227875, 0.06619646400213242, -0.19455797970294952, -0.2131161242723465, -0.21031254529953003, 0.809274435043335, -0.7162207961082458, -0.508803129196167, 0.2011314481496811, 0.2514704465866089, -0.09047109633684158, -0.17798712849617004, 0.881915271282196, -0.048259440809488297, 0.476823627948761, -0.3728333115577698, -0.4365377426147461, -0.23825280368328094, 0.007910620421171188, -0.5525009036064148, 0.6741253137588501, 0.32529646158218384, -1.0360161066055298, 0.2508930265903473, -0.3476536273956299, -0.7878826260566711, 0.11178390681743622, -0.32386887073516846, 0.12447214126586914, 0.5793586373329163, -0.23517267405986786, 0.683353066444397, -0.04115262255072594, 0.15373505651950836, -0.31871816515922546, -0.33589038252830505, 0.4759555459022522, 0.0829806849360466, 0.3044354319572449, 0.008640277199447155, -0.8852899670600891, -0.3741006851196289, -0.44980964064598083, -0.006863455753773451, -0.25111502408981323, -0.42442500591278076, -0.9743363857269287, 0.14977508783340454, 0.22949296236038208, 0.5749987363815308, 0.06250864267349243, -0.33634939789772034, -0.21158340573310852, -0.355817586183548, 0.4947366714477539, 0.44645097851753235, 0.5380727648735046, 0.08413691073656082, 0.32470571994781494, 0.6684404611587524, -0.005091371480375528, -0.10218453407287598, 0.12719807028770447, -0.7330609560012817, -0.3783602714538574, -0.4178793728351593, -0.139087975025177, 0.3794475495815277, 0.09941496700048447, 0.5299414396286011, 0.1675339937210083, -0.09832578897476196, -0.37596914172172546, -0.1457032412290573, 0.3926510810852051, 0.26433953642845154, 0.32869458198547363, -0.10680491477251053, -0.9196947813034058, -0.9455143809318542, -0.12676945328712463, 0.12209799885749817, 0.06670289486646652, 0.5908151268959045, 0.27016085386276245, -0.619127094745636, 1.0069857835769653, -0.6691884398460388, -0.19864198565483093, -0.3036922514438629, 0.342072457075119, 0.11278785020112991, 0.13752570748329163, 0.5281533002853394, -0.7854728698730469, -0.8031601905822754, 0.07979065179824829, -0.6008076667785645, -0.34583887457847595, -0.10562349855899811, -0.38800063729286194, 0.24295853078365326, 0.3609354496002197, -0.5664463043212891, 0.6848909258842468, 0.8091994524002075, -0.7301632165908813, -0.0712868720293045, 0.20287279784679413, 0.4609507620334625, -1.049621343612671, 0.0676957294344902, 0.3071135878562927, 0.09237159788608551, -0.7021371722221375, -0.45654910802841187, -0.22344113886356354, -0.24394115805625916, -0.31214526295661926, 0.33110159635543823, -0.017961742356419563, 0.25391799211502075, -0.5508771538734436, 0.59368896484375, 0.08568280935287476, 0.04756944254040718, 0.15031744539737701, 0.7946168184280396, 0.7358061075210571, -0.39784330129623413, -0.05497415363788605, 0.33600378036499023, -0.24075832962989807, 0.74895840883255, -0.3485235869884491, -0.36173683404922485, -0.2473955601453781, 0.016045494005084038, -1.0276747941970825, -0.20795346796512604, 0.40347862243652344, -0.15093080699443817, 0.024857930839061737, 0.30364716053009033, 0.007982823997735977, -0.05086972191929817, -0.09575580060482025, 0.20816326141357422, 0.062129609286785126, 0.19248685240745544, 0.07718848437070847, 0.7328996658325195, -0.5377805829048157, -0.32459092140197754, -0.7168202996253967, 0.38379237055778503, -0.7463082671165466, -0.2610456645488739, 0.5222210884094238, -0.016645634546875954, -0.8971062302589417, -0.10575026273727417, -0.1446874588727951, -0.2741371989250183, 0.5112490653991699, 0.42527636885643005, -0.37082305550575256, 0.008596038445830345, 0.43378397822380066, 0.019054658710956573, -0.06921621412038803, 0.19211585819721222, 0.7726391553878784, 0.6766654253005981, -0.1958267092704773, 0.5308808088302612, -0.6908069849014282, 0.8700063824653625, 0.4556323289871216, 0.44752392172813416, 1.0094999074935913, -0.12982811033725739, -0.29602551460266113, 0.03894892707467079, -0.09713926166296005, -0.17911620438098907, -0.35367345809936523, 0.3674335181713104, -0.3869873881340027, -0.9866008758544922, 0.31101077795028687, -0.038885705173015594, -0.5764380097389221, 0.44040241837501526, 0.5603449940681458, -0.3588525354862213, 0.9464247822761536, 0.5847033262252808, -0.1317884474992752, 0.5564513802528381, 0.3882792592048645, 0.664973258972168, -0.8256080150604248, 0.3957878649234772, -0.6303099393844604, -0.48053881525993347, -0.6439660787582397, -0.13932575285434723, -0.0011583734303712845, 0.3857940435409546, 0.11238013207912445, 0.2956543564796448, -0.43257877230644226, 0.21584858000278473, -0.23603954911231995, 0.09038637578487396, -0.009765442460775375, -0.23621171712875366, 0.3639567494392395, -0.6555870771408081, -0.33821237087249756, -0.8004750609397888, 0.41398102045059204, 0.10039093345403671, 0.6041364073753357, 0.1788259893655777, 0.46222561597824097, 0.4907911717891693, 0.33206066489219666, -0.6440151333808899, 0.4923017621040344, -0.11606510728597641, -0.46860501170158386, -0.36172351241111755, -0.276287704706192, -0.933991014957428, 0.09575244039297104, 0.07359403371810913, -0.7971069812774658, 0.43184003233909607, -0.22107438743114471, -0.2712836265563965, -0.3892565965652466, -0.56304532289505, 1.0274395942687988, -0.11210724711418152, 0.09397798776626587, -0.2399793118238449, -0.7025695443153381, 0.22329871356487274, -0.11403431743383408, 0.4213319420814514, -0.26412510871887207, 0.07041825354099274, 0.548805296421051, -0.2154291421175003, 1.0436375141143799, 0.0261937715113163, -0.5059553980827332, 0.19388428330421448, 0.022397393360733986, -0.0678505077958107, 0.3064129054546356, -0.10312822461128235, 0.2245272994041443, -0.01254903431981802, -0.17260371148586273, -0.5365868210792542, 0.9501700401306152, -0.9154784679412842, -0.9061797261238098, -0.4960789084434509, -0.13413403928279877, -0.06684949994087219, -0.032112497836351395, 0.1015908420085907, 0.3036041557788849, -0.16423074901103973, 0.3032841384410858, 0.21439780294895172, -0.2968701720237732, 0.17801164090633392, 0.1337863802909851, 0.024132734164595604, -0.45194828510284424, 0.3742809593677521, -0.14317215979099274, 0.21134673058986664, 0.28798606991767883, 0.280496209859848, 0.23510952293872833, 0.2546069324016571, 0.335400253534317, 0.6104793548583984, -1.0972557067871094, -0.2695556879043579, -0.7465911507606506, 0.24888285994529724, -0.44287756085395813, -0.4536806344985962, -0.324726402759552, -0.5644692182540894, -0.550445020198822, -0.20362496376037598, 0.3009341061115265, 0.4558124840259552, -0.1450686901807785, 0.2590555250644684, -0.5000004768371582, -0.0036454442888498306, 0.1691574901342392, 0.2277245968580246, -0.15579673647880554, -0.003161208238452673, -0.36769452691078186, -0.13037966191768646, -0.08608399331569672, -1.324747085571289, 0.37604448199272156, 0.2566007375717163, 0.2669365108013153, 0.7337177395820618, 0.17164801061153412, 0.8920392394065857, -0.1929478645324707, 0.9811747074127197, 0.09095743298530579, -1.246412992477417, 0.9065560698509216, -0.04027780145406723, 0.4472142159938812, 0.7321780323982239, 0.6289090514183044, -1.3561915159225464, -0.7641182541847229, -0.26762452721595764, -0.9525578618049622, 0.6797956824302673, 0.17558656632900238, 0.2740172743797302, -0.7439226508140564, 0.6297841668128967, 0.10485271364450455, 0.17950069904327393, -0.8136648535728455, -0.5583685040473938, -0.2971002161502838, 0.18756695091724396, -0.36087512969970703, -0.7451225519180298, -0.5848416090011597, -0.3455216884613037, 0.3851124942302704, 0.04959631338715553, 0.5415705442428589, 0.4056282639503479, 0.1481427699327469, -0.30248430371284485, 0.33834147453308105, 0.7362505197525024, 0.7147268056869507, -0.14834237098693848, 0.3966262638568878, -0.05197960510849953, -0.008810454048216343, -0.14259597659111023, -0.15361882746219635, 0.08645693957805634, 0.27096837759017944, 0.33435988426208496, 0.7947385907173157, 0.5616755485534668, -0.6607740521430969, 0.5184662938117981, -0.27151238918304443, -0.024060478433966637, -0.0657971054315567, -0.0400683656334877, 0.32046034932136536, 0.388466477394104, -0.017032790929079056, -0.10975668579339981, 0.14293985068798065, -0.8541742563247681, 0.13095629215240479, 0.4059031009674072, -0.705955982208252, -0.5890285968780518, 0.10664298385381699, 0.4164316654205322, -0.30243879556655884, 0.4379027485847473, 0.1973702609539032, -0.8439866304397583, 0.47126272320747375, 0.5084604024887085, 0.8928210139274597, -0.27381256222724915, 0.4689750373363495, 0.5402405858039856, -0.16556952893733978, 0.4098536968231201, 0.4417690634727478, -0.2418757677078247, -0.6060029864311218, -0.015547267161309719, -0.7165380120277405, -0.1683620810508728, -0.09455890208482742, -0.5434057116508484, 0.29640913009643555, -0.23133808374404907, -0.6313402056694031, -0.3766743242740631, -0.14544740319252014, -0.24579307436943054, 0.3943459093570709, 0.28444549441337585, 0.4163861572742462, -0.8974167704582214, 0.474046528339386, 0.8852039575576782, -0.20323042571544647, -0.12197310477495193, 0.2914773225784302, 0.005661983974277973, 0.1353134959936142, 0.962378740310669, 0.5392870903015137, -0.04582647606730461, -0.2502923011779785, -0.17596516013145447, -1.0084943771362305, 0.6326913237571716, -0.05777110531926155, 0.001847346662543714, 0.4446655809879303, 0.23183248937129974, 1.1029727458953857, -0.5259381532669067, 0.2123280018568039, 0.42221271991729736, 0.6326088309288025, -0.20039767026901245, -0.5757037401199341, 0.2964728772640228, -0.347099244594574, 0.005197705235332251, 0.4679759442806244, -0.5000131726264954, 1.0700843334197998, 0.38877713680267334, -0.8908141255378723, -0.2649836242198944, 0.245574489235878, -0.14152738451957703, -0.05026921257376671, 0.4173624515533447, 0.4104156792163849, 0.41609275341033936, -0.006833195220679045, 1.0068554878234863, -0.8109919428825378, 0.5512446761131287, 0.8071598410606384, -0.43587929010391235, 0.8326625823974609, 0.7216475605964661, -0.02469080686569214, 0.8022544384002686, 0.5655326843261719, 0.4621444642543793, 0.6863306760787964, 0.16933253407478333, -0.6114366054534912, -0.1480126827955246, -0.15158405900001526, -0.5241691470146179, 0.16421379148960114, 0.578162670135498, -0.450714111328125, -0.33547350764274597, 0.1987161785364151, 0.38328930735588074, 0.22876247763633728, 0.13940559327602386, 0.6903678774833679, 0.30517953634262085, -0.5379286408424377, 0.4501174986362457, 0.0537479929625988, 0.42001503705978394, -0.3112700879573822, 0.059406135231256485, -0.5006635785102844, 0.19456832110881805, -0.36788490414619446, -0.8213379383087158, 0.7940986156463623, 0.18978795409202576, -0.14227674901485443, -0.39347490668296814, 0.6819087266921997, -0.2283637970685959, -0.010828997008502483, 0.6425502896308899, 0.5775091648101807, 0.11745037883520126, -0.2600236237049103, -0.3903072476387024, 0.26364463567733765, -0.2142142802476883, -0.608745813369751, 0.5621161460876465, 0.993992030620575, 0.3576243221759796, 0.16696737706661224, -0.039934054017066956, -0.06082333251833916, -0.2818409204483032, 0.008934929035604, 0.9108787775039673, -1.0291595458984375, -0.360163152217865, -0.88345867395401, 0.5184802412986755, -0.020895903930068016, -0.6876041293144226, 0.9194927215576172, 0.1306723952293396, 0.5692020058631897, -0.07634865492582321, 0.6044970154762268, -0.5757876038551331, 0.4076537489891052, 0.018715616315603256, 0.6063008904457092, -0.7401772737503052, -0.06955437362194061, -0.7076938152313232, -0.8130440711975098, -0.5538473725318909, 0.9975551962852478, -0.5520161986351013, -0.14194956421852112, 0.9190101027488708, 0.3424931764602661, 0.3133856952190399, 0.28282850980758667, 0.34033292531967163, 0.43760842084884644, 0.13036444783210754, 0.32279640436172485, 0.9382770657539368, -0.15695956349372864, 0.015736807137727737, -0.6408271193504333, -0.3773380517959595, -0.1217198520898819, -0.7448816895484924, -0.8605325818061829, -0.6796948909759521, -0.557165801525116, -0.15909478068351746, -0.12432295083999634, 0.6800928115844727, -0.11796688288450241, -0.5743225812911987, -0.38815736770629883, -0.21336185932159424, 0.17239387333393097, -0.21236354112625122, -0.4073063135147095, 0.31528639793395996, -0.45013269782066345, -0.8757820129394531, 0.06501345336437225, 0.6243891716003418, -0.2902819514274597, -0.10845809429883957, 0.10135398805141449, -0.602848470211029, -0.0626586377620697, 1.0045154094696045, 0.02332436293363571, -0.6798487305641174, -0.4814929962158203, -0.3930521011352539, -0.3558792173862457, 0.319328248500824, 0.8871582746505737, -0.6368515491485596, 0.41904446482658386, 0.5543825030326843, 0.1478360891342163, -0.21158216893672943, 0.3735358417034149, 0.6499168872833252, -0.3920463025569916, 0.06236004829406738, 0.15001791715621948, 0.33233338594436646, 0.36231911182403564, -0.5798919796943665, 0.34275582432746887, 0.34475177526474, -0.6248528957366943, -0.6824648976325989, 0.3814367949962616, -0.7491848468780518, -0.658471941947937, 1.0592617988586426, -0.16871841251850128, -0.0027447217144072056, -0.18803633749485016, -0.5407915711402893, 0.17291446030139923, -0.6382032036781311, 1.2322611808776855, 1.0833643674850464, -0.37503522634506226, -0.3753078579902649, -0.4816255569458008, 0.6158075332641602, 0.5024245381355286, -0.8856414556503296, 0.24037940800189972, 0.6457214951515198, -0.3956761062145233, 0.11969023197889328, 0.48852792382240295, 0.07458337396383286, -0.1246974840760231, -0.32973262667655945, 0.05872888118028641, 1.081740379333496, 0.06934633105993271, -0.44325512647628784, 0.4443344473838806, -0.5424053072929382, 0.43701785802841187 ]
http://arxiv.org/abs/2405.18060v1
http://arxiv.org/pdf/2405.18060v1
PRFashion24: A Dataset for Sentiment Analysis of Fashion Products Reviews in Persian
2024-05-28T11:19:13
2024-05-28T11:19:13
Mehrimah Amirpour, Reza Azmi
cs.CL
cs.CL
The PRFashion24 dataset is a comprehensive Persian dataset collected from various online fashion stores, spanning from April 2020 to March 2024. With 767,272 reviews, it is the first dataset in its kind that encompasses diverse categories within the fashion industry in the Persian language. The goal of this study is to harness deep learning techniques, specifically Long Short-Term Memory (LSTM) networks and a combination of Bidirectional LSTM and Convolutional Neural Network (BiLSTM-CNN), to analyze and reveal sentiments towards online fashion shopping. The LSTM model yielded an accuracy of 81.23%, while the BiLSTM-CNN model reached 82.89%. This research aims not only to introduce a diverse dataset in the field of fashion but also to enhance the public's understanding of opinions on online fashion shopping, which predominantly reflect a positive sentiment. Upon publication, both the optimized models and the PRFashion24 dataset will be available on GitHub.
[ -0.6790667772293091, -0.6200791001319885, 0.053904518485069275, 0.48238125443458557, -0.7958760857582092, 0.27616652846336365, -0.4941152036190033, -0.5452865362167358, 0.14300920069217682, 0.06353462487459183, -1.0557496547698975, -0.7053454518318176, 0.009832805953919888, 0.1450258195400238, -0.2391977608203888, 1.1610792875289917, -0.008738173171877861, 0.5158556699752808, 0.015090543776750565, -0.2780020833015442, -0.1489466279745102, -0.5089783072471619, -0.5033516883850098, 0.12317255884408951, 0.5601210594177246, 0.35655996203422546, 0.7703961730003357, -0.23242799937725067, 0.6205583810806274, 0.24078011512756348, 0.09485489130020142, 0.46190372109413147, -0.4814285933971405, 0.0468951091170311, -0.21925005316734314, -0.24747179448604584, -0.43819659948349, -0.09268604964017868, 0.37169522047042847, 0.10038898885250092, -0.2394692599773407, 0.28068777918815613, 0.03989943116903305, 1.0856672525405884, -0.38200804591178894, -0.12781012058258057, 0.10709229856729507, 0.2518533766269684, -0.2618672549724579, 0.5548529624938965, -0.22464844584465027, -0.4178963005542755, 0.02212595008313656, -0.4705255627632141, 0.47159695625305176, -0.0011002033716067672, 0.9919535517692566, -0.1512664258480072, -0.376418799161911, -0.20665033161640167, -1.1750943660736084, 1.0815967321395874, -0.8929762840270996, 0.7732946276664734, 0.1752050817012787, 0.23372308909893036, 0.06865928322076797, -0.5889483690261841, -0.7434041500091553, -0.04215770587325096, -0.1172265037894249, 0.5625464916229248, -0.05225961282849312, -0.4392894506454468, -0.13962294161319733, 0.6923978924751282, -0.5782687067985535, -0.2739420235157013, -0.4434086084365845, 0.27116626501083374, 1.0703816413879395, 0.13640257716178894, -0.010820845142006874, -0.30023130774497986, -0.7275611758232117, 0.12097861617803574, -0.36414384841918945, -0.031864892691373825, 0.42842960357666016, 0.017277054488658905, -0.19455833733081818, 0.29001906514167786, -0.3975972533226013, 0.5608646869659424, 0.04991718754172325, 0.18057624995708466, 0.5790603756904602, -0.7502474784851074, -0.40717536211013794, -0.21684931218624115, 1.0709210634231567, 0.4678526222705841, 0.33507248759269714, 0.27492865920066833, -0.38132697343826294, -0.18916286528110504, 0.5798325538635254, -0.7113146185874939, -0.17247074842453003, 0.25500601530075073, -0.8002150654792786, -0.4872196912765503, 0.41132161021232605, -1.1864330768585205, -0.4837133288383484, -0.44193902611732483, 0.04564623907208443, -0.07122229784727097, -0.4155620336532593, 0.29936137795448303, 0.1912897229194641, 0.22569461166858673, 0.5457039475440979, 0.09882808476686478, 0.49246376752853394, 0.6136634349822998, 0.8758371472358704, -0.4985399842262268, 0.06387045979499817, 0.35421669483184814, -0.3700489401817322, -0.5616421103477478, 0.6937839388847351, -0.11151806265115738, -0.46793779730796814, -0.18989288806915283, 0.22749844193458557, 0.20686721801757812, -0.3415958881378174, 0.9768384099006653, -0.6076214909553528, 0.1116991713643074, -0.08221323788166046, -0.47997817397117615, -0.34513863921165466, 0.28778380155563354, -0.8042955994606018, 0.729718804359436, -0.1557498574256897, -0.7595700621604919, -0.0786329060792923, -0.3461560904979706, -0.5904889702796936, 0.0028326185420155525, 0.1466350257396698, -0.9919259548187256, 0.41968148946762085, 0.18006475269794464, 0.6940372586250305, -0.3437398672103882, -0.037132956087589264, -0.3271389901638031, -0.4754605293273926, 0.748500406742096, -0.18297570943832397, 0.5290140509605408, 0.5670314431190491, -0.3177545666694641, -0.032612841576337814, -0.5876896977424622, -0.4429088532924652, 0.38620874285697937, -0.1287216693162918, -0.1155887022614479, 0.004470248706638813, 0.20925705134868622, 0.28829124569892883, 0.4147679805755615, -0.7251676917076111, -0.04915826395153999, -0.47236350178718567, 0.22960489988327026, 1.081803321838379, 0.2712398171424866, 0.28694280982017517, -0.5228387117385864, 0.6426814198493958, 0.27850887179374695, 0.589942991733551, 0.29835090041160583, -0.43044808506965637, -0.9560266733169556, 0.03516290709376335, -0.10885586589574814, 0.45316454768180847, -0.39670848846435547, 0.1828254759311676, -0.04789850860834122, -0.8636976480484009, -0.1024402305483818, -0.05865761265158653, 0.2063181847333908, 0.3002323806285858, 0.24010150134563446, -0.32511961460113525, -0.4276057183742523, -1.0168293714523315, -0.42692044377326965, 0.168361097574234, 0.3141253590583801, 0.6226638555526733, 0.26817944645881653, -0.4156588017940521, 0.49530351161956787, -0.5301117897033691, -0.532102108001709, -0.3719812333583832, 0.11675801873207092, 0.8447485566139221, 0.3728354573249817, 0.3486936390399933, -1.1449215412139893, -0.4998868703842163, 0.06061431020498276, -0.22983461618423462, 0.3975337743759155, -0.21982735395431519, -0.28570306301116943, 0.23456671833992004, -0.11523011326789856, -0.7342603206634521, 0.5390700697898865, 0.3654508888721466, -0.30161353945732117, 0.8162246346473694, 0.21904511749744415, 0.37556031346321106, -1.4204294681549072, -0.2717670500278473, 0.6073627471923828, 0.018349455669522285, -0.6174550652503967, -0.1654638648033142, -0.10102084279060364, -0.28146523237228394, -0.7804573178291321, 0.25984978675842285, -0.30656325817108154, 0.010239898227155209, 0.051304373890161514, -0.36546391248703003, 0.4739185869693756, 0.6958062648773193, 0.24161286652088165, 0.8153029084205627, 0.12292801588773727, -0.44730690121650696, 0.8058069944381714, 0.5149685144424438, -0.792617917060852, 0.4329538643360138, -0.430937260389328, 0.23156046867370605, -0.15142042934894562, 0.24212543666362762, -0.9831172823905945, -0.20367786288261414, 0.41566744446754456, -0.5023568868637085, 0.27297377586364746, -0.016313590109348297, -0.43203750252723694, -0.5419518947601318, -0.5490460395812988, 0.3923359215259552, 0.45218175649642944, -0.34057506918907166, 0.5524485111236572, 0.17159679532051086, -0.0305588748306036, -0.34953635931015015, -0.6205400824546814, -0.1791076511144638, -0.2744472920894623, -0.4627249538898468, 0.20909787714481354, -0.4493001699447632, -0.41270723938941956, -0.3826749324798584, -0.17321981489658356, 0.1374494880437851, 0.10810897499322891, 0.27010786533355713, 0.606753945350647, -0.2387857884168625, 0.2870238423347473, -0.44414636492729187, 0.08345559239387512, 0.16734997928142548, -0.16548727452754974, 0.6086670160293579, -0.4855548143386841, -0.1258416771888733, -0.5888492465019226, 0.18171489238739014, 0.28512075543403625, -0.3268093764781952, 0.6348618865013123, 0.5911955237388611, -0.3354164659976959, -0.5289903879165649, -0.3596893846988678, 0.0619262233376503, -0.4648915231227875, 0.4761674106121063, -0.1309707909822464, -0.3641999661922455, 0.0959838256239891, -0.044565826654434204, -0.06620102375745773, 0.5099464058876038, 0.8194288611412048, -0.42797720432281494, 1.1972930431365967, 0.25498589873313904, -0.19128593802452087, 0.47515544295310974, -0.14469186961650848, 0.5094553828239441, -0.6182093620300293, -0.5123025178909302, -0.3119850158691406, -0.7486865520477295, -0.5853741765022278, -0.4985559582710266, 0.07798641920089722, 0.12793594598770142, -0.6597434282302856, 0.1976599097251892, -0.6435990333557129, 0.29464617371559143, 0.36437466740608215, 0.6394349336624146, -0.014400247484445572, 0.16896988451480865, 0.11120844632387161, -0.08695026487112045, -0.21039721369743347, -0.011867715045809746, 0.9085188508033752, 0.38021817803382874, 0.9646826386451721, 0.21076670289039612, 0.385821670293808, 0.6659982800483704, 0.00898555014282465, -1.0780725479125977, 0.4470931887626648, -0.6184409260749817, -0.4562012851238251, 0.0892794206738472, -0.25880396366119385, -0.40168628096580505, -0.5286931991577148, -0.12792831659317017, -0.2005493938922882, 0.7281856536865234, -0.2485637068748474, -0.33804184198379517, 0.15501165390014648, -0.14282123744487762, 0.6303757429122925, -0.8048557639122009, -0.7563555836677551, -0.39074912667274475, -0.4871475398540497, 0.39427801966667175, -0.180045023560524, 0.37384989857673645, -0.5341428518295288, 0.08428846299648285, 1.218639612197876, -0.24835194647312164, 0.5728269219398499, 0.07362972944974899, 0.07847906649112701, 0.07378503680229187, 0.0948495864868164, 0.4454294741153717, 0.06137103959918022, -0.17115773260593414, 0.4499471187591553, -0.2942449450492859, -0.1806478649377823, -0.24282893538475037, 0.8618735074996948, -1.1620252132415771, -0.4270453453063965, -0.7219113111495972, -0.051897384226322174, -0.6776303052902222, 0.014742586761713028, 0.19163323938846588, 0.4657980501651764, -0.24488228559494019, 0.30599361658096313, 0.7776528596878052, -0.24976977705955505, 0.29044976830482483, 0.30017587542533875, -0.289480984210968, -0.7002591490745544, 1.0458717346191406, 0.021569114178419113, -0.16426947712898254, 0.2644025981426239, 0.5859869718551636, -0.14664015173912048, -0.3436063528060913, -0.5184980034828186, 0.22202356159687042, -0.7477902770042419, -0.5147714018821716, -0.1937013566493988, -0.3398367166519165, -0.2100672572851181, 0.049331460148096085, -0.4638550281524658, -0.358948677778244, -0.3948650658130646, -0.2665047347545624, 0.7089449763298035, 1.0353487730026245, 0.08908861875534058, 0.28053179383277893, -0.8980732560157776, 0.38967204093933105, 0.23719045519828796, 0.3610318601131439, -0.01459329854696989, -0.24078962206840515, -0.6851952075958252, 0.22955074906349182, -0.08457659184932709, -0.8238514065742493, 0.7119931578636169, 0.31249651312828064, 0.25441524386405945, 0.8347993493080139, 0.19503207504749298, 0.5783310532569885, -0.16331791877746582, 0.9656899571418762, 0.3954298794269562, -0.6799875497817993, 0.4856693148612976, -0.435600608587265, 0.12416595220565796, 0.301681250333786, 0.839837908744812, -0.46583545207977295, -0.040642350912094116, -0.45609042048454285, -0.6253570318222046, 0.6823490858078003, 0.1045495942234993, 0.1471739262342453, -0.0666283369064331, 0.10730845481157303, 0.15873198211193085, 0.472152978181839, -0.3660328984260559, -0.3656107187271118, -0.5225993394851685, -0.5031964778900146, -0.2592914402484894, -0.4874565601348877, -0.08516774326562881, -0.4524346888065338, 0.8413918614387512, 0.20045113563537598, 0.38552263379096985, 0.038556624203920364, 0.08640920370817184, -0.06626249849796295, 0.07564159482717514, 0.5675321221351624, 0.842685878276825, -0.22954237461090088, -0.3260713219642639, 0.05192635953426361, -0.7063679695129395, -0.0500980019569397, -0.1161702424287796, -0.05437905341386795, 0.17338739335536957, 0.04709334298968315, 0.8999305367469788, 0.04370518773794174, -0.5998227000236511, 0.6808039546012878, -0.3868539035320282, 0.03911251947283745, -0.759566068649292, -0.23831091821193695, 0.029914632439613342, 0.19085735082626343, 0.48144230246543884, 0.2916084825992584, 0.31096431612968445, -0.46766671538352966, 0.4118881821632385, 0.2880920469760895, -0.46024850010871887, -0.43795323371887207, 0.47984397411346436, 0.13452744483947754, -0.14924649894237518, 0.644030749797821, 0.4060016870498657, -0.6630029678344727, 0.7277002334594727, 0.26180151104927063, 0.9411963224411011, -0.3042779862880707, 0.4921211302280426, 0.6975273489952087, -0.1568526178598404, -0.11112497746944427, 0.3059740960597992, -0.27561941742897034, -0.9213757514953613, -0.07695654779672623, -1.3671996593475342, -0.3121303915977478, -0.16442334651947021, -0.7873423099517822, 0.4404256343841553, -0.7315657734870911, -0.2433619201183319, -0.3281722366809845, 0.5119416117668152, -0.711506187915802, 0.9685802459716797, 0.3373839259147644, 0.8574001789093018, -0.6344671249389648, 0.7792784571647644, 0.49491065740585327, -0.4241698086261749, -0.8249295949935913, -0.06862006336450577, -0.08620508760213852, -0.7420899271965027, 0.5665146112442017, 0.2264890968799591, -0.2758595645427704, -0.245298370718956, -0.4690781235694885, -0.48388606309890747, 0.9581584930419922, -0.48833489418029785, -1.2030271291732788, 0.22660833597183228, 0.19605356454849243, 0.38799387216567993, -0.3562741279602051, -0.2027515470981598, 0.48837533593177795, 0.4501381814479828, 0.17195680737495422, -0.19789531826972961, -0.2953595817089081, -0.6034548282623291, -0.23864713311195374, 0.23631982505321503, -0.8667683005332947, 1.19514799118042, 0.23792195320129395, -0.19864194095134735, 0.25510600209236145, 0.552078127861023, -0.014628369361162186, 0.45254698395729065, 0.34907957911491394, 0.845230758190155, 0.5211706757545471, 0.002808724530041218, 0.8268744945526123, -0.2473091185092926, 0.5083824992179871, 1.013891577720642, -0.27139008045196533, 0.9420789480209351, 0.124188132584095, -0.45074114203453064, 0.7973697781562805, 0.7742657661437988, -0.31484106183052063, 0.5314276218414307, 0.11719972640275955, -0.5008280277252197, -0.458191454410553, -0.10924292355775833, -0.25427377223968506, 0.19100207090377808, 0.3514384329319, -0.27718299627304077, 0.08532731235027313, 0.18891958892345428, -0.11338095366954803, -0.14808624982833862, -0.6403475403785706, 1.1622503995895386, 0.3508773744106293, -0.055903296917676926, 0.31372472643852234, 0.10189351439476013, 0.402279257774353, -0.6765298247337341, 0.08459895104169846, -0.5142962336540222, 0.5205805897712708, -0.3963415324687958, -0.9540320634841919, 0.3569287061691284, -0.12902943789958954, -0.1324944645166397, -0.2121352106332779, 1.0420645475387573, 0.09140953421592712, -1.2209616899490356, 0.2139989733695984, 0.37370413541793823, -0.1758076697587967, 0.021297356113791466, -0.8993038535118103, 0.1297934204339981, 0.04244324564933777, -0.6120597124099731, 0.15621258318424225, 0.19182085990905762, -0.1273636817932129, 0.3941812515258789, 1.0369133949279785, 0.031871892511844635, -0.17167237401008606, 0.08413512259721756, 0.7711144685745239, -0.7755522727966309, -0.5468925833702087, -0.8780665993690491, 0.369698703289032, -0.3448663055896759, -0.11669643223285675, 1.1819583177566528, 0.7194620370864868, 0.8086985349655151, -0.3521551489830017, 0.603018581867218, 0.32519978284835815, 0.6381664872169495, -0.13546141982078552, 0.9961423873901367, -0.534601092338562, 0.16622713208198547, 0.036016128957271576, -0.7053475379943848, -0.24387945234775543, 0.838715136051178, -0.21858368813991547, -0.04783833399415016, 0.3780800402164459, 0.7641900777816772, 0.0398838184773922, 0.41656312346458435, 0.14990462362766266, 0.3479931950569153, -0.22203896939754486, 0.42827585339546204, 1.1677578687667847, -0.29632285237312317, 0.041508372873067856, -0.8131665587425232, 0.1277574896812439, -0.19752784073352814, -0.6015902161598206, -0.7469196915626526, -0.3655087947845459, -0.20062382519245148, -0.6196962594985962, 0.19087375700473785, 0.9042938947677612, 0.5529128909111023, -1.1595040559768677, -0.44715121388435364, -0.19000211358070374, 0.0733405351638794, -0.24734359979629517, -0.22912485897541046, 0.35563841462135315, 0.08978050947189331, -0.5701791048049927, 0.34189051389694214, 0.18396471440792084, -0.17081943154335022, -0.37357887625694275, -0.283329576253891, -0.22905804216861725, 0.5224302411079407, 0.43145790696144104, -0.1299842894077301, -0.15037602186203003, 0.13800892233848572, 0.0951523408293724, 0.017404841259121895, 0.25508782267570496, 0.8238478899002075, -0.8149382472038269, 0.20631179213523865, 0.788314700126648, 0.31214189529418945, 0.6082956790924072, 0.24618564546108246, 0.5728045701980591, -0.532591700553894, 0.0835580825805664, 0.5293987989425659, 0.3817666172981262, 0.36262524127960205, -0.4284694492816925, 0.28654929995536804, 0.3999629020690918, -0.47956568002700806, -0.366805762052536, 0.3565808832645416, -1.05551278591156, -0.5471747517585754, 0.9324790239334106, -0.16338379681110382, -0.5978487730026245, 0.1123228594660759, -0.2963939309120178, 0.2080335170030594, -0.22091682255268097, 0.6224170923233032, 0.39509689807891846, 0.118891142308712, -0.34366512298583984, -0.3046947419643402, 0.5416635274887085, -0.020963041111826897, -0.6320772767066956, -0.27064794301986694, 0.5820313692092896, 0.1593717485666275, -0.0719316303730011, 0.12278665602207184, 0.15211771428585052, 0.4687246084213257, -0.5703290700912476, -0.3126738369464874, -0.16524188220500946, -0.38778457045555115, -0.20678631961345673, 0.079586461186409, -0.2485477179288864, -0.29339829087257385 ]
http://arxiv.org/abs/2406.17789v1
http://arxiv.org/pdf/2406.17789v1
Spanish and LLM Benchmarks: is MMLU Lost in Translation?
2024-05-28T11:13:40
2024-05-28T11:13:40
Irene Plaza, Nina Melero, Cristina del Pozo, Javier Conde, Pedro Reviriego, Marina Mayor-Rocher, María Grandury
cs.CL
cs.CL, cs.AI
The evaluation of Large Language Models (LLMs) is a key element in their continuous improvement process and many benchmarks have been developed to assess the performance of LLMs in different tasks and topics. As LLMs become adopted worldwide, evaluating them in languages other than English is increasingly important. However, most LLM benchmarks are simply translated using an automated tool and then run in the target language. This means that the results depend not only on the LLM performance in that language but also on the quality of the translation. In this paper, we consider the case of the well-known Massive Multitask Language Understanding (MMLU) benchmark. Selected categories of the benchmark are translated into Spanish using Azure Translator and ChatGPT4 and run on ChatGPT4. Next, the results are processed to identify the test items that produce different answers in Spanish and English. Those are then analyzed manually to understand if the automatic translation caused the change. The results show that a significant fraction of the failing items can be attributed to mistakes in the translation of the benchmark. These results make a strong case for improving benchmarks in languages other than English by at least revising the translations of the items and preferably by adapting the tests to the target language by experts.
[ -0.21623894572257996, -0.4152321517467499, 0.5395336747169495, 0.6081295609474182, -0.26468729972839355, 0.3091386556625366, -0.30716753005981445, -0.6286316514015198, -0.0442831851541996, 0.19946154952049255, -0.7035670280456543, -0.2195146381855011, -0.7785319685935974, 0.3926064372062683, -0.3341207802295685, 0.8890821933746338, -0.6271706223487854, 0.3887490928173065, -0.3330889344215393, -0.5945008397102356, -0.5561866760253906, -0.6709170341491699, -0.6353522539138794, -0.6534057259559631, 0.5469297766685486, 0.28304874897003174, 0.49244239926338196, 0.6223704814910889, 0.573045015335083, 0.3158516585826874, -0.08270935714244843, 0.340347021818161, -0.635490357875824, -0.11707824468612671, -0.09481333196163177, -0.8123031854629517, -0.29243209958076477, 0.11996301263570786, 0.7645291090011597, 0.6950509548187256, -0.1288783848285675, 0.29085439443588257, 0.30127838253974915, 0.8306623697280884, -0.5337681770324707, 0.4477108120918274, -0.57340407371521, 0.23247142136096954, -0.22627267241477966, -0.44780927896499634, -0.26514381170272827, -0.3072374761104584, -0.4105418920516968, -0.27743491530418396, 0.31476515531539917, -0.013556534424424171, 0.7517213225364685, 0.5612095594406128, -0.45256906747817993, -0.4615894556045532, -0.5780979990959167, 0.9472417235374451, -0.7011008262634277, 0.6024139523506165, 0.13338929414749146, 0.43008092045783997, -0.5669792890548706, -0.15574556589126587, -0.30815815925598145, -0.28933608531951904, 0.08233311027288437, 0.2820686399936676, -0.17316529154777527, -0.20646721124649048, -0.02757960744202137, 0.395750492811203, -0.28968387842178345, 0.3448319137096405, -0.24461956322193146, -0.3632369339466095, 0.6393111348152161, 0.35371801257133484, -0.11851219832897186, 0.025914378464221954, -0.1692030131816864, -0.22840598225593567, -0.9648189544677734, 0.11366263031959534, 0.37406405806541443, 0.11432347446680069, -0.056937213987112045, 0.5674775838851929, -0.13544398546218872, 0.3517264425754547, -0.2670949399471283, -0.3960665464401245, 0.4602612257003784, -0.4956775903701782, -0.1728164702653885, -0.03481363505125046, 0.670604407787323, 0.4109290540218353, 0.3515704870223999, -0.33559650182724, -0.3058081567287445, -0.0016447592061012983, -0.059409115463495255, -0.5611850023269653, 0.20280751585960388, 0.16551366448402405, -0.32944634556770325, 0.08979631215333939, -0.22334523499011993, -0.16993407905101776, -0.2809332609176636, -0.2676684856414795, 0.056949421763420105, 0.0038653493393212557, -0.06565934419631958, 0.13578103482723236, 0.24942709505558014, 0.2556895613670349, 0.4480687081813812, -0.6065601706504822, 0.2983250021934509, 0.8274043798446655, 0.8569588661193848, -0.39050519466400146, -0.6107907295227051, -0.5560393333435059, -0.1189817413687706, -0.6181549429893494, 0.711852490901947, -0.07631871104240417, -0.35368216037750244, 0.0678769201040268, 0.29449787735939026, -0.39698782563209534, -0.7561994194984436, 0.6097861528396606, -0.4250394403934479, 0.0365801565349102, -0.5640661716461182, -0.41047781705856323, -0.29111218452453613, 0.4686720669269562, -0.444586843252182, 1.0385617017745972, -0.20689168572425842, -0.35257354378700256, 0.17992261052131653, -0.32347556948661804, -0.32164743542671204, -0.1434318721294403, -0.10573266446590424, -0.1722518503665924, 0.34872666001319885, 0.1476336270570755, 0.5191676616668701, -0.6639820337295532, 0.2709033489227295, -0.15485265851020813, -0.3408452272415161, 0.5236450433731079, -0.5535285472869873, 0.3411775529384613, 0.14769792556762695, -0.31944262981414795, 0.011081582866609097, -0.5036760568618774, 0.019252467900514603, -0.03936281055212021, -0.6589710116386414, 0.03261720389127731, 0.12379898875951767, 0.2430846095085144, 0.4051723778247833, 0.42980945110321045, -0.5798947811126709, -0.07923845201730728, -0.2670241892337799, 0.23684807121753693, 0.6810176372528076, -0.250196248292923, 0.2122957557439804, -0.35244107246398926, 0.7679376602172852, -0.1270899772644043, 0.09657557308673859, 0.026890451088547707, -0.5839771628379822, -0.8891905546188354, 0.20150059461593628, 0.21289516985416412, 0.6350739002227783, -0.5774449110031128, -0.07095029205083847, -0.3250289559364319, -0.492244154214859, -0.8431021571159363, 0.41842329502105713, 0.49027007818222046, 0.37753719091415405, 0.2259114384651184, -0.13684037327766418, -0.3844241797924042, -0.8634530305862427, -0.38981732726097107, -0.22541068494319916, -0.01016858872026205, 0.28773805499076843, 0.5122666358947754, -0.2813655734062195, 0.2978169322013855, -0.06929178535938263, -0.5704833269119263, -0.41559097170829773, 0.06506521999835968, 0.5169154405593872, 0.27003800868988037, 0.461130827665329, -0.6202368140220642, -0.5025193095207214, 0.4334471523761749, -0.7575485706329346, -0.31778451800346375, -0.13921114802360535, 0.15378573536872864, 0.24349868297576904, 0.6562078595161438, -0.17718006670475006, 0.09039326012134552, 1.0422289371490479, -0.09404174983501434, 0.7262163758277893, -0.5389724969863892, 0.4844943583011627, -0.8311788439750671, -0.05647636950016022, -0.14522744715213776, -0.2802048325538635, -0.2833652198314667, 0.26762107014656067, 0.5066580176353455, 0.2917822301387787, -0.7728884220123291, 0.555860698223114, -0.4220268130302429, -0.2777315676212311, -0.33783817291259766, -0.017758438363671303, -0.01692805625498295, 0.38719406723976135, -0.3212958574295044, 1.1085915565490723, 0.30071622133255005, -0.4994308650493622, 0.25521939992904663, 0.05441877245903015, -0.3753107488155365, 0.5286174416542053, -0.6393164992332458, 0.018740247935056686, -0.13266374170780182, 0.06598807871341705, -0.8743218779563904, 0.08737929165363312, 0.06738434731960297, -0.19721992313861847, 0.0002917812380474061, -0.1673298180103302, -0.8470079898834229, -0.34082239866256714, -0.22439995408058167, 0.02960958145558834, 0.20742550492286682, -0.5280609726905823, 0.3062959909439087, 0.25406691431999207, 0.1276838630437851, -0.7483169436454773, -0.9054796099662781, 0.22500190138816833, -0.2141633778810501, -0.5487174391746521, 0.2441776990890503, -0.4215392470359802, -0.0476633757352829, -0.18053649365901947, -0.35921376943588257, -0.1406589299440384, 0.2755593955516815, 0.24543967843055725, 0.0038169557228684425, -0.4698337912559509, 0.17530851066112518, -0.01924734376370907, -0.2196369767189026, 0.19449761509895325, 0.11375773698091507, 0.587043285369873, -0.6007980108261108, -0.5217320919036865, -0.2589713931083679, 0.13184930384159088, 0.963839590549469, -0.2782028019428253, 0.781144917011261, 0.47013846039772034, -0.15634141862392426, 0.13313433527946472, -0.9578215479850769, 0.2427656203508377, -0.44609537720680237, 0.44855237007141113, -0.787297248840332, -0.6459667086601257, 0.9762672185897827, -0.07849854230880737, 0.11617815494537354, 0.512299120426178, 0.7495101690292358, -0.24973569810390472, 1.0216386318206787, 0.6550755500793457, -0.282988578081131, 0.2494804412126541, -0.19534099102020264, 0.03586606681346893, -0.8886342644691467, -0.2918705344200134, -0.6255528330802917, -0.4266681969165802, -0.5614014267921448, -0.49116307497024536, 0.3377677798271179, -0.00007285579340532422, 0.4548782408237457, 0.4796765446662903, 0.11219697445631027, 0.715607225894928, 0.11569365113973618, -0.22610895335674286, 0.5944854021072388, -0.24739451706409454, -0.3073159158229828, -0.26664650440216064, -0.7550231218338013, -0.5529068112373352, 1.0291885137557983, 0.3948459029197693, 0.672315776348114, 0.2718439996242523, 0.5402796268463135, 0.11744063347578049, 0.4315788149833679, -0.8859109878540039, 0.430713415145874, -0.1269456446170807, -0.15307195484638214, 0.014119950123131275, -0.48651444911956787, -1.2176939249038696, 0.7338735461235046, 0.0012140058679506183, -0.350774347782135, 0.03037741594016552, -0.12632083892822266, 0.01515949983149767, 0.13879148662090302, -0.7042326927185059, 1.153823733329773, -0.4205440282821655, -0.27190354466438293, -0.4278779923915863, -0.02589639090001583, 0.20087692141532898, -0.37856850028038025, 0.5023351907730103, -0.5877859592437744, -0.27804991602897644, 0.9157422184944153, -0.33478716015815735, 0.4154563844203949, 0.13208021223545074, -0.21476097404956818, -0.16555239260196686, 0.04022638127207756, 0.46467703580856323, -0.0014604299794882536, -0.3385685086250305, 0.17442330718040466, 0.12613679468631744, -0.5645239949226379, -0.40770888328552246, 0.9800355434417725, -0.786522388458252, -0.4883650243282318, -0.345640629529953, -0.7767059206962585, -0.22086314857006073, 0.05566057190299034, 0.07193172723054886, 0.1281549334526062, -0.31634318828582764, 0.11378808319568634, 0.34157365560531616, -0.16152366995811462, 0.516489565372467, 1.03853178024292, 0.012624240480363369, 0.0142001798376441, 0.5940353870391846, 0.21611514687538147, 0.13792018592357635, 0.10902819037437439, 0.2850588262081146, -0.5514549612998962, -0.7691088318824768, -0.6884052753448486, 0.5600165724754333, -0.934594452381134, -0.004690202884376049, -0.5883005261421204, 0.16117841005325317, -0.11311343312263489, -0.0657084658741951, -0.6887066960334778, -0.007706909440457821, -0.09848993271589279, 0.032512687146663666, 0.15327095985412598, 0.7257706522941589, 0.09756014496088028, 0.22974838316440582, -0.8773788809776306, 0.19005870819091797, -0.06803661584854126, 0.26290902495384216, 0.07702358812093735, -0.7076163291931152, -0.41703760623931885, -0.05183543264865875, -0.08838444948196411, -0.7594814300537109, 0.42745012044906616, 0.16445766389369965, 0.7405981421470642, 0.09361594915390015, -0.3293682336807251, 0.9938536882400513, -0.6783825159072876, 0.33026519417762756, 0.04378237947821617, -0.6945276260375977, 0.2533702850341797, -0.14382870495319366, 0.7315826416015625, 0.7119130492210388, 0.3953038454055786, -1.0013240575790405, -0.7578442692756653, -0.4150065779685974, -0.6753606796264648, 0.46529150009155273, 0.03457055985927582, 0.14412827789783478, 0.0022778529673814774, -0.025998570024967194, 0.20623774826526642, 0.36423954367637634, -0.7136997580528259, -0.3343880772590637, 0.281242311000824, 0.07235326617956161, -0.4341249465942383, -0.10593422502279282, 0.0776996910572052, -0.18417342007160187, 0.6542240977287292, -0.0024713589809834957, -0.09309247136116028, -0.08362137526273727, -0.5365890860557556, -0.10555045306682587, 0.36546164751052856, 0.5238626599311829, 0.827455461025238, -0.11261418461799622, -0.031496088951826096, 0.29748740792274475, -0.4004121422767639, 0.25790050625801086, -0.040189314633607864, 0.16436180472373962, 0.19103644788265228, 0.22219158709049225, 0.4489020109176636, 0.5388827919960022, -0.983282208442688, 0.3536272644996643, -0.1178247481584549, 0.012402402237057686, -0.3859158754348755, -0.21033109724521637, 0.2749081254005432, 0.17860738933086395, 0.54137122631073, 0.1631072461605072, -0.0917179211974144, -0.6836050748825073, -0.05679428577423096, 0.2227349728345871, -0.26562967896461487, -0.15629799664020538, 0.7558907866477966, 0.17612944543361664, -0.18799424171447754, 0.4438827633857727, -0.2746293544769287, -0.6416671872138977, 0.7334365844726562, 0.40111011266708374, 0.7020344734191895, -0.26749101281166077, 0.13721755146980286, 0.23668889701366425, 0.6914581060409546, -0.37667566537857056, 0.14248308539390564, 0.22386987507343292, -0.6179914474487305, -0.8139150142669678, -0.46750426292419434, -0.6469204425811768, 0.1520521640777588, -0.39526650309562683, 0.0867035910487175, -0.029277369379997253, 0.18286949396133423, -0.06389232724905014, 0.02589784935116768, -0.9366863965988159, -0.003095457563176751, -0.0010944937821477652, 0.7015522122383118, -1.1447995901107788, 0.9201455116271973, 0.5051023960113525, -0.1737646907567978, -0.5514223575592041, -0.4660743474960327, 0.08285040408372879, -0.9152284860610962, 0.6471490263938904, 0.12145443260669708, -0.09505311399698257, -0.26134371757507324, 0.2175188511610031, -1.047243595123291, 0.7381383180618286, 0.5262267589569092, -0.6300669312477112, 0.42804840207099915, 0.5139180421829224, 0.7405720949172974, -0.19406163692474365, 0.3289463222026825, 0.7167206406593323, 0.4623368978500366, -0.12669391930103302, -1.4021281003952026, -0.029742131009697914, -0.24104388058185577, -0.30638381838798523, 0.35087260603904724, -0.5587146878242493, 0.9754633903503418, -0.16000351309776306, -0.16946180164813995, 0.061627406626939774, 0.32838016748428345, 0.0032875915057957172, 0.4139564633369446, 0.12930506467819214, 0.3464813828468323, 0.8300843238830566, -0.2368415743112564, 1.2773469686508179, -0.12320628762245178, 0.32100245356559753, 1.199244499206543, -0.29777687788009644, 1.1259799003601074, 0.6020498275756836, -0.3224959373474121, 0.03790651261806488, 0.758168637752533, -0.10090376436710358, 0.25213855504989624, 0.21529100835323334, -0.12305064499378204, 0.12933094799518585, -0.11186078935861588, -0.459401935338974, 0.4163568615913391, 0.3602888882160187, -0.23061010241508484, -0.4691961407661438, 0.18337030708789825, 0.1643289476633072, 0.196341410279274, -0.3832157552242279, 0.48578882217407227, 0.05871553346514702, -0.7665732502937317, 1.0562750101089478, 0.31148290634155273, 0.7186021208763123, -0.5299423336982727, 0.2563481032848358, -0.6553427577018738, 0.2863532304763794, -0.20439542829990387, -0.6876910328865051, 0.5109609365463257, 0.03700745478272438, -0.07071295380592346, -0.5303746461868286, 0.10004846006631851, -0.34658095240592957, -0.6792377233505249, 0.48393628001213074, 0.783831000328064, 0.6507130265235901, -0.2602739632129669, -0.9263473749160767, 0.28113409876823425, -0.015039742924273014, -0.03995180130004883, 0.40722212195396423, 0.179281085729599, -0.10407983511686325, 0.9401581883430481, 0.6814461350440979, 0.2733057141304016, 0.3874468505382538, 0.28374922275543213, 0.45927414298057556, -0.4099728763103485, -0.3935324549674988, -0.9061747789382935, 0.10974301397800446, 0.12254417687654495, -0.36449190974235535, 1.004132628440857, 0.7119849920272827, 0.9665126204490662, -0.3389956057071686, 0.3905235230922699, 0.3689039647579193, 0.2864370346069336, -0.5296120643615723, 0.7650771737098694, -0.547720193862915, 0.25486212968826294, -0.15701456367969513, -1.2978789806365967, -0.09632972627878189, 0.2729116678237915, -0.2616827189922333, -0.4658910632133484, 1.1460621356964111, 0.8124182224273682, -0.013836605474352837, -0.3903539180755615, 0.6139973402023315, 0.26559653878211975, 0.3777819871902466, 0.8481031656265259, 0.6455674767494202, -0.8051993250846863, 0.8915278315544128, -0.2018921822309494, -0.06614986062049866, -0.1798209398984909, -0.8286656737327576, -0.7121182084083557, -0.4468018412590027, -0.48227599263191223, -0.06791835278272629, -0.03251878172159195, 0.52011638879776, 0.25595757365226746, -0.8674586415290833, -0.6914998888969421, 0.015536931343376637, 0.33571693301200867, -0.4456288814544678, -0.13853947818279266, 0.2876780331134796, -0.3575185537338257, -0.9167442917823792, 0.7263362407684326, 0.26976701617240906, 0.045562513172626495, -0.16847378015518188, -0.2822399139404297, -0.10776480287313461, -0.14101308584213257, 0.533299446105957, 0.36257001757621765, -1.0417265892028809, 0.010986448265612125, 0.08318975567817688, -0.07808146625757217, 0.25007322430610657, 0.686454176902771, -0.7302504181861877, 0.4362940192222595, 0.32895761728286743, 0.8983201384544373, 0.6387659907341003, -0.4135783314704895, 0.6836704611778259, -0.5935004949569702, 0.36600008606910706, 0.021663734689354897, 0.6646414995193481, 0.5033278465270996, -0.0452057309448719, 0.7389928102493286, 0.07834383845329285, -0.4020242691040039, -0.7603455781936646, 0.048249419778585434, -0.7561563849449158, -0.004960875958204269, 1.0386096239089966, -0.15618731081485748, -0.20220685005187988, -0.296938955783844, -0.12879306077957153, -0.0023159917909651995, -0.12632352113723755, 0.8987522125244141, 1.0053026676177979, 0.06786500662565231, -0.14051657915115356, -1.1311824321746826, 0.2983575463294983, 0.6558781266212463, -0.6862305998802185, 0.04467691481113434, 0.1231049969792366, 0.20807898044586182, 0.03155222535133362, 0.5777754187583923, -0.11017156392335892, 0.5011736154556274, -0.32622212171554565, -0.057699739933013916, 0.11636742204427719, 0.017804821953177452, -0.21929897367954254, -0.08243155479431152, 0.34257644414901733, -0.39725053310394287 ]
http://arxiv.org/abs/2405.18035v2
http://arxiv.org/pdf/2405.18035v2
Instruction Tuning with Retrieval-based Examples Ranking for Aspect-based Sentiment Analysis
2024-05-28T10:39:10
2024-05-29T06:35:46
Guangmin Zheng, Jin Wang, Liang-Chih Yu, Xuejie Zhang
cs.CL
cs.CL
Aspect-based sentiment analysis (ABSA) identifies sentiment information related to specific aspects and provides deeper market insights to businesses and organizations. With the emergence of large language models (LMs), recent studies have proposed using fixed examples for instruction tuning to reformulate ABSA as a generation task. However, the performance is sensitive to the selection of in-context examples; several retrieval methods are based on surface similarity and are independent of the LM generative objective. This study proposes an instruction learning method with retrieval-based example ranking for ABSA tasks. For each target sample, an LM was applied as a scorer to estimate the likelihood of the output given the input and a candidate example as the prompt, and training examples were labeled as positive or negative by ranking the scores. An alternating training schema is proposed to train both the retriever and LM. Instructional prompts can be constructed using high-quality examples. The LM is used for both scoring and inference, improving the generation efficiency without incurring additional computational costs or training difficulties. Extensive experiments on three ABSA subtasks verified the effectiveness of the proposed method, demonstrating its superiority over various strong baseline models. Code and data are released at https://github.com/zgMin/IT-RER-ABSA.
[ -0.34512436389923096, -1.0025924444198608, 0.5904695987701416, 0.001110099838115275, -0.6497583985328674, -0.1265535056591034, -0.255059152841568, -0.043308548629283905, 0.2107681781053543, 0.6447136998176575, -0.5005859136581421, -0.9424221515655518, -0.24512329697608948, -0.08216726034879684, -0.2599656581878662, 1.1347390413284302, 0.15391454100608826, 0.1641765832901001, -0.3783142566680908, -0.18220935761928558, -0.6560558676719666, -0.5416693091392517, -0.6676220297813416, -0.09692017734050751, 0.2419702708721161, 0.7855785489082336, 0.23054920136928558, 0.5792603492736816, 0.41461387276649475, 0.2826712429523468, -0.015712952241301537, 0.05650464445352554, -0.27080756425857544, 0.2821398675441742, -0.4037880599498749, -0.5859442353248596, -0.30800750851631165, 0.04968852177262306, 0.5684320330619812, 0.6171801090240479, -0.26959243416786194, 0.17774565517902374, 0.17287299036979675, 0.7444314360618591, -0.6945111155509949, 0.38947340846061707, -0.6673805117607117, -0.10695529729127884, 0.04385799914598465, -0.21099941432476044, -0.5699087381362915, -0.5757565498352051, -0.027919383719563484, -0.31600427627563477, 0.42903292179107666, 0.15804216265678406, 0.7445306777954102, 0.056554585695266724, -0.09155351668596268, -0.479890376329422, -0.4070548713207245, 1.1276500225067139, -0.8521360754966736, 0.20240455865859985, 0.3720385432243347, 0.06323539465665817, 0.14962653815746307, -0.3872276246547699, -0.3259236216545105, -0.12374864518642426, 0.07503189146518707, 0.3044910430908203, 0.053163010627031326, 0.12759600579738617, 0.04334866255521774, 0.5889686346054077, -0.297991544008255, 0.2744850814342499, -0.25413039326667786, 0.12599387764930725, 0.4680255651473999, 0.08613365143537521, -0.02687135338783264, -0.4473288953304291, -0.2074674665927887, -0.360251784324646, -0.9189290404319763, 0.2649550437927246, 0.43874743580818176, 0.643149733543396, 0.03356572613120079, 0.5535616874694824, -0.21916697919368744, 0.7099642753601074, 0.2661052346229553, 0.10200276225805283, 0.37895023822784424, -0.008111074566841125, -0.05757804214954376, 0.1280931830406189, 0.5426838994026184, 0.4878618121147156, -0.298992782831192, -0.011896571144461632, -0.44564709067344666, -0.19009952247142792, 0.6427624821662903, -0.9212777018547058, -0.16559578478336334, -0.040761549025774, -0.4297793507575989, -0.09644883871078491, 0.31150636076927185, -1.013674259185791, -0.21741577982902527, -0.4996431767940521, 0.5253525376319885, -0.6714767217636108, 0.09065205603837967, -0.34990739822387695, 0.2246476709842682, 0.5350980162620544, 0.031204909086227417, -0.8172228932380676, -0.021738192066550255, 1.0006728172302246, 0.6636343598365784, -0.10749704390764236, 0.0036924113519489765, -0.7708728909492493, -0.3973042368888855, -0.5327218770980835, 0.7944077849388123, -0.8637793660163879, -0.5787662267684937, 0.2603813409805298, -0.09547419846057892, -0.05762898549437523, -0.7125375270843506, 0.4904863238334656, -0.6146169900894165, 0.36924681067466736, -0.19126342236995697, -0.7143450975418091, -0.5032686591148376, 0.2559657394886017, -0.39200934767723083, 1.0030781030654907, 0.23071107268333435, -0.28082743287086487, 0.2233532965183258, -0.452058345079422, -0.5102485418319702, -0.09893664717674255, -0.27649861574172974, -0.7211929559707642, 0.4294361472129822, 0.2918887138366699, 0.49769511818885803, -0.11737135052680969, -0.15030618011951447, 0.03360334038734436, -0.3555302619934082, 0.08382824808359146, -0.32208722829818726, 0.18104201555252075, 0.17343564331531525, -0.3673648536205292, 0.1984885185956955, -0.37460511922836304, 0.19299721717834473, -0.3281596601009369, -0.2757568657398224, -0.7328705191612244, -0.012898579239845276, -0.3819679319858551, -0.016244158148765564, 0.3246534764766693, -0.48602309823036194, 0.251234769821167, -0.6428624391555786, -0.06302393972873688, 0.6520931720733643, 0.4522659182548523, 0.35133540630340576, -0.14288225769996643, 0.6287367939949036, 0.16754145920276642, 0.1295691430568695, -0.25835317373275757, -0.3008660674095154, -0.8844132423400879, -0.1974789947271347, 0.3174617290496826, 0.4228866398334503, -1.0672557353973389, 0.6495510935783386, -0.20550209283828735, -0.4477556049823761, -0.7805861234664917, 0.39342039823532104, 0.843956708908081, 0.6003482341766357, 0.5816890597343445, -0.5059037208557129, -0.14124178886413574, -0.9938036203384399, -0.14505885541439056, -0.02179475501179695, 0.06677494198083878, 0.5436272025108337, 0.12790410220623016, 0.2935040295124054, 0.8765729069709778, -0.6038784980773926, -0.2969840168952942, -0.47967877984046936, 0.4765521287918091, 0.3515012264251709, 0.3387298583984375, 0.5425364375114441, -0.7047593593597412, -0.3842483460903168, -0.16098234057426453, -0.568827211856842, -0.028356244787573814, 0.033310528844594955, -0.22998112440109253, 0.31536710262298584, 0.3780054450035095, -0.06861308217048645, 0.32993897795677185, 0.20289725065231323, -0.23411236703395844, 0.24414008855819702, -0.2068234235048294, 0.44599640369415283, -1.395681381225586, -0.33145344257354736, 0.3286273181438446, -0.05221683159470558, -0.3923463821411133, 0.24990488588809967, 0.07308177649974823, -0.06346456706523895, -0.46339666843414307, 0.21532699465751648, -0.504759669303894, -0.07909173518419266, -0.6953915953636169, 0.10635325312614441, -0.004679299890995026, 0.6648477911949158, 0.0722789540886879, 0.9413287043571472, 0.4534779489040375, -0.6557133197784424, -0.0172450989484787, 0.02173503488302231, -0.5019199252128601, 0.721687376499176, -0.46537232398986816, 0.400133341550827, -0.23237738013267517, -0.26263585686683655, -0.5613735914230347, 0.1265202909708023, 0.19667449593544006, -0.08789592981338501, 0.599395215511322, -0.22195960581302643, -0.14377890527248383, -0.013206800445914268, -0.6025537252426147, 0.08774108439683914, 0.637687623500824, -0.6470276713371277, 0.5928040742874146, 0.09842460602521896, -0.4398540258407593, -0.7134737968444824, -0.08653377741575241, -0.19178685545921326, -0.30655181407928467, 0.09050871431827545, 0.484543114900589, 0.04130174219608307, -0.15659292042255402, 0.11806899309158325, -0.24313651025295258, 0.11260831356048584, 0.10323459655046463, 0.29092875123023987, 0.261552095413208, -0.4086146354675293, 0.11773955821990967, 0.5565454959869385, 0.10285933315753937, 0.023764384910464287, 0.06955123692750931, 0.5022926330566406, -0.2999776601791382, -0.4430687129497528, -0.45096227526664734, 0.4377829432487488, 0.1438877135515213, -0.3499137759208679, 0.8688292503356934, 0.3199281096458435, -0.09000321477651596, -0.5382766723632812, -0.3493257462978363, -0.4196474850177765, -0.4774136245250702, 0.5649603009223938, -0.184421569108963, -0.4299943745136261, 0.2247025966644287, 0.018656708300113678, 0.2482147514820099, 0.20452876389026642, 0.2889758050441742, -0.07547932863235474, 0.8307883739471436, 0.6040465235710144, -0.35124585032463074, 0.9550197124481201, -0.5693718194961548, 0.21254871785640717, -0.9890092015266418, -0.12987302243709564, -0.5712771415710449, -0.22178739309310913, -0.26277753710746765, -0.3551226556301117, 0.3467957377433777, 0.40733852982521057, -0.13015243411064148, 0.19827865064144135, -0.5072953104972839, 0.5823231339454651, 0.7111352682113647, 0.34926798939704895, 0.14833901822566986, 0.1164541244506836, 0.14470599591732025, 0.01563386432826519, -0.39456707239151, -0.5785003304481506, 0.8883434534072876, -0.06322170048952103, 0.7020831108093262, 0.23371556401252747, 0.8596137762069702, 0.4035123884677887, 0.6339075565338135, -1.0522335767745972, 0.5510629415512085, -0.6252920031547546, -0.14113400876522064, -0.1285589188337326, -0.4608900547027588, -0.7273706197738647, 0.09253385663032532, 0.03677951171994209, -0.5435969233512878, 0.08797844499349594, 0.09380008280277252, -0.20954389870166779, 0.04620669409632683, -0.6832485198974609, 0.7426455020904541, -0.2808060646057129, -0.3570060729980469, -0.42448171973228455, -0.21302804350852966, 0.0609922856092453, 0.18904463946819305, 0.09317080676555634, 0.07434669882059097, 0.1658574640750885, 0.6798518896102905, -0.32196831703186035, 0.8935986161231995, -0.49532341957092285, -0.04839802905917168, 0.48553267121315, -0.12072352319955826, 0.239907369017601, 0.04649798199534416, -0.3888460099697113, -0.04967367649078369, -0.29359832406044006, -0.2131442129611969, -0.9779726266860962, 0.8126925826072693, -0.7428357601165771, -0.8346675038337708, -0.16786395013332367, -0.19223198294639587, -0.2947518825531006, 0.022692540660500526, 0.28856074810028076, 0.7413893938064575, -0.01600297912955284, 0.4891025722026825, 0.7205137610435486, -0.20893080532550812, 0.33733832836151123, 0.7426395416259766, -0.05396239459514618, -0.25177261233329773, 1.3232207298278809, -0.032226771116256714, 0.026479166001081467, 0.7331711053848267, 0.028404241427779198, -0.338996022939682, -0.6851646304130554, -0.46473345160484314, 0.10114837437868118, -0.6829732060432434, -0.5721823573112488, -0.05821368470788002, -0.1375335156917572, -0.10809268057346344, -0.06874825805425644, -0.4287694990634918, -0.08170097321271896, -0.471608430147171, -0.26057130098342896, 0.45366036891937256, 0.6001895070075989, 0.37328019738197327, 0.32417353987693787, -0.6763144135475159, 0.1492152065038681, 0.1647447943687439, 0.37913113832473755, 0.15341150760650635, -0.6066308617591858, -0.45607754588127136, 0.09103704243898392, -0.6054953932762146, -0.911826491355896, 0.324412077665329, 0.4270562529563904, 0.7664169073104858, 0.49744313955307007, 0.2405889928340912, 0.34320715069770813, -0.29071345925331116, 0.884971022605896, -0.17009519040584564, -0.9916751384735107, 0.869852602481842, 0.07636706531047821, -0.07457008957862854, 0.7824644446372986, 0.41064584255218506, -0.2506760060787201, -0.5112155675888062, -0.3046657145023346, -1.1207787990570068, 0.7770450115203857, -0.10313313454389572, 0.4355304539203644, -0.23111113905906677, 0.7926255464553833, 0.33777570724487305, 0.25370538234710693, -0.25993192195892334, -0.4243753254413605, -0.5079677700996399, -0.7002280354499817, 0.0851009264588356, -0.17704086005687714, 0.10318909585475922, -0.03892042115330696, 1.1007201671600342, -0.30253127217292786, 0.11549380421638489, -0.029637811705470085, -0.23470602929592133, 0.29482749104499817, 0.5857439041137695, 0.2704518735408783, 0.48571157455444336, -0.1465616673231125, -0.1467914581298828, -0.008836842142045498, -0.4587881863117218, 0.03216049447655678, 0.08591022342443466, -0.33160385489463806, -0.11261101812124252, 0.14275199174880981, 0.9288232326507568, 0.3764221668243408, -0.49727126955986023, 0.49911466240882874, 0.015845706686377525, 0.146810382604599, -0.1724596470594406, 0.42386001348495483, -0.24777835607528687, 0.22199781239032745, 0.541731059551239, -0.4618666172027588, 0.2395162135362625, -0.5830561518669128, 0.11401411890983582, 0.5188591480255127, -0.5805327296257019, -0.2775205075740814, 0.16174696385860443, 0.2268543243408203, -0.4405750632286072, 0.9107218980789185, -0.5231611132621765, -0.3450195789337158, 0.6263894438743591, 0.4091223180294037, 0.8445205688476562, -0.29208704829216003, 0.4305940866470337, 0.28032180666923523, 0.011218167841434479, 0.14517900347709656, 0.42833754420280457, -0.09991101175546646, -0.6096076965332031, -0.19289378821849823, -0.7075591683387756, -0.6754136085510254, 0.1615322232246399, -1.2656524181365967, 0.024170046672225, -0.31951287388801575, -0.05676092952489853, -0.17825904488563538, 0.07572940737009048, -0.3739614486694336, 0.15643742680549622, -0.12488880008459091, 0.5373592972755432, -0.8059941530227661, 0.6402076482772827, 1.0028408765792847, -0.6133767366409302, -0.8232873678207397, 0.22777339816093445, -0.3298044800758362, -0.4038689136505127, 0.19930268824100494, 0.3013998568058014, -0.16650648415088654, -0.2049834132194519, -0.3592284321784973, -0.4730142652988434, 1.050013780593872, 0.19832895696163177, -0.4558517038822174, 0.2565334737300873, -0.20214134454727173, 0.6114462614059448, -0.5544344186782837, 0.22958579659461975, 0.4490243196487427, -0.0627598986029625, -0.20303857326507568, -0.311809778213501, -0.07808432728052139, -0.22227005660533905, 0.06722385436296463, 0.2325574904680252, -0.8002316355705261, 0.721681535243988, -0.06439266353845596, -0.03196974843740463, 0.24468904733657837, 1.1049566268920898, 0.3951849341392517, 0.48802754282951355, 0.5363844633102417, 0.33864304423332214, 0.43620774149894714, -0.02750588394701481, 0.9157459735870361, -0.4184861481189728, 0.3601568341255188, 1.1276991367340088, -0.20322495698928833, 1.1130644083023071, 0.1915479302406311, 0.04717012494802475, 1.019298791885376, 0.4806041717529297, 0.04615456238389015, 0.6857848763465881, -0.05417244881391525, -0.25215867161750793, -0.2609100937843323, -0.1428975611925125, -0.2753486633300781, 0.5865396857261658, 0.6104347109794617, -0.6135183572769165, -0.19961242377758026, 0.18562449514865875, -0.025111058726906776, 0.3769834041595459, -0.6190561056137085, 0.9457760453224182, 0.1334965080022812, -0.8482069373130798, 0.26000159978866577, 0.1858828067779541, 0.715002715587616, -0.4592287242412567, -0.3829747140407562, -0.6461144685745239, 0.20146618783473969, -0.04637909680604935, -0.7123391628265381, 0.12312033027410507, 0.16897939145565033, -0.43577513098716736, -0.07395762205123901, 0.16136202216148376, -0.4183558523654938, -0.7559175491333008, -0.0599442683160305, 0.31543251872062683, 0.15218712389469147, -0.0011465082643553615, -0.5935327410697937, -0.21041914820671082, 0.14721406996250153, -0.4509837031364441, 0.46777912974357605, 0.2978045642375946, -0.16373805701732635, 0.36265215277671814, 0.1368280053138733, -0.17812156677246094, -0.27967047691345215, 0.29036954045295715, 0.7410904765129089, -0.6772608160972595, -0.3625229299068451, -0.6000906825065613, 0.146383136510849, -0.121242456138134, -0.3142165541648865, 0.7785711288452148, 0.7280223369598389, 0.64239901304245, 0.009399494156241417, 0.5304626226425171, 0.1370706707239151, 0.6840338110923767, -0.9543855786323547, 0.5600395798683167, -0.5840296745300293, 0.5408681035041809, -0.14536793529987335, -1.020808458328247, 0.13239793479442596, 0.6373825669288635, -0.5447476506233215, 0.3364931046962738, 0.5221151113510132, 0.883145809173584, -0.07058873027563095, 0.15026512742042542, 0.084114670753479, 0.1275903582572937, 0.2815617024898529, 0.2855514883995056, 0.5269028544425964, -0.21706272661685944, 0.33962756395339966, -0.6941028833389282, -0.27675580978393555, -0.23706656694412231, -0.7266831398010254, -0.7004960179328918, -0.6045335531234741, -0.47186702489852905, -0.12970100343227386, 0.1525619924068451, 1.0168429613113403, 0.5447946786880493, -0.9910182952880859, 0.015396421775221825, 0.17747195065021515, 0.33242762088775635, -0.5625120997428894, -0.36382967233657837, 0.6721872091293335, -0.6291924118995667, -0.9258832335472107, 0.5775524973869324, -0.07898228615522385, -0.2720452845096588, -0.1282719224691391, 0.21887512505054474, 0.11327853053808212, 0.10484115034341812, 0.5874828696250916, 0.2590027153491974, -0.547738790512085, -0.44598305225372314, 0.026424046605825424, 0.11911366134881973, 0.030310969799757004, 0.8220748901367188, -0.7930697202682495, 0.2734711170196533, 0.28317829966545105, 0.5890187621116638, 0.32337862253189087, 0.5933678150177002, 0.36978790163993835, -1.2386175394058228, -0.1484227478504181, 0.28024888038635254, 0.3266020119190216, 0.6038854122161865, -0.43870866298675537, 0.06668698042631149, -0.19121457636356354, -0.3907894790172577, -0.5930416584014893, 0.0919589251279831, -0.8701435327529907, -0.4017387330532074, 1.075993537902832, -0.4036877453327179, -0.26597386598587036, 0.13649910688400269, -0.14817290008068085, 0.2602715492248535, -0.7730637788772583, 1.1237238645553589, 0.3970232605934143, -0.33266040682792664, -0.14482639729976654, -0.15815074741840363, 0.2899077832698822, 0.5127236843109131, -0.8313164710998535, 0.030644956976175308, 0.5786429643630981, 0.19951754808425903, 0.16293418407440186, 0.2181352972984314, 0.06477653235197067, 0.3121867775917053, -0.3154974579811096, 0.1597438007593155, -0.2085198611021042, -0.3908652067184448, -0.4660065770149231, 0.2344488799571991, 0.26063114404678345, -0.5342527627944946 ]
http://arxiv.org/abs/2405.18028v1
http://arxiv.org/pdf/2405.18028v1
Edinburgh Clinical NLP at MEDIQA-CORR 2024: Guiding Large Language Models with Hints
2024-05-28T10:20:29
2024-05-28T10:20:29
Aryo Pradipta Gema, Chaeeun Lee, Pasquale Minervini, Luke Daines, T. Ian Simpson, Beatrice Alex
cs.CL
cs.CL, cs.AI
The MEDIQA-CORR 2024 shared task aims to assess the ability of Large Language Models (LLMs) to identify and correct medical errors in clinical notes. In this study, we evaluate the capability of general LLMs, specifically GPT-3.5 and GPT-4, to identify and correct medical errors with multiple prompting strategies. Recognising the limitation of LLMs in generating accurate corrections only via prompting strategies, we propose incorporating error-span predictions from a smaller, fine-tuned model in two ways: 1) by presenting it as a hint in the prompt and 2) by framing it as multiple-choice questions from which the LLM can choose the best correction. We found that our proposed prompting strategies significantly improve the LLM's ability to generate corrections. Our best-performing solution with 8-shot + CoT + hints ranked sixth in the shared task leaderboard. Additionally, our comprehensive analyses show the impact of the location of the error sentence, the prompted role, and the position of the multiple-choice option on the accuracy of the LLM. This prompts further questions about the readiness of LLM to be implemented in real-world clinical settings.
[ 0.04598420485854149, -0.5545558929443359, 1.0692278146743774, 0.32249847054481506, -0.2027338445186615, -0.10332607477903366, -0.2751755118370056, -0.3355364203453064, 0.2750418186187744, 0.39389434456825256, -0.7462343573570251, -0.5086556673049927, -0.7551843523979187, 0.6425991058349609, -0.1080782413482666, 0.9172099232673645, -0.2860857844352722, 0.6324396729469299, -0.039171382784843445, -0.13220472633838654, -0.9408379197120667, -0.5117484927177429, -0.9771462678909302, -0.13559290766716003, 0.984628438949585, 0.6625615358352661, 0.5454921722412109, 0.41070908308029175, 0.8328660130500793, 0.13130681216716766, -0.1155153214931488, 0.4397071599960327, -0.15302082896232605, 0.05939609557390213, -0.03848288580775261, -0.6347406506538391, -0.7835860848426819, -0.12721268832683563, 0.3657319247722626, 0.5765372514724731, -0.3490397334098816, 0.030806954950094223, -0.01538207195699215, 0.5818609595298767, -0.3170534372329712, 0.10646939277648926, -0.4228299856185913, 0.04449763149023056, -0.21010605990886688, -0.5244879722595215, -0.5001564025878906, -0.14749325811862946, -0.03503336384892464, -0.5323978066444397, 0.23086456954479218, 0.3218635618686676, 0.5835490226745605, 0.4649975299835205, -0.21736927330493927, -0.7143036127090454, -0.5137426257133484, 0.742803156375885, -0.7435816526412964, -0.0037439214065670967, 0.439252108335495, 0.3764277994632721, -0.39528748393058777, -0.7568399906158447, -0.3672545254230499, -0.07161112129688263, -0.11051976680755615, 0.1806781142950058, 0.020865164697170258, 0.38008514046669006, 0.3938893973827362, 0.05364124849438667, -0.3728020191192627, 0.23498985171318054, -0.4940023720264435, -0.23334172368049622, 0.5021635293960571, 0.23478934168815613, 0.27694541215896606, -0.008409394882619381, -0.09963437914848328, -0.02527669258415699, -0.9315739870071411, -0.18519392609596252, -0.05911645665764809, 0.3989033102989197, -0.29468950629234314, 0.5726889967918396, 0.16677312552928925, 0.6023993492126465, 0.2048591524362564, -0.11935961991548538, 0.09232736378908157, -0.36308416724205017, -0.017174918204545975, 0.05949826538562775, 0.9193475842475891, 0.595485508441925, 0.27314844727516174, 0.1310286670923233, -0.15267282724380493, -0.001427668146789074, 0.21051397919654846, -0.28160804510116577, -0.3767416477203369, 0.5464051365852356, -0.2043209671974182, -0.1513776332139969, -0.4551610052585602, -0.6812163591384888, -0.36770099401474, -0.14503785967826843, 0.48421013355255127, -0.34306636452674866, 0.21259291470050812, 0.482626348733902, -0.12902817130088806, -0.07170368731021881, 0.7645518779754639, -0.9962934255599976, 0.12921741604804993, 0.5455858707427979, 0.7478753328323364, -0.03392326831817627, -0.11229409277439117, -0.7774276733398438, 0.22554771602153778, -0.3227492868900299, 0.7733680009841919, -0.30387353897094727, -0.2714391350746155, -0.04010599106550217, -0.09624539315700531, -0.25307488441467285, -0.4995988607406616, 0.8089625239372253, -0.17886188626289368, 0.5387721657752991, -0.5691593885421753, -0.4469529688358307, -0.017838221043348312, 0.3938967287540436, -0.7752673029899597, 0.7802247405052185, 0.011318297125399113, -0.7549760341644287, 0.4685516655445099, -1.091247320175171, -0.15443100035190582, 0.16418027877807617, -0.37462109327316284, -0.5966641306877136, -0.04465494304895401, 0.8647286891937256, 0.6540746092796326, -0.23142707347869873, 0.5920940637588501, -0.06841849535703659, -0.17795704305171967, 0.07442120462656021, -0.411869615316391, 0.5846176743507385, -0.13131795823574066, -0.363235205411911, 0.17761261761188507, -0.6048250198364258, -0.03107987903058529, 0.12764811515808105, -0.3739495575428009, -0.004296137485653162, -0.20647424459457397, -0.22293543815612793, 0.16820375621318817, -0.0696641057729721, -0.224500834941864, 0.4388531446456909, -0.07403864711523056, 0.4780900776386261, 0.5280698537826538, 0.22440335154533386, 0.04404621198773384, -0.6853228211402893, 0.9076667428016663, -0.11830723285675049, 0.3103221356868744, -0.2308620810508728, -0.8715465664863586, -0.46503305435180664, -0.4408673644065857, 0.39048272371292114, 0.5691432356834412, -0.6948493719100952, 0.15496398508548737, 0.031987983733415604, -0.20436887443065643, -0.8237372636795044, -0.02374660037457943, 0.4116213321685791, 0.5724050402641296, 0.6535545587539673, -0.09491484612226486, -0.8885047435760498, -0.5691863298416138, -0.3585245907306671, -0.1920478641986847, 0.09307858347892761, 0.2944459617137909, 0.6536382436752319, -0.3575013279914856, 0.6675968766212463, -0.11620310693979263, -0.26019391417503357, -0.4368315041065216, 0.1531498283147812, 0.2843701243400574, 0.3710857927799225, 0.19670867919921875, -0.6225302815437317, -0.37563249468803406, -0.258611261844635, -0.5691602230072021, -0.357867032289505, -0.20179979503154755, 0.24031801521778107, 0.09255468100309372, 0.44741329550743103, -0.5384318232536316, 0.2339661419391632, 0.7349650859832764, -0.16337113082408905, 0.6702702045440674, -0.43326336145401, 0.247486412525177, -0.9779789447784424, -0.06511414796113968, -0.30653345584869385, -0.1660216897726059, -0.6069108843803406, -0.14638131856918335, 0.10615438222885132, 0.14563803374767303, -0.17519395053386688, 0.6463735103607178, -0.5473575592041016, 0.4079115688800812, 0.19920730590820312, 0.05008518323302269, 0.06233841925859451, 0.2501094937324524, -0.07359600067138672, 0.6428195238113403, 0.4192761778831482, -0.3841035068035126, 0.19887948036193848, 0.3131691813468933, 0.049993887543678284, 0.5615354180335999, -0.4948469400405884, 0.2654363512992859, -0.10853078961372375, 0.4124724268913269, -1.0935307741165161, -0.6407600045204163, 0.3491000533103943, -0.45839911699295044, 0.4228571355342865, -0.12376327067613602, -0.3201431632041931, -0.6249822378158569, -0.16971933841705322, 0.4069535434246063, 0.1288681924343109, -0.43113693594932556, 0.4924736022949219, 0.037202563136816025, -0.50041663646698, -0.8503303527832031, -0.5585660934448242, 0.32672613859176636, -0.2128114104270935, -0.5814111828804016, 0.16588157415390015, -0.22256191074848175, -0.14990346133708954, -0.29789578914642334, 0.2025650590658188, 0.2636165916919708, -0.01752948947250843, 0.3140593469142914, 0.3265024721622467, -0.12808144092559814, 0.19729667901992798, 0.021675918251276016, -0.08499455451965332, 0.11647988855838776, -0.010389648377895355, 0.6074661612510681, -0.032607756555080414, -0.5595086216926575, -0.5993436574935913, 0.29582247138023376, 0.4473702609539032, -0.04088348150253296, 0.43012499809265137, 0.4465612769126892, -0.24689535796642303, 0.0525982566177845, -0.653187096118927, -0.3085353970527649, -0.411603718996048, 0.22878216207027435, -0.0422389879822731, -0.9213319420814514, 0.597597599029541, -0.006461705546826124, -0.04646773263812065, 0.43492591381073, 0.6013100147247314, -0.34096813201904297, 1.1330195665359497, 0.4825665354728699, 0.07092799991369247, -0.09509894996881485, -0.1710263341665268, 0.2240539789199829, -0.9544666409492493, -0.31276771426200867, -0.613797128200531, -0.15242178738117218, -0.3319356441497803, -0.7162128686904907, 0.8259795904159546, -0.02302689477801323, 0.05806291848421097, -0.08367089182138443, -0.4357309639453888, 0.3427521884441376, 0.5849090814590454, 0.20270413160324097, 0.23556111752986908, -0.184507355093956, -0.5016416907310486, -0.07137463986873627, -1.1231038570404053, -0.4128662347793579, 1.1369670629501343, 0.4998065233230591, 0.6479707360267639, -0.06379080563783646, 0.9069066643714905, -0.03573571518063545, 0.41077765822410583, -0.7097921967506409, 0.3787478506565094, 0.1519952118396759, -0.6376181840896606, -0.3665006458759308, -0.27648672461509705, -0.8722057342529297, -0.16524410247802734, -0.18109308183193207, -0.4665021002292633, -0.1935780793428421, 0.3746304512023926, -0.8151198625564575, 0.20576730370521545, -0.6560921669006348, 0.7950071096420288, -0.26826635003089905, -0.08782779425382614, 0.11646843701601028, -0.8986555933952332, 0.2246708869934082, -0.04896707087755203, 0.39557066559791565, 0.014269351959228516, -0.18176761269569397, 0.67137610912323, -0.22823172807693481, 0.8975212574005127, -0.17388483881950378, -0.1934853345155716, 0.11900965124368668, -0.13837142288684845, 0.7773115634918213, -0.16511625051498413, -0.017973849549889565, -0.08727430552244186, 0.06324802339076996, -0.2765716016292572, -0.44570910930633545, 0.09163446724414825, -0.4064044952392578, -0.6082717776298523, -0.44816359877586365, -0.772463321685791, -0.3243683874607086, 0.008719140663743019, 0.48971256613731384, 0.8431697487831116, 0.014253166504204273, -0.11764619499444962, 0.34192681312561035, -0.4209893047809601, 0.29541727900505066, 0.47812026739120483, -0.1362055391073227, -0.416798859834671, 0.27332377433776855, -0.02702883444726467, 0.4796202480792999, 0.37337392568588257, 0.4478014409542084, -0.5124461054801941, -1.0659847259521484, -0.4735565483570099, 0.5996279120445251, -0.7882832288742065, -0.1468612551689148, -0.5988930463790894, 0.015359273180365562, -0.3895799219608307, -0.29718318581581116, 0.029089678078889847, -0.2738339304924011, -0.2520848214626312, -0.13268797099590302, 0.5609182119369507, 1.0453219413757324, -0.20216186344623566, 0.3921540379524231, -1.0316113233566284, 0.014550021849572659, -0.020690519362688065, 0.1729777306318283, -0.29495298862457275, -0.4717845916748047, -0.13654887676239014, -0.12081205099821091, -0.04798638075590134, -0.7889654040336609, 0.3601610064506531, -0.0024546394124627113, 0.3762855529785156, 0.18765053153038025, -0.09062732756137848, 0.8517835736274719, -0.7797901034355164, 0.9256340861320496, 0.4229303002357483, -0.5734893083572388, 0.632703423500061, -0.7503788471221924, 0.3698638379573822, 0.6264165639877319, 0.49960634112358093, -0.7541761994361877, -0.7417510747909546, -0.7707082629203796, -0.5482863187789917, 0.4671212434768677, -0.26321089267730713, -0.2752791941165924, -0.15837717056274414, 0.513900637626648, -0.09465730935335159, 0.09016209095716476, -0.6571611762046814, -0.12606771290302277, 0.5080567002296448, -0.6232312917709351, 0.1216808632016182, -0.502578854560852, -0.5328059792518616, -0.09108732640743256, 0.5449662208557129, -0.43538591265678406, 0.41862910985946655, 0.5417165160179138, 0.18841804563999176, -0.38814276456832886, 0.5077514052391052, 0.9739850759506226, 0.9291672706604004, -0.36871761083602905, -0.03177913650870323, 0.2716864049434662, -0.6330666542053223, 0.05540340021252632, 0.06435775011777878, 0.008219766430556774, 0.15022900700569153, 0.5979538559913635, 0.5845844745635986, 0.13569031655788422, -0.7390583753585815, 0.5892325043678284, -0.29713454842567444, -0.3027482032775879, -0.294511079788208, -0.10161072015762329, -0.004905028268694878, 0.0947985053062439, 0.29398226737976074, 0.2609223425388336, 0.07709892839193344, -0.3605387508869171, 0.22846278548240662, 0.37604737281799316, -0.40147119760513306, -0.3146272897720337, 0.6686664819717407, 0.05622890591621399, -0.31570297479629517, 0.16603893041610718, -0.2830089330673218, -0.663252592086792, 0.40601056814193726, 0.5234718322753906, 0.5960752367973328, -0.3047482967376709, 0.21886977553367615, 0.3923443853855133, 0.27572834491729736, -0.45162391662597656, 0.554399311542511, 0.4487142562866211, -0.6025804281234741, -0.9368928670883179, -0.16818827390670776, -0.7408195734024048, 0.24644702672958374, -0.6516032218933105, 0.5250667333602905, -0.5300906896591187, -0.09086472541093826, 0.04366879165172577, -0.08970948308706284, -0.4617196321487427, 0.2344464212656021, -0.009999735280871391, 0.9687971472740173, -0.5320002436637878, 0.5889286994934082, 0.5621500015258789, -0.1812603920698166, -1.5482548475265503, -0.18387211859226227, 0.42292895913124084, -1.0316301584243774, 0.4104902148246765, 0.07203331589698792, -0.029346389696002007, -0.31230559945106506, -0.7247674465179443, -0.695435643196106, 1.020998239517212, 0.13439050316810608, -0.9757893681526184, -0.45221075415611267, 0.13328920304775238, 0.49332135915756226, -0.1888907104730606, 0.4154078960418701, 0.45764195919036865, 0.45950308442115784, 0.3006720542907715, -1.3291198015213013, 0.10892091691493988, 0.05802706256508827, -0.6280086040496826, 0.28769397735595703, -0.3366817831993103, 0.6800324320793152, -0.7815359830856323, -0.04629173129796982, 0.4063166379928589, 0.16233672201633453, 0.4312569200992584, 0.4090999662876129, 0.3098485469818115, 0.5770621299743652, 1.19668710231781, -0.11763710528612137, 1.1709178686141968, -0.10940927267074585, 0.1464674472808838, 1.142364263534546, -0.35445094108581543, 0.8371270298957825, 0.6236545443534851, -0.09917942434549332, 0.4317878186702728, 0.35333487391471863, 0.18540292978286743, 0.2877373993396759, 0.0440170057117939, -0.19495758414268494, 0.1250951588153839, 0.01919359341263771, -0.33549773693084717, 0.2132045030593872, 0.7308245301246643, -0.3037859797477722, -0.11254891753196716, -0.0672491192817688, 0.2982628643512726, -0.05598991736769676, -0.509981095790863, 0.6646788120269775, 0.21799057722091675, -1.0605359077453613, 0.6448349356651306, -0.18496622145175934, 0.6047182083129883, -0.6299804449081421, -0.1592840999364853, -0.06340301781892776, 0.3124217987060547, -0.22857514023780823, -0.6031656861305237, 0.08460069447755814, -0.027554214000701904, -0.09670250117778778, -0.2769916355609894, 0.5455758571624756, -0.663007915019989, -0.3289640247821808, 0.08663411438465118, 0.3368062674999237, 0.05112830549478531, 0.09592633694410324, -0.8246198296546936, 0.05979257822036743, 0.07259167730808258, 0.2767511308193207, 0.1212298721075058, 0.6120181083679199, -0.09509681165218353, 0.7102189660072327, 0.5308788418769836, 0.5008859038352966, 0.06617908924818039, 0.28674957156181335, 0.5449312329292297, -0.7347692847251892, -0.3709220886230469, -0.8057945370674133, 0.506885826587677, 0.09160888195037842, -0.31652820110321045, 0.6855908632278442, 0.13938096165657043, 0.4397791624069214, -0.03546076640486717, 0.7015264630317688, 0.15653006732463837, 0.9705770015716553, -0.8900367021560669, 0.25429341197013855, -0.2942656874656677, 0.38777679204940796, -0.19801320135593414, -0.3114956021308899, -0.7726070880889893, 0.34751173853874207, -0.49785885214805603, -0.041792940348386765, 1.000241756439209, 1.0825061798095703, 0.35427314043045044, 0.18467046320438385, 0.13166473805904388, 0.28042420744895935, 0.4356531500816345, 0.7788960337638855, 0.9690292477607727, -0.439927339553833, 0.32477009296417236, 0.13513924181461334, -0.0703854039311409, -0.35584932565689087, -1.0307425260543823, -0.787382185459137, -0.29529064893722534, -0.30855289101600647, -0.5817835330963135, 0.26338985562324524, 1.2601698637008667, 0.5289231538772583, -0.7944269180297852, 0.12551213800907135, -0.013180169276893139, -0.025774382054805756, -0.2407941073179245, -0.0892685130238533, 0.5219619870185852, -0.35856661200523376, -0.42817655205726624, 0.4359906315803528, 0.44463664293289185, 0.06880650669336319, 0.026447966694831848, -0.22839690744876862, -0.28498855233192444, -0.1701652705669403, 0.1949571967124939, 0.08681662380695343, -0.695319652557373, -0.3863474726676941, 0.12228045612573624, -0.1945660412311554, 0.2785816192626953, 0.8686740398406982, -0.3540807068347931, 0.38562607765197754, 0.24599656462669373, 0.48587408661842346, 0.06684399396181107, -0.1577301174402237, 0.8210147023200989, -0.7831000685691833, -0.10083287209272385, 0.6578134298324585, 0.5343966484069824, 0.5021632313728333, -0.30429384112358093, 0.5651620626449585, 0.13818277418613434, -0.761040985584259, -0.7190393209457397, -0.1303330659866333, -0.9754533171653748, 0.0871204361319542, 1.2611498832702637, -0.1305478811264038, -0.20234398543834686, -0.350403755903244, -0.603425920009613, -0.11968360841274261, -0.29611849784851074, 0.6515803337097168, 0.8241560459136963, -0.15270906686782837, -0.313613623380661, -0.7496839165687561, 0.9867056012153625, 0.6656855344772339, -0.6815998554229736, -0.1806478351354599, 0.3822651207447052, 0.21524444222450256, 0.22126376628875732, 1.0735057592391968, -0.2649933397769928, 0.5997121930122375, -0.34023094177246094, -0.1624297797679901, 0.14527897536754608, -0.5159428119659424, -0.6760076880455017, -0.11529946327209473, 0.3033841848373413, 0.06842261552810669 ]
http://arxiv.org/abs/2405.18027v1
http://arxiv.org/pdf/2405.18027v1
TimeChara: Evaluating Point-in-Time Character Hallucination of Role-Playing Large Language Models
2024-05-28T10:19:18
2024-05-28T10:19:18
Jaewoo Ahn, Taehyun Lee, Junyoung Lim, Jin-Hwa Kim, Sangdoo Yun, Hwaran Lee, Gunhee Kim
cs.CL
cs.CL
While Large Language Models (LLMs) can serve as agents to simulate human behaviors (i.e., role-playing agents), we emphasize the importance of point-in-time role-playing. This situates characters at specific moments in the narrative progression for three main reasons: (i) enhancing users' narrative immersion, (ii) avoiding spoilers, and (iii) fostering engagement in fandom role-playing. To accurately represent characters at specific time points, agents must avoid character hallucination, where they display knowledge that contradicts their characters' identities and historical timelines. We introduce TimeChara, a new benchmark designed to evaluate point-in-time character hallucination in role-playing LLMs. Comprising 10,895 instances generated through an automated pipeline, this benchmark reveals significant hallucination issues in current state-of-the-art LLMs (e.g., GPT-4o). To counter this challenge, we propose Narrative-Experts, a method that decomposes the reasoning steps and utilizes narrative experts to reduce point-in-time character hallucinations effectively. Still, our findings with TimeChara highlight the ongoing challenges of point-in-time character hallucination, calling for further study.
[ -0.16635090112686157, -0.7366418838500977, 0.8187582492828369, 0.433496356010437, -0.2115374505519867, 0.4144510328769684, 0.15468762814998627, -0.742559552192688, 0.3411540389060974, 0.5781735777854919, -0.5232760310173035, -0.4745630621910095, -0.382355660200119, 0.2030186653137207, -0.37235143780708313, 0.4797150194644928, -0.23008668422698975, -0.15128421783447266, 0.0803506076335907, 0.12327373772859573, -0.6455353498458862, -0.8477044105529785, -0.7209123373031616, -0.3812541961669922, 0.6718133687973022, 0.0460997112095356, 0.6866750717163086, 0.44296881556510925, 0.2609647810459137, 0.2698477804660797, 0.25048646330833435, 0.36154791712760925, -0.5485352277755737, 0.6549703478813171, 0.014616573229432106, -0.4333963394165039, -0.578809380531311, -0.1447049379348755, 0.43613314628601074, 0.5829407572746277, -0.09877624362707138, -0.09443904459476471, -0.1443638652563095, 0.3993367552757263, -0.4708069860935211, 0.2931017279624939, -0.35762321949005127, 0.39369264245033264, -0.17957179248332977, -0.7032964825630188, -0.38917505741119385, -0.6914464235305786, -0.018598992377519608, -0.6946260929107666, 0.45751652121543884, 0.0985381230711937, 0.7362999320030212, 0.39453092217445374, -0.3219940960407257, -0.20508700609207153, -0.994925320148468, 0.578451931476593, -0.6046363115310669, 0.11825854331254959, 0.5400847792625427, 0.6274870038032532, -0.159731924533844, -0.2425350844860077, -0.623410701751709, -0.3527345359325409, 0.11831124126911163, -0.14022114872932434, -0.17103952169418335, -0.09879137575626373, 0.6202583312988281, 0.02967683970928192, -0.45567381381988525, 0.16140812635421753, -0.15321950614452362, -0.23167772591114044, 0.5506746768951416, 0.4988155961036682, 0.38486436009407043, -0.14421294629573822, -0.14269089698791504, -0.07296578586101532, -0.7085418105125427, -0.07243520021438599, 0.45006510615348816, -0.03022317960858345, 0.3670515716075897, 0.6219541430473328, 0.06880797445774078, 0.02107010968029499, 0.09426213800907135, -0.033107172697782516, 0.172246515750885, -0.018861686810851097, -0.03092930093407631, 0.46548140048980713, 0.5191113948822021, 0.6347959041595459, 0.44455426931381226, -0.3181140422821045, 0.025798847898840904, 0.3357135057449341, 0.46384283900260925, -0.9177103638648987, -0.019764479249715805, 0.31463658809661865, -0.3670818507671356, -0.28883716464042664, -0.1647704541683197, -0.9206252694129944, -0.9241846799850464, 0.09495905786752701, 0.3234041631221771, -0.583086371421814, -0.22528086602687836, -0.08331439644098282, -0.20134754478931427, 0.39156225323677063, 0.4062660038471222, -0.7567144632339478, 0.3649742007255554, 0.6851637959480286, 0.9679734706878662, -0.36392703652381897, -0.6858406662940979, -0.720300555229187, 0.45245522260665894, -0.7361904382705688, 0.7819346785545349, -0.6448014378547668, -0.6376655697822571, -0.10897503048181534, 0.09401659667491913, 0.027332579717040062, -0.4558572769165039, 0.4635942876338959, -0.3508976995944977, -0.15875603258609772, -0.4514889419078827, -0.44411805272102356, -0.11465144902467728, 0.10267297178506851, -0.7588265538215637, 0.821225643157959, 0.08493603765964508, -0.1859700232744217, 0.5475961565971375, -0.5702916979789734, -0.42550963163375854, 0.17025820910930634, -0.17317156493663788, -0.20967024564743042, 0.2970808148384094, 0.4072607159614563, 0.5091437101364136, -0.13039298355579376, 0.25892433524131775, -0.21637529134750366, -0.7577964663505554, 0.4043852388858795, -0.35901346802711487, 0.4171958863735199, 0.22045360505580902, -0.4492397904396057, 0.02140096016228199, -0.19366616010665894, -0.24303728342056274, 0.14204861223697662, 0.21044139564037323, -0.41897496581077576, 0.30109620094299316, -0.12164824455976486, 0.12021418660879135, -0.04376467317342758, -0.3882107138633728, 0.2637106776237488, -0.3079054355621338, 0.44223475456237793, 0.6412143111228943, 0.303337961435318, 0.06011774763464928, -0.581122636795044, 0.7701103091239929, -0.07750940322875977, 0.21626585721969604, -0.4039227366447449, -0.3944399654865265, -0.5897983908653259, 0.021430131047964096, -0.23424364626407623, 0.2813529670238495, -0.7257266044616699, 0.385556697845459, -0.0048301019705832005, -0.6585627794265747, -0.3867988586425781, -0.38844501972198486, 0.23107339441776276, 0.5145895481109619, 0.4989112317562103, -0.28141239285469055, -0.31432831287384033, -0.5614810585975647, -0.36351263523101807, -0.4822673201560974, -0.20146533846855164, 0.13341231644153595, 0.37332883477211, -0.20670562982559204, 0.7846150994300842, -0.37488555908203125, -0.28646814823150635, -0.2655172348022461, 0.29273974895477295, -0.20990081131458282, 0.2114095836877823, 0.5343765020370483, -0.4732262194156647, -0.1974417120218277, -0.1342177540063858, -0.9516620635986328, -0.2602158784866333, -0.24058572947978973, 0.294603556394577, 0.5428902506828308, 0.5744319558143616, -0.7529875636100769, 0.6980162262916565, 0.39978712797164917, -0.7289196848869324, 0.8184228539466858, -0.3172157406806946, 0.8496711850166321, -0.8646520972251892, 0.267072856426239, -0.24878619611263275, -0.07597851753234863, -0.5305536389350891, -0.11047728359699249, -0.27190473675727844, -0.35376957058906555, -0.09045284986495972, 0.7289321422576904, -0.45462995767593384, -0.4055615961551666, -0.10098613053560257, 0.32823726534843445, 0.0761042982339859, 0.49061107635498047, 0.061686888337135315, 0.6903412342071533, 0.032490942627191544, -0.5766992568969727, 0.2085145264863968, -0.020991692319512367, -0.5796534419059753, 0.5275344252586365, -0.6996103525161743, 0.31982070207595825, 0.09740026295185089, 0.39273786544799805, -0.9707626700401306, -0.28170958161354065, 0.3193261921405792, -0.34519240260124207, 0.017553534358739853, -0.030254440382122993, -0.5958583950996399, -0.2365264892578125, -0.2071698009967804, 0.6551618576049805, 0.35935068130493164, -0.2473033219575882, 0.7571784853935242, 0.4416373670101166, -0.19543133676052094, -0.5392397046089172, -0.4725903868675232, 0.2922707498073578, -0.4629499912261963, -0.3903404772281647, 0.5880655646324158, -0.36373651027679443, -0.41319477558135986, -0.27454090118408203, -0.19807635247707367, -0.022877095267176628, 0.14854267239570618, 0.3586157560348511, 0.007505129091441631, 0.05537719279527664, 0.026665879413485527, 0.312946617603302, -0.24683016538619995, 0.12949244678020477, 0.25412517786026, 0.8222752809524536, 0.03698374330997467, -0.6814272403717041, -0.48093584179878235, 0.5211498737335205, 0.5183973908424377, -0.022826140746474266, 0.20885737240314484, 0.3345727324485779, -0.5452168583869934, -0.16928446292877197, -0.8202467560768127, -0.18636655807495117, -0.3960706293582916, 0.36482110619544983, -0.3322094976902008, -0.7442585229873657, 0.7782476544380188, 0.07745669037103653, 0.0969139114022255, 0.3567230701446533, 0.36823543906211853, -0.08706345409154892, 1.0506428480148315, 0.35302597284317017, -0.02222117967903614, 0.26408857107162476, 0.07719659805297852, 0.23671281337738037, -0.31491097807884216, -0.40300726890563965, -0.5562705993652344, -0.4638495147228241, -0.34943851828575134, -0.660895049571991, 0.22761230170726776, -0.03313444182276726, -0.16089755296707153, 0.21524757146835327, -0.1861972212791443, 0.739762544631958, 0.04198573902249336, -0.057841479778289795, 0.5214654803276062, -0.02771628461778164, 0.2025938332080841, -0.2194286435842514, -0.28961873054504395, -0.5030066967010498, 0.6060068011283875, 0.572628915309906, 0.7320781350135803, 0.1376177966594696, 0.6740363836288452, 0.7153205275535583, -0.22776906192302704, -0.8260853290557861, 0.6852450966835022, 0.12215925753116608, -0.5128307938575745, -0.6422411203384399, -0.3651619851589203, -0.9463058710098267, 0.0018047868506982923, 0.08072122931480408, -0.8940703868865967, 0.3048516511917114, -0.04083769768476486, -0.5506441593170166, 0.3096829056739807, -0.5812891125679016, 0.6724231243133545, -0.12307875603437424, -0.21167488396167755, -0.5847127437591553, -0.5241115093231201, 0.09307917207479477, -0.041094690561294556, -0.14759254455566406, -0.2604069113731384, -0.14082291722297668, 0.7201562523841858, -0.5715508460998535, 0.9979369044303894, -0.3833325207233429, -0.1304604411125183, 0.19868674874305725, 0.8568001985549927, 0.4624253213405609, -0.10436318069696426, 0.01905101165175438, 0.4616791307926178, 0.2640095353126526, -0.23182739317417145, -0.5913563370704651, 0.7872082591056824, -0.7002279162406921, -0.46815767884254456, -0.6977855563163757, -0.6862200498580933, -0.32469871640205383, 0.015274533070623875, 0.13503295183181763, 0.561942994594574, -0.6056473851203918, -0.022505616769194603, 0.6776372790336609, -0.26707351207733154, 0.6667384505271912, 0.3766099810600281, -0.5075838565826416, -0.027244731783866882, 0.8373790979385376, 0.17759421467781067, -0.0813894271850586, 0.4318496882915497, 0.11430362612009048, -0.33985254168510437, -0.557771623134613, -0.08158113062381744, 0.36530423164367676, -0.6390380263328552, 0.05987613648176193, -0.7281365394592285, -0.2146679311990738, -0.15456648170948029, -0.31434640288352966, -0.30749788880348206, -0.3855544328689575, -0.22324614226818085, -0.07503285259008408, 0.20072396099567413, 0.8939638733863831, 0.3338358998298645, 0.1957961469888687, -0.6399654150009155, 0.26331692934036255, 0.12362243980169296, 0.377310574054718, 0.12071612477302551, -0.3759075701236725, -0.041050177067518234, -0.4374965727329254, 0.017065439373254776, -0.8806105256080627, 0.5384100675582886, -0.21909691393375397, 0.6501432061195374, 0.4661559462547302, -0.012044087052345276, 0.8515850901603699, -0.4425446391105652, 0.935646653175354, -0.05690181627869606, -1.0948429107666016, 0.22436769306659698, -0.4320208728313446, 0.33746007084846497, 0.3858570456504822, 0.4554007053375244, -1.065711259841919, -0.41087645292282104, -0.36247703433036804, -0.5482380390167236, 0.5695781111717224, 0.203217014670372, -0.14114269614219666, -0.03395205736160278, 0.1567600667476654, 0.5814974308013916, 0.17138271033763885, -0.3426385223865509, 0.08650937676429749, -0.3005821406841278, 0.18218226730823517, -0.43555691838264465, -0.5773860216140747, 0.06777676939964294, -0.02277509868144989, 0.29636597633361816, -0.03316650539636612, 0.40742602944374084, 0.17956453561782837, -0.3382503092288971, -0.44656336307525635, 0.12842239439487457, 0.6830229163169861, 1.1548875570297241, -0.36064136028289795, -0.09641969203948975, 0.08987385779619217, -0.5578261613845825, 0.044821400195360184, 0.10591521114110947, 0.016032330691814423, 0.09490661323070526, 0.5821110010147095, 0.6661611199378967, 0.39431801438331604, -0.5864431262016296, 0.3017125129699707, -0.17192062735557556, -0.06382054090499878, -0.4644516110420227, 0.04530898109078407, -0.25111496448516846, 0.5716418027877808, 0.5920960903167725, -0.19141855835914612, -0.06969908624887466, -0.6396982073783875, 0.10528494417667389, -0.049979317933321, -0.37368664145469666, -0.4160767197608948, 0.6669013500213623, 0.16789807379245758, -0.6118708848953247, 0.48273956775665283, 0.010654046200215816, -0.2790429890155792, 0.5975877642631531, 0.4506310224533081, 1.2842392921447754, -0.7174729704856873, 0.45069563388824463, 0.32755357027053833, 0.4082379639148712, -0.13291947543621063, 0.24548205733299255, 0.15842513740062714, -0.4884730875492096, -0.45201072096824646, -0.39264199137687683, -0.4338846802711487, 0.09987195581197739, -0.28498029708862305, 0.33043158054351807, -0.5203243494033813, -0.1525586098432541, -0.3304770588874817, 0.12496516108512878, -0.44846025109291077, -0.36102738976478577, 0.029590124264359474, 0.6803498268127441, -0.6325079202651978, 0.6782310009002686, 0.003477426478639245, -0.4376201927661896, -0.4987509846687317, 0.4496503472328186, -0.043243687599897385, -0.5771413445472717, 0.4176943898200989, 0.3103621304035187, -0.37573564052581787, -0.0643172413110733, -0.29457828402519226, -0.3203570246696472, 1.3755375146865845, 0.2150936871767044, -0.7116425633430481, -0.6645971536636353, 0.06588901579380035, 0.7664520144462585, -0.5837510824203491, 0.3542255461215973, 0.6890489459037781, 0.23076172173023224, 0.10776546597480774, -0.7705202102661133, 0.28151601552963257, -0.22885172069072723, -0.08145813643932343, 0.15604743361473083, -0.5427449345588684, 0.6844649314880371, -0.2671512961387634, -0.29385626316070557, 0.09754467755556107, 0.6280261278152466, 0.5537980794906616, 0.6303685903549194, 0.7481765151023865, 0.03592963144183159, 1.0057114362716675, -0.08017151802778244, 0.9782304763793945, -0.035664018243551254, -0.11935467272996902, 1.0159308910369873, -0.5251998901367188, 0.5389649868011475, 0.5028569102287292, 0.08697963505983353, 0.5889225602149963, 0.6260762810707092, -0.054843854159116745, 0.30608031153678894, 0.019175000488758087, -0.03581200912594795, -0.3700391948223114, -0.16341464221477509, -0.6529678106307983, 0.34951770305633545, 0.44094714522361755, -0.05420564115047455, -0.17150649428367615, -0.15806329250335693, 0.16429723799228668, 0.024338703602552414, -0.17538215219974518, 0.4505101144313812, 0.053468409925699234, -0.7193669676780701, 0.25580722093582153, -0.38653913140296936, 0.16605839133262634, -0.9108332991600037, -0.35260796546936035, -0.551236093044281, 0.014194264076650143, 0.028567418456077576, -0.6275331377983093, 0.10133359581232071, 0.1379021555185318, 0.02027158811688423, -0.15818627178668976, 0.5712774395942688, -0.29715269804000854, -0.21918217837810516, 0.5148817896842957, 0.4482056200504303, 0.5129290223121643, -0.2999454438686371, -0.34924572706222534, 0.3167988657951355, -0.33819034695625305, -0.0717085599899292, 0.06070863828063011, 0.5795956254005432, -0.360443651676178, 0.7190908193588257, 0.21649421751499176, 0.08521392196416855, -0.3155096471309662, 0.47949063777923584, 0.642037570476532, -1.0043607950210571, -0.6352148056030273, -0.9399217963218689, 0.2079816460609436, -0.07041388005018234, -0.40662071108818054, 0.840249240398407, 0.45137879252433777, 0.47674769163131714, 0.0775558277964592, 0.6257612705230713, 0.04756966233253479, 0.47624924778938293, -0.5662871599197388, 0.9991763234138489, -0.513692319393158, 0.34737080335617065, -0.6859776377677917, -1.1660466194152832, -0.09490440785884857, 0.26986709237098694, -0.2853160798549652, 0.2083427608013153, 1.0606359243392944, 0.7142918705940247, 0.2956390976905823, 0.09132429212331772, 0.512362539768219, 0.2963668406009674, 0.5246548056602478, 0.6382051706314087, 1.2576711177825928, -0.08276837319135666, 0.5420205593109131, -0.043985914438962936, -0.10844680666923523, -0.5353909134864807, -0.9687208533287048, -1.2414859533309937, -0.7685586214065552, -0.09938692301511765, -0.3433331847190857, 0.14502134919166565, 0.9512438178062439, 0.23940512537956238, -0.6865512132644653, -0.5360012054443359, 0.3834006190299988, -0.014430978335440159, -0.6198270320892334, -0.1506061553955078, 0.32094213366508484, -0.14124596118927002, -0.6476513743400574, 0.7166463732719421, 0.3169776201248169, -0.09186460822820663, -0.6890024542808533, -0.17287728190422058, 0.060879215598106384, 0.12371165305376053, 0.6738099455833435, 0.3174911439418793, -0.8425121903419495, -0.34218254685401917, 0.23834215104579926, -0.035297784954309464, 0.057280778884887695, 1.2303166389465332, -0.6723645925521851, 0.588071346282959, 0.5493883490562439, 0.3857944905757904, 0.7075849175453186, 0.07959944754838943, 0.7509381175041199, -0.4217466711997986, -0.07588519155979156, 0.5106567144393921, 0.10949407517910004, 0.13947249948978424, -0.3951666057109833, 0.573333203792572, 0.3364294469356537, -0.684180498123169, -0.9362264275550842, 0.053585704416036606, -0.9553552269935608, -0.37503641843795776, 0.9457640647888184, 0.15302646160125732, -0.2710934281349182, -0.39033228158950806, -0.20503517985343933, 0.2939988374710083, -0.6467846035957336, 1.2287623882293701, 0.9498998522758484, -0.15657195448875427, 0.048494819551706314, -0.5936760902404785, 0.742948055267334, 0.1383315622806549, -0.8964521288871765, 0.45324793457984924, 0.6114362478256226, -0.15093368291854858, 0.15703967213630676, 0.8041483759880066, -0.19921477138996124, 0.1571177840232849, -0.00817317608743906, 0.041434817016124725, -0.21227069199085236, -0.8021814227104187, -0.2593759596347809, 0.22822540998458862, -0.1118951365351677, 0.31694161891937256 ]
http://arxiv.org/abs/2405.18015v1
http://arxiv.org/pdf/2405.18015v1
MultiADE: A Multi-domain Benchmark for Adverse Drug Event Extraction
2024-05-28T09:57:28
2024-05-28T09:57:28
Xiang Dai, Sarvnaz Karimi, Abeed Sarker, Ben Hachey, Cecile Paris
cs.CL
cs.CL
Objective. Active adverse event surveillance monitors Adverse Drug Events (ADE) from different data sources, such as electronic health records, medical literature, social media and search engine logs. Over years, many datasets are created, and shared tasks are organised to facilitate active adverse event surveillance. However, most-if not all-datasets or shared tasks focus on extracting ADEs from a particular type of text. Domain generalisation-the ability of a machine learning model to perform well on new, unseen domains (text types)-is under-explored. Given the rapid advancements in natural language processing, one unanswered question is how far we are from having a single ADE extraction model that are effective on various types of text, such as scientific literature and social media posts}. Methods. We contribute to answering this question by building a multi-domain benchmark for adverse drug event extraction, which we named MultiADE. The new benchmark comprises several existing datasets sampled from different text types and our newly created dataset-CADECv2, which is an extension of CADEC (Karimi, et al., 2015), covering online posts regarding more diverse drugs than CADEC. Our new dataset is carefully annotated by human annotators following detailed annotation guidelines. Conclusion. Our benchmark results show that the generalisation of the trained models is far from perfect, making it infeasible to be deployed to process different types of text. In addition, although intermediate transfer learning is a promising approach to utilising existing resources, further investigation is needed on methods of domain adaptation, particularly cost-effective methods to select useful training instances.
[ -0.13245655596256256, -0.6673325896263123, 0.3862754702568054, 0.1527101993560791, -0.1064385324716568, -0.08314725011587143, -0.036858271807432175, -0.6719068884849548, 0.1686566174030304, 0.4682581424713135, -0.3464295268058777, -0.8140348196029663, -0.9392790794372559, 0.1766739934682846, -0.33872321248054504, 1.0643563270568848, -0.268875390291214, -0.08384636044502258, 0.10625733435153961, -0.5008723139762878, -0.4253060519695282, -0.7185064554214478, -0.7076994776725769, 0.10727718472480774, 0.5746011137962341, 0.33589497208595276, 0.019523516297340393, 0.14903482794761658, 0.8427924513816833, 0.17391572892665863, 0.4311119318008423, 0.43325498700141907, -0.13059492409229279, 0.15898218750953674, -0.1884329617023468, -0.06288275867700577, -0.6735801696777344, 0.1489536613225937, 0.3376869261264801, 0.32809942960739136, -0.1479998081922531, 0.16009844839572906, -0.033514611423015594, 0.6507111191749573, -1.0249816179275513, 0.06247813627123833, -0.4693024754524231, -0.17344558238983154, -0.218345046043396, 0.08443611115217209, -0.2887660264968872, -0.27050134539604187, 0.4250651001930237, -0.7752506732940674, 0.267673522233963, -0.12681090831756592, 0.874484121799469, -0.06728245317935944, -1.0280972719192505, -0.46675875782966614, -0.5543622970581055, 0.6896437406539917, -0.5000478029251099, 0.23914910852909088, 0.22226302325725555, 0.5219606161117554, -0.029410894960165024, -1.0678452253341675, -0.5357641577720642, 0.40029680728912354, 0.015051045455038548, -0.12545987963676453, -0.18170557916164398, -0.01089133508503437, -0.0739598423242569, 0.03709816932678223, -0.4071299731731415, -0.039931684732437134, -0.4878040850162506, -0.3811255991458893, 0.6374840140342712, 0.0164753720164299, 0.3479165732860565, -0.10181120038032532, -0.6025275588035583, 0.10451198369264603, -0.7925970554351807, 0.12318389862775803, -0.0017476588254794478, 0.25209254026412964, -0.17450204491615295, 0.37384024262428284, 0.1770850569009781, 0.34919214248657227, -0.2611837387084961, 0.12487654387950897, 0.49452316761016846, -0.6019736528396606, -0.2206767350435257, -0.0740804374217987, 0.9508501887321472, 0.43025556206703186, 0.2489112913608551, -0.09185273945331573, 0.16104397177696228, 0.12857824563980103, 0.417908638715744, -0.9392759799957275, -0.4836333692073822, 0.4835512936115265, -0.5804158449172974, -0.18765825033187866, 0.03955451771616936, -1.3433656692504883, -0.5521577596664429, -0.04247504100203514, 0.44043946266174316, -0.3761484920978546, -0.16995367407798767, 0.11912796646356583, -0.05220533162355423, 0.10111414641141891, 0.34860923886299133, -0.7530560493469238, 0.5456823706626892, 0.3955729305744171, 0.8417394161224365, -0.7399934530258179, -0.339870810508728, -0.5886548161506653, 0.2127273827791214, -0.22136832773685455, 1.250613808631897, -0.38980913162231445, -0.31136053800582886, 0.14792943000793457, 0.17388466000556946, -0.5345796346664429, -0.6327962875366211, 0.9211281538009644, -0.48949846625328064, 0.1315724104642868, -0.06793434172868729, -0.48968032002449036, -0.5134372115135193, -0.04054267331957817, -0.7081510424613953, 0.5296370387077332, -0.11485575884580612, -0.5460080504417419, 0.754805862903595, -0.6540243625640869, -0.5612626075744629, -0.277569442987442, -0.21315711736679077, -0.841277539730072, -0.05483338609337807, 0.4395740330219269, 0.4578305780887604, -0.4514644742012024, 0.2754957973957062, -0.4590633511543274, -0.02104276232421398, 0.0378882996737957, -0.4301111102104187, 0.5828236937522888, 0.2546018362045288, -0.25734442472457886, 0.1438010036945343, -0.9650403261184692, -0.14736831188201904, -0.045764777809381485, -0.37082523107528687, -0.510940670967102, -0.19702698290348053, 0.43523159623146057, 0.5430548787117004, -0.22139020264148712, -0.6431906223297119, 0.3150360584259033, -0.033431824296712875, -0.13143642246723175, 0.7063897252082825, 0.6548945307731628, 0.1055850014090538, -0.05448943376541138, 0.36672380566596985, 0.20459474623203278, 0.11571266502141953, -0.04071073606610298, -0.5939487218856812, -0.18974904716014862, -0.7257481813430786, 0.4078672230243683, 0.43239516019821167, -0.5134532451629639, 0.20658068358898163, -0.015043583698570728, -0.017898233607411385, -0.5222076177597046, 0.16498884558677673, 0.3506193161010742, 0.3306601643562317, 0.6529330611228943, -0.386263370513916, -0.5666706562042236, -0.855155885219574, -0.41501158475875854, 0.16150549054145813, 0.07048596441745758, 0.38260066509246826, 0.49450740218162537, -0.47700774669647217, 0.46451520919799805, -0.6478409767150879, -0.7231435179710388, -0.08947397768497467, 0.32913461327552795, -0.16178959608078003, 0.2821531593799591, 0.6418562531471252, -0.8618001341819763, -0.7066277861595154, -0.08445946127176285, -1.1033960580825806, -0.0409805104136467, -0.15973198413848877, -0.19682103395462036, -0.018313728272914886, 0.29284214973449707, -0.49602311849594116, 0.6040952801704407, 0.4675121605396271, -0.3113551735877991, 0.42225030064582825, -0.09141818434000015, 0.526316225528717, -1.089969515800476, 0.13484399020671844, 0.4020463824272156, 0.08785276114940643, -1.0126256942749023, -0.33597874641418457, 0.4550723731517792, -0.08931738883256912, -0.6815110445022583, 0.5133818984031677, -0.5059351921081543, 0.20042289793491364, -0.15124039351940155, -0.0742587298154831, 0.3178617060184479, 0.483335018157959, 0.047574713826179504, 0.7828128933906555, 0.8074751496315002, -0.9078587293624878, 0.10756635665893555, 0.3385615050792694, -0.24619975686073303, 0.49816766381263733, -0.4408215284347534, -0.09875726699829102, -0.05847753584384918, 0.07816262543201447, -0.890086829662323, -0.2590124309062958, 0.12679676711559296, -0.25778859853744507, 0.5127842426300049, -0.38654088973999023, 0.04001551494002342, -0.22239436209201813, -0.4167453646659851, 0.34506937861442566, 0.18244622647762299, -0.4648274779319763, 0.6218881607055664, 0.8654825091362, -0.31332871317863464, -0.7374469041824341, -0.23320335149765015, 0.10287220031023026, -0.4562906324863434, -0.2949851155281067, 0.1689329892396927, 0.10405760258436203, -0.24252952635288239, -0.16128578782081604, -0.11477039754390717, -0.5200347900390625, -0.13126006722450256, 0.13507957756519318, 0.4304110109806061, -0.22109436988830566, 0.16790463030338287, 0.20138098299503326, 0.046091847121715546, 0.1508217304944992, 0.12079942226409912, 0.15953078866004944, 0.21852201223373413, -0.3041772246360779, -0.6971595883369446, 0.613472044467926, 0.663292407989502, -0.25361454486846924, 0.7039820551872253, 0.2980307638645172, -0.6541325449943542, -0.09092060476541519, -0.2866803705692291, -0.09641414880752563, -0.36748382449150085, 0.3690749406814575, -0.41908296942710876, -0.048272617161273956, 0.3869054317474365, -0.44021961092948914, 0.2360169142484665, 0.6674871444702148, 0.4191014766693115, 0.10186188668012619, 0.7549573183059692, 0.5592269897460938, 0.14622892439365387, 0.24166499078273773, -0.3427222967147827, 0.09016479551792145, -0.9189478754997253, -0.38481563329696655, -0.3858075737953186, 0.11819925904273987, -0.36264684796333313, -0.30422690510749817, 0.27583393454551697, -0.0821419209241867, 0.023486575111746788, 0.36710020899772644, -0.18747226893901825, 0.049592673778533936, 0.19181323051452637, 0.07351035624742508, 0.2705848515033722, 0.12680980563163757, 0.07356805354356766, -0.083899587392807, -0.3279637396335602, -0.5958152413368225, 1.8134562969207764, 0.2250901162624359, 0.4324217736721039, 0.3578112721443176, 0.5580427050590515, 0.6115943193435669, 0.4960115849971771, -0.44321927428245544, 0.08914943039417267, -0.33515655994415283, -0.7053275108337402, -0.036807507276535034, -0.1967451274394989, -1.187728762626648, 0.5218167901039124, -0.4198589324951172, -0.7428561449050903, 0.7362354397773743, -0.23204293847084045, -0.6616355180740356, 0.355051726102829, -1.069524884223938, 0.9120994806289673, 0.046062469482421875, -0.4295845329761505, 0.034846771508455276, -0.5805784463882446, 0.38186734914779663, -0.467151403427124, 0.6213634014129639, -0.2787474989891052, -0.09812773019075394, 0.898385763168335, -0.21246188879013062, 0.6830238103866577, -0.2103094756603241, 0.0758674368262291, 0.5419771671295166, -0.18395966291427612, 0.3907422125339508, 0.2482338398694992, 0.12093295902013779, 0.35054096579551697, -0.07341586798429489, -0.5119874477386475, -0.24570336937904358, 0.7664443850517273, -0.868415117263794, -0.20287463068962097, -0.6204275488853455, -0.06886006146669388, -0.31149834394454956, 0.2172933965921402, 0.22679884731769562, 0.5897229313850403, -0.3710974156856537, -0.22871409356594086, 0.5503754615783691, -0.3561980128288269, 0.34284400939941406, 0.6874006390571594, 0.28521957993507385, -0.5865225195884705, 0.7625543475151062, -0.016957290470600128, 0.018171336501836777, 0.2768835425376892, -0.1100008562207222, -0.3332922160625458, -0.6938655376434326, -0.6365801692008972, 0.08771492540836334, -0.7136924266815186, -0.3134356141090393, -1.1942721605300903, -0.03193676844239235, -0.8730419874191284, 0.25945794582366943, -0.5872857570648193, -0.44947388768196106, -0.30169185996055603, -0.1768883466720581, 0.2891677916049957, 1.0124706029891968, -0.10766662657260895, 0.13993434607982635, -0.9079129695892334, 0.590495765209198, 0.3136543035507202, 0.3212036192417145, -0.17348647117614746, -0.3886376917362213, -0.15310116112232208, -0.12559877336025238, -0.45225879549980164, -0.9446042776107788, 0.4285551905632019, 0.4459169805049896, 0.7749791741371155, 0.5142548084259033, 0.04688780754804611, 0.4947282075881958, -0.47218048572540283, 0.5471935868263245, 0.22030594944953918, -0.4327538311481476, 0.5774643421173096, -0.17104992270469666, -0.3266519010066986, 0.8746294975280762, 0.7051342129707336, -0.44651395082473755, 0.1067042201757431, -0.3792110085487366, -1.100380778312683, 0.5885952711105347, 0.3655211329460144, -0.4823673963546753, -0.08722065389156342, 0.2941795289516449, 0.5273741483688354, 0.14035941660404205, -0.5047929883003235, -0.6724375486373901, 0.09235409647226334, -0.05131307989358902, -0.17515408992767334, -0.26434326171875, -0.16561748087406158, 0.15108107030391693, 0.721662700176239, 0.031652141362428665, 0.2893476188182831, 0.28071877360343933, -0.18840736150741577, -0.018400467932224274, 0.3153820037841797, 0.34599876403808594, 0.5677863359451294, -0.36771562695503235, 0.17735902965068817, -0.1256682276725769, -0.923815906047821, 0.281188040971756, 0.4389024078845978, 0.1269136518239975, -0.13878445327281952, 0.4714794456958771, 0.4795728325843811, -0.2311842441558838, -0.6376449465751648, 0.7033088803291321, -0.40571218729019165, -0.13653060793876648, -0.08992920070886612, -0.22724279761314392, -0.5482274293899536, -0.0556827150285244, 0.6236875057220459, 0.4439001679420471, 0.5754831433296204, -0.49995681643486023, 0.7474567294120789, 0.08004914969205856, -0.5396614670753479, -0.41631969809532166, 0.7216928005218506, 0.357718825340271, -0.1353379189968109, 0.26295334100723267, -0.04789149388670921, -0.00628893356770277, 0.6852208375930786, 0.2451809048652649, 0.8906064033508301, -0.18373419344425201, 0.14008763432502747, 0.5192241072654724, -0.004678795579820871, 0.13156603276729584, 0.272895485162735, 0.5448540449142456, -0.6391451358795166, -0.3564990162849426, -0.22016052901744843, -0.13579736649990082, 0.2256913036108017, -0.5755365490913391, 0.3936666250228882, -0.07157666981220245, -0.19400089979171753, 0.41109248995780945, 0.03557245060801506, -0.6071853637695312, 0.22987034916877747, -0.0719873309135437, 0.6290526986122131, -1.2113741636276245, 0.7392951250076294, 0.7501605749130249, -0.5290514826774597, -0.36501598358154297, 0.06975297629833221, 0.27316153049468994, -0.38609811663627625, 0.1692664623260498, 0.28057587146759033, 0.17945770919322968, -0.4514331519603729, -0.037032559514045715, -0.7007734179496765, 0.9046125411987305, -0.18102355301380157, -0.3965865969657898, 0.018009118735790253, -0.022711697965860367, 0.5486543774604797, -0.6151443123817444, 0.09101371467113495, 0.6081833839416504, 0.017250750213861465, -0.08771902322769165, -0.7492483258247375, 0.02832050435245037, -0.429872989654541, -0.53884357213974, 0.1982460469007492, -0.3921830654144287, 0.8580345511436462, -0.42087456583976746, -0.23737117648124695, -0.2308955043554306, 0.2600524425506592, 0.13530407845973969, 0.6755210757255554, 0.10215217620134354, 0.24417831003665924, 0.7722305059432983, 0.20608921349048615, 1.0510668754577637, -0.0951007753610611, 0.31019890308380127, 1.0225882530212402, -0.6384795904159546, 0.5790494680404663, 0.39836862683296204, -0.21267376840114594, 0.5788867473602295, 0.6082680225372314, 0.3377349376678467, 1.0235809087753296, -0.342157781124115, -0.48774343729019165, -0.01744498871266842, 0.16897404193878174, -0.3812020719051361, 0.27907124161720276, 0.661393940448761, -0.3984818160533905, -0.15298958122730255, 0.32436656951904297, -0.235402449965477, -0.04886086285114288, -0.20574796199798584, 1.0857634544372559, -0.012676582671701908, -0.5288966298103333, 0.5109081864356995, -0.06458050012588501, 0.36240920424461365, -0.6007294654846191, -0.25623220205307007, -0.124498151242733, 0.5164698362350464, -0.060101866722106934, -0.4972064793109894, 0.29182255268096924, -0.0010508178966119885, 0.007601354271173477, 0.3520045876502991, 0.7797070741653442, -0.1621822863817215, -0.3765357732772827, 0.46110525727272034, 0.7458589673042297, 0.16726621985435486, -0.09547795355319977, -0.7236570119857788, -0.25262022018432617, 0.06180275231599808, -0.38053229451179504, 0.5287029147148132, 0.6289607286453247, -0.19829043745994568, 0.48837170004844666, 0.6097559332847595, 0.4405618906021118, 0.05155530199408531, 0.08726487308740616, 0.828275740146637, -0.47946035861968994, -0.2421504557132721, -0.7056818008422852, 0.34172824025154114, -0.35854268074035645, -0.4771515727043152, 0.7470831274986267, 0.8177433013916016, 0.21890874207019806, -0.030900752171874046, 1.0770752429962158, 0.07722046226263046, 0.7260314226150513, -0.37657880783081055, 0.5521649122238159, -0.34224286675453186, 0.3836020827293396, -0.25161078572273254, -0.6128026843070984, -0.4094235599040985, 0.3155929744243622, -0.07944466918706894, -0.22588512301445007, 1.002240777015686, 0.43126529455184937, -0.15825195610523224, 0.04658255726099014, 0.0309863593429327, -0.011675707064568996, 0.5429694652557373, 0.4552071988582611, 0.28033721446990967, -0.9999963641166687, 0.5793010592460632, -0.145786851644516, -0.4387708604335785, 0.01769951358437538, -0.5324921011924744, -0.9516845941543579, -0.4141092002391815, -0.4406040608882904, -0.4351560175418854, 0.4180653393268585, 0.9697406888008118, 0.6934919357299805, -1.2949756383895874, 0.10527244955301285, 0.07435722649097443, 0.12169847637414932, -0.4895724952220917, -0.18217003345489502, 0.8728451728820801, -0.221781387925148, -0.5485414266586304, 0.2821269631385803, 0.33789360523223877, 0.2108788788318634, 0.30888670682907104, 0.1871393471956253, -0.8220199346542358, 0.03210416063666344, 0.6208470463752747, 0.32326540350914, -0.09856913238763809, -0.07604412734508514, -0.09964745491743088, -0.20299667119979858, 0.2716955244541168, 0.9889874458312988, -0.4557986855506897, 0.4663090109825134, 0.11594383418560028, 0.5690656304359436, 0.5755428671836853, -0.038516730070114136, 0.6365558505058289, -0.6560319066047668, -0.017040768638253212, 0.023762881755828857, 0.4711197018623352, 0.07198216766119003, -0.4046551287174225, 0.5427471995353699, 0.38694486021995544, -0.5411597490310669, -0.5619102120399475, 0.06459392607212067, -0.6699298620223999, -0.5539476871490479, 1.3745537996292114, -0.41385284066200256, -0.2190164476633072, -0.8282508850097656, -0.2660825550556183, 0.217756450176239, -0.6511149406433105, 0.9510769248008728, 0.3886358141899109, -0.5167709589004517, 0.11001124233007431, -0.7299105525016785, 0.7802203893661499, -0.17265167832374573, -1.1226918697357178, 0.38511744141578674, 0.5297940969467163, 0.34701648354530334, -0.004370987880975008, 1.015255331993103, -0.28808432817459106, 0.3956364095211029, 0.06155089661478996, 0.2957416772842407, 0.2613697946071625, -0.6505921483039856, -0.3576738238334656, 0.4334787428379059, -0.21391238272190094, -0.5062150359153748 ]
http://arxiv.org/abs/2405.18009v1
http://arxiv.org/pdf/2405.18009v1
Exploring Context Window of Large Language Models via Decomposed Positional Vectors
2024-05-28T09:50:46
2024-05-28T09:50:46
Zican Dong, Junyi Li, Xin Men, Wayne Xin Zhao, Bingbing Wang, Zhen Tian, Weipeng Chen, Ji-Rong Wen
cs.CL
cs.CL, cs.LG
Transformer-based large language models (LLMs) typically have a limited context window, resulting in significant performance degradation when processing text beyond the length of the context window. Extensive studies have been proposed to extend the context window and achieve length extrapolation of LLMs, but there is still a lack of in-depth interpretation of these approaches. In this study, we explore the positional information within and beyond the context window for deciphering the underlying mechanism of LLMs. By using a mean-based decomposition method, we disentangle positional vectors from hidden states of LLMs and analyze their formation and effect on attention. Furthermore, when texts exceed the context window, we analyze the change of positional vectors in two settings, i.e., direct extrapolation and context window extension. Based on our findings, we design two training-free context window extension methods, positional vector replacement and attention window extension. Experimental results show that our methods can effectively extend the context window length.
[ -0.39700746536254883, -0.7355477809906006, 0.8126245737075806, -0.15627813339233398, -0.4601115882396698, -0.08310931921005249, -0.5341179966926575, -0.37919020652770996, 0.14714442193508148, 0.2896239459514618, -0.6688300371170044, -0.3959328532218933, -0.6272845268249512, -0.11790300160646439, -0.4659516215324402, 0.6841113567352295, -0.1545131802558899, -0.3078439235687256, -0.3065390884876251, -0.01670926809310913, -0.6499341130256653, -0.6550540328025818, -0.27421697974205017, -0.09427272528409958, 0.27694523334503174, 0.14479854702949524, 0.4564530551433563, 0.5059396028518677, 0.2707378566265106, 0.3121740221977234, -0.4040902554988861, -0.09253041446208954, -0.7279446721076965, 0.2226267009973526, -0.020469488576054573, -0.5357048511505127, -0.25387322902679443, 0.08101342618465424, 0.8995787501335144, 0.637418270111084, 0.22859370708465576, 0.18862220644950867, 0.3230024576187134, 0.49646440148353577, -0.7569888830184937, 0.41479647159576416, -0.5233967900276184, -0.011879896745085716, -0.012020889669656754, -0.3665103316307068, -0.5405693650245667, 0.09916327148675919, 0.3703242242336273, -0.259300172328949, 0.4088248610496521, -0.14395412802696228, 0.5816543102264404, 0.40169310569763184, -0.6047021746635437, 0.1177450492978096, -0.8646674752235413, 1.1071717739105225, -0.4564674496650696, 0.5386798977851868, 0.06662959605455399, 0.1365281045436859, -0.334073930978775, -0.32019612193107605, -0.47285300493240356, -0.07904763519763947, -0.3771522343158722, -0.08607596904039383, -0.4613659083843231, -0.04609720781445503, 0.2954998314380646, 0.09522327780723572, -0.36828190088272095, -0.017219459637999535, -0.32175660133361816, -0.03453419357538223, 0.366634339094162, -0.02794496715068817, 0.3551705777645111, -0.2081853300333023, -0.4688265323638916, -0.35295432806015015, -0.7344704270362854, 0.21375775337219238, 0.011468867771327496, 0.04408881068229675, -0.12032625079154968, 0.5042697787284851, 0.21951773762702942, 0.8400087952613831, -0.21763841807842255, -0.07638734579086304, 0.2838028371334076, -0.07339023798704147, -0.41924622654914856, 0.16934029757976532, 0.553353488445282, 0.5193213820457458, -0.05123778432607651, -0.034544363617897034, -0.22291159629821777, 0.07157962024211884, 0.15110084414482117, -0.6881721019744873, 0.33324089646339417, 0.18015767633914948, -0.4920128583908081, -0.2509250044822693, -0.10108773410320282, -0.353339284658432, -0.11638534814119339, -0.39398837089538574, 0.0860389769077301, -0.4059353768825531, -0.3294092118740082, -0.08037212491035461, -0.0964159145951271, 0.5345072746276855, 0.22254960238933563, -0.9060395359992981, -0.0542321540415287, 0.9330194592475891, 0.6700284481048584, -0.5045613050460815, -0.2933709919452667, -0.34939703345298767, 0.29200196266174316, -0.41656801104545593, 0.5980200171470642, -0.8488590121269226, -0.48086628317832947, -0.03238748013973236, 0.28801998496055603, -0.23576529324054718, -0.4768664538860321, 0.49825072288513184, -0.7848907113075256, 0.2641410827636719, -0.2550241947174072, -0.4874286949634552, -0.26888301968574524, 0.3564961552619934, -0.8229635953903198, 1.0774197578430176, 0.040511421859264374, -0.7774753570556641, 0.138173446059227, -0.6887525320053101, -0.3881416618824005, -0.18827201426029205, -0.3023054897785187, -0.12296125292778015, 0.5869081616401672, 0.396452397108078, 0.6975201368331909, -0.126283660531044, 0.2602968215942383, -0.015076186507940292, -0.6025139093399048, 0.6057398915290833, -0.7529265284538269, 0.5448256134986877, -0.08396413922309875, -0.23772549629211426, 0.2764412760734558, -0.8474257588386536, -0.161868155002594, -0.06870974600315094, -0.44557565450668335, -0.6886228919029236, 0.10669984668493271, -0.032232437282800674, 0.24632486701011658, 0.2228919416666031, -0.54031902551651, 0.07164446264505386, -0.5810098648071289, 0.49469977617263794, 0.6517022252082825, 0.0578603520989418, 0.6532384753227234, 0.13462746143341064, 0.4972400367259979, 0.15601740777492523, -0.03741919621825218, -0.4055962562561035, -0.1540299654006958, -0.6591151356697083, -0.17463825643062592, -0.03403761237859726, 0.21317723393440247, -0.6898537278175354, 0.27582311630249023, -0.6562447547912598, 0.13235341012477875, -0.31561216711997986, -0.2605380415916443, 0.2185737043619156, 0.4992564022541046, 0.36868512630462646, 0.22657839953899384, -0.5735677480697632, -0.9969924092292786, -0.14186429977416992, -0.020100077614188194, -0.34386375546455383, 0.07837966084480286, 0.3492145240306854, -0.38759946823120117, 1.1751056909561157, -0.6746546030044556, -0.11814729869365692, -0.2785417139530182, -0.37251710891723633, 0.09217438846826553, 0.21270310878753662, 0.40126273036003113, -0.7538883090019226, -0.1169314756989479, -0.31316429376602173, -0.4923367202281952, 0.1391741931438446, 0.01610621251165867, -0.05171164125204086, 0.35078972578048706, 0.9820393323898315, -0.5762802958488464, 0.5066608190536499, 0.8634999990463257, -0.23257392644882202, 0.3872074782848358, -0.08295831829309464, -0.07161235064268112, -1.1528438329696655, 0.031962718814611435, -0.0033354118932038546, -0.4035552740097046, -0.664840579032898, 0.06615649908781052, 0.25541824102401733, -0.15715637803077698, -0.541852593421936, 0.5198952555656433, -0.760627031326294, -0.3112696409225464, -0.7590101957321167, 0.35609033703804016, 0.08382365852594376, 0.5742156505584717, 0.130313903093338, 0.7536913752555847, 0.44397634267807007, -0.4612354338169098, 0.16706104576587677, 0.06317441910505295, -0.5823656320571899, 0.06327413767576218, -0.5697536468505859, -0.04827180132269859, -0.43538087606430054, 0.4753803312778473, -1.3071497678756714, -0.024547088891267776, 0.05485435947775841, -0.3150855004787445, 0.4764396846294403, -0.1844559609889984, -0.22680357098579407, -0.17916852235794067, -0.5024634003639221, 0.4779074490070343, 0.3212136924266815, -0.6929895281791687, 0.43239498138427734, 0.44944173097610474, 0.10491221398115158, -0.7144131660461426, -0.6931332945823669, 0.08424542844295502, -0.4012574851512909, -0.5414066910743713, 0.5982369184494019, 0.2323523461818695, -0.40991076827049255, -0.012281526811420918, -0.16459454596042633, 0.21029974520206451, 0.14612700045108795, 0.2717624008655548, 0.31770059466362, -0.18119293451309204, 0.16484206914901733, 0.07861915230751038, -0.21944870054721832, 0.2601601481437683, -0.07356863468885422, 0.6101905107498169, -0.09459692984819412, -0.21165767312049866, -0.18993112444877625, 0.3746891915798187, 0.7219624519348145, -0.44583654403686523, 0.985663890838623, 0.43758639693260193, -0.3629179894924164, -0.21439070999622345, -0.33254823088645935, -0.3202480375766754, -0.510657548904419, 0.5145653486251831, -0.40168094635009766, -0.9824115037918091, 0.5580371618270874, -0.1152757778763771, -0.13237264752388, 0.24108555912971497, 0.601020336151123, 0.15679778158664703, 0.9357545375823975, 1.0003068447113037, -0.09799344837665558, 0.693694531917572, -0.2853248119354248, 0.13020150363445282, -1.3623008728027344, -0.19434985518455505, 0.009668760001659393, -0.45502087473869324, -0.39128541946411133, -0.8288623094558716, 0.4751356542110443, 0.05684700235724449, 0.2567771077156067, 0.37026065587997437, -0.4223274886608124, 0.6863283514976501, 0.2850278913974762, 0.09959469735622406, 0.09489027410745621, -0.04237421229481697, -0.11028288304805756, -0.0007052186410874128, -0.4649762809276581, -0.3999398946762085, 0.7745579481124878, 0.6305579543113708, 0.5231738090515137, 0.20749111473560333, 0.3338041603565216, -0.2045929878950119, 0.24857684969902039, -0.9795776605606079, 0.6695668697357178, 0.12652841210365295, -0.3483040928840637, -0.58812016248703, -0.14212946593761444, -0.988418698310852, 0.5483318567276001, 0.19904619455337524, -0.9295325875282288, 0.09021800756454468, -0.18375739455223083, -0.11156446486711502, 0.09572024643421173, -0.6666452884674072, 0.71294766664505, 0.0777251273393631, -0.38387036323547363, -0.13574478030204773, -0.5754145979881287, 0.1739438772201538, 0.0566142201423645, 0.1279769092798233, -0.18922795355319977, -0.13741354644298553, 0.7900930047035217, -0.41551467776298523, 0.889934241771698, -0.16212420165538788, -0.6893072128295898, 0.3017377257347107, -0.017952758818864822, 0.7256664037704468, 0.0027232107240706682, 0.1297629475593567, 0.17150339484214783, -0.22975783050060272, -0.12596721947193146, -0.6615985631942749, 0.997038722038269, -0.5894547700881958, -0.7854213118553162, -0.06489010900259018, -0.6186736822128296, -0.2376949042081833, -0.019107244908809662, 0.30778536200523376, 0.6077000498771667, -0.09804742783308029, 0.3660881221294403, 0.7218172550201416, -0.39016035199165344, 0.874448299407959, 0.5730586647987366, -0.15244357287883759, 0.2298576980829239, 0.43513044714927673, -0.07759705185890198, -0.012467578984797001, 0.8672983050346375, 0.23812805116176605, -0.6392819285392761, -0.37928417325019836, -0.23211179673671722, 0.10155628621578217, -0.8689722418785095, 0.14958064258098602, -0.4965173602104187, 0.004857568070292473, -0.4307032525539398, -0.055692803114652634, -0.3861698508262634, -0.26698368787765503, -0.465629905462265, -0.34310969710350037, 0.20128561556339264, 0.2626938223838806, 0.29852354526519775, 0.20521773397922516, -0.7848957180976868, -0.04170789569616318, 0.12076269090175629, 0.3627837896347046, 0.23357324302196503, -0.5092988014221191, -0.2977529764175415, -0.08688424527645111, 0.02829141356050968, -0.9435728788375854, 0.47173550724983215, -0.1593163013458252, 0.5628616809844971, 0.31175434589385986, 0.03415978327393532, 0.5230226516723633, -0.8814632892608643, 0.7601179480552673, 0.14123140275478363, -0.8601351380348206, 0.4064549207687378, -0.40867286920547485, 0.7004443407058716, 0.07335838675498962, 0.14939378201961517, -0.6138174533843994, -0.41952332854270935, -0.16485919058322906, -0.9532648921012878, 0.6804519295692444, 0.1354115605354309, 0.25563135743141174, -0.0809180960059166, 0.3346741795539856, -0.14973600208759308, -0.16738463938236237, -0.5589562058448792, -0.3714635372161865, 0.08414404094219208, -0.061828553676605225, -0.3843126595020294, -0.5891941785812378, -0.06919784098863602, -0.11229126900434494, 0.36530402302742004, -0.1568099409341812, 0.4523680806159973, 0.10086701065301895, -0.3778188228607178, 0.07155217975378036, 0.5275572538375854, 0.865241527557373, 0.9399591088294983, -0.10566288977861404, 0.4039674699306488, 0.23763710260391235, -0.3418741822242737, 0.284186989068985, -0.01777123287320137, 0.07308617234230042, 0.12148105353116989, 0.4067319333553314, 1.0500414371490479, 0.6157582998275757, -0.5895987153053284, 0.6637486219406128, -0.18649102747440338, 0.1949208676815033, -0.4612613916397095, 0.006288660224527121, 0.23951789736747742, 0.3740374743938446, 0.5051971077919006, -0.2954970598220825, 0.12133011966943741, -0.42752256989479065, 0.2173061966896057, 0.47392088174819946, -0.5497981309890747, -0.43408864736557007, 0.681799590587616, 0.10819324851036072, -0.056512925773859024, 0.185947448015213, 0.29025980830192566, -0.5682703852653503, 0.4205462634563446, 0.6296278834342957, 0.8749436736106873, -0.21392717957496643, 0.07153508067131042, 0.07563932240009308, 0.18420009315013885, -0.002761904150247574, -0.09875921159982681, -0.17449934780597687, -0.7583707571029663, -0.9341858625411987, -0.5827709436416626, -0.11513590812683105, 0.5913683772087097, -0.6377020478248596, 0.22776725888252258, 0.002784459386020899, -0.0864408016204834, -0.1853773593902588, -0.3094880282878876, -0.468963086605072, 0.007862810976803303, 0.47470855712890625, 0.6870898604393005, -0.5590168833732605, 0.8971506357192993, 0.8619174361228943, 0.27629703283309937, -0.6421793103218079, 0.32107385993003845, -0.10447793453931808, -0.6612309217453003, 0.6275032162666321, 0.5618528127670288, -0.49782851338386536, -0.1498052477836609, -0.4517992436885834, -1.087422490119934, 0.981934666633606, 0.435814768075943, -0.6972109079360962, -0.06391958147287369, 0.30056092143058777, 0.6735680103302002, -0.12388202548027039, 0.04244963452219963, 0.6387708187103271, 0.05009430646896362, -0.04474206268787384, -0.6720664501190186, 0.40283358097076416, -0.05035197734832764, 0.2891904413700104, 0.33559033274650574, -0.718398928642273, 0.7299394011497498, 0.008080794475972652, -0.44365760684013367, -0.40780624747276306, 0.5688097476959229, 0.08121180534362793, -0.11046233773231506, 0.3646082282066345, 0.38335999846458435, 0.4342200458049774, 0.10771185159683228, 1.0945864915847778, -0.5522447824478149, 0.5039762258529663, 1.0328549146652222, -0.1670169234275818, 0.9412456750869751, 0.6876569986343384, 0.16954991221427917, 0.45481905341148376, 0.37694811820983887, 0.3228183686733246, 0.49435511231422424, 0.09987565875053406, -0.3461604118347168, -0.11346835643053055, 0.26765260100364685, -0.20921233296394348, 0.5786536931991577, 0.42842796444892883, -0.696282684803009, -0.3016817271709442, 0.39312002062797546, 0.08591090887784958, -0.14872591197490692, -0.28297558426856995, 0.6201229691505432, 0.04505605250597, -0.7846108078956604, 0.8888960480690002, 0.5011547803878784, 0.5618382096290588, -0.18314069509506226, 0.13688376545906067, -0.07926689833402634, 0.42689216136932373, 0.15158811211585999, -0.7300012111663818, 0.32689088582992554, -0.02280469983816147, -0.4017064869403839, -0.38280874490737915, 0.945488691329956, -0.42274799942970276, -0.22195596992969513, 0.4284375011920929, 0.318805456161499, -0.023845069110393524, -0.2942599654197693, -0.3018225431442261, 0.390403151512146, 0.03626275807619095, -0.6849645972251892, 0.36440935730934143, 0.28882265090942383, -0.2738085985183716, 0.5558744072914124, 0.4766189455986023, -0.3888460695743561, 0.09823297709226608, -0.05026141181588173, 1.0198510885238647, -0.6640284657478333, -0.5659105777740479, -1.2979068756103516, 0.19683736562728882, 0.15354999899864197, 0.1076328456401825, 0.8998307585716248, 0.553852379322052, 0.759516716003418, -0.1490435004234314, 0.7280288338661194, 0.3477939963340759, 0.489730566740036, -0.5406348705291748, 0.6701992750167847, -0.47890758514404297, 0.5009456276893616, -0.2023676633834839, -1.1039040088653564, -0.25098153948783875, 0.4373480975627899, -0.6456805467605591, -0.3380160331726074, 0.5738005042076111, 0.5670338273048401, -0.07883580029010773, -0.17774349451065063, 0.40852874517440796, 0.2531943917274475, 0.5950774550437927, 0.6240657567977905, 1.0182942152023315, -0.28473538160324097, 0.6669323444366455, -0.0020741296466439962, -0.3232439458370209, -0.35500603914260864, -0.8423832058906555, -0.9925258755683899, -0.6532776355743408, -0.14044538140296936, -0.03324410319328308, -0.36406001448631287, 0.6913701295852661, 0.5510668754577637, -0.5293169021606445, 0.014966397546231747, 0.05712941661477089, 0.08541866391897202, 0.011121341027319431, -0.29515984654426575, 0.7863092422485352, -0.046670909970998764, -0.887233555316925, 0.8083857893943787, 0.3113461434841156, 0.18732565641403198, -0.37755370140075684, 0.17723537981510162, 0.0425664484500885, 0.06668814271688461, 1.030351161956787, -0.007516636047512293, -0.5174065828323364, -0.5018311738967896, 0.10659758746623993, -0.013330967165529728, 0.13678637146949768, 0.9146000742912292, -0.8939756155014038, 0.1822405457496643, 0.6102584600448608, 0.38547784090042114, 0.46856045722961426, 0.25052163004875183, 0.5962203741073608, -1.3728936910629272, 0.472421795129776, -0.053905241191387177, 0.4043440818786621, 0.29645296931266785, -0.26343631744384766, 0.10871366411447525, -0.025940071791410446, -0.22524221241474152, -0.8596302270889282, 0.31222331523895264, -0.732526421546936, -0.7465009689331055, 1.5449155569076538, -0.01675591617822647, -0.652079701423645, 0.15307392179965973, -0.17451871931552887, 0.3281637728214264, -0.18672116100788116, 0.5916032195091248, 0.6847363114356995, -0.2542755901813507, -0.18230484426021576, -0.4405071437358856, 0.5737214684486389, 0.18205833435058594, -0.4828087389469147, 0.3977017104625702, 0.6024318337440491, 0.4535549283027649, 0.2802489399909973, 0.40859606862068176, -0.26122599840164185, -0.11995294690132141, -0.32356107234954834, -0.31730130314826965, -0.10734125226736069, -0.41904762387275696, -0.6017299890518188, 0.2577287256717682, -0.304111123085022, -0.3985888361930847 ]
http://arxiv.org/abs/2405.17998v1
http://arxiv.org/pdf/2405.17998v1
Source Echo Chamber: Exploring the Escalation of Source Bias in User, Data, and Recommender System Feedback Loop
2024-05-28T09:34:50
2024-05-28T09:34:50
Yuqi Zhou, Sunhao Dai, Liang Pang, Gang Wang, Zhenhua Dong, Jun Xu, Ji-Rong Wen
cs.IR
cs.IR, cs.AI, cs.CL
Recently, researchers have uncovered that neural retrieval models prefer AI-generated content (AIGC), called source bias. Compared to active search behavior, recommendation represents another important means of information acquisition, where users are more prone to source bias. Furthermore, delving into the recommendation scenario, as AIGC becomes integrated within the feedback loop involving users, data, and the recommender system, it progressively contaminates the candidate items, the user interaction history, and ultimately, the data used to train the recommendation models. How and to what extent the source bias affects the neural recommendation models within feedback loop remains unknown. In this study, we extend the investigation of source bias into the realm of recommender systems, specifically examining its impact across different phases of the feedback loop. We conceptualize the progression of AIGC integration into the recommendation content ecosystem in three distinct phases-HGC dominate, HGC-AIGC coexist, and AIGC dominance-each representing past, present, and future states, respectively. Through extensive experiments across three datasets from diverse domains, we demonstrate the prevalence of source bias and reveal a potential digital echo chamber with source bias amplification throughout the feedback loop. This trend risks creating a recommender ecosystem with limited information source, such as AIGC, being disproportionately recommended. To counteract this bias and prevent its escalation in the feedback loop, we introduce a black-box debiasing method that maintains model impartiality towards both HGC and AIGC. Our experimental results validate the effectiveness of the proposed debiasing method, confirming its potential to disrupt the feedback loop.
[ -0.6119816899299622, -0.8003852367401123, 0.6739088296890259, -0.35097625851631165, -0.2855653762817383, -0.04035724326968193, 0.00025373094831593335, -0.4185006320476532, 0.03489455208182335, 0.5893560647964478, -0.6591174006462097, -0.22740137577056885, -0.7116503119468689, -0.07419678568840027, -0.5863394141197205, 1.2322337627410889, 0.14033812284469604, 0.3117007911205292, -0.23693202435970306, -0.004454944748431444, -0.8477174639701843, -0.6593705415725708, -0.43861857056617737, -0.45182719826698303, 0.381134033203125, 0.262975811958313, 0.7865062355995178, 0.6088545322418213, 0.42454439401626587, 0.10184331983327866, -0.1817115992307663, -0.024665631353855133, -0.6125978827476501, 0.5178412199020386, -0.2247539907693863, -0.39595314860343933, -0.029809528961777687, 0.017058711498975754, 0.23299001157283783, 0.2972354292869568, -0.4316576421260834, 0.35681843757629395, 0.38907477259635925, 0.5039085149765015, -0.8035035729408264, -0.10251052677631378, -0.7006223797798157, -0.08975882083177567, -0.02199033461511135, -0.40655517578125, -0.44071337580680847, -0.2838122248649597, 0.4973810613155365, -0.5031718015670776, 0.27766215801239014, 0.20375852286815643, 0.6161133646965027, 0.5541663765907288, -0.19800616800785065, -0.4434058368206024, -1.0845110416412354, 0.5381838083267212, -0.47527793049812317, 0.22474806010723114, 0.4250805974006653, 0.20289748907089233, 0.04186341539025307, -0.5341230034828186, -0.5111610889434814, -0.2027408331632614, -0.02438521943986416, -0.0902193933725357, -0.6522859334945679, -0.06543970853090286, 0.2171042412519455, 0.19170747697353363, -0.17405623197555542, -0.3162660598754883, -0.5340704321861267, -0.06326285004615784, 0.3515491783618927, -0.0263145100325346, 0.49044764041900635, -0.2782834470272064, -0.1642513871192932, -0.05433215573430061, -0.8001693487167358, -0.08301825821399689, 0.7046751379966736, 0.3280562162399292, 0.3292059004306793, 0.4934401214122772, 0.09663806855678558, 0.472552090883255, 0.5153677463531494, 0.39679092168807983, -0.17348764836788177, -0.6530390381813049, 0.09457064419984818, 0.5188716053962708, 0.6170378923416138, 0.24548974633216858, 0.1042034700512886, 0.0997561514377594, 0.16771665215492249, -0.26970526576042175, 0.9771697521209717, -0.6503434181213379, 0.025462185963988304, 0.11245465278625488, -0.6232091784477234, -0.49157238006591797, 0.15859900414943695, -0.6341089010238647, -0.7092752456665039, -0.28780537843704224, 0.5460056662559509, -0.05962306633591652, -0.29392102360725403, -0.3675808906555176, -0.2602321207523346, -0.2475382387638092, 0.1681523323059082, -0.5110362768173218, 0.27365991473197937, 0.5502485632896423, 0.929395854473114, -0.041637927293777466, -0.22527693212032318, -0.4454359710216522, -0.12207066267728806, -0.16168126463890076, 0.7891243100166321, -0.8591404557228088, -0.5865055322647095, 0.16871921718120575, 0.05965379253029823, 0.5517815351486206, -0.6542360186576843, 0.5338295698165894, -0.5496965646743774, 0.26201897859573364, -0.44747859239578247, -0.29389265179634094, -0.26573580503463745, -0.02763032354414463, -0.5452406406402588, 0.8597365617752075, 0.0005460990942083299, -0.6511080265045166, 0.5038639903068542, -0.35053935647010803, -0.16196593642234802, -0.038991961628198624, -0.1834086924791336, -0.2978839576244354, 0.003160732565447688, 0.47471901774406433, 0.061707302927970886, -0.2648608088493347, 0.25932544469833374, -0.662726640701294, -0.7235062122344971, 0.12951737642288208, -0.4976266622543335, 0.5454909801483154, 0.2598154842853546, -0.7407574653625488, 0.08754140138626099, -0.5328156352043152, -0.3501507043838501, -0.20201550424098969, 0.06474360823631287, -0.5976628661155701, 0.29580748081207275, -0.07897231727838516, 0.2658757269382477, -0.16403120756149292, -0.2785879075527191, 0.10445436090230942, 0.13905015587806702, 0.5959399938583374, 1.0810948610305786, 0.5909281969070435, 0.3490042984485626, -0.2726845145225525, 0.5192995667457581, 0.3657934069633484, 0.14694233238697052, -0.35439708828926086, -0.3675187826156616, -0.6367049813270569, 0.3100281357765198, 0.0426500178873539, 0.05515001714229584, -0.47804492712020874, 0.5242409706115723, 0.19526389241218567, -0.2770856022834778, -0.9449895024299622, 0.10839922726154327, 0.08161622285842896, 0.34342503547668457, 0.5346603989601135, -0.0873887911438942, -0.2932193875312805, -0.8820719122886658, -0.27309152483940125, -0.24891622364521027, -0.1296979784965515, 0.6874192357063293, 0.10027536004781723, -0.37540295720100403, 0.6584026217460632, -0.36105895042419434, -0.392513632774353, 0.02522997371852398, 0.08902980387210846, 0.29747140407562256, 0.17178387939929962, 0.3687109649181366, -0.3748605251312256, -0.10543059557676315, -0.36817923188209534, -0.6609470248222351, -0.3017001748085022, -0.1808273047208786, -0.4119996130466461, -0.20566606521606445, 0.328590452671051, -0.2105364203453064, 0.40443384647369385, 0.4488680064678192, -0.6512054204940796, 0.39734259247779846, -0.011575653217732906, 0.29048460721969604, -0.9508326053619385, 0.06680596619844437, 0.19199992716312408, 0.1155923381447792, -0.19230882823467255, 0.060025423765182495, -0.24197284877300262, -0.058795757591724396, -0.04369309917092323, 0.13824938237667084, -0.29277878999710083, 0.0480341799557209, -0.5935230255126953, 0.052310504019260406, 0.06322477757930756, 0.3558284342288971, -0.16209782660007477, 0.8992485404014587, 0.3259443938732147, -0.40114837884902954, 0.16041821241378784, 0.23353460431098938, -0.3759532570838928, 0.6169273853302002, -0.8245465755462646, 0.44355419278144836, -0.11097869277000427, 0.5241147875785828, -0.7738707661628723, 0.31572604179382324, 0.41825994849205017, -0.23977695405483246, -0.03734266757965088, -0.23144884407520294, -0.16385270655155182, -0.15490102767944336, -0.2873378396034241, 0.5229101181030273, 0.3387090861797333, -0.6912602782249451, 0.18400342762470245, 0.33390769362449646, -0.17531640827655792, -0.9702277183532715, -0.5011420249938965, 0.167243093252182, -0.01951718144118786, -0.30601561069488525, 0.24091321229934692, -0.20270752906799316, -0.6212928295135498, 0.5029733777046204, -0.17837142944335938, 0.23228876292705536, -0.22853469848632812, 0.5990593433380127, 0.3206920325756073, -0.0066962162964046, 0.22207292914390564, 0.11394307762384415, 0.14849233627319336, 0.11431972682476044, -0.6876472234725952, 0.4647974967956543, 0.036350082606077194, -0.5700463056564331, -0.4333095848560333, 0.3165163993835449, 0.6488373279571533, 0.05589642748236656, 0.6228779554367065, 0.46122291684150696, -0.22273656725883484, -0.47486329078674316, -0.5934069156646729, -0.5693134665489197, -0.4363647699356079, 0.2111811488866806, 0.08458154648542404, -0.6712891459465027, 0.40703701972961426, 0.5061872005462646, -0.20709870755672455, 0.39408260583877563, 0.8110987544059753, 0.0366872176527977, 1.0119428634643555, 0.404839426279068, -0.362474262714386, 0.5293173789978027, -0.41089603304862976, 0.2240428328514099, -1.0497130155563354, -0.042836595326662064, -0.5608847737312317, -0.4535386562347412, -0.6523538827896118, -0.06805593520402908, 0.34388136863708496, -0.06563405692577362, -0.11711692810058594, 0.15024316310882568, -0.8702437281608582, 0.2270316630601883, 0.8628255724906921, 0.5164264440536499, 0.42818683385849, -0.05237138271331787, 0.06602538377046585, 0.04107152298092842, -0.49928760528564453, -0.22923223674297333, 1.4024564027786255, 0.3418591618537903, 0.8411305546760559, -0.17470405995845795, 0.29129093885421753, 0.9602837562561035, 0.18268686532974243, -0.8179553747177124, -0.010058050975203514, 0.23858171701431274, -0.744248628616333, -0.04223323613405228, -0.02396639995276928, -0.5958814024925232, 0.12622661888599396, -0.06908068805932999, -0.3698343336582184, 0.8490774631500244, -0.03709577023983002, -0.40748515725135803, 0.34007924795150757, -0.47238415479660034, 0.2560444474220276, -0.07048889994621277, -0.7554625868797302, -0.5983816385269165, -0.19786210358142853, 0.1289176344871521, 0.02087767980992794, 0.003731702221557498, 0.060807403177022934, 0.3525044620037079, 0.42225542664527893, -0.42053622007369995, 0.34510767459869385, -0.2933705449104309, 0.04055546224117279, 0.6907023787498474, 0.27480894327163696, 0.6358981132507324, 0.3196163773536682, -0.15538769960403442, 0.6695833802223206, -0.3229774236679077, -0.1915329247713089, -0.41161835193634033, 0.8585318922996521, -1.1537822484970093, -0.8274007439613342, -0.5673938989639282, -0.2762959599494934, 0.16517522931098938, 0.14246901869773865, 0.3888574540615082, 0.32205110788345337, 0.11001486331224442, 0.36900201439857483, 0.40081462264060974, -0.17448073625564575, 0.28743648529052734, 0.45818573236465454, 0.1406363993883133, -0.5209546089172363, 0.6353540420532227, 0.25563231110572815, 0.05976482853293419, -0.1708330661058426, 0.12545564770698547, -0.200396329164505, -0.8643374443054199, -0.4611935019493103, -0.009161911904811859, -0.4705783426761627, -0.13294848799705505, -0.5510016083717346, -0.2300104945898056, -0.23385335505008698, 0.07904192060232162, -0.10416749119758606, 0.15939895808696747, -0.30501389503479004, -0.3663571774959564, 0.005248574540019035, 1.0483686923980713, 0.22400611639022827, 0.21330475807189941, -0.42422574758529663, -0.01846899837255478, 0.43263596296310425, 0.4952161908149719, 0.18307501077651978, -0.5073955655097961, -0.3873293101787567, 0.0855262279510498, -0.6208676099777222, -0.906671404838562, 0.14893117547035217, -0.1946035921573639, 0.6332073211669922, 0.772901713848114, 0.04646122828125954, 0.41185933351516724, -0.4093327522277832, 1.1503987312316895, -0.1473899632692337, -0.8235622644424438, 0.544883668422699, -0.6167219877243042, 0.2482316792011261, 0.6829378008842468, 0.22861097753047943, -0.5819063782691956, -0.5083622336387634, -0.6544373631477356, -0.7505150437355042, 0.9247393608093262, 0.1293375939130783, 0.14420892298221588, 0.06007133796811104, 0.38275524973869324, 0.25789058208465576, 0.5118595957756042, -0.5367249250411987, -0.24225221574306488, -0.4534815549850464, 0.3184853792190552, 0.0748995691537857, -0.4901098906993866, -0.31459730863571167, 0.03423982113599777, 0.6270315647125244, -0.009296873584389687, 0.2938222885131836, 0.3964809775352478, -0.0026104527059942484, -0.6831722855567932, 0.15525175631046295, 0.4281434416770935, 0.6940451860427856, -0.5523744225502014, 0.10729757696390152, -0.19723965227603912, -0.4505315124988556, 0.31091830134391785, -0.08624386787414551, -0.541140615940094, 0.056418150663375854, 0.2321348488330841, 0.7956877946853638, -0.02757870778441429, -0.3319706916809082, 0.3797633647918701, -0.0889812782406807, 0.016487156972289085, -0.441214919090271, 0.1440831571817398, -0.29071199893951416, 0.2359747439622879, 0.7539084553718567, 0.4823988676071167, 0.510084867477417, -0.7643168568611145, 0.36022067070007324, 0.3908328711986542, -0.7101072072982788, -0.2450881004333496, 0.5989866852760315, 0.34675332903862, -0.3070204257965088, 0.8960186243057251, 0.35193464159965515, -0.19733834266662598, 0.481124609708786, 0.4038986563682556, 1.2810077667236328, 0.03213364630937576, 0.11927932500839233, 0.6124488711357117, 0.2839941382408142, -0.03527999296784401, -0.3642343580722809, -0.32732006907463074, -0.6642151474952698, -0.20091688632965088, -0.4005308151245117, -0.4134162664413452, 0.3059874475002289, -0.8598993420600891, 0.5175871849060059, -0.4118075966835022, -0.3774476647377014, -0.10092063248157501, -0.11232254654169083, -0.5537481307983398, -0.191515251994133, 0.49129360914230347, 0.5666819214820862, -0.42992696166038513, 0.47856998443603516, 0.4009855091571808, -0.4346621334552765, -0.6111652851104736, 0.5292890071868896, 0.4653458893299103, -0.6866028308868408, 0.36563640832901, -0.10774488002061844, -0.24868856370449066, -0.25697141885757446, -0.4418759346008301, -0.8193283081054688, 0.9813473224639893, 0.15549838542938232, -0.4933817982673645, -0.1097312644124031, -0.3018752634525299, 0.6696755290031433, -0.5554943680763245, 0.8491341471672058, 0.4449063539505005, 0.4834894835948944, -0.06842328608036041, -0.6272162795066833, 0.21661782264709473, -0.48872891068458557, -0.048894211649894714, 0.07020249962806702, -0.6309090852737427, 0.5962051749229431, -0.23492997884750366, -0.13295334577560425, -0.3916997015476227, 0.14043155312538147, 0.24935248494148254, 0.38500702381134033, 0.471876323223114, 0.48295488953590393, 0.3214777112007141, -0.030720490962266922, 1.029941201210022, -0.4848901927471161, 0.14020583033561707, 1.0334608554840088, -0.14592058956623077, 0.8142138719558716, 0.5426417589187622, -0.2067076861858368, 0.9386502504348755, 0.7181508541107178, -0.37235262989997864, 0.5481621623039246, 0.07218337059020996, -0.002140629105269909, 0.1849028319120407, -0.5919162631034851, -0.7088988423347473, 0.38143685460090637, 0.15001779794692993, -0.7531000971794128, 0.014075295068323612, -0.17681725323200226, 0.03860035911202431, -0.14737355709075928, -0.17813535034656525, 0.9839752912521362, -0.051868438720703125, -1.0347484350204468, 0.4785485565662384, -0.5229296088218689, 0.6127039194107056, -0.49815502762794495, -0.15653112530708313, -0.2905838191509247, 0.07905307412147522, -0.3068762719631195, -0.5838789939880371, 0.13837222754955292, -0.12737008929252625, -0.4525653123855591, -0.2665407955646515, 0.6181737780570984, -0.37479153275489807, -0.32247287034988403, 0.6214216351509094, 0.43326079845428467, -0.32507458329200745, -0.22579379379749298, -0.5303086638450623, 0.045171111822128296, 0.11325285583734512, -0.34261080622673035, 0.28242412209510803, -0.04418310150504112, 0.3276335597038269, 0.3856717348098755, 0.8351702690124512, 0.5604100823402405, -0.13331963121891022, 0.055388398468494415, 0.7233636975288391, -0.5033653378486633, -0.6162319183349609, -0.8669144511222839, 0.2609963119029999, -0.08893755823373795, -0.17253747582435608, 0.8093404173851013, 0.13312110304832458, 0.950797975063324, 0.29197612404823303, 1.1397523880004883, 0.076141357421875, 0.22943001985549927, -0.012508413754403591, 0.8383452892303467, -0.4027787148952484, 0.6992704272270203, -0.30820271372795105, -1.1137789487838745, 0.37303608655929565, 0.06148850545287132, -0.26614731550216675, 0.24161924421787262, 0.6365629434585571, 0.6943836808204651, 0.18603046238422394, 0.14098265767097473, -0.08950747549533844, 0.2363341897726059, 0.39688920974731445, 0.14842741191387177, 1.0254627466201782, -0.29417023062705994, 0.7419686317443848, -0.3991835117340088, -0.13423338532447815, -0.5423238277435303, -0.37598711252212524, -0.5890190601348877, -0.5836191177368164, -0.08556389063596725, -0.8009713888168335, 0.28493732213974, 0.9798239469528198, 0.8665473461151123, -0.9435933828353882, -0.2006155550479889, -0.19551941752433777, 0.3534355163574219, -0.5229573249816895, -0.3081645667552948, 0.2586117088794708, -0.2529926896095276, -0.6722224950790405, 0.17357772588729858, 0.2702188491821289, -0.2803784906864166, -0.7658982276916504, 0.08822162449359894, -0.02167125791311264, 0.12286674976348877, 0.18244792520999908, -0.1671900600194931, -0.8604047298431396, -0.36431413888931274, 0.12000653892755508, -0.08011806011199951, 0.015527943149209023, 1.1501814126968384, -0.8151550889015198, 0.8728130459785461, 0.5297895073890686, 0.34264063835144043, 0.36662957072257996, 0.30192628502845764, 1.0774229764938354, -0.4135175943374634, -0.07154642045497894, 0.06968579441308975, 0.21211344003677368, -0.03699338436126709, -0.921271562576294, 0.37836894392967224, 0.21884122490882874, -0.8540322184562683, -0.8831583261489868, -0.042222291231155396, -0.684448778629303, -0.5206974148750305, 1.1272975206375122, 0.22636179625988007, 0.21151591837406158, -0.053434837609529495, -0.320081889629364, 0.2737256586551666, -0.8635150790214539, 1.3561137914657593, 1.0362932682037354, -0.2895582914352417, -0.139593705534935, -0.5938207507133484, 0.5483083724975586, 0.30541133880615234, -0.4555070996284485, 0.024401767179369926, 0.5715790390968323, 0.0950821042060852, 0.3753231465816498, 0.16887874901294708, -0.1503130942583084, 0.20801229774951935, 0.14544932544231415, -0.0351317822933197, -0.34681636095046997, -0.34863460063934326, -0.72591632604599, 0.32312220335006714, 0.03168279305100441, -0.15139806270599365 ]
http://arxiv.org/abs/2405.17992v1
http://arxiv.org/pdf/2405.17992v1
fMRI predictors based on language models of increasing complexity recover brain left lateralization
2024-05-28T09:24:52
2024-05-28T09:24:52
Laurent Bonnasse-Gahot, Christophe Pallier
cs.CL
cs.CL, cs.AI, q-bio.NC
Over the past decade, studies of naturalistic language processing where participants are scanned while listening to continuous text have flourished. Using word embeddings at first, then large language models, researchers have created encoding models to analyze the brain signals. Presenting these models with the same text as the participants allows to identify brain areas where there is a significant correlation between the functional magnetic resonance imaging (fMRI) time series and the ones predicted by the models' artificial neurons. One intriguing finding from these studies is that they have revealed highly symmetric bilateral activation patterns, somewhat at odds with the well-known left lateralization of language processing. Here, we report analyses of an fMRI dataset where we manipulate the complexity of large language models, testing 28 pretrained models from 8 different families, ranging from 124M to 14.2B parameters. First, we observe that the performance of models in predicting brain responses follows a scaling law, where the fit with brain activity increases linearly with the logarithm of the number of parameters of the model (and its performance on natural language processing tasks). Second, we show that a left-right asymmetry gradually appears as model size increases, and that the difference in left-right brain correlations also follows a scaling law. Whereas the smallest models show no asymmetry, larger models fit better and better left hemispheric activations than right hemispheric ones. This finding reconciles computational analyses of brain activity using large language models with the classic observation from aphasic patients showing left hemisphere dominance for language.
[ -0.25230661034584045, -0.906151294708252, 0.6550391912460327, 0.4659942388534546, -0.06362110376358032, -0.233503058552742, -0.44453027844429016, -0.7310975790023804, 0.343092143535614, 0.4136662185192108, -0.513827919960022, -0.038100454956293106, -0.8612657189369202, 0.05040716007351875, -0.31306788325309753, 0.691274881362915, 0.11446371674537659, 0.5225346684455872, -0.245979905128479, -0.3406389057636261, -0.4236410856246948, -0.5324379205703735, -0.815437912940979, -0.7492852210998535, 0.3718525171279907, -0.23577658832073212, 1.0129213333129883, 0.7519186735153198, 0.44224753975868225, 0.254903644323349, -0.3665771484375, -0.46322736144065857, -0.27109310030937195, -0.02794399857521057, 0.20124028623104095, -0.4248282015323639, -0.5204219818115234, -0.1714375913143158, 0.7900083661079407, 1.2481073141098022, -0.07572443783283234, -0.15939204394817352, 0.18115325272083282, 0.7445517778396606, -0.2759478986263275, 0.1289542019367218, -0.2874315083026886, -0.11363953351974487, -0.19505880773067474, -0.13709518313407898, -0.3514149785041809, -0.1024583950638771, 0.22249256074428558, -0.279541939496994, -0.04853825271129608, -0.056675024330616, 0.8617937564849854, 0.14570178091526031, -0.38614875078201294, -0.2814391255378723, -0.709101676940918, 0.7952302694320679, -0.7543601989746094, 0.6229844093322754, 0.822746753692627, 0.0891294926404953, -0.23119761049747467, -0.4669208526611328, -0.38336801528930664, -0.316800594329834, -0.2254984974861145, -0.18046776950359344, -0.3040805757045746, 0.1145947128534317, 0.48696914315223694, 0.015284774824976921, -0.6801455616950989, 0.3398883044719696, -0.5018806457519531, -0.19248825311660767, 0.660280168056488, 0.32060542702674866, 0.6410648226737976, 0.1615627259016037, -0.10507654398679733, 0.17701683938503265, -0.5750082731246948, 0.00502068130299449, 0.46512892842292786, 0.1594361662864685, -0.06909769028425217, 0.8121833801269531, 0.015539608895778656, 0.9932785630226135, 0.12274907529354095, 0.03848538547754288, 0.2790255844593048, -0.2099839597940445, -0.23894836008548737, -0.14559169113636017, 0.842491626739502, 0.25546351075172424, 0.23185405135154724, -0.09270408004522324, -0.3059290945529938, -0.03263312950730324, 0.1304505467414856, -0.5225463509559631, -0.1082780584692955, 0.1539565622806549, -0.6582233905792236, -0.11545226722955704, -0.2356376349925995, -0.4850417375564575, -0.6084572076797485, -0.31306153535842896, 0.40729281306266785, -0.5544922351837158, -0.4851088523864746, 0.307210773229599, -0.05667385458946228, 0.25159069895744324, -0.10595555603504181, -0.903382420539856, 0.3330856263637543, 0.7139163613319397, 0.7664486169815063, -0.24464766681194305, -0.4165540337562561, -0.1991046816110611, -0.33896028995513916, -0.2593422532081604, 0.558860182762146, -0.7417362928390503, -0.0994861051440239, 0.05710555985569954, 0.08569065481424332, -0.2413880079984665, -0.4070133864879608, 0.4451085031032562, -0.7542674541473389, 0.10212790966033936, -0.405038058757782, -0.2407015711069107, -0.1795782446861267, 0.13863535225391388, -0.819531261920929, 0.7384713292121887, -0.2071351855993271, -1.0255539417266846, 0.07947319000959396, -0.5614388585090637, -0.5619425773620605, -0.030370287597179413, -0.3958037197589874, -0.49612993001937866, 0.47890669107437134, -0.07792329788208008, 0.36727049946784973, -0.438866525888443, 0.46497488021850586, -0.5413922667503357, -0.21935002505779266, 0.5104502439498901, -0.18849386274814606, 1.0448729991912842, 0.06477848440408707, -0.19010891020298004, 0.13838666677474976, -0.6771213412284851, -0.22970882058143616, 0.08613795042037964, -0.30460020899772644, -0.4547610580921173, 0.17659245431423187, 0.06817489862442017, 0.21175891160964966, 0.17706291377544403, -0.6122962832450867, -0.39154890179634094, -0.2921197712421417, 0.4452950954437256, 0.31000831723213196, -0.08207248151302338, 0.5486879944801331, -0.406022310256958, 0.4293058514595032, 0.147874116897583, -0.08772438019514084, 0.14001914858818054, -0.503548264503479, -0.6024301052093506, -0.46939000487327576, 0.35388413071632385, 0.21973209083080292, -0.389790415763855, 0.40946102142333984, -0.7459308505058289, -0.32721999287605286, -0.3150601387023926, -0.3434373736381531, 0.10758557915687561, 0.11603724211454391, 0.28428664803504944, -0.44629180431365967, -0.552375853061676, -1.300068736076355, -0.5989789366722107, -0.08391948789358139, -0.32350173592567444, 0.017757128924131393, 0.1901310831308365, -0.6139259338378906, 0.8668766617774963, -0.26376593112945557, -0.26968345046043396, -0.249332457780838, 0.47809112071990967, 0.1676035374403, 0.3076092302799225, 0.18636521697044373, -0.66312575340271, -0.3590579926967621, 0.1512230783700943, -0.7119033932685852, -0.00021389716130215675, -0.20801854133605957, 0.14332246780395508, 0.33973145484924316, 0.7614637613296509, -0.5134484767913818, 0.20218044519424438, 0.5302209258079529, -0.42813840508461, 0.1946066915988922, -0.32098641991615295, -0.201381653547287, -0.756546139717102, 0.34217527508735657, 0.01742539182305336, 0.08479992300271988, -0.9615535140037537, -0.3643540143966675, 0.21976158022880554, 0.05962518975138664, 0.40431854128837585, 0.31493890285491943, -0.8224485516548157, -0.08302222937345505, -0.4708746671676636, -0.23167474567890167, -0.5739533305168152, 0.41320082545280457, 0.3137511610984802, 0.05476751551032066, 0.6182214617729187, -0.3070231080055237, -0.25801560282707214, -0.2015981376171112, -0.355487585067749, -0.0032747748773545027, -0.7351347208023071, 0.08604898303747177, -0.5395296216011047, 0.0903550237417221, -1.0917408466339111, -0.23469595611095428, -0.1739179939031601, -0.37368303537368774, 0.3997466564178467, 0.11729902774095535, -0.2744908332824707, -0.3965875804424286, -0.1526079922914505, 0.6395118236541748, 0.4429561495780945, -0.16126418113708496, 1.192650318145752, 0.5817365646362305, -0.2435736358165741, -0.6959357261657715, -0.8254559636116028, -0.12871800363063812, -0.005917618982493877, -0.6154269576072693, 0.12268458306789398, -0.05199603736400604, -0.19818703830242157, -0.03253387287259102, -0.08749494701623917, -0.1672709882259369, 0.12237047404050827, 0.6345421075820923, 0.0940701812505722, -0.24644218385219574, -0.015093639492988586, 0.201046422123909, 0.19014151394367218, 0.5140565037727356, 0.1025657206773758, 0.7161081433296204, -0.06776385754346848, -0.12566597759723663, -0.35650670528411865, 0.10930457711219788, 1.028239130973816, -0.2573537528514862, 0.7486974000930786, 0.5496255159378052, -0.7799789309501648, 0.1833881437778473, -0.6515362858772278, -0.2560621201992035, -0.41473814845085144, 0.614434003829956, -0.6464633345603943, -0.6355091333389282, 0.6110445261001587, 0.19915179908275604, -0.20615169405937195, 0.21982544660568237, 0.5723634958267212, 0.18985649943351746, 1.1413673162460327, 0.580247700214386, -0.05267968028783798, 0.6956549286842346, -0.043313167989254, 0.28237372636795044, -0.7639532685279846, -0.2710345983505249, -0.29091814160346985, -0.27950790524482727, -0.5143579244613647, -0.34186655282974243, 0.04277552664279938, -0.22930602729320526, 0.011605651117861271, 0.14903049170970917, -0.09518261253833771, 0.6716781854629517, 0.2121165543794632, 0.20446467399597168, 0.23223374783992767, 0.22298698127269745, -0.10265199840068817, -0.08329962939023972, -0.5487797856330872, -0.08419531583786011, 1.3200019598007202, 0.647434651851654, 0.7082066535949707, -0.16428977251052856, 0.4679935574531555, 0.011630900204181671, 0.4295811951160431, -0.785065770149231, 0.5552337169647217, 0.06586640328168869, -0.6186102032661438, -0.31230854988098145, -0.31410732865333557, -1.0608960390090942, 0.14579541981220245, -0.46911612153053284, -0.3862031102180481, 0.3735446035861969, -0.21469666063785553, -0.4227537512779236, -0.10671321302652359, -0.5099932551383972, 0.5582303404808044, -0.16215507686138153, -0.34469103813171387, -0.41658979654312134, -0.6818451881408691, 0.2150629460811615, -0.24233683943748474, 0.34353509545326233, 0.09898032993078232, -0.0541556142270565, 0.7174203395843506, 0.1866452395915985, 0.8126611709594727, -0.1701211929321289, -0.13683435320854187, -0.2015460878610611, 0.15797753632068634, 0.2832484543323517, -0.09617068618535995, -0.25092554092407227, 0.34081870317459106, 0.0006921419990248978, -0.577039897441864, -0.4802267253398895, 1.0005542039871216, -0.84932541847229, -0.5899593234062195, -0.5395238995552063, -0.7388692498207092, -0.1482694000005722, 0.46028757095336914, 0.44928061962127686, 0.4118518531322479, -0.42699185013771057, 0.27403953671455383, 0.5185996294021606, 0.01964104175567627, 0.5014695525169373, 0.3073236644268036, -0.33384618163108826, -0.5224920511245728, 0.6612752676010132, 0.3962651789188385, 0.13875004649162292, 0.3077707886695862, 0.0840998962521553, -0.2411351203918457, -0.9498776197433472, -0.16856983304023743, 0.6127979755401611, -0.2862918972969055, 0.170970156788826, -0.8589465022087097, -0.21747572720050812, -0.1232277974486351, 0.03703231364488602, -0.25004082918167114, -0.5180259346961975, -0.045049216598272324, 0.028508758172392845, -0.3685845732688904, 0.6866501569747925, 0.019593896344304085, 0.048657312989234924, -0.4960058629512787, 0.17115521430969238, 0.22791971266269684, 0.30444464087486267, 0.054686643183231354, -0.524884819984436, -0.5350393652915955, 0.27637144923210144, -0.058274149894714355, -0.8954136967658997, 0.3721129894256592, 0.20986402034759521, 0.41586562991142273, 0.4626069664955139, -0.22057364881038666, 0.36948806047439575, -0.5816912651062012, 0.5047927498817444, 0.32605525851249695, -0.7208108305931091, -0.0028706067241728306, -0.360856831073761, 0.4625832140445709, 0.16700440645217896, 0.7868527173995972, -0.32006919384002686, -0.4485228359699249, -0.5916444063186646, -0.5205679535865784, 0.6624184250831604, 0.14665508270263672, 0.13959954679012299, 0.1467454731464386, 0.300443172454834, 0.14972220361232758, -0.3009311854839325, -0.813029944896698, 0.007907267659902573, 0.04825553297996521, -0.39937496185302734, -0.14000585675239563, -0.41032204031944275, -0.37538042664527893, -0.2938467264175415, 0.2325604408979416, -0.012338872067630291, 0.5625842213630676, 0.06535201519727707, -0.06218152865767479, -0.3367527425289154, 0.0173454862087965, 0.6605674624443054, 0.5897401571273804, -0.25669512152671814, 0.12887509167194366, 0.19676482677459717, -0.480881929397583, -0.14024284482002258, 0.3097356855869293, 0.023238250985741615, -0.020132575184106827, 0.4582383930683136, 0.9478549361228943, -0.09279919415712357, -0.5566125512123108, 0.50105881690979, -0.2380824238061905, -0.16308757662773132, -0.6675148010253906, -0.17684431374073029, 0.29514357447624207, 0.420276403427124, 0.27366742491722107, 0.34900397062301636, 0.15337209403514862, -0.449563205242157, -0.144660085439682, 0.6406330466270447, -0.43145203590393066, -0.7504718899726868, 0.5000378489494324, -0.028227411210536957, -0.4623701870441437, 0.5496994256973267, 0.22247223556041718, -0.3789037764072418, 0.4697714149951935, 0.7435835599899292, 0.940322756767273, -0.06418905407190323, -0.1698721945285797, 0.6129968762397766, 0.3674636483192444, -0.4324590265750885, 0.39219528436660767, 0.13858096301555634, -0.8636311292648315, -0.20168866217136383, -0.6435139179229736, 0.028246231377124786, 0.30342328548431396, -0.7820794582366943, 0.3522075116634369, -0.5003954768180847, -0.537752091884613, 0.37689322233200073, -0.1664629429578781, -0.3757247030735016, 0.14569702744483948, 0.31522423028945923, 0.7452549934387207, -1.0532399415969849, 1.197304129600525, 1.008056879043579, -0.13377252221107483, -0.30791163444519043, 0.2909473776817322, -0.2989780306816101, -0.40608471632003784, 0.5573557615280151, 0.3341718316078186, -0.20064423978328705, -0.004891975317150354, -0.317576140165329, -0.881523609161377, 0.8803302645683289, 0.3451308608055115, -0.42991235852241516, -0.3960292637348175, 0.26881784200668335, 1.0104446411132812, -0.4880450963973999, 0.08986996114253998, 0.6097660064697266, 0.25419509410858154, -0.302410364151001, -0.681430459022522, 0.4560316503047943, -0.288562536239624, 0.2326061874628067, 0.47429049015045166, -0.20711857080459595, 0.7493059039115906, -0.1932511031627655, -0.4522985517978668, 0.0863979160785675, 0.7325523495674133, 0.0744246318936348, 0.257296621799469, 0.5292149186134338, 0.496889591217041, 0.5569859743118286, 0.017866799607872963, 0.950932502746582, -0.4293212890625, 0.23422537744045258, 0.8921806812286377, 0.06681427359580994, 1.0623399019241333, 0.6591464877128601, 0.17865730822086334, 0.5905272960662842, 0.35619962215423584, 0.25641733407974243, 0.26434969902038574, 0.11137574166059494, -0.038127269595861435, -0.4371843934059143, 0.2183542102575302, -0.2752395570278168, 0.24940474331378937, 0.4350007474422455, -0.6308127045631409, 0.21984118223190308, 0.21284423768520355, 0.09243183583021164, 0.1812761127948761, 0.016712505370378494, 0.6129536032676697, 0.1668245941400528, -0.8518081307411194, 0.8275957703590393, 0.0012850447092205286, 0.5683338046073914, -0.5690481066703796, 0.4373845160007477, -0.23015452921390533, 0.31866106390953064, -0.07910678535699844, -0.5512391924858093, 0.48126280307769775, -0.31850147247314453, -0.2202557772397995, -0.013952587731182575, 0.6100055575370789, -0.6991605162620544, -0.3036540448665619, 0.6771356463432312, 0.3001810312271118, -0.19166076183319092, -0.021926846355199814, -0.37936946749687195, 0.2668091058731079, 0.12722034752368927, -0.31301313638687134, 0.5202025771141052, 0.2116241455078125, -0.15521183609962463, 0.625928521156311, 0.523558497428894, 0.06427013128995895, 0.28206270933151245, -0.2740379273891449, 0.784773051738739, -0.8600642085075378, -0.2271949201822281, -0.9042506217956543, 0.3331564962863922, -0.11655083298683167, -0.035035163164138794, 0.4091735780239105, 0.498139351606369, 0.616040825843811, -0.3083476126194, 0.31546905636787415, -0.11375200748443604, 0.1631561815738678, -0.29772865772247314, 0.794244647026062, -0.6552647352218628, 0.07782112807035446, 0.312195748090744, -0.7057338953018188, -0.6362354755401611, 0.4323576092720032, -0.7106326818466187, -0.05982264131307602, 0.878391683101654, 0.9681036472320557, -0.2728188931941986, 0.40570735931396484, 0.3300670087337494, 0.5774423480033875, -0.01592377945780754, 0.42257657647132874, 0.7703550457954407, -0.36337530612945557, 0.21570813655853271, -0.1275557428598404, -0.49621957540512085, -0.18951942026615143, -0.5039904117584229, -0.923846423625946, -0.7210719585418701, -0.3385191261768341, -0.47864702343940735, -0.15037624537944794, 0.9689539670944214, 0.46372222900390625, -0.7393789291381836, -0.600045919418335, -0.1835271567106247, -0.15874174237251282, -0.3552027940750122, -0.14660775661468506, 0.24845989048480988, -0.23106829822063446, -0.7314664125442505, 0.2965640127658844, 0.19814442098140717, -0.037194445729255676, 0.023945139721035957, -0.09122717380523682, -0.2565886080265045, 0.4060361087322235, 0.5826232433319092, 0.3849915862083435, -0.6313947439193726, -0.05505349487066269, 0.10709971934556961, -0.349755197763443, -0.10040317475795746, 0.8579951524734497, -0.38759082555770874, 0.3979688584804535, 0.8644669651985168, 0.7802236676216125, 0.552000105381012, -0.29048869013786316, 0.829099178314209, -0.22418685257434845, 0.04740731045603752, 0.2013063281774521, 0.3761596083641052, 0.33336082100868225, -0.19929610192775726, 0.32607731223106384, -0.06229718029499054, -0.5596973896026611, -1.0039491653442383, 0.31808027625083923, -0.918981671333313, -0.2925126850605011, 1.2058724164962769, 0.07347972691059113, -0.3558994233608246, -0.196943998336792, -0.10130644589662552, 0.13552391529083252, 0.06576520949602127, 0.9311559200286865, 0.93136066198349, -0.3677610158920288, 0.11967738717794418, -0.28177401423454285, 0.5140835642814636, 0.8872066736221313, -0.27246713638305664, 0.19032052159309387, 0.510806679725647, 0.32367953658103943, 0.380594938993454, 0.5405434370040894, -0.35603249073028564, 0.14845645427703857, -0.09721221774816513, -0.17960144579410553, 0.14531730115413666, -0.26648664474487305, -0.8617579340934753, 0.309756875038147, 0.25031813979148865, 0.042363766580820084 ]
http://arxiv.org/abs/2405.17980v1
http://arxiv.org/pdf/2405.17980v1
Peering into the Mind of Language Models: An Approach for Attribution in Contextual Question Answering
2024-05-28T09:12:44
2024-05-28T09:12:44
Anirudh Phukan, Shwetha Somasundaram, Apoorv Saxena, Koustava Goswami, Balaji Vasan Srinivasan
cs.CL
cs.CL
With the enhancement in the field of generative artificial intelligence (AI), contextual question answering has become extremely relevant. Attributing model generations to the input source document is essential to ensure trustworthiness and reliability. We observe that when large language models (LLMs) are used for contextual question answering, the output answer often consists of text copied verbatim from the input prompt which is linked together with "glue text" generated by the LLM. Motivated by this, we propose that LLMs have an inherent awareness from where the text was copied, likely captured in the hidden states of the LLM. We introduce a novel method for attribution in contextual question answering, leveraging the hidden state representations of LLMs. Our approach bypasses the need for extensive model retraining and retrieval model overhead, offering granular attributions and preserving the quality of generated answers. Our experimental results demonstrate that our method performs on par or better than GPT-4 at identifying verbatim copied segments in LLM generations and in attributing these segments to their source. Importantly, our method shows robust performance across various LLM architectures, highlighting its broad applicability. Additionally, we present Verifiability-granular, an attribution dataset which has token level annotations for LLM generations in the contextual question answering setup.
[ -0.1427939087152481, -0.9226946234703064, 1.092896819114685, -0.15332207083702087, -0.17647004127502441, -0.02447238564491272, 0.13809321820735931, -0.2545638382434845, -0.06828402727842331, 0.5452979207038879, -0.7240132093429565, -0.16832050681114197, -0.33203068375587463, -0.16773417592048645, -0.7449742555618286, 0.7791928648948669, -0.0023004470858722925, -0.39379021525382996, -0.8941150903701782, 0.1422881782054901, -0.23787569999694824, -0.6592798233032227, -0.7212432622909546, -0.488934189081192, 0.548197329044342, 0.16897204518318176, 0.5181215405464172, 0.8284085988998413, 0.1070084199309349, 0.2894846796989441, -0.06584165245294571, 0.1274021416902542, -0.4385586678981781, -0.010460074990987778, -0.4113216996192932, -0.8338616490364075, -0.30103474855422974, 0.0033122182358056307, 0.7137890458106995, 0.4554624855518341, -0.02102840505540371, 0.36494097113609314, -0.05244138464331627, 0.2385026067495346, -0.7501964569091797, 0.06299854815006256, -1.0725462436676025, -0.09400331974029541, -0.22198623418807983, -0.5732188820838928, -0.5287964940071106, -0.4043715000152588, -0.03237596154212952, -0.46528327465057373, 0.17372874915599823, 0.00047263404121622443, 0.7526823878288269, 0.4774218499660492, -0.5249596238136292, -0.3534168303012848, -0.49968066811561584, 0.7552691102027893, -0.6820833086967468, 0.0346677340567112, 0.47514086961746216, 0.1285664141178131, 0.1806589663028717, -0.723055899143219, -0.7715843319892883, 0.02008218690752983, -0.15683096647262573, -0.056862104684114456, -0.16169819235801697, -0.42617377638816833, -0.03896395489573479, 0.39458563923835754, -0.33511781692504883, -0.3318893611431122, -0.11428704112768173, -0.3361779749393463, 0.46031007170677185, 0.03431315720081329, 0.32391005754470825, -0.3857726454734802, -0.5664286613464355, -0.02841830812394619, -0.8620508313179016, -0.07110228389501572, 0.03155655413866043, 0.17122811079025269, 0.07268635183572769, 0.46547189354896545, 0.1634126603603363, 0.5821108222007751, 0.1171393096446991, 0.07361571490764618, 0.0434504859149456, -0.469245046377182, -0.04234974458813667, 0.019319267943501472, 0.6216988563537598, 0.13594308495521545, 0.4744897186756134, -0.2689770460128784, -0.3123617172241211, -0.20858405530452728, 0.5918192863464355, -0.4209178388118744, -0.045016735792160034, -0.018542489036917686, -0.2250535488128662, -0.43806880712509155, -0.10930974781513214, -0.39671921730041504, -0.36027446389198303, -0.09968814253807068, 0.5546167492866516, -0.2929750084877014, -0.14551040530204773, -0.27734965085983276, -0.005049928091466427, 0.4917612075805664, 0.3383265733718872, -0.7593056559562683, 0.1411133110523224, 0.9798012971878052, 0.7941505908966064, -0.15812775492668152, -0.3377739489078522, -0.5075345039367676, 0.5455867052078247, -0.5243499875068665, 0.7594797611236572, -0.6262516975402832, -0.3474481403827667, 0.07675386220216751, -0.05413062497973442, -0.1608617603778839, -0.5854098200798035, 0.3768346309661865, -0.812073290348053, 0.2644025683403015, -0.4647942781448364, -0.7093682885169983, -0.1624554991722107, 0.48046547174453735, -0.46763670444488525, 0.9519041776657104, 0.09022695571184158, -0.577782928943634, 0.2666335105895996, -0.5951205492019653, -0.27987805008888245, 0.2296237051486969, -0.39645859599113464, -0.029923900961875916, 0.3277485966682434, 0.49303320050239563, 0.46274659037590027, -0.1122310683131218, 0.32657572627067566, -0.0888824537396431, -0.17063672840595245, 0.657680869102478, -0.7986932396888733, 0.8175657987594604, 0.12331375479698181, -0.03869128227233887, 0.12733162939548492, -0.46294549107551575, 0.0530686154961586, 0.3293820321559906, -0.3457602560520172, -0.651399552822113, 0.10977190732955933, -0.16398131847381592, 0.09338504821062088, 0.4059278964996338, -0.4669075310230255, 0.06971367448568344, -0.3081367313861847, 0.6084800958633423, 0.8292232751846313, 0.16228577494621277, 0.42714983224868774, -0.12917333841323853, 0.5894879698753357, 0.00018232231377623975, -0.11943885684013367, -0.22643673419952393, -0.29560986161231995, -0.6996832489967346, 0.03614691272377968, -0.1385018676519394, 0.5311025381088257, -0.8498583436012268, 0.1695774346590042, -0.5549858808517456, -0.23108910024166107, -0.40477851033210754, 0.03788163512945175, 0.5943887233734131, 0.8896106481552124, 0.26242882013320923, -0.03705809637904167, -0.10943684726953506, -1.034349799156189, -0.3557747006416321, -0.5149477124214172, -0.15099570155143738, 0.6821025013923645, 0.6404352188110352, 0.031337182968854904, 1.1942896842956543, -0.6384398341178894, 0.03531016781926155, -0.19921095669269562, 0.07354126125574112, -0.1052650585770607, 0.41139501333236694, 0.4943223297595978, -0.8086908459663391, -0.18887139856815338, -0.060544222593307495, -0.9405810832977295, -0.007747028023004532, -0.015380521304905415, -0.25261998176574707, 0.07340949028730392, 0.8133986592292786, -0.6308315992355347, 0.032087650150060654, 0.4890221059322357, -0.49925145506858826, 0.3735010325908661, -0.04853121191263199, 0.13061729073524475, -1.3898600339889526, 0.24820291996002197, -0.3563147187232971, -0.5147384405136108, -0.5554586052894592, 0.405796617269516, 0.2513423264026642, -0.10712447017431259, -0.6690729260444641, 0.7911160588264465, -0.4144665002822876, -0.07874602824449539, -0.10452251881361008, 0.264451801776886, 0.17594453692436218, 0.3616240918636322, -0.09458683431148529, 1.0818032026290894, 0.34830811619758606, -0.2878412902355194, 0.4069669246673584, 0.3438670039176941, -0.35384050011634827, 0.5897031426429749, -0.5350885391235352, 0.45089322328567505, -0.19221103191375732, 0.1479082703590393, -0.8855970501899719, -0.2673198878765106, 0.17510229349136353, -0.5180914402008057, 0.29049259424209595, -0.33294156193733215, -0.4147534966468811, -0.1496170461177826, -0.11406275629997253, 0.6974963545799255, 0.29566702246665955, -0.5004639625549316, 0.72472083568573, 0.3116888999938965, -0.394146203994751, -0.6073029637336731, -0.8497138619422913, 0.15734587609767914, -0.5082830786705017, -0.5229641795158386, 0.22851718962192535, 0.08266210556030273, -0.2615838646888733, 0.06346698105335236, -0.12407099455595016, -0.22785760462284088, 0.1679479032754898, -0.039333030581474304, 0.2747001051902771, -0.3635377287864685, 0.2153741419315338, -0.11478342860937119, -0.013013211078941822, 0.5037091970443726, -0.16099674999713898, 0.5897068381309509, -0.23333220183849335, -0.400238037109375, -0.12818239629268646, 0.5241670608520508, 0.480471670627594, -0.2932126224040985, 0.7496843934059143, 0.305668443441391, -0.4156605005264282, -0.25848010182380676, -0.5304868817329407, -0.3288804590702057, -0.5046461224555969, 0.5214853882789612, -0.41181057691574097, -0.9057386517524719, 0.7266284823417664, 0.26067471504211426, -0.19562286138534546, 0.35650572180747986, 0.5184047222137451, 0.017750000581145287, 0.7400822639465332, 0.7487346529960632, -0.40921974182128906, 0.36002030968666077, 0.08869677782058716, 0.17199288308620453, -0.7706502676010132, -0.22365283966064453, -0.3630581796169281, -0.025578800588846207, -0.12803120911121368, -0.6936174035072327, 0.2995991110801697, 0.0651853159070015, -0.1345432698726654, 0.10998042672872543, -0.1921926587820053, 0.7121202349662781, 0.6048339605331421, 0.09466028213500977, 0.4567341208457947, -0.11082883924245834, 0.3047291338443756, 0.2929490804672241, -0.6768640875816345, -0.6129578948020935, 1.0299071073532104, 0.3030998408794403, 0.5882646441459656, 0.19000059366226196, 0.5438946485519409, 0.2612905502319336, 0.3213016092777252, -0.8078441023826599, 0.7537446618080139, 0.11121335625648499, -0.8191962242126465, -0.46165966987609863, -0.35621559619903564, -0.5861440300941467, 0.17282205820083618, 0.15112195909023285, -1.073701024055481, -0.04992096498608589, 0.38564059138298035, -0.34025731682777405, 0.314053475856781, -0.4329563081264496, 0.9701104760169983, 0.11867587268352509, -0.3853687644004822, -0.12004759162664413, -0.5212071537971497, 0.39019691944122314, -0.10956647992134094, -0.05056578293442726, 0.13240984082221985, -0.14991547167301178, 0.7434210181236267, -0.2528134286403656, 0.8214636445045471, -0.0941522866487503, -0.5911280512809753, 0.4012458622455597, 0.22004012763500214, 0.6211168169975281, 0.16933725774288177, 0.04338650777935982, -0.016233526170253754, -0.008222879841923714, -0.1866554617881775, -0.7313774228096008, 0.8570309281349182, -0.5334661602973938, -0.8555463552474976, -0.14413589239120483, -0.702245831489563, -0.22271500527858734, 0.22740736603736877, 0.21938534080982208, 0.6269932389259338, 0.1079055592417717, 0.22891707718372345, 0.8539773225784302, -0.05796822905540466, 0.35433274507522583, 0.15430304408073425, -0.18549013137817383, 0.07339832186698914, 1.0508843660354614, -0.3095734417438507, 0.39432743191719055, 0.434551477432251, 0.1785896122455597, -0.4353344142436981, -0.34855005145072937, -0.5114626288414001, 0.2702001631259918, -1.0739392042160034, -0.10584785789251328, -0.571626603603363, -0.3473047614097595, -0.20836098492145538, -0.48223674297332764, -0.5406475067138672, -0.13906577229499817, -0.37390056252479553, -0.1230832189321518, 0.1697644293308258, 0.5028623342514038, 0.42013657093048096, 0.20916354656219482, -0.6358250975608826, 0.12522085011005402, 0.5698190927505493, 0.0197774488478899, 0.16704592108726501, -0.5025803446769714, -0.07022680342197418, -0.003551009576767683, -0.12706470489501953, -0.8816713094711304, 0.19231627881526947, 0.29479655623435974, 0.5728250741958618, 0.35346439480781555, -0.11683433502912521, 0.637901246547699, -0.476068913936615, 1.0317710638046265, -0.21695150434970856, -1.1008045673370361, 0.7220510244369507, -0.46782517433166504, 0.4741101861000061, 0.45861825346946716, 0.3234477937221527, -0.481575608253479, -0.5364174842834473, -0.525078296661377, -0.8943483233451843, 0.6559126377105713, -0.04260658845305443, 0.5022658705711365, -0.11814003437757492, 0.6464041471481323, -0.03147585317492485, 0.3302116096019745, -0.7727811336517334, -0.2442220002412796, -0.13069681823253632, -0.23958954215049744, -0.2884135842323303, -0.3861762583255768, -0.3647620975971222, 0.00778767466545105, 0.38198408484458923, -0.47167643904685974, 0.41377854347229004, 0.11590772867202759, -0.2823057472705841, -0.07682325690984726, 0.283621609210968, 0.4921911954879761, 0.9400873184204102, 0.001043703407049179, 0.4287027418613434, 0.110209621489048, -0.29097193479537964, 0.013689754530787468, -0.32585668563842773, -0.44088855385780334, -0.2877766489982605, 0.665952742099762, 0.6643972992897034, -0.005212927702814341, -0.6008698344230652, 0.6930941939353943, 0.2301958054304123, -0.10027752816677094, -0.4952905774116516, 0.10667633265256882, 0.2764524519443512, 0.3624524474143982, 0.4539918303489685, -0.13200676441192627, 0.16332973539829254, -0.8389905691146851, 0.19592835009098053, 0.6861085295677185, -0.5228584408760071, -0.38141176104545593, 0.7089947462081909, -0.04128807783126831, -0.13434356451034546, 0.7527832388877869, 0.21552766859531403, -0.6155513525009155, 0.4238887131214142, 0.6769376993179321, 0.8932733535766602, -0.03824683278799057, 0.1831672638654709, 0.10671646147966385, 0.017841801047325134, 0.16525399684906006, 0.06654509156942368, -0.17819790542125702, -1.037933349609375, -0.4393134117126465, -0.5584366917610168, -0.17898738384246826, 0.2112756222486496, -0.7970638275146484, -0.3733145594596863, -0.1121058538556099, -0.010329979471862316, -0.28209832310676575, -0.4194095730781555, -0.4141424000263214, 0.1478225439786911, 0.5136650204658508, 0.7102875113487244, -1.0097712278366089, 0.7298536896705627, 0.7442837357521057, -0.296597421169281, -0.6751701831817627, 0.3636327087879181, 0.15364208817481995, -1.140903353691101, 0.6052591800689697, 0.027526672929525375, -0.3242062032222748, 0.23992815613746643, -0.7721344232559204, -1.0143725872039795, 1.1319204568862915, 0.4116126000881195, 0.025259559974074364, -0.2385156899690628, 0.07300805300474167, 0.3304954767227173, -0.4320371448993683, -0.03382351994514465, 0.6629759073257446, 0.18697033822536469, 0.20388197898864746, -0.7472845315933228, 0.4420553147792816, -0.24592822790145874, 0.015112114138901234, -0.03541671857237816, -0.45239585638046265, 0.822904646396637, -0.19524827599525452, -0.31734010577201843, -0.0836716890335083, 0.762481689453125, 0.3706015646457672, 0.0516204833984375, 0.45763957500457764, 0.219243586063385, 0.7623162865638733, -0.023251093924045563, 1.129101276397705, -0.13764476776123047, 0.19745323061943054, 1.1587245464324951, 0.02505321614444256, 1.026834487915039, 0.9602351188659668, -0.02549809403717518, 0.4556933343410492, 0.40144839882850647, 0.16792815923690796, 0.6948323249816895, 0.10796757787466049, -0.2752338647842407, -0.2640630006790161, -0.17630556225776672, -0.06256476789712906, 0.3867393732070923, 0.22542139887809753, -0.4896695911884308, -0.09029965847730637, -0.12600354850292206, 0.27065756916999817, 0.13243383169174194, -0.43477970361709595, 0.8266228437423706, 0.06783483177423477, -0.7178603410720825, 0.5844326615333557, -0.3075336813926697, 0.4588029980659485, -0.5699159502983093, 0.16839392483234406, -0.3246414363384247, 0.2812694013118744, 0.0708274245262146, -0.8784186840057373, 0.36996686458587646, -0.0017356288153678179, -0.360119104385376, -0.4106561839580536, 0.5948482155799866, -0.4595169126987457, -0.556023120880127, 0.0187459085136652, 0.6855506896972656, 0.2750985324382782, -0.2882555425167084, -0.4380344748497009, -0.09272874146699905, 0.04094843193888664, -0.6056215167045593, 0.20700472593307495, 0.5359247326850891, -0.22389188408851624, 1.0906316041946411, 0.3510213792324066, 0.10034647583961487, 0.11037926375865936, -0.011921667493879795, 0.9201837182044983, -0.5536659955978394, -0.48573100566864014, -1.0029898881912231, 0.46603044867515564, -0.023741696029901505, -0.3434583246707916, 0.8081068396568298, 0.3832174241542816, 0.9382662773132324, -0.1274455040693283, 0.8386636972427368, -0.055347930639982224, 0.30170515179634094, -0.5978946089744568, 0.8252034187316895, -0.8449798822402954, 0.15067388117313385, -0.34180521965026855, -0.9738817811012268, -0.1142100915312767, 0.48122158646583557, -0.4251568615436554, 0.03923375904560089, 0.6285424828529358, 0.8628315925598145, -0.13091082870960236, -0.2570088505744934, 0.25272735953330994, 0.10415029525756836, 0.4253244400024414, 0.5973825454711914, 0.8841138482093811, -0.16657540202140808, 0.43601635098457336, -0.0011614758986979723, -0.16929984092712402, -0.15057136118412018, -0.9221394658088684, -0.6360526084899902, -0.6514579057693481, -0.31719592213630676, 0.0529680959880352, -0.001534699578769505, 0.4976106882095337, 0.5267882347106934, -0.632438600063324, -0.048150431364774704, -0.018614724278450012, -0.20621326565742493, -0.17896296083927155, -0.2959507703781128, 0.4951073229312897, -0.2850482165813446, -0.5715720057487488, 0.5895431637763977, 0.08696704357862473, -0.0018791789188981056, -0.552064836025238, 0.16367939114570618, -0.2327001392841339, 0.329224169254303, 0.5865377187728882, -0.006444921717047691, -0.9531965255737305, -0.672674298286438, -0.09768672287464142, -0.024454127997159958, -0.031199337914586067, 0.8064106106758118, -0.7697218656539917, 0.21189552545547485, 0.3879866898059845, 0.7305482029914856, 0.2852543592453003, 0.5392052531242371, 0.7223604917526245, -0.9449722766876221, -0.07267340272665024, 0.27016666531562805, 0.21297624707221985, 0.47519510984420776, -0.45871594548225403, 0.18483401834964752, 0.08561282604932785, -0.4928223192691803, -0.7108915448188782, 0.36517077684402466, -0.792749285697937, -0.36890238523483276, 1.111548662185669, -0.3659455478191376, -0.33014699816703796, -0.025513041764497757, 0.08574525266885757, 0.17482136189937592, -0.20096760988235474, 0.6687512993812561, 0.7938055992126465, 0.04160379245877266, -0.3902880847454071, -0.5499144196510315, 0.5261613130569458, 0.47369566559791565, -0.7583137154579163, 0.515696108341217, 0.500739336013794, 0.266403466463089, 0.2918778657913208, 0.5904124975204468, -0.15997867286205292, -0.1425725668668747, 0.18833941221237183, -0.10456779599189758, -0.14394532144069672, -0.33688849210739136, -0.1961311548948288, 0.3430343568325043, 0.19908732175827026, -0.04078148677945137 ]
http://arxiv.org/abs/2405.17978v1
http://arxiv.org/pdf/2405.17978v1
FASTopic: A Fast, Adaptive, Stable, and Transferable Topic Modeling Paradigm
2024-05-28T09:06:38
2024-05-28T09:06:38
Xiaobao Wu, Thong Nguyen, Delvin Ce Zhang, William Yang Wang, Anh Tuan Luu
cs.CL
cs.CL, cs.AI
Topic models have been evolving rapidly over the years, from conventional to recent neural models. However, existing topic models generally struggle with either effectiveness, efficiency, or stability, highly impeding their practical applications. In this paper, we propose FASTopic, a fast, adaptive, stable, and transferable topic model. FASTopic follows a new paradigm: Dual Semantic-relation Reconstruction (DSR). Instead of previous conventional, neural VAE-based or clustering-based methods, DSR discovers latent topics by reconstruction through modeling the semantic relations among document, topic, and word embeddings. This brings about a neat and efficient topic modeling framework. We further propose a novel Embedding Transport Plan (ETP) method. Rather than early straightforward approaches, ETP explicitly regularizes the semantic relations as optimal transport plans. This addresses the relation bias issue and thus leads to effective topic modeling. Extensive experiments on benchmark datasets demonstrate that our FASTopic shows superior effectiveness, efficiency, adaptivity, stability, and transferability, compared to state-of-the-art baselines across various scenarios. Our code is available at https://github.com/bobxwu/FASTopic .
[ -0.5405008792877197, -0.9233618974685669, 0.6615101099014282, 0.17714595794677734, -0.44659343361854553, -0.1955801099538803, -0.22663311660289764, -0.04102613404393196, 0.6183916926383972, 0.5308098196983337, -0.3638632893562317, -0.07262986153364182, -0.8196864724159241, -0.31494298577308655, -0.44517552852630615, 0.8506078720092773, 0.17170757055282593, -0.3072948157787323, 0.013413055799901485, -0.25202029943466187, -0.30387693643569946, -0.10330446064472198, -0.5704398155212402, 0.14836372435092926, 0.2641350030899048, 0.5311295390129089, 1.0574029684066772, 0.8529094457626343, 0.5741028785705566, 0.292085200548172, -0.16740483045578003, -0.22185157239437103, -0.33916807174682617, 0.16952167451381683, -0.6731132864952087, 0.021482668817043304, -0.5149428844451904, -0.1360597461462021, 0.6473190784454346, 0.8105777502059937, -0.32517901062965393, -0.20873695611953735, -0.3010842800140381, 0.5355296730995178, -0.5509791970252991, -0.06750290095806122, -0.9122048020362854, 0.029011990875005722, -0.16642330586910248, -0.38917970657348633, -0.23845824599266052, -0.2088315337896347, 0.7740885615348816, -0.7479590177536011, 0.2828410267829895, -0.13116009533405304, 0.6245127320289612, 0.2422497570514679, -0.7213960886001587, -0.3686455190181732, -0.6660990118980408, 0.34451979398727417, -0.39157742261886597, 0.42584025859832764, 0.03445122763514519, 0.453180730342865, -0.06863933801651001, -0.9222581386566162, -0.4952238202095032, -0.04170536994934082, 0.08727610856294632, -0.11008249968290329, 0.0032386842649430037, -0.19411106407642365, -0.11427145451307297, 0.14375416934490204, -0.558167040348053, 0.02254551462829113, -0.13253328204154968, -0.19974803924560547, 0.5214220285415649, 0.3549893796443939, 0.396861732006073, -0.1788480579853058, -0.6590537428855896, 0.1531885415315628, -0.3902202844619751, -0.33331000804901123, 0.06119382008910179, 0.3935902714729309, -0.18998433649539948, 0.2737797796726227, -0.2526284456253052, 0.7215352654457092, 0.1559850424528122, 0.021165987476706505, -0.019504593685269356, -0.627587616443634, 0.19016298651695251, -0.09287508577108383, 0.4617886245250702, 0.3564993739128113, -0.11480364203453064, -0.17416243255138397, 0.1262970119714737, 0.09592510759830475, 0.3339311182498932, -0.9893768429756165, -0.24772889912128448, 0.17495964467525482, -0.5322905778884888, -0.1340218335390091, -0.2626284062862396, -1.1302094459533691, -0.397018700838089, -0.25312143564224243, 0.32051196694374084, -0.43963074684143066, -0.4297731816768646, 0.3757261633872986, 0.0019395245471969247, 0.03094804845750332, 0.7066125869750977, -0.8112531900405884, 0.13499076664447784, 0.8794713020324707, 1.0810747146606445, -0.3207162022590637, -0.38582536578178406, -0.3026074469089508, 0.15826117992401123, -0.26372653245925903, 1.123532772064209, -0.40136608481407166, -0.24305137991905212, 0.10431352257728577, 0.06839006394147873, -0.02388370968401432, -0.022392651066184044, 0.6320592761039734, -0.7025066018104553, 0.25148633122444153, -0.0038323807530105114, -0.5836902260780334, 0.12845894694328308, 0.31453871726989746, -0.7859107255935669, 0.5685634016990662, -0.1674770712852478, -1.2377831935882568, 0.2949204444885254, -0.6262616515159607, -0.20673547685146332, -0.2811696529388428, 0.16726867854595184, -0.2792837917804718, -0.08786846697330475, -0.04116560518741608, 0.508286714553833, -0.2630945146083832, 0.6949344873428345, -0.5643219947814941, -0.2915532886981964, -0.1523755043745041, 0.013831891119480133, 0.4735831916332245, 0.22018426656723022, -0.05517612025141716, 0.5695717930793762, -0.8619135022163391, -0.32800647616386414, 0.18770718574523926, 0.08015012741088867, -0.8725224137306213, 0.0551619753241539, 0.10080261528491974, 0.5090838074684143, 0.024290824308991432, -0.3639325499534607, 0.37092655897140503, -0.4161035120487213, 0.743217408657074, 0.9295426607131958, 0.15559102594852448, 1.0561624765396118, -0.021925751119852066, 0.25374653935432434, 0.1347230225801468, -0.17190544307231903, -0.18235990405082703, -0.4301695227622986, -0.4778062701225281, -0.17988039553165436, 0.2745018005371094, 0.46107861399650574, -0.8400039672851562, 0.2881457507610321, -0.5624198913574219, -0.6588824391365051, 0.01611751690506935, -0.7359633445739746, -0.17112451791763306, 0.38793155550956726, 0.10682117193937302, -0.33862754702568054, -0.052932679653167725, -0.8284447193145752, -0.13750985264778137, 0.033484384417533875, 0.11475719511508942, 0.1713751256465912, 0.5367254614830017, -0.24759750068187714, 0.78152996301651, -0.8392266631126404, -0.1961982697248459, -0.079421266913414, 0.22251683473587036, 0.033398035913705826, 0.29771050810813904, 0.7183414101600647, -1.0102288722991943, -0.6193300485610962, -0.5209869742393494, -0.3959110379219055, 0.36414217948913574, -0.1668708324432373, -0.7489637732505798, -0.30568328499794006, 0.21262893080711365, -0.8815430402755737, 0.2906247079372406, 0.20270054042339325, -1.1201772689819336, 0.3009190261363983, -0.3911363184452057, -0.13088887929916382, -1.420629620552063, -0.01068770419806242, -0.07978418469429016, -0.32922402024269104, -0.642409086227417, -0.06502164155244827, 0.11726996302604675, -0.8710057139396667, -0.4053588807582855, 0.884356677532196, -0.28387463092803955, -0.1438029706478119, -0.5779949426651001, 0.2828831076622009, -0.1372978389263153, 0.103489950299263, 0.4782074987888336, 0.8740726113319397, 0.7735460996627808, -0.646994411945343, 0.01327850203961134, 0.7012515664100647, 0.004981729667633772, 0.5829382538795471, -0.4800165891647339, 0.29793936014175415, -0.36589324474334717, 0.5742237567901611, -0.681934654712677, 0.054329629987478256, 0.24918608367443085, 0.0757710188627243, 0.2778644263744354, -0.06277580559253693, -0.05589938163757324, 0.10774873197078705, -0.5555098652839661, 0.16595569252967834, 0.16461703181266785, -0.37932154536247253, 0.6864126920700073, 0.7184285521507263, -0.681512713432312, -0.4215821623802185, -0.21964453160762787, 0.08122432976961136, -0.23154351115226746, -0.7229808568954468, 1.0232125520706177, -0.0234257522970438, -0.10977829992771149, 0.3407277762889862, -0.013170643709599972, -0.41148149967193604, -0.07152417302131653, -0.019379813224077225, 0.10514560341835022, -0.02654895931482315, 0.16244949400424957, -0.22376413643360138, -0.5143142342567444, -0.29397332668304443, -0.24393141269683838, 0.26452451944351196, 0.14578628540039062, 0.43703460693359375, -0.24675968289375305, 0.6853384375572205, 0.828142523765564, -0.402803897857666, 0.7473407983779907, 0.4246767461299896, -0.43381544947624207, -0.2955307066440582, -0.053455110639333725, -0.5062564015388489, -0.42468398809432983, 0.6584259867668152, -0.5784686207771301, -0.7145792245864868, 0.34506934881210327, -0.31556063890457153, -0.028056412935256958, 0.30048879981040955, 0.2778274416923523, 0.43973827362060547, 0.365491658449173, 1.305091381072998, 0.01394936814904213, 0.7336903810501099, -0.1560056358575821, 0.034249112010002136, -0.5758814811706543, 0.11720582842826843, -0.5572983622550964, 0.09079819917678833, -0.7887071371078491, -0.6183478832244873, 0.03186895325779915, -0.1941966861486435, -0.20861515402793884, 0.3228302597999573, -0.5132625102996826, -0.16264156997203827, 0.2871250808238983, 0.05115903913974762, 0.16526784002780914, -0.038604043424129486, 0.2015957087278366, -0.1676226258277893, -0.6437370181083679, -0.572841227054596, 1.033774733543396, 0.23820854723453522, 0.577046275138855, -0.10348204523324966, 0.5339838862419128, 0.3707212805747986, 0.21296349167823792, -0.5807471871376038, 0.8087674975395203, -0.5055611729621887, -0.6497715711593628, -0.400245726108551, -0.4047011435031891, -0.6324418783187866, 0.6246815919876099, -0.3499634265899658, -0.7101943492889404, 0.5317070484161377, 0.0889759212732315, -0.3095141053199768, 0.464903861284256, -0.24731895327568054, 0.9467803835868835, -0.28721883893013, -0.8053095936775208, -0.5013640522956848, -0.7624312043190002, 0.10752850025892258, -0.09346649050712585, 0.05882977694272995, -0.6377260088920593, -0.39093220233917236, 0.903672456741333, -0.3188265860080719, 0.21855872869491577, -0.390426367521286, 0.2452532947063446, 0.08198080211877823, 0.023136556148529053, 0.5622183680534363, 0.2715393900871277, -0.2642955482006073, -0.021604597568511963, -0.11128702759742737, -0.33080846071243286, -0.7046964764595032, 0.7918844819068909, -0.6230725646018982, -0.41011467576026917, -0.7686148285865784, -0.5826998949050903, -0.20461104810237885, 0.3837040960788727, -0.1924435794353485, 0.30362817645072937, -0.37812650203704834, -0.14530202746391296, 0.5139259099960327, -0.32611244916915894, 0.4991096258163452, 0.7330253720283508, -0.07243538647890091, -0.34180182218551636, 0.8557986617088318, 0.08421021699905396, -0.12816770374774933, 0.615165114402771, 0.24931149184703827, -0.12269291281700134, -0.588419497013092, -0.2753737270832062, 0.13796940445899963, -0.5559448003768921, 0.07114166766405106, -1.0772602558135986, 0.044252634048461914, -0.18345916271209717, -0.4583096504211426, -1.0786206722259521, -0.7415041923522949, -0.18932197988033295, -0.08159241825342178, 0.2752797305583954, 0.2867259681224823, -0.1963815689086914, 0.1572650820016861, -0.4997119605541229, 0.7009032368659973, 0.2780660092830658, 0.17232932150363922, -0.206637442111969, -0.3205125033855438, 0.09851908683776855, -0.5070059895515442, -0.2776624858379364, -1.039212942123413, 0.48299673199653625, 0.25133025646209717, 0.40636274218559265, 0.1777772605419159, 0.38993895053863525, 0.3939674198627472, -0.7223069071769714, 0.38793110847473145, -0.06701390445232391, -0.7260726094245911, 0.614137589931488, -0.3061555027961731, -0.030121007934212685, 0.8807334899902344, 0.6130645871162415, -0.19493311643600464, -0.03429526463150978, -0.5237353444099426, -1.1390753984451294, 0.5196335315704346, 0.09599297493696213, 0.13320617377758026, 0.20007450878620148, 0.5629110336303711, 0.3755652904510498, 0.16953670978546143, -0.383830726146698, -0.12716728448867798, -0.30322974920272827, 0.010611256584525108, -0.20560000836849213, -0.5751050710678101, 0.1695176064968109, -0.10629376769065857, 0.6775996685028076, -0.22612005472183228, 0.732979953289032, 0.06503470987081528, 0.1129717156291008, 0.3035721182823181, 0.4732852578163147, 0.5328158140182495, 1.004504919052124, -0.61031174659729, 0.3783915340900421, -0.3075999319553375, -0.4668367803096771, 0.4808433949947357, 0.7802748680114746, -0.5303856134414673, 0.1494934856891632, -0.07180500775575638, 0.8113983273506165, 0.4285680949687958, -0.2778942584991455, 0.6172048449516296, -0.33162757754325867, 0.2992382347583771, -0.14407354593276978, -0.46792009472846985, 0.0017943629063665867, 0.05438467115163803, 0.06994274258613586, 0.1875014454126358, 0.34250959753990173, -0.5980901122093201, 0.5617398023605347, 0.139201357960701, -0.3355307877063751, -0.47650033235549927, 0.9734445214271545, 0.624001145362854, -0.22077277302742004, 0.6264992952346802, -0.15947896242141724, -0.5807806253433228, 0.448933869600296, 0.5256116986274719, 0.8620737791061401, -0.07008865475654602, 0.5457698106765747, 0.3184967637062073, 0.03292897716164589, -0.07328516989946365, 0.5034141540527344, 0.08077724277973175, -0.6341367959976196, -0.1430448740720749, -0.39945486187934875, -0.6230437755584717, -0.46465936303138733, -0.5736449956893921, 0.31493088603019714, -0.15339456498622894, -0.25121793150901794, 0.27891144156455994, 0.056847747415304184, -0.4843204617500305, 0.16611644625663757, -0.16701984405517578, 1.2475981712341309, -0.9215028882026672, 1.0530556440353394, 0.9386940002441406, 0.01941135711967945, -0.4181916117668152, 0.45276913046836853, -0.2168908715248108, -0.30044281482696533, 0.41107019782066345, 0.18343231081962585, 0.1538829803466797, 0.08489625155925751, 0.1754179149866104, -1.0018144845962524, 1.0463473796844482, 0.4114660322666168, -0.5736302733421326, -0.3341849148273468, -0.20403815805912018, 0.22207897901535034, -0.3232610821723938, 0.2671004831790924, -0.012387377209961414, 0.32989388704299927, -0.059273965656757355, -0.6277385354042053, 0.3642944395542145, 0.05544017627835274, 0.10431277751922607, 0.3484334945678711, -0.8977909684181213, 0.784497082233429, -0.2964276969432831, -0.03883877024054527, 0.10818316042423248, 0.6787078976631165, 0.23008069396018982, 0.6744528412818909, 0.590541422367096, 0.55363529920578, 0.5809108018875122, 0.00790072325617075, 0.9495365619659424, -0.5616772770881653, 0.38297462463378906, 1.0768930912017822, -0.6003491282463074, 0.9484979510307312, 0.7080186605453491, 0.16077779233455658, 0.22157397866249084, 0.5805222392082214, 0.41201162338256836, 1.36790132522583, -0.08736260235309601, 0.12186331301927567, -0.07790329307317734, -0.047948308289051056, -0.5483320355415344, 0.5473703742027283, 0.1875760555267334, -0.12733730673789978, -0.29515331983566284, 0.28586524724960327, 0.12469695508480072, 0.009591375477612019, -0.29842841625213623, 0.4821391999721527, 0.04144132509827614, -0.48621878027915955, -0.10583655536174774, 0.23548324406147003, 0.8024346232414246, -0.7822981476783752, -0.07155955582857132, -0.13468772172927856, 0.39826565980911255, 0.2651863396167755, -0.5638979077339172, 0.6643500328063965, -0.5304485559463501, -0.22276714444160461, -0.3270268142223358, 1.2222906351089478, -0.3630799949169159, -0.2977488338947296, 0.30212515592575073, 0.5905932188034058, -0.2723037898540497, 0.1576569378376007, -0.751510739326477, 0.17369842529296875, -0.3147904574871063, -0.3873280882835388, 0.32681557536125183, 0.42396095395088196, -0.18796615302562714, 0.5784620046615601, 0.23286673426628113, 0.08580545336008072, -0.11866384744644165, -0.4547066390514374, 0.7661316394805908, -0.9509420990943909, -1.1519582271575928, -0.512482225894928, 0.541857123374939, -0.08301842212677002, -0.5236067175865173, 0.4773103594779968, 0.4339640438556671, 0.3144915699958801, -0.15704400837421417, 0.3588642477989197, 0.005738791543990374, 0.512032687664032, -0.4016157388687134, 0.6212097406387329, -0.46139028668403625, 0.0014503885759040713, -0.31655630469322205, -0.82679283618927, -0.16480648517608643, 0.6661643981933594, -0.36299246549606323, -0.40132808685302734, 0.7791394591331482, 0.5221086740493774, -0.3705931305885315, 0.14960874617099762, 0.01986999809741974, 0.04976984113454819, 0.2873387336730957, 0.5895516276359558, 0.9501208066940308, -0.1670367270708084, 0.23623386025428772, -0.6914543509483337, -0.39442142844200134, -0.28390881419181824, -0.9966726899147034, -0.521865963935852, -0.6095580458641052, -0.78946852684021, -0.0753323957324028, 0.5642596483230591, 0.6214237213134766, 1.1985056400299072, -0.37600967288017273, 0.017019469290971756, -0.33751216530799866, 0.24140800535678864, 0.008431518450379372, -0.28254419565200806, 0.92589271068573, 0.1872076392173767, -0.3681471049785614, 0.3137592673301697, 0.4216703772544861, -0.05832114443182945, -0.23023644089698792, 0.20151829719543457, -0.31368693709373474, 0.29520905017852783, 0.5004851818084717, 0.15532566606998444, -0.19345895946025848, -0.3257504403591156, -0.20681914687156677, -0.09655233472585678, -0.1327560842037201, 1.1481126546859741, -0.5513348579406738, 0.40024805068969727, 0.5912184715270996, 0.6981958746910095, 0.7439635396003723, -0.1505664736032486, 0.6108724474906921, -0.1167551651597023, 0.7770068049430847, 0.30503544211387634, 0.3794654309749603, 0.3324130177497864, -0.466323584318161, 0.6139171123504639, 0.31970179080963135, -0.606742262840271, -0.7893381118774414, 0.22596707940101624, -1.1255850791931152, -0.4392200708389282, 0.8116043210029602, -0.14728596806526184, -0.07186073064804077, 0.13402016460895538, -0.10211186110973358, 0.14037951827049255, -0.42287200689315796, 0.7778600454330444, 0.23934142291545868, -0.31010040640830994, -0.13432885706424713, -0.5529130697250366, 0.24227993190288544, 0.20122414827346802, -0.9190151691436768, -0.10104190558195114, 0.34467455744743347, 0.5810624957084656, 0.16820447146892548, 1.0987331867218018, 0.0862235426902771, 0.1621561050415039, 0.2732922434806824, -0.2977701425552368, -0.0244411900639534, -0.7117917537689209, -0.08127687126398087, 0.5566244125366211, -0.037507932633161545, -0.24281847476959229 ]
http://arxiv.org/abs/2405.17977v1
http://arxiv.org/pdf/2405.17977v1
Aligning to Thousands of Preferences via System Message Generalization
2024-05-28T09:06:18
2024-05-28T09:06:18
Seongyun Lee, Sue Hyun Park, Seungone Kim, Minjoon Seo
cs.CL
cs.CL
Although humans inherently have diverse values, current large language model (LLM) alignment methods often assume that aligning LLMs with the general public's preferences is optimal. A major challenge in adopting a more individualized approach to LLM alignment is its lack of scalability, as it involves repeatedly acquiring preference data and training new reward models and LLMs for each individual's preferences. To address these challenges, we propose a new paradigm where users specify what they value most within the system message, steering the LLM's generation behavior to better align with the user's intentions. However, a naive application of such an approach is non-trivial since LLMs are typically trained on a uniform system message (e.g., "You are a helpful assistant") which limits their ability to generalize to diverse, unseen system messages. To improve this generalization, we create the Multifaceted Collection, a preference dataset with 192k combinations of values beyond generic helpfulness and harmlessness, spanning 65k user instructions. Using this dataset, we train a 7B LLM called Janus and test it on 921 prompts from 5 benchmarks (AlpacaEval 2.0, FLASK, Koala, MT-Bench, and Self-Instruct) by adding various unseen system messages that reflect user preferences. Janus achieves tie+win rate of 75.2%, 72.4%, and 66.4% against Mistral 7B Instruct v0.2, GPT-3.5 Turbo, and GPT-4, respectively. Unexpectedly, on three benchmarks focused on response helpfulness (AlpacaEval 2.0, MT-Bench, Arena Hard Auto v0.1), Janus also outperforms LLaMA 3 8B Instruct by a +4.0%, +0.1%, +3.0% margin, underscoring that training with a vast array of system messages could also enhance alignment to the general public's preference as well. Our code, dataset, benchmark, and models are available at https://github.com/kaistAI/Janus.
[ -0.49643221497535706, -0.25754430890083313, 0.41710203886032104, 0.1378369778394699, -0.15715059638023376, -0.006653732620179653, -0.447053998708725, -0.23115327954292297, 0.4928549826145172, 0.42630675435066223, -0.41125839948654175, -0.41685476899147034, -0.674419105052948, -0.010599362663924694, -0.03130268305540085, 1.4149285554885864, 0.1580246537923813, -0.09421373158693314, -0.19486761093139648, -0.2935270667076111, -0.6732857823371887, -0.6438102126121521, -0.6069234013557434, -0.39020538330078125, 0.8076227307319641, 0.7140380144119263, 0.7951769232749939, 0.611901044845581, 0.6755079030990601, 0.2972343862056732, -0.043669693171978, 0.24871547520160675, -0.6798518896102905, 0.3706839978694916, -0.07460679858922958, -0.48991453647613525, -0.7116411924362183, -0.10733766853809357, 0.6012031435966492, 0.47775980830192566, -0.03867349028587341, 0.22100216150283813, 0.28656941652297974, 0.70577073097229, -0.5427665114402771, -0.034182142466306686, -0.625463604927063, -0.232060968875885, -0.345282644033432, -0.22824065387248993, -0.33820873498916626, -0.42813581228256226, 0.16621562838554382, -0.7620636224746704, -0.11059826612472534, -0.006142353173345327, 0.8751733899116516, 0.3935490548610687, -0.4240949749946594, -0.22251377999782562, -0.5467775464057922, 0.909821093082428, -0.6146693825721741, 0.07854720205068588, 0.12241266667842865, 0.4244924485683441, -0.337374746799469, -0.012631284072995186, -0.3504348695278168, -0.12804542481899261, 0.18228109180927277, 0.06757275760173798, -0.12955717742443085, 0.027049215510487556, 0.2110871523618698, 0.17140591144561768, -0.462341845035553, 0.3361866772174835, 0.019847024232149124, -0.051164235919713974, 0.6907225251197815, 0.4103405475616455, 0.08016659319400787, -0.04795524850487709, -0.5880508422851562, -0.43110233545303345, -0.61691814661026, 0.4022029936313629, 0.48379403352737427, 0.4566357135772705, -0.10350137948989868, 0.6057277321815491, -0.28344449400901794, 0.7330169677734375, 0.4058608412742615, -0.33279305696487427, 0.3089449107646942, -0.3166453242301941, -0.18202367424964905, 0.07616223394870758, 0.9718276262283325, 0.7492715716362, 0.24212338030338287, -0.05091222748160362, -0.3049411177635193, 0.18427062034606934, 0.21267972886562347, -0.6349164247512817, -0.022988606244325638, 0.06511308997869492, -0.33189907670021057, -0.36608341336250305, 0.09145083278417587, -0.5302574038505554, -0.6758158802986145, -0.47158947587013245, 0.2166595458984375, -0.3050939738750458, -0.05376308411359787, 0.04978323355317116, -0.0007062082877382636, 0.10943576693534851, 0.5312020182609558, -1.3831504583358765, 0.18456971645355225, 0.6964496970176697, 0.5575705766677856, -0.31175023317337036, -0.13028953969478607, -0.6880461573600769, 0.18734563887119293, -0.19939111173152924, 0.9106979370117188, -0.6281003355979919, -0.26749712228775024, -0.34911903738975525, -0.1892388015985489, 0.18092866241931915, -0.5098379850387573, 0.3523785471916199, -0.5780609250068665, 0.1843995898962021, -0.5822279453277588, -0.5259745121002197, 0.17726674675941467, 0.2969280183315277, -0.3873661756515503, 0.8577361106872559, -0.028457386419177055, -0.5863924622535706, 0.442534476518631, -0.7098681926727295, -0.08551375567913055, 0.02559811808168888, -0.307445764541626, -0.32711321115493774, 0.11941251158714294, 0.25684627890586853, 0.582617461681366, -0.25093787908554077, 0.36095455288887024, -0.6324095129966736, -0.29130542278289795, 0.27455320954322815, -0.3689020574092865, 0.5120033025741577, 0.25376957654953003, -0.3613835275173187, 0.2838059067726135, -0.5157339572906494, -0.016766883432865143, 0.04870432987809181, -0.5453639030456543, -0.4844958782196045, -0.23524299263954163, -0.17784135043621063, 0.06745661050081253, 0.682578980922699, -0.45117735862731934, 0.7024275660514832, -0.38798388838768005, -0.14254207909107208, 1.264983892440796, -0.30466556549072266, 0.6526753306388855, -0.39012837409973145, 0.5347778797149658, -0.1489591896533966, 0.1937759965658188, -0.034126561135053635, -0.6198824048042297, -0.595492959022522, -0.15518616139888763, 0.12134047597646713, 0.486137330532074, -0.2978021800518036, 0.5095455646514893, -0.6140730381011963, -0.16689597070217133, -0.5844504237174988, 0.4365255534648895, 0.517832338809967, 0.3459881842136383, 0.16568076610565186, -0.27374520897865295, -0.336950421333313, -1.133939504623413, -0.1677217185497284, -0.2801038920879364, -0.21860498189926147, 0.5022540092468262, -0.09524441510438919, -0.1342751532793045, 0.9844657182693481, -0.6644423604011536, -0.11183872818946838, -0.12128880620002747, -0.03182046860456467, 0.24947915971279144, 0.3208470642566681, 0.38040316104888916, -0.5538201332092285, -0.5195079445838928, 0.145174041390419, -0.6726088523864746, -0.27895113825798035, -0.16389065980911255, -0.2298251986503601, 0.02407476305961609, 0.09399253875017166, -0.2003263682126999, 0.059911422431468964, 0.6476547718048096, -0.335787296295166, 0.2568219304084778, -0.1743784099817276, 0.22128614783287048, -1.465717077255249, 0.10245057940483093, 0.1687077134847641, -0.17603321373462677, -0.5915406346321106, -0.0565590001642704, -0.04701577499508858, 0.2903512418270111, -0.12915359437465668, 0.5487285852432251, -0.3857883810997009, -0.016252009198069572, -0.4273233115673065, 0.22495318949222565, -0.29541799426078796, 0.4733497202396393, -0.0871008038520813, 0.726387619972229, 0.10174472630023956, -0.5466752052307129, 0.5702058672904968, 0.36687329411506653, -0.002588860923424363, 0.868980884552002, -0.4918244779109955, 0.25198662281036377, -0.13398265838623047, 0.23066020011901855, -1.0498223304748535, -0.3109073042869568, 0.1855929046869278, -0.4396468997001648, 0.19105643033981323, -0.05192062631249428, -0.24678713083267212, -0.19938507676124573, -0.34148189425468445, 0.15681225061416626, 0.350851833820343, -0.6389972567558289, 0.315191388130188, 0.4519693851470947, -0.2468627244234085, -0.8450530767440796, -0.31719067692756653, 0.3483814001083374, -0.43853530287742615, -0.5959686040878296, 0.09196128696203232, -0.4636659622192383, -0.17405183613300323, -0.39608505368232727, -0.04705558344721794, 0.36761710047721863, 0.32326197624206543, 0.5002582669258118, 0.5393863916397095, -0.11532553285360336, 0.2292085886001587, -0.015446511097252369, -0.43984532356262207, -0.148992121219635, -0.33187198638916016, 0.5477936267852783, -0.4920027256011963, -0.5666215419769287, -0.3638743460178375, 0.33067774772644043, 0.5264050364494324, 0.06941695511341095, 0.655156135559082, 0.5387645363807678, -0.02204582467675209, 0.18932580947875977, -0.660065233707428, -0.18238751590251923, -0.45709428191185, 0.23968477547168732, -0.3873375356197357, -0.9570868611335754, 0.2696457803249359, 0.07871221750974655, 0.40127310156822205, 0.2441634088754654, 0.576897144317627, -0.0718245878815651, 1.3497929573059082, 0.6554118990898132, -0.6437028050422668, 0.5301567316055298, -0.024192512035369873, 0.06082089617848396, -0.8523584008216858, -0.23259949684143066, -0.476497083902359, -0.67893385887146, -0.6211301684379578, -0.035863518714904785, 0.43345677852630615, 0.032070767134428024, -0.43070080876350403, 0.4252985417842865, -0.855070173740387, 0.3742826282978058, 0.7270274758338928, 0.06407931447029114, 0.2623065412044525, 0.10449778288602829, -0.027577796950936317, -0.02232925221323967, -0.5312925577163696, -0.9028884172439575, 1.3132692575454712, 0.42267024517059326, 1.0695701837539673, 0.3634144067764282, 1.0495269298553467, 0.04659304395318031, 0.6342482566833496, -0.7748833298683167, 0.523027241230011, -0.18894629180431366, -0.3197392225265503, -0.4858292043209076, -0.4223204255104065, -1.0489060878753662, 0.003526079235598445, -0.28828248381614685, -0.7841567397117615, 0.023823725059628487, 0.4135393500328064, -0.6969650983810425, 0.22588172554969788, -0.7649818658828735, 0.5863250494003296, -0.4443082809448242, -0.20877036452293396, -0.0574583038687706, -0.8833718299865723, 0.3373314142227173, -0.03871789202094078, 0.04882820323109627, -0.15511128306388855, -0.27970632910728455, 0.6991549134254456, -0.11284720152616501, 0.817561149597168, -0.0935131087899208, -0.20633839070796967, -0.28895795345306396, -0.25353309512138367, 0.568313479423523, -0.06465250998735428, -0.00973663292825222, -0.18173232674598694, -0.17664575576782227, -0.4461970329284668, -0.6168460845947266, 0.9943985939025879, -1.0551342964172363, -0.720836877822876, -0.2928529381752014, -0.6326439380645752, -0.2846677899360657, 0.14691928029060364, 0.11971472948789597, 0.2669382393360138, -0.16819597780704498, 0.18845897912979126, 0.9148346185684204, -0.06381096690893173, 0.20753005146980286, 0.36644119024276733, -0.15901771187782288, -0.5378142595291138, 0.9807477593421936, -0.306306391954422, 0.43406012654304504, 0.519451916217804, 0.3642390966415405, -0.34152984619140625, -0.3838317394256592, -0.5716638565063477, 0.07438082247972488, -0.5249916315078735, -0.3772464990615845, -0.652736246585846, 0.2078109085559845, -0.39991456270217896, -0.31153541803359985, -0.2218329757452011, -0.33185964822769165, -0.4879434406757355, 0.126743346452713, 0.3093731701374054, 1.0258171558380127, 0.08624245971441269, 0.5828369855880737, -0.720998227596283, 0.319770872592926, 0.5229159593582153, 0.4068438708782196, -0.14022353291511536, -0.5505863428115845, -0.18331067264080048, 0.1709761917591095, -0.4949188232421875, -0.8253957629203796, 0.22715607285499573, -0.10781978070735931, 0.673570454120636, 0.7597580552101135, -0.09301891922950745, 0.7878013253211975, -0.13232558965682983, 0.7242940664291382, 0.5282027721405029, -0.6239073872566223, 0.5036038160324097, -0.44394809007644653, 0.3181886374950409, 0.7799971103668213, 0.21263568103313446, -0.7650101184844971, -0.42730122804641724, -0.6670053005218506, -0.529041051864624, 0.7659253478050232, -0.12572363018989563, 0.13013990223407745, 0.05306350439786911, 0.3049051761627197, 0.09260054677724838, 0.18245849013328552, -0.6527578830718994, -0.3787827789783478, -0.04692644998431206, -0.4625595808029175, -0.28765302896499634, -0.14958186447620392, -0.22314545512199402, 0.096554234623909, 0.6867417097091675, -0.3772367537021637, 0.19566583633422852, -0.23466810584068298, 0.1761326938867569, -0.18410560488700867, 0.5203301310539246, 0.727170467376709, 0.3081900179386139, -0.22554059326648712, 0.18060216307640076, 0.19932439923286438, -0.2324354648590088, 0.31782597303390503, 0.0647222250699997, -0.038552798330783844, -0.38504698872566223, 0.02367456629872322, 0.7599814534187317, 0.12067148089408875, -0.34908127784729004, 0.5022937059402466, -0.15343259274959564, 0.026159726083278656, 0.11849049478769302, 0.22324886918067932, 0.3696247935295105, 0.14211194217205048, 0.2137824147939682, 0.10881964862346649, -0.030246051028370857, -0.2391570508480072, -0.10269960016012192, 0.912973165512085, -0.3031409680843353, -0.2620540261268616, 0.6490961909294128, 0.3286473751068115, -0.24740776419639587, 0.4188653826713562, -0.16141019761562347, -0.37508711218833923, 0.33741551637649536, 0.3841850161552429, 0.7449424266815186, -0.38145875930786133, 0.1298495978116989, 0.21761752665042877, 0.12920354306697845, -0.20413221418857574, 0.029366573318839073, -0.02646990492939949, -0.8625378012657166, -0.17157307267189026, -0.5924453139305115, -0.4820162355899811, 0.19147443771362305, -0.5782335996627808, 0.3396800458431244, -0.47322162985801697, -0.3959329426288605, 0.1181742325425148, 0.10999858379364014, -0.5644749402999878, -0.05037039890885353, 0.34958982467651367, 0.6351766586303711, -0.9952830672264099, 0.6511834263801575, 1.0496662855148315, -0.33694761991500854, -0.971930742263794, -0.25111880898475647, 0.24033866822719574, -1.0333644151687622, 0.6596673130989075, 0.006335602607578039, -0.1145908385515213, -0.32520371675491333, -0.5767476558685303, -0.8588681221008301, 1.0277241468429565, 0.4663422107696533, -0.785144567489624, 0.03280485048890114, 0.07428602129220963, 0.43656715750694275, -0.6390522718429565, 0.5105260610580444, 0.36347103118896484, 0.5254552364349365, 0.1212630420923233, -0.9795498847961426, 0.05482764169573784, -0.24987414479255676, 0.16736119985580444, 0.34245458245277405, -0.8138751983642578, 0.5114895701408386, -0.3125380277633667, -0.022087914869189262, 0.20544731616973877, 0.5828356146812439, 0.4496016800403595, 0.2875431776046753, 0.737065851688385, 0.6822248101234436, 0.8430508971214294, 0.13181869685649872, 0.8249193429946899, -0.2906952202320099, 0.04592416062951088, 1.0650506019592285, -0.06028134003281593, 0.6148015856742859, 0.6331496238708496, -0.05080403760075569, 0.41266319155693054, 0.6298676133155823, 0.32658764719963074, 0.2819349765777588, 0.16032452881336212, -0.3970560133457184, -0.5896538496017456, -0.2755546569824219, -0.3187023997306824, 0.3113453984260559, 0.1630072146654129, -0.2531627416610718, -0.12662604451179504, -0.13581116497516632, 0.06178233027458191, 0.12549149990081787, 0.04506326839327812, 1.0028036832809448, -0.11829695850610733, -0.8475697636604309, 0.6494978070259094, -0.22622299194335938, 0.885306715965271, -0.6528149247169495, -0.008691812865436077, -0.25581833720207214, 0.2359098643064499, -0.2918297052383423, -0.83324134349823, -0.25844454765319824, -0.0003567685198504478, -0.27840712666511536, -0.449939101934433, 0.428804874420166, -0.3687419593334198, -0.16872331500053406, 0.0001441126223653555, 0.24342657625675201, 0.24225687980651855, 0.12021754682064056, -0.6140225529670715, 0.050821684300899506, 0.3325503170490265, -0.13763190805912018, 0.737885594367981, 0.19194677472114563, -0.23372431099414825, 0.7874026894569397, 0.7096422910690308, 0.15245385468006134, -0.25261032581329346, 0.1529930830001831, 1.0894585847854614, -0.5119163393974304, -0.4204762876033783, -0.7973209619522095, 0.383851021528244, -0.2748124897480011, -0.45449912548065186, 0.7981585264205933, 0.5665117502212524, 0.6127845048904419, 0.20395809412002563, 0.8323621153831482, 0.24133336544036865, 0.3898719251155853, -0.06513920426368713, 0.20572786033153534, -0.4781220555305481, 0.5840358734130859, -0.28835445642471313, -0.9380415081977844, -0.044906314462423325, 0.4398248493671417, -0.29023680090904236, -0.020842203870415688, 0.24538815021514893, 0.7737656235694885, 0.005029910244047642, -0.024031994864344597, 0.22180026769638062, -0.1811649352312088, 0.521979570388794, 0.8703086376190186, 0.8909485936164856, -0.11595933884382248, 0.5581152439117432, 0.002412708941847086, -0.7470571398735046, -0.3830339312553406, -0.847373366355896, -0.70003342628479, -0.4419640004634857, 0.005101145710796118, -0.4311239421367645, 0.061846792697906494, 1.2934802770614624, 0.6081595420837402, -0.857024073600769, -0.424641877412796, 0.24069249629974365, 0.14743560552597046, -0.058007508516311646, -0.16135823726654053, 0.06126796081662178, -0.4990028142929077, -0.6366883516311646, 0.224607914686203, 0.24139699339866638, 0.13536015152931213, -0.26115185022354126, -0.30746904015541077, 0.1306230127811432, -0.16980397701263428, 0.35797396302223206, 0.36927807331085205, -0.8044908046722412, -0.4345371723175049, 0.32032305002212524, -0.3743343651294708, 0.19121098518371582, 0.5775943994522095, -0.6907877922058105, 0.4970991909503937, 0.3098963797092438, 0.7193358540534973, 0.1790730357170105, 0.31704699993133545, 0.6666179895401001, -0.5529454946517944, -0.44548916816711426, 0.12394464015960693, 0.2524281144142151, 0.4823726415634155, -0.5945688486099243, 0.11815521866083145, 0.011435326188802719, -0.8565422892570496, -0.4824821949005127, 0.15767064690589905, -1.1979807615280151, 0.08903757482767105, 1.3407869338989258, 0.06092926487326622, -0.05748644471168518, 0.008270777761936188, -0.3515363037586212, 0.06478384882211685, -1.014953374862671, 0.851068377494812, 0.575835108757019, -0.28792157769203186, 0.2536165416240692, -0.13180041313171387, 0.4371510446071625, 0.6569308042526245, -0.845607578754425, 0.11545270681381226, 0.632786750793457, 0.3350891172885895, 0.39821070432662964, 0.7718631625175476, 0.17793206870555878, 0.16075579822063446, -0.5357538461685181, 0.17420800030231476, -0.0015792681369930506, -0.20609785616397858, -0.6702060699462891, 0.11875155568122864, 0.35713544487953186, -0.3079381287097931 ]
http://arxiv.org/abs/2405.17976v2
http://arxiv.org/pdf/2405.17976v2
Yuan 2.0-M32: Mixture of Experts with Attention Router
2024-05-28T09:05:08
2024-05-29T07:19:58
Shaohua Wu, Jiangang Luo, Xi Chen, Lingjun Li, Xudong Zhao, Tong Yu, Chao Wang, Yue Wang, Fei Wang, Weixu Qiao, Houbo He, Zeru Zhang, Zeyu Sun, Junxiong Mao, Chong Shen
cs.AI
cs.AI, cs.CL
Yuan 2.0-M32, with a similar base architecture as Yuan-2.0 2B, uses a mixture-of-experts architecture with 32 experts of which 2 experts are active. A new router network, Attention Router, is proposed and adopted for a more efficient selection of experts, which improves the accuracy compared to the model with classical router network. Yuan 2.0-M32 is trained with 2000B tokens from scratch, and the training computation consumption is only 9.25% of a dense model at the same parameter scale. Yuan 2.0-M32 demonstrates competitive capability on coding, math, and various domains of expertise, with only 3.7B active parameters of 40B in total, and 7.4 GFlops forward computation per token, both of which are only 1/19 of Llama3-70B. Yuan 2.0-M32 surpass Llama3-70B on MATH and ARC-Challenge benchmark, with accuracy of 55.89 and 95.8 respectively. The models and source codes of Yuan 2.0-M32 are released at Github1.
[ -0.5794753432273865, -0.5967527627944946, 0.268420934677124, 0.6231899857521057, -0.22265715897083282, 0.18194468319416046, -0.024490538984537125, -0.8009893894195557, 0.17414657771587372, 0.42952677607536316, -0.24571163952350616, 0.22265473008155823, -0.7000347971916199, -0.2852407693862915, -0.21452826261520386, 0.9682179093360901, 0.09343195706605911, 0.27290356159210205, 0.22691096365451813, -0.22495801746845245, -0.4857693016529083, -0.3867763578891754, -1.1331676244735718, -0.6028160452842712, 0.5247973799705505, 0.5205942988395691, 0.757066011428833, 0.4436529278755188, 0.9065735936164856, 0.3308948278427124, -0.21137534081935883, 0.08576902002096176, -0.5734058022499084, -0.409953773021698, -0.13254868984222412, -0.3810995817184448, -0.9215993285179138, -0.23200657963752747, 0.4598497152328491, 0.371163010597229, -0.28059670329093933, 0.302755743265152, -0.06758244335651398, 1.1622989177703857, -0.2581721842288971, 0.11201029270887375, -0.6322696805000305, 0.1756553053855896, -0.14310860633850098, 0.06483489274978638, -0.392703652381897, -0.040906935930252075, 0.22896741330623627, -0.6013138890266418, 0.3274526298046112, 0.15976406633853912, 0.7627363801002502, 0.5511007905006409, -0.4425678551197052, 0.2304227352142334, -0.3833843171596527, 0.7541918158531189, -0.5263895392417908, 0.5678106546401978, 0.09049802273511887, 0.6360151171684265, -0.09225866943597794, -0.7480173110961914, -0.21937377750873566, 0.1797134280204773, 0.014129575341939926, 0.28787961602211, -0.12809208035469055, -0.04055900499224663, 0.03456990793347359, 0.5632970333099365, -0.3365345001220703, 0.1767989695072174, -0.615048885345459, -0.025657732039690018, 0.8362092971801758, 0.20662876963615417, -0.03005758300423622, 0.34880518913269043, -0.4896169602870941, 0.1209912821650505, -0.7355986833572388, 0.03918631002306938, 0.362185537815094, -0.36488112807273865, -0.33676475286483765, 0.4283679723739624, -0.7406412959098816, 0.6889240741729736, 0.8290761113166809, -0.15801851451396942, 0.3871957063674927, -0.11742857098579407, -0.1770344376564026, 0.031207730993628502, 0.5538625121116638, 0.3037484884262085, 0.11481937766075134, -0.29984867572784424, -0.34270575642585754, -0.5468896627426147, 0.1746213287115097, -0.9008980989456177, -0.7024117112159729, 0.3285667598247528, -0.7481497526168823, -0.34633851051330566, 0.23471900820732117, -0.5649529099464417, -0.12778769433498383, -0.2822667360305786, 0.3891553282737732, 0.05798042565584183, -0.8175181150436401, 0.2527875006198883, -0.3126499354839325, 0.34310001134872437, 0.6447060108184814, -1.3004573583602905, 0.6513575315475464, 0.9221687316894531, 0.8357997536659241, -0.44583454728126526, -0.14600203931331635, -0.2728405296802521, -0.00950906053185463, -0.3791016936302185, 0.8366578221321106, -0.16771633923053741, -0.306968629360199, -0.6289529204368591, -0.34171542525291443, -0.13539302349090576, -0.8086032271385193, 0.29591894149780273, -0.9796605706214905, 0.1666702777147293, -0.09740371257066727, -0.24996833503246307, -0.5618135929107666, 0.2391020655632019, -0.8905701637268066, 1.5164573192596436, 0.499505877494812, -0.9108803272247314, 0.10829469561576843, -0.6022672653198242, -0.17594590783119202, 0.041417840868234634, -0.11384526640176773, -0.10875335335731506, -0.08616090565919876, -0.013665629550814629, 0.23642176389694214, -0.3970779776573181, 0.25195756554603577, -0.193342924118042, -0.4981890320777893, 0.21232888102531433, -0.19830818474292755, 0.7581777572631836, 0.2405649572610855, -0.5192621946334839, 0.03570710867643356, -0.6373780965805054, -0.038560330867767334, 0.05547739937901497, -0.7566899657249451, 0.3955957293510437, 0.03953440487384796, 0.3354235589504242, 0.553939700126648, 0.6462394595146179, -0.3111344277858734, -0.2582925260066986, -0.6008604764938354, 0.3505101799964905, 0.7728943228721619, -0.11931899189949036, 0.5487715601921082, -0.23990117013454437, 0.28436732292175293, 0.26657384634017944, 0.23334883153438568, 0.25625738501548767, -0.9444008469581604, -1.1641689538955688, -0.019541924819350243, 0.48769208788871765, 0.6796491146087646, -0.48229607939720154, 0.6169959902763367, -0.25227245688438416, -0.7145847678184509, -0.38715216517448425, 0.4104059040546417, 0.6266974806785583, 0.5667434930801392, 0.4048755466938019, -0.1793394684791565, -0.23823553323745728, -0.9943274259567261, 0.05460803583264351, -0.1784745454788208, 0.008663808926939964, 0.3706734776496887, 0.289181649684906, 0.11408320814371109, 0.8515604734420776, -0.534795880317688, -0.23779301345348358, -0.5209206938743591, -0.07722096145153046, 0.20128865540027618, 0.667572557926178, 0.7322236895561218, -0.8750252723693848, -0.7775831818580627, 0.4954126179218292, -0.6088889837265015, 0.2921305298805237, 0.12829995155334473, -0.23974944651126862, 0.2864723205566406, 0.23321926593780518, -0.5750198364257812, -0.06182734668254852, 0.45942044258117676, -0.24409522116184235, 0.40408360958099365, 0.004819465801119804, -0.07366921007633209, -1.1628742218017578, 0.17741328477859497, 0.12139511108398438, 0.08954378962516785, -0.6882001161575317, 0.3641197383403778, 0.059753865003585815, 0.15187066793441772, -0.5230073928833008, 0.9504500031471252, -0.5476033091545105, -0.044925566762685776, -0.2320425808429718, -0.07325831055641174, -0.13998854160308838, 0.9579341411590576, 0.22778771817684174, 0.7194998264312744, 0.4530355930328369, -0.46661752462387085, 0.5392073392868042, 0.0801636204123497, -0.30081719160079956, 0.13916005194187164, -0.9120649695396423, 0.41026678681373596, 0.28388509154319763, 0.08226517587900162, -0.7871314883232117, -0.4320220649242401, 0.5256405472755432, -0.6260873079299927, 0.319335401058197, 0.036105867475271225, -0.4267239570617676, -0.5437561869621277, -0.40577688813209534, 0.5683568716049194, 0.6325966119766235, -0.3072320818901062, 0.5029662251472473, 0.44178271293640137, -0.21675658226013184, -0.6870152950286865, -0.8812492489814758, 0.07774827629327774, -0.012532145716249943, -0.7183118462562561, 0.45539334416389465, -0.027663983404636383, -0.24382956326007843, 0.1305488497018814, -0.08259333670139313, -0.3599397540092468, 0.22167038917541504, -0.03175654262304306, 0.34510886669158936, -0.5754570364952087, -0.32600486278533936, 0.09215789288282394, -0.4669286608695984, 0.24235014617443085, -0.24495159089565277, 0.33859410881996155, 0.056053001433610916, -0.4539356529712677, -0.5391185283660889, 0.19300663471221924, 0.23957550525665283, -0.286548912525177, 0.4157872498035431, 0.8933578133583069, -0.5789709687232971, 0.08506091684103012, -1.0147864818572998, -0.16440553963184357, -0.6091951727867126, 0.6009856462478638, -0.39504197239875793, -0.9489274621009827, 0.5616615414619446, 0.23703508079051971, 0.10934614390134811, 0.6740736961364746, 0.7000464797019958, 0.47011542320251465, 1.3100110292434692, 0.6589253544807434, -0.5923380255699158, 0.4251926839351654, -0.0508856400847435, 0.2249230295419693, -1.0460388660430908, -0.5776540637016296, -0.4609488248825073, -0.46333950757980347, -0.2931807339191437, -0.5287121534347534, 0.3213373124599457, 0.22577784955501556, -0.5920416712760925, 0.08365898579359055, -0.6653057336807251, 0.49200549721717834, 0.9352993369102478, 0.4583989083766937, -0.04406244680285454, 0.0046634366735816, 0.29948732256889343, 0.16563895344734192, -0.7274875044822693, -0.19680647552013397, 1.0998934507369995, 0.5878549814224243, 0.47907736897468567, 0.30790188908576965, 0.2303156554698944, 0.24922996759414673, 0.20614506304264069, -0.8916351199150085, 0.517565131187439, 0.040872324258089066, -0.874714195728302, -0.1777258664369583, -0.2268524020910263, -0.3165980279445648, 0.25321725010871887, 0.019312404096126556, -0.7165229320526123, 0.14046171307563782, 0.1664305478334427, -0.5950321555137634, 0.4420238435268402, -0.5376031994819641, 0.7482805848121643, -0.2656034529209137, -0.36681294441223145, -0.5572447180747986, -0.7922078371047974, 0.44227635860443115, -0.235147163271904, -0.2467898279428482, -0.0955023318529129, -0.024823937565088272, 1.052315592765808, -0.3580802381038666, 0.40715306997299194, -0.3356872797012329, 0.1480129361152649, 0.5122430324554443, -0.16904933750629425, 0.5531818866729736, 0.0066038160584867, -0.3877391815185547, 0.21215792000293732, -0.6423692107200623, -0.50168776512146, -0.35039085149765015, 0.47442203760147095, -1.1237527132034302, -0.8843901753425598, -0.04569580405950546, -0.31366556882858276, -0.19069349765777588, 0.2807002365589142, 0.1656969040632248, 0.43439048528671265, -0.11215576529502869, 0.4209422469139099, 1.0081801414489746, 0.1312716156244278, 0.36628255248069763, 0.41895321011543274, 0.06358923017978668, -0.8092049956321716, 1.0494093894958496, -0.06528693437576294, 0.10345245897769928, 0.57003253698349, 0.06471013277769089, -0.19773611426353455, -0.7316378951072693, -0.9745416045188904, -0.011869397014379501, -0.5928035974502563, -0.29679206013679504, -0.93516606092453, -0.6131733655929565, -0.2491278499364853, -0.1949853152036667, -0.418173611164093, -0.41658642888069153, -0.577368974685669, -0.16041062772274017, 0.3295072317123413, 0.8335784673690796, 0.047506045550107956, 0.5347869992256165, -0.751910924911499, 0.2591783106327057, 0.4422195255756378, 0.19524140655994415, 0.43433186411857605, -0.8500147461891174, -0.8592007756233215, -0.033458199352025986, -0.4387265741825104, -0.6059089303016663, 0.035881735384464264, -0.0062986109405756, 0.8647950291633606, 1.2072761058807373, -0.45447900891304016, 0.5442887544631958, -0.3743036985397339, 0.8065085411071777, 0.3185676634311676, -0.8753809928894043, 0.1623927503824234, -0.5863600969314575, -0.09555321931838989, 0.4745822250843048, -0.03369871526956558, -0.2983010411262512, -0.3364567458629608, -0.5337716937065125, -0.49804767966270447, 1.2693489789962769, -0.012525144033133984, 0.08920438587665558, 0.313975065946579, 0.3542953133583069, -0.08830148726701736, 0.06646779179573059, -0.5766568183898926, -0.33538952469825745, -0.1277402937412262, -0.29232344031333923, 0.23321488499641418, -0.6031144261360168, -0.13746055960655212, -0.3025375306606293, 0.6423095464706421, 0.018504580482840538, 0.5403238534927368, -0.044252946972846985, 0.12888099253177643, -0.22467203438282013, -0.219814732670784, 0.5413347482681274, 0.7271780371665955, -0.2720903158187866, -0.032749198377132416, 0.4912313222885132, -0.728406548500061, 0.033149074763059616, 0.059786614030599594, -0.10159730166196823, -0.23790483176708221, 0.18913906812667847, 0.6547566652297974, 0.4523575007915497, -0.34179213643074036, 0.3717539310455322, 0.4501516819000244, -0.3866528272628784, -0.07775901257991791, 0.49910968542099, 0.3680223226547241, 0.36707770824432373, 0.45258909463882446, 0.46403422951698303, 0.4970189332962036, 0.08812051266431808, 0.13942228257656097, 0.23830288648605347, -0.41389548778533936, -0.42369344830513, 1.0119497776031494, 0.5688207149505615, -0.3853595554828644, 0.38114941120147705, -0.39728033542633057, -0.7329842448234558, 1.1971737146377563, 0.5652590990066528, 0.6981638073921204, -0.2091199904680252, 0.03136686235666275, 0.41889846324920654, 0.22343838214874268, -0.5185808539390564, 0.25508126616477966, 0.04877090826630592, -0.73445063829422, -0.015447874553501606, -0.15312309563159943, -0.6693382263183594, -0.3198264241218567, -0.8242238759994507, 0.40226367115974426, -0.6190961003303528, -0.145670086145401, -0.1860172152519226, 0.42586973309516907, -0.441806823015213, 0.5112844109535217, 0.17186813056468964, 1.114306092262268, -0.3799373507499695, 1.0802419185638428, 0.9747502207756042, -0.03428828343749046, -0.9469338059425354, -0.38715121150016785, -0.06594113260507584, -0.9766635298728943, 0.7373011708259583, 0.2417779117822647, -0.22277460992336273, 0.1485002338886261, -0.1406133770942688, -1.0560412406921387, 1.4661005735397339, -0.025550467893481255, -0.47239500284194946, 0.1371058076620102, -0.11022926867008209, 0.3868275582790375, -0.11324302852153778, 0.38387152552604675, 0.2772863805294037, 0.39701130986213684, 0.20921704173088074, -0.9306532144546509, -0.044600341469049454, -0.5496127009391785, -0.25183215737342834, 0.17208020389080048, -1.5817731618881226, 1.3729068040847778, -0.4148266613483429, 0.06969711184501648, -0.008049176074564457, 0.9581750631332397, 0.4082447588443756, 0.3243469297885895, 0.37336277961730957, 0.7141363620758057, 0.5877885222434998, -0.031847331672906876, 0.4214215874671936, -0.6098850965499878, 0.2707202136516571, 0.9831867814064026, -0.25853243470191956, 0.9617372751235962, 0.1521369218826294, -0.38547927141189575, 0.5243856310844421, 1.1465743780136108, -0.21041491627693176, 0.7046254873275757, -0.23532575368881226, -0.30579158663749695, -0.20263689756393433, 0.21403005719184875, -0.805076003074646, 0.05730272829532623, 0.15860898792743683, -0.1562170833349228, 0.010524686425924301, -0.656356155872345, 0.24111686646938324, -0.5983040928840637, -0.42698365449905396, 0.9763522744178772, 0.09214556217193604, -0.8701692819595337, 0.03433017060160637, 0.6382965445518494, 0.6970726847648621, -0.33833131194114685, 0.04227776452898979, -0.3110368847846985, 0.32911837100982666, -0.27065467834472656, -0.8077273964881897, -0.021423179656267166, -0.05508534982800484, -0.13739758729934692, 0.3228108286857605, 0.9274593591690063, -0.09536047279834747, -0.8425660729408264, 0.24110782146453857, 0.4401457607746124, 0.06575121730566025, -0.2601821720600128, -0.8675091862678528, -0.40335512161254883, 0.12566934525966644, -0.7052853107452393, 0.44638243317604065, 0.6435267329216003, 0.12143556028604507, 0.5928440690040588, 0.4434257447719574, 0.05220383033156395, 0.11294097453355789, -0.1629249006509781, 1.101419448852539, -0.5615202188491821, -0.6090853214263916, -0.6260968446731567, 0.42439594864845276, -0.2423783391714096, -0.6752383708953857, 0.5029682517051697, 0.7888076305389404, 0.8344862461090088, 0.020847942680120468, 0.6217761635780334, 0.06774953752756119, 0.12671159207820892, -0.4621806740760803, 0.7115798592567444, -0.5810412764549255, -0.07279839366674423, 0.18516428768634796, -0.8216824531555176, -0.06521382927894592, 0.42294833064079285, -0.059645529836416245, 0.2672886252403259, 0.5263110399246216, 0.7236466407775879, -0.13192597031593323, -0.03500613942742348, 0.00641779787838459, -0.22437024116516113, 0.04955606907606125, 0.6966258883476257, 0.4769383370876312, -0.49992460012435913, 0.3470950722694397, -0.3854777216911316, -0.33108285069465637, -0.7099115252494812, -0.3216782212257385, -1.1463617086410522, 0.07112471759319305, -0.17464600503444672, -0.15940004587173462, -0.18532635271549225, 0.8308885097503662, 0.8496428728103638, -1.0269935131072998, -0.25229576230049133, 0.0020929216407239437, 0.17018598318099976, -0.3273298144340515, -0.18673557043075562, 0.47203534841537476, -0.2767806649208069, -0.6190409660339355, 0.06140309199690819, 0.44414427876472473, -0.03401075676083565, -0.46555185317993164, -0.4941764771938324, 0.2608731985092163, 0.029710369184613228, 0.5362492799758911, -0.09658707678318024, -0.8316360712051392, -0.11443231999874115, 0.28910839557647705, -0.33380332589149475, 0.2925783395767212, 0.5337067246437073, -0.4057968258857727, 0.08660642057657242, 0.6175881028175354, 0.6792064309120178, 0.2858932316303253, 0.2950296103954315, 0.3047812879085541, -0.20904190838336945, 0.43396079540252686, -0.09581218659877777, 0.4003111720085144, 0.11391925811767578, -0.6644600629806519, 0.7206823825836182, 0.31800970435142517, -0.7749767899513245, -0.495116263628006, -0.11097154766321182, -1.3138484954833984, -0.03292875364422798, 1.22850501537323, -0.10632968693971634, 0.061285682022571564, -0.1956641972064972, -0.4056539237499237, 0.08909907937049866, -0.6128556132316589, 0.8699470162391663, 0.754237174987793, -0.17923615872859955, -0.003707106225192547, -0.6129353642463684, 0.31241217255592346, 0.631636917591095, -0.7144142389297485, -0.41167086362838745, 0.32800933718681335, 0.3853219449520111, -0.0646665021777153, 0.9706678986549377, -0.10357536375522614, 0.5569682121276855, 0.47350797057151794, -0.010891560465097427, -0.1653692126274109, -0.6164272427558899, -0.007637821603566408, 0.13239528238773346, 0.36599937081336975, -0.25111645460128784 ]
http://arxiv.org/abs/2405.17974v1
http://arxiv.org/pdf/2405.17974v1
Recent Trends in Personalized Dialogue Generation: A Review of Datasets, Methodologies, and Evaluations
2024-05-28T09:04:13
2024-05-28T09:04:13
Yi-Pei Chen, Noriki Nishida, Hideki Nakayama, Yuji Matsumoto
cs.CL
cs.CL, cs.AI
Enhancing user engagement through personalization in conversational agents has gained significance, especially with the advent of large language models that generate fluent responses. Personalized dialogue generation, however, is multifaceted and varies in its definition -- ranging from instilling a persona in the agent to capturing users' explicit and implicit cues. This paper seeks to systemically survey the recent landscape of personalized dialogue generation, including the datasets employed, methodologies developed, and evaluation metrics applied. Covering 22 datasets, we highlight benchmark datasets and newer ones enriched with additional features. We further analyze 17 seminal works from top conferences between 2021-2023 and identify five distinct types of problems. We also shed light on recent progress by LLMs in personalized dialogue generation. Our evaluation section offers a comprehensive summary of assessment facets and metrics utilized in these works. In conclusion, we discuss prevailing challenges and envision prospect directions for future research in personalized dialogue generation.
[ -0.7391602396965027, -0.6314730644226074, 0.5482890605926514, -0.015663644298911095, 0.34268590807914734, 0.6182714700698853, -0.11923938989639282, -0.18647317588329315, 0.0654243528842926, 0.5834949016571045, -0.7645099759101868, -0.5322157144546509, -0.05935676023364067, 0.26927343010902405, -0.046115048229694366, 0.9602938294410706, 0.34489762783050537, 0.01287783496081829, -0.41675686836242676, -0.07261920720338821, -0.7454663515090942, -0.6544868350028992, -0.4754101037979126, -0.410165935754776, 0.6389036178588867, 0.3618527352809906, 0.44906213879585266, 0.12026315182447433, 0.35485801100730896, 0.45150426030158997, -0.16148294508457184, 0.21742171049118042, -0.39593377709388733, 0.6332078576087952, 0.19279628992080688, -0.11735296994447708, -0.378971666097641, -0.036831408739089966, 0.6472620368003845, 0.8656136989593506, -0.06503012031316757, -0.0019183543045073748, -0.11387655884027481, 0.5342832803726196, -0.42064186930656433, 0.06651545315980911, -0.6265015602111816, 0.19615046679973602, -0.3371965289115906, -0.4202040135860443, -0.3375217020511627, -0.5065081119537354, 0.45415228605270386, -0.3226935863494873, 0.23603172600269318, 0.07934337109327316, 0.37603461742401123, -0.13181395828723907, -0.6461848020553589, -0.5971895456314087, -0.8313496112823486, 0.8977288007736206, -0.5264487266540527, 0.10634173452854156, -0.041902195662260056, 0.6689425110816956, -0.4987882375717163, -0.9469491839408875, -0.18249386548995972, -0.43540892004966736, 0.29358306527137756, 0.15566956996917725, -0.37572842836380005, -0.0726081132888794, 0.10027842968702316, 0.38938120007514954, -0.08654621988534927, 0.09123803675174713, 0.04041512310504913, -0.14730589091777802, 0.7425006628036499, 0.6832197904586792, 0.08943656831979752, -0.12258987128734589, -0.1157996878027916, -0.06043082848191261, -0.6484465003013611, 0.11392643302679062, 0.7338165044784546, 0.18340907990932465, 0.0020913872867822647, 0.20771251618862152, -0.5758165717124939, 0.676440417766571, 0.24401578307151794, -0.13659799098968506, 0.19395069777965546, -0.746293306350708, 0.07658043503761292, -0.10162349790334702, 0.8902407288551331, 0.5110278129577637, 0.1839568018913269, -0.14827251434326172, -0.099986732006073, -0.4929203689098358, 0.13586010038852692, -0.6705660820007324, -0.06134449690580368, 0.27458375692367554, -0.2350480556488037, -0.6542972326278687, 0.03361000865697861, -0.8000882863998413, -0.5162562131881714, -0.3345796763896942, -0.4212481677532196, 0.06320396810770035, 0.006536534521728754, -0.22071056067943573, -0.0396847203373909, 0.14298181235790253, 0.5531005263328552, -0.9669167399406433, 0.34465399384498596, 0.47253772616386414, 0.4704490005970001, -0.18539711833000183, 0.1899576485157013, -0.3157649040222168, -0.06467444449663162, -0.3768742084503174, 0.9307118654251099, -0.6001089811325073, -0.5540035963058472, 0.5243459939956665, -0.3934365212917328, 0.06946859508752823, -0.7813225984573364, 0.17210377752780914, -0.34032273292541504, 0.4918822944164276, -0.5530090928077698, -0.25655943155288696, 0.12066265195608139, 0.43055081367492676, -0.188019797205925, 0.6737807393074036, 0.24118399620056152, -0.5806591510772705, 0.3922896683216095, -0.6393874287605286, -0.02933531068265438, 0.4413382112979889, -0.5650668144226074, -0.2952628433704376, 0.09334687143564224, -0.031627655029296875, 0.44069981575012207, -0.7223161458969116, 0.4435855746269226, -0.2673273980617523, -0.03528042882680893, 0.5682954788208008, -0.27200034260749817, 0.34546133875846863, 0.5243049263954163, -0.1278669238090515, 0.19238685071468353, -0.6761377453804016, 0.1822613775730133, 0.16800132393836975, -0.14835788309574127, 0.20629821717739105, 0.02314068377017975, -0.00364872207865119, 0.14415569603443146, 0.40338635444641113, -0.5306112766265869, 0.008118322119116783, -0.4019762873649597, 0.5888766050338745, 0.8099865317344666, 0.5092990398406982, 0.31789398193359375, -0.35493192076683044, 0.6050437688827515, 0.13351717591285706, -0.060624849051237106, -0.8422231078147888, -0.4485628604888916, -0.4541926383972168, 0.1585434377193451, 0.08413923531770706, 0.3602786660194397, -0.3673948347568512, 0.5309603810310364, -0.13940587639808655, -0.5081786513328552, -0.1903252750635147, 0.3176337480545044, 0.44040822982788086, 0.5582286715507507, -0.12841208279132843, -0.6861253380775452, -0.41349872946739197, -0.8307706713676453, -0.16157041490077972, -0.08530135452747345, 0.009459758177399635, 0.8709181547164917, 0.03529518470168114, -0.4251556098461151, 1.2673723697662354, -0.5985803604125977, -0.011432906612753868, -0.41694095730781555, 0.19247159361839294, -0.23281846940517426, 0.2948291301727295, 0.39070749282836914, -0.5762984156608582, -0.6520587801933289, 0.277750164270401, -0.7614153623580933, -0.25530558824539185, -0.22066476941108704, 0.11166486144065857, -0.23175321519374847, 0.21711695194244385, -0.2589281499385834, 0.06137307733297348, 0.22960123419761658, -0.017878159880638123, 0.4469520151615143, 0.019582640379667282, 0.142286479473114, -1.188301682472229, -0.07897520810365677, 0.14965727925300598, -0.2395644634962082, -0.9933622479438782, -0.44524699449539185, -0.7191407680511475, -0.26926949620246887, -0.38733091950416565, 0.6749043464660645, -0.3427843749523163, -0.2142830193042755, -0.16276030242443085, 0.3915112614631653, -0.30792948603630066, 0.38122037053108215, -0.24730689823627472, 0.5316575169563293, 0.25805121660232544, -0.3662792444229126, 0.7099525332450867, 0.8079124689102173, -0.274754136800766, 0.5912641286849976, -0.5703203082084656, 0.7378073930740356, 0.13313111662864685, 0.45040664076805115, -0.9512930512428284, -0.5094274878501892, 0.24682724475860596, -0.20561610162258148, 0.020165950059890747, 0.16616079211235046, -0.34297430515289307, -0.1887723058462143, -0.49863865971565247, 0.21486333012580872, 0.42922863364219666, -0.3920303285121918, 0.19677448272705078, 0.3110508918762207, -0.6143016219139099, -0.12457310408353806, -0.05389925464987755, 0.41684409976005554, -0.3560754954814911, -0.902713418006897, 0.013060777448117733, -0.39448192715644836, -0.5848172307014465, -0.6918326020240784, 0.0896969810128212, 0.3251022696495056, 0.05034017935395241, 0.12034019827842712, -0.20829074084758759, 0.024778448045253754, -0.3199736177921295, 0.09769953787326813, -0.18297293782234192, 0.003740251762792468, 0.08104529976844788, 0.7517309188842773, -0.19308920204639435, -0.3131334185600281, -0.527911365032196, 0.39668673276901245, -0.04810277745127678, -0.12570002675056458, 0.13885320723056793, 0.5638198256492615, 0.07440663129091263, 0.11629781126976013, -0.7685598134994507, -0.221937358379364, -0.5183649063110352, 0.26029059290885925, -0.3779095411300659, -0.9806615710258484, 0.4953154921531677, -0.7063537836074829, 0.33903583884239197, -0.020761150866746902, 1.050126552581787, -0.15757304430007935, 1.3928722143173218, 0.40578263998031616, 0.37786605954170227, 0.7167420983314514, 0.031167274340987206, 0.22449861466884613, -0.9515733122825623, -0.5555046200752258, -0.46089208126068115, -0.04226187616586685, -0.7700754404067993, -0.01878344640135765, 0.28472980856895447, -0.34285756945610046, -0.11201060563325882, 0.02420332469046116, -0.2998473048210144, -0.07906907796859741, 0.41135668754577637, -0.3371598720550537, 0.27039989829063416, 0.058651477098464966, 0.032563623040914536, -0.3559063971042633, -0.39132165908813477, -0.8699852824211121, 1.0991919040679932, 0.35712409019470215, 0.5277324318885803, 0.14701662957668304, 0.7278358340263367, 0.5587128400802612, 0.1661940962076187, -0.5176485180854797, 0.5435799956321716, 0.34229588508605957, -0.3870619237422943, -0.06497013568878174, -0.24034062027931213, -1.271140217781067, 0.2820289433002472, -0.07880914211273193, -1.042715072631836, 0.11862293630838394, 0.2345026433467865, -0.31835657358169556, -0.37538641691207886, -0.7310355305671692, 0.6629027724266052, -0.07083507627248764, -0.3587040901184082, 0.07957779616117477, -0.7958720922470093, 0.46911630034446716, -0.20133145153522491, -0.16108515858650208, -0.2792385220527649, 0.18291251361370087, 0.5590705871582031, -0.3135964870452881, 0.8907787799835205, -0.3083725869655609, -0.13965833187103271, 0.40326184034347534, -0.27358412742614746, 0.4770588278770447, 0.1113467738032341, 0.15587399899959564, -0.30693820118904114, -0.013425127603113651, -0.25691306591033936, -0.4680420756340027, 0.7186629772186279, -0.42836180329322815, -0.7070716023445129, -0.1894581913948059, -0.3696356415748596, -0.6638820767402649, -0.0676303505897522, 0.2900831699371338, 0.5052434802055359, -0.8303409814834595, 0.23426048457622528, 0.551131010055542, -0.3121393620967865, 0.44171494245529175, 0.17785927653312683, 0.02678377367556095, -0.6017594933509827, 1.0806913375854492, -0.19500979781150818, 0.18740074336528778, 0.13508106768131256, 0.26936250925064087, -0.22051379084587097, -0.6217556595802307, -0.35791119933128357, -0.04779547452926636, -0.5736824870109558, -0.19668439030647278, -0.4811020791530609, -0.008850020356476307, -0.6088795065879822, -0.21670778095722198, -0.2120768129825592, -0.06066053733229637, -0.19421324133872986, 0.09041263908147812, -0.1343521624803543, 1.0200951099395752, 0.38331037759780884, 0.5788683295249939, -0.6172972321510315, -0.003191823372617364, 0.3541039824485779, -0.17460958659648895, -0.07599712908267975, -0.095387302339077, -0.23450371623039246, -0.07392362505197525, -0.964040219783783, -0.8373386263847351, 0.3046512007713318, 0.15627293288707733, 0.7324823141098022, 0.596585214138031, -0.22177885472774506, 0.3768376410007477, -0.42097508907318115, 1.0245003700256348, 0.3043549656867981, -0.5891280174255371, 0.6343613862991333, -0.5309779644012451, 0.3972058594226837, 0.42199206352233887, -0.007769166491925716, -0.7277380228042603, -0.24833834171295166, -0.7235201001167297, -0.6098013520240784, 0.653439998626709, 0.26301392912864685, 0.5940980911254883, -0.01744329184293747, 0.2979079484939575, 0.25256386399269104, 0.6847459077835083, -0.18443825840950012, -0.20668692886829376, 0.03554527461528778, -0.26074618101119995, -0.1715073436498642, -0.19570213556289673, -0.32302194833755493, 0.10348303616046906, 0.15455931425094604, -0.436453253030777, 0.4196116626262665, -0.1377432942390442, 0.2249028980731964, 0.004891922231763601, 0.4254074692726135, 0.8284085392951965, 0.55898118019104, -0.130295991897583, -0.5621156096458435, 0.018738437443971634, -0.14023809134960175, 0.12563268840312958, -0.021337898448109627, -0.2400638610124588, -0.13495120406150818, 0.14803236722946167, 0.8445069789886475, 0.18369553983211517, -0.7214763760566711, 0.5545796751976013, -0.17470616102218628, -0.22205568850040436, -0.7090673446655273, 0.10459499061107635, -0.18331143260002136, 0.23581624031066895, 0.1810280680656433, -0.05807235836982727, 0.3046940863132477, -0.5749677419662476, -0.20283104479312897, 0.6043060421943665, -0.37884721159935, -0.7555484175682068, 0.4847586154937744, 0.7429081797599792, -0.3486783504486084, 0.3730747699737549, 0.0017607742920517921, -0.10369155555963516, 0.07961095124483109, 0.25521114468574524, 1.1180529594421387, -0.1974526196718216, 0.13938604295253754, 0.0916299819946289, -0.3138493597507477, 0.47898533940315247, -0.013585046865046024, -0.6178669333457947, -0.9253871440887451, 0.10841343551874161, -0.33367234468460083, -0.7295392751693726, 0.22103285789489746, -0.5653115510940552, 0.0987708643078804, -0.43771612644195557, -0.48145827651023865, 0.06845615804195404, 0.3735722303390503, -0.7983158230781555, 0.004657113458961248, 0.13917168974876404, 0.45006415247917175, -0.5080340504646301, 0.41689929366111755, 0.6820664405822754, -0.18157389760017395, -0.04205125570297241, -0.13338389992713928, 0.36895552277565, -0.4451092779636383, 0.4518503248691559, -0.10345757007598877, -0.1877942830324173, -0.013646489009261131, -0.6488234996795654, -0.3700866401195526, 1.2115375995635986, 0.15066370368003845, -0.3805157542228699, -0.1942419856786728, 0.3434675335884094, 0.5571733713150024, -0.9401894807815552, 0.4729832708835602, 0.979927122592926, 0.3615274727344513, 0.20868225395679474, -0.5068119764328003, -0.3128316402435303, -0.32417207956314087, 0.47232332825660706, -0.05349312350153923, -0.9554016590118408, 0.26613497734069824, -0.017847424373030663, -0.09546148777008057, 0.5629774332046509, 0.6160747408866882, 0.3133729100227356, 0.5864225625991821, 0.3595885932445526, 0.00453908322378993, 0.6133912801742554, -0.23489752411842346, 1.03656804561615, -0.17942564189434052, -0.07360851019620895, 0.9242223501205444, -0.5484933257102966, 0.3740997612476349, 0.32627591490745544, -0.12309419363737106, 0.43697309494018555, 0.7514726519584656, -0.17279203236103058, 0.45649075508117676, 0.346113920211792, -0.6134818196296692, -0.22525964677333832, -0.41594693064689636, -0.2513791620731354, 0.43856215476989746, 0.35702067613601685, -0.36772191524505615, -0.16409236192703247, 0.18719886243343353, -0.01771959848701954, 0.16551098227500916, 0.23503677546977997, 1.3230233192443848, -0.06573285907506943, -0.7547476291656494, 0.2092892974615097, -0.10554639995098114, 0.4145205616950989, -0.5569556355476379, -0.12457827478647232, -0.43223610520362854, 0.01684674061834812, -0.08983258157968521, -0.4938738942146301, -0.3395845592021942, 0.15366841852664948, 0.07816872000694275, -0.573127269744873, 0.7168193459510803, -0.14546266198158264, 0.02995227463543415, -0.03231566771864891, 0.7545604109764099, 0.35900577902793884, 0.1570439636707306, -0.6000219583511353, 0.21881484985351562, 0.385754257440567, -0.4270079433917999, 0.5258676409721375, 0.218434676527977, -0.12794707715511322, 0.8206773400306702, 0.6250730752944946, -0.2143765538930893, 0.25133422017097473, 0.3951324224472046, 0.9003279805183411, -0.7811867594718933, -0.15238085389137268, -0.16622839868068695, 0.5881341695785522, -0.08741135150194168, -0.7105469703674316, 0.7889490127563477, 0.5159547924995422, 0.5762462019920349, 0.011915987357497215, 0.957578182220459, 0.08818783611059189, 0.5183551907539368, -0.2042311728000641, 0.13696196675300598, -0.08190271258354187, 0.3522762060165405, -0.3573785126209259, -0.9375598430633545, 0.16577056050300598, 0.07630118727684021, -0.1960865557193756, 0.5743741989135742, 0.18216204643249512, 0.48066461086273193, 0.4290945827960968, 0.046733759343624115, 0.514265239238739, -0.05387428030371666, 0.7672559022903442, 0.11729169636964798, 1.389544129371643, -0.19839675724506378, 0.30664902925491333, -0.2376684844493866, -0.06929348409175873, -0.4246840476989746, -0.6383534073829651, -0.8175281882286072, -0.8228455185890198, -0.4030436873435974, 0.005788951646536589, -0.019243089482188225, 0.851664662361145, 0.571565568447113, -0.6515126824378967, -0.3887922763824463, -0.1913404017686844, -0.2148524820804596, 0.18635067343711853, -0.19477730989456177, -0.25149255990982056, -0.7216638922691345, -1.1406114101409912, 0.5763306617736816, 0.26043498516082764, 0.2323152720928192, -0.5480771660804749, -0.27620309591293335, 0.19458985328674316, 0.19542430341243744, 0.6268472075462341, 0.5506328344345093, -0.7062750458717346, -0.006059168837964535, -0.09861908853054047, -0.07083602994680405, 0.3069414794445038, 1.092557668685913, -0.7390708327293396, 0.6667407751083374, 0.408273309469223, 0.4025726616382599, 0.619903564453125, 0.33172106742858887, 0.9521408081054688, -0.841101884841919, -0.11157495528459549, 0.35409101843833923, 0.09344010800123215, 0.7133503556251526, -0.19285333156585693, 0.2755487859249115, 0.18077579140663147, -0.6593146324157715, -0.9057552218437195, 0.47249603271484375, -0.9416192770004272, 0.3214918375015259, 0.737246572971344, -0.11235470324754715, 0.19490550458431244, -0.26183804869651794, -0.3816596269607544, -0.23629193007946014, -0.5946889519691467, 0.4438888132572174, 0.6732734441757202, -0.6681002378463745, -0.031106719747185707, -0.43274468183517456, 0.6714501976966858, 0.4284701347351074, -1.0510166883468628, -0.030023688450455666, 0.6632254719734192, 0.009586730040609837, 0.3381418287754059, 0.6727281212806702, -0.06150996312499046, 0.19993582367897034, -0.00881665013730526, -0.11255912482738495, 0.15252242982387543, -0.2694595754146576, -0.3054654002189636, 0.16856028139591217, 0.40038299560546875, 0.13965988159179688 ]
http://arxiv.org/abs/2405.17969v1
http://arxiv.org/pdf/2405.17969v1
Knowledge Circuits in Pretrained Transformers
2024-05-28T08:56:33
2024-05-28T08:56:33
Yunzhi Yao, Ningyu Zhang, Zekun Xi, Mengru Wang, Ziwen Xu, Shumin Deng, Huajun Chen
cs.CL
cs.CL, cs.AI, cs.CV, cs.IR, cs.LG
The remarkable capabilities of modern large language models are rooted in their vast repositories of knowledge encoded within their parameters, enabling them to perceive the world and engage in reasoning. The inner workings of how these models store knowledge have long been a subject of intense interest and investigation among researchers. To date, most studies have concentrated on isolated components within these models, such as the Multilayer Perceptrons and attention head. In this paper, we delve into the computation graph of the language model to uncover the knowledge circuits that are instrumental in articulating specific knowledge. The experiments, conducted with GPT2 and TinyLLAMA, has allowed us to observe how certain information heads, relation heads, and Multilayer Perceptrons collaboratively encode knowledge within the model. Moreover, we evaluate the impact of current knowledge editing techniques on these knowledge circuits, providing deeper insights into the functioning and constraints of these editing methodologies. Finally, we utilize knowledge circuits to analyze and interpret language model behaviors such as hallucinations and in-context learning. We believe the knowledge circuit holds potential for advancing our understanding of Transformers and guiding the improved design of knowledge editing. Code and data are available in https://github.com/zjunlp/KnowledgeCircuits.
[ -0.6088459491729736, -0.6473017334938049, 0.8930937647819519, -0.24935400485992432, 0.24233482778072357, 0.011022999882698059, -0.40733787417411804, -0.33248791098594666, -0.03406566008925438, 0.6601864695549011, -0.6347517371177673, -0.2173498272895813, -0.5558711886405945, -0.26547980308532715, -0.5594404339790344, 0.9965700507164001, 0.026138002052903175, -0.20871838927268982, -0.23543547093868256, 0.08362868428230286, -0.35174307227134705, -0.7465546131134033, -0.2546256482601166, -0.6370540857315063, 0.4530998468399048, 0.3390364646911621, 0.81565922498703, 0.19109421968460083, 0.46007421612739563, 0.3396431505680084, -0.1264229714870453, 0.002054888755083084, -0.3430754244327545, -0.011212768964469433, -0.4017673134803772, -0.4683252274990082, -0.49792081117630005, 0.06493785232305527, 0.4919460415840149, 0.6683852076530457, -0.008603944443166256, 0.2155098021030426, -0.003270102897658944, 0.43872150778770447, -0.5301252603530884, 0.30743640661239624, -0.7368304133415222, 0.18697240948677063, -0.30061373114585876, -0.20233044028282166, -0.726272702217102, -0.17773394286632538, 0.16351188719272614, -0.5853315591812134, 0.22975276410579681, -0.1178070530295372, 0.6640587449073792, 0.3963281810283661, -0.20098701119422913, -0.2548508942127228, -0.86654132604599, 0.45152387022972107, -0.13775818049907684, 0.7709115147590637, 0.2932336628437042, 0.34190383553504944, 0.004844631999731064, -1.3289812803268433, -0.8814194798469543, 0.022500216960906982, -0.39644747972488403, 0.1107039526104927, -0.32326632738113403, 0.27637800574302673, 0.5617912411689758, 0.22959525883197784, -0.19675208628177643, -0.08713747560977936, -0.4334428310394287, -0.30497196316719055, 0.14090490341186523, 0.05205962061882019, 0.36364391446113586, -0.28354305028915405, 0.026006517931818962, -0.2690295875072479, -0.6640921235084534, -0.0418551079928875, 0.428124338388443, -0.20938391983509064, 0.08520820736885071, 0.5091983079910278, -0.019229020923376083, 0.7586727142333984, 0.1377875953912735, 0.03499149531126022, 0.14684580266475677, -0.15081509947776794, -0.23428355157375336, -0.020689409226179123, 0.8203682899475098, -0.01661549136042595, 0.680717408657074, -0.5170238018035889, -0.10351632535457611, -0.07595712691545486, 0.7743214964866638, -0.6334220170974731, -0.7374764680862427, -0.21838673949241638, -0.24212956428527832, -0.22809027135372162, 0.01957295462489128, -0.5303389430046082, -0.36891376972198486, -0.4509243369102478, 0.684234619140625, -0.3647071421146393, -0.2301899492740631, 0.06669358164072037, -0.28556397557258606, -0.03884651139378548, 0.09030791372060776, -1.1773096323013306, 0.25282853841781616, 0.4652825593948364, 0.4439144432544708, 0.13416622579097748, -0.4866689443588257, -0.004063442349433899, 0.23521265387535095, -0.02959933876991272, 0.8580337762832642, -0.6263650059700012, -0.04555647075176239, -0.2375723421573639, -0.012362630106508732, -0.30005380511283875, -0.4915850758552551, 0.3022584915161133, -1.0261553525924683, 0.01960102841258049, -0.3580872118473053, -0.4876477122306824, -0.11576913297176361, -0.12261689454317093, -0.6840961575508118, 0.6019459366798401, 0.33271175622940063, -1.069838285446167, -0.018245963379740715, -0.7332865595817566, -0.536268949508667, -0.29158926010131836, -0.19235104322433472, -0.1621050238609314, 0.24820327758789062, 0.32513225078582764, 0.2742892801761627, -0.17368577420711517, -0.08738984912633896, 0.07472272217273712, -0.2628236413002014, 0.539447009563446, -0.1870587170124054, 0.6838435530662537, 0.003500185441225767, -0.31535398960113525, 0.36769458651542664, -0.43174251914024353, -0.08758816868066788, 0.11808344721794128, 0.22264158725738525, -0.18749387562274933, -0.13896584510803223, -0.32572633028030396, 0.4162393808364868, 0.13576333224773407, -0.33936968445777893, 0.28493037819862366, -0.17828771471977234, 0.7536376118659973, 0.8131459355354309, 0.22596292197704315, 0.5695554614067078, 0.08615390956401825, 0.5185284614562988, 0.08682744204998016, 0.41074076294898987, -0.1332259476184845, -0.5258124470710754, -0.9486620426177979, 0.46497905254364014, 0.32622867822647095, 0.2877896726131439, -1.0258750915527344, 0.28657791018486023, -0.20156709849834442, -0.547218918800354, -0.5232865810394287, 0.09947820752859116, 0.1225007176399231, 0.6692193150520325, 0.5741275548934937, -0.2403942197561264, -0.3601355254650116, -0.9320865869522095, -0.21190403401851654, -0.0668720006942749, -0.1751563400030136, 0.0596182718873024, 0.3446211516857147, -0.3675720691680908, 1.0980020761489868, -0.6477027535438538, -0.26185786724090576, -0.39844444394111633, -0.0786883682012558, 0.02452804520726204, 0.3957776427268982, 0.5242530107498169, -0.44242215156555176, -0.0464346706867218, -0.10085512697696686, -0.913917601108551, 0.0028450172394514084, -0.06684163957834244, -0.36040693521499634, -0.33046749234199524, 0.6276064515113831, -0.8998128175735474, 0.35300788283348083, 0.5921043157577515, -0.1413464993238449, 0.5883095860481262, -0.1062103807926178, 0.04501304775476456, -0.5373066663742065, -0.09786494076251984, -0.4957943856716156, -0.01523174624890089, -0.7792908549308777, 0.06430014222860336, 0.3895411193370819, 0.08844544738531113, -0.26607421040534973, 0.25465595722198486, -0.1937248706817627, -0.12290012091398239, -0.20238763093948364, 0.2953043580055237, 0.02617543190717697, 0.8067183494567871, 0.14917238056659698, 0.8473057150840759, 0.4643193483352661, -0.5243202447891235, 0.23792968690395355, 0.46472033858299255, -0.6058177351951599, 0.10589027404785156, -0.6155338883399963, 0.7172868847846985, -0.11492807418107986, -0.029171619564294815, -0.5328668355941772, -0.21328122913837433, 0.18666696548461914, -0.3256801962852478, 0.28310683369636536, 0.016376420855522156, -0.8685169219970703, -0.5651118159294128, 0.15967966616153717, 0.5558823943138123, 0.5925019383430481, -0.5391685962677002, 0.7030486464500427, 0.8293784856796265, 0.0445028580725193, -0.1637355387210846, -0.7352377772331238, -0.22233840823173523, 0.20663245022296906, -0.6138981580734253, 0.2455533742904663, 0.0999559536576271, -0.21021340787410736, 0.00035200011916458607, -0.09152182191610336, -0.13223019242286682, -0.10156194120645523, 0.284891277551651, 0.040649376809597015, -0.10040765255689621, 0.45951151847839355, 0.2844076454639435, -0.35431307554244995, 0.3099357485771179, -0.5882209539413452, 0.8336365818977356, -0.1559082269668579, -0.5372512340545654, -0.5522584319114685, -0.20664788782596588, 0.5854948163032532, -0.5863891243934631, 0.7544052600860596, 0.5276396870613098, -0.4454876780509949, -0.15953415632247925, -0.6271976828575134, -0.46781226992607117, -0.5447810888290405, 0.449560284614563, -0.4354519844055176, -1.0203673839569092, 0.4659365117549896, -0.10654005408287048, -0.36059755086898804, 0.6476048231124878, 0.5870530605316162, 0.05213121697306633, 0.7982736229896545, 0.6627439260482788, 0.010250556282699108, 0.40804535150527954, -0.41171473264694214, 0.4970654845237732, -1.0197216272354126, -0.29573529958724976, -0.2923264801502228, -0.2926684021949768, -0.25356703996658325, -0.48925256729125977, 0.6226135492324829, 0.19403637945652008, -0.2555394470691681, 0.4367494583129883, -0.5386841893196106, 0.8100289702415466, 0.5429525375366211, 0.23053044080734253, 0.41482028365135193, -0.08596954494714737, -0.36492919921875, -0.1766541749238968, -0.9103330373764038, -0.3953898847103119, 1.2044106721878052, 0.37147119641304016, 0.6439945101737976, -0.2150292694568634, 0.26485633850097656, 0.042376045137643814, 0.3624626696109772, -0.7178264260292053, 0.403611421585083, -0.0006194835295900702, -0.5541371703147888, -0.21973448991775513, -0.3310791850090027, -0.6032742261886597, -0.036395225673913956, -0.02342279441654682, -0.8437637090682983, 0.07525475323200226, 0.2605550289154053, -0.5207253694534302, 0.666258692741394, -0.8830804228782654, 1.08353590965271, -0.280106782913208, -0.19007249176502228, -0.4256651997566223, -0.5912661552429199, 0.4003911316394806, -0.1793857216835022, 0.08583423495292664, 0.5963318347930908, 0.6209815740585327, 0.8536048531532288, -0.3006061613559723, 0.5552250146865845, -0.09591400623321533, -0.16183927655220032, 0.5147534608840942, 0.10681784152984619, 0.3352735638618469, 0.022990703582763672, 0.10427983850240707, 0.3114248514175415, -0.26982519030570984, 0.07644528150558472, -0.7311418056488037, 0.5268850922584534, -0.9929983615875244, -0.551242470741272, -0.001123518217355013, -0.6338009834289551, -0.4852963387966156, 0.28693968057632446, 0.43491676449775696, 0.4110007584095001, 0.14567556977272034, -0.0026942077092826366, 0.9237167835235596, -0.41436171531677246, 0.10158570855855942, 0.16355584561824799, -0.45926377177238464, -0.0607135035097599, 0.8403460383415222, 0.22385434806346893, 0.35338282585144043, 0.39255043864250183, -0.0637311190366745, -0.12430611252784729, -0.3949495553970337, -0.23691734671592712, 0.21607397496700287, -1.065636396408081, -0.07198642194271088, -1.0419880151748657, -0.685009241104126, -0.3901708424091339, 0.1258694976568222, -0.5763334035873413, -0.5686619281768799, 0.04183865338563919, -0.3135121464729309, 0.13765999674797058, 1.179307460784912, 0.0609777569770813, 0.5692105293273926, -0.7138481140136719, 0.5782552361488342, 0.8786579966545105, 0.42263615131378174, 0.3859151005744934, -0.4463455080986023, -0.5345020294189453, -0.10275165736675262, -0.4768672585487366, -0.9223089814186096, -0.07671698927879333, -0.25161510705947876, 0.5375656485557556, 0.422993004322052, -0.14378830790519714, 0.6815991401672363, -0.651757538318634, 0.6280942559242249, -0.024785801768302917, -1.2332813739776611, 0.49603989720344543, 0.037731751799583435, 0.41135603189468384, 0.43927231431007385, 0.040668223053216934, -0.5887508392333984, -0.5851383209228516, -0.6954938769340515, -0.43692559003829956, 0.9081971049308777, 0.3997858762741089, 0.06874404847621918, 0.09273190796375275, 0.32119783759117126, 0.007139947731047869, 0.4106263518333435, -0.5030369758605957, -0.2679198384284973, -0.507017970085144, -0.12006434798240662, 0.11257844418287277, -0.2827112078666687, -0.0427706353366375, -0.6183193922042847, 0.3199326992034912, 0.18416355550289154, 0.6236576437950134, -0.009370449930429459, -0.5146687030792236, -0.09261897206306458, 0.19344837963581085, 0.45573365688323975, 0.8590149879455566, 0.0830310583114624, 0.3297516107559204, 0.15110217034816742, -0.6776074767112732, -0.08662997931241989, -0.1232011690735817, -0.1856335550546646, -0.17842040956020355, 0.4394282102584839, 0.9464617967605591, 0.18839825689792633, -0.4527512192726135, 0.43443384766578674, -0.310044527053833, -0.0354536697268486, -0.5325542092323303, 0.3360746502876282, 0.2263302505016327, 0.3483472466468811, 0.19329573214054108, 0.49295875430107117, -0.017767921090126038, -0.41460391879081726, 0.2618718147277832, 0.1681775599718094, -0.5187340378761292, -0.7358589768409729, 0.7783953547477722, -0.032395705580711365, -0.24932798743247986, 1.0054477453231812, -0.03753964602947235, -0.9409364461898804, 0.3077125549316406, 0.29753080010414124, 0.7979135513305664, -0.17166994512081146, 0.09945012629032135, 0.17000693082809448, 0.714903712272644, 0.14718469977378845, -0.27906569838523865, -0.349506676197052, -1.070736050605774, -0.42792779207229614, -0.682734489440918, -0.3496497571468353, 0.18770219385623932, -0.5422707796096802, 0.09069058299064636, -0.464880108833313, -0.1971472054719925, 0.028879666700959206, -0.45848900079727173, -1.0562974214553833, 0.024058334529399872, 0.11033803224563599, 0.8236997723579407, -0.7028600573539734, 1.328893780708313, 0.5529540181159973, -0.3972923159599304, -1.0592782497406006, 0.1745641529560089, -0.2881437838077545, -0.766390860080719, 0.7857106924057007, 0.13859964907169342, -0.20772774517536163, 0.3078056275844574, -0.3778766095638275, -0.6305148005485535, 0.9065155386924744, 0.528531551361084, -0.5988746881484985, -0.30288222432136536, 0.26337721943855286, 0.6292543411254883, -0.08066249638795853, 0.5136129856109619, 1.0464190244674683, 0.6264352202415466, -0.11949140578508377, -0.9925276637077332, -0.20710833370685577, -0.27877259254455566, -0.34370720386505127, 0.3040814697742462, -0.4548213481903076, 0.9719825983047485, -0.16817660629749298, -0.13143455982208252, -0.18841375410556793, 0.5313183069229126, -0.09706561267375946, -0.13124796748161316, 0.3609793186187744, 0.6612508296966553, 0.7503491044044495, -0.20710888504981995, 1.0626676082611084, -0.6140377521514893, 0.3789401948451996, 1.0875824689865112, -0.032993607223033905, 0.4565756916999817, 0.5534623265266418, -0.16127653419971466, 0.6766376495361328, 0.06058822572231293, 0.1296430230140686, 0.46669358015060425, 0.008527611382305622, 0.029582533985376358, -0.4220779836177826, 0.1853153109550476, -0.4025685787200928, 0.40733179450035095, 0.4557799696922302, -0.44011104106903076, 0.09521356225013733, 0.24688982963562012, -0.030125988647341728, -0.18165244162082672, -0.27338340878486633, 0.7208419442176819, 0.0965268611907959, -0.7059566378593445, 0.18008828163146973, -0.06921001523733139, 0.2671051621437073, -0.6388689875602722, 0.06805205345153809, 0.02280459553003311, 0.3648126721382141, -0.2299385815858841, -0.9395098686218262, 0.3915467858314514, -0.015338350087404251, -0.16481173038482666, -0.4315429925918579, 0.9396952390670776, -0.2183564454317093, -0.29140567779541016, 0.37475550174713135, 0.37365099787712097, -0.16591252386569977, -0.47216537594795227, -0.19297417998313904, 0.0002128214982803911, -0.03469442203640938, -0.4324948489665985, 0.2366241067647934, 0.5767881870269775, 0.1103474348783493, 0.3925419747829437, 0.3200279772281647, 0.12299398332834244, 0.27467840909957886, 0.36768364906311035, 1.1022858619689941, -0.7007442712783813, -0.409170001745224, -0.6622461080551147, 0.6026936173439026, 0.04427468776702881, -0.15124337375164032, 0.7957224249839783, 0.1982855647802353, 1.1295037269592285, -0.37853580713272095, 0.8293384909629822, -0.014488841407001019, 0.18209707736968994, -0.7060133218765259, 1.2006608247756958, -0.22968390583992004, 0.15236607193946838, -0.3847021758556366, -0.9520978927612305, -0.17228566110134125, 0.7630261778831482, -0.5107625126838684, -0.00639935489743948, 1.0392515659332275, 0.6649041175842285, -0.13788273930549622, 0.4265908896923065, 0.1686832755804062, 0.549470841884613, 0.24392199516296387, 0.6494541168212891, 1.0168311595916748, -0.4543438255786896, 0.44058170914649963, -0.6507681608200073, -0.008866200223565102, 0.26893308758735657, -0.32880815863609314, -1.1229674816131592, -0.6456753015518188, -0.012232877314090729, -0.07173790782690048, -0.16385164856910706, 0.5414993762969971, 0.5488442182540894, -0.7940779328346252, -0.23163889348506927, -0.32944414019584656, 0.3174781799316406, -0.11039641499519348, -0.19349364936351776, 0.46968087553977966, -0.41685277223587036, -0.3505575656890869, 0.2403581589460373, 0.4286181330680847, -0.1611286699771881, -0.3451129198074341, -0.05826674401760101, 0.14770692586898804, -0.24700210988521576, 0.6799835562705994, -0.10387622565031052, -0.44247928261756897, -0.5342578291893005, 0.15125249326229095, 0.14963968098163605, -0.017366336658596992, 1.2123225927352905, -1.0588985681533813, 0.5740469098091125, 0.42135927081108093, 0.49284836649894714, 0.5900780558586121, -0.31116995215415955, 0.48804154992103577, -0.6471501588821411, 0.396625816822052, 0.14821919798851013, 0.32832077145576477, 0.2958720326423645, -0.08833868056535721, 0.23877395689487457, 0.32206815481185913, -0.6964690089225769, -0.5625413656234741, 0.3438194990158081, -0.711846649646759, -0.06583071500062943, 0.7820987105369568, 0.06447229534387589, -0.11317933350801468, -0.0281060803681612, -0.09186027199029922, 0.5506365299224854, 0.14444059133529663, 0.8248193264007568, 0.7967178225517273, -0.19345828890800476, -0.318685919046402, -0.6696209907531738, 0.6053653955459595, 0.21288123726844788, -0.701525866985321, -0.05605999380350113, 0.1806260645389557, 0.12204203009605408, 0.48884862661361694, 0.4799514412879944, -0.12219591438770294, 0.23781301081180573, -0.12618416547775269, 0.21984843909740448, -0.14352145791053772, -0.7389026880264282, 0.04328924044966698, 0.4260551929473877, 0.04319923743605614, 0.2082601636648178 ]
http://arxiv.org/abs/2405.17964v1
http://arxiv.org/pdf/2405.17964v1
Transformer and Hybrid Deep Learning Based Models for Machine-Generated Text Detection
2024-05-28T08:48:08
2024-05-28T08:48:08
Teodor-George Marchitan, Claudiu Creanga, Liviu P. Dinu
cs.CL
cs.CL
This paper describes the approach of the UniBuc - NLP team in tackling the SemEval 2024 Task 8: Multigenerator, Multidomain, and Multilingual Black-Box Machine-Generated Text Detection. We explored transformer-based and hybrid deep learning architectures. For subtask B, our transformer-based model achieved a strong \textbf{second-place} out of $77$ teams with an accuracy of \textbf{86.95\%}, demonstrating the architecture's suitability for this task. However, our models showed overfitting in subtask A which could potentially be fixed with less fine-tunning and increasing maximum sequence length. For subtask C (token-level classification), our hybrid model overfit during training, hindering its ability to detect transitions between human and machine-generated text.
[ -0.3535750210285187, -0.5320677161216736, 0.3978327214717865, 0.07956106215715408, -0.31424811482429504, 0.5490378737449646, 0.056700728833675385, -0.6289452314376831, 0.06291458755731583, 0.6805889010429382, -0.6126604080200195, -0.40835681557655334, -0.6347293257713318, 0.39925724267959595, -0.4424268901348114, 1.0446696281433105, -0.0219372920691967, -0.25118231773376465, -0.08402524143457413, -0.05672759935259819, -0.620917022228241, -0.6078588962554932, -0.5342819094657898, -0.6072827577590942, 0.2920471727848053, 0.3688686788082123, 0.2933986783027649, 0.059649400413036346, 0.40752947330474854, 0.31961122155189514, -0.02968078851699829, 0.35774070024490356, -0.3000275790691376, 0.13471710681915283, -0.29103532433509827, -0.3948379456996918, -0.2699543833732605, -0.18812529742717743, 0.49155569076538086, 0.3642781972885132, 0.15039785206317902, 0.03658151626586914, 0.07917386293411255, 0.4612990617752075, -0.5705803632736206, -0.04781583696603775, -0.7287117838859558, 0.15065857768058777, -0.2451602965593338, -0.22848327457904816, -0.7173386216163635, 0.4926719069480896, -0.05358486995100975, -0.317106693983078, 0.6025363206863403, 0.1838073879480362, 0.7795067429542542, 0.4314066469669342, -0.7642896771430969, -0.16146637499332428, -0.7549821138381958, 0.8611361384391785, -0.7367713451385498, 0.44351908564567566, 0.18922016024589539, 0.10833358019590378, -0.0791514590382576, -0.7500666975975037, -0.5630394816398621, 0.12916547060012817, -0.09750790894031525, 0.4166370928287506, -0.2621411085128784, -0.025335904210805893, 0.2994658648967743, 0.42115849256515503, -0.659548819065094, 0.441302090883255, -0.42619621753692627, -0.4392317235469818, 0.6229139566421509, 0.31775084137916565, 0.39790475368499756, -0.3382324278354645, -0.446817547082901, 0.25486868619918823, -0.37078380584716797, 0.04491988196969032, 0.4089747369289398, 0.12645679712295532, 0.03483227267861366, 0.4612932503223419, -0.24407605826854706, 0.28829270601272583, 0.09736045449972153, 0.06831935793161392, 0.4273054003715515, -0.6304888725280762, -0.18485333025455475, 0.05732216313481331, 0.9808276295661926, 0.12328492105007172, 0.034754812717437744, -0.12303613126277924, -0.3835206627845764, 0.4112454652786255, 0.46131545305252075, -0.6984292268753052, -0.46395620703697205, 0.11835596710443497, -0.6414335370063782, -0.48051702976226807, 0.02653341181576252, -0.7778788805007935, -0.5086961388587952, -0.24915876984596252, 0.37497377395629883, -0.28929007053375244, -0.3610483705997467, 0.20517782866954803, -0.10428272187709808, 0.1833571046590805, 0.28771576285362244, -0.7860978245735168, 0.15740954875946045, 0.5170972943305969, 0.6576886177062988, -0.5448167324066162, -0.3333266079425812, -0.4239949882030487, -0.11594266444444656, -0.059276364743709564, 1.1274185180664062, -0.35959988832473755, -0.3269256055355072, -0.0772152841091156, 0.33435937762260437, -0.2584030032157898, -0.4973088204860687, 0.8292822241783142, -0.4434593617916107, 0.40901196002960205, -0.0501449778676033, -0.5203617811203003, -0.3191673755645752, 0.10673557221889496, -0.8245653510093689, 1.3059992790222168, -0.0014234371483325958, -0.9151964783668518, 0.5661463737487793, -0.765410304069519, -0.7889072299003601, 0.5022044777870178, -0.03256750479340553, -0.8612511157989502, 0.04669199511408806, 0.42944827675819397, 0.6651755571365356, -0.23641608655452728, 0.45264947414398193, 0.057205818593502045, -0.364059716463089, 0.08874399214982986, -0.5962314605712891, 0.8278508186340332, 0.06509139388799667, -0.721032440662384, 0.2623441815376282, -0.7630977630615234, -0.2079838365316391, 0.19617557525634766, -0.6171307563781738, -0.25973066687583923, -0.18717040121555328, 0.3980434536933899, 0.3537347614765167, 0.26839083433151245, -0.8844597339630127, -0.06515669822692871, -0.3438612222671509, 0.5400657653808594, 0.5529438853263855, -0.0643589049577713, 0.49253496527671814, -0.11614404618740082, 0.6478284597396851, 0.24481922388076782, -0.05574905872344971, -0.5311867594718933, -0.7283800840377808, -0.9738451242446899, -0.11306357383728027, 0.5416960120201111, 0.7753640413284302, -0.9730377197265625, 0.5940904021263123, 0.012776450254023075, -0.3498702943325043, -0.43862995505332947, 0.07119952142238617, 0.2852064073085785, 0.3038119375705719, 0.5437281131744385, -0.19905561208724976, -0.9274778366088867, -0.9728054404258728, -0.1829298585653305, 0.08489007502794266, 0.08374672383069992, -0.027109375223517418, 1.1163434982299805, -0.6602807641029358, 0.6115456819534302, -0.262706458568573, -0.24398434162139893, -0.6294612288475037, 0.4354647099971771, 0.040913358330726624, 0.4822344481945038, 0.32653576135635376, -1.095592975616455, -0.4922927916049957, -0.006442660465836525, -0.7137830853462219, -0.232792928814888, -0.17358902096748352, 0.13735432922840118, 0.490326851606369, 0.6244911551475525, -0.5413678288459778, 0.5430799126625061, 0.4788641929626465, -0.2799815535545349, 0.5819426774978638, -0.08196111768484116, 0.1709841936826706, -1.5461469888687134, -0.01599445566534996, 0.19231443107128143, -0.4347285330295563, -0.7805513739585876, -0.035955071449279785, 0.20570313930511475, -0.2481028288602829, -0.4347497820854187, 0.3911231756210327, -0.224371075630188, -0.08868936449289322, -0.5730506181716919, -0.4497406780719757, 0.23991045355796814, 0.5134983062744141, 0.028157783672213554, 0.7507937550544739, 0.13385078310966492, -0.42611560225486755, 0.32392510771751404, 0.08472861349582672, -0.3194212317466736, 0.5872442126274109, -0.6955994367599487, 0.1659276783466339, -0.04484502971172333, 0.43098127841949463, -1.0661280155181885, -0.10824776440858841, 0.10448411852121353, -0.5523176193237305, 0.2120528519153595, 0.012351944111287594, -0.6453167796134949, -0.6875464916229248, -0.12567000091075897, 0.45802298188209534, 0.3003838062286377, -0.5708625316619873, 0.9446876049041748, 0.477823406457901, 0.058240994811058044, -0.42381757497787476, -0.7553676962852478, 0.18855290114879608, -0.22021083533763885, -0.5783641338348389, 0.6645504236221313, 0.1003345251083374, 0.24299561977386475, -0.013792850077152252, -0.029414819553494453, -0.08370570093393326, 0.15509717166423798, 0.32371267676353455, 0.2866382896900177, -0.2736639082431793, -0.23150208592414856, 0.05103566497564316, -0.41155120730400085, -0.03860171139240265, -0.36532771587371826, 0.6441153287887573, 0.046186663210392, -0.27609676122665405, -0.5608371496200562, 0.582525908946991, 0.682766854763031, -0.5376094579696655, 0.7167728543281555, 1.083014965057373, -0.5795034170150757, -0.28786230087280273, -0.5047484636306763, -0.07039036601781845, -0.46735894680023193, 0.3705689013004303, -0.3584355115890503, -1.1235405206680298, 0.517360270023346, -0.1265484094619751, 0.06925681233406067, 0.8668635487556458, 0.8122336268424988, -0.20273002982139587, 1.2593767642974854, 0.821873128414154, -0.09272512793540955, 0.4019196033477783, -0.40632084012031555, 0.42162057757377625, -0.8703943490982056, -0.4386026859283447, -0.41379329562187195, -0.40338224172592163, -0.6719062924385071, -0.25362125039100647, 0.1503874957561493, -0.31886687874794006, -0.00566187035292387, 0.7384313344955444, -0.5816497206687927, 0.2944377064704895, 0.8591107130050659, 0.0669228807091713, 0.2396562248468399, -0.2721475660800934, -0.15848618745803833, -0.0739285796880722, -0.666054368019104, -0.30559417605400085, 0.9641647934913635, 0.4494543671607971, 0.6169518232345581, -0.21152262389659882, 0.6789705157279968, 0.6174845695495605, -0.08576931804418564, -0.6808640360832214, 0.4410250186920166, -0.4317752718925476, -0.6320605874061584, -0.16821859776973724, -0.21811066567897797, -0.9808050394058228, 0.3296835720539093, -0.35042643547058105, -0.49746769666671753, 0.2208518236875534, -0.07297919690608978, -0.2719133198261261, 0.4166986644268036, -0.7092440128326416, 1.137495994567871, -0.18776078522205353, 0.1716645359992981, -0.02157527580857277, -0.5102611780166626, 0.29615774750709534, -0.2891269028186798, 0.08476319909095764, 0.029340483248233795, 0.1633996218442917, 0.8730267286300659, 0.028159167617559433, 1.0248360633850098, -0.03719460591673851, 0.001840806333348155, 0.2807826101779938, -0.04288402944803238, 0.5025004744529724, -0.18105733394622803, 0.2169969081878662, 0.16010569036006927, -0.33054468035697937, -0.3302023112773895, -0.2552064061164856, 0.2246517837047577, -0.4730071723461151, -0.16771957278251648, -0.48299068212509155, -0.6156226992607117, 0.16454458236694336, 0.3944990932941437, 0.7614879012107849, 0.5310136675834656, -0.0677565261721611, 0.5565994381904602, 0.8362562656402588, -0.3813663125038147, 0.4958570599555969, 0.5004567503929138, 0.06422185152769089, -0.34062719345092773, 1.0181498527526855, -0.16665510833263397, -0.12569217383861542, 0.6414753794670105, 0.22137559950351715, -0.43614116311073303, -0.7436627149581909, -0.5102366805076599, -0.10744987428188324, -0.5874553322792053, -0.35924607515335083, -1.1191900968551636, -0.418348491191864, -0.592761754989624, -0.1271906942129135, -0.4032256603240967, -0.13634294271469116, -0.4597141444683075, -0.05867946520447731, 0.045650359243154526, 0.7288062572479248, 0.18638676404953003, 0.38894161581993103, -0.7108686566352844, 0.49814313650131226, 0.07400110363960266, -0.0981343686580658, -0.25743603706359863, -0.7504088282585144, -0.33670222759246826, -0.1145797073841095, -0.42224571108818054, -0.5849279761314392, 0.5131992101669312, -0.06729757785797119, 0.6024559736251831, 0.07035589963197708, 0.043322306126356125, 0.10068812966346741, -0.5906917452812195, 0.7291969656944275, 0.21174737811088562, -0.8980076313018799, 0.6213008761405945, -0.38799849152565, 0.6507269144058228, 0.4160064160823822, 0.2616511881351471, -0.5281175971031189, -0.4564739167690277, -0.688450813293457, -0.7716425657272339, 0.6250399947166443, 0.3548159599304199, 0.11029786616563797, 0.37958845496177673, 0.02479950711131096, 0.18598243594169617, 0.22830802202224731, -0.9950265288352966, -0.02109948918223381, -0.2628617286682129, -0.5083742141723633, -0.06631358712911606, -0.2419944703578949, 0.4357667863368988, -0.07286839187145233, 0.6933435797691345, -0.24807310104370117, 0.336345911026001, -0.1235232725739479, -0.3311845064163208, -0.020569229498505592, 0.4008648991584778, 0.7521703243255615, 0.2750040292739868, 0.23590275645256042, 0.09837057441473007, 0.33172833919525146, -0.459040105342865, 0.05209988355636597, 0.2816195785999298, -0.5197184085845947, 0.041100386530160904, 0.5633853077888489, 0.9344238638877869, 0.24153850972652435, -0.44651126861572266, 0.5209953784942627, -0.007384577766060829, -0.47125697135925293, -0.1709621548652649, -0.05237065255641937, -0.12445183098316193, 0.3185102343559265, 0.5459956526756287, 0.2975984215736389, 0.5042266249656677, -0.41327911615371704, 0.5064055323600769, 0.4318894147872925, -0.3749054968357086, -0.4342760145664215, 0.7863444685935974, 0.3947048783302307, -0.5048333406448364, 0.27443620562553406, -0.3369848430156708, -1.3183268308639526, 0.8083726763725281, 0.6692512631416321, 0.908784806728363, -0.2520129978656769, 0.33113887906074524, 0.061383482068777084, 0.5049306154251099, -0.02518298290669918, 0.14069947600364685, 0.07733959704637527, -0.9552384614944458, -0.529624342918396, -0.6478004455566406, -0.3936152160167694, 0.6582139134407043, -0.2969943881034851, 0.3041088879108429, -0.15034818649291992, -0.017501430585980415, 0.37204140424728394, 0.14936625957489014, -0.6314138174057007, 0.3990674316883087, 0.27194109559059143, 0.6150929927825928, -1.0403810739517212, 0.6286296248435974, 0.842499852180481, -0.32053983211517334, -0.5621140599250793, -0.1626516431570053, 0.012661393731832504, -0.578286349773407, 0.4645337164402008, 0.6081132888793945, 0.03914161026477814, -0.04363170266151428, -0.269179105758667, -0.4617115259170532, 0.9473448991775513, 0.04512892663478851, -0.44428175687789917, -0.19946826994419098, 0.30336230993270874, 0.6059606075286865, -0.3189237713813782, -0.020875683054327965, 0.4670998752117157, 0.286399245262146, -0.02792217582464218, -1.0112953186035156, -0.1339435875415802, -0.37801557779312134, -0.1913646161556244, 0.609307050704956, -0.4858357906341553, 0.861395537853241, 0.16667617857456207, -0.11438490450382233, -0.09989725053310394, 0.7003523707389832, 0.06759053468704224, 0.4836849570274353, 0.5727057456970215, 0.8697943091392517, 0.5646805167198181, 0.036842841655015945, 0.7796735167503357, 0.06561540812253952, 0.4317989945411682, 0.9662513136863708, -0.27766549587249756, 0.4750399589538574, 0.13360366225242615, 0.01731329783797264, 0.6325563192367554, 0.6357489824295044, -0.3447287380695343, 0.44355514645576477, -0.2076403945684433, -0.1944480985403061, -0.462252676486969, -0.26354220509529114, -0.07386691868305206, 0.6563460230827332, 0.2460414171218872, -0.42154988646507263, -0.1923140287399292, 0.34900325536727905, -0.33727797865867615, 0.07476218789815903, -0.32874882221221924, 0.7216300964355469, 0.08385026454925537, -0.6245796084403992, 0.05202724412083626, 0.3224865794181824, 1.1553945541381836, -0.10771850496530533, 0.013298344798386097, 0.08565214276313782, 0.42444929480552673, -0.22795452177524567, -0.9293624758720398, 0.29465386271476746, -0.061441708356142044, -0.2847600281238556, -0.3297771215438843, 1.4246172904968262, -0.45578819513320923, -0.7572369575500488, 0.26007261872291565, 0.4679151773452759, -0.08429497480392456, -0.26741185784339905, -0.9466360211372375, -0.09835165739059448, 0.032864369451999664, 0.0016889709513634443, 0.15816913545131683, 0.5235673189163208, -0.13516320288181305, 0.4765045940876007, 0.7835877537727356, -0.42742976546287537, 0.22267119586467743, 0.3743196427822113, 0.6618443131446838, -0.5284038782119751, -0.7309838533401489, -0.8754063844680786, 0.5008159875869751, -0.19960899651050568, -0.23817142844200134, 0.6256293058395386, 0.7555927634239197, 0.953246533870697, -0.12124858051538467, 0.8182986974716187, 0.04867538437247276, 0.49763938784599304, -0.5361689329147339, 0.4297075867652893, -0.5483574271202087, -0.1233842521905899, -0.2438906729221344, -0.8576315641403198, -0.2060314565896988, 0.4953101873397827, -0.08848075568675995, -0.041520651429891586, 0.8136984705924988, 0.45446041226387024, -0.204823300242424, 0.19261114299297333, 0.4157191514968872, -0.2806244492530823, 0.3047049045562744, 0.7207019925117493, 0.9509185552597046, -0.6987231373786926, 0.6531466245651245, -0.3246098458766937, 0.06271089613437653, -0.2660734951496124, -0.734674334526062, -1.3461637496948242, -0.7088679671287537, -0.3752794563770294, -0.20416919887065887, -0.30383777618408203, 0.5007662177085876, 0.6962319612503052, -1.2015622854232788, 0.1377299427986145, -0.28650936484336853, -0.021755049005150795, 0.03540610894560814, -0.2776156961917877, 0.10798199474811554, -0.1484142243862152, -0.6682605147361755, 0.44620782136917114, 0.3934217691421509, 0.09571915119886398, -0.4366743266582489, 0.15796077251434326, -0.43137896060943604, -0.14677271246910095, 0.7425823211669922, 0.03886568918824196, -0.605108916759491, -0.19440722465515137, 0.17965924739837646, -0.09045957773923874, 0.014580708928406239, 1.074804663658142, -0.811159074306488, 0.11802894622087479, 0.7122333645820618, 0.9820654988288879, 0.5970617532730103, -0.014935933984816074, 0.4884548783302307, -0.6463772058486938, 0.06926379352807999, 0.3742750287055969, 0.579992413520813, 0.3876810371875763, -0.6513952612876892, 0.5336475372314453, 0.6294362545013428, -0.7503901124000549, -0.8058271408081055, 0.24373120069503784, -0.7249255776405334, -0.30291858315467834, 0.9922360181808472, 0.12084615230560303, -0.13952815532684326, -0.5370581746101379, -0.32637596130371094, 0.3236249089241028, -0.43826496601104736, 0.4377534091472626, 0.5404177904129028, -0.022938845679163933, -0.4142831861972809, -0.5509387850761414, 0.24798262119293213, 0.4481135606765747, -1.0035908222198486, -0.276949942111969, 0.3179621994495392, 0.11932265013456345, 0.5177904963493347, 0.6140421032905579, 0.21448180079460144, 0.42767417430877686, -0.058832425624132156, 0.03228073939681053, 0.04412318021059036, -0.6965022087097168, -0.24981728196144104, 0.12726952135562897, -0.6175473928451538, -0.27470582723617554 ]
http://arxiv.org/abs/2405.17957v1
http://arxiv.org/pdf/2405.17957v1
Modeling Dynamic Topics in Chain-Free Fashion by Evolution-Tracking Contrastive Learning and Unassociated Word Exclusion
2024-05-28T08:39:49
2024-05-28T08:39:49
Xiaobao Wu, Xinshuai Dong, Liangming Pan, Thong Nguyen, Anh Tuan Luu
cs.CL
cs.CL, cs.AI
Dynamic topic models track the evolution of topics in sequential documents, which have derived various applications like trend analysis and opinion mining. However, existing models suffer from repetitive topic and unassociated topic issues, failing to reveal the evolution and hindering further applications. To address these issues, we break the tradition of simply chaining topics in existing work and propose a novel neural \modelfullname. We introduce a new evolution-tracking contrastive learning method that builds the similarity relations among dynamic topics. This not only tracks topic evolution but also maintains topic diversity, mitigating the repetitive topic issue. To avoid unassociated topics, we further present an unassociated word exclusion method that consistently excludes unassociated words from discovered topics. Extensive experiments demonstrate our model significantly outperforms state-of-the-art baselines, tracking topic evolution with high-quality topics, showing better performance on downstream tasks, and remaining robust to the hyperparameter for evolution intensities. Our code is available at https://github.com/bobxwu/CFDTM .
[ -0.5606542229652405, -0.9986417293548584, 0.3570040762424469, 0.1057928204536438, -0.6361356377601624, 0.3922201991081238, -0.06238212436437607, -0.4445585012435913, 0.7521598935127258, 0.34924203157424927, -0.7462452054023743, -0.3837369978427887, -0.6097075343132019, -0.34480732679367065, -0.8030750155448914, 1.1031898260116577, 0.021873585879802704, -0.27894899249076843, -0.2926104664802551, -0.29980960488319397, -0.2207372486591339, -0.16898603737354279, -0.44879308342933655, -0.5959645509719849, 0.6741920709609985, 0.06588013470172882, 0.45852383971214294, 0.9318239092826843, 0.31310972571372986, 0.292269766330719, -0.8380706310272217, 0.09654475748538971, -0.398067831993103, 0.41967812180519104, -0.42403125762939453, -0.07636663317680359, -0.28245070576667786, 0.03967687860131264, 0.6119152903556824, 0.8244199156761169, -0.3589126765727997, -0.21729303896427155, 0.2840888202190399, 0.5031666159629822, -0.5182394981384277, -0.04885018244385719, -0.7890182733535767, 0.09235402196645737, -0.1656588315963745, -0.16884611546993256, 0.0405438169836998, -0.19519612193107605, 0.4009360671043396, -0.5105427503585815, 0.36066216230392456, -0.48845481872558594, 0.7487155795097351, -0.008445926941931248, -0.5261886715888977, -0.3214471936225891, -0.609354555606842, 0.5706310272216797, -0.2622978389263153, 0.31044116616249084, -0.012232494540512562, -0.18647223711013794, 0.011164424940943718, -1.0312644243240356, -0.47286540269851685, -0.1412581205368042, 0.3646690845489502, 0.22012293338775635, -0.3223937153816223, -0.17275716364383698, -0.1121959462761879, 0.6336408257484436, -0.41765812039375305, 0.07282713055610657, 0.09408709406852722, 0.24716545641422272, 0.2389182597398758, 0.20963986217975616, 0.16361887753009796, -0.04293754696846008, -0.6218153834342957, 0.1769893318414688, -0.3737407326698303, -0.20229047536849976, 0.40205925703048706, 0.1108575314283371, -0.20998619496822357, -0.02336021512746811, -0.3283793032169342, 0.33224010467529297, 0.2353181540966034, 0.44939351081848145, 0.29164761304855347, -0.1212371215224266, 0.043753255158662796, -0.21670742332935333, 0.5017252564430237, -0.025651080533862114, -0.23673707246780396, -0.37740465998649597, -0.23862893879413605, 0.19813258945941925, 0.25050458312034607, -0.6266122460365295, -0.49408403038978577, 0.17725379765033722, -0.5948614478111267, -0.7336548566818237, -0.1817556917667389, -1.2528208494186401, -0.5424987077713013, -0.08568473160266876, 0.3601375222206116, -0.19782009720802307, -0.541087806224823, -0.12007439881563187, -0.1507376730442047, -0.24747148156166077, 0.386555552482605, -0.8665953874588013, 0.3835640251636505, 0.8071004748344421, 1.0565965175628662, -0.5505357980728149, -0.3057021200656891, -0.46261173486709595, -0.07594237476587296, -0.34700989723205566, 0.8620731830596924, -0.6625726222991943, -0.49790051579475403, -0.09209834039211273, -0.04536353424191475, 0.13359488546848297, -0.5333099365234375, 0.08516282588243484, -0.726463258266449, 0.23207612335681915, -0.011748665943741798, -0.7161840796470642, -0.16955336928367615, 0.34838423132896423, -0.5803691148757935, 0.7893277406692505, -0.15200962126255035, -0.9778259992599487, 0.11200904846191406, -0.6393374800682068, -0.228437140583992, 0.05232712998986244, -0.11392778158187866, -0.31932133436203003, 0.2711710035800934, -0.29012173414230347, -0.0021639426704496145, -0.2614041268825531, 0.6916192173957825, -0.5455924272537231, -0.22813035547733307, 0.23662413656711578, -0.5134526491165161, 0.5929704308509827, 0.3394315242767334, -0.43591299653053284, 0.3957586884498596, -0.8799484372138977, -0.35307785868644714, 0.08412231504917145, -0.36525484919548035, -0.555178165435791, 0.34143996238708496, 0.024882309138774872, 0.45416000485420227, 0.29764726758003235, -0.24990098178386688, 0.14646504819393158, -0.22239573299884796, 0.38811683654785156, 0.8573732972145081, 0.5074003338813782, 0.2514934539794922, -0.398479700088501, 0.3540007472038269, 0.41421517729759216, -0.05017555132508278, -0.2393527776002884, -0.37785184383392334, -0.9363682866096497, -0.08123313635587692, 0.5771300196647644, 0.37594884634017944, -0.6448651552200317, 0.43697816133499146, 0.02924470044672489, -0.5267643928527832, 0.05991639569401741, 0.0756857767701149, 0.26190638542175293, 0.5206795930862427, 0.4261873662471771, -0.5686960816383362, -0.22515001893043518, -0.5705760717391968, -0.28048765659332275, 0.09876513481140137, -0.00510402861982584, -0.014937576837837696, 0.45163437724113464, -0.2810748815536499, 0.6092022061347961, -0.6698398590087891, 0.16496683657169342, -0.07341057062149048, 0.7736067175865173, 0.05228353291749954, 0.8023646473884583, 0.4332750141620636, -0.947263240814209, -0.1826227307319641, -0.1997559666633606, -0.7235950231552124, -0.07401672005653381, -0.30447253584861755, -0.3264656066894531, -0.15772320330142975, 0.529157817363739, -0.581669270992279, 0.33742260932922363, 0.23450182378292084, -0.3547835946083069, 0.29948487877845764, -0.22229905426502228, -0.38806167244911194, -1.351775884628296, 0.21438366174697876, 0.2443585842847824, -0.06781856715679169, -0.6797785758972168, 0.29570847749710083, 0.024531804025173187, -0.3444850742816925, -0.4047246277332306, 0.5795562863349915, -0.5003117322921753, 0.2398374378681183, -0.786270797252655, 0.14317502081394196, -0.1965656578540802, 0.4792024493217468, 0.21067990362644196, 0.15900562703609467, 0.6220576763153076, -0.7617060542106628, 0.29397836327552795, 0.2668313980102539, -0.37063702940940857, 0.19884993135929108, -0.3493614196777344, 0.12409074604511261, -0.13223832845687866, 0.10185103118419647, -0.7347339391708374, 0.13548298180103302, 0.12636783719062805, -0.12404890358448029, 0.42399662733078003, -0.034039828926324844, -0.3418821096420288, -0.1662386804819107, -0.3848645091056824, 0.045859020203351974, 0.4578673243522644, -0.47468462586402893, 0.33752545714378357, 0.2807842493057251, -0.2362549602985382, -0.4072772264480591, -0.5268073678016663, -0.11443361639976501, -0.31098026037216187, -0.14655376970767975, 0.7073981761932373, -0.3648776412010193, -0.1494693011045456, 0.2369207888841629, -0.6298075318336487, -0.3585803806781769, 0.3645614981651306, -0.07780370116233826, 0.06399042904376984, -0.10383240133523941, 0.2626754343509674, 0.2075299173593521, -0.12534531950950623, -0.010717758908867836, -0.5221343040466309, 0.6556897759437561, 0.24674184620380402, -0.06482286751270294, -0.43307390809059143, 0.5629814267158508, 0.7455446124076843, -0.3656404912471771, 0.6606709957122803, 0.5503581166267395, -0.5482750535011292, -0.32698020339012146, -0.317278116941452, -0.13858336210250854, -0.5442324876785278, 0.48740270733833313, -0.08025958389043808, -0.8755218982696533, 0.7060710191726685, -0.4093489944934845, 0.008139177225530148, 0.4441285729408264, 0.3711870014667511, 0.016849882900714874, 0.648351788520813, 0.7953892350196838, 0.0919680967926979, 0.9929715991020203, -0.2645304501056671, -0.05878719314932823, -0.6349308490753174, -0.22098568081855774, -0.2886368930339813, -0.5300507545471191, -0.9584032893180847, -0.14081980288028717, -0.11619116365909576, 0.3657141625881195, -0.18370738625526428, -0.13330502808094025, -0.46648725867271423, 0.42295852303504944, 0.5890821218490601, 0.25485125184059143, 0.15411944687366486, 0.03765955939888954, -0.2815020978450775, 0.14052526652812958, -0.473952978849411, -0.04696895182132721, 0.7214232683181763, 0.18347583711147308, 0.7276087999343872, -0.07032155990600586, 0.7871596217155457, 0.5666808485984802, 0.21553774178028107, -0.5071118474006653, 0.6056048274040222, -0.5768822431564331, -0.33143946528434753, 0.060749687254428864, -0.48046836256980896, -0.7515282034873962, 0.4294649660587311, -0.2932218611240387, -0.8360037803649902, 0.6114342212677002, 0.18544766306877136, -0.06361715495586395, 0.7729703783988953, -0.1129303053021431, 0.7105998992919922, -0.28070196509361267, -0.8347880244255066, -0.36795955896377563, -0.5351016521453857, 0.35003989934921265, -0.38124069571495056, -0.26928794384002686, -0.13305345177650452, -0.11930666118860245, 0.9005864858627319, -0.36812981963157654, 0.8026601672172546, -0.21696816384792328, 0.10587424039840698, 0.3897368907928467, 0.1692248433828354, 0.44723379611968994, 0.011990297585725784, -0.10063052922487259, 0.05964715778827667, -0.4164728820323944, -0.3825397789478302, -0.4463253319263458, 1.0129865407943726, -0.4961089789867401, -0.6966983079910278, -0.63341224193573, -0.6900339722633362, -0.08506555110216141, 0.4771980345249176, 0.1756659895181656, 0.3253391981124878, -0.20154836773872375, 0.24726003408432007, 0.7864924073219299, -0.205490380525589, 0.8460860252380371, 0.49349281191825867, -0.028819287195801735, -0.44390323758125305, 1.0056530237197876, 0.09282086789608002, 0.03766660764813423, 0.47405126690864563, 0.5034968256950378, -0.24129468202590942, -0.8728232979774475, 0.1424487829208374, 0.10206813365221024, -0.582937479019165, 0.04359205439686775, -0.9663115739822388, -0.19007113575935364, -0.019825834780931473, -0.1375536024570465, -0.427017480134964, -0.3740028440952301, -0.5972270965576172, -0.08347302675247192, 0.20896904170513153, 0.6321905255317688, -0.1666632890701294, 0.18165697157382965, -0.6423487663269043, 0.39057403802871704, 0.44592395424842834, 0.49366840720176697, 0.4207257330417633, -0.38958632946014404, -0.0477273054420948, -0.12263371795415878, -0.9439312219619751, -0.9787935018539429, 0.5090168714523315, -0.011442198418080807, 0.6785765290260315, 0.7658118605613708, 0.20520006120204926, 0.44990143179893494, -0.18328425288200378, 0.757824718952179, 0.4241926074028015, -1.151088833808899, 0.6361804008483887, -0.5747899413108826, 0.34303179383277893, 0.3525828421115875, 0.5186323523521423, -0.530974268913269, -0.4182280898094177, -0.7447713017463684, -1.10515296459198, 0.5407218933105469, 0.09869199991226196, 0.3310609757900238, -0.2757561206817627, 0.38700345158576965, 0.18847186863422394, 0.5595199465751648, -0.7925675511360168, -0.25186261534690857, -0.2731796205043793, 0.07948266714811325, 0.18106253445148468, -0.3479175269603729, 0.05772419273853302, -0.29791927337646484, 0.5819840431213379, 0.0719960406422615, 0.41517749428749084, -0.10039903223514557, 0.06400371342897415, -0.012379749678075314, 0.19284296035766602, 0.8055417537689209, 0.5903266072273254, -0.4258258640766144, 0.21743062138557434, 0.004819017834961414, -0.4233538806438446, 0.09222178161144257, 0.23766690492630005, -0.34431192278862, 0.20331129431724548, 0.08348444849252701, 0.7513415813446045, 0.22736325860023499, -0.3346318006515503, 0.28095656633377075, 0.16389955580234528, -0.22691650688648224, -0.03273545205593109, 0.107123002409935, 0.3685000240802765, 0.39598897099494934, 0.1688496172428131, 0.1501179188489914, -0.05501687899231911, -0.5930622816085815, 0.5294488668441772, 0.21004971861839294, -0.6678928732872009, -0.3208407461643219, 0.9343320727348328, 0.4769648015499115, -0.392895370721817, 0.5866864323616028, -0.16356918215751648, -0.4122672379016876, 0.8209121227264404, 0.6180095076560974, 1.1800109148025513, -0.2758966386318207, 0.14344839751720428, -0.10256188362836838, -0.12560738623142242, -0.11064758151769638, 0.40556737780570984, -0.3324326276779175, -0.4815777838230133, 0.20144543051719666, -0.5620101690292358, -0.5632962584495544, 0.5530127286911011, -0.861869215965271, 0.25121352076530457, -0.5309406518936157, 0.014071622863411903, 0.17735281586647034, 0.019805509597063065, -0.10532751679420471, 0.24113383889198303, 0.024162933230400085, 1.1172813177108765, -0.6473286747932434, 1.1457388401031494, 0.6890897154808044, -0.3514159023761749, -0.019670624285936356, 0.6394780278205872, 0.06249487027525902, -0.22456209361553192, 0.3290293514728546, 0.10439477860927582, -0.08442085981369019, -0.050865333527326584, -0.3341826796531677, -0.6686604022979736, 0.9960390329360962, 0.08199873566627502, -0.5416256189346313, -0.07897695153951645, -0.4029826819896698, 0.6333233118057251, -0.37458017468452454, -0.05120939388871193, -0.08802607655525208, 0.03237323462963104, 0.18549130856990814, -0.10114827007055283, -0.1827167272567749, -0.5186262726783752, -0.008959425613284111, 0.4624134600162506, -0.8609656691551208, 1.0026112794876099, 0.15531215071678162, 0.045019544661045074, 0.3084598481655121, 0.663497269153595, -0.029791977256536484, 0.6259146332740784, 0.4463556408882141, 0.4758915305137634, 0.8086897730827332, 0.01698354445397854, 0.6123217344284058, -0.5327523350715637, 0.5737502574920654, 1.2783280611038208, -0.4336950480937958, 0.7524252533912659, 0.41910526156425476, 0.30297067761421204, 0.5274898409843445, 0.7882128953933716, -0.1866961568593979, 0.9353327751159668, 0.47900423407554626, -0.5612478852272034, -0.20310606062412262, -0.061623744666576385, -0.4960918426513672, 0.5003253817558289, 0.3630433678627014, -0.5981037616729736, -0.2815377414226532, -0.18910537660121918, -0.02656548283994198, 0.04911596700549126, -0.21961596608161926, 0.6686205863952637, -0.006383548025041819, -0.553196132183075, 0.49968135356903076, 0.015838496387004852, 0.9009053707122803, -0.9138448238372803, 0.017007814720273018, -0.6972829103469849, 0.16806043684482574, 0.20816649496555328, -0.4145422875881195, 0.40364107489585876, 0.1138838678598404, -0.4529857635498047, -0.1470666080713272, 0.5765231251716614, -0.5430624485015869, -0.24922549724578857, 0.4708346724510193, 0.630601704120636, -0.14035317301750183, 0.1602163016796112, -0.7872738242149353, -0.08742620050907135, -0.0671749860048294, -0.34650909900665283, 0.5577821135520935, 0.40437254309654236, -0.209130197763443, 0.70799320936203, 0.5299496054649353, 0.03322756290435791, -0.17614628374576569, -0.21794313192367554, 1.0579177141189575, -0.9174965620040894, -1.079410195350647, -0.8206170797348022, 0.24778249859809875, -0.15627950429916382, -0.5534576773643494, 0.22605785727500916, 0.56120365858078, 0.6886139512062073, 0.019099632278084755, 0.45228272676467896, 0.2969251275062561, 0.4968951642513275, -0.3544515073299408, 1.011128306388855, -0.9979575276374817, 0.5015124082565308, -0.43265488743782043, -0.9218882322311401, -0.18043462932109833, 0.26986759901046753, 0.08955596387386322, 0.07192391157150269, 0.9389760494232178, 0.3776356875896454, -0.43877801299095154, 0.3050287067890167, 0.18337345123291016, 0.1416211724281311, 0.1758590191602707, 0.256006121635437, 0.9964091777801514, 0.04347502812743187, 0.4788389205932617, -0.43084800243377686, -0.14941035211086273, -0.12752431631088257, -1.0733819007873535, -0.5494799613952637, -0.46059325337409973, -0.8536227941513062, -0.1717822402715683, 0.2933272421360016, 0.7491030097007751, 0.7170765995979309, -0.8068822622299194, -0.3096848428249359, -0.6284179091453552, 0.2717287540435791, -0.43882811069488525, -0.26260656118392944, 0.4241809546947479, -0.15332962572574615, -0.5557543039321899, 0.3727355897426605, 0.20947220921516418, 0.2016311138868332, -0.08889619261026382, 0.22632059454917908, -0.5962961912155151, 0.2259996235370636, 0.3718585968017578, 0.3918791711330414, -0.6076561212539673, 0.02059030719101429, -0.31585004925727844, 0.18423859775066376, 0.0723114162683487, 1.0385690927505493, -0.6626433730125427, 0.48330333828926086, 0.6818858981132507, 0.7102010250091553, 0.8062307238578796, -0.08348216116428375, 0.22432902455329895, -0.6458886861801147, 0.22280818223953247, 0.15682396292686462, 0.3721241056919098, 0.03481084853410721, -0.21112960577011108, 0.380397766828537, 0.8914409875869751, -0.26642730832099915, -0.8219335079193115, 0.32376807928085327, -0.9983571171760559, -0.6893304586410522, 0.6737322807312012, -0.17419284582138062, 0.1545451432466507, 0.0147921834141016, 0.4540823698043823, 0.5979070067405701, -0.4086979031562805, 1.088376760482788, 0.567929208278656, -0.3221207857131958, -0.26864928007125854, -0.25499600172042847, 0.21538740396499634, 0.3917050063610077, -0.8659289479255676, 0.07152918726205826, 0.34916865825653076, 0.40745097398757935, 0.19315895438194275, 0.36052989959716797, 0.007660974748432636, 0.2019721418619156, 0.18016274273395538, -0.08131344616413116, -0.08756875991821289, -0.4521404802799225, -0.664202094078064, 0.45348644256591797, -0.13470152020454407, -0.5434352159500122 ]
http://arxiv.org/abs/2405.17935v2
http://arxiv.org/pdf/2405.17935v2
Tool Learning with Large Language Models: A Survey
2024-05-28T08:01:26
2024-05-30T11:01:10
Changle Qu, Sunhao Dai, Xiaochi Wei, Hengyi Cai, Shuaiqiang Wang, Dawei Yin, Jun Xu, Ji-Rong Wen
cs.CL
cs.CL, cs.AI
Recently, tool learning with large language models (LLMs) has emerged as a promising paradigm for augmenting the capabilities of LLMs to tackle highly complex problems. Despite growing attention and rapid advancements in this field, the existing literature remains fragmented and lacks systematic organization, posing barriers to entry for newcomers. This gap motivates us to conduct a comprehensive survey of existing works on tool learning with LLMs. In this survey, we focus on reviewing existing literature from the two primary aspects (1) why tool learning is beneficial and (2) how tool learning is implemented, enabling a comprehensive understanding of tool learning with LLMs. We first explore the "why" by reviewing both the benefits of tool integration and the inherent benefits of the tool learning paradigm from six specific aspects. In terms of "how", we systematically review the literature according to a taxonomy of four key stages in the tool learning workflow: task planning, tool selection, tool calling, and response generation. Additionally, we provide a detailed summary of existing benchmarks and evaluation methods, categorizing them according to their relevance to different stages. Finally, we discuss current challenges and outline potential future directions, aiming to inspire both researchers and industrial developers to further explore this emerging and promising area. We also maintain a GitHub repository to continually keep track of the relevant papers and resources in this rising area at \url{https://github.com/quchangle1/LLM-Tool-Survey}.
[ -0.4043737053871155, -0.6368289589881897, 0.7282671928405762, -0.04648105055093765, -0.3437592387199402, 0.6000483632087708, -0.32804062962532043, -0.5664436221122742, -0.20286749303340912, 0.2826964855194092, -0.4094111919403076, -0.6467320322990417, -0.6171250343322754, 0.00544917955994606, -0.530170202255249, 0.8811445236206055, -0.09900163859128952, 0.3618590831756592, -0.19027015566825867, 0.001933243591338396, -0.5378084778785706, -0.5132031440734863, -0.7463901042938232, -0.5308796763420105, 0.7830514311790466, 0.39163216948509216, 0.16528023779392242, 0.4153997302055359, 0.40591686964035034, 0.3261778652667999, -0.20865195989608765, 0.016419999301433563, -0.5710781216621399, 0.2402869611978531, -0.1262817680835724, -0.7542510032653809, -0.13741064071655273, 0.051794227212667465, 0.5328454971313477, 0.8558828830718994, -0.17234966158866882, 0.41727006435394287, 0.36284804344177246, 0.3814421594142914, -0.5323392748832703, 0.1471952497959137, -0.6566067934036255, 0.10484818369150162, -0.35349732637405396, 0.020381180569529533, -0.38028934597969055, -0.23562495410442352, 0.13247133791446686, -0.2878718674182892, 0.12373041361570358, -0.03517749160528183, 0.22410106658935547, 0.12146928161382675, -0.6274212598800659, -0.48034608364105225, -0.9350830912590027, 1.0203540325164795, -0.5294313430786133, 0.570755124092102, 0.14082404971122742, 0.4040474593639374, -0.1172548159956932, -0.8394740223884583, -0.1706911027431488, -0.007672909647226334, 0.28535956144332886, 0.060374557971954346, 0.18654410541057587, -0.27594026923179626, 0.327764630317688, 0.427642822265625, -0.38507017493247986, 0.6091331243515015, -0.6233720779418945, -0.2673582434654236, 0.7059788107872009, 0.3026925325393677, -0.012639783322811127, 0.09309007972478867, -0.31694579124450684, -0.1275179237127304, -0.8184153437614441, 0.0869239941239357, 0.3324921131134033, 0.1505364626646042, -0.22783222794532776, 0.19209909439086914, 0.21367259323596954, 0.5924665927886963, -0.2828546166419983, -0.5690528750419617, 0.4504244327545166, -0.19015857577323914, -0.21052612364292145, -0.22572554647922516, 0.810321033000946, -0.004336542449891567, -0.11786102503538132, -0.25088727474212646, -0.43953490257263184, -0.4997979998588562, 0.3783065378665924, -0.6621214747428894, 0.18542444705963135, 0.17447951436042786, -0.3446223735809326, -0.32663458585739136, 0.009164540097117424, -0.4706534743309021, -0.7837337851524353, -0.43624937534332275, 0.11874935030937195, -0.13349148631095886, -0.6132994890213013, -0.06469010561704636, 0.0725107491016388, 0.6551292538642883, 0.7737595438957214, -0.47293439507484436, 0.12091027945280075, 0.9309890866279602, 0.9645160436630249, -0.43186134099960327, -0.18207493424415588, -0.5284574031829834, -0.15757955610752106, -0.5574259161949158, 0.7172510623931885, -0.31806424260139465, -0.763439953327179, 0.2502582371234894, 0.11898170411586761, 0.3233526349067688, -0.8068845272064209, 0.3068634271621704, -0.58902907371521, 0.14804606139659882, -0.2940109968185425, -0.3020579218864441, -0.4193364381790161, 0.4284459054470062, -0.6452849507331848, 1.1036146879196167, 0.10320534557104111, -0.6223322153091431, 0.48264962434768677, -0.33128124475479126, -0.4529578387737274, 0.08871978521347046, -0.3170473873615265, -0.45077627897262573, 0.22982168197631836, -0.16297802329063416, 0.7725841403007507, -0.7336599230766296, 0.35356757044792175, -0.4854726493358612, -0.16014030575752258, 0.301898717880249, -0.21103036403656006, 0.794676661491394, 0.396859735250473, -0.1578029990196228, 0.33739253878593445, -0.4255230724811554, -0.2648034691810608, 0.28173744678497314, -0.410890132188797, -0.014888283796608448, 0.06209731847047806, 0.024444889277219772, 0.35978788137435913, 0.1937347650527954, -0.5651689171791077, 0.17247818410396576, -0.47936001420021057, 0.3616020679473877, 0.7394241094589233, 0.06333810091018677, 0.4110349416732788, -0.13994427025318146, 0.6507564783096313, 0.23592913150787354, 0.1991429477930069, -0.014416980557143688, -0.024463826790452003, -0.5049089789390564, 0.1287802904844284, 0.4789448082447052, 0.4169033169746399, -0.8544553518295288, 0.17259417474269867, 0.05017624422907829, -0.7174153923988342, -0.3276035189628601, 0.6206738948822021, 0.18006107211112976, 0.1808839589357376, 0.007171159144490957, -0.5144272446632385, -0.4828697144985199, -0.5941619873046875, -0.02465355210006237, -0.2532494068145752, -0.19153009355068207, 0.2479029893875122, 0.37353354692459106, -0.03331765532493591, 0.6800609827041626, -0.40183982253074646, -0.2262626737356186, -0.7312247157096863, -0.1097160056233406, 0.22572073340415955, 0.16683009266853333, 0.35143885016441345, -0.7181658148765564, -0.5850099921226501, 0.1248902827501297, -0.6146826148033142, 0.1584511697292328, -0.012268668040633202, 0.2352485954761505, -0.008487154729664326, 0.8774751424789429, -0.30278369784355164, 0.0519118458032608, 0.3542805016040802, 0.20682846009731293, 0.6696657538414001, -0.000028367254344630055, -0.324002742767334, -1.2705771923065186, 0.08220648020505905, 0.10532297939062119, -0.32247233390808105, -0.5555037260055542, -0.07595869898796082, -0.019185416400432587, 0.07120291888713837, -0.8475106358528137, 0.5884208679199219, -0.6963512301445007, -0.2583138048648834, -0.40022143721580505, 0.2683449387550354, -0.4391791522502899, 0.2841642200946808, -0.24358001351356506, 0.7852307558059692, 0.6870501041412354, -0.4656600058078766, 0.4302803575992584, -0.0016645656432956457, -0.48574480414390564, 0.3256154954433441, -0.6060037016868591, 0.14799237251281738, 0.04431549459695816, 0.08431653678417206, -0.7353067994117737, 0.021702449768781662, 0.2085142731666565, -0.24198752641677856, 0.5081910490989685, -0.13530655205249786, -0.8932220339775085, -0.2293655276298523, -0.30534660816192627, 0.04504526033997536, 0.6530166864395142, -0.37475594878196716, 0.6156249046325684, 0.596360445022583, -0.2719714045524597, -0.4886026084423065, -0.17510190606117249, -0.10372702777385712, -0.32018232345581055, -0.027538318186998367, -0.1880476474761963, -0.031726665794849396, -0.2845818102359772, -0.43075084686279297, -0.4223945736885071, 0.0989530086517334, 0.3828117847442627, 0.22073952853679657, 0.15998731553554535, 0.10671324282884598, 0.40682685375213623, -0.16617995500564575, -0.1320173740386963, 0.33873701095581055, -0.1493580937385559, 0.6658859848976135, 0.010767248459160328, -0.47539621591567993, 0.1675628125667572, 0.033475786447525024, 0.596519410610199, -0.4163323640823364, 0.4291437864303589, 0.8950935006141663, -0.21389542520046234, -0.40064388513565063, -0.6702261567115784, -0.1927429586648941, -0.45092520117759705, 0.5251538753509521, -0.2885717451572418, -1.0201818943023682, 0.3880208134651184, -0.7914511561393738, 0.5664239525794983, 0.21626797318458557, 0.8459592461585999, -0.08944801986217499, 0.9279252290725708, 0.9522498250007629, -0.28152456879615784, 0.45265820622444153, -0.41722315549850464, 0.18869951367378235, -1.020034670829773, -0.3489343822002411, -0.5230963230133057, -0.2172788381576538, -0.39165642857551575, -0.4758715331554413, 0.5017721652984619, 0.14041706919670105, 0.05515668913722038, -0.1102079302072525, -0.10678907483816147, 0.2144283652305603, 0.2471524178981781, -0.0015216921456158161, 0.2660587430000305, -0.12148469686508179, -0.28292107582092285, 0.28431689739227295, -0.7577884197235107, -0.5569265484809875, 1.1956537961959839, 0.6084830164909363, 0.8488261103630066, -0.025240881368517876, 0.7886253595352173, 0.04794328659772873, 0.3930347263813019, -1.133584976196289, 0.6001651287078857, 0.3094482421875, -0.530123770236969, -0.38833966851234436, -0.11053337156772614, -1.0895715951919556, 0.4132055640220642, -0.19778907299041748, -0.6329675912857056, -0.11168664693832397, -0.08438243716955185, -0.1144290640950203, 0.4421619474887848, -0.5741348266601562, 0.6223834753036499, -0.637377917766571, -0.5309486389160156, -0.37307918071746826, -0.7608654499053955, 0.28971579670906067, -0.4073490798473358, 0.38608142733573914, -0.13468636572360992, -0.1615748256444931, 0.7725349068641663, -0.025874966755509377, 1.1641777753829956, -0.09268950670957565, -0.49918273091316223, 0.24189889430999756, -0.01232857909053564, 0.4416733682155609, 0.023225225508213043, 0.01523849181830883, 0.08662623167037964, 0.10546961426734924, -0.11328092217445374, -0.5414858460426331, 0.4886065423488617, -0.6757208704948425, -0.7079037427902222, -0.4241293668746948, -0.49881452322006226, -0.41239866614341736, 0.36485013365745544, -0.11520668864250183, 0.34964287281036377, -0.12401796877384186, 0.37555623054504395, 0.784189760684967, -0.24651043117046356, 0.39546364545822144, 0.4446258544921875, -0.5941309332847595, -0.17609666287899017, 0.877402126789093, 0.10855221748352051, 0.2224973440170288, 0.1400117576122284, 0.04153095930814743, -0.16776961088180542, -0.9672473669052124, -0.1406818926334381, 0.5144688487052917, -0.796225905418396, -0.1181677058339119, -0.522124171257019, -0.17375311255455017, -0.08741852641105652, -0.06649966537952423, -0.30735665559768677, 0.07427988201379776, -0.4586426019668579, -0.15326648950576782, 0.0973343551158905, 1.0772533416748047, 0.23308159410953522, 0.1627214103937149, -0.7366689443588257, -0.06687267869710922, 0.21245834231376648, 0.4089600443840027, 0.32496264576911926, -0.19644851982593536, -0.545208215713501, -0.23212140798568726, -0.6116460561752319, -0.6606667041778564, 0.23138238489627838, -0.19551478326320648, 0.8206458687782288, 0.5182777047157288, 0.1124764010310173, 0.3976290822029114, -0.5378240346908569, 0.6944571733474731, 0.29428133368492126, -0.5872783064842224, 0.30664095282554626, -0.21307966113090515, 0.4046822190284729, 0.36476561427116394, 0.7815470695495605, -0.6047083735466003, -0.3682735562324524, -0.6106663346290588, -0.8326277732849121, 0.46735328435897827, -0.24915000796318054, 0.04001797363162041, 0.40629634261131287, 0.19427382946014404, 0.473135769367218, 0.2702903151512146, -0.6042402982711792, -0.13659095764160156, 0.3848489820957184, 0.04707832261919975, -0.229582279920578, -0.19326677918434143, -0.2319549024105072, -0.107572540640831, 0.5568854212760925, -0.22495697438716888, 0.013677159324288368, -0.2502012848854065, -0.4787699580192566, 0.07207490503787994, 0.4707062840461731, 0.1797151267528534, 0.9923041462898254, 0.17457738518714905, 0.07098767161369324, 0.5678563714027405, -0.41403114795684814, 0.19499868154525757, -0.1911923885345459, 0.04056305065751076, -0.1651092767715454, 0.4788392186164856, 0.6936535835266113, 0.2634144425392151, -0.7441344261169434, 0.46585598587989807, 0.1379489153623581, -0.46362927556037903, -0.43828704953193665, 0.14976325631141663, 0.42557385563850403, 0.5346611142158508, 0.45410385727882385, -0.5639379024505615, 0.15595553815364838, -0.5340358018875122, -0.19342584908008575, 0.6411455273628235, -0.510338544845581, -0.3149464726448059, 0.24720042943954468, 0.3619507849216461, -0.2783025801181793, 0.3728395104408264, -0.1254618912935257, -0.42728954553604126, 0.3180559575557709, 0.32491323351860046, 0.8109647631645203, -0.07180752605199814, 0.10821348428726196, 0.21445593237876892, 0.4027506411075592, 0.09821275621652603, 0.18199686706066132, -0.35048407316207886, -0.45244500041007996, -0.584857702255249, -0.7224364280700684, -0.618500292301178, 0.2745196223258972, -0.45622268319129944, 0.38356825709342957, -0.4768531322479248, -0.13163171708583832, -0.22742119431495667, 0.1777649074792862, -0.7125865817070007, -0.12052589654922485, 0.024583157151937485, 1.062625527381897, -0.779546320438385, 0.7944068312644958, 0.9779604077339172, -0.3267495036125183, -0.7697451710700989, -0.16884273290634155, 0.2307087779045105, -0.6075249314308167, 0.6312033534049988, 0.05195959657430649, -0.05340562015771866, 0.13696807622909546, -0.5603552460670471, -0.7634603977203369, 1.1302307844161987, 0.1443011313676834, -0.5244391560554504, -0.16789411008358002, -0.009604865685105324, 0.2664729058742523, -0.22849346697330475, 0.20661447942256927, 0.5031101703643799, 0.160465270280838, 0.15251804888248444, -1.1370494365692139, -0.13496935367584229, -0.0429525189101696, 0.1917465478181839, 0.42766377329826355, -0.5249637365341187, 0.2528732419013977, -0.04960717260837555, -0.3316163122653961, -0.16035647690296173, 0.5395389199256897, 0.10914270579814911, 0.21756625175476074, 0.6909569501876831, 0.18414266407489777, 0.28009697794914246, -0.08933578431606293, 0.6756004095077515, -0.09373995661735535, 0.28565171360969543, 0.8054040670394897, -0.5087070465087891, 0.855124294757843, 0.587539792060852, -0.458196222782135, 0.3438835144042969, 0.8759876489639282, 0.0025106859393417835, 0.18352621793746948, 0.29026955366134644, -0.17283955216407776, -0.4256388545036316, 0.020765239372849464, -0.2206312119960785, 0.440011590719223, 0.4278741776943207, -0.22376392781734467, -0.4781225323677063, 0.28037574887275696, -0.16702495515346527, -0.20385129749774933, -0.27574726939201355, 1.2243422269821167, 0.3353411853313446, -0.27142155170440674, 0.2102503478527069, -0.18675634264945984, 0.5989349484443665, -0.8131266832351685, -0.09801160544157028, 0.152469664812088, -0.0838383212685585, -0.13528014719486237, -0.7232374548912048, 0.11400359123945236, -0.08505728840827942, -0.00045160806621424854, -0.25380295515060425, 0.6911374926567078, -0.16825778782367706, -0.36356422305107117, 0.22149673104286194, 0.9365790486335754, 0.16235847771167755, 0.30943989753723145, -0.7793774008750916, 0.28566721081733704, -0.21609608829021454, -0.12483575940132141, 0.5839630365371704, 0.41068583726882935, -0.051823124289512634, 0.8491972088813782, 0.6303567886352539, 0.1729014664888382, -0.1319166123867035, 0.020178038626909256, 0.9181703925132751, -0.5563690066337585, -0.2526894807815552, -0.6206063628196716, 0.706541121006012, -0.11819881945848465, -0.08754485100507736, 0.9537839293479919, 0.6796534657478333, 1.1769440174102783, -0.043469615280628204, 0.8764471411705017, 0.02141301892697811, 0.8519165515899658, -0.4652278423309326, 0.5551645159721375, -0.5950912833213806, 0.38583534955978394, -0.15814195573329926, -0.9026548266410828, -0.21187032759189606, 0.3065345287322998, -0.550476610660553, 0.1382163166999817, 0.7340796589851379, 0.5542057156562805, -0.08608303964138031, -0.32672610878944397, 0.3960670530796051, 0.06946838647127151, 0.41386258602142334, 0.25365540385246277, 0.9759690761566162, 0.05775799602270126, 0.48569557070732117, -0.18383021652698517, -0.0446501150727272, -0.293832004070282, -0.8151586055755615, -0.8601254224777222, -0.7330383062362671, -0.2507147789001465, -0.06609783321619034, -0.20528875291347504, 1.128097653388977, 0.6960420608520508, -0.49465411901474, -0.7315577864646912, 0.2289724349975586, 0.4548068642616272, -0.051795557141304016, -0.10421573370695114, 0.06887457519769669, -0.6011648774147034, -0.6756318211555481, 0.15900792181491852, 0.3197111487388611, -0.15165303647518158, -0.6928273439407349, -0.0966385006904602, -0.10066704452037811, -0.3852681815624237, 0.891459584236145, 0.3977387547492981, -0.82903653383255, 0.1360561102628708, -0.03403612598776817, 0.08054862171411514, 0.011525859124958515, 1.1395294666290283, -0.726455807685852, 0.36102810502052307, 0.3554999530315399, 0.8366890549659729, 0.6140350103378296, -0.5807697772979736, 0.5266746282577515, -0.5896222591400146, 0.008878794498741627, 0.199809268116951, 0.3553113341331482, 0.38256528973579407, -0.10579903423786163, 0.5549359917640686, 0.017499681562185287, -0.5117033123970032, -1.0990722179412842, 0.4831443428993225, -0.7635106444358826, -0.3664374053478241, 1.122434139251709, 0.09355545043945312, -0.0023322917986661196, -0.3903510272502899, -0.351020872592926, 0.2993858754634857, 0.007300097495317459, 0.5605323910713196, 0.5783037543296814, -0.10024561733007431, -0.34767183661460876, -0.7586174011230469, 0.2885481119155884, -0.00705939345061779, -0.8104608654975891, 0.08463668823242188, 0.49073365330696106, 0.5024704933166504, -0.02119133062660694, 0.28410184383392334, -0.15424402058124542, 0.223252072930336, -0.4620491564273834, 0.07263464480638504, -0.029174743220210075, -0.2574167549610138, -0.5469324588775635, 0.19768066704273224, 0.8587396740913391, 0.18301448225975037 ]
http://arxiv.org/abs/2405.17931v1
http://arxiv.org/pdf/2405.17931v1
Online Merging Optimizers for Boosting Rewards and Mitigating Tax in Alignment
2024-05-28T07:53:40
2024-05-28T07:53:40
Keming Lu, Bowen Yu, Fei Huang, Yang Fan, Runji Lin, Chang Zhou
cs.CL
cs.CL, cs.LG
Effectively aligning Large Language Models (LLMs) with human-centric values while preventing the degradation of abilities acquired through Pre-training and Supervised Fine-tuning (SFT) poses a central challenge in Reinforcement Learning from Human Feedback (RLHF). In this paper, we first discover that interpolating RLHF and SFT model parameters can adjust the trade-off between human preference and basic capabilities, thereby reducing the alignment tax at the cost of alignment reward. Inspired by this, we propose integrating the RL policy and SFT models at each optimization step in RLHF to continuously regulate the training direction, introducing the Online Merging Optimizer. Specifically, we merge gradients with the parameter differences between SFT and pretrained models, effectively steering the gradient towards maximizing rewards in the direction of SFT optimization. We demonstrate that our optimizer works well with different LLM families, such as Qwen and LLaMA, across various model sizes ranging from 1.8B to 8B, various RLHF algorithms like DPO and KTO, and existing model merging methods. It significantly enhances alignment reward while mitigating alignment tax, achieving higher overall performance across 14 benchmarks.
[ -0.7122321724891663, -0.40102240443229675, 0.22150079905986786, 0.14947737753391266, -0.20723873376846313, 0.48914283514022827, -0.48309433460235596, -0.6059740781784058, 0.18635602295398712, 0.5003079771995544, -0.9443531632423401, 0.1644621640443802, -0.4325173497200012, -0.08249934762716293, 0.08249256759881973, 1.1487473249435425, -0.07278948277235031, 0.1831766813993454, -0.3682832419872284, -0.09602267295122147, -0.23498967289924622, -0.6482101082801819, -0.7032517790794373, -0.3337487578392029, 0.5013008713722229, 0.31277984380722046, 0.5418075323104858, 0.7570433020591736, 0.5551167130470276, 0.28253641724586487, -0.026352595537900925, 0.5228881239891052, -0.6345638036727905, 0.12166003882884979, -0.09095680713653564, -0.3140449523925781, -0.36041322350502014, -0.11903023719787598, 0.5954324007034302, 0.2700776755809784, -0.6196234822273254, -0.18169613182544708, 0.25905388593673706, 0.7570677399635315, -0.6383581757545471, -0.002626888919621706, -0.2558702528476715, 0.12377100437879562, 0.1174495741724968, -0.48189666867256165, -0.15983866155147552, -0.8555202484130859, 0.07729188352823257, -0.6521010994911194, -0.1049187034368515, 0.008660583756864071, 1.2164207696914673, 0.7731123566627502, -0.08724281191825867, 0.00931012537330389, -0.7411797046661377, 0.8288421034812927, -0.8078633546829224, 0.4216291606426239, 0.254103422164917, 0.2943929433822632, -0.17829646170139313, -0.2818455994129181, -0.43713730573654175, -0.2496422678232193, -0.09192195534706116, 0.07394188642501831, -0.10979671031236649, 0.36236771941185, 0.0911899209022522, 0.257718026638031, -0.27459225058555603, 0.48881638050079346, -0.3356022238731384, -0.18436715006828308, 0.7309005856513977, 0.1404091715812683, 0.03067047707736492, 0.2353753000497818, -0.5668941736221313, -0.4457054138183594, -0.6509772539138794, 0.40172505378723145, 0.6993426084518433, 0.3848949372768402, 0.04908344894647598, 0.2187497317790985, -0.20641447603702545, 0.8089560270309448, 0.42414766550064087, -0.32406100630760193, -0.006212725304067135, -0.4693189859390259, 0.19999150931835175, 0.06264165788888931, 0.7188258171081543, 0.33782514929771423, 0.2943271994590759, -0.1340808868408203, -0.45862826704978943, -0.04593649134039879, 0.3457576632499695, -0.72966468334198, -0.004591695498675108, 0.09963866323232651, -0.20766407251358032, -0.4348686635494232, 0.11528728902339935, -0.6441647410392761, -0.31507357954978943, -0.5635176301002502, 0.3943660855293274, 0.046391718089580536, -0.1792379915714264, 0.048915911465883255, -0.06490901112556458, 0.4255458116531372, 0.3790793716907501, -1.17139732837677, 0.3200131952762604, 0.8542401790618896, 0.46840018033981323, -0.36281660199165344, -0.341943621635437, -0.9648838043212891, -0.029805414378643036, 0.05270403251051903, 0.7473874092102051, -0.25618934631347656, -0.3011305034160614, 0.006244565360248089, -0.17017588019371033, 0.0181981660425663, -0.5939785838127136, 0.2392604500055313, -0.5602902770042419, 0.47597068548202515, -0.2879403829574585, -0.7771109938621521, -0.04238337650895119, 0.31797879934310913, -0.6883612275123596, 0.9954703450202942, 0.2863028347492218, -0.5423344373703003, 0.45827803015708923, -0.5876316428184509, -0.35954245924949646, 0.12885615229606628, -0.1709824651479721, -0.7048835158348083, -0.0831984132528305, 0.3405643701553345, 0.31414005160331726, -0.21233893930912018, 0.45456138253211975, -0.29644107818603516, -0.4214673638343811, 0.010699521750211716, -0.047196805477142334, 0.5418102145195007, 0.10008156299591064, -0.3468600809574127, 0.616024374961853, -0.4709043502807617, 0.13355164229869843, -0.13180793821811676, -0.809645414352417, 0.02625304087996483, 0.03793179988861084, 0.19974571466445923, 0.3062126934528351, 0.38388383388519287, -0.26914235949516296, 0.5941698551177979, -0.3025414049625397, 0.4806801676750183, 0.7467999458312988, -0.09116644412279129, 0.49127674102783203, -0.4775702655315399, 0.871749222278595, -0.138954296708107, 0.19345024228096008, 0.36217591166496277, -0.39050519466400146, -0.5936227440834045, -0.3440968096256256, 0.5234014391899109, 0.5181654095649719, -0.4730875790119171, 0.7308996915817261, -0.39274701476097107, -0.4138742685317993, -0.9459373950958252, 0.2206742763519287, 0.37746018171310425, 0.30009016394615173, 0.3843410313129425, -0.21729347109794617, -0.3791298568248749, -0.8033034205436707, -0.49692776799201965, 0.04900393635034561, 0.015399294905364513, 0.2591342628002167, 0.2030404806137085, -0.1172884851694107, 1.2108919620513916, -0.32413145899772644, -0.40883561968803406, -0.21481546759605408, 0.4065784811973572, -0.09047399461269379, 0.5992411375045776, 0.303259938955307, -0.6624510288238525, -0.47612935304641724, 0.09087929874658585, -0.08212640881538391, -0.148429274559021, -0.2011808604001999, 0.18344520032405853, 0.2794429361820221, 0.44044509530067444, -0.26731953024864197, 0.13753598928451538, 0.5467572808265686, -0.20355679094791412, 0.15288229286670685, -0.37696993350982666, 0.3139311671257019, -0.8442986011505127, -0.22593587636947632, -0.1383908987045288, -0.5820622444152832, -0.30913302302360535, 0.22349537909030914, 0.18347232043743134, 0.1793336421251297, -0.5487293004989624, 0.4185389280319214, -0.30284032225608826, -0.09076259285211563, -0.30137768387794495, 0.10936619341373444, -0.12707774341106415, 0.8496814370155334, 0.06863592565059662, 0.8195703029632568, -0.009405822493135929, -0.5481448173522949, 0.3528893291950226, 0.08160927146673203, -0.2393103688955307, 0.5153002738952637, -0.3187139630317688, 0.008893315680325031, -0.18921415507793427, 0.4630105495452881, -0.6954236626625061, -0.3115074038505554, 0.19894692301750183, -0.23046036064624786, 0.42128539085388184, -0.06626605987548828, -0.30342909693717957, -0.03997427970170975, -0.650819718837738, 0.3821250796318054, 0.5642484426498413, -0.6953027248382568, 0.6753222346305847, 0.33403438329696655, 0.05960061773657799, -0.6886429786682129, -0.5776579976081848, -0.2111230194568634, -0.4830359220504761, -0.6239105463027954, 0.6750543117523193, -0.08333615958690643, 0.10865174233913422, 0.16633272171020508, 0.30775514245033264, 0.07092482596635818, 0.14821283519268036, -0.13056929409503937, 0.5329527258872986, -0.1247137114405632, -0.11106745898723602, 0.12814658880233765, -0.17645227909088135, -0.2870731055736542, -0.23290781676769257, 0.5582704544067383, -0.08868532627820969, -0.26238560676574707, -0.472554087638855, 0.1018901839852333, 0.41083216667175293, -0.28008052706718445, 0.8451269865036011, 0.7031397223472595, -0.19010132551193237, -0.008677971549332142, -0.6811239719390869, -0.4475057125091553, -0.4365967810153961, 0.38134512305259705, -0.071865513920784, -1.3074214458465576, 0.4384881854057312, -0.06415531039237976, 0.3048739731311798, 0.18556353449821472, 0.44799092411994934, 0.014841827563941479, 1.1211036443710327, 0.5532175898551941, -0.15244905650615692, 0.7170296907424927, 0.032603587955236435, 0.09912290424108505, -0.7854416966438293, -0.05148725211620331, -0.37200239300727844, -0.4278315305709839, -0.8509833812713623, -0.33204537630081177, 0.22851595282554626, 0.4814341366291046, -0.3233240246772766, 0.36852729320526123, -0.6195675134658813, 0.785870373249054, 0.5687891244888306, 0.07653768360614777, 0.27359214425086975, -0.042344462126493454, 0.2108013927936554, -0.1018877848982811, -0.8236200213432312, 0.09649752080440521, 0.823752760887146, 0.3425826132297516, 0.7288735508918762, 0.1121746078133583, 0.9561875462532043, 0.08040156215429306, 0.2868790328502655, -0.876410722732544, 0.19025176763534546, 0.022339653223752975, -0.28184983134269714, -0.35506317019462585, -0.609950840473175, -0.770197331905365, 0.3323723077774048, -0.4351337254047394, -0.5717687010765076, 0.11305159330368042, 0.4556146562099457, -0.7092841267585754, 0.25640788674354553, -0.43631869554519653, 0.7636093497276306, -0.5565541982650757, -0.49829885363578796, -0.48764246702194214, -0.7051154375076294, 0.3580401539802551, -0.03764738887548447, 0.11650066077709198, 0.0012204673839733005, -0.11889243125915527, 0.6773781776428223, -0.5112205743789673, 0.5261611938476562, -0.07078327983617783, -0.0514378659427166, -0.09666067361831665, -0.08732800930738449, 0.7552079558372498, -0.44999033212661743, 0.36809393763542175, -0.026653625071048737, -0.00992896594107151, -0.35230812430381775, -0.5524850487709045, 0.7116038799285889, -0.8994631171226501, -0.45389893651008606, -0.3555131256580353, -0.48013952374458313, -0.4083234667778015, -0.027812356129288673, 0.23380839824676514, 0.2156105786561966, 0.08170810341835022, 0.044745855033397675, 0.47578760981559753, -0.07670510560274124, 0.22824323177337646, 0.3312416970729828, -0.3701135218143463, -0.7625361680984497, 1.1543909311294556, -0.13283313810825348, 0.5847510695457458, 0.39702531695365906, 0.48788365721702576, -0.5841064453125, -0.14446088671684265, -0.40621691942214966, 0.3790915608406067, -0.7115038633346558, -0.37930750846862793, -0.15346327424049377, -0.208614781498909, -0.24677126109600067, -0.4356458783149719, -0.34128519892692566, -0.45999962091445923, -0.38976845145225525, 0.08934196084737778, 0.31208038330078125, 0.8895541429519653, -0.16910330951213837, 0.4304150640964508, -0.9908316731452942, -0.13787952065467834, 0.2989942133426666, 0.3846099078655243, 0.07966629415750504, -0.39986664056777954, -0.2622860372066498, -0.03789835795760155, -0.3686515986919403, -0.5471009612083435, 0.43402373790740967, 0.002678986405953765, 0.4073709547519684, 0.45093676447868347, -0.08557683974504471, 0.8975201845169067, -0.09961061179637909, 0.5795044302940369, 0.3662257492542267, -0.8529256582260132, 0.07230248302221298, -0.3085588216781616, 0.06453317403793335, 0.6997796297073364, 0.3215811848640442, -0.44367527961730957, -0.18879182636737823, -0.47272199392318726, -0.8244962692260742, 0.9665462970733643, -0.0822516530752182, -0.4085792005062103, 0.40937069058418274, 0.21946705877780914, -0.15479068458080292, 0.2925834655761719, -0.6823841333389282, -0.0016217781230807304, -0.05691847950220108, -0.2832197844982147, 0.09609708189964294, 0.11647307872772217, -0.26082780957221985, -0.4623878002166748, 0.7011855840682983, -0.12793394923210144, -0.16864562034606934, -0.1438504457473755, -0.045380525290966034, -0.38228070735931396, 0.21148918569087982, 0.860722541809082, 0.30772989988327026, -0.2616181969642639, -0.3654506206512451, 0.06978210061788559, -0.048370443284511566, 0.1696283370256424, 0.0854451060295105, -0.07406390458345413, -0.6840747594833374, 0.20059774816036224, 1.0123090744018555, 0.5413988828659058, -0.6207433938980103, 0.4517979621887207, -0.1643766611814499, -0.38361573219299316, 0.07468244433403015, 0.18426069617271423, 0.2369905263185501, 0.3039618134498596, -0.0486464761197567, 0.12167318910360336, -0.2443971335887909, -0.20320184528827667, 0.07893603295087814, 0.6056764125823975, -0.4332352578639984, 0.03540583327412605, 0.6776694655418396, 0.39948737621307373, -0.4269922375679016, 0.6440750956535339, -0.13449569046497345, -1.0294578075408936, 0.43334096670150757, 0.3737108111381531, 0.8700383901596069, -0.16430477797985077, -0.0926816537976265, 0.434279203414917, 0.12068281322717667, -0.38186824321746826, 0.03983697667717934, -0.3940223753452301, -0.7080402970314026, -0.5017320513725281, -0.6190481781959534, -0.5847615599632263, -0.1897163689136505, -0.7897664904594421, 0.4592275619506836, -0.489955335855484, -0.028111839666962624, -0.3257298767566681, 0.0929531678557396, -0.48576048016548157, -0.19563567638397217, 0.18867461383342743, 0.43205055594444275, -0.5249069333076477, 0.8015009164810181, 0.4011174738407135, -0.6356981992721558, -1.0676213502883911, -0.10526955872774124, -0.0533563606441021, -0.7063186168670654, 0.6396527886390686, 0.008327214978635311, -0.3022209703922272, 0.33432915806770325, -0.24623343348503113, -0.8449848294258118, 1.0350087881088257, 0.3983379006385803, -0.7400674819946289, -0.18980485200881958, 0.08679424226284027, 0.237467423081398, -0.3777438700199127, 0.12383636087179184, 0.7723441123962402, 0.6442070007324219, 0.11319957673549652, -1.1085116863250732, -0.07420468330383301, 0.20599126815795898, -0.19494260847568512, 0.7540504932403564, -0.5549924969673157, 0.7323182821273804, -0.05369027704000473, -0.22279098629951477, -0.10810742527246475, 0.40577977895736694, 0.20998607575893402, -0.3226258456707001, 0.7030128240585327, 0.8014870882034302, 0.7144569158554077, -0.16535869240760803, 0.9942535161972046, -0.3752700984477997, 0.6308423280715942, 0.9217898845672607, -0.17989522218704224, 0.9696063995361328, 0.6588448286056519, -0.2672644257545471, 0.44131964445114136, 0.7894545793533325, -0.0008088673930615187, 0.47109100222587585, 0.32382526993751526, -0.20574261248111725, -0.4551974833011627, -0.1250297725200653, -0.28353169560432434, 0.08529038727283478, -0.016493210569024086, 0.21960555016994476, -0.2215709239244461, -0.12564171850681305, -0.02925308421254158, 0.0718141719698906, -0.19879384338855743, 1.0125370025634766, -0.24557392299175262, -1.1912802457809448, 0.6402316093444824, -0.03543520346283913, 1.1615583896636963, -0.8532975912094116, 0.015659179538488388, -0.09630947560071945, 0.40472641587257385, -0.3698287308216095, -0.601637601852417, 0.13245640695095062, -0.407513827085495, 0.1294049322605133, -0.40906986594200134, 0.3779195249080658, -0.9392758011817932, -0.034450680017471313, 0.4342210590839386, 0.23359329998493195, -0.2590554356575012, 0.09417932480573654, -0.6819495558738708, 0.06696458160877228, 0.24976825714111328, -0.11969190090894699, 0.6104522943496704, -0.3129498362541199, -0.08343750983476639, 0.5410632491111755, 0.835067868232727, 0.404786616563797, 0.03396386653184891, -0.051185328513383865, 0.7573810815811157, -0.6250753998756409, -0.9563680291175842, -0.7727387547492981, 0.5466079711914062, -0.06220729649066925, -0.4056556224822998, 0.3095875680446625, 0.30213770270347595, 1.0772579908370972, 0.0680716261267662, 0.5256810188293457, 0.28270775079727173, 0.40383675694465637, -0.47903817892074585, 0.7553162574768066, -0.8554262518882751, 0.1892775148153305, 0.05870671197772026, -0.9908192157745361, -0.12369789928197861, 0.6203349232673645, -0.00704710278660059, -0.12864699959754944, 0.39755815267562866, 0.7195954322814941, -0.0913827195763588, -0.08709200471639633, 0.13494263589382172, -0.4115547239780426, 0.46360740065574646, 0.4878844618797302, 0.9065167307853699, -0.0957111343741417, 0.35185807943344116, -0.38135966658592224, -0.10869045555591583, -0.38745424151420593, -1.0131970643997192, -0.6149919033050537, -0.43626338243484497, -0.2969398498535156, -0.3617366552352905, -0.18762989342212677, 1.5754163265228271, 0.7015312314033508, -0.7919825315475464, -0.48800697922706604, -0.17742407321929932, 0.110516257584095, -0.29217374324798584, -0.26328232884407043, 0.2382371723651886, -0.3879281282424927, -0.5744311213493347, 0.3030287027359009, 0.2918120324611664, 0.10198544710874557, -0.6427594423294067, -0.6457147598266602, -0.2294197976589203, 0.12027096748352051, 0.16700142621994019, 0.501989483833313, -1.0001213550567627, -0.206838920712471, -0.20184127986431122, -0.19887343049049377, 0.19477221369743347, 1.061849594116211, -0.8442572355270386, 0.40991342067718506, 0.6390749216079712, 1.2387492656707764, 0.4613121747970581, 0.4085428714752197, 0.7459821105003357, -0.5640366673469543, 0.01565679721534252, 0.31078314781188965, 0.28339701890945435, 0.3935854136943817, -0.42155757546424866, 0.40929973125457764, 0.11329372972249985, -0.6927374005317688, -0.8887642621994019, 0.2022497057914734, -0.7978683710098267, -0.12631657719612122, 0.8010125160217285, 0.021598028019070625, 0.023450568318367004, 0.09524324536323547, -0.05198902636766434, 0.2865492105484009, -0.39612045884132385, 0.6780531406402588, 0.8062694072723389, -0.4145123362541199, -0.04889677092432976, -0.10851764678955078, 0.9827758073806763, 0.6624040007591248, -0.9861466288566589, 0.03452841192483902, 0.3534484803676605, 0.06766311079263687, -0.022682655602693558, 0.42665329575538635, 0.19609519839286804, 0.38306185603141785, -0.4650349020957947, 0.17072002589702606, -0.20626300573349, -0.11117704212665558, -0.7552905678749084, -0.15558718144893646, 0.17939704656600952, -0.06159709393978119 ]
http://arxiv.org/abs/2405.17927v1
http://arxiv.org/pdf/2405.17927v1
The Evolution of Multimodal Model Architectures
2024-05-28T07:48:15
2024-05-28T07:48:15
Shakti N. Wadekar, Abhishek Chaurasia, Aman Chadha, Eugenio Culurciello
cs.AI
cs.AI, cs.CL, cs.CV, cs.LG, eess.AS
This work uniquely identifies and characterizes four prevalent multimodal model architectural patterns in the contemporary multimodal landscape. Systematically categorizing models by architecture type facilitates monitoring of developments in the multimodal domain. Distinct from recent survey papers that present general information on multimodal architectures, this research conducts a comprehensive exploration of architectural details and identifies four specific architectural types. The types are distinguished by their respective methodologies for integrating multimodal inputs into the deep neural network model. The first two types (Type A and B) deeply fuses multimodal inputs within the internal layers of the model, whereas the following two types (Type C and D) facilitate early fusion at the input stage. Type-A employs standard cross-attention, whereas Type-B utilizes custom-designed layers for modality fusion within the internal layers. On the other hand, Type-C utilizes modality-specific encoders, while Type-D leverages tokenizers to process the modalities at the model's input stage. The identified architecture types aid the monitoring of any-to-any multimodal model development. Notably, Type-C and Type-D are currently favored in the construction of any-to-any multimodal models. Type-C, distinguished by its non-tokenizing multimodal model architecture, is emerging as a viable alternative to Type-D, which utilizes input-tokenizing techniques. To assist in model selection, this work highlights the advantages and disadvantages of each architecture type based on data and compute requirements, architecture complexity, scalability, simplification of adding modalities, training objectives, and any-to-any multimodal generation capability.
[ -0.4667172431945801, -0.6949948072433472, 0.4963432550430298, 0.37220272421836853, 0.07465934753417969, 0.0546598918735981, 0.07239368557929993, -0.438181072473526, 0.18900281190872192, 0.18485070765018463, -0.3709982931613922, -0.20617415010929108, -0.45568224787712097, -0.14466592669487, -0.2656421661376953, 0.5400288105010986, -0.09190862625837326, 0.4219490587711334, -0.36711862683296204, -0.0806499645113945, -0.5584941506385803, -0.5913103222846985, -0.5184189677238464, -0.11436702311038971, 0.7691677808761597, 0.041822418570518494, 0.747084379196167, 0.5990338921546936, 0.5376651287078857, 0.3632183372974396, 0.030841784551739693, 0.22982527315616608, -0.018624775111675262, 0.0847984179854393, 0.12234289199113846, -0.04741910845041275, -0.761155903339386, -0.12327944487333298, 0.5205833911895752, 0.5496013760566711, 0.07204119116067886, 0.3961014449596405, -0.2627425491809845, 0.3432272672653198, -0.7868818640708923, 0.22561484575271606, -0.27582576870918274, 0.15799018740653992, -0.4004712402820587, -0.0990402102470398, -0.4319536089897156, 0.040208276361227036, 0.044711317867040634, -0.21104630827903748, -0.14734555780887604, 0.0344119518995285, 0.3317614495754242, 0.17470994591712952, -0.8491100072860718, -0.2294994592666626, -0.6437825560569763, 0.4028942584991455, -0.5376642346382141, 0.8079908490180969, 0.04674581438302994, 0.4426860213279724, 0.10999558120965958, -0.7793158888816833, -0.4491679072380066, -0.4777123034000397, 0.006241020746529102, 0.12381703406572342, -0.08543910086154938, 0.3152093291282654, -0.1503736525774002, 0.30789270997047424, -0.6484168767929077, 0.29586878418922424, -0.433468759059906, -0.18528176844120026, 0.18394255638122559, 0.3141474723815918, 0.3180462121963501, -0.412894606590271, -0.6062543392181396, 0.006062452681362629, -0.4750119745731354, 0.2031390517950058, 0.2613363564014435, 0.20480766892433167, -0.38850510120391846, 0.5916235446929932, -0.047644395381212234, 0.8716780543327332, 0.22697941958904266, -0.20194098353385925, 0.29861941933631897, -0.7083193063735962, -0.310359925031662, -0.1609785109758377, 0.533112108707428, 0.23655308783054352, -0.1658676713705063, -0.1322348564863205, -0.33906054496765137, 0.17586591839790344, 0.5045958161354065, -0.547650158405304, -0.1603611409664154, 0.18447734415531158, -1.0820330381393433, -0.4632023572921753, -0.38210415840148926, -0.7590880393981934, -0.37856945395469666, -0.42983028292655945, 0.5671996474266052, -0.3627074658870697, -0.5585688948631287, 0.19682173430919647, -0.2252674251794815, 0.29249417781829834, 0.27926579117774963, -0.9499767422676086, -0.023144856095314026, 0.37246447801589966, 0.7311241626739502, -0.21747490763664246, -0.07874533534049988, 0.13016989827156067, 0.03163932263851166, -0.38219067454338074, 0.6522228121757507, -0.8437603116035461, -0.2822432518005371, 0.1318710744380951, -0.24635662138462067, -0.33671504259109497, -0.12841308116912842, 0.43673980236053467, -0.8869531750679016, 0.18220941722393036, 0.22956719994544983, -0.23243312537670135, -0.6435947418212891, 0.514462947845459, -0.7947379350662231, 0.625229001045227, 0.1476045697927475, -0.5393816232681274, 0.36304396390914917, -1.0855368375778198, -0.24612340331077576, 0.1039373129606247, -0.3772640824317932, -0.2692647874355316, 0.4024569094181061, 0.05328827723860741, 0.6248742341995239, -0.19553795456886292, 0.30366671085357666, -0.709838330745697, 0.005720427725464106, 0.2789548337459564, -0.6195633411407471, 0.4848844110965729, 0.4623001515865326, -0.12707558274269104, 0.23529601097106934, -1.016777515411377, -0.13915544748306274, 0.05786614865064621, -0.5399250388145447, 0.06377676129341125, 0.10540947318077087, 0.25497859716415405, 0.5936842560768127, 0.34094685316085815, -0.36296921968460083, 0.15399962663650513, 0.24761369824409485, 0.6378680467605591, 0.7462244629859924, 0.07561520487070084, 0.5957239866256714, -0.3923649191856384, 0.7108700275421143, 0.4709920585155487, 0.6137425899505615, -0.5294879674911499, -0.43022996187210083, -0.5992415547370911, -0.6365065574645996, 0.19392459094524384, 0.2941262722015381, -0.9179038405418396, -0.20022480189800262, -0.3369728922843933, -0.5207699537277222, -0.4517113268375397, -0.1749102920293808, 0.4786407947540283, 0.26096588373184204, 0.289269357919693, -0.09181498736143112, -0.588463544845581, -1.0968403816223145, 0.34037619829177856, 0.04982471466064453, 0.48832711577415466, 0.4517713487148285, 0.3300665616989136, -0.3612841069698334, 0.5326567888259888, 0.030592849478125572, 0.24894030392169952, -0.1791824996471405, -0.062094345688819885, 0.01801951602101326, 0.5731387734413147, 0.8907196521759033, -1.0606228113174438, -0.07741154730319977, -0.14293299615383148, -0.6744876503944397, 0.5917403697967529, -0.2541569769382477, 0.11303788423538208, -0.09446510672569275, 0.22646589577198029, -0.818488359451294, 0.21784037351608276, 0.610185444355011, -0.17466387152671814, 0.52405846118927, 0.0856521874666214, 0.2940479516983032, -1.1684861183166504, 0.11052644997835159, -0.16204595565795898, 0.17853623628616333, -0.8810373544692993, 0.16913825273513794, 0.26380854845046997, -0.28803497552871704, -0.6619070768356323, 0.47615429759025574, -0.5695663690567017, -0.3773033618927002, 0.1772141456604004, -0.1818145215511322, 0.19809727370738983, 0.6761762499809265, 0.028703726828098297, 0.4337466061115265, 0.8618788123130798, -0.8689782023429871, 0.42599615454673767, 0.18634434044361115, -0.41616925597190857, 0.18198364973068237, -0.394331693649292, 0.18774214386940002, -0.2124543935060501, 0.3279447555541992, -1.2112247943878174, -0.2587718963623047, 0.21692578494548798, -0.6790830492973328, 0.4052448868751526, -0.05123390257358551, -0.26264771819114685, -0.33337217569351196, -0.37036848068237305, 0.950944721698761, -0.08643919974565506, -0.5230140089988708, 1.1120336055755615, -0.04611615464091301, 0.11203552782535553, -0.4646984338760376, -0.6686155796051025, 0.10534600168466568, -0.18838359415531158, -0.8624832630157471, 0.2279588282108307, -0.31410181522369385, -0.04398880898952484, -0.17602640390396118, 0.06541132926940918, -0.08128530532121658, 0.09327945113182068, 0.43652215600013733, 0.5960436463356018, -0.6599580645561218, 0.08205404877662659, -0.019490346312522888, 0.22420193254947662, -0.197964608669281, -0.044021155685186386, 0.6452933549880981, 0.21426977217197418, -0.3272857367992401, -0.6536049246788025, 0.4911535084247589, 1.033156156539917, -0.6313428282737732, 0.47622355818748474, 0.5783913135528564, -0.12276067584753036, 0.02619531750679016, -0.5110121369361877, 0.12634451687335968, -0.4847148060798645, 0.47190865874290466, -0.7464777827262878, -0.7087547779083252, 0.26591843366622925, -0.04154152423143387, 0.14429932832717896, 0.11465989798307419, 0.8082500100135803, -0.014081483706831932, 1.2471076250076294, 0.35657230019569397, 0.14782488346099854, 0.657509982585907, -0.07335472106933594, 0.1223866194486618, -0.9552562832832336, -0.5717558860778809, -0.36086735129356384, -0.4808705449104309, -0.6165220141410828, -0.4692566692829132, 0.22474323213100433, -0.39594778418540955, -0.3287782371044159, 0.27418893575668335, -0.4283417761325836, -0.08174195140600204, 0.31498783826828003, 0.043652355670928955, -0.1130884438753128, -0.19588278234004974, -0.12669803202152252, 0.34025701880455017, -0.6921224594116211, -0.26622867584228516, 1.346387505531311, 0.657386064529419, 0.6370542049407959, 0.34024327993392944, 0.44088196754455566, 0.49667641520500183, 0.06059800833463669, -0.7302998900413513, 0.3801848292350769, -0.18373675644397736, -0.9091147184371948, 0.1502683162689209, -0.16120469570159912, -0.5970099568367004, 0.38630411028862, -0.3279939293861389, -0.3426309823989868, 0.7990695238113403, 0.16423334181308746, -0.626858651638031, 0.25189995765686035, -0.751853883266449, 0.9493848085403442, -0.4644037187099457, 0.03658797964453697, -0.08552752435207367, -0.6181456446647644, 0.6680256128311157, -0.009324317798018456, 0.30089613795280457, 0.3350141644477844, -0.08423423022031784, 0.18071629106998444, 0.5543054938316345, 0.7576655745506287, -0.1274227499961853, -0.012470215559005737, 0.1296304613351822, 0.34640324115753174, 0.22621051967144012, -0.04747004061937332, 0.0704098716378212, 0.18615640699863434, -0.24017813801765442, -0.1906067281961441, -0.4374147057533264, 0.4820873737335205, -0.9676882028579712, -0.2145141065120697, 0.057606879621744156, -0.39905062317848206, -0.2945079803466797, 0.0915907770395279, 0.024871788918972015, 1.1578742265701294, -0.07562282681465149, 0.5153836607933044, 0.5309396982192993, -0.16270042955875397, 0.8439348340034485, 0.28898248076438904, -0.15591001510620117, -0.466657817363739, 0.8297799825668335, -0.13187718391418457, 0.33290818333625793, 0.721039354801178, -0.21944594383239746, -0.35023340582847595, -0.7573770880699158, -0.6377506852149963, -0.2511763572692871, -0.7380934953689575, -0.2080967128276825, -0.7885138988494873, -0.2712060511112213, -0.7803240418434143, -0.1535932421684265, -0.4646055996417999, -0.5331932902336121, -0.38588830828666687, -0.3249293267726898, -0.21237598359584808, 0.6545546054840088, 0.010760068893432617, 0.17240427434444427, -0.6745181679725647, 0.5039095878601074, 0.4365355372428894, 0.2752709984779358, 0.2988959848880768, -0.38664138317108154, -0.06897042691707611, 0.0009209018317051232, -0.3471895754337311, -0.7501776218414307, 0.0624227374792099, 0.2247351109981537, 0.6321355104446411, 0.7877341508865356, -0.6480130553245544, 0.6575145125389099, -0.4504174292087555, 1.0831904411315918, 0.4540942907333374, -0.4920880198478699, 0.1278604120016098, -0.3976005017757416, 0.09371525794267654, 0.19559399783611298, 0.3498702347278595, -0.36515310406684875, 0.3240125775337219, -0.2813540995121002, -0.503326952457428, 0.5596030354499817, -0.2545403242111206, 0.2932971715927124, -0.17508426308631897, 0.2550106644630432, 0.11151110380887985, 0.30884024500846863, -0.9478352665901184, -0.1722404509782791, -0.8552405834197998, -0.06792909651994705, -0.09285885095596313, -0.20402440428733826, -0.10159526020288467, -0.03702070564031601, 0.1435932219028473, 0.004366748034954071, 0.45611363649368286, -0.2151459902524948, -0.22135335206985474, 0.3681965172290802, 0.32872524857521057, 1.2168697118759155, 0.6146132946014404, -0.10371098667383194, 0.2495937943458557, -0.3400442600250244, -0.07111596316099167, -0.011462262831628323, -0.332698792219162, 0.04810338094830513, -0.15770605206489563, 0.3775154650211334, 1.2159647941589355, 0.42363613843917847, -0.2688813805580139, 0.5156678557395935, 0.09245484322309494, -0.23216649889945984, -0.3664512634277344, 0.03684968873858452, -0.01581604778766632, 0.5227052569389343, 0.010016975924372673, 0.39522600173950195, 0.30499377846717834, -0.619045078754425, 0.018485086038708687, 0.4540828764438629, -0.1274106353521347, -0.6435673832893372, 0.6258497834205627, 0.3134555220603943, -0.3198062777519226, 0.5511276721954346, 0.005938468500971794, -0.02291475608944893, 0.5170571804046631, 0.5393081307411194, 1.0309492349624634, -0.16952182352542877, 0.3960420489311218, 0.2444836050271988, 0.04918860271573067, 0.3399001359939575, 0.1488296389579773, -0.3247022032737732, -0.8641844391822815, -0.21216200292110443, -0.7996610999107361, 0.013692306354641914, 0.0329647958278656, -0.5588204860687256, 0.06732720881700516, -0.5962300896644592, -0.3875010311603546, 0.25236213207244873, -0.6330317854881287, -0.7988038659095764, 0.2563660144805908, 0.7211053371429443, 0.9930121898651123, -0.48244595527648926, 0.657680869102478, 0.8832395672798157, -0.5750610828399658, -0.5879369378089905, -0.6159569025039673, 0.17724305391311646, -1.0287071466445923, 0.9322895407676697, -0.10623036324977875, -0.1150338277220726, -0.05875050649046898, -0.3946259617805481, -1.0550633668899536, 1.37970769405365, -0.14267507195472717, -0.23938733339309692, -0.6385350823402405, 0.050598978996276855, 0.21297253668308258, -0.8790844678878784, 0.39454805850982666, 0.14425161480903625, 0.5813856720924377, 0.1211257353425026, -0.7883467078208923, -0.09090711921453476, -0.2008567601442337, 0.5917032361030579, 0.17335458099842072, -0.7692822813987732, 1.2309935092926025, 0.005269584245979786, -0.036748453974723816, 0.17367662489414215, 0.2391326129436493, -0.07668429613113403, 0.09231235086917877, 0.4264426827430725, 0.5167620778083801, 0.010419041849672794, 0.135210320353508, 0.9339157342910767, -0.4971971809864044, -0.04022110626101494, 0.8448774218559265, -0.06139323487877846, 0.6216027736663818, 0.3990306556224823, 0.2196960300207138, 0.5646194219589233, 0.8602549433708191, -0.22662709653377533, 0.6559153199195862, -0.08863573521375656, -0.11618672311306, -0.4030715525150299, -0.06411789357662201, -0.47256144881248474, 1.111937165260315, 0.3845731019973755, -0.45472651720046997, -0.29934361577033997, 0.26712360978126526, -0.1022704467177391, -0.5012694001197815, -0.6325977444648743, 0.7744502425193787, -0.2755630910396576, -0.5991386771202087, 0.26656144857406616, 0.15595899522304535, 0.6127535104751587, -0.7054443359375, 0.027404773980379105, -0.2204839140176773, 0.008589347824454308, -0.20516721904277802, -0.29025229811668396, -0.10960415750741959, -0.4161037504673004, -0.3670121431350708, -0.39355233311653137, 0.5345871448516846, -0.1200936883687973, -0.27588218450546265, 0.2730935513973236, 0.49797898530960083, -0.24754339456558228, 0.09818869829177856, -0.7550281882286072, 0.2617211937904358, -0.2968018054962158, -0.3263721764087677, 0.44402629137039185, 0.22903364896774292, -0.07678525149822235, 0.6876837611198425, 0.7221786975860596, -0.26251134276390076, 0.5420420169830322, 0.14982938766479492, 0.9279301762580872, -0.582344114780426, -0.35995492339134216, -0.6839221119880676, 0.7577099800109863, 0.1959707885980606, -0.45056965947151184, 0.4859194755554199, 0.47147634625434875, 0.37797632813453674, -0.18391461670398712, 0.3398742377758026, -0.15796169638633728, -0.045840755105018616, -0.47104135155677795, 0.4063838720321655, -0.7098711729049683, -0.23216354846954346, -0.1637112945318222, -0.7696195244789124, -0.15349456667900085, 0.14497433602809906, 0.07930909842252731, 0.2291145771741867, 0.4838877022266388, 0.7040546536445618, -0.16850680112838745, 0.0830666646361351, 0.5493096709251404, 0.06808875501155853, 0.3064102530479431, 0.36100417375564575, 1.0202438831329346, -0.035504795610904694, 0.405377596616745, 0.04396622255444527, -0.3158186078071594, -0.26391804218292236, -0.5713624358177185, -0.695279598236084, -0.6225998997688293, -0.059065110981464386, 0.052561696618795395, -0.3292757570743561, 0.708662211894989, 1.0151768922805786, -0.502465546131134, -0.12726765871047974, 0.37576812505722046, -0.09138825535774231, -0.18589571118354797, -0.22302591800689697, 0.16198323667049408, -0.42825251817703247, -0.29290398955345154, 0.6505064964294434, 0.5825158357620239, 0.033072520047426224, -0.5996865034103394, 0.10600432753562927, -0.3601737320423126, 0.3627363443374634, 0.8912284970283508, 0.17187784612178802, -0.7261440753936768, -0.3595965504646301, 0.27545225620269775, -0.043998025357723236, 0.15747900307178497, 0.9155109524726868, -0.39906230568885803, 0.7100850939750671, 0.3855598568916321, 0.6881615519523621, 0.34949320554733276, -0.26611316204071045, 0.23011387884616852, -0.5023179054260254, 0.1552869975566864, 0.2200891077518463, 0.6180791258811951, 0.08847266435623169, -0.06727100908756256, 0.08235276490449905, 0.06984720379114151, -0.4336789548397064, -0.6720063090324402, 0.4934908449649811, -1.204046368598938, -0.295610636472702, 0.947077214717865, 0.14487655460834503, -0.17990632355213165, -0.039111506193876266, -0.0638042613863945, -0.07833728194236755, -0.16806291043758392, 0.7050736546516418, 0.7349303364753723, -0.41596320271492004, -0.4169773459434509, -0.5009412169456482, 0.3057865500450134, 0.011729964055120945, -0.465915322303772, -0.4320056736469269, 0.7088457345962524, 0.19166071712970734, 0.5561915040016174, 0.5503896474838257, -0.410826176404953, 0.5467317700386047, 0.18470166623592377, 0.13737629354000092, -0.38448479771614075, -0.5975434184074402, -0.2968328893184662, 0.613502562046051, -0.17012733221054077, -0.657900333404541 ]
http://arxiv.org/abs/2405.17915v1
http://arxiv.org/pdf/2405.17915v1
Long Context is Not Long at All: A Prospector of Long-Dependency Data for Large Language Models
2024-05-28T07:36:56
2024-05-28T07:36:56
Longze Chen, Ziqiang Liu, Wanwei He, Yunshui Li, Run Luo, Min Yang
cs.CL
cs.CL
Long-context modeling capabilities are important for large language models (LLMs) in various applications. However, directly training LLMs with long context windows is insufficient to enhance this capability since some training samples do not exhibit strong semantic dependencies across long contexts. In this study, we propose a data mining framework \textbf{ProLong} that can assign each training sample with a long dependency score, which can be used to rank and filter samples that are more advantageous for enhancing long-context modeling abilities in LLM training. Specifically, we first use delta perplexity scores to measure the \textit{Dependency Strength} between text segments in a given document. Then we refine this metric based on the \textit{Dependency Distance} of these segments to incorporate spatial relationships across long-contexts. Final results are calibrated with a \textit{Dependency Specificity} metric to prevent trivial dependencies introduced by repetitive patterns. Moreover, a random sampling approach is proposed to optimize the computational efficiency of ProLong. Comprehensive experiments on multiple benchmarks indicate that ProLong effectively identifies documents that carry long dependencies and LLMs trained on these documents exhibit significantly enhanced long-context modeling capabilities.
[ -0.4467196464538574, -0.6692542433738708, 0.964201033115387, 0.547124445438385, -0.3263416588306427, -0.3450048863887787, -0.5891780853271484, -0.7809926271438599, 0.26161515712738037, 0.7321233749389648, -0.4953867495059967, -0.7764378190040588, -0.604674220085144, 0.12158312648534775, -0.2644326984882355, 1.0007270574569702, -0.1348312646150589, -0.0921383649110794, -0.4729219079017639, -0.33366823196411133, -0.4035892188549042, -0.4612548351287842, -0.29753658175468445, -0.20018555223941803, 0.750385582447052, 0.32640090584754944, 0.36700132489204407, 0.4605277180671692, 0.17944283783435822, 0.2617044150829315, -0.15661829710006714, -0.06194799020886421, -0.6344867944717407, 0.21609950065612793, -0.21355415880680084, -0.43785032629966736, -0.4635237455368042, -0.13168860971927643, 0.7494906783103943, 0.8880732655525208, 0.1733657717704773, -0.08890136331319809, 0.16947124898433685, 0.6738147735595703, -0.48104092478752136, 0.3090539872646332, -0.4313492774963379, -0.1310826987028122, -0.6214675903320312, -0.18573223054409027, -0.31678831577301025, 0.19630374014377594, 0.400618314743042, -0.3898482024669647, 0.16538572311401367, 0.0874282494187355, 0.6706943511962891, 0.08584310859441757, -0.6953207850456238, -0.22535118460655212, -0.5771864056587219, 1.1068809032440186, -0.5884382724761963, 0.2494117021560669, 0.5640510320663452, 0.3434624671936035, -0.5310834050178528, -0.4496411681175232, -0.30669641494750977, -0.34589603543281555, -0.202477365732193, -0.10979702323675156, 0.34260642528533936, 0.20155739784240723, 0.2057507038116455, 0.21208655834197998, -0.23527230322360992, 0.40431469678878784, -0.42115846276283264, 0.14171920716762543, 0.33852869272232056, 0.05724457651376724, 0.10203356295824051, -0.2971508800983429, -0.6692325472831726, 0.33255618810653687, -0.780092716217041, 0.18718132376670837, 0.14306503534317017, 0.5205371379852295, -0.04024224355816841, 0.3713013231754303, -0.38067811727523804, 0.778678297996521, -0.22488296031951904, -0.24011898040771484, 0.24140772223472595, 0.07157013565301895, -0.1706521362066269, -0.04998483881354332, 0.5864996910095215, 0.1895805299282074, 0.369355171918869, -0.48277074098587036, -0.2860907316207886, -0.4557850658893585, 0.18397924304008484, -0.9697321057319641, 0.0628608912229538, 0.2280755192041397, -0.13931897282600403, 0.0907207727432251, 0.08987102657556534, -0.6904125213623047, -0.3056606948375702, -0.6160783767700195, 0.15574420988559723, -0.39360952377319336, -0.011591622605919838, 0.07833284139633179, 0.13277117908000946, -0.01841479353606701, 0.12276140600442886, -0.7725619077682495, 0.08507691323757172, 0.6920380592346191, 0.8407294750213623, -0.3736884295940399, -0.6831920742988586, -0.5553710460662842, 0.20820491015911102, -0.2554805278778076, 0.9070147275924683, -0.6729057431221008, -0.3348652422428131, 0.046851418912410736, 0.3936256468296051, 0.18561680614948273, -0.5839173793792725, 0.6637487411499023, -0.6968487501144409, 0.2549859881401062, -0.25370851159095764, -0.7936757206916809, -0.1775992512702942, 0.13990798592567444, -0.9078489542007446, 0.9781914949417114, 0.6154998540878296, -0.8006928563117981, 0.6741968989372253, -0.5120126008987427, -0.5763939023017883, 0.23569151759147644, -0.3320484161376953, -0.32393670082092285, 0.004740934818983078, 0.0887686088681221, 0.6544958353042603, -0.2349429428577423, 0.6430502533912659, -0.5753610134124756, -0.6614322066307068, -0.15681986510753632, -0.026692736893892288, 0.5104227066040039, -0.21676410734653473, -0.41718629002571106, 0.14569495618343353, -0.9877877831459045, -0.22512343525886536, -0.218247190117836, -0.7997308969497681, -0.6567105650901794, 0.20688214898109436, 0.1864621788263321, 0.16815872490406036, 0.23939429223537445, -0.4846276342868805, 0.09710725396871567, -0.5104691386222839, 0.23382721841335297, 0.8188241124153137, -0.15306097269058228, 0.7699438333511353, -0.3243526220321655, 0.4301978051662445, 0.18872693181037903, -0.15432678163051605, -0.05917228385806084, -0.04847612604498863, -0.6737399697303772, -0.7596874833106995, 0.19254764914512634, 0.3818208873271942, -0.4537734091281891, 1.0065064430236816, -0.7484405636787415, -0.22535404562950134, 0.11610471457242966, 0.2858262062072754, 0.04068627581000328, 0.29372525215148926, 0.46017029881477356, -0.37258070707321167, -0.8982784748077393, -0.8962056040763855, -0.03100971318781376, 0.16760382056236267, -0.18758410215377808, 0.24548795819282532, 0.5242021679878235, -0.380807101726532, 1.5832139253616333, -0.4088986814022064, -0.659203827381134, -0.19255639612674713, -0.2444540113210678, 0.5098456740379333, 0.207601860165596, 0.6127553582191467, -0.5425918102264404, -0.36910635232925415, -0.4685075283050537, -0.8185399770736694, -0.08335366100072861, -0.0076920101419091225, -0.10971357673406601, 0.1750287413597107, 0.6244593262672424, -0.689573347568512, 0.2102346569299698, 0.510136067867279, -0.40108051896095276, 0.6222032904624939, -0.20050358772277832, -0.24531780183315277, -0.9827499389648438, 0.16393570601940155, 0.0972534567117691, -0.3588142395019531, -0.6029391884803772, -0.17998173832893372, -0.07390941679477692, -0.011412523686885834, -0.5008776187896729, 0.9676026105880737, -0.37110769748687744, 0.08518926799297333, -0.3516225218772888, -0.09651627391576767, 0.07532836496829987, 0.4534912109375, 0.2233828753232956, 0.5491400361061096, 0.41137340664863586, -0.6216938495635986, 0.2070566564798355, -0.045155007392168045, -0.882712721824646, 0.4907894730567932, -0.42925626039505005, -0.12222294509410858, -0.15737304091453552, 0.7173796892166138, -0.7149681448936462, -0.28455790877342224, -0.15411555767059326, -0.0033493891824036837, 0.3361159861087799, -0.19807645678520203, -0.495491087436676, -0.11840122193098068, -0.25092199444770813, 0.35881471633911133, 0.17358370125293732, -0.788846492767334, 0.4967997670173645, 0.1418897807598114, -0.07714501023292542, -0.6515994071960449, -0.6028138399124146, 0.03691106289625168, -0.5731196999549866, -0.7699518203735352, 0.469204306602478, 0.13938267529010773, -0.1299218386411667, -0.1515170782804489, -0.05029639974236488, 0.09816557914018631, 0.06880569458007812, 0.5675058364868164, -0.0793486163020134, -0.07078278064727783, 0.46583738923072815, -0.34945398569107056, -0.19692082703113556, 0.11463315039873123, -0.18704470992088318, 0.49219968914985657, 0.15100963413715363, -0.061269212514162064, 0.1491401195526123, 0.6484665274620056, 0.7303863763809204, 0.10280954837799072, 0.9445759654045105, 0.3513919711112976, -0.28045886754989624, -0.5795058608055115, -0.5606100559234619, -0.09019432961940765, -0.4424498677253723, 0.7144882678985596, -0.5705090761184692, -1.1749552488327026, 0.551459014415741, -0.10175132006406784, -0.0373445525765419, 0.25843197107315063, 0.30692699551582336, -0.020693305879831314, 0.5845863819122314, 0.7947285771369934, -0.5970619320869446, 0.7347913980484009, -0.06764175742864609, 0.2989223599433899, -0.7096858620643616, -0.06577009707689285, -0.16600126028060913, -0.18128490447998047, -0.3739568293094635, -0.34433555603027344, 0.22903721034526825, 0.397860050201416, -0.36659812927246094, 0.13755947351455688, -0.09025898575782776, 0.6645064949989319, 0.3335181772708893, 0.05817233398556709, -0.006165891885757446, 0.19838020205497742, 0.02805967815220356, 0.014938216656446457, -0.33465927839279175, -0.3319053649902344, 0.9960581660270691, 0.5175000429153442, 0.46107909083366394, 0.003149016760289669, 0.7233249545097351, -0.00009635497553972527, 0.16441377997398376, -0.9002768397331238, 0.648235023021698, -0.4298401474952698, -0.622492253780365, -0.5689393877983093, -0.4695933163166046, -1.1352081298828125, -0.14237581193447113, -0.024637257680296898, -0.7128540873527527, 0.06270647794008255, -0.3459796607494354, -0.21555212140083313, 0.1317235231399536, -0.379163920879364, 0.5944275856018066, -0.2748667597770691, -0.40208959579467773, 0.05586840584874153, -0.45113077759742737, 0.1809745579957962, -0.2876439690589905, 0.2536466419696808, -0.18629573285579681, 0.13697870075702667, 0.847859263420105, -0.4533710181713104, 0.9466045498847961, -0.3474958539009094, -0.1843918114900589, 0.14802345633506775, -0.10861819982528687, 0.49819061160087585, 0.044461481273174286, -0.15182021260261536, 0.12168112397193909, -0.19624866545200348, -0.630679190158844, -0.4983151853084564, 0.923558235168457, -0.6548374891281128, -0.6486973166465759, -0.30651095509529114, -0.4231965243816376, -0.3746601641178131, 0.3442745506763458, 0.3006313443183899, 0.3255312144756317, -0.0736449807882309, 0.3870786428451538, 0.40949147939682007, -0.18493497371673584, 0.38370585441589355, 0.44335636496543884, -0.17659911513328552, -0.19775696098804474, 0.7548543810844421, 0.36750587821006775, -0.07345400750637054, 0.37947696447372437, 0.08070770651102066, -0.32071927189826965, -0.4152807593345642, -0.12374173104763031, 0.2529138922691345, -0.9383752942085266, 0.01337438728660345, -0.4355151951313019, -0.29904070496559143, -0.22075830399990082, -0.19573600590229034, -0.16625986993312836, -0.04768297076225281, -0.33434075117111206, -0.11811576783657074, 0.5037634968757629, 0.4386347532272339, 0.2835735082626343, 0.28773820400238037, -0.6783549785614014, 0.08475430309772491, 0.38309431076049805, 0.7722492218017578, 0.09988546371459961, -0.28129997849464417, -0.5718507766723633, -0.4507342278957367, -0.000658738543279469, -0.5003605484962463, 0.25882694125175476, 0.2626374065876007, 0.5272549390792847, 0.40163078904151917, 0.04030817374587059, 0.6026354432106018, -0.47206252813339233, 0.7909060716629028, 0.12253473699092865, -0.6966818571090698, 0.37450066208839417, -0.5000144243240356, 0.5173242688179016, 0.715735673904419, 0.41368862986564636, -0.20060113072395325, -0.25563061237335205, -0.3084307909011841, -1.3505418300628662, 0.5854442715644836, -0.15964655578136444, 0.06624366343021393, -0.14295774698257446, 0.5200256109237671, 0.10453832149505615, -0.08799996972084045, -0.7595936059951782, 0.13207101821899414, 0.16695661842823029, -0.18201594054698944, -0.3508662283420563, -0.5792805552482605, -0.026263592764735222, -0.17474396526813507, 0.5076325535774231, -0.13249850273132324, -0.05706508085131645, 0.11371643841266632, -0.2567146122455597, 0.1801125854253769, 0.4393322169780731, 0.3199753761291504, 0.9552173614501953, -0.5181276798248291, 0.18183813989162445, 0.31477317214012146, -0.37855905294418335, 0.03036312945187092, 0.08108430355787277, 0.12365127354860306, 0.12402777373790741, 0.62403404712677, 0.7384882569313049, 0.3927422761917114, -0.6673012375831604, 0.5237745046615601, 0.2962876260280609, -0.1078387126326561, -0.739798903465271, 0.01579350046813488, 0.2934073209762573, 0.3091244697570801, 0.31592464447021484, -0.47153010964393616, 0.06700330972671509, -0.6250936388969421, 0.2688922882080078, 0.2451121062040329, -0.5406836271286011, -0.057517457753419876, 0.16603262722492218, 0.183672234416008, 0.0018432231154292822, 0.7354781627655029, 0.028347229585051537, -0.5051119327545166, 0.5969667434692383, 0.4372917115688324, 0.47274771332740784, -0.07539235055446625, -0.3851674199104309, 0.22694697976112366, -0.34230396151542664, -0.36973679065704346, 0.03565213829278946, -0.21633784472942352, -0.4375767707824707, -0.602766752243042, -0.9297763109207153, 0.08220236003398895, 0.5546920299530029, -0.4417445659637451, 0.698774516582489, -0.2940122187137604, -0.22437788546085358, -0.11078888922929764, 0.3415829539299011, -0.5474892258644104, 0.4493294060230255, 0.05934430658817291, 0.9170451164245605, -0.6451594829559326, 1.1617839336395264, 0.3997921943664551, 0.0812709778547287, -0.35016873478889465, -0.12266597151756287, -0.18785756826400757, -0.22336415946483612, 0.9176105856895447, 0.7854799032211304, -0.09168561547994614, -0.3740338087081909, -0.2966521978378296, -0.6965474486351013, 1.1419137716293335, 0.1238977387547493, -1.0062332153320312, -0.1839727759361267, 0.30351242423057556, 0.6714242696762085, -0.5404016971588135, 0.21913260221481323, 0.782293438911438, 0.37320443987846375, -0.08835206180810928, -0.6886418461799622, 0.19112853705883026, -0.09253441542387009, 0.09677566587924957, 0.3816321790218353, -0.5024780631065369, 0.6432976126670837, 0.03633681312203407, -0.17476177215576172, 0.15476484596729279, 0.5922664403915405, 0.5033465027809143, 0.37626489996910095, 0.8287909626960754, 0.5879762768745422, 0.3998850882053375, 0.20541323721408844, 0.8118806481361389, -0.40082862973213196, 0.37486913800239563, 1.530961275100708, -0.23447048664093018, 0.9641826152801514, 0.5192112922668457, -0.07630635052919388, 0.5113192796707153, 0.6247687339782715, -0.12622763216495514, 0.5565862655639648, 0.5746036767959595, -0.4054108262062073, -0.433611124753952, 0.1414223462343216, -0.22073855996131897, 0.437030553817749, 0.3142701983451843, -0.598595917224884, -0.3421769142150879, 0.07389185577630997, 0.23217765986919403, -0.06974875926971436, 0.061828143894672394, 0.5099098682403564, 0.43664082884788513, -0.7587247490882874, 0.5769867897033691, 0.12653708457946777, 0.9236289858818054, -0.664217472076416, 0.3331332802772522, -0.32202306389808655, 0.36576423048973083, -0.36559295654296875, -0.6296229362487793, 0.17850589752197266, -0.054553303867578506, -0.6745046377182007, -0.043439023196697235, 0.4762985110282898, -0.38176849484443665, -0.3631129860877991, 0.812897264957428, 0.31128549575805664, 0.1096942275762558, -0.2767110764980316, -0.15260931849479675, -0.2946474850177765, -0.2718089520931244, -0.679661214351654, 0.7299463152885437, 0.4207242727279663, -0.3825477957725525, 0.4966607093811035, 0.5400010347366333, 0.14043405652046204, -0.34738725423812866, 0.28673797845840454, 0.8637864589691162, -0.8208833932876587, -0.6226749420166016, -1.0296192169189453, 0.3762240707874298, -0.039611414074897766, -0.25796186923980713, 0.4881250858306885, 0.6855818033218384, 0.5602802634239197, 0.11193124949932098, 0.7310922741889954, 0.10101935267448425, 0.5282254815101624, -0.5522448420524597, 0.7084627747535706, -0.5833656787872314, 0.6543788909912109, 0.17170535027980804, -1.1746538877487183, -0.44216132164001465, 0.23581355810165405, -0.7291209101676941, 0.04894247651100159, 0.583724319934845, 0.8365522623062134, -0.2889654338359833, -0.13362370431423187, 0.268511027097702, 0.22273610532283783, 0.6003139019012451, 0.8198924660682678, 0.717740535736084, 0.0681459978222847, 0.3447965979576111, -0.1089584231376648, -0.43486738204956055, -0.2084498256444931, -0.9386517405509949, -1.1250908374786377, -0.6783351898193359, 0.11221076548099518, -0.24160920083522797, -0.05094444751739502, 0.7321245074272156, 1.0406111478805542, -0.576488733291626, -0.27848395705223083, -0.05104187875986099, -0.07483335584402084, 0.2870759665966034, -0.2906472980976105, 0.6517953872680664, -0.553629994392395, -0.5348224639892578, 0.5887774229049683, 0.1923157125711441, -0.045054059475660324, -0.3358115553855896, -0.046743571758270264, -0.011720913462340832, -0.09955184161663055, 0.8716863393783569, 0.048859499394893646, -0.5531054735183716, -0.5784547924995422, -0.1508406698703766, 0.023566115647554398, 0.2240670919418335, 0.6965692639350891, -0.9555195569992065, 0.3957323729991913, 0.5442962646484375, 0.2478283941745758, 0.5753236413002014, -0.1345195323228836, 0.5271258354187012, -0.931395947933197, 0.2747008204460144, 0.11068060994148254, 0.43333807587623596, 0.3907378017902374, -0.3898431062698364, 0.43310874700546265, -0.05546313896775246, -0.7275384068489075, -0.6470158696174622, 0.21392805874347687, -1.0511114597320557, -0.6470824480056763, 1.554588794708252, -0.4794062674045563, -0.30627039074897766, -0.3386743366718292, 0.0033822176046669483, 0.09126560389995575, -0.37003394961357117, 0.8332440257072449, 0.8562796711921692, 0.07020331919193268, 0.12794245779514313, -0.5797237753868103, 0.5444255471229553, 0.2048463076353073, -0.6333931684494019, 0.016335846856236458, 0.31960606575012207, 0.6076862812042236, 0.1945871114730835, 0.59330153465271, -0.03870592266321182, -0.17165569961071014, -0.3594590723514557, -0.26196566224098206, -0.04460083320736885, -0.5562266707420349, -0.26329684257507324, 0.4395289719104767, 0.0646335631608963, 0.15080176293849945 ]
http://arxiv.org/abs/2405.17902v2
http://arxiv.org/pdf/2405.17902v2
Boosting Protein Language Models with Negative Sample Mining
2024-05-28T07:24:20
2024-06-29T07:07:49
Yaoyao Xu, Xinjian Zhao, Xiaozhuang Song, Benyou Wang, Tianshu Yu
cs.AI
cs.AI, cs.CL, cs.LG
We introduce a pioneering methodology for boosting large language models in the domain of protein representation learning. Our primary contribution lies in the refinement process for correlating the over-reliance on co-evolution knowledge, in a way that networks are trained to distill invaluable insights from negative samples, constituted by protein pairs sourced from disparate categories. By capitalizing on this novel approach, our technique steers the training of transformer-based models within the attention score space. This advanced strategy not only amplifies performance but also reflects the nuanced biological behaviors exhibited by proteins, offering aligned evidence with traditional biological mechanisms such as protein-protein interaction. We experimentally observed improved performance on various tasks over datasets, on top of several well-established large protein models. This innovative paradigm opens up promising horizons for further progress in the realms of protein research and computational biology.
[ -0.29589128494262695, -0.41391244530677795, 0.1415684074163437, -0.12147809565067291, 0.0336991548538208, 0.01767386682331562, 0.02221982181072235, -0.5154540538787842, 0.6830967664718628, 0.41878777742385864, -0.6241589188575745, -0.2886062562465668, -0.7048938274383545, 0.29079264402389526, -0.6492762565612793, 0.9301621913909912, 0.6660777926445007, 0.3337273597717285, -0.4723092019557953, -0.25299161672592163, -0.2047513872385025, -0.5490386486053467, -0.6120569109916687, -0.9293215274810791, 0.7070995569229126, 0.4297279417514801, 0.360007107257843, 0.5138627886772156, 0.2958184778690338, 0.14955301582813263, 0.048181816935539246, -0.08741314709186554, -0.9284117817878723, 0.16015838086605072, -0.5647040605545044, -0.6018022298812866, -0.6070631146430969, 0.10297054797410965, 0.0891072154045105, 1.0481019020080566, 0.25175920128822327, 0.3933814764022827, -0.0249082762748003, 0.6639253497123718, -0.6915655732154846, 0.31889885663986206, -0.6932588219642639, 0.023929234594106674, -0.28202205896377563, -0.5476706624031067, -0.6687020659446716, 0.16185350716114044, 0.1780659705400467, -0.3221389353275299, 0.7097179293632507, -0.17155595123767853, 0.7265608906745911, 0.22815872728824615, -0.29637610912323, -0.04875531420111656, -0.4592544138431549, 0.927163302898407, -0.5321564674377441, 0.44035929441452026, 0.48721423745155334, 0.17866754531860352, -0.16983534395694733, -0.5457704663276672, -0.3506506085395813, -0.25927114486694336, 0.0344080775976181, 0.04222438484430313, -0.15446613729000092, -0.0046022203750908375, 0.3089890480041504, 0.6186313033103943, -0.35361677408218384, 0.09237010031938553, -0.5150606036186218, -0.09646549820899963, 0.6979697942733765, -0.3615856170654297, 0.3920947015285492, -0.023513557389378548, 0.177873894572258, -0.30398029088974, -0.825139045715332, -0.10421369224786758, 0.23111139237880707, 0.6825500726699829, 0.07888058573007584, 0.7216066122055054, -0.30245840549468994, 0.678342878818512, 0.330121248960495, 0.41253793239593506, 0.5819175839424133, 0.0007506295223720372, -0.15274563431739807, 0.18076816201210022, 0.5581654906272888, 0.3218575119972229, 0.0355524979531765, -0.3421218991279602, 0.10698708146810532, 0.12001639604568481, 0.44856977462768555, -0.8507551550865173, -0.489751935005188, 0.34401485323905945, -0.3860430121421814, -0.48424428701400757, -0.010522525757551193, -1.076503872871399, -0.6075842380523682, -0.16829392313957214, 0.5830422639846802, -0.34617385268211365, -0.3405851423740387, 0.34492382407188416, -0.5304853320121765, 0.2573210299015045, -0.054418113082647324, -1.0213271379470825, 0.2915278673171997, 0.6222895979881287, 0.7631934881210327, -0.06400042772293091, -0.07456088066101074, -0.9886845350265503, 0.11596724390983582, -0.1032906174659729, 0.709394097328186, -0.7847607731819153, -0.06076184660196304, -0.10520439594984055, 0.05142035335302353, 0.2201860100030899, -0.6131756901741028, 0.7080335021018982, -0.7020278573036194, 0.10717440396547318, -0.37934067845344543, -0.7408748269081116, -0.4744187593460083, 0.25298285484313965, -0.8317702412605286, 0.7624603509902954, 0.2327103614807129, -0.6929705739021301, 0.45707252621650696, -0.8068438172340393, -0.5779486894607544, 0.4236893653869629, -0.1833481788635254, -0.42992737889289856, 0.3684942126274109, 0.22173434495925903, 0.46995726227760315, -0.35667797923088074, 0.20540200173854828, -0.8298172354698181, -0.2626664340496063, 0.02472706325352192, 0.21292205154895782, 0.883361279964447, -0.03119482472538948, -0.13995416462421417, -0.00006174423469929025, -1.0428247451782227, 0.1398477554321289, 0.05286828428506851, 0.028429029509425163, -0.5319221615791321, 0.07746568322181702, -0.2636229991912842, 0.4578166902065277, -0.05856895074248314, -0.6132907271385193, 0.3924223780632019, -0.6149053573608398, 0.8770168423652649, 0.20480312407016754, 0.2005007416009903, 0.4395953416824341, -0.1268163025379181, 0.35863709449768066, -0.06047260761260986, -0.23601028323173523, -0.2427714616060257, -0.4096972644329071, -0.8203537464141846, -0.028264913707971573, 0.3470219373703003, 0.22861909866333008, -0.5591211318969727, 0.5856379270553589, -0.309978723526001, -0.5886077880859375, -0.8593772053718567, 0.06785281002521515, 0.009891360998153687, 0.5810930728912354, 1.1016509532928467, -0.5148217678070068, -0.756880521774292, -0.919141948223114, -0.21843615174293518, 0.012002100236713886, -0.14999808371067047, 0.2116563469171524, 0.5030569434165955, -0.37159454822540283, 0.8187302350997925, -0.3754705786705017, -0.22083410620689392, -0.46218857169151306, 0.10617976635694504, 0.5888504981994629, 0.6783772706985474, 0.47830501198768616, -0.8421177864074707, -0.35446223616600037, -0.24986611306667328, -0.6437493562698364, -0.24747170507907867, 0.02274799346923828, -0.016538556665182114, -0.2738577723503113, 0.6669076085090637, -0.3980134129524231, 0.013728126883506775, 0.6842027306556702, -0.2932228446006775, 0.31046903133392334, 0.14846938848495483, -0.028108906000852585, -0.8553353548049927, 0.36116448044776917, 0.24792759120464325, -0.20319245755672455, -0.9879424571990967, 0.04010068252682686, -0.04925525188446045, -0.2810525894165039, -0.21088190376758575, 0.46310892701148987, -0.3476339876651764, 0.13406214118003845, -0.4115527868270874, -0.21055179834365845, 0.20581157505512238, 0.43061092495918274, 0.07798223197460175, 0.37427517771720886, 0.6905287504196167, -0.5584802031517029, 0.1965232938528061, 0.28593653440475464, 0.011700528673827648, 0.2438393086194992, -0.880338191986084, 0.12183989584445953, -0.23750485479831696, 0.16116119921207428, -0.8279094696044922, -0.22438986599445343, 0.30436044931411743, -0.5728842616081238, 0.6432587504386902, -0.3194614350795746, -0.14910554885864258, -0.5821406841278076, -0.45393264293670654, 0.3775705099105835, 0.3867914080619812, -0.47097980976104736, 0.30265745520591736, 0.5841715335845947, 0.052379123866558075, -0.46915677189826965, -0.8449437618255615, 0.124306321144104, -0.09097573906183243, -0.4366060495376587, 0.4746699333190918, 0.23885707557201385, 0.1685122549533844, -0.08419284969568253, -0.2128700166940689, 0.05549709126353264, -0.11801540106534958, 0.07055133581161499, -0.007560140918940306, -0.07318951189517975, 0.39439886808395386, -0.08740866929292679, -0.33080342411994934, -0.13240449130535126, -0.6458514928817749, 0.8477298021316528, 0.13145950436592102, -0.11129052937030792, -0.30053311586380005, 0.24817322194576263, 0.4301377534866333, -0.41611307859420776, 0.8044114708900452, 0.4989570677280426, -0.287767231464386, -0.15232549607753754, -0.36086028814315796, -0.607344925403595, -0.4012424349784851, 0.735232949256897, -0.21932949125766754, -0.7795749306678772, 0.3228262662887573, -0.1248626783490181, -0.32341256737709045, 0.5431869029998779, 0.5588571429252625, 0.059803497046232224, 0.9258577227592468, 1.152874231338501, -0.07855065166950226, 0.48153156042099, -0.4892655611038208, 0.24766425788402557, -0.7481754422187805, -0.028161464259028435, -0.660493016242981, -0.4564279615879059, -0.6884594559669495, -0.5326723456382751, 0.07286085933446884, 0.267026424407959, -0.12965452671051025, 0.5139424800872803, -0.4033406674861908, 0.39450088143348694, 0.5233704447746277, 0.12728005647659302, 0.06135258823633194, -0.015037200413644314, 0.08344687521457672, 0.021791130304336548, -0.9224395155906677, -0.2470104992389679, 1.199327826499939, 0.31753531098365784, 0.6072748899459839, -0.32415929436683655, 0.7262352108955383, 0.34018704295158386, 0.4276462495326996, -0.9502260088920593, 0.25256216526031494, -0.28452879190444946, -0.5886390209197998, -0.11664935201406479, -0.5476893186569214, -0.6692225933074951, 0.04302345588803291, -0.3765209913253784, -0.699357271194458, 0.5271846652030945, 0.44309985637664795, -0.1947334110736847, 0.0643465667963028, -0.883967399597168, 1.0947400331497192, 0.10983545333147049, -0.6454671621322632, -0.23838327825069427, -0.56831955909729, 0.24220459163188934, 0.03380337730050087, -0.049376230686903, 0.13425152003765106, 0.13489322364330292, 0.6458101272583008, -0.15085230767726898, 0.9283566474914551, -0.27044087648391724, -0.2219400703907013, 0.13920189440250397, 0.0478505901992321, 0.27221035957336426, 0.08816510438919067, -0.43095919489860535, 0.4673704206943512, -0.09500730037689209, -0.6948404908180237, -0.49948158860206604, 0.45854443311691284, -0.7209267020225525, -0.3428339660167694, -0.21589277684688568, -0.39526423811912537, -0.3856569230556488, 0.44500282406806946, 0.43485960364341736, 0.32616886496543884, 0.1207108274102211, 0.3560696840286255, 0.5616183280944824, -0.36744800209999084, -0.04710882157087326, 0.4276750683784485, -0.18101827800273895, -0.31790098547935486, 1.0202016830444336, 0.15861304104328156, 0.2604820430278778, 0.9608619213104248, 0.07791288197040558, -0.26122045516967773, -0.6682068705558777, 0.15767894685268402, 0.3161531090736389, -0.4599553942680359, -0.39119258522987366, -0.7939077019691467, -0.20125307142734528, -0.40057772397994995, 0.14182543754577637, -0.5524902939796448, -0.5418882369995117, 0.0418790839612484, -0.13984046876430511, 0.014149889349937439, 0.43804892897605896, -0.18013034760951996, -0.0875491201877594, -0.8930807709693909, 0.33503350615501404, 0.1322048306465149, 0.48969751596450806, 0.058294523507356644, -0.4081588089466095, -0.507485032081604, 0.18703587353229523, -0.4170776605606079, -1.0246495008468628, 0.41111207008361816, 0.5502161979675293, 0.5695153474807739, 0.14502666890621185, 0.0263119675219059, 0.3063189387321472, -0.3354954421520233, 0.7280539274215698, 0.14965298771858215, -0.8691514730453491, 0.545052707195282, -0.2724906802177429, 0.3164917826652527, 0.6270619034767151, 0.6849836707115173, -0.7274197340011597, -0.48250147700309753, -0.7126407027244568, -1.0637589693069458, 0.6508160829544067, 0.11958801001310349, 0.16398704051971436, -0.21841277182102203, 0.4668608605861664, 0.4198894500732422, 0.3389417827129364, -0.966472327709198, -0.21745772659778595, -0.4137256145477295, -0.1353205293416977, -0.3552553653717041, -0.3433137536048889, -0.09140705317258835, -0.3904789686203003, 1.1259541511535645, -0.46655651926994324, 0.2608794867992401, 0.11062271893024445, -0.33303770422935486, -0.39240822196006775, 0.277980774641037, 0.37946057319641113, 0.3894779682159424, -0.462162584066391, 0.25072434544563293, -0.06733380258083344, -0.4842822551727295, 0.013555336743593216, 0.12165654450654984, -0.32252705097198486, -0.3429657220840454, 0.5821789503097534, 0.5054408311843872, -0.18371641635894775, -0.49410295486450195, 0.312335729598999, 0.03977937623858452, -0.0553683340549469, 0.33286264538764954, 0.11458397656679153, 0.09403622150421143, 0.36626750230789185, 0.5484532713890076, 0.42336955666542053, 0.39435580372810364, -0.458252876996994, 0.4794776141643524, 0.25271886587142944, -0.7747640609741211, -0.6974548697471619, 0.33107542991638184, 0.2817128598690033, -0.062112487852573395, 0.47211018204689026, -0.3924214243888855, -0.4922303259372711, 0.43647679686546326, 0.6788926124572754, 0.9811684489250183, 0.05532931908965111, 0.2342657744884491, 0.7296125888824463, -0.008755506947636604, 0.05032217502593994, -0.0714646577835083, -0.09492405503988266, -0.8413581848144531, -0.7366197109222412, -0.8059279918670654, -0.16470277309417725, 0.6686940789222717, -0.7359580993652344, 0.5654217600822449, 0.06913203746080399, -0.09468384087085724, 0.38785454630851746, 0.21736936271190643, -0.37740856409072876, 0.019606418907642365, 0.3657959997653961, 1.005130648612976, -1.0413943529129028, 0.9598652124404907, 0.8391623497009277, -0.49697521328926086, -0.3611142337322235, 0.08298422396183014, -0.18565107882022858, -0.6280401945114136, 0.9200126528739929, 0.5530433058738708, 0.0052641951479017735, 0.2097645103931427, -0.5990312695503235, -0.8767845034599304, 0.7364878058433533, 0.48840102553367615, -0.8323078751564026, -0.05112049728631973, -0.030985001474618912, 0.9365648031234741, -0.30155089497566223, 0.12863041460514069, 0.42953816056251526, 0.07785893976688385, 0.13192838430404663, -0.29653483629226685, -0.01488274335861206, -0.5687873959541321, -0.28251537680625916, 0.2272607684135437, -0.55974280834198, 0.6789427399635315, -0.19012297689914703, -0.16338607668876648, -0.1490277647972107, 0.7412006855010986, 0.012990875169634819, 0.006820153910666704, 0.15553122758865356, 0.7140108346939087, 0.7337355017662048, 0.1570330560207367, 1.01516854763031, -0.41969192028045654, 0.6579051613807678, 1.1451350450515747, -0.28683051466941833, 0.599822461605072, 0.7345908284187317, -0.20401492714881897, 0.3200543522834778, 0.31364908814430237, -0.4767007529735565, 0.5914283394813538, 0.3690517544746399, 0.1684534102678299, -0.4781675934791565, -0.29573556780815125, -0.49978649616241455, 0.37585458159446716, 0.37020668387413025, -0.3802785873413086, -0.4351346492767334, -0.13571274280548096, -0.39444130659103394, 0.12287821620702744, -0.42250967025756836, 0.5895072817802429, 0.25358423590660095, -0.4506896436214447, 0.5774440765380859, -0.1210346445441246, 0.6261656880378723, -0.5824308395385742, -0.27997535467147827, -0.07102011889219284, 0.39517971873283386, -0.34747639298439026, -0.45653945207595825, 0.31463661789894104, -0.26466402411460876, -0.5942066311836243, -0.14439748227596283, 0.7540891170501709, -0.6453220248222351, -0.5037532448768616, 0.6567500829696655, 0.38273099064826965, -0.24635758996009827, -0.07301773130893707, -0.6470235586166382, -0.10561978816986084, -0.060679174959659576, 0.06917693465948105, 0.26312926411628723, 0.21473431587219238, 0.08403375744819641, 0.6417779326438904, 0.44405096769332886, 0.19828695058822632, -0.20614983141422272, 0.3605133891105652, 0.8122615814208984, -0.7125515937805176, -0.3135852813720703, -1.162954330444336, 0.3549118936061859, -0.25165948271751404, 0.14577670395374298, 0.7335352897644043, 0.6597875356674194, 1.012364149093628, -0.29427921772003174, 0.7972727417945862, -0.16449786722660065, 0.6212745308876038, -0.21183672547340393, 0.6636400818824768, -0.5272161364555359, 0.09535620361566544, -0.30359381437301636, -0.8093903660774231, -0.5627067685127258, 0.45746931433677673, -0.6262826323509216, 0.049147747457027435, 0.47489964962005615, 0.8715064525604248, -0.12338527292013168, 0.18300184607505798, 0.07479789853096008, 0.4357394576072693, 0.7570123076438904, 0.7034107446670532, 0.6002777814865112, -0.8218480348587036, 0.2272740751504898, -0.2193310409784317, -0.33108973503112793, -0.316646009683609, -1.1359353065490723, -0.9284098744392395, -0.56125807762146, -0.5178073644638062, -0.3211645185947418, 0.029080571606755257, 1.1344622373580933, 0.989770233631134, -1.2543730735778809, -0.22619348764419556, -0.4154077172279358, -0.23722803592681885, -0.42342427372932434, -0.26551446318626404, 0.24542586505413055, -0.5839152932167053, -0.38425183296203613, 0.3748273253440857, 0.47081953287124634, -0.10876396298408508, -0.09129994362592697, 0.006794266868382692, -0.6232264041900635, -0.08260008692741394, 0.6731759309768677, 0.5453547239303589, -0.09170912951231003, -0.1316215991973877, -0.011996072717010975, 0.06175094097852707, 0.29992184042930603, 0.7801121473312378, -0.8786215782165527, 0.43464240431785583, 0.5699859261512756, 0.7238231301307678, 0.6325381398200989, -0.17909599840641022, 0.982768714427948, -0.9595550298690796, 0.11485200375318527, 0.4194985330104828, 0.18405801057815552, 0.702129065990448, -0.22293664515018463, 0.4011942446231842, 0.2904304563999176, -0.3143472373485565, -0.7788707613945007, 0.3496295213699341, -0.8323991298675537, -0.09654073417186737, 0.7707343101501465, 0.22481074929237366, -0.34471458196640015, 0.00740284938365221, 0.09927815943956375, 0.38672009110450745, -0.4075388014316559, 1.27815842628479, 0.6610381603240967, -0.17315752804279327, -0.014731237664818764, -0.28394845128059387, 0.722197949886322, 0.3979111611843109, -0.6200867891311646, 0.3068292737007141, 0.10582615435123444, 0.09394913166761398, 0.6403924226760864, 0.391092449426651, -0.2916244864463806, 0.23708778619766235, -0.03368804603815079, 0.12584342062473297, -0.09989668428897858, -0.2888038456439972, -0.5686395168304443, 0.44757822155952454, 0.003913103137165308, 0.3233603835105896 ]
http://arxiv.org/abs/2405.17900v1
http://arxiv.org/pdf/2405.17900v1
Enhancing Emotion Recognition in Conversation through Emotional Cross-Modal Fusion and Inter-class Contrastive Learning
2024-05-28T07:22:30
2024-05-28T07:22:30
Haoxiang Shi, Xulong Zhang, Ning Cheng, Yong Zhang, Jun Yu, Jing Xiao, Jianzong Wang
cs.CL
cs.CL
The purpose of emotion recognition in conversation (ERC) is to identify the emotion category of an utterance based on contextual information. Previous ERC methods relied on simple connections for cross-modal fusion and ignored the information differences between modalities, resulting in the model being unable to focus on modality-specific emotional information. At the same time, the shared information between modalities was not processed to generate emotions. Information redundancy problem. To overcome these limitations, we propose a cross-modal fusion emotion prediction network based on vector connections. The network mainly includes two stages: the multi-modal feature fusion stage based on connection vectors and the emotion classification stage based on fused features. Furthermore, we design a supervised inter-class contrastive learning module based on emotion labels. Experimental results confirm the effectiveness of the proposed method, demonstrating excellent performance on the IEMOCAP and MELD datasets.
[ -0.8460443019866943, -0.4384056031703949, 0.08553528040647507, -0.013425190933048725, -0.329264760017395, -0.07234936207532883, -0.01901508867740631, -0.7169970870018005, 0.5760791301727295, -0.0549522265791893, -0.8043855428695679, -0.34517377614974976, -0.30641382932662964, 0.1716199517250061, -0.1696852594614029, 0.7631248235702515, 0.018287252634763718, 0.16486552357673645, -0.2889443635940552, -0.4348190724849701, -0.4940856397151947, -0.4591878652572632, -0.6591333746910095, -0.43547323346138, 0.6096420288085938, 0.6135849356651306, 0.22965247929096222, 0.1455012857913971, 0.2108851820230484, 0.42413562536239624, 0.01942816935479641, 0.28930211067199707, -0.6353498697280884, 0.34838902950286865, 0.05930488556623459, -0.3500387966632843, -0.31610003113746643, -0.02451387047767639, 0.28364863991737366, 0.17318400740623474, -0.059582605957984924, -0.4878099858760834, 0.13721966743469238, 0.6594241261482239, -0.662285566329956, 0.28041449189186096, -0.5183174014091492, 0.524744987487793, -0.014397401362657547, -0.44035273790359497, -0.3684038817882538, 0.01825726591050625, 0.4025634229183197, -0.2399478256702423, 0.006681220140308142, 0.41346874833106995, 0.8208895921707153, -0.00578507361933589, -0.5918359160423279, -0.035890575498342514, -0.6741447448730469, 0.5047510862350464, -0.35634055733680725, 0.5588520765304565, 0.5102655291557312, 0.3804400563240051, 0.20959948003292084, -0.3417757451534271, -0.712815523147583, 0.12084311991930008, -0.09193910658359528, 0.5942179560661316, -0.4351693093776703, 0.35181725025177, -0.04095083102583885, 0.2016499638557434, -0.4654800593852997, 0.08430340886116028, -0.47673723101615906, -0.10337018966674805, 0.3799208104610443, 0.48621290922164917, 0.2944294214248657, -0.2059822380542755, -0.6021119952201843, -0.0914052203297615, -0.34177324175834656, 0.05670641362667084, 0.17827437818050385, 0.2955763339996338, -0.37958604097366333, 0.39034220576286316, -0.2236447036266327, 0.39874473214149475, 0.15094980597496033, 0.2394486367702484, 0.4783082604408264, -0.055841874331235886, -0.4237043559551239, 0.2918829321861267, 0.8036041259765625, 0.46761372685432434, -0.16501128673553467, 0.15386418998241425, 0.08024284243583679, 0.24125367403030396, 0.15117768943309784, -0.5942802429199219, -0.2023993581533432, 0.27606913447380066, -0.5520987510681152, -0.171977236866951, 0.1341404765844345, -1.062887191772461, -0.2722342014312744, -0.2777319848537445, 0.4606173634529114, -0.4762377142906189, -0.2595332860946655, -0.24413296580314636, 0.13003288209438324, 0.12206072360277176, 0.3771730363368988, -0.8316017985343933, 0.16076263785362244, 0.4070318341255188, 0.6772788166999817, -0.03443525359034538, -0.23359523713588715, -0.16549482941627502, -0.0826796442270279, 0.13254337012767792, 0.7386726140975952, -0.9637724161148071, -0.43847405910491943, 0.13760697841644287, 0.12397488206624985, -0.12783725559711456, -0.40685752034187317, 0.5056834816932678, -0.3133282959461212, 0.45176202058792114, -0.2677804231643677, -0.3726782202720642, -0.48392438888549805, 0.30440378189086914, -0.5798467993736267, 0.7673045992851257, -0.042984191328287125, -0.9885472059249878, 0.1359357386827469, -0.35792025923728943, -0.5246801972389221, 0.007999197579920292, -0.1719774454832077, -0.49319425225257874, -0.019363703206181526, 0.06372968852519989, 0.7215387225151062, -0.381325364112854, -0.19069887697696686, -0.5323095917701721, -0.22387903928756714, 0.31896698474884033, -0.26959943771362305, 0.014664571732282639, 0.34380003809928894, -0.2777097821235657, 0.3073421120643616, -0.784986138343811, -0.18009808659553528, -0.2509153187274933, -0.16383549571037292, -0.4827256500720978, -0.17570757865905762, -0.18560191988945007, 0.5929733514785767, -0.32725757360458374, -0.521651566028595, -0.39082396030426025, -0.18196988105773926, 0.10376804322004318, 0.8930197954177856, -0.1992848515510559, 0.2916116416454315, -0.12893201410770416, 0.6830223798751831, 0.5603510141372681, 0.06326442956924438, -0.276883065700531, -0.4297827482223511, -1.1829503774642944, -0.15167267620563507, -0.0015950306551530957, 0.599545419216156, -0.9495863318443298, 0.581260621547699, 0.24451814591884613, -0.556814968585968, -0.45516467094421387, -0.4316795766353607, 0.5884190201759338, 0.7663376927375793, 0.38988977670669556, -0.37955397367477417, -0.8465660214424133, -0.8340548276901245, -0.017983071506023407, -0.2593681514263153, 0.10638080537319183, 0.9434805512428284, 0.13963457942008972, -0.22251565754413605, 0.5406509637832642, -0.20375263690948486, -0.4197881817817688, -0.17215964198112488, 0.5436058640480042, -0.38700926303863525, 0.3970998227596283, 0.14796528220176697, -0.8907340168952942, -0.5779087543487549, 0.2716202735900879, -0.6695661544799805, -0.1773269921541214, 0.011983298696577549, -0.3102279603481293, 0.3100045919418335, 0.5041762590408325, -0.020446652546525, 0.5150071382522583, 0.8396090269088745, -0.46995532512664795, -0.07423701882362366, 0.001136932522058487, 0.5998384952545166, -1.179672122001648, -0.2505176067352295, 0.34072133898735046, -0.11480077356100082, -0.7346387505531311, -1.0973869562149048, 0.025069518014788628, -0.2538038492202759, -0.6093133091926575, 0.13969914615154266, -0.32111606001853943, -0.13944262266159058, -0.0823417454957962, 0.18053078651428223, -0.027902601286768913, 0.7417492866516113, 0.09704754501581192, 0.34696945548057556, 0.6076585054397583, -0.4561120271682739, 0.6630783677101135, 0.3412489891052246, -0.0765954926609993, 1.0505331754684448, -0.28695815801620483, 0.045163583010435104, -0.3179379105567932, 0.4346104562282562, -1.1854808330535889, -0.196525439620018, 0.32922956347465515, -0.43842780590057373, 0.4008091390132904, 0.14493298530578613, 0.3607963025569916, -0.04328747093677521, -0.019061490893363953, 0.5348370671272278, 0.3245628774166107, -0.6403889656066895, 1.2770934104919434, 0.35118645429611206, -0.25313711166381836, -0.45028361678123474, -0.7587130069732666, -0.1794012188911438, -0.23352091014385223, -0.7842482924461365, 0.17090871930122375, 0.12361499667167664, 0.20208905637264252, 0.002186188939958811, 0.11318206042051315, 0.05728992074728012, -0.2944064736366272, 0.79191654920578, 0.4405992925167084, 0.12234684079885483, 0.6790317893028259, 0.06397125869989395, -0.07723241299390793, 0.03544525057077408, 0.49646273255348206, 0.5658319592475891, -0.29900825023651123, -0.3471623659133911, -0.5359830260276794, 0.6132058501243591, 0.5283936262130737, -0.21366803348064423, 0.7427255511283875, 0.836007297039032, -0.42674532532691956, -0.16709239780902863, -0.510688066482544, -0.3321414589881897, -0.44631174206733704, 0.5761253833770752, -0.3881117105484009, -0.9844070672988892, 0.6125794649124146, -0.37348395586013794, -0.3318041265010834, 0.40364640951156616, 0.4944911599159241, -0.2090749442577362, 1.0475088357925415, 0.563238799571991, -0.03153808414936066, 0.8945029973983765, 0.05897151678800583, 0.2037280648946762, -0.9285371899604797, -0.7668463587760925, -0.40172839164733887, -0.727555513381958, -0.29272839426994324, -0.4262978434562683, 0.40360355377197266, -0.181327685713768, -0.10488586872816086, 0.1284460574388504, -0.22117862105369568, 0.2997300624847412, 0.32492315769195557, 0.28771767020225525, -0.030640093609690666, 0.03185143321752548, 0.00400958675891161, -0.2411523312330246, -0.6105167269706726, 0.11802633106708527, 0.5092504024505615, 0.40447327494621277, 0.8259348273277283, -0.0802212804555893, 0.5721983313560486, 0.0773213729262352, 0.3216088116168976, -0.7420240640640259, 0.7063177824020386, 0.01964598335325718, -0.23809629678726196, -0.019122514873743057, -0.6579811573028564, -0.7726132869720459, 0.33483171463012695, -0.7698186635971069, -0.7397506833076477, 0.530401349067688, 0.027504218742251396, -0.11861271411180496, 0.2650982439517975, -0.7671729922294617, 0.6710606813430786, -0.0752774029970169, -0.19526508450508118, -0.4992617666721344, -0.899699330329895, 0.3008377254009247, 0.053159113973379135, -0.0406670980155468, -0.1880754679441452, 0.18699301779270172, 0.7768751978874207, -0.4514158070087433, 0.8611953854560852, 0.25396332144737244, 0.2491169273853302, 0.20530396699905396, 0.02827746793627739, 0.4716411232948303, -0.28576961159706116, -0.03401303291320801, 0.11857643723487854, -0.5988283753395081, 0.06807127594947815, -0.5946078300476074, 0.624229907989502, -0.7093418836593628, -0.10939145088195801, -0.2521854639053345, -0.4126538336277008, -0.532403826713562, -0.40565988421440125, 0.27531781792640686, 0.4850849509239197, -0.3756067752838135, 0.17590241134166718, 0.7273768186569214, -0.2664835453033447, 0.41872432827949524, 0.4045359194278717, 0.112610824406147, -0.6041368246078491, 1.0660415887832642, -0.22977294027805328, 0.3776112198829651, 0.39407551288604736, 0.1950157880783081, -0.08143188804388046, 0.2527094781398773, 0.021214790642261505, -0.006020368542522192, -0.8429548740386963, -0.4878009557723999, -0.8293266296386719, -0.03497857600450516, -0.27460938692092896, -0.25504228472709656, -0.2594124674797058, -0.057004235684871674, -0.6244031190872192, -0.1567579060792923, 0.5137417316436768, 0.5190329551696777, -0.2811741232872009, 0.08043753355741501, -0.9719784259796143, 0.18942682445049286, 0.7328771948814392, 0.42314091324806213, 0.0995921790599823, -0.4939768612384796, -0.20093363523483276, -0.16180358827114105, -0.2243902087211609, -0.793476939201355, 0.6547260284423828, 0.41970446705818176, 0.11457337439060211, 0.7406856417655945, 0.3018634021282196, 0.5223747491836548, -0.16065022349357605, 0.3979409337043762, 0.8143922090530396, -1.1388696432113647, 0.4911799728870392, -0.010021894238889217, 0.01512497290968895, 0.21452096104621887, 0.6645638346672058, -0.8052040338516235, 0.012968162074685097, -0.5852336883544922, -0.8556779623031616, 0.9229769706726074, 0.04413526505231857, -0.14543049037456512, -0.03728437423706055, -0.18233592808246613, 0.0247868150472641, 0.06846388429403305, -0.42907026410102844, -0.34158843755722046, -0.12879066169261932, -0.44779813289642334, 0.20176838338375092, -0.3507446348667145, -0.21850937604904175, -0.08457391709089279, 0.6648203730583191, -0.09034069627523422, 0.4206196963787079, 0.244008406996727, 0.3548337519168854, -0.5212202072143555, 0.250911146402359, 0.5822752714157104, -0.08482109010219574, -0.15220144391059875, 0.06695792824029922, 0.46480897068977356, -0.197955921292305, -0.12454308569431305, 0.11104045808315277, 0.6068088412284851, -0.136384516954422, -0.11304847151041031, 1.3992925882339478, 0.07442967593669891, -0.5351614952087402, 0.48598700761795044, -0.36290082335472107, -0.032969363033771515, 0.011276005767285824, -0.3013465106487274, 0.007829143665730953, 0.867259681224823, -0.06956999003887177, 0.13205954432487488, 0.18415915966033936, -0.7718469500541687, 0.20693331956863403, 0.19077496230602264, -0.8399938941001892, -0.33998048305511475, 0.39591166377067566, 0.8066242337226868, -0.16874249279499054, 0.48634740710258484, 0.26024726033210754, -0.8914348483085632, 0.4349738657474518, 0.4079829752445221, 1.023028016090393, -0.5841463804244995, 0.13266289234161377, 0.18275366723537445, -0.16371768712997437, 0.2792152464389801, 0.5873896479606628, -0.08042510598897934, -0.7005362510681152, 0.012708907946944237, -0.16975419223308563, -0.7006668448448181, -0.33701011538505554, -0.5056057572364807, 0.4006741940975189, -0.3412335515022278, -0.11064738780260086, -0.3751247227191925, -0.3829403221607208, -0.7131715416908264, 0.4178186058998108, 0.47877469658851624, 0.40167370438575745, -1.192853331565857, 0.5356307625770569, 0.5872081518173218, -0.4294682741165161, -0.9510512948036194, -0.5278952717781067, 0.12080689519643784, -0.5596701502799988, 0.7697697877883911, 0.2962186932563782, -0.22698555886745453, -0.28640612959861755, -0.15242458879947662, -0.37332314252853394, 1.1261253356933594, 0.06545232236385345, -0.5858374238014221, 0.3420826196670532, 0.026465609669685364, 0.316263884305954, -0.7396658062934875, 0.5926288962364197, 0.13523870706558228, 0.2128215879201889, 0.5479766726493835, -0.8000321984291077, -0.06150490790605545, -0.29396653175354004, -0.03201684355735779, 0.27003467082977295, -0.7474550008773804, 0.9324303865432739, 0.027206599712371826, -0.3913423717021942, -0.48092514276504517, 0.9887909293174744, 0.013422688469290733, 0.36648061871528625, 0.6789681911468506, 0.6217835545539856, 0.6130514740943909, -0.20162856578826904, 0.60089510679245, -0.19749395549297333, 0.2581854462623596, 0.9397199153900146, -0.3401680886745453, 0.9458916187286377, 0.3378426432609558, 0.014291975647211075, 0.5892788767814636, 0.6215153336524963, 0.15115171670913696, 0.3534739017486572, 0.10361935198307037, -0.7185608744621277, -0.4382352828979492, -0.5014728903770447, -0.4690391421318054, 0.46436232328414917, 0.46528300642967224, -0.5759567022323608, 0.012178284116089344, 0.3968816101551056, -0.2803953289985657, -0.3758242428302765, -0.3839524984359741, 0.9063586592674255, 0.1357262134552002, -0.27774491906166077, 0.4002954959869385, -0.3642273545265198, 0.7861119508743286, -0.4887929856777191, -0.23673954606056213, -0.21906115114688873, 0.06948119401931763, -0.6049624681472778, -0.6311135292053223, 0.03559286519885063, -0.26059314608573914, 0.060646720230579376, 0.11506548523902893, 0.9848999977111816, -0.9811594486236572, 0.03794415295124054, 0.43880710005760193, 0.27403587102890015, 0.13817211985588074, 0.10680408775806427, -0.4352976381778717, 0.418231725692749, -0.09012768417596817, -0.23605750501155853, 0.5246079564094543, 0.8423638939857483, 0.5056778788566589, 0.6532506346702576, 0.19593960046768188, -0.3056012988090515, -0.192674458026886, 0.10979277640581131, 1.1159307956695557, -0.7514485716819763, -0.6055017113685608, -0.5086480379104614, 0.6986888647079468, -0.05098428949713707, -0.3434997797012329, 0.2744620144367218, 0.14342227578163147, 0.7573591470718384, 0.04736853390932083, 0.6646959185600281, -0.02924594096839428, 0.36608001589775085, -0.33850938081741333, 0.3795206546783447, -0.6424264311790466, -0.011801612563431263, -0.41645145416259766, -0.7474867105484009, -0.13332074880599976, 0.6332505345344543, 0.13341045379638672, 0.13339565694332123, 0.7838476896286011, 0.6974856853485107, -0.006752739194780588, 0.5795866250991821, 0.6537160873413086, 0.1263258010149002, 0.18032188713550568, 0.8620399236679077, 0.8427795767784119, -0.39708399772644043, 0.6893429756164551, -0.41548576951026917, -0.22460633516311646, -0.5549022555351257, -0.8504200577735901, -0.985226035118103, -0.8689300417900085, -0.36043107509613037, -0.6749952435493469, -0.12304522842168808, 1.1304090023040771, 0.5018386244773865, -0.6266035437583923, -0.03420490026473999, 0.05387275665998459, -0.11372624337673187, 0.07829371094703674, -0.21900394558906555, 0.13447822630405426, -0.011749115772545338, -0.741144061088562, 0.41117092967033386, 0.63020259141922, 0.24248838424682617, -0.1565198004245758, -0.2372119128704071, -0.23461320996284485, 0.20391583442687988, 0.6000964045524597, 0.5166511535644531, -0.4247279167175293, -0.3737722933292389, -0.4794304668903351, -0.16332779824733734, 0.28610897064208984, 0.8697160482406616, -0.7922337651252747, 0.7742420434951782, 0.8115258812904358, 0.7104514837265015, 0.2747265100479126, -0.02058066986501217, 0.7790487408638, -0.5451770424842834, 0.11114712059497833, 0.31368768215179443, 0.7148677110671997, 0.22280968725681305, -0.14512962102890015, 0.3211928606033325, 0.19825704395771027, -0.5518189668655396, -0.4509624242782593, 0.4673410654067993, -1.274165391921997, 0.1232161596417427, 0.895880937576294, -0.38691431283950806, -0.21039259433746338, -0.17309437692165375, -0.5201917886734009, 0.4264555871486664, -0.7752947211265564, 0.6423753499984741, 0.4065878689289093, -0.4307206869125366, -0.4973481297492981, 0.11440747231245041, 0.1962793618440628, 0.6359390616416931, -1.0365813970565796, 0.14603056013584137, 0.6070159077644348, -0.26279720664024353, 0.00799636822193861, 0.23287393152713776, 0.041265569627285004, 0.03767169266939163, 0.012680904008448124, 0.3429141640663147, -0.03068506345152855, -0.2881138324737549, -0.5398703813552856, 0.17864669859409332, -0.5714230537414551, -0.24635452032089233 ]
http://arxiv.org/abs/2405.17893v1
http://arxiv.org/pdf/2405.17893v1
Arithmetic Reasoning with LLM: Prolog Generation & Permutation
2024-05-28T07:13:25
2024-05-28T07:13:25
Xiaocheng Yang, Bingsen Chen, Yik-Cheung Tam
cs.CL
cs.CL, cs.AI
Instructing large language models (LLMs) to solve elementary school math problems has shown great success using Chain of Thought (CoT). However, the CoT approach relies on an LLM to generate a sequence of arithmetic calculations which can be prone to cascaded calculation errors. We hypothesize that an LLM should focus on extracting predicates and generating symbolic formulas from the math problem description so that the underlying calculation can be done via an external code interpreter. We investigate using LLM to generate Prolog programs to solve mathematical questions. Experimental results show that our Prolog-based arithmetic problem-solving outperforms CoT generation in the GSM8K benchmark across three distinct LLMs. In addition, given the insensitive ordering of predicates and symbolic formulas in Prolog, we propose to permute the ground truth predicates for more robust LLM training via data augmentation.
[ -0.24691079556941986, -0.8905916810035706, 0.8926389813423157, 0.2695786952972412, -0.2502777576446533, 0.24129106104373932, 0.08861544728279114, -0.3759983479976654, -0.19956547021865845, 0.6960365176200867, -0.6839017271995544, -0.5473427772521973, -0.553297758102417, 0.3165852129459381, -0.20106755197048187, 0.5031383037567139, -0.043927207589149475, 0.3288326859474182, -0.4611234962940216, 0.01521896943449974, -0.1806725263595581, -1.0047906637191772, -0.5348297953605652, -0.38071438670158386, -0.09041345119476318, 0.5751932859420776, 0.8041204810142517, 0.39795008301734924, 0.7566304206848145, 0.33082571625709534, 0.1670631319284439, 0.5856007933616638, -0.35659468173980713, -0.11261990666389465, 0.02703242003917694, -0.7740292549133301, -0.6472247838973999, -0.21355769038200378, 0.6624301671981812, 0.7167755961418152, -0.14448347687721252, 0.2706204950809479, -0.49434369802474976, 0.8034374117851257, -0.5570033192634583, 0.2545650899410248, -0.729386568069458, 0.017760438844561577, -0.17652100324630737, 0.004005521070212126, -0.3926514685153961, -0.6302492618560791, -0.4185073673725128, -0.6138154864311218, -0.09577809274196625, 0.23578420281410217, 0.33074119687080383, 0.20928522944450378, -0.244393989443779, -0.5599286556243896, -0.6924454569816589, 0.7363294959068298, -0.8617986440658569, 0.3016877770423889, 0.4660091996192932, 0.1747133433818817, -0.5748472809791565, -0.6113189458847046, -0.6844498515129089, -0.031052617356181145, 0.05697481334209442, -0.053019244223833084, -0.007149650249630213, 0.03428094461560249, 0.49731454253196716, 0.5414518117904663, -0.4462018311023712, -0.10097454488277435, -0.14784008264541626, 0.15993733704090118, 0.7461358904838562, 0.5839542150497437, 0.23770689964294434, 0.14074693620204926, -0.1385587900876999, 0.12242477387189865, -1.3053193092346191, -0.04361952096223831, 0.5885069370269775, -0.12181265652179718, 0.3059590756893158, 0.7161093950271606, -0.04284454137086868, 0.7149041891098022, 0.14469949901103973, -0.2687573730945587, 0.14138329029083252, -0.21322311460971832, -0.2599608302116394, 0.2167002409696579, 0.6878609657287598, 0.018694445490837097, 0.4021106958389282, 0.012235722504556179, -0.34578466415405273, 0.15453611314296722, 0.14295822381973267, -0.7021765112876892, -0.27496764063835144, 0.0040364195592701435, 0.04997507855296135, -0.36277827620506287, 0.03819434344768524, -0.22634504735469818, 0.1232202798128128, -0.4670274257659912, 0.38763999938964844, -0.4274473488330841, 0.010959677398204803, 0.3097085952758789, 0.39164265990257263, -0.09938039630651474, 0.14834769070148468, -0.8537338972091675, 0.5042866468429565, 0.8884128332138062, 0.34346359968185425, 0.11914869397878647, 0.021146608516573906, -0.7131345272064209, 0.08951624482870102, -0.6620053052902222, 0.7261725068092346, -0.6926025748252869, -0.4375636875629425, -0.2441844791173935, -0.25560635328292847, -0.009786268696188927, -0.9092345237731934, 0.344731867313385, -0.5571108460426331, 0.12186488509178162, -0.17009234428405762, -0.7141390442848206, -0.04578392952680588, 0.2293984740972519, -0.4869656264781952, 0.9536377191543579, 0.1016228124499321, -0.45765408873558044, -0.31256169080734253, -0.36250439286231995, -0.35982412099838257, 0.1667281538248062, -0.49768534302711487, -0.3492494523525238, 0.39613762497901917, 0.31975072622299194, -0.03532122075557709, -0.5615062713623047, 0.37840449810028076, -0.06634452193975449, -0.3928265869617462, 0.39643681049346924, -0.29276329278945923, 0.8219050168991089, 0.14943315088748932, -0.18218550086021423, -0.015812452882528305, -0.7988240718841553, 0.15331490337848663, 0.2769058346748352, -0.25132325291633606, -0.13222721219062805, 0.21090957522392273, -0.8773321509361267, 0.1407719850540161, 0.2269134372472763, -0.25025475025177, 0.1392514556646347, -0.5178831219673157, 0.15336494147777557, 0.8107594847679138, -0.030163930729031563, 0.26589253544807434, -0.20850662887096405, 0.5388175845146179, -0.08308427035808563, 0.05044551566243172, -0.07708378881216049, -0.3773069977760315, -0.7527881264686584, -0.008850274607539177, 0.071054607629776, 0.6528609395027161, -0.8389449715614319, 0.41781309247016907, 0.13987421989440918, -0.1120280772447586, -0.2874828279018402, 0.25811582803726196, 0.5959793925285339, 0.732934296131134, 0.34143927693367004, -0.19229353964328766, -0.5478213429450989, -0.5001553893089294, -0.2690909206867218, -0.20798201858997345, -0.004259273409843445, 0.08286936581134796, 0.2601415812969208, 0.055591873824596405, 0.6998984813690186, -0.7311354279518127, -0.1286994367837906, -0.27309513092041016, -0.006029949057847261, 0.41233667731285095, 0.33470475673675537, 0.08639799058437347, -0.6363939642906189, -0.29195278882980347, -0.3867030739784241, -0.987308919429779, -0.3362289071083069, 0.12532074749469757, -0.37137752771377563, 0.016126614063978195, 0.376525342464447, -0.7274042367935181, 0.5222844481468201, 0.2583649456501007, -0.24270445108413696, 0.9973918795585632, -0.07328864932060242, -0.2067045122385025, -0.6701046824455261, -0.40619829297065735, -0.3358134627342224, -0.39027637243270874, -0.4783685505390167, 0.22778978943824768, -0.09982258081436157, -0.15147298574447632, -0.5060648322105408, 0.07942187041044235, -0.3961832523345947, -0.2908162772655487, -0.14025463163852692, 0.051654152572155, 0.00767604261636734, 0.26440417766571045, -0.015250982716679573, 0.9067380428314209, 0.3511655032634735, -0.6125115156173706, 0.48799192905426025, 0.14029569923877716, -0.4396519064903259, 0.3321874141693115, -0.3922823369503021, 0.3912794888019562, 0.02598394826054573, 0.21667048335075378, -0.7030302882194519, 0.017726173624396324, 0.24005597829818726, -0.28269776701927185, 0.022705262526869774, 0.14746403694152832, -0.7271825671195984, -0.33758434653282166, -0.2527845501899719, 0.5566186904907227, 0.770213782787323, -0.40897226333618164, 0.6477811336517334, 0.2549319565296173, -0.18032540380954742, -0.5119660496711731, -0.29680296778678894, -0.18489255011081696, -0.07104327529668808, -0.6861832737922668, 0.26551005244255066, -0.059172123670578, -0.7700386047363281, 0.17849932610988617, -0.4451900124549866, 0.22551873326301575, 0.017000459134578705, 0.05531907081604004, 0.4049605131149292, -0.33584392070770264, 0.1517229676246643, -0.06885047256946564, -0.40769800543785095, 0.46801242232322693, -0.5265632271766663, 0.6818881630897522, -0.3475691080093384, -0.5943182706832886, -0.029147418215870857, 0.2625525891780853, 0.20792827010154724, -0.23619946837425232, 0.5388833284378052, 0.17896659672260284, -0.36835089325904846, -0.16756004095077515, -0.3785732090473175, 0.05681740120053291, -0.48608994483947754, 0.22304263710975647, -0.5161022543907166, -0.6084539294242859, 0.3561079800128937, -0.44505172967910767, 0.1157790869474411, 0.3131762742996216, 0.6456945538520813, -0.17365944385528564, 1.1424320936203003, 0.29725348949432373, 0.2994750142097473, 0.3083159327507019, -0.3365185558795929, 0.3753760755062103, -0.7552115321159363, -0.12270558625459671, -0.22672688961029053, -0.17983850836753845, -0.20924746990203857, -0.48668235540390015, 0.48709753155708313, 0.5240036249160767, -0.44890332221984863, 0.1724611520767212, -0.24468189477920532, 0.9528495073318481, 0.5294917225837708, 0.14878611266613007, 0.582632303237915, 0.23133698105812073, -0.2563306987285614, 0.08554308861494064, -0.6138216257095337, -0.6792768239974976, 1.1500647068023682, -0.08688449114561081, 0.8949090838432312, 0.22569505870342255, 0.8112215995788574, -0.07263285666704178, 0.5288618803024292, -0.5524548292160034, 0.9080514311790466, -0.5953364372253418, -0.4376007616519928, -0.16164828836917877, -0.6830094456672668, -0.5560181736946106, 0.27809154987335205, -0.10220266878604889, -0.7315035462379456, -0.26613301038742065, 0.2092185914516449, -0.15675035119056702, 0.25840166211128235, -0.5898606181144714, 0.5172131061553955, -0.6247479915618896, -0.29329371452331543, -0.2936401665210724, -0.43179720640182495, 0.6628987789154053, -0.17316193878650665, 0.4832659959793091, -0.2813183665275574, 0.20069432258605957, 0.4653594493865967, -1.1007754802703857, 0.5892297625541687, 0.14341285824775696, -0.23234675824642181, 0.7146780490875244, 0.45761728286743164, 0.6744505763053894, 0.18398430943489075, -0.0723678469657898, 0.017396511510014534, -0.3857068121433258, -0.2918106019496918, -0.741889476776123, 0.5927556753158569, -0.7329478859901428, -1.1247135400772095, -0.26182201504707336, -0.7264617681503296, -0.37125059962272644, 0.06649868190288544, 0.15696358680725098, 0.6355096101760864, 0.4461606442928314, -0.10476084053516388, 0.6214231252670288, -0.0781070664525032, 0.2652091085910797, 0.401276558637619, -0.5016972422599792, -0.7714746594429016, 0.9547405242919922, 0.15993262827396393, 0.5400290489196777, 0.3857215642929077, 0.19126321375370026, -0.4480641782283783, -0.26465940475463867, -0.44113636016845703, 0.14411994814872742, -0.9991529583930969, -0.35164859890937805, -0.3096708357334137, -0.27471238374710083, -0.20178359746932983, -0.15056376159191132, -0.25216004252433777, -0.7701928615570068, -0.09746874123811722, -0.19079536199569702, 0.14573203027248383, 0.6343600749969482, 0.1316329389810562, 0.3270661532878876, -0.7377513647079468, 0.5861169099807739, 0.425049751996994, -0.014659606851637363, -0.15208369493484497, -0.29605674743652344, -0.046826258301734924, 0.06145789846777916, -0.6224596500396729, -0.7384371757507324, 0.23590171337127686, -0.012725641019642353, 0.3658878803253174, 0.14368672668933868, 0.050685860216617584, 0.8355767726898193, -0.5994583964347839, 0.595538318157196, 0.47052502632141113, -1.0294241905212402, 0.3163200616836548, 0.2664322555065155, 0.19475094974040985, 0.20736904442310333, 0.3898787200450897, 0.09805472195148468, -0.44550445675849915, -0.7333476543426514, -0.745568573474884, 0.45536211133003235, 0.3563692569732666, -0.08132640272378922, -0.20034746825695038, 0.35427331924438477, 0.06299799680709839, 0.26503193378448486, -0.4909425377845764, -0.26752758026123047, -0.030437858775258064, -0.5779946446418762, -0.05613512173295021, -0.19426216185092926, -0.07119469344615936, -0.25706949830055237, 0.4761408269405365, 0.0095432810485363, 0.14093877375125885, 0.08070077747106552, -0.32950451970100403, -0.3387313783168793, 0.15905502438545227, 0.5156590342521667, 1.0412052869796753, -0.022639203816652298, 0.667406439781189, 0.2926265597343445, -0.5326241254806519, 0.4382433295249939, -0.1556912660598755, -0.21326319873332977, -0.06590786576271057, 0.5524604916572571, 0.5020627379417419, 0.09392696619033813, -0.8046805262565613, 0.07954742759466171, 0.05688301846385002, -0.3749581277370453, -0.38508087396621704, 0.30227941274642944, 0.3173235356807709, 0.17440277338027954, 0.5077224373817444, -0.19056755304336548, -0.12273388355970383, -0.5881370902061462, 0.06204995512962341, 0.38145706057548523, 0.36835408210754395, -0.4270499646663666, 0.6339647769927979, 0.07308214902877808, -0.717693030834198, 0.8815490007400513, -0.20009225606918335, -0.7222607135772705, 0.8221704363822937, 1.119369626045227, 0.6320703029632568, -0.16830098628997803, -0.07759882509708405, 0.07920260727405548, 0.19975966215133667, -0.06195390596985817, 0.5279755592346191, -0.07052953541278839, -0.8346656560897827, -0.7184410095214844, -0.6378327012062073, -0.6095513701438904, 0.024241821840405464, -0.2474125772714615, 0.17627938091754913, -0.7197733521461487, -0.04886592552065849, -0.19039610028266907, 0.027397682890295982, -0.4943513572216034, 0.20037168264389038, 0.274614542722702, 0.594789445400238, -0.596053421497345, 0.6784907579421997, 0.793569028377533, -0.3088461756706238, -1.0937765836715698, -0.149396613240242, -0.1616407185792923, -1.0114096403121948, 0.8876967430114746, 0.16586846113204956, -0.369883269071579, 0.25667276978492737, -0.6116650104522705, -0.6252200603485107, 1.0232099294662476, 0.7043891549110413, -0.9007840156555176, 0.022936750203371048, 0.42429736256599426, 0.2843177318572998, -0.6054942607879639, 0.1960853487253189, 0.4809541702270508, 0.17514030635356903, 0.3886214792728424, -0.6101350784301758, 0.029261944815516472, 0.02494487166404724, -0.15091127157211304, 0.48134610056877136, -0.49049004912376404, 1.0720854997634888, -0.3522826135158539, 0.008566176518797874, -0.30098220705986023, 0.5070889592170715, 0.7920482158660889, 0.5177148580551147, 0.39244383573532104, 0.9259188771247864, 0.7261087894439697, 0.07212374359369278, 0.8344042301177979, -0.2989829480648041, 0.11164847761392593, 1.1658726930618286, -0.44801071286201477, 0.6167858839035034, 0.31550654768943787, -0.6302272081375122, 0.6369513273239136, 0.4363483786582947, 0.496745765209198, 0.22972580790519714, 0.39102309942245483, -0.6432691812515259, -0.5940948128700256, 0.34332868456840515, -0.37034833431243896, 0.03378240019083023, 0.6500216126441956, -0.19663333892822266, -0.21910151839256287, -0.47049352526664734, 0.005149385891854763, 0.025117769837379456, -0.5152385234832764, 0.7465886473655701, 0.5442603826522827, -0.5019580721855164, 0.6619839668273926, -0.04607578366994858, 0.0635114312171936, -0.4198300838470459, -0.3214089274406433, -0.35472366213798523, 0.3962782323360443, -0.4013479948043823, -0.6920027136802673, 0.46495211124420166, 0.15358741581439972, 0.05733291804790497, -0.08305107057094574, 0.7852696776390076, -0.30906787514686584, -0.9999516606330872, -0.25980767607688904, 0.493255615234375, 0.3780653476715088, 0.015608394518494606, -0.4333294928073883, 0.04363083839416504, -0.0790015459060669, -0.15453799068927765, 0.434606671333313, 0.6523840427398682, -0.438333123922348, 0.7438673377037048, 0.8854383230209351, -0.053514786064624786, 0.2975040674209595, 0.08446598798036575, 1.0743688344955444, -0.6557868719100952, -0.2547193169593811, -1.2766684293746948, 0.20585881173610687, 0.26449835300445557, 0.0760410875082016, 0.7048470377922058, 0.5272724628448486, 0.8699452877044678, -0.0985134094953537, 0.5626576542854309, 0.22095565497875214, -0.1333063393831253, -0.7652336359024048, -0.106074258685112, -0.1156507357954979, 0.6342109441757202, -0.03489904850721359, -1.0735242366790771, -0.3765522241592407, 0.6594827175140381, -0.6759394407272339, -0.3892289400100708, 0.8845282196998596, 0.6229358315467834, 0.1738557517528534, 0.15248438715934753, 0.2005687952041626, -0.0816509947180748, 0.3572770059108734, 0.8681612014770508, 0.9700731039047241, -0.2834632098674774, 0.5699490308761597, -0.103884257376194, -0.06806343048810959, 0.0013091096188873053, -0.7838445901870728, -0.6563839316368103, 0.0978299155831337, -0.2284427434206009, -0.2771519422531128, 0.062112096697092056, 1.0135430097579956, 0.23998026549816132, -0.5680868029594421, -0.38352465629577637, -0.6345322728157043, 0.6432059407234192, -0.10812312364578247, -0.20145393908023834, 0.2931574583053589, -0.5847324728965759, -0.4211380183696747, 0.306490421295166, 0.36139190196990967, -0.10964205861091614, -0.1266249716281891, -0.30656519532203674, -0.043912190943956375, 0.1956741213798523, 0.758661687374115, -0.08146505057811737, -0.5596836805343628, -0.05221165344119072, 0.09028395265340805, 0.11138257384300232, 0.090824656188488, 1.0077942609786987, -0.8473387956619263, 0.23466990888118744, 0.5096161365509033, 0.5518748164176941, 0.44507288932800293, 0.528206467628479, 0.5146013498306274, -0.4988994002342224, 0.030534768477082253, 0.24721305072307587, 0.20242290198802948, 0.05026305839419365, -0.3433123230934143, 0.5729203224182129, 0.5857852697372437, -0.45873159170150757, -0.8894580602645874, 0.4787343442440033, -0.3362031579017639, -0.1805652230978012, 0.9958323240280151, -0.2692547142505646, -0.3656459450721741, 0.004045646637678146, -0.10012827813625336, -0.10255298018455505, 0.024779370054602623, 0.4750136435031891, 0.6826854348182678, -0.5201036930084229, -0.21161341667175293, -0.23100392520427704, 0.15927521884441376, 0.3781530261039734, -0.7810447216033936, -0.16622701287269592, 0.3851258456707001, 0.16106006503105164, 0.14092230796813965, 0.8571103811264038, -0.4057716131210327, 0.11143635213375092, 0.241072416305542, -0.0015702728414908051, -0.4602470099925995, -0.25773298740386963, 0.16860967874526978, 0.24263063073158264, 0.20526088774204254, -0.137528657913208 ]
http://arxiv.org/abs/2405.17890v1
http://arxiv.org/pdf/2405.17890v1
SLMRec: Empowering Small Language Models for Sequential Recommendation
2024-05-28T07:12:06
2024-05-28T07:12:06
Wujiang Xu, Zujie Liang, Jiaojiao Han, Xuying Ning, Wenfang Lin, Linxun Chen, Feng Wei, Yongfeng Zhang
cs.IR
cs.IR, cs.CL, cs.LG
The sequential Recommendation (SR) task involves predicting the next item a user is likely to interact with, given their past interactions. The SR models examine the sequence of a user's actions to discern more complex behavioral patterns and temporal dynamics. Recent research demonstrates the great impact of LLMs on sequential recommendation systems, either viewing sequential recommendation as language modeling or serving as the backbone for user representation. Although these methods deliver outstanding performance, there is scant evidence of the necessity of a large language model and how large the language model is needed, especially in the sequential recommendation scene. Meanwhile, due to the huge size of LLMs, it is inefficient and impractical to apply a LLM-based model in real-world platforms that often need to process billions of traffic logs daily. In this paper, we explore the influence of LLMs' depth by conducting extensive experiments on large-scale industry datasets. Surprisingly, we discover that most intermediate layers of LLMs are redundant. Motivated by this insight, we empower small language models for SR, namely SLMRec, which adopt a simple yet effective knowledge distillation method. Moreover, SLMRec is orthogonal to other post-training efficiency techniques, such as quantization and pruning, so that they can be leveraged in combination. Comprehensive experimental results illustrate that the proposed SLMRec model attains the best performance using only 13% of the parameters found in LLM-based recommendation models, while simultaneously achieving up to 6.6x and 8.0x speedups in training and inference time costs, respectively.
[ -0.21985284984111786, -0.41917741298675537, 0.8200936913490295, 0.07635533064603806, -0.29246053099632263, 0.137865349650383, 0.07925501465797424, -0.5648196935653687, 0.1763194054365158, 0.5291534066200256, -0.7118000388145447, -0.5154634714126587, -0.41716939210891724, -0.1153569221496582, -0.40253975987434387, 1.001480221748352, 0.1863655000925064, 0.030890941619873047, -0.33284977078437805, -0.18188653886318207, -0.519522488117218, -0.5359683036804199, -0.7939077615737915, -0.6817718744277954, 0.8958157300949097, 0.6010885238647461, 0.48327887058258057, 0.38531482219696045, 0.5257289409637451, 0.3048085868358612, -0.018250342458486557, 0.14741012454032898, -0.6780067086219788, 0.20505428314208984, -0.2513318955898285, -0.518094003200531, -0.2988961338996887, -0.20688539743423462, 0.4270903468132019, 0.7213996052742004, -0.5011579990386963, 0.3351968824863434, 0.0618385449051857, 0.8642206192016602, -0.4719277620315552, -0.16312167048454285, -0.7183737754821777, -0.0708807110786438, -0.04197482764720917, -0.07918722927570343, -0.5345263481140137, -0.3066991865634918, 0.31611138582229614, -0.14646701514720917, 0.05642496049404144, 0.48310941457748413, 0.4041208326816559, 0.14758864045143127, -0.34901121258735657, -0.2222258299589157, -1.0748071670532227, 0.7926207184791565, -0.5977513194084167, 0.3802497684955597, 0.4451045095920563, 0.3202567994594574, -0.03632567450404167, -1.1511447429656982, -0.1417873501777649, -0.45445725321769714, -0.27890193462371826, -0.22807487845420837, -0.09764648228883743, 0.019203491508960724, 0.3053444027900696, 0.2397536337375641, -0.5187737345695496, 0.3086800277233124, -0.26182183623313904, 0.09136549383401871, 0.37237784266471863, 0.48030027747154236, 0.13257746398448944, 0.32754218578338623, -0.4594658613204956, 0.1372142881155014, -0.8513679504394531, 0.05427342653274536, 0.21097296476364136, 0.12186498939990997, 0.12891270220279694, 0.5363029837608337, -0.08416103571653366, 0.7352429032325745, -0.05166322737932205, -0.23087288439273834, -0.0579935647547245, -0.575918436050415, -0.15838058292865753, 0.11460842937231064, 0.7911102771759033, 0.12228855490684509, 0.20590601861476898, -0.045390669256448746, -0.2937074303627014, -0.161673903465271, 0.36253345012664795, -0.8932251334190369, -0.19436389207839966, -0.06227514520287514, -0.4243794083595276, -0.03890082612633705, 0.1225447878241539, -0.3687130808830261, -0.383922815322876, -0.3113527297973633, 0.14792054891586304, -0.13473032414913177, 0.06442537903785706, 0.2828497290611267, 0.08899224549531937, -0.13765060901641846, 0.29227396845817566, -0.7327977418899536, 0.42194464802742004, 0.6706401705741882, 1.024010419845581, -0.07265417277812958, -0.3786545693874359, -0.40818285942077637, 0.1723170429468155, -0.05927995592355728, 0.8648485541343689, -0.60555100440979, -0.4327945411205292, -0.21266919374465942, 0.1380658745765686, 0.13208141922950745, -0.4948713183403015, 0.4504247307777405, -0.6859647631645203, -0.09406987577676773, -0.042527612298727036, -0.3995131254196167, -0.23298980295658112, -0.11623532325029373, -0.5974819660186768, 0.9028254151344299, -0.07306212931871414, -0.6446766257286072, 0.33399638533592224, -0.30584341287612915, -0.5600874423980713, 0.15366698801517487, 0.036281052976846695, -0.2238496094942093, 0.2534390389919281, -0.0051557025872170925, 0.3973900079727173, -0.5212740302085876, 0.34317249059677124, -0.5893476009368896, -0.44185879826545715, 0.2370501011610031, -0.14118725061416626, 0.26173120737075806, 0.30344080924987793, 0.02400173991918564, 0.2308940291404724, -0.5891346335411072, -0.0856400728225708, -0.10122045874595642, -0.03476039692759514, -0.8161976337432861, 0.0922643318772316, -0.18984118103981018, 0.26534944772720337, 0.30832454562187195, -0.19715486466884613, 0.06509610265493393, -0.4526933431625366, 0.5722763538360596, 0.8602131009101868, 0.13798081874847412, 0.6423723101615906, -0.4875950515270233, 0.48483341932296753, -0.04990731552243233, 0.06300041824579239, -0.24951548874378204, -0.3148559033870697, -0.8402568101882935, -0.14191465079784393, 0.4018639922142029, 0.3829091489315033, -0.47535398602485657, 0.385193407535553, -0.29633140563964844, -0.6054498553276062, -0.5723597407341003, 0.24179556965827942, 0.11513759940862656, 0.1507052183151245, 0.09073472768068314, -0.4045073390007019, -0.9613358378410339, -0.9753543138504028, -0.3724876642227173, -0.2826489806175232, 0.021662726998329163, 0.36861324310302734, 0.3301273584365845, -0.44275781512260437, 0.8819085955619812, -0.5115153193473816, -0.3561503291130066, -0.4046836495399475, -0.05964205041527748, 0.39651671051979065, 0.29704713821411133, 0.15222324430942535, -0.3745526671409607, -0.5568106770515442, -0.22690939903259277, -0.5451923608779907, -0.16582636535167694, -0.12489954382181168, -0.08439936488866806, -0.14077359437942505, 0.4870718717575073, -0.2592798173427582, 0.2552739083766937, 0.4669955372810364, -0.22381478548049927, 0.24058951437473297, -0.4452808201313019, -0.12100635468959808, -0.6327013969421387, -0.09013576060533524, 0.3574020266532898, -0.4636678099632263, -0.598554253578186, -0.23625007271766663, -0.19482426345348358, 0.010532681830227375, -0.3312545716762543, 0.6103246808052063, -0.335295706987381, -0.08197677880525589, -0.37796521186828613, 0.14244793355464935, 0.023663323372602463, 0.45034971833229065, -0.0015675498871132731, 0.561942994594574, 0.13692884147167206, -0.5689188838005066, 0.06222987174987793, -0.15730872750282288, -0.7639933824539185, 0.08580246567726135, -0.8040241599082947, 0.28151342272758484, 0.12225227802991867, 0.3340763449668884, -1.1013071537017822, 0.21989859640598297, -0.03358722850680351, 0.14162082970142365, -0.05336498096585274, -0.44701889157295227, -0.6449893116950989, -0.31611281633377075, -0.13815447688102722, 0.41530853509902954, 0.6960533261299133, -0.4812465012073517, 0.6267314553260803, 0.5258293151855469, -0.21733087301254272, -0.35957616567611694, -0.73744136095047, 0.07928191125392914, -0.27031925320625305, -0.5843208432197571, 0.236887127161026, -0.22440221905708313, -0.38844090700149536, -0.20633149147033691, -0.16851288080215454, 0.18512064218521118, -0.012584501877427101, 0.6173977255821228, 0.3239613175392151, -0.00713903596624732, 0.000650223228149116, -0.16337871551513672, -0.22377796471118927, -0.11940035969018936, -0.651540994644165, 0.5082315802574158, -0.221153125166893, -0.35235998034477234, -0.5029686093330383, 0.051099855452775955, 0.6902917623519897, 0.08418958634138107, 0.759103000164032, 0.4569041430950165, -0.03660176321864128, -0.3154882788658142, -0.7943708896636963, -0.4329289197921753, -0.5064032673835754, 0.32182812690734863, -0.3251870274543762, -1.1366548538208008, 0.35406529903411865, -0.22239567339420319, -0.023238467052578926, 0.13082151114940643, 0.5858097076416016, -0.13766561448574066, 0.9903550148010254, 0.691902220249176, -0.31703677773475647, 0.7752783894538879, -0.29731035232543945, 0.27166658639907837, -0.6215577125549316, -0.38191699981689453, -0.4419266879558563, -0.5074608325958252, -0.3929918110370636, -0.34699681401252747, 0.19553329050540924, 0.059583261609077454, -0.15321028232574463, 0.2662821412086487, -0.22140036523342133, 0.3597126305103302, 0.6165823936462402, 0.20239406824111938, 0.6503835320472717, 0.18880735337734222, -0.20538227260112762, -0.1611182540655136, -0.924836277961731, -0.5069549083709717, 0.7486722469329834, 0.447524756193161, 1.2090731859207153, -0.1004866361618042, 0.4477573335170746, 0.5716171860694885, 0.15354330837726593, -0.955044150352478, 0.7555931806564331, -0.39437049627304077, -0.18404948711395264, -0.1471162587404251, -0.2563692033290863, -0.7504013776779175, 0.21323028206825256, 0.03873340040445328, -0.47658276557922363, 0.3527916669845581, 0.07604732364416122, -0.40710440278053284, 0.31783461570739746, -0.6733694672584534, 0.5195622444152832, -0.3692269027233124, -0.6128470301628113, -0.537727952003479, -0.3956455886363983, 0.38410869240760803, -0.1146843209862709, 0.37821459770202637, -0.18769733607769012, -0.19317708909511566, 0.6967368125915527, -0.606015145778656, 1.0011992454528809, -0.12715616822242737, -0.013017497956752777, 0.3991214632987976, 0.24518799781799316, 0.9637163877487183, 0.1471550017595291, -0.02728816121816635, 0.25048646330833435, -0.11408010870218277, 0.08602289855480194, -0.6098830699920654, 1.0243430137634277, -0.5318226218223572, -0.6181533336639404, -0.35664719343185425, -0.16082562506198883, -0.10829748958349228, 0.1914944350719452, -0.15774501860141754, 0.35034558176994324, -0.0762014091014862, 0.3999711871147156, 0.557529628276825, 0.04200778156518936, 0.18041716516017914, 0.8756530284881592, -0.3685835599899292, -0.40841835737228394, 0.8154674172401428, 0.004776564426720142, 0.0026422885712236166, 0.43197882175445557, 0.2109619528055191, -0.44656679034233093, -0.7481670379638672, -0.028154868632555008, 0.3528195321559906, -0.5647444725036621, -0.050190117210149765, -0.8744471073150635, -0.13496874272823334, -0.134401336312294, 0.010554893873631954, -0.2670278251171112, -0.45909810066223145, -0.3268824517726898, -0.2194247841835022, 0.3908805549144745, 0.8618573546409607, -0.00653632078319788, 0.5037099123001099, -0.7251835465431213, 0.22000813484191895, 0.3145451247692108, 0.4928235411643982, 0.28086844086647034, -0.7076608538627625, -0.6438161134719849, -0.11584930121898651, 0.08676720410585403, -0.1512071043252945, 0.3964911997318268, 0.1449785977602005, 0.5396188497543335, 0.4143418073654175, -0.010129538364708424, 0.7641474604606628, -0.7140397429466248, 0.6988306045532227, 0.2664944529533386, -0.4544345736503601, 0.4556216895580292, 0.019715052098035812, 0.37057697772979736, 0.7136449813842773, 0.5602861642837524, -0.578295111656189, -0.20807473361492157, -0.49271637201309204, -1.0217453241348267, 0.7942869067192078, -0.13385020196437836, -0.2260546088218689, 0.23749017715454102, 0.25882619619369507, 0.22406503558158875, 0.21259158849716187, -0.4824583828449249, -0.12679918110370636, 0.17145207524299622, -0.0812760591506958, -0.3470078110694885, -0.7678346633911133, 0.04102279990911484, -0.15392722189426422, 0.6477089524269104, 0.24093686044216156, -0.2149076908826828, 0.025394774973392487, -0.18888118863105774, -0.003967017401009798, 0.108505018055439, 0.5523529648780823, 0.6062936782836914, -0.2748650014400482, 0.21230271458625793, 0.1811019778251648, -0.3668240010738373, 0.30359408259391785, -0.3196697235107422, -0.07367584854364395, -0.06654518842697144, 0.2590760886669159, 0.8969764113426208, 0.4496820867061615, -0.7475109696388245, 0.09186819195747375, -0.22197388112545013, -0.007764155510812998, -0.4856705367565155, 0.22388772666454315, 0.11638697236776352, 0.19961358606815338, 0.32171809673309326, 0.24388283491134644, 0.11070430278778076, -0.4732265770435333, 0.2282945066690445, 0.1787683516740799, -0.6046921610832214, -0.2652378976345062, 0.24011263251304626, 0.30478450655937195, -0.35886669158935547, 0.5579580664634705, 0.30760934948921204, -0.14853879809379578, 0.2728642225265503, 0.28686243295669556, 0.9837074279785156, 0.04575832560658455, -0.13987912237644196, 0.37605392932891846, 0.32793545722961426, -0.6755969524383545, -0.22185847163200378, -0.11441200971603394, -0.6135131120681763, -0.4033738374710083, -0.6866816282272339, -0.23986312747001648, 0.05036991462111473, -0.5297949314117432, 0.2781122922897339, -0.5984792709350586, -0.4419899582862854, -0.22077538073062897, 0.11443108320236206, -0.5794331431388855, -0.1708240509033203, -0.02917582169175148, 0.984925389289856, -0.615718424320221, 1.0324273109436035, 0.6411211490631104, -0.15362438559532166, -0.48726117610931396, -0.4272285997867584, -0.0821240097284317, -0.7576931118965149, 0.7889639735221863, -0.07941873371601105, -0.5993844270706177, 0.11676422506570816, -0.37256431579589844, -0.5912913084030151, 1.1567646265029907, 0.13601918518543243, -1.1269464492797852, -0.1499144732952118, -0.012377074919641018, 0.7024798393249512, -0.7958400845527649, 0.3129573166370392, 0.5894137620925903, 0.3400995135307312, 0.36362090706825256, -0.6582790613174438, 0.06300931423902512, -0.02996690571308136, 0.3606862723827362, 0.06914260238409042, -0.6639344692230225, 0.4797056317329407, -0.45875459909439087, -0.27898064255714417, 0.1878078132867813, 0.5771706700325012, 0.5582870841026306, 0.38210034370422363, 0.7614187598228455, 0.4905153214931488, 0.5718677043914795, 0.26427093148231506, 0.9738835692405701, -0.30273640155792236, 0.0542285218834877, 1.696698784828186, -0.6583715677261353, 0.81859290599823, 0.5191569924354553, -0.3358909487724304, 0.9798104166984558, 0.7742037177085876, -0.07869336754083633, 0.7566196322441101, 0.23021265864372253, -0.25980666279792786, -0.3397446274757385, -0.20994459092617035, -0.18384939432144165, 0.04641241952776909, 0.37880516052246094, -0.44095954298973083, 0.0836830884218216, 0.008406572043895721, -0.3606722354888916, -0.061836935579776764, -0.23740161955356598, 1.0442556142807007, 0.5320627093315125, -0.6297373175621033, 0.39325398206710815, -0.014405202120542526, 0.7474614381790161, -1.0164161920547485, 0.04439147561788559, -0.31018102169036865, 0.3689285218715668, -0.19135747849941254, -0.6190727353096008, -0.0011563217267394066, -0.14206735789775848, -0.5600270628929138, -0.4239099621772766, 0.9909348487854004, -0.4335271716117859, -0.4867888391017914, 0.4731963872909546, 0.45805367827415466, 0.16636738181114197, 0.04987433925271034, -0.5944763422012329, 0.005689841229468584, 0.16019879281520844, -0.01633220911026001, 0.5462321639060974, 0.3836413025856018, 0.0011091399937868118, 1.1289507150650024, 0.7642122507095337, 0.30660346150398254, -0.20124973356723785, 0.2964998781681061, 0.6579700708389282, -0.685452401638031, -0.49836182594299316, -0.9905907511711121, 0.37551188468933105, 0.13620689511299133, 0.28580862283706665, 0.8242844343185425, 0.5261406898498535, 0.815585196018219, -0.07248974591493607, 0.7491018772125244, 0.24752399325370789, 0.4483349323272705, -0.49316054582595825, 0.44390881061553955, -0.5539740920066833, 1.0568150281906128, 0.08786661922931671, -0.7037528157234192, 0.088958241045475, 0.3002445101737976, -0.34388071298599243, 0.29321134090423584, 0.7278456687927246, 0.9504330158233643, 0.030998045578598976, 0.08291275799274445, 0.3318038284778595, 0.3383408784866333, 0.07800620049238205, 0.506203830242157, 1.1081496477127075, -0.10228317975997925, 0.5303188562393188, -0.2400771528482437, -0.02688944898545742, -0.5101667046546936, -0.778963029384613, -0.8931786417961121, -0.4514680504798889, -0.19506745040416718, -0.3907460868358612, 0.08878724277019501, 0.9666164517402649, 0.7593168616294861, -0.7885926961898804, -0.7284560799598694, -0.0324857234954834, 0.3779120147228241, -0.23026655614376068, -0.19411541521549225, 0.058383334428071976, -0.11763249337673187, -0.49173682928085327, 0.6039664149284363, 0.35990190505981445, 0.2201414257287979, -0.559698760509491, -0.04589715972542763, -0.23170281946659088, -0.2918455898761749, 0.7436765432357788, -0.019189834594726562, -0.676514744758606, -0.011441160924732685, -0.16022169589996338, -0.17532221972942352, -0.24257180094718933, 1.5134129524230957, -1.0002825260162354, 0.1614900827407837, 0.5822566747665405, 0.20596541464328766, 0.6606051921844482, 0.018630728125572205, 0.8091708421707153, -0.5743750333786011, 0.2099863737821579, 0.13858555257320404, 0.3988175094127655, 0.05703263357281685, -0.2772881090641022, 0.6282166838645935, 0.24017339944839478, -0.6137559413909912, -1.0325924158096313, 0.07678740471601486, -0.7942574620246887, -0.40420255064964294, 1.1272691488265991, -0.10524515807628632, -0.04548562318086624, -0.2945190668106079, -0.16532349586486816, -0.20388466119766235, -0.6886910796165466, 0.4857622981071472, 0.488041490316391, 0.01712155155837536, -0.25492721796035767, -0.5497918128967285, 0.3019154369831085, 0.2217044085264206, -0.19545522332191467, 0.24013569951057434, 0.35692688822746277, 0.36509042978286743, -0.200144961476326, 0.7497333884239197, 0.16810709238052368, -0.2852538824081421, -0.1892685890197754, -0.12953364849090576, -0.2434617429971695, -0.6482784152030945, -0.40476906299591064, 0.22588802874088287, 0.4202738404273987, 0.33816468715667725 ]
http://arxiv.org/abs/2405.17871v1
http://arxiv.org/pdf/2405.17871v1
Seeing the Image: Prioritizing Visual Correlation by Contrastive Alignment
2024-05-28T06:44:13
2024-05-28T06:44:13
Xin Xiao, Bohong Wu, Jiacong Wang, Chunyuan Li, Xun Zhou, Haoyuan Guo
cs.CV
cs.CV, cs.AI, cs.CL
Existing image-text modality alignment in Vision Language Models (VLMs) treats each text token equally in an autoregressive manner. Despite being simple and effective, this method results in sub-optimal cross-modal alignment by over-emphasizing the text tokens that are less correlated with or even contradictory with the input images. In this paper, we advocate for assigning distinct contributions for each text token based on its visual correlation. Specifically, we present by contrasting image inputs, the difference in prediction logits on each text token provides strong guidance of visual correlation. We therefore introduce Contrastive ALignment (CAL), a simple yet effective re-weighting strategy that prioritizes training visually correlated tokens. Our experimental results demonstrate that CAL consistently improves different types of VLMs across different resolutions and model sizes on various benchmark datasets. Importantly, our method incurs minimal additional computational overhead, rendering it highly efficient compared to alternative data scaling strategies. Codes are available at https://github.com/foundation-multimodal-models/CAL.
[ -0.15478770434856415, -0.3854537904262543, 0.3478793203830719, 0.27113601565361023, -0.6191468834877014, -0.047485943883657455, 0.0931323692202568, -0.5073511600494385, 0.27588069438934326, 0.4036236107349396, -0.09876179695129395, -0.22711049020290375, -0.5453025698661804, -0.21644438803195953, -0.28095412254333496, 0.8380340933799744, -0.11059127002954483, 0.38482266664505005, -0.6248270869255066, -0.3961392939090729, -0.6266645193099976, -0.24402426183223724, -0.6424341201782227, -0.1873379945755005, 0.8800140619277954, 0.28396061062812805, 0.9721549153327942, 0.9430955648422241, 1.2770720720291138, 0.3929062485694885, 0.2680255174636841, 0.14907348155975342, -0.5389171838760376, 0.06896299123764038, -0.3034139573574066, -0.41863715648651123, -0.20793601870536804, -0.3348962664604187, 0.24172843992710114, 0.31863948702812195, 0.16683891415596008, 0.1737930029630661, -0.08874291181564331, 0.7085556983947754, -0.9570189714431763, 0.002561739645898342, -0.6981692910194397, -0.015964370220899582, -0.18947823345661163, -0.37519189715385437, -0.2931377589702606, 0.02415240742266178, 0.31153246760368347, -0.6837600469589233, 0.20461368560791016, 0.4233858287334442, 1.0935016870498657, 0.5511936545372009, -0.5088376998901367, 0.2369576245546341, -0.17304447293281555, 1.1500650644302368, -0.28925174474716187, 0.5449759364128113, 0.297983855009079, 0.26175132393836975, 0.39518097043037415, -0.7081341743469238, -0.3794504702091217, 0.18413977324962616, -0.3905715048313141, 0.3965492844581604, -0.14071786403656006, -0.18566633760929108, -0.1865963190793991, 0.41404950618743896, -0.5748935341835022, 0.07488521933555603, -0.2231154888868332, -0.4154496490955353, 0.2433156669139862, 0.4914624094963074, 0.28913840651512146, 0.1787269115447998, -0.7960174083709717, -0.30783918499946594, -0.35214078426361084, 0.14163778722286224, -0.0010053920559585094, 0.1447303146123886, -0.4336768686771393, 0.8339579701423645, -0.03910590335726738, 0.9352875351905823, 0.2195073813199997, -0.09218741953372955, 0.39444175362586975, -0.9659028649330139, -0.43749332427978516, -0.07187200337648392, 0.9584189057350159, 1.036364197731018, 0.038862526416778564, 0.04931517317891121, -0.07251109927892685, 0.37046852707862854, 0.37884676456451416, -0.839378297328949, -0.36089956760406494, -0.24626955389976501, -0.5830541253089905, -0.5818646550178528, -0.05250879004597664, -0.7492219805717468, -0.43454429507255554, -0.5964165925979614, 0.5555630326271057, -0.27588528394699097, 0.08939427137374878, -0.0933583602309227, -0.153360977768898, 0.18330053985118866, 0.6203047037124634, -1.014099359512329, 0.02749069221317768, 0.4354964792728424, 0.863493025302887, -0.3584313690662384, -0.32456183433532715, -0.6840453743934631, 0.09193508327007294, -0.5881901383399963, 0.7737876176834106, -0.775359570980072, -0.2511782646179199, -0.011845785193145275, 0.04404255747795105, 0.10660504549741745, -0.2550691068172455, 0.39012661576271057, -0.4560811221599579, 0.24621456861495972, -0.46746280789375305, -0.1882692575454712, 0.08440985530614853, 0.20473283529281616, -0.813995361328125, 0.7738828659057617, -0.14651325345039368, -1.2429739236831665, 0.7514477372169495, -0.15085309743881226, -0.34111008048057556, -0.1264650970697403, -0.5846477746963501, -0.689746081829071, 0.22071130573749542, 0.5001354813575745, 0.19369813799858093, -0.37585923075675964, 0.06509145349264145, -0.3623000681400299, -0.2568051815032959, 0.2426157295703888, -0.2352209985256195, 0.3173009753227234, 0.383725643157959, -0.13195045292377472, 0.3597981631755829, -0.6407482028007507, 0.005975786130875349, -0.02492647059261799, 0.00108355563133955, -0.5925090909004211, 0.07425887137651443, 0.27611956000328064, 0.13354025781154633, 0.6447533369064331, -0.3089940547943115, -0.1083982065320015, -0.10207125544548035, -0.05720002204179764, 0.8182157874107361, -0.42669570446014404, 0.7377379536628723, -0.3904508650302887, 0.32814449071884155, 0.43431195616722107, 0.2765370011329651, -0.27868422865867615, -0.30853936076164246, -0.8245858550071716, -0.6832706332206726, 0.12256024032831192, 0.5311005711555481, -0.9664435386657715, 0.1284492313861847, -0.32794106006622314, -0.41525325179100037, -0.49761682748794556, 0.22200343012809753, 0.873708963394165, 0.8492256999015808, 0.46168574690818787, -0.7415341734886169, -0.4878649413585663, -1.2339404821395874, 0.0037230050656944513, -0.13473670184612274, 0.3616952896118164, 0.497368186712265, -0.0025526040699332952, -0.14397640526294708, 0.7570827007293701, -0.47331464290618896, -0.46150678396224976, 0.2905353605747223, 0.15661734342575073, 0.04508153721690178, 0.6793347001075745, 0.7241644263267517, -1.2450616359710693, -0.7951774001121521, 0.451369047164917, -0.7165960073471069, -0.2343159019947052, -0.09497305005788803, -0.5349684953689575, 0.04342443495988846, 0.6649460196495056, 0.03453436493873596, 0.6972096562385559, 0.6777717471122742, -0.38537096977233887, 0.17051920294761658, -0.20186017453670502, 0.34959039092063904, -1.0616750717163086, 0.13043779134750366, 0.19101671874523163, -0.36691176891326904, -0.4081897735595703, -0.02455572597682476, 0.0894269123673439, 0.17515823245048523, -0.2926526367664337, 0.5223863124847412, -0.4640890955924988, -0.11947021633386612, -0.1328030824661255, 0.019219515845179558, 0.15006756782531738, 0.2635244131088257, 0.3447697162628174, 0.8222292065620422, 0.6922765970230103, -0.217048779129982, 0.1336125284433365, 0.2346111536026001, -0.4444177746772766, 1.086026668548584, -0.6561921238899231, -0.3310335576534271, -0.11619772762060165, -0.1109427660703659, -1.3337032794952393, 0.23980872333049774, 0.06670642644166946, -0.29450270533561707, 0.41641440987586975, 0.21741589903831482, -0.18548911809921265, -0.09588410705327988, -0.36483234167099, 1.0299514532089233, 0.19126980006694794, -0.5566688179969788, 0.5388702154159546, 0.17772996425628662, 0.14732536673545837, -1.0329958200454712, -0.9531967639923096, 0.038908038288354874, -0.16499203443527222, -0.5088854432106018, 0.5461228489875793, -0.19804291427135468, -0.15016776323318481, 0.16490478813648224, -0.045571085065603256, -0.07045835256576538, -0.21228650212287903, 0.2863556742668152, 0.6604416370391846, -0.4549611806869507, 0.031036946922540665, -0.42584821581840515, -0.16263173520565033, -0.5790075063705444, 0.028677459806203842, 0.44031527638435364, -0.053582292050123215, -0.3125976026058197, -0.5641525387763977, 0.3693993389606476, 0.6644435524940491, -0.3873179256916046, 0.5150476098060608, 0.7675749063491821, 0.055739179253578186, 0.657994270324707, -0.6966419816017151, 0.2084265649318695, -0.461781769990921, 0.4715573489665985, -0.36631956696510315, -0.5218862295150757, 0.46717190742492676, 0.30362311005592346, 0.2606550455093384, 0.15866601467132568, 0.5416550636291504, -0.06301280111074448, 1.184860110282898, 0.9304984211921692, -0.12353915721178055, 1.2613236904144287, 0.13495631515979767, 0.32592687010765076, -0.8056771159172058, -0.17232845723628998, -0.19043469429016113, -0.5176226496696472, -0.42220011353492737, -0.6431915163993835, 0.012075732462108135, 0.13608857989311218, -0.24781157076358795, 0.3227523863315582, -0.5870850682258606, 0.6284564137458801, 0.5339804887771606, 0.3292371928691864, 0.2473454773426056, 0.2711526155471802, -0.27283069491386414, -0.4487926661968231, -0.5326666235923767, -0.20804107189178467, 1.1031910181045532, -0.11205267906188965, 1.0935736894607544, 0.07252297550439835, 0.707538902759552, -0.0892171785235405, 0.4035276174545288, -0.6483464241027832, 0.36361297965049744, -0.5500579476356506, -0.25247350335121155, -0.07289917767047882, -0.23905563354492188, -1.0503456592559814, 0.5257098078727722, -0.5281965136528015, -0.582472562789917, 0.5541273951530457, 0.45998415350914, -0.16121259331703186, 0.010130512528121471, -0.8445448279380798, 0.9553965926170349, -0.42178288102149963, -0.8345169425010681, -0.22410905361175537, -0.8325160145759583, 0.2005273997783661, -0.16238753497600555, 0.1172274649143219, 0.37438690662384033, -0.4845596253871918, 0.3637153208255768, -0.5446755290031433, 0.8431764245033264, 0.43582478165626526, 0.1558355689048767, -0.08679206669330597, -0.06601863354444504, 0.18122822046279907, -0.3321545720100403, 0.15500091016292572, -0.0656982809305191, 0.020684463903307915, -0.5913047790527344, -0.5681564807891846, 0.802708625793457, -0.7040005326271057, -0.3318978548049927, -0.3048110008239746, -0.5194571018218994, 0.09089428186416626, 0.2608421742916107, 0.39445018768310547, 0.6691772937774658, -0.10272980481386185, 0.4303058385848999, 0.37975260615348816, -0.05231756344437599, 0.41216766834259033, 0.355794221162796, -0.5211865305900574, -0.9572551250457764, 1.249971866607666, -0.13498280942440033, 0.5130922794342041, 0.838523805141449, 0.15466748178005219, -0.22813045978546143, -0.414407879114151, -0.17062176764011383, 0.192372664809227, -0.9262564778327942, -0.2775530517101288, -0.44563084840774536, 0.1422465592622757, -0.46432599425315857, -0.8640053868293762, -0.23715968430042267, -0.050119444727897644, -0.4027172327041626, 0.26503947377204895, 0.022722400724887848, 0.3425314724445343, -0.0039015875663608313, 0.3202989101409912, -0.39792487025260925, 0.36335891485214233, 0.555600106716156, 0.244263157248497, -0.11563097685575485, -0.25935694575309753, -0.2542678713798523, -0.2633378803730011, -0.4374644160270691, -0.37109220027923584, 0.3428610563278198, 0.0695745050907135, 0.6678674817085266, 0.678009569644928, -0.16078534722328186, 1.3083691596984863, -0.42573997378349304, 0.7200552225112915, 1.048851728439331, -0.7118716239929199, 0.2688273787498474, 0.03444627672433853, 0.3721877336502075, 0.7860947251319885, 0.11608042567968369, -0.12464086711406708, -0.36140453815460205, -0.4316231310367584, -0.893601655960083, 0.25508108735084534, 0.12544293701648712, -0.09635072946548462, 0.0022055706940591335, -0.18802714347839355, -0.05577768012881279, 0.26044830679893494, -0.8616340756416321, -0.06625617295503616, -0.5345993638038635, -0.6016273498535156, -0.24454009532928467, -0.007556219585239887, -0.347197026014328, -0.3977730870246887, 0.19727236032485962, -0.2890177369117737, 0.002121713710948825, 0.3598671555519104, -0.26481443643569946, -0.1839900016784668, -0.3597753643989563, 0.7645074129104614, 0.6630443930625916, 0.10653039067983627, 0.4349188804626465, -0.18906402587890625, -0.4799909293651581, -0.1815156489610672, -0.3550732731819153, -0.03758256137371063, -0.08028244972229004, 0.4357467591762543, 0.8409997820854187, 0.553745687007904, -0.5530873537063599, 0.7544397115707397, -0.1608637273311615, -0.1149895191192627, 0.2794942855834961, -0.1566995084285736, -0.16332222521305084, 0.35584405064582825, -0.1189652532339096, 0.2554683983325958, -0.04913567751646042, -0.5475063920021057, 0.2571803033351898, 0.6950373649597168, -0.5827732086181641, -0.018072035163640976, 0.7347763776779175, 0.23266959190368652, -0.22115889191627502, 0.27150407433509827, 0.4774485230445862, -0.3845272362232208, 0.6652393937110901, 0.5086079239845276, 0.5790625214576721, 0.0032857703045010567, 0.011435850523412228, 0.3774954080581665, 0.1119806170463562, -0.07336414605379105, 0.17749737203121185, -0.1786334067583084, -0.7282245755195618, -0.12803591787815094, -0.41756635904312134, -0.24293231964111328, -0.30774423480033875, -0.6575686931610107, 0.6225792169570923, -0.3207259476184845, -0.34991395473480225, 0.1602419912815094, -0.2992086708545685, -0.864109992980957, 0.3522050678730011, 0.079729363322258, 0.3879828155040741, -0.9011834263801575, 0.7279475927352905, 0.6286452412605286, -0.6891353130340576, -0.32618093490600586, -0.18379345536231995, 0.06916061043739319, -1.1355167627334595, 0.9601229429244995, 0.0958365797996521, -0.20649680495262146, -0.1629600077867508, -0.7163291573524475, -0.9311562180519104, 1.1123837232589722, 0.18105080723762512, -0.6843531131744385, 0.2991986870765686, -0.27682843804359436, 0.5080105662345886, -0.5751857757568359, 0.28281891345977783, -0.21794670820236206, 0.26703721284866333, 0.4737825393676758, -0.9372746348381042, -0.05699554458260536, -0.2761287987232208, 0.27414026856422424, 0.339993953704834, -0.7462823390960693, 0.7067416310310364, -0.3340058922767639, -0.15518002212047577, 0.34865808486938477, 0.5970425009727478, 0.04101422429084778, 0.46579110622406006, 0.6139113903045654, 0.754963219165802, 0.33879780769348145, 0.22400029003620148, 0.895007848739624, -0.2904907166957855, 0.08136194199323654, 1.4147685766220093, -0.2418738305568695, 0.9034003019332886, 1.1130750179290771, -0.048913124948740005, 0.34065449237823486, 0.520271360874176, -0.17990948259830475, 0.916845440864563, -0.1069444790482521, 0.10096003115177155, -0.6676672101020813, -0.35108864307403564, -0.3347393274307251, 0.30131569504737854, -0.014820997603237629, -0.7435985803604126, -0.24332043528556824, -0.2699167728424072, -0.43509888648986816, 0.28411421179771423, -0.24140071868896484, 0.8195393681526184, -0.0070103844627738, -0.6711541414260864, 0.4662838280200958, -0.6066297292709351, 0.7177272439002991, -0.5080424547195435, 0.05180925875902176, -0.02516605705022812, 0.2153230905532837, -0.26199981570243835, -0.7709243297576904, -0.0009996789740398526, -0.2500932514667511, -0.4639239013195038, -0.17294877767562866, 0.347893625497818, -0.4992663860321045, -0.659568727016449, 0.11941566318273544, 0.10494159162044525, -0.09351334720849991, 0.5435012578964233, -0.7723314166069031, 0.1845698356628418, -0.025609057396650314, 0.11409526318311691, 0.5446299314498901, 0.43147286772727966, -0.41026559472084045, 0.5786473751068115, 0.7702738046646118, -0.003126490395516157, 0.12608548998832703, 0.17202545702457428, 0.8075616955757141, -0.48619526624679565, -0.47251683473587036, -0.8455928564071655, 0.6255690455436707, -0.42779022455215454, -0.34536173939704895, 0.6090156435966492, 0.6684840321540833, 0.6303377151489258, 0.134956493973732, 0.24505053460597992, 0.2224911004304886, -0.11786214262247086, -0.46023011207580566, 0.2311476320028305, -1.063024878501892, -0.005354697350412607, -0.5614938735961914, -0.7860957980155945, -0.6381059885025024, 0.733741283416748, -0.24999862909317017, -0.3936217725276947, 0.8528207540512085, 0.9499015808105469, -0.07487010210752487, -0.40887075662612915, 0.5146365165710449, -0.3075525462627411, 0.25899747014045715, 0.5384414196014404, 0.5652707815170288, -0.4405677914619446, 0.6241567134857178, -0.2872982323169708, -0.2372276782989502, -0.372906893491745, -1.1158698797225952, -0.8119425177574158, -0.6663098335266113, -0.6197425127029419, -0.07440493255853653, -0.24260878562927246, 0.5311369895935059, 0.7697033286094666, -0.49112075567245483, -0.12306296825408936, -0.12814362347126007, 0.08143624663352966, -0.3245660066604614, -0.16388043761253357, 0.3135799467563629, -0.41495874524116516, -0.5934340357780457, -0.17579588294029236, 0.5190094709396362, 0.35939228534698486, -0.029055248945951462, -0.061127133667469025, -0.1222463995218277, 0.13074827194213867, 0.5359720587730408, 0.17789001762866974, -0.8792272806167603, -0.23344135284423828, -0.06358881294727325, -0.5707193613052368, 0.25880858302116394, 0.9052038788795471, -0.678171694278717, 0.9801164269447327, 0.8524860143661499, 0.6459276080131531, 0.3556899130344391, 0.13705843687057495, 0.6812174320220947, -0.25533485412597656, 0.351950079202652, -0.19508151710033417, 0.6763871908187866, 0.39334648847579956, -0.2712860107421875, 0.564922571182251, 0.14146524667739868, -0.5645920634269714, -0.8608705997467041, 0.2236258089542389, -1.5492075681686401, -0.05341587960720062, 0.7098856568336487, 0.04556479677557945, -0.34505367279052734, 0.1760043501853943, -0.5763448476791382, -0.025765372440218925, -0.16191880404949188, 0.6265692114830017, 0.659659743309021, 0.06800568848848343, -0.3627465069293976, -0.09743770956993103, 0.15031573176383972, 0.8690162301063538, -0.40337657928466797, -0.11988531053066254, 0.5491067171096802, 0.0303172767162323, 0.3314138948917389, 0.6767101883888245, -0.3124016225337982, 0.311150461435318, 0.00854287575930357, -0.07011020928621292, 0.26687803864479065, -0.22293320298194885, -0.18999943137168884, -0.10809114575386047, -0.0689803808927536, -0.5545286536216736 ]
http://arxiv.org/abs/2405.17849v2
http://arxiv.org/pdf/2405.17849v2
I-LLM: Efficient Integer-Only Inference for Fully-Quantized Low-Bit Large Language Models
2024-05-28T05:56:11
2024-06-05T15:26:58
Xing Hu, Yuan Cheng, Dawei Yang, Zhihang Yuan, Jiangyong Yu, Chen Xu, Sifan Zhou
cs.LG
cs.LG, cs.AI, cs.CL
Post-training quantization (PTQ) serves as a potent technique to accelerate the inference of large language models (LLMs). Nonetheless, existing works still necessitate a considerable number of floating-point (FP) operations during inference, including additional quantization and de-quantization, as well as non-linear operators such as RMSNorm and Softmax. This limitation hinders the deployment of LLMs on the edge and cloud devices. In this paper, we identify the primary obstacle to integer-only quantization for LLMs lies in the large fluctuation of activations across channels and tokens in both linear and non-linear operations. To address this issue, we propose I-LLM, a novel integer-only fully-quantized PTQ framework tailored for LLMs. Specifically, (1) we develop Fully-Smooth Block-Reconstruction (FSBR) to aggressively smooth inter-channel variations of all activations and weights. (2) to alleviate degradation caused by inter-token variations, we introduce a novel approach called Dynamic Integer-only MatMul (DI-MatMul). This method enables dynamic quantization in full-integer matrix multiplication by dynamically quantizing the input and outputs with integer-only operations. (3) we design DI-ClippedSoftmax, DI-Exp, and DI-Normalization, which utilize bit shift to execute non-linear operators efficiently while maintaining accuracy. The experiment shows that our I-LLM achieves comparable accuracy to the FP baseline and outperforms non-integer quantization methods. For example, I-LLM can operate at W4A4 with negligible loss of accuracy. To our knowledge, we are the first to bridge the gap between integer-only quantization and LLMs. We've published our code on anonymous.4open.science, aiming to contribute to the advancement of this field.
[ -0.4927305281162262, -0.8887138366699219, 0.5692840814590454, 0.3580123782157898, -0.39822831749916077, 0.35588574409484863, -0.23609718680381775, -0.18734322488307953, 0.033397067338228226, 0.29640665650367737, -0.4923531413078308, -0.5965952277183533, -0.571654200553894, 0.018649153411388397, -0.2805067300796509, 0.5357100963592529, 0.19393467903137207, 0.04396854341030121, -0.22482499480247498, -0.11902064085006714, 0.39639317989349365, -0.6409420967102051, -0.6047483682632446, -0.08429273962974548, 0.3957534432411194, 0.26957201957702637, 0.5818943381309509, 0.6222101449966431, 0.47068026661872864, 0.27347466349601746, -0.19557690620422363, 0.1061670109629631, -0.4537714719772339, -0.14297576248645782, 0.03212519362568855, -0.6292019486427307, -0.6483471989631653, -0.287617951631546, 1.0065250396728516, 0.6065329909324646, -0.02396462857723236, 0.10614772140979767, -0.2963337302207947, 0.9087731242179871, -0.8234902024269104, -0.08239833265542984, -0.7432454228401184, 0.14971187710762024, -0.27060195803642273, 0.08511143177747726, -0.48778796195983887, -0.4328729212284088, -0.1949204057455063, -0.5810660123825073, -0.17846593260765076, -0.29824158549308777, 0.4522477686405182, 0.5301995873451233, -0.8103499412536621, -0.03358686342835426, -0.670849084854126, 0.748311460018158, -1.1486496925354004, 0.46207284927368164, 0.179212749004364, -0.034911345690488815, -0.11363215744495392, -0.8373681306838989, -0.5566018223762512, -0.0814221128821373, 0.369553804397583, 0.02247845008969307, -0.16806074976921082, 0.5288402438163757, 0.4296607971191406, 0.4885617196559906, -0.25481873750686646, 0.32320332527160645, -0.10018826276063919, 0.008455655537545681, 0.4424121081829071, -0.022187190130352974, -0.09801045060157776, 0.18100471794605255, -0.43273940682411194, 0.11873557418584824, -0.9879290461540222, 0.2634645402431488, 0.4061829149723053, -0.26849520206451416, -0.18874146044254303, 0.3429339528083801, -0.3197779953479767, 0.5343378186225891, 0.20765967667102814, -0.3615492582321167, 0.12087994068861008, -0.1450902819633484, -0.23778362572193146, -0.044373612850904465, 0.9340059757232666, 0.006548076868057251, 0.08391840755939484, -0.010680895298719406, -0.3733246326446533, -0.11606775224208832, -0.13806651532649994, -1.2023252248764038, -0.14525867998600006, 0.3518252670764923, -0.35858452320098877, -0.2984425127506256, -0.048871733248233795, -0.5407246351242065, -0.19689656794071198, -0.16646574437618256, 0.5073614716529846, -0.4312205910682678, -0.5241512656211853, 0.08977877348661423, 0.4778130352497101, 0.023610448464751244, 0.4021981954574585, -0.8142565488815308, 0.5124384760856628, 0.8588587045669556, 0.8887548446655273, -0.13651998341083527, 0.013977210968732834, -0.7065567374229431, -0.15141913294792175, -0.4485858082771301, 0.34601256251335144, -0.2668989896774292, -0.21910206973552704, -0.1834443360567093, -0.2703482508659363, 0.17645946145057678, -0.5684283971786499, 0.27487608790397644, -0.7566714286804199, -0.27708402276039124, 0.16317786276340485, -0.5754441618919373, -0.2041415125131607, -0.09740127623081207, -0.5232177972793579, 0.8724281787872314, -0.06704826653003693, -0.34353095293045044, -0.022111862897872925, -0.5241439342498779, -0.11055341362953186, -0.11718262732028961, -0.20472238957881927, -0.6271587610244751, 0.5159050822257996, 0.10713128745555878, 0.0724266916513443, -0.4184645414352417, 0.43084508180618286, -0.6901636719703674, -0.669121265411377, 0.5565181374549866, -0.9172158241271973, 0.6583349108695984, 0.14122864603996277, -0.519146203994751, 0.11267902702093124, -0.7572520971298218, 0.20038200914859772, -0.17246004939079285, -0.39404216408729553, 0.04965747520327568, 0.09502016752958298, -0.4650648832321167, 0.27893999218940735, 0.32631170749664307, -0.5276063680648804, 0.4020151197910309, -0.11333569139242172, 0.5395799875259399, 0.9094278216362, -0.12973132729530334, 0.6245778799057007, -0.26334148645401, 0.5636580586433411, 0.04284243658185005, 0.11591539531946182, -0.21725106239318848, -0.31251949071884155, -0.7673507928848267, -0.8656613230705261, 0.5242209434509277, 0.5006402134895325, -0.7707390189170837, 0.34341639280319214, -0.5495271682739258, -0.24057453870773315, -0.6024637818336487, -0.023663781583309174, 0.3435409367084503, 0.2370632141828537, 0.048422012478113174, 0.13188627362251282, -0.1505185216665268, -0.7752671241760254, -0.015268616378307343, -0.10608768463134766, -0.15168915688991547, 0.08361576497554779, 0.1255418360233307, -0.08459973335266113, 0.7291364669799805, -0.20361168682575226, 0.11582638323307037, 0.26015210151672363, 0.25357669591903687, 0.5246620178222656, 0.44657984375953674, 0.21196669340133667, -0.6294071078300476, -0.7686513066291809, -0.24448208510875702, -0.566493809223175, -0.45326942205429077, -0.2002905160188675, -0.06355530768632889, 0.23580694198608398, 0.6191416382789612, -0.645444929599762, 0.5037692189216614, 0.6829090714454651, -0.0939650908112526, 0.24103966355323792, -0.13267119228839874, 0.050663061439991, -0.5494107007980347, -0.12706324458122253, -0.052010584622621536, -0.5784884691238403, -0.6827087998390198, -0.11063960194587708, 0.4055613577365875, -0.009361677803099155, -0.5431308150291443, 0.40015825629234314, -0.44572481513023376, -0.2370203286409378, -0.19202426075935364, -0.08853746205568314, 0.09428242594003677, 0.6229812502861023, -0.05901966989040375, 0.930107831954956, 0.5566333532333374, -0.4339750409126282, 0.052659451961517334, -0.28276070952415466, -0.28980690240859985, 0.5321856737136841, -0.3665394186973572, 0.28691279888153076, -0.23762761056423187, 0.23139405250549316, -0.8857029676437378, 0.24273483455181122, 0.06683613359928131, -0.3540602922439575, 0.23654954135417938, -0.4761659801006317, -0.5448774099349976, 0.006118385586887598, -0.5254181623458862, 0.5044158697128296, 0.7253940105438232, -0.503474235534668, 0.5728350877761841, 0.0925876721739769, -0.17963933944702148, -0.45441901683807373, -0.4622371196746826, 0.12593784928321838, -0.3480868935585022, -0.7190163731575012, 0.3610397279262543, -0.38586729764938354, -0.5489638447761536, -0.13711340725421906, -0.3323307931423187, -0.20965896546840668, 0.2904350161552429, 0.2160879671573639, 0.09450861066579819, -0.4150046408176422, 0.06077469140291214, 0.27687597274780273, -0.20604588091373444, 0.051081836223602295, -0.4155502915382385, 0.48290812969207764, -0.4387683868408203, -0.6149648427963257, -0.5560307502746582, 0.258830189704895, 0.7785590887069702, -0.3068900406360626, 0.45134520530700684, 0.6519590616226196, -0.3293914496898651, -0.08432410657405853, -0.5728987455368042, -0.14257130026817322, -0.5632830858230591, 0.41000989079475403, -0.7141930460929871, -0.83396315574646, 0.27997225522994995, -0.3933117985725403, 0.09868974983692169, 0.13577237725257874, 0.6081889271736145, -0.2038286328315735, 0.9750285148620605, 0.19311925768852234, 0.33107221126556396, 0.6733921766281128, -0.36596837639808655, 0.31879523396492004, -0.9471075534820557, 0.1369415670633316, 0.07672469317913055, -0.3585450053215027, -0.45162519812583923, -0.6641262769699097, 0.6374488472938538, 0.5010095238685608, -0.31860435009002686, -0.5029862523078918, -0.3065471351146698, 0.250627338886261, 0.6257070899009705, 0.16264431178569794, 0.49598395824432373, 0.09993933886289597, 0.15055634081363678, -0.20627574622631073, -0.44469889998435974, -0.30526459217071533, 1.0184266567230225, 0.410239577293396, 0.9549493193626404, 0.3525879681110382, 0.6412515044212341, 0.2679379880428314, 0.2544611692428589, -0.9038363099098206, 0.6680877804756165, -0.31567180156707764, -0.2560826539993286, -0.32569247484207153, -0.5153975486755371, -0.6255165338516235, 0.6067110300064087, -0.14935578405857086, -0.5918240547180176, 0.16962289810180664, 0.11067245900630951, -0.3397093415260315, 0.571504533290863, -0.44134044647216797, 0.3490946292877197, -0.39611080288887024, -0.42762717604637146, -0.3407675325870514, -0.49870777130126953, 0.5643301606178284, -0.4499095678329468, 0.4083544611930847, -0.6458982825279236, -0.5384988784790039, 0.24430133402347565, -0.7419807314872742, 0.6022163033485413, -0.24352124333381653, -0.08723495155572891, 0.28127312660217285, 0.21559803187847137, 0.6709674000740051, 0.30068594217300415, -0.3622514307498932, 0.3490702211856842, -0.08370157331228256, -0.3567233979701996, -0.42723318934440613, 0.8033224940299988, -0.8268041014671326, -0.5699757933616638, -0.42152127623558044, -0.6687450408935547, -0.20776164531707764, 0.13476110994815826, -0.04414007440209389, 0.5207836031913757, 0.386457622051239, 0.525679349899292, 0.848170816898346, -0.021821722388267517, 0.7475425601005554, 0.7411326169967651, -0.25566592812538147, -0.8347523212432861, 1.0193626880645752, 0.05559632554650307, 0.8130401968955994, 0.620110273361206, 0.19203297793865204, -0.32780972123146057, -0.9071274399757385, -0.515911877155304, 0.20646245777606964, -0.563585638999939, -0.18385621905326843, -0.6155459880828857, -0.14641472697257996, -0.1501130610704422, -0.08915611356496811, -0.5227051973342896, -0.6258525252342224, -0.4226920008659363, 0.03856007382273674, 0.4802180826663971, 0.3434922993183136, -0.5681931972503662, 0.5841403603553772, -0.6610325574874878, 0.6041837930679321, 0.21026863157749176, 0.19272710382938385, -0.14604943990707397, -0.43331632018089294, -0.13134229183197021, 0.33911675214767456, -0.02258722111582756, -0.4505613148212433, 0.22031523287296295, 0.5371453166007996, 0.1279984414577484, 0.39868059754371643, 0.22275874018669128, 0.6593549847602844, -0.3120705187320709, 0.4795725643634796, 0.20332488417625427, -1.2001839876174927, -0.1748746931552887, -0.21277491748332977, 0.43000829219818115, 0.589788019657135, 0.15509682893753052, -0.43099090456962585, -0.14657698571681976, -0.3823307752609253, -1.034759283065796, 0.6236081123352051, 0.0037364372983574867, -0.04497242346405983, 0.15190339088439941, 0.33534154295921326, -0.034093692898750305, 0.5185360908508301, -0.8870860934257507, -0.3716982305049896, -0.06930242478847504, -0.39081496000289917, 0.4853768050670624, -0.3543674349784851, 0.14404891431331635, -0.08514739573001862, 0.6691082715988159, -0.34131482243537903, 0.22725310921669006, 0.07149802148342133, -0.35145172476768494, -0.07290877401828766, -0.07758807390928268, 0.37302911281585693, 0.8642335534095764, -0.18041545152664185, 0.3906642496585846, 0.266731858253479, -0.4014522433280945, 0.425010085105896, -0.01743364706635475, -0.3588546812534332, -0.029845936223864555, 0.09563206136226654, 0.8825865387916565, 0.27621373534202576, -0.6433417797088623, 0.7134676575660706, -0.20731514692306519, -0.1599651426076889, -0.4574183225631714, -0.20756013691425323, 0.19797049462795258, 0.3116154670715332, 0.5870734453201294, -0.20067846775054932, -0.05714541673660278, -0.24755343794822693, 0.31830301880836487, 0.5221275687217712, -0.23136048018932343, -0.3301718533039093, 0.6317981481552124, 0.05709003657102585, -0.3436724841594696, 0.6420543193817139, -0.40048643946647644, -0.15240107476711273, 0.5985310077667236, 0.46745312213897705, 0.6287660598754883, -0.06274247914552689, 0.11052191257476807, 0.03681859374046326, 0.10852806270122528, 0.28971174359321594, 0.545841634273529, -0.14439666271209717, -0.4193711280822754, -0.8115827441215515, -0.5641891956329346, -0.43243491649627686, 0.15923377871513367, -0.4794408977031708, 0.38804954290390015, -0.7893931865692139, -0.08016697317361832, -0.2580210566520691, -0.19322504103183746, -0.29346469044685364, 0.20507100224494934, 0.48966145515441895, 0.7789221405982971, -0.27729886770248413, 1.1923631429672241, 0.31345072388648987, 0.14671528339385986, -0.2595739960670471, -0.11927122622728348, -0.018090149387717247, -0.9587310552597046, 0.3326300084590912, -0.1008237823843956, -0.031858179718256, 0.47729241847991943, -0.4253195524215698, -1.0082001686096191, 1.1210192441940308, 0.47920987010002136, -0.8100156784057617, -0.04722575470805168, 0.4665566682815552, 0.08545797318220139, 0.08431628346443176, 0.4566277265548706, 0.32095012068748474, 0.41182541847229004, 0.2662629783153534, -0.6337817311286926, -0.010851560160517693, -0.0553080178797245, 0.014053505845367908, 0.5193645358085632, -0.7857012152671814, 1.1697509288787842, -0.00013915443560108542, 0.04967479780316353, 0.22022026777267456, 0.690593957901001, 0.5399389266967773, 0.04093346372246742, 0.7197389006614685, 0.621566653251648, 0.7500261068344116, -0.09032636880874634, 0.6607964634895325, -0.6901095509529114, 0.3898034691810608, 0.8702802658081055, 0.06908812373876572, 0.6368527412414551, 0.660699188709259, -0.391145795583725, 0.1464615911245346, 0.712233304977417, 0.3614160418510437, 0.6115078926086426, 0.5365671515464783, -0.9618258476257324, -0.261669397354126, -0.053548358380794525, -0.16114221513271332, -0.0007385012577287853, 0.6691605448722839, 0.11659525334835052, -0.015981532633304596, -0.0702851414680481, 0.25007057189941406, -0.4062731862068176, -0.34742164611816406, 0.7762935757637024, 0.4544236660003662, -0.3143903315067291, 0.884260892868042, 0.013940268196165562, 0.9535204768180847, -0.8051280379295349, 0.04719789698719978, -0.22497084736824036, 0.1158023253083229, -0.28127190470695496, -0.5066247582435608, 0.12359138578176498, -0.2930320203304291, 0.0729772076010704, -0.2548881471157074, 0.4095137119293213, -0.4792836010456085, -0.5333775281906128, 0.07703416049480438, 0.3276912569999695, 0.08103890717029572, -0.4669966399669647, -0.48465532064437866, 0.3813938796520233, 0.16045132279396057, -0.323039174079895, 0.44665801525115967, 0.7837544679641724, -0.05199665203690529, 0.6096494197845459, 0.8231735229492188, 0.06189880147576332, 0.5046384334564209, -0.1953190714120865, 0.6520313620567322, -0.57881098985672, -0.22104358673095703, -1.0791311264038086, 0.7446588277816772, 0.11515389382839203, -0.0923394113779068, 0.21731217205524445, 0.5054463148117065, 0.344387412071228, 0.17015154659748077, 0.8440578579902649, 0.053386252373456955, 0.03976151719689369, -0.5101278424263, 0.1890079379081726, -0.5365865230560303, 0.34363996982574463, 0.2822798788547516, -0.8596595525741577, -0.1650061458349228, 0.5007835030555725, -0.2270997315645218, -0.432866632938385, 0.5421851873397827, 0.5731056928634644, -0.11955701559782028, -0.37712836265563965, 0.5193254351615906, 0.42476752400398254, 0.704840898513794, 0.5925269722938538, 0.828348696231842, -0.20849165320396423, 0.5101850628852844, -0.5065283179283142, -0.36491823196411133, -0.3801044523715973, -1.0629185438156128, -0.5086092948913574, -0.18784990906715393, -0.374849408864975, -0.21670155227184296, 0.038142137229442596, 0.9570123553276062, 0.6979816555976868, -0.5249283313751221, -0.30086416006088257, -0.259490430355072, 0.32172155380249023, 0.16876403987407684, -0.1952669769525528, 0.16776736080646515, -0.1775980442762375, -1.0003433227539062, 0.49178439378738403, 0.5751802325248718, 0.11656930297613144, -0.4352245032787323, -0.014931495301425457, -0.07865927368402481, 0.1178588718175888, 0.5868254899978638, 0.23124559223651886, -0.6418250799179077, -0.0666709914803505, 0.07776428759098053, -0.14647845923900604, 0.4806664288043976, 0.6470460295677185, -0.692380964756012, 0.3370373249053955, 0.39001795649528503, 0.7047715783119202, 1.0257014036178589, -0.01738874241709709, 0.5496978163719177, -0.43326881527900696, 0.38277867436408997, 0.38252881169319153, 0.2635810375213623, 0.23876900970935822, -0.25606170296669006, 0.4953455924987793, 0.21536608040332794, -0.4973260760307312, -0.8861989974975586, 0.2661137282848358, -0.7814422845840454, -0.09169843047857285, 1.20042085647583, -0.27162042260169983, -0.1672220081090927, 0.26494985818862915, 0.035857196897268295, 0.01870114356279373, -0.4749103784561157, 0.4953152537345886, 0.3675048053264618, -0.2259003072977066, -0.3054935038089752, -0.5657850503921509, 0.2947237193584442, 0.3563176095485687, -0.7507120966911316, -0.2572261691093445, 0.28296127915382385, 0.2651284337043762, -0.2951792776584625, 0.9020465612411499, -0.06978946924209595, 0.07053065299987793, -0.1739625632762909, 0.18412448465824127, -0.05661580711603165, -0.0092648696154356, -0.48353537917137146, -0.04616367071866989, 0.3721636235713959, -0.2132890522480011 ]
http://arxiv.org/abs/2405.17840v2
http://arxiv.org/pdf/2405.17840v2
Benchmarks Underestimate the Readiness of Multi-lingual Dialogue Agents
2024-05-28T05:33:13
2024-06-16T20:45:23
Andrew H. Lee, Sina J. Semnani, Galo Castillo-López, Gäel de Chalendar, Monojit Choudhury, Ashna Dua, Kapil Rajesh Kavitha, Sungkyun Kim, Prashant Kodali, Ponnurangam Kumaraguru, Alexis Lombard, Mehrad Moradshahi, Gihyun Park, Nasredine Semmar, Jiwon Seo, Tianhao Shen, Manish Shrivastava, Deyi Xiong, Monica S. Lam
cs.CL
cs.CL
Creating multilingual task-oriented dialogue (TOD) agents is challenging due to the high cost of training data acquisition. Following the research trend of improving training data efficiency, we show for the first time, that in-context learning is sufficient to tackle multilingual TOD. To handle the challenging dialogue state tracking (DST) subtask, we break it down to simpler steps that are more compatible with in-context learning where only a handful of few-shot examples are used. We test our approach on the multilingual TOD dataset X-RiSAWOZ, which has 12 domains in Chinese, English, French, Korean, Hindi, and code-mixed Hindi-English. Our turn-by-turn DST accuracy on the 6 languages range from 55.6% to 80.3%, seemingly worse than the SOTA results from fine-tuned models that achieve from 60.7% to 82.8%; our BLEU scores in the response generation (RG) subtask are also significantly lower than SOTA. However, after manual evaluation of the validation set, we find that by correcting gold label errors and improving dataset annotation schema, GPT-4 with our prompts can achieve (1) 89.6%-96.8% accuracy in DST, and (2) more than 99% correct response generation across different languages. This leads us to conclude that current automatic metrics heavily underestimate the effectiveness of in-context learning.
[ -0.4504317343235016, -0.39665260910987854, 0.5022815465927124, 0.15671434998512268, -0.21209372580051422, 0.3966352343559265, -0.28109705448150635, -0.23621848225593567, -0.21045547723770142, 0.15105654299259186, -0.742304801940918, -0.3402835726737976, -0.5923976302146912, 0.3435710072517395, 0.051046088337898254, 1.2342764139175415, -0.12735974788665771, 0.026386398822069168, -0.08795734494924545, -0.37526601552963257, -0.5468048453330994, -0.5296168327331543, -0.9138816595077515, -0.39334046840667725, 0.35223135352134705, 0.5205520987510681, 0.2705026865005493, 0.1257420927286148, 0.05085945129394531, 0.31327688694000244, 0.07059415429830551, 0.3776787221431732, -0.37083059549331665, 0.19962647557258606, -0.016843918710947037, -0.2981727421283722, -0.6675017476081848, -0.1049315482378006, 0.524080753326416, 0.5158880949020386, -0.014015311375260353, -0.10503819584846497, 0.10825789719820023, 0.6051754951477051, -0.30830129981040955, 0.5885095000267029, -0.606846034526825, -0.08771169185638428, -0.22230234742164612, -0.3610844612121582, -0.48074308037757874, -0.1256834715604782, 0.31892696022987366, -0.7979336977005005, 0.03568168357014656, -0.23900020122528076, 0.6115941405296326, 0.3213244676589966, -0.7165399193763733, -0.3814654052257538, -0.37800532579421997, 0.8419923186302185, -0.6166371703147888, 0.5283442139625549, 0.45336076617240906, 0.4157426655292511, -0.28925445675849915, -0.47811704874038696, -0.36289840936660767, -0.2119465172290802, 0.04899362847208977, 0.27338653802871704, 0.06338176876306534, -0.0707864984869957, 0.49230754375457764, -0.08948268741369247, -0.5106266736984253, -0.15364931523799896, -0.05829421803355217, -0.29084229469299316, 0.4581584334373474, 0.23386025428771973, 0.17234916985034943, -0.05695804953575134, -0.5291759371757507, -0.2049083411693573, -0.6389596462249756, 0.3132587969303131, 0.20304307341575623, 0.6239579916000366, -0.1359560638666153, 0.26239290833473206, -0.3282245099544525, 0.45499011874198914, 0.22021931409835815, -0.4999438226222992, 0.32772815227508545, -0.8020618557929993, 0.06256303191184998, 0.10708516836166382, 0.5963637232780457, 0.2527719736099243, 0.3361937999725342, -0.16971305012702942, -0.313255250453949, -0.06355897337198257, 0.3171967566013336, -0.7579511404037476, -0.0701427161693573, 0.10406510531902313, 0.24221372604370117, 0.5007128119468689, -0.3126918077468872, -0.4563405513763428, -0.18429350852966309, -0.24659684300422668, 0.3339740037918091, -0.6050953269004822, -0.20628388226032257, -0.12428616732358932, 0.18250514566898346, 0.1716325730085373, 0.6231445670127869, -0.7631605863571167, 0.08272533863782883, 0.44230952858924866, 0.8376827239990234, -0.0927550196647644, -0.5173684358596802, -0.5883364081382751, -0.06928306072950363, -0.5785098075866699, 0.8083658218383789, -0.1454666256904602, -0.4381471872329712, -0.1969323754310608, 0.060139354318380356, -0.48061510920524597, -0.2898600101470947, 0.3723859488964081, -0.3566344976425171, 0.11312046647071838, -0.5322469472885132, -0.2561872899532318, -0.07154795527458191, 0.7128917574882507, -0.4047279357910156, 0.9265280961990356, 0.3914099335670471, -0.6787797212600708, 0.7293886542320251, -0.5622062683105469, -0.5198084712028503, 0.027590671554207802, -0.18047212064266205, -0.13978272676467896, -0.21711038053035736, 0.39664173126220703, 0.3544175326824188, -0.19085203111171722, 0.4010387063026428, 0.21802473068237305, -0.4770132005214691, 0.05830034613609314, -0.573144257068634, 0.7086634635925293, 0.09516467154026031, -0.46447664499282837, -0.15169957280158997, -0.603096604347229, 0.14566351473331451, -0.26629912853240967, -0.6206331849098206, -0.1564013808965683, -0.3245609998703003, -0.08536326885223389, 0.3977813720703125, -0.04520281031727791, -0.6810851693153381, 0.09479440003633499, -0.43830546736717224, 0.17288413643836975, 0.6774991750717163, -0.220602884888649, 0.3448573350906372, -0.2954223155975342, 0.7161461114883423, 0.2068958580493927, -0.18351922929286957, -0.40451234579086304, -0.4283909797668457, -0.6379408836364746, -0.3741067945957184, 0.18518885970115662, 0.48798510432243347, -1.3997725248336792, 0.02959051914513111, -0.5404442548751831, -0.5515191555023193, -0.2283969670534134, -0.014994572848081589, 0.7339745163917542, 0.7065356969833374, 0.22678853571414948, -0.47722306847572327, -0.3119012713432312, -0.607559859752655, -0.31438690423965454, -0.1792607456445694, 0.23624497652053833, 0.20273980498313904, 0.564670205116272, -0.21961049735546112, 0.9084727168083191, 0.12490712851285934, -0.2953663170337677, -0.6603367328643799, 0.14446604251861572, 0.08422761410474777, 0.4977249205112457, 0.45943063497543335, -0.7738675475120544, -1.123686671257019, 0.3196648061275482, -0.7092547416687012, 0.12434110790491104, 0.0673656165599823, 0.26195093989372253, 0.6970605850219727, 0.2127988338470459, -0.5531793236732483, 0.3045015335083008, 0.43255096673965454, -0.10986573249101639, 0.283561646938324, -0.1538897454738617, 0.4775322377681732, -1.1739881038665771, -0.052257638424634933, 0.09197152405977249, -0.37828388810157776, -0.8975592851638794, -0.3121529817581177, 0.18967078626155853, -0.10873796790838242, -0.6583516597747803, 0.7178514003753662, -0.3482069969177246, 0.032251887023448944, -0.2220790982246399, 0.2291213423013687, -0.09844166785478592, 0.8781784176826477, 0.11201955378055573, 1.0913732051849365, 0.510786771774292, -0.7243764400482178, 0.19261159002780914, 0.2736590504646301, -0.5617526769638062, 0.8731306195259094, -0.3427479863166809, 0.24970895051956177, -0.12034131586551666, 0.6971688270568848, -0.9306908845901489, -0.26761287450790405, 0.25834164023399353, -0.2917931079864502, 0.42853304743766785, -0.3279367685317993, -0.37765154242515564, 0.026697464287281036, -0.009494494646787643, 0.5674356818199158, 0.12056349217891693, -0.5438458323478699, 0.5965662002563477, 0.28306764364242554, -0.23208622634410858, -0.8210980296134949, -0.5049537420272827, 0.04586010053753853, -0.33965209126472473, -0.39301756024360657, -0.014125488698482513, -0.0937882736325264, 0.008495805785059929, -0.4340386986732483, -0.39322739839553833, -0.07503604888916016, -0.00960374716669321, -0.06351909786462784, -0.15591777861118317, 0.051294952630996704, 0.11651759594678879, -0.14282862842082977, -0.5467488169670105, -0.26462605595588684, -0.19118933379650116, 0.4721430540084839, -0.25107917189598083, -0.39550691843032837, -0.5021705031394958, 0.30137792229652405, 0.7175114750862122, -0.10669263452291489, 0.36190372705459595, 0.5690180659294128, -0.26054415106773376, -0.07610617578029633, -0.19297254085540771, -0.07222428172826767, -0.39609479904174805, 0.5593521595001221, -0.8734910488128662, -0.49518081545829773, 0.40340396761894226, -0.03386837616562843, 0.2228521853685379, 0.17281560599803925, 0.35969915986061096, 0.046113260090351105, 1.2865039110183716, 0.5739429593086243, -0.004036567639559507, 0.4126933515071869, -0.325684517621994, 0.3636801540851593, -0.8037856221199036, -0.16656850278377533, -0.4390617609024048, 0.033808253705501556, -0.5666881799697876, -0.2616761326789856, 0.8333970904350281, -0.30897802114486694, -0.18090100586414337, 0.6187658309936523, 0.12342284619808197, 0.2213393747806549, 0.48208194971084595, -0.010661348700523376, 0.3214864730834961, -0.049846407026052475, -0.011956083588302135, -0.21424487233161926, -0.9796673059463501, -0.40574273467063904, 1.0639780759811401, 0.23740018904209137, 0.7242259979248047, 0.17015033960342407, 0.6018053889274597, 0.09265780448913574, 0.16682814061641693, -0.7039006352424622, 0.4155849814414978, -0.15637338161468506, -0.5554022192955017, -0.3794761300086975, -0.3504234254360199, -0.8119606971740723, 0.42053091526031494, 0.33856654167175293, -0.7535502314567566, 0.16497564315795898, 0.1551801711320877, -0.2767581045627594, 0.04434264078736305, -0.8137179613113403, 1.0392699241638184, -0.19979849457740784, -0.22131521999835968, 0.009031972847878933, -0.6442868709564209, 0.04898342117667198, -0.29129165410995483, 0.20305576920509338, -0.3035168945789337, 0.17232494056224823, 0.5450824499130249, -0.31758520007133484, 0.9496647119522095, -0.4255593419075012, -0.308206170797348, 0.2363964170217514, 0.008977227844297886, 0.6904559135437012, 0.14988842606544495, 0.023366622626781464, -0.05198459327220917, 0.1421550214290619, -0.6521261930465698, -0.664228081703186, 0.4870644509792328, -0.4631098508834839, -0.46407270431518555, -0.6113789677619934, -0.7320383191108704, -0.7450271844863892, -0.01764986850321293, 0.3781958818435669, 0.7950618267059326, -0.14148640632629395, 0.12725363671779633, 0.6330677270889282, 0.01976371370255947, 0.37584322690963745, 0.6780167818069458, 0.2390172779560089, -0.19871313869953156, 0.9649919867515564, 0.2720831334590912, 0.500527560710907, 0.1997619867324829, 0.04906000941991806, -0.582467794418335, -0.3564455509185791, -0.9820652604103088, -0.11852288246154785, -0.8238236308097839, -0.241768941283226, -0.73362797498703, 0.010974373668432236, -0.2971349060535431, -0.03389845788478851, -0.5607885718345642, -0.11033892631530762, 0.2545020878314972, -0.0001755143457558006, 0.1664818823337555, 0.54960036277771, 0.12147089838981628, 0.2852012515068054, -0.7141584157943726, 0.10434306412935257, 0.2824785113334656, 0.1036999449133873, -0.17322631180286407, -0.6023055911064148, -0.654239296913147, 0.355350524187088, -0.2305731177330017, -0.5025962591171265, 0.22859300673007965, 0.36945003271102905, 0.6127968430519104, -0.013286743313074112, 0.1587781012058258, 0.8949628472328186, -0.36335936188697815, 0.8654101490974426, -0.053310129791498184, -0.8173748254776001, 0.5533673763275146, -0.4461854100227356, 0.6475825905799866, 0.6487046480178833, 0.47804155945777893, -0.6512333154678345, -0.5733078122138977, -0.5353621244430542, -0.731274425983429, 1.27486252784729, -0.025499004870653152, 0.21729688346385956, -0.023799659684300423, -0.05008159577846527, 0.35189858078956604, 0.23992733657360077, -0.6234822273254395, -0.05293452739715576, -0.3119826316833496, -0.05532025173306465, -0.5147930979728699, 0.06616651266813278, -0.19921153783798218, -0.10919512063264847, 0.8351912498474121, -0.6819331049919128, -0.026216229423880577, 0.226737841963768, -0.32372260093688965, -0.002301015891134739, 0.46731218695640564, 0.6030190587043762, 0.8107045292854309, -0.130702406167984, -0.15432745218276978, 0.36724749207496643, -0.34703636169433594, 0.3889249265193939, 0.12842825055122375, -0.1055661290884018, -0.040426645427942276, 0.35521838068962097, 0.8553804159164429, 0.2865769863128662, -0.8786987662315369, 0.49549275636672974, -0.22519971430301666, -0.07512500882148743, -0.15723943710327148, -0.09692217409610748, -0.35294055938720703, 0.3434702754020691, 0.343856543302536, 0.1008777990937233, -0.05233871191740036, -0.7813239097595215, 0.13587403297424316, 0.34739771485328674, -0.5442031025886536, -0.33667391538619995, 0.22549749910831451, 0.23384535312652588, -0.07573159039020538, 0.4475175738334656, -0.4260355532169342, -0.7270460724830627, 0.531959593296051, 0.5476811528205872, 0.771676778793335, -0.09443755447864532, 0.3212633728981018, 0.4688202738761902, 0.16432879865169525, -0.23703299462795258, 0.14603033661842346, -0.31556960940361023, -0.7669180035591125, -0.34357038140296936, -0.2828693389892578, -0.5741392374038696, -0.10675555467605591, -0.43277618288993835, -0.06304498016834259, -0.12294142693281174, -0.28119659423828125, -0.4142625033855438, 0.34877267479896545, -0.7342274188995361, 0.36575067043304443, -0.2848967909812927, 0.6706463098526001, -0.7577925324440002, 1.033962607383728, 0.812197744846344, -0.2426334172487259, -0.7083196043968201, 0.11875014007091522, 0.08389665186405182, -0.6155551075935364, 0.6215002536773682, 0.299356073141098, -0.2525351345539093, 0.05024566128849983, 0.11917772144079208, -0.7814517021179199, 0.9583595395088196, 0.4013756513595581, -0.24406588077545166, 0.15810930728912354, -0.013279249891638756, 0.6833744049072266, -0.3791247010231018, 0.3868926763534546, 0.7236340045928955, 0.43804824352264404, -0.11274144798517227, -1.3276880979537964, -0.10087601840496063, -0.21956856548786163, -0.09477753937244415, 0.15954191982746124, -0.734976589679718, 0.9279918074607849, -0.09831234812736511, -0.4463008940219879, 0.08295415341854095, 0.21345694363117218, 0.24192072451114655, 0.5250886082649231, 0.7164873480796814, 0.37689608335494995, 0.5279555916786194, -0.4017218053340912, 1.0376253128051758, -0.11231908947229385, 0.1348920613527298, 0.9807192087173462, -0.28980350494384766, 0.4215535819530487, 0.49156174063682556, -0.04743229225277901, 0.2816237509250641, 0.6983603239059448, 0.5112878680229187, 0.6063281297683716, -0.22731070220470428, -0.25939837098121643, -0.2521764636039734, -0.32198023796081543, -0.19427478313446045, 0.581830620765686, 0.3859166204929352, 0.21152371168136597, -0.37545859813690186, 0.3388785719871521, 0.03200859948992729, 0.13681086897850037, -0.009002146311104298, 0.8959076404571533, -0.06998708844184875, -1.0647470951080322, 0.8290867805480957, -0.3379998207092285, 0.5347867608070374, -0.8409038782119751, 0.06733082234859467, -0.4950522780418396, 0.19244909286499023, 0.029366984963417053, -0.5392462015151978, 0.0641341358423233, 0.253277450799942, 0.03046221286058426, -0.4734308123588562, 0.19837895035743713, -0.6347994804382324, -0.15358726680278778, 0.3599781095981598, 0.8231514096260071, 0.31589287519454956, 0.019900474697351456, -0.5589478015899658, -0.14518016576766968, 0.16922767460346222, -0.23394539952278137, 0.4839654564857483, 0.554690420627594, -0.35740289092063904, 0.8027840852737427, 0.3605307936668396, -0.08151599019765854, 0.05562639981508255, 0.1604912281036377, 0.6600940823554993, -0.4003635048866272, -0.4963589906692505, -0.40369999408721924, 0.6990364193916321, 0.10517733544111252, -0.5267823338508606, 0.7483802437782288, 0.35304924845695496, 1.312732458114624, -0.014632288366556168, 0.9387255907058716, -0.18027016520500183, 0.6211750507354736, -0.6050504446029663, 0.35448935627937317, -0.8337053656578064, 0.17862528562545776, -0.19549225270748138, -0.8733479976654053, 0.11283481121063232, 0.3850606381893158, -0.15924325585365295, 0.2220214605331421, 0.8084118962287903, 0.8668292164802551, -0.07089768350124359, -0.18448223173618317, 0.5150162577629089, -0.11228703707456589, 0.49620094895362854, 0.8241618871688843, 0.9061794281005859, -0.6335223913192749, 0.6094850897789001, -0.5010243058204651, -0.1376398652791977, -0.052711669355630875, -0.6586471199989319, -0.9688782691955566, -0.8818770051002502, -0.22853486239910126, -0.11293409019708633, 0.20457758009433746, 0.9571168422698975, 0.7551640868186951, -0.7881060242652893, -0.29412180185317993, 0.12858378887176514, -0.0015961740864440799, -0.47192543745040894, -0.11213469505310059, 0.213218554854393, -0.8291448950767517, -1.213409185409546, 0.8142504096031189, 0.15314550697803497, 0.13222625851631165, -0.09284970909357071, -0.4025641083717346, -0.11407896876335144, -0.22457122802734375, 0.5886656045913696, 0.43898263573646545, -0.7457877993583679, -0.302351176738739, -0.09945791959762573, -0.29905879497528076, 0.182062566280365, 0.9042596817016602, -0.6923591494560242, 0.7951464056968689, 0.27006569504737854, 0.6582745909690857, 0.4725557565689087, 0.04053677245974541, 0.8424353003501892, -0.9981117844581604, 0.2821360230445862, 0.1655375063419342, 0.4063088595867157, 0.4869481921195984, -0.11009232699871063, 0.6031224131584167, 0.12468475848436356, -0.4491384029388428, -0.7891132831573486, 0.2897898852825165, -0.7239603996276855, 0.022980328649282455, 0.9030070304870605, -0.4568382501602173, 0.0717676505446434, -0.5641274452209473, -0.39502933621406555, 0.2561012804508209, -0.6154921650886536, 0.6416669487953186, 0.7423211336135864, -0.3022123873233795, -0.0753190815448761, -0.5833480954170227, 0.7926885485649109, 0.5983768701553345, -0.6898019313812256, 0.15179109573364258, 0.2765178382396698, 0.12752994894981384, 0.24501028656959534, 1.0872186422348022, 0.1625809371471405, 0.5181499719619751, 0.04432123526930809, -0.3833197355270386, 0.05978282168507576, -0.6916300058364868, -0.2723768949508667, -0.1946093887090683, 0.09009335190057755, -0.17217464745044708 ]
http://arxiv.org/abs/2406.00045v1
http://arxiv.org/pdf/2406.00045v1
Personalized Steering of Large Language Models: Versatile Steering Vectors Through Bi-directional Preference Optimization
2024-05-28T05:10:40
2024-05-28T05:10:40
Yuanpu Cao, Tianrong Zhang, Bochuan Cao, Ziyi Yin, Lu Lin, Fenglong Ma, Jinghui Chen
cs.CL
cs.CL, cs.LG
Researchers have been studying approaches to steer the behavior of Large Language Models (LLMs) and build personalized LLMs tailored for various applications. While fine-tuning seems to be a direct solution, it requires substantial computational resources and may significantly affect the utility of the original LLM. Recent endeavors have introduced more lightweight strategies, focusing on extracting "steering vectors" to guide the model's output toward desired behaviors by adjusting activations within specific layers of the LLM's transformer architecture. However, such steering vectors are directly extracted from the activations of human preference data and thus often lead to suboptimal results and occasional failures, especially in alignment-related scenarios. This work proposes an innovative approach that could produce more effective steering vectors through bi-directional preference optimization. Our method is designed to allow steering vectors to directly influence the generation probability of contrastive human preference data pairs, thereby offering a more precise representation of the target behavior. By carefully adjusting the direction and magnitude of the steering vector, we enabled personalized control over the desired behavior across a spectrum of intensities. Extensive experimentation across various open-ended generation tasks, particularly focusing on steering AI personas, has validated the efficacy of our approach. Moreover, we comprehensively investigate critical alignment-concerning scenarios, such as managing truthfulness, mitigating hallucination, and addressing jailbreaking attacks. Remarkably, our method can still demonstrate outstanding steering effectiveness across these scenarios. Furthermore, we showcase the transferability of our steering vectors across different models/LoRAs and highlight the synergistic benefits of applying multiple vectors simultaneously.
[ -0.6692821979522705, -0.635141134262085, 0.37381261587142944, 0.3811229169368744, -0.2568957805633545, 0.17966824769973755, -0.6087291836738586, -0.20499205589294434, 0.3962533175945282, 0.3674173057079315, -0.5516136288642883, -0.38766011595726013, -0.5024482011795044, -0.2353675365447998, -0.23797889053821564, 1.0348923206329346, 0.11649486422538757, 0.13939133286476135, -0.14627085626125336, -0.31019943952560425, -0.7549927234649658, -0.5419886112213135, -0.5269985795021057, -0.5454912185668945, 0.769507884979248, 0.7981701493263245, 0.8135049343109131, 0.6398019790649414, 0.37307649850845337, 0.2645125091075897, -0.09174301475286484, -0.015675103291869164, -0.7046129107475281, 0.26444151997566223, -0.3730395436286926, -0.21915484964847565, -0.4741694927215576, -0.11571614444255829, 0.4273369014263153, 0.7195997834205627, -0.16117697954177856, -0.15566210448741913, 0.34282732009887695, 0.9118147492408752, -0.5188478827476501, -0.17393440008163452, -0.6076254844665527, 0.04051985219120979, -0.4158723056316376, -0.3554094731807709, -0.31174755096435547, -0.21324628591537476, 0.41401249170303345, -0.5726898312568665, 0.05783728137612343, 0.24143745005130768, 0.6511797308921814, 0.23086905479431152, -0.44209548830986023, -0.1675030142068863, -1.1141606569290161, 0.9790904521942139, -0.5258587598800659, 0.4293183982372284, 0.23190240561962128, 0.2886744737625122, -0.2128869891166687, -0.3060760796070099, -0.4240538477897644, -0.2877679467201233, 0.2249186784029007, 0.08831381797790527, -0.1667410135269165, -0.03687380254268646, -0.08844070136547089, -0.14736820757389069, -0.3935047686100006, 0.5434139966964722, -0.01753665693104267, -0.1479424238204956, 0.6679797768592834, 0.12824746966362, 0.09585638344287872, 0.09323276579380035, -0.4063880443572998, -0.2912219762802124, -0.7459253668785095, 0.25683027505874634, 0.6963659524917603, 0.32002848386764526, -0.23814819753170013, 0.7958909273147583, -0.39025574922561646, 0.5974199771881104, 0.5645937323570251, -0.031332630664110184, 0.3840430676937103, -0.4017942249774933, 0.17107877135276794, 0.16337555646896362, 0.8053635954856873, 0.4793221652507782, 0.20890040695667267, -0.26333484053611755, -0.2086254358291626, -0.1348966360092163, 0.4055207073688507, -0.5759430527687073, -0.14274166524410248, 0.3227751553058624, -0.5166561007499695, -0.5877294540405273, -0.001247523119673133, -1.0628188848495483, -0.5886485576629639, -0.6936421394348145, 0.1453278511762619, -0.39481979608535767, -0.10298217087984085, 0.14932560920715332, 0.09370603412389755, 0.4433057904243469, 0.14247296750545502, -1.2443222999572754, -0.0432780459523201, 0.8949431777000427, 0.7030947208404541, -0.7163046002388, -0.21484582126140594, -0.7268315553665161, 0.3566802740097046, -0.1193077340722084, 0.6905235052108765, -0.7255645394325256, -0.5196771621704102, -0.03735296428203583, -0.4391699433326721, 0.2800405025482178, -0.47816726565361023, 0.6890416741371155, -0.48910602927207947, 0.15557965636253357, -0.33294978737831116, -0.3131001889705658, 0.011770792305469513, 0.1452503800392151, -0.45848530530929565, 0.7390303611755371, -0.1391441375017166, -0.7568342685699463, 0.18708984553813934, -0.5880396962165833, -0.7060608267784119, -0.09105020761489868, -0.3392312824726105, -0.6342067718505859, 0.2219366729259491, 0.21883051097393036, 0.5388855338096619, -0.2913643419742584, 0.404525488615036, -0.39640218019485474, -0.02029753476381302, 0.1654060035943985, -0.13759011030197144, 0.5133634209632874, -0.030976830050349236, -0.48879387974739075, 0.7480096817016602, -0.6109505891799927, -0.2886379361152649, 0.16020864248275757, -0.307878315448761, -0.6005744338035583, 0.2951486110687256, 0.1155179888010025, 0.10329197347164154, 0.4429800808429718, -0.43396544456481934, 0.187240868806839, -0.4420170485973358, 0.20898222923278809, 1.0659736394882202, -0.12434472888708115, 0.9206560850143433, -0.38963863253593445, 0.5379554629325867, 0.06498723477125168, 0.10894620418548584, 0.3609486222267151, -0.458755224943161, -0.872505247592926, -0.1319609433412552, 0.14627289772033691, 0.4616985619068146, -0.7139260172843933, 0.7598652243614197, -0.26844990253448486, -0.5004628300666809, -0.31088048219680786, 0.3503226637840271, 0.40176475048065186, 0.7676200866699219, 0.39123454689979553, -0.26226627826690674, -0.4286119341850281, -1.0615266561508179, -0.31455501914024353, 0.04749321937561035, 0.05521769821643829, 0.3365049362182617, 0.10333532840013504, -0.26196423172950745, 1.0628528594970703, -0.6329464316368103, -0.21839378774166107, -0.5164921879768372, 0.05871986970305443, 0.05720939487218857, 0.4159623980522156, 0.5895868539810181, -1.0884251594543457, -0.5608962774276733, 0.2974907159805298, -0.3770489990711212, -0.27642175555229187, -0.15164580941200256, -0.6000195145606995, 0.06616578251123428, 0.36330467462539673, -0.3321813941001892, 0.10484028607606888, 0.5884799957275391, -0.42833852767944336, 0.597541332244873, -0.31266871094703674, -0.36226701736450195, -1.0063867568969727, 0.02692762203514576, 0.18336017429828644, -0.0817902684211731, -0.7687436938285828, -0.2546270787715912, -0.07927596569061279, 0.3549703359603882, -0.26680493354797363, 0.4880082309246063, -0.1583922803401947, -0.019820746034383774, -0.20943830907344818, 0.14647041261196136, -0.24575361609458923, 0.6080318689346313, 0.13068042695522308, 0.4579336941242218, 0.4000672996044159, -0.5605394244194031, 0.4415311813354492, 0.3631746470928192, -0.0954715758562088, 0.7546517848968506, -0.6529962420463562, 0.23237837851047516, -0.34451788663864136, -0.1174582988023758, -0.8726849555969238, -0.12288400530815125, 0.24141108989715576, -0.1329956203699112, 0.3457333445549011, -0.06301314383745193, -0.06301792711019516, 0.10968537628650665, -0.489597886800766, 0.1313612014055252, 0.5094673037528992, -0.6224638223648071, 0.7949222326278687, 0.5454066395759583, -0.49664539098739624, -0.5049556493759155, -0.2423585206270218, -0.057916395366191864, -0.565539538860321, -0.5471994280815125, 0.6249819397926331, -0.2541481554508209, -0.24307014048099518, -0.20602166652679443, 0.038302499800920486, 0.46098417043685913, 0.11049714684486389, 0.3129845857620239, 0.5780236721038818, 0.04377017542719841, -0.09265675395727158, 0.24313826858997345, -0.43890899419784546, -0.13049732148647308, -0.4325448274612427, 0.8843845129013062, -0.07148316502571106, -0.38168659806251526, -0.22728519141674042, 0.35650596022605896, 0.46710386872291565, -0.586764395236969, 0.6237605810165405, 0.7385293245315552, 0.05763009190559387, -0.11792225390672684, -0.5372032523155212, -0.15680214762687683, -0.5162891745567322, 0.48250627517700195, -0.3098498582839966, -0.808566153049469, 0.2722471058368683, -0.06870847195386887, 0.28492847084999084, 0.10388827323913574, 0.9664297699928284, -0.3281148374080658, 1.2765514850616455, 0.6644094586372375, -0.5639757513999939, 0.8177391886711121, -0.06689813733100891, 0.24483449757099152, -0.8576501607894897, -0.45953091979026794, -0.6176099181175232, -0.8632417917251587, -0.6794882416725159, -0.22676996886730194, 0.6175445318222046, -0.05632850155234337, -0.34593793749809265, 0.15400834381580353, -0.47283101081848145, 0.22014640271663666, 0.8346128463745117, -0.02719612792134285, 0.25620004534721375, 0.1332298070192337, -0.2291734516620636, -0.05469902604818344, -0.6146339178085327, -0.45084065198898315, 1.0790714025497437, 0.316584974527359, 0.8337545394897461, 0.1932595670223236, 0.6748961806297302, 0.010515042580664158, 0.1612270027399063, -0.9313632249832153, 0.6263630986213684, -0.2935357689857483, -0.16425085067749023, -0.43220025300979614, -0.3961849510669708, -1.0154041051864624, 0.1881607472896576, -0.6006917953491211, -0.6718568205833435, 0.19874326884746552, 0.40335872769355774, -0.2948629856109619, 0.04859442636370659, -0.5370597243309021, 0.8768457174301147, -0.7100539207458496, -0.5350510478019714, -0.329168438911438, -0.8174352049827576, 0.08092669397592545, -0.18023841083049774, 0.049827903509140015, -0.08923853188753128, -0.1653740257024765, 0.6405379176139832, -0.09884598106145859, 0.7912487983703613, -0.23674805462360382, -0.09326877444982529, -0.24302706122398376, 0.05784175917506218, 0.7632301449775696, -0.1505904346704483, -0.0944422110915184, 0.1512703001499176, -0.38094085454940796, -0.1408156454563141, -0.5372238159179688, 0.8584827780723572, -0.8951919078826904, -0.536276638507843, -0.040152788162231445, -0.567139744758606, -0.5002395510673523, 0.27581945061683655, 0.34023797512054443, 0.2919948995113373, -0.2617606520652771, 0.2802914083003998, 0.6354842185974121, -0.31741005182266235, 0.4354937672615051, 0.3335341811180115, -0.2975158393383026, -0.27305111289024353, 1.1832640171051025, -0.19925545156002045, 0.13930629193782806, 0.6009597182273865, 0.6695561408996582, -0.3487773835659027, -0.9417672753334045, -0.35190728306770325, 0.1622459888458252, -0.29676324129104614, 0.006596526131033897, -0.3083876669406891, 0.19184812903404236, -0.2176586389541626, -0.45842695236206055, -0.5280581712722778, -0.3303144574165344, -0.3137255311012268, 0.02676251530647278, 0.20062695443630219, 0.5339745283126831, 0.20786352455615997, 0.3442428410053253, -0.5467182397842407, 0.4305107593536377, 0.1983637660741806, 0.2575211226940155, -0.09180226176977158, -0.3210163414478302, -0.1350143998861313, 0.027328716591000557, -0.43946146965026855, -0.6414774656295776, 0.48333433270454407, -0.017257576808333397, 0.6010863780975342, 0.6562685370445251, 0.0189464520663023, 0.4936041235923767, -0.5724456310272217, 0.44095754623413086, 0.31844058632850647, -0.7794988751411438, 0.4826396405696869, -0.3828853964805603, 0.18494457006454468, 0.5069912672042847, 0.41703474521636963, -0.48872679471969604, -0.20916107296943665, -0.18880431354045868, -0.9863249063491821, 0.5437754392623901, 0.11914004385471344, 0.14080557227134705, 0.4227334260940552, 0.3021789789199829, 0.17852750420570374, 0.21404382586479187, -0.2992086708545685, -0.44650447368621826, -0.17393308877944946, -0.3844868540763855, -0.33268240094184875, -0.22414882481098175, -0.17169316112995148, -0.2516556978225708, 0.7283105850219727, -0.2283959686756134, -0.07031179964542389, -0.2215406894683838, 0.18107163906097412, 0.038058090955019, 0.2524496912956238, 0.6338918805122375, 0.3663918673992157, -0.05907594785094261, 0.11703949421644211, -0.04318984970450401, -0.41909825801849365, 0.14371350407600403, 0.10938579589128494, -0.48454976081848145, -0.3000240623950958, -0.00010891407146118581, 0.8995636105537415, 0.17273977398872375, -0.5892314314842224, 0.44836243987083435, -0.0043916255235672, 0.026249999180436134, -0.2635449767112732, 0.07198388129472733, 0.2868318259716034, 0.3583253026008606, 0.049294423311948776, 0.20683225989341736, -0.02104928158223629, -0.18720084428787231, -0.1916881799697876, 0.8207222819328308, -0.3342510759830475, -0.5033823251724243, 0.7290835976600647, 0.5099225640296936, -0.41564279794692993, 0.4820813238620758, -0.06815747171640396, -0.47376179695129395, 0.22106434404850006, 0.43519657850265503, 0.9965631365776062, -0.2185632586479187, 0.12339100986719131, -0.039542462676763535, -0.06368289887905121, -0.04397134482860565, 0.09645283222198486, 0.010721640661358833, -1.1686006784439087, -0.15580019354820251, -0.5817968249320984, -0.4212215542793274, -0.11177904158830643, -0.7236478328704834, 0.4713282883167267, -0.3957626223564148, -0.19660180807113647, 0.1280757039785385, -0.2977699041366577, -0.5674294829368591, -0.2434389889240265, 0.28796830773353577, 0.7037959694862366, -0.5890610218048096, 0.920329749584198, 0.8693622946739197, -0.060330167412757874, -0.5142916440963745, 0.026829808950424194, 0.14196015894412994, -0.6586124300956726, 0.5331002473831177, -0.17539286613464355, -0.43815696239471436, -0.08076276630163193, -0.4396364986896515, -0.6509562134742737, 1.028136134147644, 0.3551320433616638, -0.8413521647453308, -0.10261960327625275, 0.20906294882297516, 0.4367922842502594, -0.45598646998405457, -0.2542588412761688, 0.7774716019630432, 0.5556231141090393, 0.2449820190668106, -0.77178955078125, -0.1477060317993164, -0.07028550654649734, 0.21354985237121582, 0.2663925886154175, -0.6386764049530029, 0.49291980266571045, -0.2760699689388275, 0.28013572096824646, -0.07446567714214325, 0.8347973823547363, 0.30704548954963684, 0.09675146639347076, 0.7172570824623108, 0.3606933355331421, 0.6295238137245178, 0.11796152591705322, 0.9997795224189758, -0.46648702025413513, 0.002599600236862898, 1.1988216638565063, -0.49252641201019287, 0.9850154519081116, 0.8184368014335632, 0.14634256064891815, 0.37827998399734497, 0.12446047365665436, 0.24111396074295044, 0.7106941342353821, 0.041491035372018814, -0.2262628823518753, -0.3398793637752533, -0.13358521461486816, -0.052251167595386505, 0.7281383275985718, 0.1902335286140442, -0.08224308490753174, 0.06785960495471954, 0.21486808359622955, 0.07056313008069992, 0.21422486007213593, -0.1634022444486618, 0.7380385994911194, -0.16373170912265778, -0.8120338320732117, 0.11649400740861893, 0.33788686990737915, 0.914569616317749, -0.7413055896759033, 0.2075200378894806, -0.1836307793855667, 0.33171841502189636, -0.13203778862953186, -0.7814562916755676, 0.09665008634328842, 0.01192979235202074, -0.13403677940368652, -0.6009618043899536, 0.7834699153900146, -0.553689181804657, -0.25857990980148315, 0.3218437433242798, 0.36777758598327637, -0.2932411730289459, -0.04393173009157181, -0.5018104314804077, 0.25398916006088257, 0.21145346760749817, -0.439540833234787, 0.5532504320144653, -0.00017328394460491836, -0.1048256978392601, 0.8219584822654724, 0.7792499661445618, 0.2699548006057739, -0.034733887761831284, 0.13093958795070648, 0.9408074021339417, -0.6281391382217407, -0.600400984287262, -0.9217399954795837, 0.40054571628570557, -0.08875670284032822, -0.35748642683029175, 0.8246050477027893, 0.617226779460907, 0.8946647644042969, -0.04731244593858719, 0.9143938422203064, 0.009538897313177586, 0.4470168948173523, -0.5277197957038879, 0.5525358319282532, -0.321382075548172, 0.3878976106643677, -0.15861089527606964, -1.0426051616668701, -0.14233852922916412, 0.6079837083816528, -0.44615212082862854, 0.032991789281368256, 0.18964441120624542, 0.7786654829978943, -0.09048977494239807, -0.03532465547323227, 0.22559680044651031, 0.22194398939609528, 0.5195757150650024, 0.606941819190979, 0.8058222532272339, 0.3455529808998108, 0.39455467462539673, -0.5667116045951843, -0.30761343240737915, -0.39118266105651855, -1.0383309125900269, -0.8564858436584473, -0.5837960243225098, -0.23761889338493347, -0.2580558955669403, -0.17357294261455536, 1.2608437538146973, 0.7201616168022156, -0.846630334854126, -0.3851102292537689, 0.04575161263346672, 0.12844598293304443, -0.11533302068710327, -0.15681837499141693, 0.22052687406539917, -0.16937927901744843, -0.8471313714981079, 0.486286461353302, 0.42876309156417847, 0.06571061164140701, -0.4860806465148926, -0.45760342478752136, 0.02910679019987583, -0.168307363986969, 0.7365586757659912, 0.3515876829624176, -0.5320099592208862, -0.35291874408721924, 0.04179665818810463, -0.10722438991069794, 0.14190515875816345, 0.9168310165405273, -0.6101768612861633, 0.5104029178619385, 0.677436351776123, 0.7318447828292847, 0.46165528893470764, 0.21652339398860931, 0.8909132480621338, -0.7075664401054382, 0.1350414901971817, 0.22229662537574768, 0.31215032935142517, 0.28692466020584106, -0.23108382523059845, 0.1181512102484703, -0.03832258656620979, -0.43808314204216003, -0.4395672678947449, 0.3147806227207184, -1.326992154121399, -0.05082462728023529, 1.3676677942276, 0.21106258034706116, 0.06724048405885696, -0.1432994157075882, -0.4964160621166229, 0.10406620055437088, -0.5269838571548462, 0.6609424948692322, 0.49702131748199463, -0.4513593018054962, 0.1655607670545578, -0.3731047809123993, 0.4226757884025574, 0.6834821701049805, -0.7102475762367249, 0.07255838066339493, 0.38665661215782166, 0.2929701805114746, 0.046527374535799026, 0.2968606650829315, 0.07512333244085312, -0.1828579604625702, -0.6145926117897034, 0.1012398898601532, -0.11194045841693878, -0.36621105670928955, -0.6346741318702698, 0.13708555698394775, 0.24903294444084167, -0.14190109074115753 ]
http://arxiv.org/abs/2405.17830v1
http://arxiv.org/pdf/2405.17830v1
More Than Catastrophic Forgetting: Integrating General Capabilities For Domain-Specific LLMs
2024-05-28T05:00:12
2024-05-28T05:00:12
Chengyuan Liu, Shihang Wang, Yangyang Kang, Lizhi Qing, Fubang Zhao, Changlong Sun, Kun Kuang, Fei Wu
cs.CL
cs.CL
The performance on general tasks decreases after Large Language Models (LLMs) are fine-tuned on domain-specific tasks, the phenomenon is known as Catastrophic Forgetting (CF). However, this paper presents a further challenge for real application of domain-specific LLMs beyond CF, called General Capabilities Integration (GCI), which necessitates the integration of both the general capabilities and domain knowledge within a single instance. The objective of GCI is not merely to retain previously acquired general capabilities alongside new domain knowledge, but to harmonize and utilize both sets of skills in a cohesive manner to enhance performance on domain-specific tasks. Taking legal domain as an example, we carefully design three groups of training and testing tasks without lacking practicability, and construct the corresponding datasets. To better incorporate general capabilities across domain-specific scenarios, we introduce ALoRA, which utilizes a multi-head attention module upon LoRA, facilitating direct information transfer from preceding tokens to the current one. This enhancement permits the representation to dynamically switch between domain-specific knowledge and general competencies according to the attention. Extensive experiments are conducted on the proposed tasks. The results exhibit the significance of our setting, and the effectiveness of our method.
[ -0.3953656554222107, -0.7114744186401367, 0.7208585143089294, 0.0008569618221372366, -0.11008044332265854, 0.2658763825893402, -0.27620014548301697, -0.5105690956115723, 0.19435857236385345, 0.49961423873901367, -0.44553524255752563, -0.5420509576797485, -0.6447558999061584, -0.2528771460056305, -0.4339430034160614, 1.1489520072937012, -0.33583784103393555, -0.3941148519515991, -0.3448144495487213, -0.5405316948890686, -0.7614657282829285, -0.7573401927947998, -0.6705846190452576, -0.3375452756881714, 0.5743903517723083, 0.3232588469982147, 0.32472243905067444, 0.35397544503211975, 0.5777075886726379, 0.186869278550148, 0.1661449372768402, 0.42059236764907837, -0.515923798084259, -0.11079604923725128, -0.6870336532592773, -0.4322280287742615, -0.8380712270736694, -0.094526506960392, 0.6231432557106018, 0.8182477951049805, -0.23858819901943207, 0.055445171892642975, 0.19818273186683655, 0.5357545614242554, -0.7530191540718079, 0.20381790399551392, -0.6644538044929504, 0.11266163736581802, 0.10081000626087189, -0.3312513828277588, -0.2833485007286072, -0.08854051679372787, 0.2625131607055664, -0.8823010325431824, 0.25519660115242004, -0.008296352811157703, 0.6885669231414795, 0.45327383279800415, -0.24212898313999176, -0.5440365076065063, -0.9424836039543152, 0.9368166923522949, -0.14340262115001678, 0.2413128912448883, 0.37757065892219543, 0.20907630026340485, 0.0951949805021286, -0.41062936186790466, -0.4394029378890991, -0.15285706520080566, 0.14955519139766693, 0.20466209948062897, -0.3327109217643738, 0.05301626771688461, 0.08444464951753616, 0.21647803485393524, -0.3320522606372833, 0.12366542220115662, -0.20153112709522247, -0.20323395729064941, 0.4435703456401825, 0.3150539994239807, 0.340732216835022, 0.5582482218742371, -0.012095012702047825, 0.16507576406002045, -0.7600560784339905, -0.1027640849351883, 0.1049831286072731, 0.4377397894859314, -0.10645032674074173, 0.37280988693237305, -0.19406647980213165, 0.361476868391037, -0.0031169471330940723, -0.2915494441986084, 0.2826167047023773, -0.35058465600013733, -0.24481576681137085, -0.36174848675727844, 0.28341907262802124, -0.22819124162197113, 0.47433045506477356, -0.4958435893058777, 0.07016842067241669, 0.0583992637693882, 0.5474284887313843, -0.23553453385829926, 0.0697120875120163, 0.2809813618659973, -0.1784103363752365, 0.14649531245231628, -0.2113262265920639, -0.4887297749519348, -0.10577552020549774, -0.6211309432983398, 0.47699519991874695, -0.6406309008598328, -0.06631599366664886, 0.21033771336078644, 0.14732930064201355, 0.3498570919036865, 0.44963136315345764, -1.0412988662719727, 0.45192235708236694, 0.7263211607933044, 0.7727861404418945, -0.4510992765426636, -0.4575507342815399, -0.7714964747428894, 0.5433133244514465, -0.01484371442347765, 0.629000186920166, -0.4350690245628357, -0.26244470477104187, 0.4083329439163208, -0.07968606799840927, -0.4496748149394989, -0.8102209568023682, 0.3882056772708893, -0.7850695848464966, -0.08974750339984894, -0.2952466309070587, -0.35839593410491943, -0.3040273189544678, 0.36408621072769165, -0.45709508657455444, 0.5350082516670227, 0.2828580141067505, -0.4821723401546478, 0.36598098278045654, -0.6285128593444824, -0.7057993412017822, -0.018187357112765312, -0.36325642466545105, -0.49422332644462585, 0.0177740640938282, 0.03847086802124977, 0.45396021008491516, -0.3714008033275604, 0.26523837447166443, -0.15085569024085999, -0.38652002811431885, 0.02583051659166813, -0.06566478312015533, 0.6054437756538391, -0.12558797001838684, -0.3431490361690521, -0.009961375966668129, -0.6804794669151306, 0.04329991713166237, 0.037851281464099884, -0.6354339122772217, -0.33275848627090454, -0.1328267604112625, -0.22503253817558289, 0.017817586660385132, 0.0890912115573883, 0.06184638664126396, 0.20805256068706512, -0.06677661091089249, 0.30264797806739807, 0.5435144901275635, 0.042717427015304565, 0.5825155973434448, -0.49431368708610535, 0.6573586463928223, 0.19194039702415466, 0.11746520549058914, 0.013249059207737446, -0.5037542581558228, -1.0084513425827026, -0.4001566767692566, 0.09430830180644989, 0.9060024619102478, -0.7818010449409485, 0.41913050413131714, -0.2887060344219208, -0.045491624623537064, -0.2962151765823364, 0.5195987224578857, 0.468713641166687, 0.22321277856826782, 0.6560707688331604, -0.6887325048446655, -0.3597588539123535, -0.8441712856292725, 0.01440548337996006, -0.2736247777938843, 0.021088041365146637, 0.237289696931839, 0.6351101398468018, -0.5612249970436096, 0.918536901473999, -0.3483723998069763, -0.9911594986915588, -0.3474245071411133, 0.14087073504924774, 0.09131934493780136, 0.355656236410141, 0.5875053405761719, -0.5602672696113586, -0.3178258240222931, 0.3696812093257904, -0.9133214950561523, 0.08971961587667465, -0.19742241501808167, -0.12162651866674423, 0.24644669890403748, 0.26775556802749634, -0.6092172265052795, 0.2979535758495331, 0.17476427555084229, -0.210403710603714, 0.8348513245582581, -0.41388145089149475, 0.2188861221075058, -0.6754466891288757, 0.3128962218761444, -0.12224366515874863, 0.103304423391819, -0.8073504567146301, 0.20869065821170807, 0.19318650662899017, 0.3053204119205475, -0.6250016689300537, 0.5576808452606201, -0.5499112606048584, -0.09942644834518433, -0.14621828496456146, 0.17224393784999847, -0.12759076058864594, 0.7523396015167236, -0.36156216263771057, 0.9540996551513672, 0.6480218172073364, -0.9505928158760071, 0.2504989504814148, 0.30910539627075195, -0.23044998943805695, 0.9850412011146545, -0.13991756737232208, 0.28470754623413086, -0.21770961582660675, -0.2290998250246048, -0.6717814207077026, -0.3855721056461334, 0.3013994097709656, -0.034781549125909805, 0.37801244854927063, 0.09906519949436188, -0.3426436483860016, -0.37994855642318726, -0.10174094140529633, 0.3834843039512634, 0.3399341106414795, -0.24767054617404938, 1.06754732131958, 0.3918033242225647, -0.2580651640892029, -0.6874477863311768, -0.8611221313476562, 0.17889364063739777, -0.5481778383255005, -0.2894042432308197, 0.6653883457183838, -0.09622880816459656, -0.290560245513916, 0.23888155817985535, 0.15292710065841675, -0.3263138234615326, 0.012378483079373837, 0.15572670102119446, 0.22247529029846191, -0.18317438662052155, 0.16334810853004456, 0.19814355671405792, -0.09745316207408905, -0.03906550258398056, -0.41918501257896423, 0.4122449457645416, -0.02838735282421112, -0.744788408279419, -0.3806091248989105, 0.6874542832374573, 0.62645024061203, -0.26288241147994995, 0.6041231155395508, 0.3564807176589966, -0.4443780779838562, -0.30769991874694824, -0.9286870956420898, 0.32695674896240234, -0.37641432881355286, 0.6322101950645447, -0.2738349139690399, -1.1754814386367798, 0.8965158462524414, 0.06871020793914795, 0.009706209413707256, 0.2712363600730896, 0.5862941145896912, 0.05084192380309105, 0.4769410490989685, 1.042130708694458, -0.541827917098999, 0.3554554879665375, -0.4134063124656677, 0.38343188166618347, -0.9498124122619629, -0.2758309543132782, -0.17658284306526184, -0.12685954570770264, 0.23031173646450043, -0.6709772348403931, 0.2116565704345703, -0.049566660076379776, -0.31435200572013855, 0.2562013566493988, -0.06570515036582947, 0.5069417953491211, 0.5912725925445557, 0.08228716254234314, 0.5376152396202087, 0.16698415577411652, -0.03134995698928833, 0.10806160420179367, -0.6220249533653259, -0.38655057549476624, 1.1875922679901123, 0.3325252830982208, 0.5897986888885498, 0.18037539720535278, 0.6442235708236694, 0.5708233714103699, 0.50026535987854, -0.8504723906517029, 0.6197564005851746, -0.23325155675411224, -0.28867587447166443, -0.1879834234714508, -0.30613383650779724, -0.7280329465866089, -0.019467981532216072, 0.17740705609321594, -0.6699133515357971, 0.12767022848129272, 0.13838516175746918, -0.976161003112793, 0.25180432200431824, -0.4930068552494049, 0.4285220801830292, -0.15036249160766602, -0.4465613067150116, -0.6201758980751038, -0.13021418452262878, 0.3646942675113678, -0.49271681904792786, 0.27964556217193604, -0.09478198736906052, -0.20050039887428284, 0.6648611426353455, 0.2528287470340729, 1.0394858121871948, -0.0708906278014183, -0.2325386106967926, 0.6441171765327454, -0.1890658438205719, 0.4543594717979431, -0.2033981829881668, 0.13347375392913818, -0.11911975592374802, -0.5659542083740234, -0.2986803948879242, -0.44100287556648254, 0.6309751868247986, -0.7113222479820251, -0.8642873764038086, -0.1234833374619484, -0.769792914390564, -0.7164243459701538, 0.00498564587906003, -0.12019798904657364, 0.0707407295703888, -0.477968692779541, -0.23078685998916626, 0.9669220447540283, -0.1297626942396164, 0.30446699261665344, 0.46963807940483093, 0.15706022083759308, -0.6217259764671326, 0.9901922941207886, 0.42557379603385925, 0.27936679124832153, 0.2096235752105713, -0.4778500497341156, -0.028698867186903954, -0.7392441630363464, -0.20866236090660095, 0.4668117165565491, -0.9347027540206909, -0.3204909861087799, -0.7704774737358093, -0.22990445792675018, -0.13951469957828522, -0.3003104031085968, -0.09579937160015106, -0.12899066507816315, -0.555648148059845, 0.10825438797473907, 0.08442544937133789, 0.6209346055984497, -0.06168397143483162, 0.17557896673679352, -0.6763372421264648, 0.3825501501560211, 0.6687862277030945, 0.3217642605304718, 0.3373429775238037, -0.7890679836273193, -0.603522002696991, -0.30835971236228943, -0.49041175842285156, -0.4694763720035553, 0.28842124342918396, 0.42718932032585144, 0.9258950352668762, 0.3530343770980835, -0.3539551794528961, 0.7083413004875183, -0.5591872334480286, 0.3484329879283905, 0.23794397711753845, -0.8777685761451721, 0.4561495780944824, -0.41021859645843506, 0.14054563641548157, 0.5888247489929199, 0.5683473944664001, -0.4184689223766327, -0.6347970962524414, -0.3965246379375458, -0.8971335291862488, 0.47124582529067993, -0.1094839796423912, 0.27699995040893555, 0.02867131121456623, 0.5919862389564514, -0.00436668423935771, 0.04911785200238228, -0.3666423559188843, 0.008396334946155548, 0.428883820772171, -0.1197216808795929, 0.12296948581933975, -0.3131352961063385, -0.3571515381336212, -0.3148427903652191, 0.7064931392669678, -0.31419941782951355, 0.3833850622177124, 0.13830412924289703, -0.2812553346157074, 0.10535186529159546, 0.2525264620780945, 0.6353240609169006, 0.7976593375205994, 0.29431816935539246, 0.11998516321182251, 0.680966854095459, -0.4999573528766632, 0.408502995967865, -0.22782540321350098, 0.08650870621204376, -0.5109699964523315, 0.621050238609314, 0.5224938988685608, 0.3293071985244751, -0.7418641448020935, 0.23553796112537384, 0.30416810512542725, -0.5951746106147766, -0.2623474597930908, 0.4886690080165863, 0.19792011380195618, 0.4243834912776947, 0.5505865812301636, 0.0188602227717638, 0.005355434026569128, -0.8419610261917114, 0.5142922401428223, 0.35768842697143555, -0.3567230701446533, -0.3162410259246826, 0.6773278117179871, 0.03820017725229263, -0.05162103846669197, 0.40001916885375977, -0.319314569234848, -0.4492184817790985, 0.5474651455879211, 0.5230495929718018, 0.8444966077804565, -0.37305712699890137, 0.10746011137962341, 0.17524544894695282, 0.24758969247341156, -0.23137077689170837, 0.197927325963974, 0.12209523469209671, -0.616818904876709, -0.6921908855438232, -0.22772501409053802, -0.5025666356086731, 0.21735793352127075, -0.5984682440757751, 0.02955496869981289, -0.7118842005729675, -0.27409109473228455, -0.40405529737472534, -0.16650986671447754, -0.956880509853363, 0.16314344108104706, 0.1086428314447403, 0.6833614110946655, -0.9193716049194336, 0.8911967873573303, 0.4663917124271393, -0.4847791790962219, -0.25005048513412476, 0.1327144205570221, 0.013723648153245449, -0.8807770609855652, 0.623943030834198, -0.05333927646279335, -0.1361256092786789, -0.11981825530529022, -0.1499239206314087, -0.7881038784980774, 1.2331212759017944, 0.41254353523254395, -0.4078940451145172, -0.23389436304569244, 0.5796938538551331, 0.5030401349067688, -0.6621500253677368, -0.23562292754650116, 1.0805103778839111, 0.20443114638328552, 0.03845681995153427, -0.9894170165061951, -0.07960300892591476, 0.021453334018588066, -0.17228953540325165, -0.12075082212686539, -0.6973714828491211, 0.7376970052719116, -0.4573614001274109, -0.3084937334060669, -0.1050863116979599, 0.7432920336723328, 0.2138185203075409, 0.1461452692747116, 0.31739017367362976, 0.8534152507781982, 1.0637534856796265, 0.05224275216460228, 0.7436863780021667, 0.020016631111502647, 0.3144460916519165, 1.1941475868225098, -0.4385347068309784, 0.7800864577293396, 0.4772554039955139, -0.16208180785179138, 0.309122771024704, 0.02053813822567463, 0.22408464550971985, 0.6973838210105896, 0.11909537762403488, -0.6174312829971313, -0.3400195240974426, -0.2526600658893585, -0.2609694004058838, 0.2512187957763672, 0.45787250995635986, -0.2105932980775833, -0.15194986760616302, 0.32831066846847534, 0.0619964674115181, 0.07710804790258408, -0.4622219502925873, 0.6790655255317688, 0.15540477633476257, -0.6157379150390625, 0.5370897650718689, -0.03219090402126312, 0.6679667830467224, -0.5845245718955994, -0.05094548314809799, -0.2925788462162018, 0.47968590259552, 0.059706322848796844, -0.7622142434120178, 0.6551316380500793, 0.04521849751472473, -0.3769727349281311, -0.10326068848371506, 0.575445830821991, -0.443462997674942, -0.19585083425045013, 0.7277010083198547, 0.6244878768920898, -0.19717423617839813, -0.28370219469070435, -0.3871750831604004, 0.20701856911182404, -0.10646456480026245, -0.012133358046412468, 0.4873329997062683, 0.5851436257362366, -0.10861720889806747, 0.897486686706543, 0.34833136200904846, 0.05454837158322334, -0.11647141724824905, 0.2520108222961426, 0.9942622184753418, -0.7014343738555908, -0.4303285777568817, -0.7294398546218872, 0.5072283744812012, 0.09856270998716354, -0.32564565539360046, 0.3597150444984436, 0.41178879141807556, 0.679060697555542, -0.11645612120628357, 1.1684399843215942, 0.02371438406407833, 0.27028214931488037, -0.5808510780334473, 0.7251744270324707, -0.37330543994903564, 0.11906647682189941, 0.01845988631248474, -0.9438846707344055, -0.6119924187660217, 0.41781988739967346, -0.4146839380264282, 0.008694685995578766, 0.8531554341316223, 0.4600104093551636, -0.17679297924041748, -0.37834930419921875, 0.5891045331954956, -0.12894082069396973, 0.45905986428260803, 1.210092544555664, 0.7101147770881653, -0.30616217851638794, 0.5427136421203613, 0.18476885557174683, -0.4327557384967804, -0.2960527539253235, -0.6563611626625061, -1.1333940029144287, -0.5895463824272156, -0.5096935629844666, -0.035265225917100906, 0.3328517973423004, 0.5132085680961609, 0.43916118144989014, -0.9277018308639526, -0.1194106712937355, 0.22346536815166473, -0.04755188152194023, -0.303822785615921, -0.10760626941919327, 0.3663289248943329, -0.6727190017700195, -0.5353345274925232, 0.2988336980342865, 0.5633623600006104, 0.05531610921025276, -0.20055121183395386, -0.10036695003509521, -0.03674155846238136, 0.11959889531135559, 0.7046235799789429, 0.49675023555755615, -0.6032525897026062, -0.6965435147285461, -0.1248498409986496, -0.1383417397737503, 0.08689960092306137, 0.8990904092788696, -0.6599709391593933, -0.13282345235347748, -0.11230950057506561, 1.0047324895858765, 0.11842339485883713, -0.23866529762744904, 0.35728010535240173, -0.5841354727745056, 0.016836954280734062, 0.08661062270402908, 0.39817506074905396, 0.13640065491199493, -0.21083925664424896, 0.5714130401611328, 0.3290894329547882, -0.39738938212394714, -0.44514593482017517, 0.20513217151165009, -0.9194628596305847, -0.0822257325053215, 1.0412147045135498, -0.2811321020126343, -0.03890194371342659, -0.6799806356430054, -0.0833117663860321, 0.07268593460321426, -0.05823603644967079, 1.016561508178711, 0.9632542729377747, -0.09626655280590057, 0.12256146967411041, -0.7847905158996582, 0.42030537128448486, 0.49070167541503906, -1.030465841293335, 0.268137663602829, 0.16746670007705688, 0.23947636783123016, 0.43264830112457275, 0.9779859781265259, -0.0425993949174881, 0.43148279190063477, -0.291177362203598, 0.05955726280808449, 0.046795554459095, -0.8050438165664673, -0.2797623574733734, 0.42793187499046326, 0.030814440920948982, 0.03258757293224335 ]
http://arxiv.org/abs/2405.17822v1
http://arxiv.org/pdf/2405.17822v1
Conv-CoA: Improving Open-domain Question Answering in Large Language Models via Conversational Chain-of-Action
2024-05-28T04:46:52
2024-05-28T04:46:52
Zhenyu Pan, Haozheng Luo, Manling Li, Han Liu
cs.CL
cs.CL, cs.AI
We present a Conversational Chain-of-Action (Conv-CoA) framework for Open-domain Conversational Question Answering (OCQA). Compared with literature, Conv-CoA addresses three major challenges: (i) unfaithful hallucination that is inconsistent with real-time or domain facts, (ii) weak reasoning performance in conversational scenarios, and (iii) unsatisfying performance in conversational information retrieval. Our key contribution is a dynamic reasoning-retrieval mechanism that extracts the intent of the question and decomposes it into a reasoning chain to be solved via systematic prompting, pre-designed actions, updating the Contextual Knowledge Set (CKS), and a novel Hopfield-based retriever. Methodologically, we propose a resource-efficiency Hopfield retriever to enhance the efficiency and accuracy of conversational information retrieval within our actions. Additionally, we propose a conversational-multi-reference faith score (Conv-MRFS) to verify and resolve conflicts between retrieved knowledge and answers in conversations. Empirically, we conduct comparisons between our framework and 23 state-of-the-art methods across five different research directions and two public benchmarks. These comparisons demonstrate that our Conv-CoA outperforms other methods in both the accuracy and efficiency dimensions.
[ -0.2700220048427582, -1.23282790184021, 0.40491193532943726, -0.07674837857484818, -0.048710089176893234, 0.3654138743877411, -0.15528136491775513, -0.392250657081604, -0.0197125393897295, 0.4607616364955902, -0.5780648589134216, -0.29660820960998535, -0.3069188892841339, -0.17416569590568542, -0.1770014613866806, 0.5059575438499451, 0.11373230069875717, -0.053121063858270645, -0.37749502062797546, -0.321366548538208, -0.4437767565250397, -0.6676690578460693, -0.7242616415023804, -0.057071272283792496, 0.3612973093986511, 0.5305134654045105, 0.9192884564399719, 0.28924405574798584, 0.7168483734130859, 0.15684622526168823, -0.2908850908279419, 0.647427499294281, -0.7583196759223938, 0.34292903542518616, -0.24936765432357788, -0.22406312823295593, -0.5431427359580994, -0.2599014639854431, 0.3101678788661957, 0.9369708299636841, -0.40031853318214417, 0.09817229211330414, -0.1794230043888092, 0.5172796249389648, -0.9983291029930115, 0.1264009028673172, -0.8008463382720947, -0.25401780009269714, 0.19896149635314941, -0.6153044700622559, -0.6711805462837219, -0.46974554657936096, 0.5729876160621643, -0.721977949142456, -0.14240701496601105, 0.3888477385044098, 0.5002781748771667, 0.0842042863368988, -0.6539263725280762, -0.6548560261726379, -0.6989699602127075, 0.817757248878479, -0.4107356369495392, 0.5743494033813477, 0.4658912122249603, 0.16969040036201477, -0.3371756672859192, -0.6935180425643921, -0.5709429383277893, -0.05462455376982689, -0.05130733922123909, 0.29857105016708374, -0.16827896237373352, 0.004155362956225872, 0.21611590683460236, 0.4031866192817688, -0.5495256185531616, -0.3225671052932739, -0.16639074683189392, -0.029803089797496796, 0.5407354831695557, 0.294027715921402, -0.15286852419376373, 0.37775659561157227, -0.34002307057380676, -0.04249386861920357, -0.730854332447052, 0.3623086214065552, 0.08711957931518555, 0.11891892552375793, 0.13783502578735352, 0.4443519711494446, -0.3765891194343567, 0.7377859950065613, 0.09199733287096024, 0.16394834220409393, -0.10959046334028244, -0.3619987964630127, -0.35430505871772766, 0.018080294132232666, 0.7347280979156494, 0.21249838173389435, 0.16309429705142975, -0.12219678610563278, 0.447916179895401, -0.460459440946579, 0.3210563659667969, -0.7669434547424316, -0.02363654598593712, 0.382080614566803, -0.4190532863140106, -0.16585473716259003, 0.31247857213020325, -0.658098042011261, -0.28971123695373535, 0.014063381589949131, 0.31575796008110046, -0.546401858329773, -0.22191426157951355, 0.3646290898323059, 0.07885739207267761, 0.3960167169570923, 0.541398823261261, -0.495376318693161, 0.5478034019470215, 0.7022485733032227, 0.5369181036949158, -0.24324698746204376, 0.1365957260131836, -1.128411054611206, -0.01998724229633808, -0.4755018949508667, 0.3907337784767151, -0.9239993691444397, -0.35259127616882324, 0.4031433165073395, -0.1420709192752838, -0.08347377926111221, -0.6617321968078613, 0.4405576288700104, -1.0398590564727783, 0.2087780386209488, -0.4248140752315521, -0.3334771394729614, -0.23974043130874634, 0.49837738275527954, -0.4854913651943207, 0.9245865345001221, -0.048294804990291595, -0.6166663765907288, -0.17726315557956696, -0.6665475368499756, -0.3397822976112366, 0.15433691442012787, -0.06006592884659767, -0.04215076565742493, -0.14411689341068268, -0.07349998503923416, 0.1811124086380005, -0.6767745018005371, 0.2804899513721466, -0.31367143988609314, -0.49507609009742737, 0.5539767146110535, -0.476436972618103, 0.8428788185119629, 0.3552248775959015, 0.007691404782235622, 0.012683650478720665, -0.8311376571655273, 0.2937852144241333, 0.003335684072226286, -0.15368854999542236, -0.7143722176551819, 0.12299022078514099, -0.5561902523040771, 0.11275532096624374, -0.022316349670290947, -0.5753483772277832, 0.18035490810871124, -0.29159361124038696, 0.2448880672454834, 0.3478221595287323, 0.4536503553390503, 0.31699079275131226, -0.12198667973279953, 0.34555020928382874, 0.20556868612766266, 0.3688369691371918, -0.24924223124980927, -0.5026258230209351, -0.7787414789199829, -0.06378716975450516, 0.024080535396933556, 0.3882969915866852, -0.9465385675430298, 0.32212570309638977, -0.025612493976950645, -0.34638547897338867, -0.492499440908432, -0.4092453718185425, 0.585192084312439, 0.7730774283409119, 0.655084490776062, -0.5213335156440735, -0.17626610398292542, -0.3590572774410248, -0.2208820879459381, -0.42849916219711304, 0.11122685670852661, 0.3921285569667816, 0.49471569061279297, 0.25039130449295044, 0.951610267162323, -0.7736338973045349, -0.03911555930972099, 0.1813703179359436, 0.27372801303863525, 0.12130679935216904, 0.256273478269577, 0.06809365749359131, -1.1496411561965942, -0.3018052577972412, 0.06988386064767838, -0.751380205154419, 0.17809881269931793, 0.15972834825515747, -0.4142588973045349, 0.08359228819608688, 0.43174266815185547, -0.6672557592391968, 0.5810810327529907, 0.3967996835708618, -0.5061033368110657, 0.6206244230270386, -0.03296243026852608, 0.5715189576148987, -0.7154701948165894, 0.33039212226867676, -0.5013606548309326, -0.015115026384592056, -0.7326229214668274, 0.23520992696285248, -0.09672724455595016, -0.026427404955029488, -0.7638791799545288, 0.4117887318134308, -0.22790957987308502, 0.3828892409801483, 0.04657044634222984, 0.2660366892814636, 0.12309044599533081, 0.6506639122962952, 0.23987513780593872, 0.8441217541694641, 0.3125329315662384, -0.9237707853317261, 0.395476371049881, 0.7074243426322937, -0.1902932971715927, 0.6748839616775513, -0.7291002869606018, 0.39432966709136963, -0.013152538798749447, 0.3121628761291504, -0.7717936635017395, -0.0835290476679802, 0.37000352144241333, -0.4115837812423706, -0.1397726982831955, -0.035726625472307205, -0.12224901467561722, -0.2506924569606781, -0.0701199620962143, 0.6986578702926636, 0.28455010056495667, -0.48710617423057556, 0.6380828619003296, 0.17135687172412872, 0.09157935529947281, -0.9265404939651489, -0.4600295126438141, -0.34142038226127625, 0.15404659509658813, -0.5439711213111877, 0.2970348596572876, -0.41426655650138855, -0.5326989889144897, -0.13001307845115662, -0.42247825860977173, -0.3050512373447418, 0.02782873436808586, 0.024564679712057114, 0.15277159214019775, -0.1553427129983902, 0.2917422354221344, -0.20198576152324677, 0.15693800151348114, 0.22826553881168365, -0.4074831008911133, 0.632902979850769, -0.2289453148841858, -0.4293041527271271, -0.08267921209335327, 0.62276691198349, 0.5215212106704712, -0.7349395751953125, 0.8690218329429626, 0.1530231386423111, -0.21884854137897491, -0.013685740530490875, -0.3587901294231415, -0.1485118269920349, -0.4139803349971771, 0.06113150715827942, -0.48778730630874634, -1.1599212884902954, 0.4624106287956238, -0.22280432283878326, 0.09674108028411865, 0.07105200737714767, 0.62754887342453, -0.18722864985466003, 0.6894347667694092, 0.4058503210544586, 0.5380823612213135, 0.2023310512304306, -0.307801753282547, 0.5976128578186035, -0.7056003212928772, -0.5535469651222229, -0.5843155384063721, 0.18252071738243103, -0.37860551476478577, -0.5480958223342896, 0.4239611327648163, 0.15985170006752014, -0.4853880703449249, 0.2530958652496338, -0.1898786723613739, 0.15687185525894165, 0.6006482243537903, 0.06883368641138077, 0.677301287651062, -0.31393203139305115, -0.1411946564912796, 0.2262529730796814, -0.7302592396736145, -0.2290569245815277, 0.7102053165435791, 0.17256703972816467, 0.8852148056030273, 0.4002278745174408, 0.2546057105064392, 0.21335957944393158, -0.00041006028186529875, -0.8464874029159546, 0.5710558295249939, 0.19410303235054016, -0.7153268456459045, -0.29456526041030884, -0.6770327091217041, -0.9456865787506104, 0.30245351791381836, -0.3525313138961792, -0.8327906131744385, 0.326021283864975, 0.27936092019081116, -0.581971287727356, 0.08511540293693542, -0.4183030128479004, 0.8758283853530884, -0.020762627944350243, -0.6869050860404968, -0.17814169824123383, -0.8421413898468018, 0.3654339015483856, 0.040820956230163574, 0.06524041295051575, 0.24199092388153076, 0.14294224977493286, 0.5187305808067322, -0.4842889606952667, 0.4495328962802887, -0.001243881299160421, -0.23713380098342896, 0.8381124138832092, 0.4201419949531555, 0.592646598815918, 0.1793837696313858, -0.21848873794078827, 0.025380754843354225, 0.3120100796222687, -0.13656771183013916, -0.9938576817512512, 0.3938910961151123, -0.46000146865844727, -0.5165424346923828, -0.5254126191139221, -0.5814638137817383, -0.47685137391090393, 0.00798989087343216, -0.08823744207620621, 0.6671648621559143, -0.4708584249019623, 0.6223540306091309, 1.0635461807250977, -0.3345530927181244, 0.21726840734481812, 0.8377145528793335, -0.06592383980751038, -0.3613009452819824, 0.6680336594581604, -0.07724862545728683, 0.6045392155647278, 0.7995923161506653, 0.11131682246923447, -0.23011352121829987, -0.23353224992752075, -0.042644012719392776, 0.029002362862229347, -0.5527315139770508, -0.34940099716186523, -0.7689862847328186, -0.2546177804470062, -0.36318841576576233, 0.18193753063678741, -0.41566720604896545, -0.26467427611351013, -0.04269221052527428, 0.2912987470626831, 0.28183895349502563, 0.2571142613887787, 0.46837088465690613, 0.23310443758964539, -0.6917256116867065, 0.3403610289096832, 0.23095357418060303, 0.3836402893066406, -0.002371452981606126, -0.5770778059959412, -0.15772563219070435, 0.2669794261455536, -0.49858465790748596, -0.6159159541130066, 0.014041840098798275, 0.03697555512189865, 0.1604747176170349, 0.21771162748336792, 0.6378390192985535, 1.0180057287216187, -0.3687027096748352, 0.7732099890708923, 0.20954562723636627, -0.7895769476890564, 0.3941856324672699, -0.26418042182922363, 0.2448694258928299, 0.6210019588470459, 0.7542058229446411, -0.6697124242782593, -0.27996039390563965, -0.7257776856422424, -0.7004253268241882, 0.636677086353302, 0.42644646763801575, -0.13401545584201813, -0.211843341588974, 0.22686971724033356, 0.03917958587408066, 0.45288315415382385, -0.16115207970142365, -0.24917654693126678, 0.1301049441099167, -0.15601016581058502, 0.3957498073577881, -0.12707872688770294, -0.21518898010253906, -0.0630197823047638, 0.8755839467048645, -0.4522523581981659, 0.36865222454071045, 0.5040226578712463, 0.029966462403535843, -0.21905964612960815, 0.26462802290916443, 0.4137731194496155, 0.6457625031471252, -0.43140724301338196, 0.16125918924808502, 0.11499112844467163, -0.4609758257865906, 0.052590832114219666, -0.13584934175014496, -0.1285562664270401, -0.2975916266441345, 0.31006938219070435, 0.4554213285446167, -0.057805005460977554, -0.9416223764419556, 0.7105668783187866, -0.29399052262306213, -0.3026060163974762, -0.4533049166202545, 0.12166182696819305, -0.1659422218799591, 0.31689420342445374, 0.46989405155181885, 0.08225318044424057, 0.134333536028862, -0.915727972984314, 0.25470712780952454, 0.6246923804283142, -0.6887080073356628, -0.09341070055961609, 0.561622679233551, 0.24561257660388947, -0.5462313294410706, 0.6489958167076111, -0.07382985204458237, -0.2541563808917999, 0.34340137243270874, 0.39575058221817017, 0.5128391981124878, -0.121487095952034, 0.2691093981266022, 0.2950729727745056, -0.025569865480065346, -0.023652460426092148, 0.5468242764472961, -0.08826939761638641, -0.6367824077606201, -0.5023915767669678, -0.41098907589912415, -0.8459795713424683, 0.21042664349079132, -0.8444842100143433, 0.11445322632789612, -0.16292071342468262, 0.087994784116745, -0.2684948146343231, 0.06086414307355881, -0.531528115272522, 0.3144526183605194, -0.2601805329322815, 1.2542407512664795, -0.11801192164421082, 0.7251057028770447, 0.4667082130908966, -0.5446356534957886, -0.6767501831054688, 0.28394654393196106, -0.13152986764907837, -0.4753885269165039, 0.4806109666824341, -0.15906280279159546, -0.5952949523925781, 0.1652030050754547, -0.7219099998474121, -0.8565066456794739, 1.0974308252334595, 0.2516745924949646, -0.3827672600746155, 0.07798056304454803, 0.07079955190420151, 0.5274426937103271, -0.5484418272972107, 0.650772750377655, 0.5351534485816956, 0.2296711802482605, 0.4998314082622528, -0.6614745855331421, 0.05758848041296005, -0.1487949639558792, -0.3609597384929657, 0.08270571380853653, -0.9584969282150269, 0.3322664499282837, -0.15529219806194305, -0.08707530051469803, 0.2835240662097931, 0.8943986892700195, 0.2363220453262329, 0.4334210157394409, 0.4516162574291229, 0.1081814169883728, 0.8730689883232117, -0.15490353107452393, 0.816650927066803, -0.15838049352169037, 0.30063116550445557, 1.1586458683013916, -0.45559215545654297, 0.943553626537323, 0.5099197626113892, 0.04757148399949074, 0.5764216184616089, 0.2317579835653305, 0.45868149399757385, 0.553827702999115, 0.1895606517791748, -0.38337722420692444, -0.3882174789905548, -0.5291460156440735, -0.12409280985593796, 0.6644546389579773, 0.3435249328613281, -0.11502841860055923, 0.005730247125029564, -0.20364241302013397, 0.02473142370581627, 0.23143261671066284, -0.0913209319114685, 0.650936484336853, 0.11391544342041016, -1.131287932395935, 0.814725399017334, -0.23872020840644836, 0.1356513798236847, -0.8063768744468689, -0.36135441064834595, -0.17315256595611572, 0.23387376964092255, 0.05499674007296562, -0.7857577800750732, 0.39248883724212646, -0.029363857582211494, -0.011785170063376427, -0.16914136707782745, 0.5081084966659546, -0.7317888140678406, 0.1837315410375595, 0.46154260635375977, 0.5866395235061646, 0.03713250160217285, -0.1371019184589386, -0.5544499754905701, 0.30760008096694946, -0.3807426989078522, -0.18028318881988525, 0.023159204050898552, 0.5506923794746399, -0.22028236091136932, 0.7370597720146179, 0.6834958791732788, -0.34181398153305054, -0.25206857919692993, 0.2751331627368927, 0.873507559299469, -0.595093846321106, -0.24701717495918274, -0.5215995907783508, 0.49046096205711365, -0.23722787201404572, -0.33169689774513245, 0.39332133531570435, 0.5067569017410278, 0.8839366436004639, 0.15712743997573853, 0.5424742102622986, -0.3485572040081024, 0.39542192220687866, -0.45443084836006165, 0.3193545341491699, -0.4915003180503845, 0.10517934709787369, -0.24102221429347992, -0.685519814491272, -0.3211449980735779, 0.3430142402648926, -0.1682707816362381, -0.17007876932621002, 1.119348168373108, 0.8224166631698608, -0.028544610366225243, 0.38233911991119385, 0.3257415294647217, 0.2793896496295929, 0.45090192556381226, 0.7015686631202698, 0.9724425077438354, -0.7156829237937927, 0.8707199692726135, 0.025808941572904587, -0.3923962712287903, -0.0925724133849144, -0.8165675401687622, -0.8383040428161621, -0.5921162962913513, -0.4349111318588257, -0.5503076314926147, 0.3670838177204132, 1.088012933731079, 0.6302616000175476, -0.7478872537612915, -0.26903730630874634, -0.031724363565444946, 0.09979172796010971, -0.7177302837371826, -0.21895244717597961, 0.23464569449424744, -0.2674504816532135, -0.5002844929695129, 0.4761868119239807, 0.3092154562473297, -0.5548847913742065, 0.08207748830318451, -0.25935232639312744, -0.6149976253509521, 0.34816208481788635, 0.8956516981124878, 0.3006543517112732, -0.5471389889717102, -0.5853865146636963, 0.458090603351593, 0.007176702376455069, 0.08995189517736435, 1.0109364986419678, -0.6139475703239441, 0.48199713230133057, 0.5010249018669128, 0.9470818042755127, 0.31987494230270386, 0.41156935691833496, 0.4888441860675812, -0.5874987244606018, -0.19210024178028107, 0.29497596621513367, -0.09273798763751984, -0.06407614052295685, -0.21464745700359344, 0.6678304076194763, 0.3591790497303009, -0.4872444272041321, -0.6277495622634888, 0.42805683612823486, -1.301719069480896, -0.11756579577922821, 1.1610885858535767, -0.2806289494037628, -0.2598671615123749, -0.36870262026786804, -0.2858050465583801, 0.16927672922611237, -0.3816540241241455, 0.4597266614437103, 0.6337102055549622, -0.1752355694770813, -0.09283196926116943, -0.3280835747718811, 0.43527692556381226, 0.21644650399684906, -0.7528560161590576, 0.45108282566070557, 0.43200236558914185, -0.11742722243070602, 0.32763996720314026, 0.7976380586624146, -0.27529022097587585, 0.35156261920928955, -0.23918123543262482, -0.12799473106861115, -0.07891281694173813, -0.5399664640426636, 0.08596833795309067, 0.4026605784893036, -0.1471533477306366, -0.08022444695234299 ]
http://arxiv.org/abs/2406.03198v1
http://arxiv.org/pdf/2406.03198v1
The Impossibility of Fair LLMs
2024-05-28T04:36:15
2024-05-28T04:36:15
Jacy Anthis, Kristian Lum, Michael Ekstrand, Avi Feller, Alexander D'Amour, Chenhao Tan
cs.CL
cs.CL, cs.HC, cs.LG, stat.AP, stat.ML
The need for fair AI is increasingly clear in the era of general-purpose systems such as ChatGPT, Gemini, and other large language models (LLMs). However, the increasing complexity of human-AI interaction and its social impacts have raised questions of how fairness standards could be applied. Here, we review the technical frameworks that machine learning researchers have used to evaluate fairness, such as group fairness and fair representations, and find that their application to LLMs faces inherent limitations. We show that each framework either does not logically extend to LLMs or presents a notion of fairness that is intractable for LLMs, primarily due to the multitudes of populations affected, sensitive attributes, and use cases. To address these challenges, we develop guidelines for the more realistic goal of achieving fairness in particular use cases: the criticality of context, the responsibility of LLM developers, and the need for stakeholder participation in an iterative process of design and evaluation. Moreover, it may eventually be possible and even necessary to use the general-purpose capabilities of AI systems to address fairness challenges as a form of scalable AI-assisted alignment.
[ -0.1961960345506668, -0.42701780796051025, 0.6920617818832397, 0.372166246175766, 0.1376410275697708, 0.02382475510239601, -0.2663079500198364, -0.3987904191017151, -0.3733564615249634, 0.3248063921928406, -0.4309152364730835, -0.267097532749176, -0.8235909342765808, -0.05594650283455849, -0.4267995357513428, 1.0036101341247559, 0.07118396461009979, 0.2990068197250366, -0.4488990902900696, -0.5332178473472595, -0.4778866767883301, -0.7180432677268982, -0.676121175289154, -0.3712858259677887, 0.30969715118408203, 0.47199007868766785, 0.9446561932563782, 0.6408970952033997, 0.7784378528594971, 0.42082589864730835, -0.023708811029791832, -0.138177290558815, -0.43189212679862976, -0.11244314163923264, -0.16009391844272614, -0.8688157200813293, -0.3538360595703125, 0.34033408761024475, 0.6110365390777588, 1.0482131242752075, -0.2702018618583679, 0.15428417921066284, 0.19793817400932312, 0.745400607585907, -0.5700355172157288, 0.13576741516590118, -0.8424285650253296, 0.4879741072654724, -0.1872599571943283, 0.029895665124058723, -0.07643086463212967, -0.4959593117237091, 0.029501814395189285, -0.514024019241333, 0.010766848921775818, 0.17147137224674225, 0.633564829826355, 0.5593311786651611, -0.3505295217037201, -0.554616391658783, -0.4950942099094391, 0.9598409533500671, -0.5417163372039795, -0.023004960268735886, 0.3519619405269623, 0.6498335003852844, -0.3876948952674866, -0.6294589042663574, -0.7144954204559326, -0.1835060864686966, -0.008915155194699764, -0.18501080572605133, -0.1398724764585495, 0.1899316906929016, 0.3038528263568878, 0.16557078063488007, -0.2625890076160431, 0.4050365090370178, -0.3006795644760132, -0.16821813583374023, 0.5838020443916321, 0.46327081322669983, 0.27862247824668884, 0.07720521837472916, -0.16877470910549164, 0.3874676525592804, -0.5824719071388245, 0.18215355277061462, 0.45809224247932434, 0.3126024603843689, -0.08388561755418777, 0.6290193200111389, 0.055030710995197296, 0.3405275344848633, -0.08039652556180954, 0.20384293794631958, 0.29007816314697266, 0.10011088848114014, -0.24876491725444794, -0.19434672594070435, 0.7303056716918945, 0.4502332806587219, 0.4712451100349426, -0.4295889735221863, -0.32168829441070557, 0.22485046088695526, 0.14537262916564941, -0.46770578622817993, 0.3031194806098938, 0.24801483750343323, -0.6743459701538086, -0.3194635510444641, -0.03924304619431496, -0.38853922486305237, -0.6837482452392578, -0.5046210289001465, 0.4350647032260895, 0.1577647477388382, -0.13204284012317657, -0.07879027724266052, -0.1102088913321495, 0.44050461053848267, 0.30443114042282104, -0.700854480266571, 0.3593980669975281, 1.017339825630188, 0.6436160802841187, -0.10187074542045593, -0.2529212236404419, -0.580796480178833, 0.11002907902002335, -0.15379372239112854, 0.2611939311027527, -0.6282192468643188, -0.2876008450984955, -0.09777861833572388, -0.1490652710199356, 0.060827597975730896, -0.6568681597709656, 0.5354334115982056, -0.2964855134487152, 0.4084981083869934, -0.23477980494499207, -0.656703531742096, -0.040892016142606735, 0.2552412152290344, -0.40764132142066956, 0.2628304362297058, 0.08703432977199554, -0.5601484179496765, 0.44673556089401245, -0.9448176026344299, -0.5103768110275269, 0.12537497282028198, -0.6179393529891968, -0.3414693772792816, 0.3092867136001587, -0.04106420278549194, 0.4807385206222534, -0.28381040692329407, 0.714689314365387, -0.6479085683822632, -0.7409749031066895, 0.3120405375957489, -0.6855118870735168, 0.9725414514541626, 0.4338807165622711, -0.6235352754592896, 0.13571202754974365, -0.43081486225128174, -0.06786219775676727, 0.10962382704019547, -0.3820444643497467, 0.29077571630477905, 0.26290345191955566, -0.010448673740029335, 0.09682248532772064, 0.1863701492547989, -0.09501883387565613, -0.34929221868515015, -0.24692223966121674, 0.8086794018745422, 1.4560424089431763, -0.9871994256973267, 0.7497307658195496, -0.568899393081665, 0.4443679451942444, -0.16512949764728546, 0.36969658732414246, 0.23484663665294647, -0.519943118095398, -0.781097948551178, -0.32151705026626587, 0.42480188608169556, 0.6988430023193359, -0.46500980854034424, 0.5464279055595398, -0.2208920270204544, -0.07572288066148758, -0.8741019368171692, 0.02460499294102192, 0.17470435798168182, 0.5315510034561157, -0.005761241540312767, -0.28621914982795715, -0.2726714015007019, -1.0413702726364136, -0.4486166536808014, -0.09935896098613739, -0.2069959193468094, 0.574593186378479, 0.32336679100990295, -0.1524883508682251, 1.1119033098220825, 0.30226394534111023, -0.354234904050827, 0.04630979150533676, -0.22941014170646667, 0.18847964704036713, 0.3892360031604767, 0.48106592893600464, -1.1389394998550415, -0.20207802951335907, -0.06405887007713318, -1.0201414823532104, -0.22857454419136047, 0.2664905786514282, 0.17495299875736237, 0.25262704491615295, 0.47902530431747437, -0.274302214384079, 0.5825097560882568, 0.38867002725601196, -0.3670886158943176, 0.13032671809196472, -0.1787225902080536, 0.32651758193969727, -0.5476878881454468, 0.1959693878889084, -0.06751620024442673, -0.4383828639984131, -0.37314707040786743, 0.10825588554143906, -0.20503924787044525, -0.07247306406497955, -0.5558484792709351, 0.8245786428451538, 0.124557726085186, -0.4133389890193939, -0.4115541875362396, 0.3176574409008026, -0.27727460861206055, 0.34633368253707886, -0.5020714998245239, 0.5742526650428772, 0.2896338999271393, -0.5690634250640869, 0.1474459171295166, -0.23876824975013733, -0.19185689091682434, 0.9971211552619934, -0.6579294204711914, 0.07316309958696365, -0.453064501285553, 0.23338188230991364, -0.4862491190433502, -0.09085877239704132, 0.5753788352012634, -0.5160579681396484, -0.13401766121387482, -0.023130079731345177, -0.3253194987773895, -0.21262936294078827, -0.2327675223350525, 0.6193885207176208, 0.6177529096603394, -0.42197293043136597, 0.7931874394416809, 0.6689738035202026, -0.05197429284453392, -0.8616886734962463, -0.7830020785331726, 0.35971665382385254, -0.6084298491477966, -0.7225854992866516, 0.3859609067440033, -0.2137158066034317, -0.6213867664337158, 0.23370029032230377, 0.17324015498161316, 0.06788398325443268, 0.6421080231666565, 0.40775832533836365, -0.058507438749074936, 0.10323508083820343, -0.002538213273510337, -0.08817791193723679, -0.2796216309070587, -0.0703561082482338, -0.134439617395401, 0.30965012311935425, -0.4489804208278656, -0.6780941486358643, -0.4693334698677063, 0.4028548300266266, 0.25109609961509705, 0.14971981942653656, 0.399005651473999, 0.5734614133834839, -0.7026891708374023, 0.07157531380653381, -0.5954886674880981, 0.27007508277893066, -0.4851382374763489, 0.43757525086402893, -0.17142216861248016, -1.3195418119430542, 0.6218991279602051, 0.13360053300857544, 0.28159257769584656, 0.42937368154525757, 0.6255683898925781, -0.3404082953929901, 0.9925779104232788, 0.7582254409790039, -0.26268982887268066, 0.259931743144989, 0.35813772678375244, 0.27895015478134155, -0.402725487947464, -0.32598114013671875, -0.8318775296211243, -0.6318338513374329, -0.8507409691810608, -0.2545984387397766, 0.28733593225479126, 0.18370793759822845, -0.6209303140640259, -0.34332412481307983, -0.3844425678253174, 0.5898526310920715, 0.7684040665626526, -0.013404582627117634, 0.42866766452789307, -0.002677267650142312, 0.07097606360912323, -0.09748644381761551, -0.6273824572563171, -0.9038698077201843, 1.1130489110946655, 0.5236767530441284, 0.47603440284729004, 0.05001456290483475, 0.5150392651557922, 0.8622534275054932, 0.7051774859428406, -0.5651811957359314, 0.6161221265792847, -0.44572538137435913, -0.6292349696159363, -0.3352298140525818, -0.7785326242446899, -0.8410993218421936, 0.18495523929595947, -0.18363025784492493, -0.6823260188102722, -0.04517407715320587, 0.06142794340848923, -0.031624410301446915, 0.36579129099845886, -0.8030856847763062, 0.6790317296981812, -0.33475515246391296, -0.03265156224370003, -0.32006433606147766, -0.7668927907943726, 0.19915026426315308, -0.006521314382553101, 0.6934367418289185, -0.5086118578910828, -0.026393432170152664, 0.5873211622238159, -0.4264248013496399, 0.685258150100708, -0.3931506276130676, 0.052766818553209305, 0.21275348961353302, -0.14046920835971832, 0.09837078303098679, -0.08887118101119995, -0.3608171045780182, 0.46272385120391846, -0.24110442399978638, -0.6842213273048401, -0.48210784792900085, 0.6598981022834778, -0.7696365714073181, -0.7734264135360718, -0.39832526445388794, -0.4755311608314514, -0.11434422433376312, 0.07212253659963608, -0.16277280449867249, -0.2747904360294342, -0.32101744413375854, 0.00393889332190156, 0.24944821000099182, -0.29585856199264526, 0.557232677936554, 0.25981077551841736, -0.15468348562717438, -0.27886369824409485, 1.077688455581665, -0.035306449979543686, -0.04704619571566582, -0.05348927900195122, 0.034536853432655334, -0.1573077291250229, -0.599837064743042, -0.26154571771621704, -0.2658863067626953, -0.7117933034896851, -0.06459029763936996, -0.3024407923221588, -0.1448221206665039, -0.16891850531101227, -0.3104276657104492, 0.052523646503686905, -0.6524417400360107, -0.3437112271785736, 0.17189130187034607, -0.07215944677591324, 0.8405911922454834, -0.4455642104148865, 0.21455194056034088, -0.3392409086227417, 0.3081134557723999, 0.27092576026916504, 0.5383357405662537, -0.008753003552556038, -0.4443279802799225, 0.15754234790802002, 0.17857609689235687, -0.21305549144744873, -0.05016239732503891, -0.1989423930644989, -0.08715590834617615, 0.7252599000930786, 0.11040935665369034, -0.20074409246444702, 0.37272554636001587, -0.6993444561958313, 0.5391722321510315, 0.3128979802131653, -1.1065607070922852, 0.19402365386486053, -0.054890140891075134, -0.3375466763973236, 0.45582759380340576, 0.15637479722499847, -0.6536408066749573, -0.36400046944618225, -0.35336440801620483, -0.8523459434509277, 0.6842073202133179, 0.3783872425556183, 0.3858506679534912, 0.12316714227199554, 0.5988363027572632, 0.19933542609214783, 0.4113874137401581, -0.9493909478187561, -0.14536933600902557, -0.11822149902582169, -0.5873374938964844, 0.0881684422492981, 0.1585472673177719, -0.19026802480220795, 0.1399710476398468, 0.3265640139579773, -0.13946834206581116, 0.06488318741321564, -0.11322452872991562, -0.12557172775268555, 0.030553817749023438, 0.38206398487091064, 0.3233640789985657, 0.5805864930152893, 0.10439479351043701, -0.13992337882518768, 0.05155567079782486, 0.12027181684970856, 0.23754338920116425, 0.38409656286239624, -0.34432822465896606, -0.582392692565918, 0.16806839406490326, 0.4485185146331787, -0.2835814952850342, -0.7515130043029785, 0.5410733222961426, -0.40393775701522827, -0.3192082941532135, -0.11777213960886002, 0.33328795433044434, -0.044528529047966, 0.6703839898109436, 0.44925427436828613, 0.06430303305387497, 0.09659510850906372, -0.5599921345710754, 0.01149054430425167, 0.7986353039741516, -0.5295532941818237, 0.22087626159191132, 0.8088911771774292, 0.4386352598667145, -0.7092007398605347, 0.664726197719574, -0.2819485664367676, -0.39375561475753784, 0.7990131378173828, 0.00002193850014009513, 0.7332326769828796, 0.17757733166217804, -0.013948989100754261, -0.5450825691223145, 0.3876360058784485, 0.014800590462982655, 0.08308863639831543, 0.16972364485263824, -0.6905854940414429, -0.31010496616363525, -0.5793763399124146, -0.4448379576206207, -0.18538601696491241, -0.16936062276363373, 0.20376673340797424, -0.6342199444770813, -0.4055083990097046, -0.22008341550827026, 0.019707150757312775, -1.0494683980941772, 0.02918243035674095, 0.22070109844207764, 0.6364407539367676, -0.4269775450229645, 0.12222055345773697, 0.4114631414413452, -0.23544783890247345, -0.2969282865524292, -0.13553668558597565, 0.04461492598056793, -1.1260979175567627, 0.39530691504478455, 0.34007003903388977, 0.1102902889251709, -0.4064248204231262, -0.7978590726852417, -0.07607308030128479, 0.9956569075584412, 0.9148046970367432, -0.5617679357528687, -0.18726623058319092, 0.6041281223297119, 0.34279245138168335, -0.4132743179798126, 0.27931228280067444, 0.4374878406524658, 0.6595958471298218, -0.3542962372303009, -1.0965958833694458, 0.02189335785806179, -0.07435737550258636, 0.07448760420084, -0.4260963797569275, -0.7770469784736633, 0.6608374118804932, -0.2960966229438782, -0.15813744068145752, 0.13268862664699554, 0.6592200994491577, 0.3224705755710602, 0.6546179056167603, 0.5717971920967102, 0.5878398418426514, 1.0423575639724731, -0.2628319263458252, 0.8397559523582458, 0.07284635305404663, 0.1874566674232483, 0.9169566631317139, -0.5614514946937561, 0.18748576939105988, 0.3754228353500366, -0.39602088928222656, -0.027034755796194077, 0.5910207629203796, 0.04246510937809944, 0.21928295493125916, 0.8375004529953003, -0.27094101905822754, -0.10865215212106705, -0.4260164797306061, -0.3255822956562042, 0.36616039276123047, 0.40908539295196533, -0.20820553600788116, -0.016808461397886276, 0.04017818346619606, -0.03938955441117287, 0.3884350061416626, -0.6147097945213318, 0.5252978205680847, 0.2917032241821289, -0.37929996848106384, -0.23719197511672974, 0.2987649738788605, 1.0892583131790161, -0.11791928112506866, -0.09682992845773697, -0.2965225279331207, 0.22008384764194489, -0.239969864487648, -0.8536801934242249, 0.2274036556482315, 0.08567281067371368, -0.24467378854751587, -0.05568794161081314, 0.42965665459632874, 0.025488456711173058, -0.5879800319671631, 0.37367111444473267, 0.5923845767974854, 0.1639135628938675, 0.11150063574314117, -0.9077398777008057, 0.12201148271560669, -0.10569678246974945, -0.04557311162352562, 0.3580497205257416, 0.7366710901260376, -0.023715287446975708, 1.0230790376663208, 0.26693445444107056, -0.08828960359096527, -0.055132992565631866, 0.21315599977970123, 0.6290352940559387, -0.7304534912109375, -0.18602685630321503, -0.9792554378509521, 0.4103352129459381, 0.060102056711912155, 0.03929918259382248, 0.17239950597286224, 0.23271101713180542, 0.9293617606163025, 0.6149418354034424, 1.1707613468170166, -0.19191968441009521, 0.23103098571300507, -0.4280657470226288, 0.7491804957389832, -0.6963297724723816, 0.4852953255176544, -0.19208349287509918, -0.6930225491523743, -0.5292460322380066, 0.5226849913597107, -0.11073534935712814, 0.5926405191421509, 0.0837998166680336, 0.5267443656921387, 0.1583046317100525, 0.09486668556928635, 0.316533625125885, -0.13876384496688843, 0.6339429020881653, 0.6840977072715759, 0.9933050870895386, -0.13577289879322052, 0.7002288699150085, 0.2470466047525406, -0.3812147080898285, -0.11622697114944458, -1.0335675477981567, -0.8579334616661072, -0.28316643834114075, -0.026609616354107857, -0.4111870229244232, 0.37752819061279297, 0.9437559247016907, 0.5063888430595398, -0.553403377532959, -0.3167155981063843, 0.10113885253667831, 0.6242510080337524, 0.4745754599571228, -0.23910652101039886, 0.16112037003040314, -0.44087883830070496, -0.74375319480896, -0.0347304604947567, 0.3588639199733734, 0.03347434103488922, -0.17482154071331024, -0.4603803753852844, 0.42616304755210876, -0.141687273979187, 0.44576188921928406, 0.2648717761039734, -0.6939951777458191, -0.41889458894729614, -0.34512507915496826, -0.21991777420043945, 0.15440623462200165, 0.7517693638801575, -0.7230421900749207, 0.042164694517850876, 0.03419502079486847, 0.9128050208091736, -0.16777727007865906, -0.3824225962162018, 0.6017286777496338, -0.30572909116744995, 0.035066694021224976, 0.502504825592041, 0.42784661054611206, 0.3817278742790222, -0.13071538507938385, 0.5921111106872559, 0.14851249754428864, -0.6164908409118652, -0.8267791271209717, 0.1560872346162796, -0.5209243893623352, -0.302937388420105, 0.6613372564315796, -0.10443414747714996, -0.048211827874183655, -0.16605408489704132, 0.0012395691592246294, 0.09479735046625137, -0.46484068036079407, 0.9306784272193909, 0.7028999924659729, -0.04782271385192871, 0.2675204575061798, -0.46070757508277893, 0.3092936873435974, 0.4769100248813629, -0.7563707828521729, -0.07776441425085068, 0.3863489031791687, 0.12540361285209656, -0.20841357111930847, 1.0966336727142334, -0.3249463140964508, 0.09149006754159927, -0.5850803852081299, -0.14913113415241241, 0.25467321276664734, -0.12776561081409454, -0.6052477955818176, 0.30282583832740784, 0.1562345176935196, 0.1628722846508026 ]
http://arxiv.org/abs/2406.01609v1
http://arxiv.org/pdf/2406.01609v1
Judgement Citation Retrieval using Contextual Similarity
2024-05-28T04:22:28
2024-05-28T04:22:28
Akshat Mohan Dasula, Hrushitha Tigulla, Preethika Bhukya
cs.IR
cs.IR, cs.CL, cs.LG
Traditionally in the domain of legal research, the retrieval of pertinent citations from intricate case descriptions has demanded manual effort and keyword-based search applications that mandate expertise in understanding legal jargon. Legal case descriptions hold pivotal information for legal professionals and researchers, necessitating more efficient and automated approaches. We propose a methodology that combines natural language processing (NLP) and machine learning techniques to enhance the organization and utilization of legal case descriptions. This approach revolves around the creation of textual embeddings with the help of state-of-art embedding models. Our methodology addresses two primary objectives: unsupervised clustering and supervised citation retrieval, both designed to automate the citation extraction process. Although the proposed methodology can be used for any dataset, we employed the Supreme Court of The United States (SCOTUS) dataset, yielding remarkable results. Our methodology achieved an impressive accuracy rate of 90.9%. By automating labor-intensive processes, we pave the way for a more efficient, time-saving, and accessible landscape in legal research, benefiting legal professionals, academics, and researchers.
[ -0.16321593523025513, -0.7635427713394165, 1.0016828775405884, 0.0369521901011467, -0.60802161693573, 0.18339821696281433, -0.10993179678916931, -0.2703247368335724, 0.4001516103744507, 0.5362080335617065, 0.2212301343679428, -0.508880615234375, -0.5182440280914307, -0.07162807136774063, -0.6314561367034912, 0.9889166951179504, 0.1332738846540451, 0.39052116870880127, -0.5807660818099976, -0.37668314576148987, -0.32955440878868103, -0.6268064379692078, -0.23312249779701233, -0.3562580645084381, 0.5990648865699768, 0.18178527057170868, 0.49932876229286194, 0.5847254395484924, 0.8369649648666382, 0.28505513072013855, -0.11416377127170563, -0.14145712554454803, 0.08406542986631393, 0.3166162967681885, -0.45378005504608154, -0.11765439808368683, -0.1966569721698761, 0.051064494997262955, 0.4443610906600952, 0.7169886231422424, -0.31907734274864197, 0.17377933859825134, -0.10961215198040009, 0.8285830020904541, -0.7204822897911072, 0.15746261179447174, -0.885988175868988, 0.3691706359386444, -0.24588969349861145, -0.5833330154418945, -0.522285521030426, -0.5939098596572876, 0.34139513969421387, -0.6459415555000305, 0.4027270972728729, 0.3877203166484833, 0.6413764357566833, 0.2893260717391968, -0.47080761194229126, -0.29374879598617554, -0.45045435428619385, 0.6720575094223022, -0.5609268546104431, 0.11388242244720459, 0.22204889357089996, 0.42590269446372986, -0.12533611059188843, -0.9363320469856262, -0.2908659279346466, -0.23155872523784637, -0.44858333468437195, -0.006468988489359617, -0.4088348150253296, -0.126100555062294, 0.21662701666355133, 0.11867959797382355, -0.6219171285629272, -0.16396979987621307, -0.45390579104423523, -0.22210237383842468, 0.7387021780014038, -0.19144365191459656, -0.1198858767747879, -0.5217505693435669, -0.2551285922527313, -0.0487007200717926, -0.42721349000930786, -0.1748843789100647, 0.18387293815612793, 0.6016899347305298, 0.5379063487052917, 0.5864002704620361, -0.15150752663612366, 0.6679452061653137, 0.12122727930545807, 0.04389328882098198, 0.5194579362869263, -0.19537174701690674, -0.40656784176826477, 0.47436898946762085, 0.7319362163543701, 0.4848369359970093, 0.022664327174425125, -0.4036448895931244, 0.08864051103591919, -0.4661940038204193, 0.6676668524742126, -0.5066806674003601, -0.0051206364296376705, 0.08214336633682251, -0.7728878259658813, -0.2728102207183838, 0.5869932770729065, -0.7570197582244873, -0.5531875491142273, -0.7485378384590149, -0.003431000979617238, -0.30827558040618896, 0.19268299639225006, -0.2340565025806427, -0.38857442140579224, 0.19063861668109894, 0.13415054976940155, -0.2731580436229706, 0.1605224609375, 0.6874842047691345, 0.7195370197296143, -0.2573527991771698, 0.2896581292152405, -0.5709947943687439, 0.3246433734893799, -0.15479370951652527, 0.6247298121452332, -0.9091939926147461, -0.44770729541778564, 0.22780101001262665, 0.06569090485572815, -0.1393069475889206, -0.7861384749412537, 0.9566674828529358, -0.8539685010910034, 0.07280929386615753, -0.3122464120388031, -0.6828638315200806, -0.272533655166626, 0.1970696598291397, -0.5595440864562988, 0.8896075487136841, -0.17285363376140594, -0.9593845009803772, 0.7142218351364136, -0.719703197479248, -0.7513408660888672, 0.375114381313324, -0.42949286103248596, -0.6989004015922546, 0.2760145962238312, 0.02072933316230774, 0.5853138566017151, -0.2999255359172821, 0.7125417590141296, -0.2367532104253769, -0.1633845865726471, -0.21765629947185516, 0.14400614798069, 0.8988543748855591, 0.6272100210189819, -0.23784348368644714, 0.20931032299995422, -0.7264826893806458, 0.011914649978280067, 0.22777831554412842, -0.05227399244904518, -0.8324213624000549, 0.15085896849632263, 0.14255645871162415, 0.083723284304142, 0.1651710569858551, -0.5268385410308838, -0.02281551994383335, -0.071737140417099, 0.5461463928222656, 0.375905841588974, 0.06359503418207169, 0.5756139159202576, 0.005608594045042992, 0.4069575369358063, -0.03159356862306595, -0.05023567005991936, -0.0533728264272213, -0.3439314067363739, -0.3722195029258728, 0.06297361105680466, 0.5404382348060608, 0.5934670567512512, -0.5251264572143555, 0.6012250781059265, -0.5067884922027588, -0.3615534007549286, -0.41041284799575806, 0.05857854709029198, 0.26248234510421753, 0.7006306648254395, 0.6494451761245728, -0.36937958002090454, -0.760904848575592, -1.2459843158721924, -0.5968397855758667, -0.12946347892284393, -0.08784741163253784, 0.4943636953830719, 0.6832888722419739, -0.012431224808096886, 1.3018474578857422, -0.26327449083328247, -0.40334582328796387, 0.12525461614131927, 0.28872373700141907, 0.2583071291446686, 0.44205865263938904, 0.5857720375061035, -1.1259031295776367, -0.5793130397796631, 0.3148792088031769, -1.0681582689285278, -0.06158095970749855, -0.03198231756687164, -0.136471226811409, -0.13009247183799744, 0.8647443056106567, -0.18706603348255157, 0.6305164098739624, -0.45203855633735657, -0.5880627036094666, 0.3835855722427368, -0.16728201508522034, 0.25294777750968933, -0.9143648743629456, 0.3518545925617218, 0.006755079608410597, -0.30372896790504456, -0.20661568641662598, 0.20156405866146088, 0.17034293711185455, 0.22883856296539307, -0.22712010145187378, 0.18193718791007996, -0.43874478340148926, -0.3190837502479553, -0.13570177555084229, 0.2348237782716751, 0.0124448137357831, 0.18981537222862244, -0.144671231508255, 0.5480893850326538, 0.30207696557044983, -0.31192201375961304, 0.23975442349910736, 0.17283962666988373, -0.3219321370124817, 1.0489695072174072, -0.5728376507759094, -0.113993801176548, -0.0950467437505722, 0.1986573040485382, -0.3176979422569275, -0.007435512263327837, 0.08768681436777115, 0.06560206413269043, 0.14566168189048767, -0.5884119272232056, -0.8475912809371948, -0.45189136266708374, -0.15144729614257812, 0.2540622353553772, 0.2061561793088913, -0.42122405767440796, 0.7939883470535278, 0.5765946507453918, -0.34716126322746277, -0.41718199849128723, -0.495919793844223, 0.323297917842865, -0.6987562775611877, -0.021641364321112633, 0.756813108921051, 0.22021269798278809, -0.6060981750488281, 0.09454425424337387, 0.06808923184871674, -0.2862092852592468, -0.00012583525676745921, 0.5219893455505371, 0.1669704169034958, -0.0692458376288414, 0.4963611960411072, 0.2242855578660965, 0.2548471987247467, 0.21994538605213165, -0.3414906859397888, 0.26441264152526855, -0.14054380357265472, -0.3288467824459076, -0.28079643845558167, 0.5718989968299866, 0.3951926827430725, 0.024980464950203896, 0.20680801570415497, 0.44446152448654175, -0.14112667739391327, 0.3030259907245636, -0.6924243569374084, 0.1550728678703308, -0.39106160402297974, 0.052276160567998886, -0.3922249674797058, -0.8077036142349243, 0.3117992579936981, -0.15379773080348969, 0.17418016493320465, 0.6026708483695984, 0.4307946264743805, -0.17634640634059906, 0.5564151406288147, 0.4736187160015106, -0.32726767659187317, 0.7242025136947632, 0.18522211909294128, 0.4393075108528137, -0.635864794254303, -0.4436894953250885, -0.7244777679443359, -0.15451839566230774, -0.37404677271842957, -0.45264220237731934, 0.20479357242584229, 0.134039506316185, -0.32838016748428345, 0.3541421890258789, -0.7611510753631592, 0.46364542841911316, 0.7680514454841614, -0.15626487135887146, 0.6140871644020081, 0.489498496055603, -0.6744750142097473, 0.027675816789269447, -0.4957886338233948, -0.7103312611579895, 1.3055273294448853, -0.08589468896389008, 0.16721008718013763, 0.062446948140859604, 0.8310582041740417, 0.857782781124115, 0.11974562704563141, -0.6081092357635498, 0.4926735460758209, 0.07477130740880966, -0.5790897607803345, -0.09758482873439789, -0.20588988065719604, -1.291061520576477, 0.4807855188846588, -0.22696693241596222, -0.5449947714805603, 0.35661718249320984, -0.3245724141597748, -0.37037891149520874, 0.055718015879392624, -0.4086122512817383, 0.4764643907546997, 0.01721317321062088, -0.5400493144989014, -0.34618180990219116, -0.8199436664581299, -0.07377082854509354, -0.02927805297076702, 0.4461372494697571, 0.033770229667425156, 0.2594289183616638, 0.8854016065597534, -0.5387942790985107, 0.37087929248809814, -0.20420898497104645, 0.13428916037082672, 0.54536372423172, -0.044693633913993835, 0.3293643593788147, 0.12026895582675934, -0.20041444897651672, -0.11588316410779953, 0.2157077044248581, -0.40903472900390625, -0.5288126468658447, 0.8064424991607666, -0.186321422457695, -0.4020068049430847, -0.6843506097793579, -0.44642552733421326, 0.017790721729397774, 0.16529379785060883, -0.24464601278305054, -0.06319747865200043, -0.3997645676136017, 0.3368137776851654, 0.28046223521232605, 0.0909763053059578, 0.7385990023612976, 0.571463406085968, -0.03289913013577461, -0.3010927140712738, 0.581921398639679, -0.08411837369203568, -0.6742765307426453, 0.28381478786468506, 0.018589384853839874, -0.28128495812416077, -0.487506628036499, -0.3938020169734955, 0.03534010797739029, -0.5939681529998779, -0.36987435817718506, -0.6735088229179382, -0.019676832482218742, -0.5325140953063965, -0.1511116921901703, -0.1263226568698883, -0.5910013914108276, -0.15496787428855896, -0.3153350055217743, 0.47742825746536255, 0.6362320780754089, 0.09831393510103226, 0.04340285807847977, -0.5161061882972717, -0.05628655478358269, 0.2518663704395294, 0.2416701763868332, -0.04140898585319519, -0.5848315358161926, -0.22074547410011292, -0.39782440662384033, -0.3294464349746704, -0.5047112107276917, 0.4673868417739868, 0.10743027925491333, 0.6937798261642456, 0.47036150097846985, 0.16488558053970337, 0.8507579565048218, -0.9472519159317017, 0.48954853415489197, 0.11913637816905975, -0.5315694808959961, 0.9257874488830566, -0.16798314452171326, -0.3214386999607086, 1.0368521213531494, 0.37460988759994507, 0.13487817347049713, -0.055379364639520645, -0.8863508105278015, -1.0709500312805176, 0.24064160883426666, 0.32462772727012634, 0.0009593238355591893, 0.05313967540860176, 0.617551863193512, 0.16816264390945435, 0.3282388746738434, -0.38532695174217224, -0.14859245717525482, 0.0015916544944047928, -0.09361162781715393, 0.15307383239269257, -0.10592732578516006, -0.5043173432350159, -0.6930671334266663, 0.6044521331787109, -0.1939118206501007, 0.2898126244544983, 0.3792734742164612, -0.396547794342041, 0.2664802074432373, 0.43095871806144714, 0.24447070062160492, 0.5999205112457275, -0.19481074810028076, 0.1726597249507904, -0.03052281029522419, -0.17360427975654602, -0.1872193068265915, 0.468341588973999, -0.3417578637599945, 0.4520431458950043, 0.35170212388038635, 0.30793166160583496, 0.21683786809444427, -0.7617287039756775, 0.5348771810531616, -0.059921760112047195, -0.3682887554168701, -0.7603497505187988, -0.3174533247947693, -0.15880948305130005, 0.5243910551071167, 0.8211094737052917, 0.062226276844739914, 0.7023555040359497, -0.5502105355262756, 0.5054602026939392, 0.43076854944229126, -0.5441981554031372, 0.176635280251503, 0.580909013748169, 0.021029481664299965, -0.14121784269809723, 0.3119345009326935, -0.09276524931192398, -0.17667913436889648, 0.4454406499862671, 0.12452372163534164, 0.5794674158096313, 0.3382129371166229, 0.14217397570610046, 0.36659014225006104, -0.26736000180244446, -0.3061973452568054, -0.04235155135393143, -0.34899306297302246, -0.22181157767772675, -0.15032868087291718, -0.8145638704299927, -0.14551228284835815, -0.3534938395023346, -1.0981043577194214, -0.03474889695644379, -0.3991921842098236, -0.37468379735946655, 0.06977078318595886, 0.046862345188856125, -0.6825402975082397, -0.06506571173667908, 0.008898252621293068, 0.601348340511322, -0.8062698841094971, 0.8189346790313721, 0.7038123607635498, -0.6398184299468994, -0.23793189227581024, -0.17122788727283478, 0.05675588175654411, -0.37577006220817566, 0.7978183627128601, -0.04918858781456947, 0.09825382381677628, -0.3049878776073456, -0.5045722723007202, -0.6632331609725952, 1.290041446685791, 0.2060813307762146, -0.6961563229560852, 0.059833794832229614, -0.11152619123458862, 0.7235000133514404, -0.6080284714698792, 0.21620500087738037, 0.8287802338600159, 0.49523109197616577, 0.18818719685077667, -0.8308427333831787, 0.26907169818878174, -0.5578855276107788, 0.09505724906921387, -0.35602301359176636, -0.2552172839641571, 0.38498345017433167, -0.11137986928224564, -0.08086216449737549, 0.02059822715818882, 0.7003030776977539, 0.40527772903442383, 0.621520459651947, 0.38036048412323, 0.6414123773574829, 1.037645697593689, -0.14821437001228333, 1.0543245077133179, -0.35416531562805176, 0.3884831964969635, 1.2962369918823242, -0.27656856179237366, 0.8243684768676758, 1.010648250579834, -0.2517102062702179, 0.8540938496589661, 0.4799015522003174, -0.2912802994251251, 0.59511399269104, 0.23652438819408417, 0.008928433060646057, -0.33511894941329956, -0.3232782781124115, -0.2640671133995056, 0.09181127697229385, 0.03787494823336601, -1.084207534790039, -0.1288491040468216, -0.023984920233488083, -0.12451209127902985, 0.5567980408668518, -0.12232207506895065, 0.7808254957199097, 0.08617758750915527, -0.5800674557685852, 0.053207848221063614, -0.16015619039535522, 0.5837000012397766, -0.053933411836624146, -0.14773859083652496, -0.02162015810608864, -0.08677204698324203, -0.26019975543022156, -0.5752479434013367, 0.4131351411342621, 0.061232808977365494, -0.4795936942100525, -0.47681376338005066, 0.4718741774559021, 0.046722762286663055, -0.5905126333236694, 0.5393610596656799, 0.5319968461990356, 0.37535393238067627, -0.15416719019412994, -0.9438238143920898, -0.27821990847587585, -0.17024074494838715, -0.11638403683900833, 0.3485071361064911, 0.40730753540992737, -0.33389654755592346, 0.4703114330768585, 0.6634953618049622, -0.05379832163453102, 0.1608981043100357, 0.5502790212631226, 0.9055980443954468, -0.8233403563499451, -0.45239120721817017, -0.7762829065322876, 0.13880035281181335, -0.7999610304832458, -0.00680274935439229, 0.6901010870933533, 0.8720918893814087, 0.6645488142967224, 0.059276994317770004, 0.8487430810928345, -0.4023192524909973, 0.6799322962760925, -0.39009448885917664, 0.5561848878860474, -0.4633111357688904, 0.3123340308666229, -0.37579119205474854, -0.810594379901886, -0.6210724115371704, 0.9062322974205017, -0.3542786240577698, 0.04522335156798363, 0.6807942390441895, 0.46284976601600647, -0.161049947142601, -0.05688449740409851, 0.10327739268541336, -0.06929513812065125, 0.10302593559026718, 0.0923268124461174, 0.3914051055908203, -0.4768572747707367, 0.59540194272995, -0.027133552357554436, 0.1827745884656906, -0.7148378491401672, -0.815105676651001, -0.8408204317092896, -0.4171181917190552, -0.4415803849697113, -0.2263619750738144, 0.14451664686203003, 0.7664989829063416, 0.7079662084579468, -1.120120882987976, -0.010582048445940018, -0.25487565994262695, 0.2167140692472458, -0.09324200451374054, -0.2753032445907593, 0.6907151341438293, -0.5771104693412781, -0.6546107530593872, 0.42910897731781006, 0.1739841252565384, -0.30094924569129944, 0.12241482734680176, 0.05372921749949455, -0.4803617596626282, -0.22291427850723267, 0.6853429079055786, 0.16341641545295715, -0.9981777667999268, -0.2091885209083557, -0.4774043560028076, -0.19677071273326874, 0.1334465742111206, 1.176226019859314, -0.9324334859848022, 0.42222562432289124, 0.34548455476760864, 0.593390941619873, 0.5209872126579285, 0.25786781311035156, 0.527644157409668, -0.6742071509361267, 0.009431618265807629, 0.2898419201374054, 0.7601252794265747, 0.25132235884666443, -0.15756696462631226, 0.9132150411605835, 0.3359498083591461, -0.3991430699825287, -0.7003302574157715, -0.1415948122739792, -1.2404699325561523, -0.6833665370941162, 0.8606013059616089, -0.140434131026268, -0.08647268265485764, -0.5005180239677429, -0.1367863416671753, 0.2464117705821991, -0.6581127047538757, 0.9611495137214661, 0.4845907986164093, -0.11587651073932648, 0.19607862830162048, -0.6164853572845459, 0.2420101761817932, 0.4028964936733246, -0.3453509509563446, -0.16283264756202698, 0.5143736004829407, 0.38923269510269165, 0.6140437722206116, 0.23731671273708344, -0.45291370153427124, 0.027606774121522903, -0.2300814688205719, 0.17087359726428986, -0.008220070041716099, -0.04847175255417824, -0.3013022840023041, 0.6400596499443054, -0.3799896538257599, 0.19621294736862183 ]
http://arxiv.org/abs/2405.17809v1
http://arxiv.org/pdf/2405.17809v1
TransVIP: Speech to Speech Translation System with Voice and Isochrony Preservation
2024-05-28T04:11:37
2024-05-28T04:11:37
Chenyang Le, Yao Qian, Dongmei Wang, Long Zhou, Shujie Liu, Xiaofei Wang, Midia Yousefi, Yanmin Qian, Jinyu Li, Sheng Zhao, Michael Zeng
cs.CL
cs.CL, cs.AI, cs.SD, eess.AS
There is a rising interest and trend in research towards directly translating speech from one language to another, known as end-to-end speech-to-speech translation. However, most end-to-end models struggle to outperform cascade models, i.e., a pipeline framework by concatenating speech recognition, machine translation and text-to-speech models. The primary challenges stem from the inherent complexities involved in direct translation tasks and the scarcity of data. In this study, we introduce a novel model framework TransVIP that leverages diverse datasets in a cascade fashion yet facilitates end-to-end inference through joint probability. Furthermore, we propose two separated encoders to preserve the speaker's voice characteristics and isochrony from the source speech during the translation process, making it highly suitable for scenarios such as video dubbing. Our experiments on the French-English language pair demonstrate that our model outperforms the current state-of-the-art speech-to-speech translation model.
[ -0.21096263825893402, -0.3570365309715271, 0.05303357169032097, 0.1517091989517212, -0.5097723603248596, 0.043656520545482635, -0.21613019704818726, -0.2868511974811554, -0.07894370704889297, 0.5161917209625244, -0.5649477243423462, -0.31898319721221924, -0.6252716779708862, 0.0863359346985817, -0.8638460636138916, 0.7288603782653809, 0.13249258697032928, 0.4288705289363861, -0.20711477100849152, -0.12670868635177612, -0.5676934719085693, -0.45644447207450867, -0.5335995554924011, -0.2831454575061798, -0.06923054903745651, 0.2764052450656891, 0.7252720594406128, 0.604306161403656, 0.2480980008840561, 0.08624856919050217, -0.11188017576932907, 0.024982288479804993, -0.21321330964565277, 0.3993193805217743, -0.2353091686964035, -0.4300194978713989, -0.2360696792602539, -0.331094354391098, 0.9464719295501709, 0.7177249789237976, -0.21664659678936005, 0.32212406396865845, 0.26474612951278687, 0.3650686740875244, -0.6941744089126587, -0.06367699056863785, -0.3892974555492401, 0.16224415600299835, -0.20325356721878052, -0.17337003350257874, -0.6366332769393921, -0.1344655603170395, 0.06354363262653351, -0.2039252370595932, 0.060207549482584, -0.19588670134544373, 0.4858555495738983, 0.5642156004905701, -0.37011852860450745, 0.20137259364128113, -1.3363049030303955, 0.36158281564712524, -0.7120792269706726, 0.9310498237609863, 0.10942769795656204, 0.3052815794944763, 0.0318601168692112, -0.9557523131370544, -0.5797559022903442, 0.07799891382455826, 0.31979188323020935, 0.3114868700504303, -0.33588457107543945, -0.061017781496047974, -0.0786181390285492, 0.18459241092205048, -0.6818253993988037, 0.1775759905576706, -0.22886697947978973, -0.15666495263576508, 0.380670964717865, -0.07608090341091156, 0.44806626439094543, -0.09693416953086853, -0.4650231897830963, -0.21400392055511475, -0.5370419025421143, 0.1165207177400589, 0.13358215987682343, 0.43092820048332214, -0.10450582951307297, 0.5699157118797302, -0.06913302838802338, 0.6666473746299744, -0.12250109761953354, 0.06158680096268654, 0.27959582209587097, -0.10832306742668152, -0.42878979444503784, 0.37652018666267395, 0.6865512132644653, 0.19723252952098846, 0.25194042921066284, -0.33370599150657654, -0.001620673225261271, -0.03197720646858215, -0.10924524813890457, -0.6433664560317993, 0.30375179648399353, 0.12758690118789673, -0.4435305893421173, 0.04078326001763344, 0.04828612133860588, -0.5054891109466553, 0.17986518144607544, -0.2900950014591217, 0.1818569451570511, -0.28075364232063293, -0.25990745425224304, 0.1506209373474121, -0.12756869196891785, 0.21734200417995453, 0.2685878574848175, -0.5834893584251404, 0.5495355725288391, 0.6323599219322205, 1.0413764715194702, -0.3553861677646637, -0.13375984132289886, -0.8519287109375, 0.4490516483783722, -0.4672212302684784, 0.5317760705947876, -0.7886380553245544, -0.624198317527771, 0.11042886972427368, 0.08274019509553909, 0.12317432463169098, -0.36991655826568604, 0.7911468744277954, -0.2584989070892334, 0.37774962186813354, -0.09104694426059723, -0.42752355337142944, -0.11682101339101791, -0.18517355620861053, -0.583889365196228, 0.6655561327934265, -0.18844644725322723, -0.43596702814102173, 0.24342243373394012, -0.0019398753065615892, -0.3523079454898834, 0.2078656703233719, -0.08880248665809631, -0.3505362868309021, 0.30410677194595337, 0.3344881534576416, 0.31394022703170776, -0.9064239263534546, 0.469605028629303, -0.16857300698757172, -0.04597921296954155, 0.0739273950457573, -0.8570140600204468, 0.8016499876976013, 0.37120330333709717, 0.16116081178188324, -0.1700797826051712, -0.5002869367599487, -0.16256193816661835, -0.13864018023014069, -0.2093949019908905, -0.28510093688964844, 0.13883186876773834, 0.3904601037502289, 0.6270244121551514, 0.01699327677488327, -0.5974749326705933, 0.18364226818084717, -0.3116339445114136, 0.7157187461853027, 0.22832097113132477, 0.001508630346506834, 0.6331427097320557, -0.1622748076915741, 0.6742885112762451, 0.22128552198410034, 0.1679951250553131, -0.15763740241527557, -0.6685771942138672, -0.5095228552818298, -0.07620083540678024, 0.3672791123390198, 1.0552300214767456, -0.5122423768043518, 0.39063987135887146, -0.7759992480278015, -0.2662374973297119, -0.8265607953071594, -0.05388743430376053, 0.2148209810256958, 0.5568034648895264, 0.4336563050746918, -0.5793196558952332, -0.2788592576980591, -0.9983641505241394, -0.15317566692829132, -0.24611538648605347, -0.3422713875770569, -0.07281657308340073, 0.06706904619932175, -0.034468427300453186, 0.9720439910888672, -0.01849973201751709, -0.40144556760787964, -0.1843402087688446, 0.026342755183577538, -0.0024049875792115927, 0.5960514545440674, 0.13096803426742554, -0.8155991435050964, -0.12129202485084534, 0.053713586181402206, -0.5941519141197205, -0.2711004614830017, -0.33987000584602356, -0.07035379856824875, -0.22875317931175232, 0.6098542809486389, -0.5363768339157104, 0.4665951430797577, 0.5368439555168152, -0.044542811810970306, 0.032586224377155304, -0.18161454796791077, 0.15508954226970673, -1.5089337825775146, 0.10247866064310074, -0.15158900618553162, -0.592614471912384, -0.7464898824691772, -0.3005577623844147, -0.10710813850164413, -0.4781211316585541, -0.6214028596878052, 0.26583775877952576, -0.4003461003303528, -0.3157784044742584, -0.047362055629491806, -0.08490593731403351, -0.2756598889827728, 0.354116290807724, 0.5669919848442078, 0.6360852122306824, 0.5083512663841248, -0.33742016553878784, 0.40223073959350586, 0.5689759850502014, -0.13346144556999207, 0.549721896648407, -0.5873545408248901, 0.14462026953697205, -0.2816801071166992, 0.5536457300186157, -0.8999527096748352, 0.0646725594997406, 0.0697656124830246, -0.7243330478668213, 0.49735328555107117, -0.4254907965660095, -0.31841450929641724, -0.030316339805722237, 0.11675937473773956, 0.5179126262664795, 0.72844398021698, -0.29185962677001953, 0.6125441193580627, 0.31710585951805115, -0.6036527752876282, -0.6713913083076477, -0.9001452922821045, 0.536168098449707, -0.15456253290176392, -0.6365668177604675, 0.6527587175369263, 0.29641255736351013, 0.14699408411979675, 0.013623583130538464, -0.017257219180464745, -0.21616555750370026, -0.4792816638946533, 0.21928012371063232, 0.028239846229553223, -0.055079925805330276, 0.25564154982566833, 0.28693312406539917, -0.2644704580307007, -0.07117931544780731, -0.814514696598053, 0.5655831694602966, 0.3144412636756897, -0.4217558205127716, -0.5741303563117981, 0.7924696207046509, 0.8001385927200317, -0.3722694516181946, 0.48312312364578247, 0.5592776536941528, -0.6348967552185059, -0.2834559381008148, -0.36629927158355713, -0.04525615647435188, -0.30646225810050964, 0.4810541272163391, -0.4486064910888672, -0.4716004729270935, 0.5381863713264465, -0.2711413502693176, 0.09271097928285599, 0.28171268105506897, 0.5091081261634827, 0.08905057609081268, 1.010762333869934, 0.42106741666793823, -0.2491563856601715, 0.6348810791969299, -0.1358109563589096, 0.11826512962579727, -0.8844743967056274, -0.43004682660102844, -0.5298733711242676, -0.3148311972618103, -0.4595940411090851, -0.6318768262863159, 0.3371417820453644, 0.13008257746696472, -0.07608117163181305, 0.5026257634162903, -0.5440735816955566, 0.025455612689256668, 0.612353503704071, -0.06620970368385315, 0.4683544635772705, 0.28844213485717773, 0.08310694247484207, -0.21948407590389252, -0.8547928333282471, -0.43799057602882385, 0.6749612092971802, 0.266187846660614, 0.8122303485870361, 0.14075832068920135, 0.47042787075042725, 0.38943371176719666, -0.13580012321472168, -0.5323639512062073, 0.4531577527523041, -0.39827415347099304, -0.5467952489852905, -0.36641189455986023, -0.3211018443107605, -0.5313474535942078, 0.2749308943748474, -0.1075674295425415, -0.8383233547210693, 0.6713571548461914, 0.08492828905582428, 0.0033451979979872704, 0.39911970496177673, -0.2432742416858673, 0.6486281156539917, -0.16143293678760529, -0.6002956628799438, -0.15193279087543488, -1.0950442552566528, 0.19792455434799194, 0.07751786708831787, 0.0472712442278862, 0.10963728278875351, -0.07205668091773987, 0.5681642889976501, -0.3934325873851776, 0.5350996255874634, -0.055196844041347504, -0.0829707682132721, 0.22933945059776306, 0.2826240360736847, 0.3393961489200592, 0.17652186751365662, 0.04408310353755951, 0.29223737120628357, -0.07273092865943909, 0.014382850378751755, -0.5656154155731201, 0.4438464641571045, -0.6657320261001587, -0.41107988357543945, -0.26153889298439026, -0.4786466956138611, -0.11779411137104034, -0.11094297468662262, 0.6527103185653687, 0.5232317447662354, -0.29975032806396484, 0.3471362590789795, 0.5128610134124756, -0.35794728994369507, 0.5557209849357605, 0.33259671926498413, -0.09808884561061859, -0.49546727538108826, 0.8405019640922546, 0.16758102178573608, 0.6423622965812683, 0.8367370963096619, -0.07311172038316727, -0.5579670667648315, -0.3121583163738251, -0.7564238905906677, 0.013798228465020657, -0.5667853355407715, -0.09013576060533524, -0.5845985412597656, -0.39839789271354675, -0.6104725003242493, -0.03663012385368347, -0.6795918345451355, -0.768208920955658, -0.28698599338531494, 0.07983600348234177, -0.10946161299943924, 0.2489735335111618, -0.3035391867160797, 0.13948413729667664, -0.9793590307235718, 0.4155988395214081, 0.2952347993850708, -0.14128270745277405, -0.28529688715934753, -0.9651347398757935, -0.02684348076581955, 0.08090608566999435, -0.0985942929983139, -1.079970359802246, 0.7249001860618591, 0.48126137256622314, 0.27798739075660706, 0.3448924422264099, 0.11775271594524384, 0.668805718421936, -0.6727964282035828, 0.7808506488800049, 0.3630983531475067, -1.1869515180587769, 0.6716687083244324, -0.06979882717132568, 0.5241605639457703, 0.2632471024990082, 0.2125525027513504, -1.1092205047607422, -0.23686902225017548, -0.3018604815006256, -0.8785560727119446, 0.5970548987388611, 0.45250359177589417, 0.011478003114461899, 0.32716798782348633, 0.05528853461146355, 0.06245584785938263, 0.21788236498832703, -0.5548754930496216, 0.11084409058094025, -0.2572772204875946, -0.2318723201751709, -0.14379499852657318, 0.07056351751089096, 0.036696139723062515, -0.16216588020324707, 0.6252328753471375, 0.1476161777973175, 0.33917269110679626, 0.296402245759964, -0.3135770857334137, -0.12014740705490112, 0.47400009632110596, 0.4663061499595642, 0.12574100494384766, -0.21703171730041504, -0.01072012260556221, 0.3282567858695984, -0.44688212871551514, 0.6213811635971069, 0.28330206871032715, -0.3808409869670868, 0.22556661069393158, 0.514592707157135, 0.800008237361908, -0.07292856276035309, -0.41779235005378723, 0.487486869096756, -0.04167373850941658, 0.012495040893554688, -0.3204420804977417, -0.41721680760383606, 0.15540452301502228, 0.05768941342830658, 0.3943272829055786, 0.30951860547065735, 0.23882876336574554, -0.4782746136188507, 0.24846023321151733, 0.15771165490150452, -0.5715882182121277, -0.3542885482311249, 1.2100883722305298, 0.4212803840637207, -0.6720825433731079, 0.7325076460838318, 0.26171645522117615, -0.24953123927116394, 0.26577332615852356, 0.598739743232727, 1.305606722831726, -0.7452755570411682, 0.2232588678598404, 0.07629558444023132, 0.4473644196987152, -0.2732831835746765, 0.07482021301984787, -0.3352493941783905, -0.521251916885376, -0.44871726632118225, -0.5164351463317871, -0.296368271112442, -0.10022948682308197, -0.8950915336608887, 0.4286704957485199, 0.0339331217110157, -0.3291865885257721, -0.321265310049057, -0.7561107277870178, -0.6815167665481567, 0.265485942363739, 0.5609089732170105, 0.9122782349586487, -1.0779054164886475, 0.9960232973098755, 0.39968326687812805, -0.4251450002193451, -0.32725492119789124, -0.0664413645863533, -0.09662181884050369, -0.41220909357070923, 0.6429831385612488, -0.15817883610725403, -0.41597500443458557, 0.024253489449620247, -0.3080354630947113, -0.899398148059845, 0.8795189261436462, 0.9080668687820435, -1.0337239503860474, -0.35051223635673523, 0.4986436367034912, 0.38091596961021423, -0.3005765974521637, -0.03889104723930359, 0.4267377555370331, 0.08266298472881317, 0.2466886043548584, -1.011174201965332, -0.17534707486629486, -0.2301107794046402, 0.2260691076517105, 0.08969443291425705, -0.4764334261417389, 0.6257150769233704, 0.040126413106918335, -0.4102484881877899, -0.2786606252193451, 0.8306001424789429, -0.17919574677944183, 0.1266583502292633, 0.5069939494132996, 0.6503612399101257, 0.23432812094688416, -0.0185091532766819, 0.7798214554786682, -0.4114040732383728, 0.10567284375429153, 1.2595847845077515, -0.29963675141334534, 1.0763497352600098, 0.5309152007102966, 0.06240713223814964, 0.14936809241771698, 0.5521456003189087, 0.42300280928611755, 0.8034690022468567, 0.0029977450612932444, -0.4323548972606659, -0.6291763782501221, -0.34736475348472595, -0.45512503385543823, 0.6425841450691223, 0.43232011795043945, -0.4265820384025574, -0.14641256630420685, 0.3005219101905823, -0.3246716558933258, -0.05913723260164261, 0.04940703138709068, 0.7218096852302551, 0.29075032472610474, -0.6057418584823608, 0.3200712203979492, -0.14886009693145752, 0.1771429181098938, -0.631525456905365, -0.13838009536266327, -0.12791329622268677, 0.1084117665886879, -0.09588610380887985, -0.5641290545463562, 0.1560540795326233, 0.0778966099023819, -0.11236487329006195, -0.34846562147140503, 0.45239928364753723, -0.839855968952179, -0.6030448079109192, 0.47382602095603943, 0.6406912803649902, 0.10778474807739258, 0.2536839246749878, -0.4197174608707428, 0.027695689350366592, -0.1325688511133194, -0.20627667009830475, -0.023231618106365204, 0.3066262900829315, -0.18430198729038239, 0.8426927328109741, 0.47008031606674194, 0.35797491669654846, 0.03508588671684265, 0.3454502820968628, 0.5078927874565125, -0.2811618447303772, -0.7912231087684631, -0.8403587937355042, 0.601779580116272, 0.06655155122280121, -0.4078216850757599, 0.34126031398773193, 0.7660059928894043, 0.7908043265342712, 0.025698382407426834, 1.0235224962234497, 0.18147656321525574, 0.3400079309940338, -0.5103981494903564, 0.3508666455745697, -0.4668525159358978, 0.1621524691581726, -0.35656365752220154, -1.0881271362304688, -0.1824897676706314, 0.3112618625164032, 0.1036299392580986, -0.17623759806156158, 0.443337619304657, 0.6457382440567017, -0.21662987768650055, -0.0057830424048006535, 0.5221981406211853, -0.0946781262755394, 0.4667620360851288, 0.7756605744361877, 0.734533965587616, -0.46378326416015625, 0.6759763360023499, 0.0762598067522049, -0.1324194371700287, -0.027702422812581062, -0.6752086281776428, -0.4316183626651764, -1.0303314924240112, -0.2398667186498642, -0.20395374298095703, 0.29608798027038574, 0.8547794818878174, 1.0078954696655273, -0.6276113986968994, -0.3556419014930725, -0.1343923807144165, -0.29614347219467163, -0.4445386528968811, -0.053169190883636475, 0.09078461676836014, 0.038511913269758224, -0.9904975295066833, 0.5222530364990234, 0.41028082370758057, 0.21884256601333618, -0.3290192484855652, -0.21825933456420898, -0.027842268347740173, 0.11753928661346436, 0.3030400574207306, 0.2482224851846695, -0.6996023058891296, -0.08236703276634216, -0.14477762579917908, 0.18323738873004913, -0.03919689729809761, 0.9902155995368958, -0.8284308314323425, 0.6907872557640076, 0.7953897714614868, 0.7399961352348328, 0.9675310254096985, 0.13090026378631592, 1.195832371711731, -0.8120409250259399, 0.41002482175827026, 0.43103545904159546, 0.38853996992111206, 0.5026298761367798, -0.18047018349170685, 0.4314463138580322, 0.22756466269493103, -0.49170172214508057, -0.8890977501869202, 0.4055805802345276, -1.0843597650527954, -0.15490254759788513, 0.9020692110061646, 0.01786259561777115, 0.07473380118608475, 0.07340054959058762, -0.026335440576076508, 0.774610698223114, -0.512669026851654, 0.3040412962436676, 0.6281845569610596, 0.13429298996925354, -0.4665970206260681, -0.6872440576553345, 0.4347746670246124, 0.40290582180023193, -0.5796245336532593, 0.2212829887866974, 0.3383971154689789, 0.10038392245769501, 0.01267273910343647, 0.36261290311813354, -0.04369610548019409, 0.27723291516304016, 0.04331468790769577, 0.10753330588340759, 0.021533388644456863, -0.4993821978569031, -0.5712743997573853, 0.1443638652563095, -0.3342791199684143, -0.6052519083023071 ]
http://arxiv.org/abs/2405.17804v1
http://arxiv.org/pdf/2405.17804v1
Detection-Correction Structure via General Language Model for Grammatical Error Correction
2024-05-28T04:04:40
2024-05-28T04:04:40
Wei Li, Houfeng Wang
cs.CL
cs.CL
Grammatical error correction (GEC) is a task dedicated to rectifying texts with minimal edits, which can be decoupled into two components: detection and correction. However, previous works have predominantly focused on direct correction, with no prior efforts to integrate both into a single model. Moreover, the exploration of the detection-correction paradigm by large language models (LLMs) remains underdeveloped. This paper introduces an integrated detection-correction structure, named DeCoGLM, based on the General Language Model (GLM). The detection phase employs a fault-tolerant detection template, while the correction phase leverages autoregressive mask infilling for localized error correction. Through the strategic organization of input tokens and modification of attention masks, we facilitate multi-task learning within a single model. Our model demonstrates competitive performance against the state-of-the-art models on English and Chinese GEC datasets. Further experiments present the effectiveness of the detection-correction structure in LLMs, suggesting a promising direction for GEC.
[ 0.10727256536483765, -0.9822292923927307, 0.524890124797821, 0.04562371224164963, -0.2093551903963089, -0.15119010210037231, -0.2940503656864166, -0.2862756550312042, -0.0811784639954567, 0.2632303237915039, -0.463456928730011, -0.8590746521949768, -0.5403119921684265, 0.2533278465270996, -0.4662693440914154, 0.8251401782035828, -0.0702219158411026, -0.006123318336904049, -0.22579272091388702, -0.006682693026959896, -0.594641387462616, -0.7555709481239319, -0.8315767645835876, -0.1835607886314392, 0.2550959289073944, 0.32192331552505493, 0.34406957030296326, 0.6115812063217163, 0.21431176364421844, 0.39610666036605835, -0.3425882160663605, 0.42833760380744934, -0.24887217581272125, -0.14322075247764587, -0.17641706764698029, -0.7090128064155579, -0.8551109433174133, -0.284236341714859, 1.0224370956420898, 0.5979686975479126, -0.30875036120414734, -0.17422157526016235, 0.49316951632499695, 0.5115705132484436, -0.779033362865448, 0.43614983558654785, -0.7376343607902527, 0.0033072775695472956, -0.2597905397415161, 0.2773384153842926, -0.7308735847473145, -0.08861697465181351, -0.5966997742652893, -0.3380153179168701, 0.6455603241920471, -0.37808939814567566, 0.508743941783905, -0.015689337626099586, -0.2967372536659241, -0.2390376180410385, -0.7389270663261414, 0.4208832383155823, -0.6968281865119934, 0.1432192474603653, 0.36348971724510193, 0.028672978281974792, -0.3760087192058563, -0.3923192620277405, -0.3530479669570923, 0.0259365476667881, -0.2659136950969696, 0.2083617001771927, -0.4539133608341217, 0.2785857915878296, -0.021459026262164116, 0.21558625996112823, -0.7152342200279236, 0.13209444284439087, 0.07038696855306625, -0.2110426425933838, 0.28964105248451233, 0.17796571552753448, 0.541062593460083, 0.05958382785320282, -0.0932198315858841, 0.2917781174182892, -0.5986227989196777, -0.198806494474411, 0.34590405225753784, 0.5579758882522583, -0.20366187393665314, 0.15494099259376526, -0.17051959037780762, 0.7659802436828613, 0.14733794331550598, -0.052043113857507706, 0.08939547091722488, -0.4617137014865875, -0.4368402063846588, -0.046387046575546265, 0.45374736189842224, 0.07917600870132446, 0.08198245614767075, -0.134441539645195, -0.4787507653236389, 0.4640357196331024, 0.16624177992343903, -0.26284903287887573, -0.34490108489990234, -0.053206030279397964, -0.21118885278701782, -0.3202826678752899, 0.1627209484577179, -0.5238254070281982, -0.07908743619918823, -0.2860371172428131, 0.39604127407073975, -0.010220128111541271, -0.16594645380973816, 0.40522128343582153, 0.3141113817691803, -0.2079116553068161, 0.5382020473480225, -0.9580350518226624, 0.3874231278896332, 0.6645922064781189, 0.9036784768104553, -0.004942041356116533, -0.3295876383781433, -0.782196044921875, 0.26250219345092773, -0.41305020451545715, 0.9621863961219788, -0.28480035066604614, -0.41445109248161316, 0.2676422894001007, 0.3308522701263428, -0.5283302664756775, -0.6222717761993408, 0.4959520101547241, -0.3603973388671875, 0.413174033164978, -0.21185873448848724, -0.46190449595451355, -0.29521670937538147, 0.4993875324726105, -0.7023194432258606, 1.0384303331375122, 0.0030827925074845552, -0.7592294216156006, 0.17824606597423553, -0.5569738745689392, -0.5048409104347229, 0.11769253760576248, 0.02954995445907116, -0.609191358089447, -0.015330720692873001, 0.5271767377853394, 0.29600945115089417, 0.018754003569483757, 0.5444669723510742, -0.02685004472732544, -0.6108866930007935, -0.10946348309516907, -0.2607194781303406, 0.6725097298622131, -0.07568524032831192, -0.5073827505111694, 0.5548607110977173, -0.7657639384269714, -0.19876965880393982, 0.042709123343229294, -0.6098912358283997, -0.27115610241889954, 0.23389305174350739, -0.14531700313091278, 0.12968802452087402, -0.19983039796352386, -0.409416526556015, 0.21898745000362396, -0.2685641944408417, 0.4984678626060486, 0.6974250674247742, -0.3234163820743561, 0.5550936460494995, -0.04198077693581581, 0.5223482251167297, 0.06772550940513611, 0.290984570980072, -0.2788999676704407, -0.3548364043235779, -1.0014296770095825, -0.450714647769928, 0.10608069598674774, 0.8493282794952393, -0.6323366761207581, 0.6238725781440735, -0.041844699531793594, -0.13391131162643433, -0.3289741277694702, 0.2769549489021301, 0.6517724394798279, 0.6017228364944458, 0.4127611219882965, -0.1327977180480957, -0.54194176197052, -0.461931049823761, -0.443292498588562, -0.3618326485157013, 0.028541533276438713, -0.0786891058087349, 0.5832839608192444, -0.4097708463668823, 0.6427258253097534, -0.4381008446216583, -0.6890867948532104, -0.486981600522995, -0.05421598628163338, 0.14390984177589417, 0.38009414076805115, 0.46885940432548523, -0.3637813329696655, -0.3524836003780365, 0.0647360309958458, -0.6970855593681335, -0.33987969160079956, 0.1755015105009079, -0.10506328195333481, 0.5413627028465271, 0.7637614011764526, -0.36682358384132385, 0.4017675220966339, 0.5749402046203613, -0.45916593074798584, 0.6955671310424805, -0.3427286148071289, 0.1087987944483757, -0.857289731502533, 0.0477781817317009, -0.03320232778787613, -0.44256022572517395, -0.8644997477531433, 0.25507596135139465, 0.45831820368766785, 0.12679284811019897, -0.2786097526550293, 0.4086189866065979, -0.5625743269920349, 0.025614537298679352, -0.4389648139476776, 0.09480981528759003, -0.0756719559431076, 0.4946284592151642, -0.38146206736564636, 0.5283742547035217, 0.4703545868396759, -0.6228541731834412, 0.3585037291049957, 0.057211022824048996, -0.27409040927886963, 0.49105721712112427, -0.5040040612220764, 0.3804331421852112, -0.45493191480636597, 0.22702087461948395, -1.2209712266921997, -0.299160897731781, 0.5587670207023621, -0.17827464640140533, 0.32755276560783386, -0.32733336091041565, -0.546155571937561, -0.2803201675415039, -0.25165802240371704, 0.3969022035598755, 0.08427099138498306, -0.5875621438026428, 0.656184732913971, 0.1945275366306305, -0.29897403717041016, -0.47578108310699463, -0.7886424660682678, 0.046943314373493195, 0.1292211264371872, -0.793606162071228, 0.3111501634120941, 0.18291443586349487, -0.1683303266763687, 0.2729502320289612, 0.16122396290302277, 0.20539292693138123, 0.1826425939798355, 0.09909752756357193, 0.44970983266830444, -0.26632359623908997, 0.33098745346069336, -0.23753106594085693, -0.07701268792152405, -0.09510913491249084, -0.4091354012489319, 0.38615599274635315, -0.18481366336345673, -0.5149109363555908, -0.22538292407989502, 0.2941204607486725, 0.38930344581604004, -0.33208024501800537, 0.5186744332313538, 0.24812303483486176, -0.6941450238227844, -0.39671140909194946, -0.6651833057403564, -0.002424814272671938, -0.4083231985569, 0.6045361757278442, -0.10667776316404343, -0.8385599255561829, 0.7868909239768982, 0.3712676167488098, -0.2890804708003998, 0.4000813066959381, 0.450836181640625, 0.17364713549613953, 0.9190865159034729, 0.704257607460022, -0.5114979147911072, 0.44440221786499023, 0.16617536544799805, 0.11783500760793686, -0.5639269948005676, -0.18020647764205933, -0.7120522260665894, -0.2507645785808563, -0.019042735919356346, -0.5290488600730896, 0.31994715332984924, 0.25734248757362366, -0.330607533454895, 0.05497827008366585, -0.2629331052303314, 0.7120696306228638, 0.5355902314186096, 0.2012075036764145, 0.6576650142669678, 0.1419295221567154, -0.2553892135620117, 0.06627248227596283, -0.5550541281700134, -0.23970448970794678, 0.6680033206939697, 0.23081624507904053, 0.8949161767959595, 0.1010093092918396, 0.41531917452812195, 0.19042585790157318, 0.22259661555290222, -0.6033061146736145, 0.5245119333267212, -0.7134599089622498, -0.24743573367595673, -0.16641758382320404, -0.2015811949968338, -0.5133865475654602, 0.6374552845954895, 0.03473624959588051, -0.725774347782135, 0.17594783008098602, 0.3934488296508789, -0.1349194049835205, 0.6937050223350525, -0.6800143122673035, 1.0945838689804077, 0.030326280742883682, -0.042362503707408905, -0.017837679013609886, -0.3830898702144623, 0.463623046875, 0.1851467788219452, 0.35003215074539185, 0.03901020810008049, 0.2915663421154022, 0.27670586109161377, -0.14128044247627258, 1.086693286895752, -0.2960415780544281, -0.28326931595802307, 0.2899341285228729, 0.12437506020069122, 0.9648057818412781, -0.27162161469459534, 0.09256080538034439, -0.121983103454113, -0.7253914475440979, -0.1380818635225296, -0.4286978244781494, 0.3131124973297119, -0.3669373691082001, -0.5325137376785278, -0.3287358582019806, -0.5177791714668274, -0.060003090649843216, 0.08076102286577225, 0.33987247943878174, 0.4006534814834595, -0.30658894777297974, -0.1586790531873703, 0.45239338278770447, 0.03686957433819771, 0.3537227213382721, 0.6350311636924744, -0.39525529742240906, -0.34006404876708984, 0.43074676394462585, 0.003268625820055604, 0.39619502425193787, 0.310543954372406, -0.08965562283992767, -0.26112100481987, -0.619941234588623, -0.31129565834999084, 0.3543817400932312, -1.0627198219299316, -0.08923543244600296, -0.6339194178581238, -0.10980426520109177, -0.4933353364467621, -0.1294955611228943, -0.11498560756444931, 0.28667131066322327, -0.49974706768989563, -0.1476636677980423, -0.02629784308373928, 0.7438496351242065, -0.06517701596021652, 0.2509195804595947, -0.7974002361297607, 0.22214281558990479, 0.3412652611732483, 0.17577432096004486, 0.0038645993918180466, -0.68751460313797, -0.18401306867599487, 0.03868533670902252, -0.06665009260177612, -0.5898522734642029, 0.3592023551464081, 0.43889179825782776, 0.45707517862319946, 0.0788339376449585, -0.44776615500450134, 0.8070350885391235, -0.5484490394592285, 0.5880739092826843, 0.06440237909555435, -1.2654420137405396, 0.7239890694618225, -0.3761686384677887, 0.6599868535995483, 0.11909285187721252, -0.3611021041870117, -1.0302284955978394, -0.6239385604858398, -0.1568794548511505, -0.6746393442153931, 0.8475940227508545, -0.23824691772460938, -0.007695822976529598, -0.14113852381706238, 0.4126989245414734, -0.22506757080554962, -0.06246544420719147, -0.812879741191864, 0.04304776340723038, 0.2431344985961914, -0.249855175614357, -0.10749618709087372, -0.5499413013458252, -0.18422633409500122, -0.1223638579249382, 0.8255981802940369, -0.5012525320053101, 0.2544456422328949, 0.29705381393432617, -0.498359352350235, -0.30055245757102966, 0.5627404451370239, 0.781116783618927, 0.43678852915763855, 0.09931018948554993, 0.27290812134742737, 0.18071843683719635, -0.5852724313735962, 0.23168997466564178, -0.04087882488965988, -0.5078443884849548, 0.17703354358673096, 0.526466429233551, 0.814551055431366, 0.42550128698349, -0.16615252196788788, 0.4434877634048462, 0.13696829974651337, -0.21292710304260254, 0.0567048154771328, -0.11396030336618423, 0.18046019971370697, 0.27481716871261597, 0.2826186716556549, 0.17470963299274445, 0.0004555700870696455, -0.5628032088279724, 0.16663303971290588, 0.5120428800582886, -0.14749488234519958, -0.41849640011787415, 0.8831878304481506, 0.2728258967399597, 0.14648818969726562, 0.5882368087768555, -0.5173336863517761, -0.9611064791679382, 0.7431496381759644, 0.7767070531845093, 1.119179368019104, -0.48273688554763794, 0.477832555770874, 0.373344361782074, 0.4968090355396271, -0.4837244153022766, 0.32442253828048706, 0.5061283707618713, -0.8782134056091309, -0.7078908085823059, -0.2940819263458252, -0.09828642755746841, 0.19426073133945465, -0.4876141846179962, 0.3311605453491211, -0.3970654606819153, 0.08113768696784973, -0.2932657301425934, -0.5239989757537842, -0.3272632956504822, 0.18613004684448242, 0.3664990961551666, 0.46229252219200134, -0.9596704244613647, 0.9548527002334595, 0.7590384483337402, 0.0856972187757492, -0.8181811571121216, -0.08474533259868622, 0.49852117896080017, -0.7094736099243164, 0.6311503052711487, 0.22125668823719025, -0.31700000166893005, -0.25664398074150085, -0.31107082962989807, -0.5968563556671143, 0.8135374784469604, 0.7174969911575317, -0.7865026593208313, -0.21768051385879517, 0.020627500489354134, 0.3960786759853363, -0.34435176849365234, -0.17896850407123566, 0.5140982866287231, 0.17556999623775482, -0.14554664492607117, -1.0128265619277954, 0.017109334468841553, -0.19980530440807343, 0.14248961210250854, 0.46393799781799316, -0.31667864322662354, 1.367065668106079, -0.12164459377527237, -0.6008289456367493, 0.007443571463227272, 0.3098794221878052, -0.14736789464950562, 0.013781465590000153, 0.5003136396408081, 0.8377794623374939, 0.9066183567047119, -0.38607656955718994, 0.684790313243866, 0.20250967144966125, 0.7554381489753723, 1.2402536869049072, -0.3398905098438263, 0.6300978660583496, 0.02875681407749653, -0.3131307065486908, 0.5176082849502563, 0.3345284163951874, -0.05963979661464691, 0.4838707149028778, 0.032580334693193436, -0.5362939834594727, -0.35711267590522766, 0.12862081825733185, -0.2908916771411896, 0.28153979778289795, 0.28453171253204346, -0.3196518123149872, -0.5598955154418945, 0.09272373467683792, 0.15096625685691833, 0.24104659259319305, -0.8791874051094055, 0.6866776347160339, -0.25226256251335144, -0.5489998459815979, 0.5401175618171692, 0.30147743225097656, 0.8307249546051025, -0.4944273829460144, -0.026108544319868088, -0.4896261394023895, 0.7429956197738647, -0.36622703075408936, -0.49181148409843445, 0.26050809025764465, 0.17233045399188995, -0.4474695324897766, 0.16665177047252655, 1.2662651538848877, -1.0009651184082031, -0.5256861448287964, 0.5073032975196838, 0.2565186321735382, -0.27003294229507446, -0.4512307047843933, -0.3479593098163605, 0.1865396648645401, -0.04428496211767197, 0.25297823548316956, 0.16593724489212036, 0.23419217765331268, -0.17000256478786469, 0.4796060025691986, 0.42450442910194397, 0.029485618695616722, 0.2765796482563019, 0.3258282542228699, 0.6765322685241699, -0.5612666606903076, -0.8439914584159851, -1.0577707290649414, 0.7427393794059753, 0.20982645452022552, -0.004691267851740122, 0.5862128138542175, 0.30079442262649536, 1.1296634674072266, -0.3818380832672119, 0.7976765632629395, 0.311755508184433, 0.28134188055992126, -0.8374401330947876, 0.4442256689071655, -0.3620646595954895, 0.1606438159942627, -0.3610347509384155, -0.8662642240524292, -0.8870033025741577, 0.5103546977043152, -0.0906369611620903, -0.11502376198768616, 0.7294469475746155, 1.0010887384414673, 0.1612698882818222, -0.005477351602166891, 0.3466842472553253, 0.25914260745048523, 0.313546746969223, 0.8397501707077026, 0.5714672803878784, -0.4122627079486847, 0.31394973397254944, -0.05724931135773659, -0.1851203888654709, -0.473688542842865, -0.6580831408500671, -0.8102402091026306, -0.28099697828292847, -0.4401305615901947, -0.3480340242385864, 0.43936628103256226, 0.5655974745750427, 0.3113223612308502, -1.0380030870437622, -0.08765241503715515, -0.24618902802467346, 0.12556229531764984, -0.4638066589832306, -0.2006264477968216, 0.4504375755786896, -0.6509824395179749, -0.9222135543823242, 0.49159449338912964, 0.5689401030540466, 0.08907146006822586, 0.05221344903111458, 0.10217920690774918, -0.3212122321128845, -0.32920196652412415, 0.7244399189949036, 0.2677048444747925, -0.9203300476074219, -0.5725476741790771, 0.049062687903642654, -0.4567440152168274, 0.04331023618578911, 0.8879796266555786, -0.43337100744247437, 0.6556703448295593, 0.4671202301979065, 0.6703201532363892, 0.012354457750916481, 0.011488283053040504, 0.4303165078163147, -1.0520570278167725, 0.3041173219680786, 0.033754099160432816, 0.6733508706092834, 0.3784506022930145, -0.40723535418510437, 0.6726486086845398, 0.6774562001228333, -0.5485799312591553, -0.7105260491371155, 0.143941268324852, -0.6213983297348022, -0.3515021800994873, 1.141553521156311, -0.3281829357147217, -0.10111115872859955, -0.21594910323619843, -0.38096195459365845, 0.2181425243616104, -0.03126997500658035, 0.544903576374054, 1.1238371133804321, 0.2835930585861206, -0.0029142117127776146, -0.3027505874633789, 0.3948815166950226, 0.5308259129524231, -0.9196777939796448, 0.21887074410915375, 0.7152737379074097, 0.4230632483959198, 0.07365013659000397, 0.6804090142250061, -0.3034769892692566, 0.4898654818534851, -0.12530331313610077, 0.16161738336086273, 0.0029880721122026443, -0.5363004207611084, -0.7884515523910522, 0.05633958429098129, -0.07451045513153076, -0.5701416730880737 ]
http://arxiv.org/abs/2405.17799v1
http://arxiv.org/pdf/2405.17799v1
Exploring Activation Patterns of Parameters in Language Models
2024-05-28T03:49:54
2024-05-28T03:49:54
Yudong Wang, Damai Dai, Zhifang Sui
cs.LG
cs.LG, cs.CL
Most work treats large language models as black boxes without in-depth understanding of their internal working mechanism. In order to explain the internal representations of LLMs, we propose a gradient-based metric to assess the activation level of model parameters. Based on this metric, we obtain three preliminary findings. (1) When the inputs are in the same domain, parameters in the shallow layers will be activated densely, which means a larger portion of parameters will have great impacts on the outputs. In contrast, parameters in the deep layers are activated sparsely. (2) When the inputs are across different domains, parameters in shallow layers exhibit higher similarity in the activation behavior than deep layers. (3) In deep layers, the similarity of the distributions of activated parameters is positively correlated to the empirical data relevance. Further, we develop three validation experiments to solidify these findings. (1) Firstly, starting from the first finding, we attempt to configure different prune ratios for different layers, and find this method can benefit model pruning. (2) Secondly, we find that a pruned model based on one calibration set can better handle tasks related to the calibration task than those not related, which validate the second finding. (3) Thirdly, Based on the STS-B and SICK benchmark, we find that two sentences with consistent semantics tend to share similar parameter activation patterns in deep layers, which aligns with our third finding. Our work sheds light on the behavior of parameter activation in LLMs, and we hope these findings will have the potential to inspire more practical applications.
[ -0.0938766747713089, -0.875661313533783, 0.7545840740203857, 0.253307968378067, -0.43976324796676636, -0.20668381452560425, -0.30148977041244507, -0.3141169846057892, -0.038195665925741196, 0.3340182602405548, -0.31948351860046387, -0.42975473403930664, -0.5796828269958496, -0.020698942244052887, -0.6065519452095032, 0.7297940254211426, -0.19855627417564392, 0.2826088070869446, -0.23537029325962067, -0.05415290594100952, -0.2815687358379364, -0.5228612422943115, -0.844538152217865, -0.480132520198822, 0.6463420391082764, 0.07034380733966827, 0.5445094108581543, 0.6869642734527588, 0.3572676479816437, 0.33232003450393677, -0.27053606510162354, 0.010119464248418808, -0.5904485583305359, 0.3452708125114441, 0.23954853415489197, -0.43446892499923706, -0.19074270129203796, 0.11940790712833405, 0.9127905368804932, 1.112379550933838, -0.15707941353321075, 0.2666294276714325, 0.5309509634971619, 0.440854012966156, -0.5635209679603577, 0.08450213819742203, -0.6510578989982605, -0.11436387896537781, -0.09190303832292557, -0.33848828077316284, -0.3258209824562073, -0.16202570497989655, -0.11054983735084534, -0.12223939597606659, 0.1926647275686264, -0.18693660199642181, 0.9467495679855347, 0.18961484730243683, -0.5393409132957458, -0.15155698359012604, -0.769923746585846, 0.9671692848205566, -0.871770441532135, 0.43963971734046936, 0.30757075548171997, -0.05294777452945709, -0.22924698889255524, -0.6280816197395325, -0.17379723489284515, -0.6617707014083862, -0.37415122985839844, -0.05770989507436752, -0.09840091317892075, 0.08985703438520432, 0.5273817181587219, 0.37701231241226196, -0.3990384042263031, 0.41452980041503906, -0.4025420546531677, -0.22261299192905426, 0.5293987989425659, 0.23297317326068878, 0.34008440375328064, 0.08721400052309036, -0.4507574141025543, 0.16556189954280853, -0.7933517694473267, 0.2852138578891754, 0.5542852878570557, 0.32693183422088623, -0.17648983001708984, 0.6318327784538269, -0.08761328458786011, 0.7683382034301758, 0.06881766766309738, 0.0432874895632267, 0.198052316904068, -0.3488389849662781, -0.45482727885246277, -0.13356103003025055, 0.7640702724456787, 0.23209303617477417, 0.28769823908805847, -0.2908817231655121, -0.4712914228439331, -0.051035139709711075, 0.20057180523872375, -0.8681195378303528, 0.21356137096881866, 0.18672864139080048, -0.4230285882949829, -0.24166667461395264, 0.015876827761530876, -0.3821852505207062, -0.33595746755599976, -0.3744606077671051, 0.3839198648929596, -0.2726321518421173, -0.383366197347641, 0.34474292397499084, -0.055231973528862, 0.43085914850234985, 0.16038694977760315, -0.7558923363685608, 0.47440260648727417, 0.768032968044281, 0.6433680653572083, -0.17085091769695282, -0.38685789704322815, -0.4183483123779297, 0.027639098465442657, -0.4537202715873718, 0.41795432567596436, -0.7144613862037659, -0.09055933356285095, 0.19672517478466034, 0.04534046724438667, -0.1669803112745285, -0.638448178768158, 0.5033822655677795, -0.6402891278266907, 0.0484573058784008, -0.2537131905555725, -0.5128319263458252, -0.3176213800907135, 0.27389755845069885, -0.7128647565841675, 1.384070873260498, 0.03441110998392105, -0.45475804805755615, 0.45302289724349976, -0.3070775866508484, -0.2771608829498291, 0.03831624612212181, -0.25576773285865784, -0.3539403975009918, 0.4517677426338196, -0.07409609109163284, 0.6896530389785767, -0.5154229402542114, 0.27374541759490967, -0.23086808621883392, -0.3474630117416382, 0.6091593503952026, -0.4359165132045746, 0.8112110495567322, -0.18692998588085175, -0.24486692249774933, 0.09146326035261154, -0.7336131930351257, 0.049702923744916916, 0.15229226648807526, -0.4233473837375641, -0.3627564013004303, 0.049824029207229614, -0.2704433798789978, 0.17385871708393097, 0.17877648770809174, -0.425136536359787, 0.07713815569877625, -0.507387101650238, 0.5366020202636719, 0.5503771901130676, 0.5997264385223389, 0.5654641389846802, -0.248464897274971, 0.6635105609893799, 0.42918840050697327, -0.09399386495351791, -0.119407057762146, -0.43489915132522583, -0.7251530885696411, -0.3281936049461365, 0.1922837644815445, 0.08696407079696655, 0.01444314606487751, 0.4167703092098236, -0.16415594518184662, -0.4056040942668915, -0.5334599018096924, 0.43849602341651917, 0.4222671687602997, 0.44165024161338806, 0.17684680223464966, -0.48714619874954224, -0.2486666440963745, -1.124183177947998, -0.303266316652298, -0.04261856526136398, -0.1066434383392334, 0.315147340297699, 0.3681833744049072, 0.013424376957118511, 0.7615589499473572, -0.16246430575847626, -0.09989875555038452, -0.2725895941257477, 0.21270699799060822, 0.3989989161491394, 0.4078391194343567, 0.5849113464355469, -0.5974732637405396, -0.38676077127456665, -0.041922494769096375, -0.41132211685180664, -0.23786921799182892, -0.15342660248279572, -0.050722166895866394, -0.292489618062973, 0.7115739583969116, -0.5851286053657532, 0.29816344380378723, 0.5309928059577942, -0.035812053829431534, 0.35490596294403076, -0.07775718718767166, 0.012170697562396526, -0.6900375485420227, 0.07451283931732178, 0.3866574466228485, -0.05572948232293129, -1.1096584796905518, 0.11188236624002457, 0.09139296412467957, 0.056189559400081635, -0.538398802280426, 0.6785687208175659, -0.6445164680480957, -0.15152385830879211, -0.11572188138961792, 0.039900533854961395, 0.01366059947758913, 0.7141223549842834, -0.2133641093969345, 0.6813648343086243, 0.6401064991950989, -0.829454779624939, 0.23125842213630676, -0.365792453289032, -0.5993747115135193, 0.0748053565621376, -0.8448516726493835, 0.11043594032526016, -0.2535960376262665, -0.026944836601614952, -1.3206676244735718, 0.059325382113456726, 0.28332263231277466, -0.2865637242794037, 0.21076874434947968, -0.3717285990715027, -0.70263671875, 0.05359959229826927, -0.2972910404205322, 0.5961076021194458, 0.5915415287017822, -0.09986773878335953, 0.5378934741020203, 0.2213781625032425, 0.03025408461689949, -0.3523300886154175, -0.6386950612068176, -0.19456538558006287, -0.49783554673194885, -0.46399345993995667, 0.3914451003074646, -0.02095167338848114, -0.421564519405365, -0.07085950672626495, -0.14480790495872498, 0.0030467903707176447, 0.4114871025085449, 0.5328719019889832, -0.061494797468185425, -0.5476452708244324, -0.21615631878376007, 0.08520133793354034, -0.06853187084197998, 0.35499829053878784, -0.10094289481639862, 0.738365650177002, 0.17171235382556915, -0.5690760612487793, -0.5824029445648193, 0.2088683843612671, 0.5576255917549133, -0.42353519797325134, 0.7151280641555786, 0.45600882172584534, -0.3334251046180725, -0.30942460894584656, -0.5008368492126465, -0.2979786992073059, -0.5070093870162964, 0.351293683052063, -0.46946007013320923, -0.6133331656455994, 0.8955865502357483, -0.1954578310251236, 0.06347310543060303, 0.30303892493247986, 0.8259426951408386, -0.04774954542517662, 1.1404534578323364, 0.38643312454223633, 0.09774743765592575, 0.7108926177024841, -0.3976655602455139, 0.10170866549015045, -1.1235806941986084, -0.05012963339686394, -0.6127948760986328, -0.5648759603500366, -0.3253847658634186, -0.47670263051986694, 0.19501692056655884, 0.4988982677459717, -0.3057173490524292, 0.09089866280555725, -0.25939762592315674, 0.3426695764064789, 0.3127078115940094, 0.22416773438453674, -0.052976563572883606, 0.16401752829551697, -0.25570619106292725, -0.12257618457078934, -0.47732648253440857, -0.5108145475387573, 0.8345847725868225, 0.5832971930503845, 0.6537612676620483, 0.032156869769096375, 0.6285771727561951, 0.08374913781881332, 0.36722442507743835, -0.8214121460914612, 0.7375573515892029, -0.08220810443162918, -0.536402702331543, -0.28705930709838867, -0.15779909491539001, -1.1293387413024902, 0.26232072710990906, 0.08853786438703537, -0.7885275483131409, 0.308721661567688, 0.08859148621559143, -0.09030698984861374, -0.06290643662214279, -0.7783700227737427, 0.669853925704956, -0.35921770334243774, -0.5124480724334717, -0.2554266154766083, -0.25715431571006775, 0.19924309849739075, 0.018199792131781578, 0.05973105505108833, -0.30282333493232727, -0.3013949692249298, 0.6821449995040894, 0.02668130397796631, 1.3023747205734253, -0.22523808479309082, -0.39816758036613464, 0.18586914241313934, 0.31678757071495056, 0.620893657207489, -0.16051830351352692, -0.5097442269325256, 0.2114352434873581, -0.4546413719654083, -0.35764870047569275, -0.7691921591758728, 0.7269571423530579, -0.688091516494751, -0.7975369095802307, -0.018165571615099907, -0.3777730464935303, -0.32957571744918823, 0.1848606914281845, -0.25721216201782227, 0.5604593753814697, -0.019610658288002014, 0.419956237077713, 0.4376736581325531, 0.029513781890273094, 0.27826306223869324, 0.5877500772476196, -0.14541038870811462, -0.0018087946809828281, 0.6601211428642273, 0.046692632138729095, 0.6471431255340576, 0.38774994015693665, 0.14440304040908813, 0.03342988342046738, -1.0359588861465454, -0.3065463900566101, 0.4332791268825531, -0.8766666054725647, -0.014099440537393093, -0.4915418326854706, -0.5412058234214783, -0.1270669549703598, 0.03353862464427948, 0.022444836795330048, -0.19346435368061066, -0.5450103282928467, -0.32656532526016235, 0.08024480938911438, 0.6022732853889465, 0.32716619968414307, 0.4243740141391754, -0.564369261264801, 0.14838907122612, 0.17044340074062347, 0.31268972158432007, 0.2120540887117386, -0.782343864440918, -0.3620893061161041, 0.11624845862388611, -0.008198809809982777, -1.1133567094802856, 0.2828298807144165, 0.1897081732749939, 1.0313678979873657, 0.5149036645889282, -0.3543947637081146, 0.6823880672454834, -0.5753024220466614, 0.9927093982696533, -0.07032115757465363, -0.7988337874412537, 0.2551864683628082, -0.2359093278646469, 0.09546533226966858, 0.3655467927455902, 0.487275630235672, -0.3930197060108185, -0.837601900100708, -0.5455113649368286, -0.8316396474838257, 0.5661236047744751, -0.09365639835596085, 0.7529417872428894, 0.20728230476379395, 0.6821551322937012, 0.16252481937408447, 0.16034892201423645, -0.9472584128379822, -0.3863905966281891, 0.23225605487823486, -0.05839147791266441, -0.01562965102493763, -0.6765732169151306, -0.31089240312576294, -0.16056828200817108, 0.3506060242652893, -0.028016753494739532, 0.20984341204166412, -0.17679253220558167, -0.2995912730693817, -0.2938981056213379, 0.16411128640174866, 0.6272822618484497, 0.8222841620445251, -0.1505378931760788, 0.19838666915893555, 0.1072079986333847, -0.28465786576271057, 0.07164957374334335, -0.19955269992351532, -0.17131875455379486, 0.0037418536376208067, 0.6933467388153076, 0.9150913953781128, 0.5264081358909607, -0.2290395200252533, 0.35971781611442566, 0.1283804327249527, -0.25832074880599976, -0.009484191425144672, 0.4607189893722534, -0.05109097808599472, 0.06094120070338249, 0.3297359347343445, -0.13950733840465546, -0.09588983654975891, -0.5006895661354065, 0.04294306039810181, 0.7852606177330017, -0.5431983470916748, -0.5144433379173279, 0.4363676905632019, 0.229451522231102, -0.40701061487197876, 0.44244498014450073, -0.11210327595472336, -0.5533448457717896, 0.6866255402565002, 0.6007762551307678, 0.9408828020095825, -0.06819882243871689, 0.0922970324754715, 0.4913087487220764, 0.4973762333393097, 0.07702945172786713, 0.2858580946922302, -0.15519554913043976, -0.9396817088127136, -0.6179475784301758, -0.6973699927330017, 0.06941581517457962, 0.44635704159736633, -0.7255713939666748, 0.3406309485435486, -0.42961859703063965, -0.0039825597777962685, 0.12188971042633057, -0.04054548218846321, -0.6813201308250427, 0.1637275218963623, 0.11995260417461395, 0.8227706551551819, -1.1801130771636963, 0.9042423367500305, 0.7275208830833435, -0.4323725998401642, -0.7535404562950134, 0.13787919282913208, -0.07425753027200699, -1.1367608308792114, 1.0092684030532837, 0.07152605801820755, -0.10209868103265762, 0.10873743146657944, -0.5193043351173401, -1.0195802450180054, 1.026257038116455, 0.40377551317214966, -0.39999160170555115, -0.003147686365991831, 0.297985702753067, 0.7318349480628967, -0.5449199080467224, 0.24968482553958893, 0.4432295262813568, 0.5550026893615723, -0.04055221751332283, -0.7179692387580872, 0.31159090995788574, -0.1794273406267166, 0.13264763355255127, 0.3058359622955322, -0.34083110094070435, 0.8414485454559326, 0.05701394006609917, -0.5193652510643005, -0.03530063107609749, 0.5550611019134521, 0.07288718223571777, -0.024621734395623207, 0.6467829942703247, 0.33461853861808777, 0.41870003938674927, 0.08767838031053543, 1.0920804738998413, -0.6183679103851318, 0.1417553722858429, 0.7678709030151367, -0.3030567467212677, 0.7375714778900146, 0.6130185723304749, -0.15970861911773682, 0.5712754130363464, 0.6388956904411316, 0.05206137150526047, 0.34238916635513306, 0.29290708899497986, -0.1828574389219284, -0.2701925039291382, -0.15751776099205017, -0.23385170102119446, 0.09523928165435791, 0.6700180768966675, -0.6209172606468201, -0.17428219318389893, -0.18801374733448029, -0.03902559354901314, -0.16499637067317963, -0.18879729509353638, 0.8684481978416443, 0.2338055819272995, -0.7280581593513489, 0.5575870275497437, 0.1771121472120285, 0.27689364552497864, -0.7760791182518005, 0.09394081681966782, -0.2694852948188782, -0.040825020521879196, -0.15315578877925873, -0.8436670303344727, -0.1305544674396515, -0.1530153602361679, -0.18669797480106354, -0.6084586977958679, 0.7021200060844421, -0.5152775645256042, -0.45415985584259033, 0.4936031401157379, 0.5018483400344849, 0.03909805789589882, 0.13313451409339905, -0.8567996621131897, 0.31197357177734375, -0.0010526487603783607, -0.5399133563041687, 0.4007743299007416, 0.5900595784187317, 0.055993422865867615, 0.49910616874694824, 0.7999051213264465, 0.5082520842552185, 0.34300413727760315, 0.4643344581127167, 0.8772128224372864, -0.5941705703735352, -0.17556335031986237, -0.9521161913871765, 0.7207143902778625, -0.021632224321365356, -0.31062203645706177, 0.87312912940979, 0.48345747590065, 0.674203634262085, 0.2061345875263214, 0.3189239501953125, 0.2988988161087036, 0.2932206690311432, -0.7302713990211487, 0.23547659814357758, -0.758039653301239, 0.6191526055335999, 0.10831771045923233, -1.1025831699371338, -0.3751097023487091, 0.3011017143726349, -0.4800240993499756, 0.31210923194885254, 0.6745967864990234, 1.1568331718444824, -0.2077905386686325, -0.4247245192527771, 0.28170275688171387, 0.44114917516708374, 0.2945123314857483, 0.20208868384361267, 1.088191270828247, -0.16277389228343964, 0.2740192115306854, -0.21597787737846375, -0.09702980518341064, -0.39974579215049744, -0.8658872842788696, -0.8664555549621582, -0.7221863269805908, -0.47576114535331726, -0.406594455242157, -0.1803930401802063, 0.6257752180099487, 0.7627353072166443, -0.6622142791748047, -0.45435822010040283, 0.06988045573234558, 0.05764121189713478, -0.487807035446167, -0.21969716250896454, 0.22260682284832, -0.45662766695022583, -0.67881178855896, 0.39617258310317993, 0.39840826392173767, -0.010545846074819565, -0.6814185380935669, 0.025405410677194595, -0.14269639551639557, 0.1330556869506836, 0.39004620909690857, 0.10926178097724915, -0.807125985622406, -0.1555386334657669, -0.18721574544906616, -0.4311491847038269, 0.08610440045595169, 1.276655912399292, -0.6485645174980164, 0.09359749406576157, 0.5854768753051758, 0.5624127984046936, 0.3791496157646179, -0.02170434780418873, 0.6631646156311035, -1.0481905937194824, 0.24217231571674347, 0.24163316190242767, 0.46137964725494385, 0.12675638496875763, -0.1283228099346161, 0.224899560213089, -0.20137031376361847, -0.3871539831161499, -1.208290934562683, 0.3498862683773041, -0.8632364869117737, -0.07417263090610504, 1.5660898685455322, 0.09983284026384354, -0.24415458738803864, 0.08347461372613907, -0.04395325109362602, -0.14432621002197266, -0.1727287471294403, 0.4927442967891693, 0.8226441740989685, -0.08348286896944046, -0.23107057809829712, -0.7345753312110901, 0.5790725946426392, 0.6449459195137024, -0.35442495346069336, 0.22148102521896362, 0.2999669909477234, 0.21942248940467834, 0.11232933402061462, 0.4597545862197876, -0.04361732676625252, 0.08012095093727112, -0.3382444679737091, -0.3777053952217102, -0.015748251229524612, -0.007997915148735046, -0.6227571368217468, 0.27180153131484985, 0.32088908553123474, -0.12627160549163818 ]
http://arxiv.org/abs/2405.17767v1
http://arxiv.org/pdf/2405.17767v1
Linguistic Collapse: Neural Collapse in (Large) Language Models
2024-05-28T02:46:11
2024-05-28T02:46:11
Robert Wu, Vardan Papyan
cs.LG
cs.LG, cs.CL, stat.ML, 68T07 (Primary) 68T50 (Secondary), I.2.6; I.2.7
Neural collapse ($\mathcal{NC}$) is a phenomenon observed in classification tasks where top-layer representations collapse into their class means, which become equinorm, equiangular and aligned with the classifiers. These behaviors -- associated with generalization and robustness -- would manifest under specific conditions: models are trained towards zero loss, with noise-free labels belonging to balanced classes, which do not outnumber the model's hidden dimension. Recent studies have explored $\mathcal{NC}$ in the absence of one or more of these conditions to extend and capitalize on the associated benefits of ideal geometries. Language modeling presents a curious frontier, as \textit{training by token prediction} constitutes a classification task where none of the conditions exist: the vocabulary is imbalanced and exceeds the embedding dimension; different tokens might correspond to similar contextual embeddings; and large language models (LLMs) in particular are typically only trained for a few epochs. This paper empirically investigates the impact of scaling the architectures and training of causal language models (CLMs) on their progression towards $\mathcal{NC}$. We find that $\mathcal{NC}$ properties that develop with scaling are linked to generalization. Moreover, there is evidence of some relationship between $\mathcal{NC}$ and generalization independent of scale. Our work therefore underscores the generality of $\mathcal{NC}$ as it extends to the novel and more challenging setting of language modeling. Downstream, we seek to inspire further research on the phenomenon to deepen our understanding of LLMs -- and neural networks at large -- and improve existing architectures based on $\mathcal{NC}$-related properties.
[ -0.4254377782344818, -0.7381522059440613, 0.28111961483955383, -0.02297542244195938, 0.06635010987520218, 0.03299475088715553, -0.7115944027900696, -0.27022966742515564, 0.1545976996421814, 0.45096659660339355, -0.22184491157531738, -0.4335509240627289, -0.7993848323822021, -0.03278888389468193, -0.7150492668151855, 0.9846539497375488, 0.3052654266357422, 0.02210158295929432, -0.2372467964887619, -0.16512703895568848, -0.6366507411003113, -0.8085107803344727, -0.9185607433319092, -0.5130264163017273, 0.5571293234825134, 0.07517581433057785, 0.7876956462860107, 0.8133442997932434, 0.2515923082828522, 0.41228410601615906, -0.4783581793308258, -0.4187496602535248, -0.6386428475379944, 0.25126466155052185, 0.0828598141670227, -0.9790382385253906, -0.35839906334877014, 0.01777435839176178, 0.852179765701294, 1.2978252172470093, -0.24365286529064178, -0.166007861495018, 0.23066161572933197, 0.6744691729545593, -0.5031422972679138, 0.2535187304019928, -0.6648497581481934, 0.005334711167961359, 0.05357499048113823, -0.18421213328838348, -0.4956612288951874, -0.1632360965013504, 0.2268691211938858, -0.3658617436885834, 0.23196901381015778, -0.004632835742086172, 0.8809552788734436, 0.1298743486404419, -0.48998674750328064, -0.15942999720573425, -0.8723735213279724, 0.7995465397834778, -0.6390839219093323, 0.41511407494544983, 0.28240272402763367, 0.41349342465400696, -0.1004209890961647, -0.5175109505653381, -0.3042128086090088, -0.5135498046875, 0.019573641940951347, -0.2179524451494217, -0.29445186257362366, 0.2525065243244171, 0.2738088071346283, 0.6403111815452576, -0.38688597083091736, 0.6064996719360352, -0.5200452208518982, -0.23810942471027374, 0.13031406700611115, 0.2785666882991791, 0.787922203540802, 0.031111299991607666, -0.13434797525405884, -0.006459847092628479, -1.0284194946289062, -0.20244741439819336, 0.40954580903053284, 0.6828291416168213, -0.30385568737983704, 0.3201431632041931, -0.03209604695439339, 0.8202511668205261, -0.08649778366088867, -0.02665553241968155, -0.07974884659051895, -0.41815948486328125, -0.19995196163654327, 0.010528472252190113, 0.7398884296417236, 0.16400861740112305, 0.38555288314819336, -0.33268535137176514, 0.0331621952354908, 0.08565148711204529, 0.1307234764099121, -0.5492669939994812, -0.0128764808177948, 0.004585564136505127, -0.5080662369728088, -0.35493603348731995, -0.34104833006858826, -0.3388011157512665, -0.2773491442203522, -0.6473645567893982, 0.07296627014875412, -0.3555213510990143, -0.6847583651542664, 0.08626564592123032, 0.12608563899993896, 0.25363078713417053, 0.21820645034313202, -1.1172202825546265, 0.48205018043518066, 0.7132654190063477, 1.071200966835022, -0.08650359511375427, -0.36827608942985535, -0.05276709794998169, -0.3791130483150482, -0.4385770261287689, 0.6003589034080505, -0.23901040852069855, -0.09588247537612915, 0.19760556519031525, -0.051839251071214676, -0.20641863346099854, -0.5499403476715088, 0.35578975081443787, -0.5177587270736694, -0.02248115837574005, -0.233957901597023, -0.37774857878685, -0.27888980507850647, 0.4737647473812103, -0.7753871083259583, 0.5275530219078064, -0.18472564220428467, -0.7103961110115051, 0.3732791244983673, -0.23807267844676971, -0.011078541167080402, -0.08928746730089188, -0.2602306604385376, -0.15321069955825806, 0.4090753495693207, -0.24951982498168945, 0.37424078583717346, -0.7571662068367004, 0.3971376121044159, -0.46931466460227966, -0.21080215275287628, 0.16114012897014618, -0.47391071915626526, 0.9450247883796692, -0.13208113610744476, -0.29927143454551697, -0.02602411061525345, -0.7235541343688965, 0.12869484722614288, 0.09451331943273544, -0.3910090923309326, -0.5166552662849426, 0.11814673990011215, -0.08542344719171524, 0.4285116195678711, -0.000680516182910651, -0.2524406313896179, 0.14743588864803314, -0.7007644176483154, 0.673388659954071, 0.5794298648834229, -0.13702644407749176, 0.6851661205291748, -0.19471198320388794, 0.5229496359825134, 0.033124469220638275, -0.007627159357070923, 0.03159264847636223, -0.1821558028459549, -1.0557717084884644, 0.05330952629446983, 0.5086318254470825, 0.26616212725639343, -0.6148746609687805, 0.242253839969635, -0.5616612434387207, -0.35150012373924255, -0.004496477544307709, -0.090232253074646, 0.4695686399936676, 0.22022444009780884, 0.14948749542236328, -0.1864122599363327, -0.47071266174316406, -1.056182861328125, -0.10243722051382065, -0.20392893254756927, -0.024051370099186897, -0.08208075165748596, 0.3740471601486206, -0.043327365070581436, 0.6862260699272156, -0.26921671628952026, -0.30117353796958923, -0.5381230115890503, 0.13731810450553894, 0.2444756031036377, 0.3465721607208252, 0.5713628530502319, -0.716227114200592, -0.07725512981414795, 0.15187124907970428, -0.6544918417930603, -0.012257316149771214, -0.173406720161438, 0.26803848147392273, 0.29743653535842896, 0.813092052936554, -0.2767949104309082, 0.5383561253547668, 0.7722187042236328, -0.31364551186561584, 0.8598878383636475, -0.1352098435163498, -0.1786903738975525, -1.0006380081176758, -0.03863690793514252, -0.24793003499507904, 0.2554675340652466, -0.9555986523628235, -0.006747534032911062, -0.277406245470047, 0.08189182728528976, -0.4961550533771515, 0.3062887191772461, -0.7579060196876526, -0.2652500569820404, -0.48342958092689514, 0.3605884313583374, -0.3344910442829132, 0.5361536145210266, -0.17112195491790771, 0.2889449894428253, 0.7337753772735596, -0.8675355911254883, -0.06436935812234879, 0.019090548157691956, -0.06718049198389053, 0.42574262619018555, -0.7524315714836121, -0.1244359239935875, -0.0450638122856617, 0.09835612773895264, -0.8933578133583069, -0.05415940657258034, -0.3339677155017853, -0.5289285182952881, 0.5881809592247009, -0.17705495655536652, -0.5977262854576111, -0.17149077355861664, -0.04958970472216606, 0.6571836471557617, 0.09234348684549332, -0.3919006288051605, 0.4016018807888031, 0.29847535490989685, 0.13832275569438934, -0.47711727023124695, -1.1314789056777954, 0.3599955141544342, -0.13033390045166016, -0.603659451007843, -0.01737247221171856, -0.0447259247303009, -0.49416694045066833, -0.013706852681934834, 0.12761057913303375, -0.2187449187040329, 0.24625255167484283, 0.3628847897052765, 0.28079113364219666, -0.5274931788444519, 0.21887357532978058, 0.11048949509859085, -0.04709123075008392, 0.1991644948720932, -0.32388898730278015, 0.9001553654670715, -0.5946269035339355, -0.20868372917175293, -0.2873029410839081, 0.2042357325553894, 0.8568690419197083, -0.06425002217292786, 1.1841150522232056, 0.2311403602361679, -0.4240877628326416, -0.14697837829589844, -0.41160714626312256, -0.2283594161272049, -0.4489676058292389, 0.5332644581794739, -0.15926145017147064, -1.3147268295288086, 0.8664722442626953, -0.01976548135280609, -0.0752243921160698, 0.6774021983146667, 0.6682863235473633, 0.49307894706726074, 0.8494641780853271, 0.9462595582008362, 0.08625928312540054, 0.4134559631347656, -0.47714319825172424, 0.297509104013443, -1.0708121061325073, -0.13716675341129303, -0.6386372447013855, -0.4057721793651581, -0.8316500186920166, -0.19723694026470184, 0.149597629904747, 0.20082901418209076, -0.31927016377449036, 0.43511950969696045, -0.4624999761581421, 0.5417097210884094, 0.2327808141708374, -0.14520157873630524, 0.22238017618656158, -0.08566135913133621, -0.3865370452404022, -0.1793837696313858, -0.875877320766449, -0.14913290739059448, 1.1027907133102417, 0.38189697265625, 0.5007375478744507, 0.2059868723154068, 0.4903303384780884, -0.11101096868515015, 0.31814393401145935, -1.034775972366333, 0.5544182062149048, -0.22531180083751678, -0.539966881275177, -0.3344357907772064, -0.6109428405761719, -1.118225336074829, 0.3301434814929962, -0.24341928958892822, -0.816988468170166, 0.6049244999885559, -0.012192029505968094, -0.17142407596111298, 0.5080132484436035, -0.4438077509403229, 0.479310542345047, -0.1317916363477707, -0.05688684061169624, -0.20990557968616486, -0.6254850029945374, 0.7598083019256592, -0.004189880099147558, 0.32977810502052307, -0.02202170342206955, -0.09448667615652084, 0.5823764801025391, -0.5140576362609863, 1.123267650604248, 0.12681140005588531, -0.09038063883781433, 0.1390368789434433, 0.3677234947681427, -0.013552009128034115, -0.31344297528266907, 0.20584940910339355, 0.49092352390289307, -0.2728011906147003, -0.2690871059894562, -0.6596100926399231, 0.9994794726371765, -0.738243043422699, -0.43429526686668396, -0.4715029299259186, -0.6152276992797852, -0.16550026834011078, 0.32545924186706543, 0.3265925347805023, 0.6465222239494324, -0.17570312321186066, 0.4864327907562256, 0.6418028473854065, -0.41195225715637207, 0.6512829661369324, 0.3172883987426758, -0.39456093311309814, -0.6190035343170166, 0.610607922077179, 0.4024633467197418, 0.8967828154563904, 0.3068782091140747, 0.2625935673713684, -0.13785497844219208, -0.7491366863250732, 0.043375104665756226, 0.2927651107311249, -0.7616214156150818, -0.2182346135377884, -0.47918829321861267, -0.515551745891571, -0.272087037563324, -0.19079352915287018, -0.4263772964477539, -0.7032379508018494, -0.32453760504722595, -0.23221342265605927, -0.12291847914457321, 0.8787314891815186, -0.28927597403526306, 0.40148863196372986, -0.4377038776874542, -0.18403111398220062, 0.17159397900104523, 0.2868250608444214, 0.44759857654571533, -0.8087082505226135, -0.47618749737739563, -0.05399131774902344, -0.1929110735654831, -0.6051393151283264, 0.4092613160610199, 0.45784732699394226, 0.4585765302181244, 0.6007763743400574, -0.2556021213531494, 0.4068876802921295, -0.5571499466896057, 0.6554142832756042, 0.619926929473877, -0.8951051831245422, 0.15507473051548004, -0.6131076812744141, 0.6370254158973694, 0.4840831756591797, 0.269946426153183, -0.6806385517120361, -0.6587280631065369, -0.5708571076393127, -1.0544973611831665, 0.48404383659362793, 0.1432105451822281, 0.2834315598011017, -0.22523729503154755, 0.5253911018371582, -0.13606122136116028, -0.03392606973648071, -0.8396150469779968, -0.3769603967666626, 0.024166300892829895, 0.385267049074173, -0.12655293941497803, -0.49226680397987366, 0.07492893189191818, -0.33848437666893005, 0.18051201105117798, -0.12955161929130554, 0.3140459358692169, -0.13172610104084015, -0.00981835275888443, 0.16218096017837524, 0.332005113363266, 0.9979994893074036, 0.6939935684204102, 0.149874746799469, 0.33519279956817627, 0.2145928144454956, -0.3915839195251465, 0.13869549334049225, -0.48030194640159607, -0.11180578917264938, -0.19637203216552734, 0.623508095741272, 0.943748414516449, 0.8534370064735413, -0.26038700342178345, 0.4245645999908447, -0.14653702080249786, -0.36518922448158264, -0.3769913613796234, -0.11221194267272949, 0.1321156769990921, -0.09936366230249405, 0.31109127402305603, 0.2384052872657776, 0.1334674060344696, -0.7216310501098633, 0.2425568699836731, 0.2069789618253708, -0.4247875213623047, -0.6050524711608887, 0.6720845699310303, -0.15290994942188263, -0.089405857026577, 0.7583105564117432, 0.01137786079198122, -0.6967794895172119, 0.6488702297210693, 0.8648028373718262, 1.1733437776565552, -0.2754276692867279, 0.20421163737773895, 0.6214250922203064, 0.6774064898490906, -0.25257351994514465, -0.2584109604358673, 0.1332762986421585, -0.6677080988883972, -0.741064727306366, -0.8058052062988281, -0.1534709930419922, -0.0790828987956047, -0.8493865132331848, 0.2915002405643463, -0.7264959812164307, -0.2439793348312378, -0.3444806635379791, -0.3608672320842743, -0.4502274990081787, 0.1324007213115692, 0.2761083245277405, 0.8678703308105469, -0.8820429444313049, 0.5886594653129578, 0.2567022740840912, -0.45289304852485657, -0.7915590405464172, -0.05565886199474335, 0.13257472217082977, -0.5584481954574585, 0.9387021064758301, 0.24121491611003876, -0.07382301241159439, -0.15208326280117035, -0.5459990501403809, -1.1536228656768799, 0.996375560760498, 0.6746330261230469, -0.4525549113750458, -0.38829663395881653, 0.44340085983276367, 0.930743932723999, -0.40462160110473633, 0.251360684633255, 0.6214269995689392, 0.2577087879180908, 0.22935883700847626, -1.0793571472167969, 0.18418456614017487, 0.005154414568096399, 0.2658344805240631, 0.5255185961723328, -0.6667141914367676, 1.098045825958252, -0.17581361532211304, -0.3903426229953766, -0.00296454387716949, 0.6094067692756653, -0.03625873848795891, -0.18554647266864777, 0.4491109549999237, 0.8384398818016052, 0.4171673059463501, -0.2902631461620331, 1.0944850444793701, -0.3427785634994507, 0.44024062156677246, 1.1226739883422852, 0.42240121960639954, 0.9255756735801697, 0.08998987823724747, -0.08314886689186096, 0.6072476506233215, 0.47931063175201416, 0.31048986315727234, 0.2344963550567627, 0.6345002055168152, -0.022159507498145103, -0.2539546489715576, -0.16772675514221191, -0.30066755414009094, 0.6377794146537781, 0.5742392539978027, -0.35515689849853516, -0.4727327525615692, 0.10288526862859726, 0.33228597044944763, 0.06048392876982689, -0.5763189196586609, 0.5438893437385559, 0.4355265200138092, -0.3409097492694855, 1.0861800909042358, -0.3373281955718994, 0.5425556302070618, -0.5165132284164429, 0.1762131005525589, -0.23258762061595917, 0.06093515828251839, -0.21319235861301422, -0.3075973093509674, 0.6790078282356262, -0.4250042736530304, -0.2729026675224304, -0.11896061897277832, 0.44627299904823303, -0.5829076766967773, -0.3118188977241516, 0.7064628601074219, 0.2838905453681946, 0.1844414621591568, -0.049597933888435364, -0.5047504901885986, 0.37260183691978455, -0.25169602036476135, -0.029506249353289604, 0.6048415303230286, 0.39783939719200134, 0.016902275383472443, 0.733421266078949, 0.5756268501281738, 0.31344762444496155, 0.27131375670433044, 0.026016926392912865, 0.9579458236694336, -0.5199047923088074, -0.2579379379749298, -0.8696020245552063, 0.3329542875289917, 0.08922163397073746, -0.3369811773300171, 0.7637119293212891, 0.36353787779808044, 0.7329578995704651, 0.15204046666622162, 0.39679253101348877, -0.043319400399923325, 0.03314497321844101, -0.44484201073646545, 1.031934380531311, -0.5861193537712097, 0.24956828355789185, -0.05004989728331566, -0.9472305178642273, -0.6817968487739563, 0.0011260000756010413, -0.5483834147453308, 0.05706806853413582, 1.0581475496292114, 0.48660993576049805, 0.2953093349933624, -0.3813863694667816, 0.7327478528022766, 0.5815966129302979, 0.16613614559173584, 0.5050970911979675, 0.5688405632972717, -0.20841757953166962, 0.5708813071250916, 0.0008565398748032749, -0.3290133476257324, -0.07835204154253006, -0.6532959938049316, -1.0923748016357422, -0.8157193064689636, -0.3566378057003021, -0.4071362018585205, -0.1525840163230896, 0.5109960436820984, 0.5108371376991272, -0.7921234965324402, -0.3172212839126587, -0.35771211981773376, 0.16455699503421783, -0.09690740704536438, -0.23572564125061035, 0.36529281735420227, -0.6242744326591492, -0.5775119066238403, 0.2656037509441376, 0.41907212138175964, 0.029376564547419548, -0.6897038817405701, 0.21949760615825653, -0.16771771013736725, 0.06416215747594833, 0.6118417382240295, 0.6000500321388245, -0.6457342505455017, -0.11272280663251877, -0.05094977095723152, -0.00878880824893713, -0.03344440460205078, 0.8540933132171631, -0.474196195602417, 0.5024782419204712, 0.47434982657432556, 0.6647883057594299, 0.015601481311023235, -0.5197320580482483, 0.8308233618736267, -0.6051620244979858, 0.19458381831645966, 0.24626608192920685, 0.398279070854187, 0.3740858733654022, -0.12666870653629303, 0.20466995239257812, 0.17299234867095947, -0.7123000621795654, -1.0127912759780884, 0.4314478933811188, -0.7767966389656067, -0.11193083971738815, 1.1496152877807617, 0.05194254592061043, -0.4840097725391388, -0.06055087968707085, 0.2209686040878296, 0.03229992464184761, -0.03163088858127594, 0.7246652245521545, 0.9288128018379211, -0.020652933046221733, -0.1815459281206131, -0.7221469879150391, 0.41068753600120544, 0.3242844045162201, -0.4998628795146942, 0.20701193809509277, 0.441731721162796, 0.2923066318035126, 0.4239028990268707, 0.22493243217468262, -0.3048718571662903, 0.1890268176794052, 0.009522509761154652, 0.1977880746126175, 0.12840943038463593, -0.3997753858566284, -0.7002645134925842, 0.3669999837875366, 0.20036858320236206, 0.12468519061803818 ]
http://arxiv.org/abs/2405.17764v2
http://arxiv.org/pdf/2405.17764v2
On the Sequence Evaluation based on Stochastic Processes
2024-05-28T02:33:38
2024-06-15T04:08:53
Tianhao Zhang, Zhexiao Lin, Zhecheng Sheng, Chen Jiang, Dongyeop Kang
cs.CL
cs.CL, cs.AI, math.ST, stat.TH
Modeling and analyzing long sequences of text is an essential task for Natural Language Processing. Success in capturing long text dynamics using neural language models will facilitate many downstream tasks such as coherence evaluation, text generation, machine translation and so on. This paper presents a novel approach to model sequences through a stochastic process. We introduce a likelihood-based training objective for the text encoder and design a more thorough measurement (score) for long text evaluation compared to the previous approach. The proposed training objective effectively preserves the sequence coherence, while the new score comprehensively captures both temporal and spatial dependencies. Theoretical properties of our new score show its advantages in sequence evaluation. Experimental results show superior performance in various sequence evaluation tasks, including global and local discrimination within and between documents of different lengths. We also demonstrate the encoder achieves competitive results on discriminating human and AI written text.
[ 0.05646822601556778, -0.7944992780685425, 0.7508057951927185, 0.21942001581192017, -0.2821016311645508, -0.12632717192173004, -0.5212034583091736, -0.49396517872810364, 0.11156623810529709, 0.17474660277366638, -0.35673436522483826, -0.47695040702819824, -0.7604958415031433, 0.21014103293418884, -0.5740863084793091, 1.050724983215332, -0.23405276238918304, -0.09454472362995148, -0.05398724228143692, -0.035217951983213425, -0.2470678687095642, -0.38127562403678894, -0.874664843082428, -0.36309900879859924, 0.5663077235221863, -0.22423742711544037, 0.6386268138885498, 0.5127069354057312, 0.5731092095375061, 0.31913986802101135, 0.08215942978858948, -0.07151109725236893, -0.2704552710056305, 0.34315332770347595, -0.1758798062801361, -0.30097126960754395, -0.16608811914920807, -0.1319035291671753, 0.9293581247329712, 0.6315204501152039, -0.20777522027492523, 0.06562982499599457, 0.25315380096435547, 0.6820123791694641, -0.27831047773361206, -0.0914929211139679, 0.06587744504213333, 0.27427372336387634, -0.09181643277406693, -0.4547104835510254, -0.43069952726364136, -0.6005145311355591, 0.30262526869773865, -0.12237066775560379, 0.26017796993255615, -0.18590158224105835, 0.7133001089096069, -0.002171438653022051, -0.3450648784637451, -0.597734808921814, -0.7417083382606506, 0.8663288950920105, -0.6476505398750305, 0.4242924451828003, 0.18304376304149628, 0.33962494134902954, -0.270053893327713, -0.4713832437992096, -0.4842526614665985, -0.27881333231925964, 0.32543638348579407, 0.10891982913017273, 0.2678608298301697, 0.049880772829055786, 0.08546407520771027, 0.5168240666389465, -0.669498085975647, 0.14669394493103027, -0.2455763965845108, -0.025657810270786285, 1.003604769706726, 0.22988492250442505, 0.12317391484975815, -0.12287091463804245, -0.31725943088531494, -0.06280537694692612, 0.14398890733718872, 0.1862213909626007, 0.5656812787055969, 0.2917425036430359, -0.3831435739994049, 0.46348556876182556, -0.007907161489129066, 0.5735242366790771, -0.0027083572931587696, -0.11519913375377655, 0.13965193927288055, -0.035384319722652435, -0.28643324971199036, 0.06583765894174576, 1.1537892818450928, 0.0018776321085169911, 0.09151630848646164, -0.33239468932151794, -0.3046189546585083, 0.00771418958902359, 0.20816199481487274, -0.7325964570045471, 0.21441593766212463, 0.18160288035869598, -0.6016605496406555, -0.2200721651315689, -0.04316079616546631, -0.9484738111495972, -0.1676541268825531, -0.46235570311546326, 0.4514841139316559, -0.7479890584945679, 0.006852872669696808, 0.35217538475990295, -0.1718946248292923, 0.017632655799388885, 0.33862873911857605, -0.9314571022987366, 0.3647875189781189, 0.7606155276298523, 0.9935871958732605, -0.49896034598350525, -0.3602350354194641, -0.3443852961063385, -0.33073270320892334, -0.4335056245326996, 0.4376501441001892, -0.7483677268028259, -0.12138276547193527, 0.09050528705120087, -0.1768532395362854, -0.1416158825159073, -0.25116339325904846, 0.5174382328987122, -0.7870034575462341, 0.29888832569122314, 0.28667765855789185, -0.8269319534301758, -0.24892593920230865, 0.2349797934293747, -0.7140170335769653, 1.230153203010559, -0.03126268833875656, -0.5505375266075134, 0.48197150230407715, -0.644681453704834, -0.5130805969238281, -0.13355809450149536, 0.02298920229077339, -0.38526514172554016, 0.24588847160339355, -0.10221085697412491, 0.31621643900871277, -0.27700644731521606, 0.5291168689727783, -0.2804770767688751, -0.684816300868988, 0.23487387597560883, -0.809206485748291, 0.6550746560096741, 0.20583191514015198, -0.30647262930870056, 0.24710023403167725, -0.9080033898353577, -0.04982495680451393, -0.3156217038631439, -0.82986980676651, -0.22762401401996613, 0.15191049873828888, -0.06586791574954987, 0.11219815164804459, 0.19888697564601898, -0.35873275995254517, 0.005206721369177103, -0.5834292769432068, 0.20675364136695862, 0.49138039350509644, 0.221393421292305, 0.7203620672225952, -0.3508104383945465, 0.352342426776886, -0.11130820959806442, 0.04880642145872116, -0.3669074773788452, -0.42007261514663696, -0.7018972039222717, -0.4244973361492157, 0.2683027386665344, 0.4995598793029785, -0.3357275426387787, 0.7453524470329285, -0.49030086398124695, -0.43473121523857117, -0.28210029006004333, -0.13013604283332825, 0.13965880870819092, -0.08378761261701584, 0.23449797928333282, -0.5820060968399048, -0.41679272055625916, -0.5637114644050598, -0.4104035496711731, 0.15888497233390808, -0.24188099801540375, -0.1262761503458023, 0.6726529002189636, -0.21531449258327484, 0.8525465130805969, -0.11593097448348999, 0.12544691562652588, -0.19921214878559113, 0.6573238968849182, 0.7196746468544006, 0.5456602573394775, 0.0010297109838575125, -0.5252841114997864, -0.14525605738162994, -0.16100893914699554, -0.8906447887420654, 0.24970991909503937, -0.4134698212146759, -0.151078462600708, 0.3305678367614746, 0.3964405357837677, -0.6166359782218933, 0.5833514332771301, 0.36082249879837036, -0.25549694895744324, 0.5578383803367615, -0.46993523836135864, 0.524109423160553, -0.9347314238548279, 0.03030645102262497, 0.0959913432598114, -0.29033616185188293, -0.494570791721344, 0.26606082916259766, -0.05414612963795662, -0.27897393703460693, -0.3603684902191162, 0.23077329993247986, -0.2476300597190857, -0.1276582032442093, -0.1130048856139183, -0.15288883447647095, -0.08041514456272125, 0.558732271194458, 0.2331404834985733, 0.2553492486476898, 0.07350528985261917, -0.8756746053695679, 0.34683793783187866, -0.08366390317678452, -0.9417240023612976, 0.3268788754940033, -0.49409282207489014, 0.2505268156528473, -0.4040997326374054, -0.036350470036268234, -0.6646735072135925, -0.008231552317738533, 0.03140287101268768, -0.3800361156463623, 0.4498702883720398, 0.15440787374973297, -0.46891021728515625, -0.44430139660835266, -0.14374519884586334, 0.43939897418022156, 0.3642544448375702, -0.27925702929496765, 0.33564698696136475, 0.11121160537004471, -0.17979060113430023, -0.3012498915195465, -0.6058229207992554, 0.10855574905872345, -0.20915785431861877, -0.6453097462654114, 0.3867321014404297, -0.000504282012116164, 0.13186900317668915, -0.22128742933273315, 0.14773482084274292, -0.09936752915382385, 0.013123164884746075, 0.12456557899713516, 0.08559415489435196, -0.1459534913301468, 0.3053852319717407, -0.05357038229703903, 0.007952218875288963, 0.03318344056606293, -0.49763768911361694, 0.5055385828018188, 0.12576597929000854, -0.3653203248977661, -0.5663766264915466, 0.6442846655845642, 0.37253451347351074, -0.03840520232915878, 0.5897530317306519, 0.4249953329563141, -0.6255316734313965, -0.3731922209262848, -0.15570072829723358, -0.13765518367290497, -0.4182412624359131, 0.6700347065925598, -0.18375013768672943, -0.9958636164665222, 0.24158351123332977, 0.113559789955616, -0.20856809616088867, 0.4063655138015747, 0.543075442314148, -0.2217492163181305, 0.6865604519844055, 0.7718470096588135, -0.08605890721082687, 0.4664907455444336, 0.010282812640070915, 0.49954575300216675, -0.2803022861480713, 0.08819552510976791, -0.26525112986564636, -0.49420642852783203, -0.4031277596950531, -0.6713773608207703, 0.11025982350111008, 0.35045742988586426, -0.49764493107795715, 0.31367090344429016, -0.3959297239780426, 0.2883845567703247, 0.43285512924194336, 0.126912921667099, 0.066712386906147, 0.06352925300598145, -0.3403605818748474, -0.3424839675426483, -0.3364524245262146, -0.7309134602546692, 0.731498122215271, 0.6642148494720459, 0.7245222330093384, 0.007265642285346985, 0.8553077578544617, 0.5204271078109741, 0.20139674842357635, -0.8622645139694214, 0.4776027202606201, -0.16044600307941437, -0.42540812492370605, -0.6733022332191467, -0.4534788727760315, -0.6833066940307617, -0.04419010505080223, -0.160980686545372, -0.8686504364013672, -0.038620397448539734, -0.2168353796005249, -0.4385175108909607, 0.19454273581504822, -0.10938917100429535, 0.9852968454360962, -0.41661179065704346, -0.5802976489067078, -0.15631769597530365, -0.3136933743953705, 0.13243450224399567, -0.09282845258712769, 0.0679723247885704, -0.1373666375875473, 0.17618238925933838, 0.9618965983390808, -0.34624817967414856, 0.7966505289077759, -0.07157875597476959, -0.14821599423885345, 0.3842286467552185, -0.07683385163545609, 0.42603394389152527, -0.04696284234523773, -0.5527293682098389, 0.22479204833507538, -0.20946116745471954, -0.09340152889490128, -0.6739979386329651, 0.4557640552520752, -0.4969147741794586, -0.25594404339790344, -0.590810239315033, -0.49316075444221497, 0.032708119601011276, 0.11695952713489532, 0.43438613414764404, 0.21940474212169647, -0.5332069396972656, -0.23867815732955933, 0.34394946694374084, -0.4193912148475647, 0.8455151319503784, 0.1938069611787796, -0.1169227808713913, -0.5396121144294739, 0.6136472821235657, -0.04329438880085945, 0.06401445716619492, 0.7386494874954224, 0.13757489621639252, -0.39559271931648254, -0.46186137199401855, -0.3613249957561493, -0.16947920620441437, -0.5138906836509705, 0.05919015407562256, -0.42829012870788574, -0.3087422549724579, -0.1164272204041481, -0.2446666806936264, -0.31952622532844543, -0.08333145827054977, -0.23080867528915405, -0.027600139379501343, 0.1496102511882782, 0.6429607272148132, 0.08947716653347015, 0.11716024577617645, -0.9590648412704468, 0.028887709602713585, 0.31103190779685974, 0.4282952845096588, 0.14749297499656677, -0.6388070583343506, -0.5541520714759827, -0.06451847404241562, -0.3461025059223175, -0.805400550365448, 0.772275447845459, 0.5042531490325928, 0.3546544313430786, 0.2713232934474945, -0.12032163143157959, 0.6505539417266846, -0.7478739619255066, 0.692530632019043, 0.28014612197875977, -1.0378235578536987, 0.7464492321014404, -0.29399433732032776, 0.45521703362464905, 0.6129862070083618, 0.5525846481323242, -0.5917681455612183, -0.3805435597896576, -0.09157386422157288, -0.7958444356918335, 0.37750688195228577, 0.12472010403871536, 0.1273372769355774, -0.3134159743785858, 0.3818488121032715, 0.3341207206249237, 0.23222894966602325, -0.42641010880470276, 0.2191135585308075, 0.16084134578704834, -0.7149872183799744, -0.21164372563362122, -0.3691324293613434, 0.19055116176605225, -0.014008583500981331, 0.4097634255886078, -0.016412539407610893, 0.5321773886680603, 0.3835483193397522, -0.38410893082618713, 0.0778888463973999, 0.4433070719242096, 0.45978984236717224, 0.27115386724472046, -0.26937803626060486, -0.04849730059504509, 0.18716618418693542, -0.49445754289627075, 0.32521089911460876, 0.14207281172275543, -0.20564191043376923, 0.20320791006088257, 0.5791835784912109, 0.8530797362327576, 0.7601762413978577, -0.464760422706604, 0.6399543285369873, 0.03940685838460922, -0.13768541812896729, -0.45547616481781006, -0.0989556759595871, -0.050075989216566086, 0.517853319644928, 0.3380548357963562, 0.2355666309595108, 0.3712388575077057, -0.5204809904098511, 0.5798507332801819, -0.07476496696472168, -0.8096989989280701, -0.40561413764953613, 0.5625036358833313, 0.028207065537571907, -0.5251973867416382, 0.6034417152404785, -0.37388432025909424, -0.4196111261844635, 0.6486057043075562, 0.6649129390716553, 0.8748945593833923, -0.23353292047977448, 0.08830709755420685, 0.6890184283256531, 0.06485449522733688, -0.3996422588825226, 0.4972183406352997, -0.17732739448547363, -0.5267259478569031, -0.5548166632652283, -1.2877126932144165, -0.12597604095935822, -0.19609852135181427, -0.6840928792953491, 0.3226960003376007, -0.4279733896255493, -0.3329179584980011, -0.06991948187351227, -0.14757820963859558, -0.6584816575050354, 0.3837023377418518, 0.29032039642333984, 0.956689715385437, -0.5578770041465759, 0.8417119383811951, 0.2988775074481964, -0.22768639028072357, -0.2107059359550476, -0.10776656121015549, -0.1583639681339264, -0.26954418420791626, 0.8977583050727844, 0.6020385026931763, 0.02985822781920433, -0.3006255328655243, -0.006874542683362961, -0.8023563027381897, 0.7533159852027893, 0.35671621561050415, -0.9302349090576172, -0.17232859134674072, 0.28422433137893677, 0.7425532341003418, -0.4221406579017639, 0.378952294588089, 0.560211718082428, 0.11579892784357071, -0.1562139242887497, -0.7394267916679382, -0.09892676025629044, -0.3389158248901367, 0.21401262283325195, 0.4028361439704895, -0.1569373905658722, 0.5920014977455139, -0.14820845425128937, -0.6027470827102661, 0.40251490473747253, 0.8976101279258728, 0.14268186688423157, 0.358157217502594, 0.22167429327964783, 0.756450355052948, 0.9135938882827759, -0.016398102045059204, 1.0812348127365112, -0.1425856202840805, 0.4450337588787079, 1.3187949657440186, -0.20428654551506042, 1.306663990020752, 0.2205076515674591, -0.4185265600681305, 0.6197954416275024, 0.6387595534324646, 0.07421617954969406, 0.6767356991767883, 0.6195608973503113, -0.5684856176376343, -0.19663971662521362, 0.2950364053249359, -0.012686737813055515, 0.37991878390312195, 0.1781708300113678, -0.7638099193572998, 0.017038481310009956, 0.12596845626831055, -0.24929234385490417, 0.25617143511772156, -0.35211145877838135, 0.6039457321166992, 0.2947539985179901, -0.8121882081031799, 0.25718796253204346, 0.2104388028383255, 1.011021375656128, -0.5228015184402466, 0.12481873482465744, 0.22283655405044556, 0.4164002537727356, 0.015850337222218513, -0.7220718264579773, 0.5138831734657288, 0.027898581698536873, -0.45014482736587524, -0.143568754196167, 0.49260011315345764, -0.6316478252410889, -0.6257132291793823, 0.5491166710853577, -0.20098106563091278, 0.24001632630825043, 0.04725301265716553, -0.43593889474868774, -0.07330422103404999, -0.4139150381088257, -0.2518720030784607, 0.09431856125593185, 0.413470596075058, -0.06823733448982239, 0.1592584252357483, 0.6431082487106323, -0.19922588765621185, 0.08289157599210739, 0.4088280498981476, 0.1167079284787178, -1.1058818101882935, -0.7124781012535095, -1.1084257364273071, 0.533411979675293, -0.15833571553230286, -0.48856937885284424, 0.42866629362106323, 0.6502496004104614, 0.5245440602302551, -0.07801266759634018, 0.7875174880027771, 0.13515964150428772, 0.34616339206695557, -0.4159281849861145, 0.8214179277420044, -0.24091176688671112, 0.007529524154961109, -0.02718718908727169, -0.8796595335006714, -0.42225831747055054, 0.7779645323753357, -0.4799700975418091, 0.06188519671559334, 0.7159355282783508, 0.5119132399559021, 0.2043500691652298, 0.33118364214897156, 0.2932145893573761, -0.11333062499761581, 0.20610737800598145, 0.9399486184120178, 0.8152913451194763, -0.8401061296463013, 0.14113205671310425, -0.007181178312748671, -0.35867926478385925, -0.1577952355146408, -1.081777811050415, -0.8376758098602295, -0.5759320259094238, -0.30355551838874817, -0.2720984220504761, 0.3986164927482605, 0.9012855887413025, 0.5441587567329407, -0.9133742451667786, -0.36679622530937195, -0.1695326715707779, 0.0037071630358695984, -0.37491947412490845, -0.2088511735200882, 0.3406713306903839, -0.5505731701850891, -0.7638351917266846, 0.48501622676849365, 0.7433189153671265, -0.11849499493837357, -0.000673736329190433, -0.3591877520084381, -0.34278950095176697, 0.17042171955108643, 0.701063871383667, 0.17344918847084045, -0.28211963176727295, -0.4169565439224243, -0.16990287601947784, -0.32074105739593506, 0.07486280053853989, 0.5732647776603699, -0.48892149329185486, 0.46925681829452515, 0.7300023436546326, 0.6609097123146057, 0.6937826871871948, -0.43364349007606506, 0.95703125, -0.571107029914856, 0.049342453479766846, 0.36850836873054504, 0.39491793513298035, 0.36686527729034424, -0.25706109404563904, 0.3722909688949585, 0.04352014139294624, -0.5673872232437134, -0.47077134251594543, 0.1562698930501938, -0.738972544670105, 0.11723513156175613, 0.8463815450668335, -0.27215245366096497, -0.5079590082168579, -0.037714000791311264, 0.23015150427818298, 0.5831717252731323, -0.3120587468147278, 0.7971268892288208, 0.6089087128639221, 0.1629948914051056, -0.19396501779556274, -0.4584503173828125, 0.3910359740257263, 0.17651009559631348, -0.6170246005058289, -0.4526413083076477, 0.28255313634872437, 0.1367497742176056, 0.23888663947582245, 0.5785136222839355, -0.28799131512641907, 0.265118807554245, 0.10497446358203888, 0.14476439356803894, 0.2730707824230194, -0.23882007598876953, -0.5703041553497314, 0.4743010401725769, -0.22591672837734222, -0.28612080216407776 ]
http://arxiv.org/abs/2405.17755v1
http://arxiv.org/pdf/2405.17755v1
XL3M: A Training-free Framework for LLM Length Extension Based on Segment-wise Inference
2024-05-28T02:12:35
2024-05-28T02:12:35
Shengnan Wang, Youhui Bai, Lin Zhang, Pingyi Zhou, Shixiong Zhao, Gong Zhang, Sen Wang, Renhai Chen, Hua Xu, Hongwei Sun
cs.CL
cs.CL, cs.AI
Length generalization failure problem, namely the large language model (LLM) fails to generalize to texts longer than its maximum training length, greatly restricts the application of LLM in the scenarios with streaming long inputs. To address this problem, the existing methods either require substantial costs or introduce precision loss. In this paper, we empirically find that the accuracy of the LLM's prediction is highly correlated to its certainty. Based on this, we propose an efficient training free framework, named XL3M (it means extra-long large language model), which enables the LLMs trained on short sequences to reason extremely long sequence without any further training or fine-tuning. Under the XL3M framework, the input context will be firstly decomposed into multiple short sub-contexts, where each sub-context contains an independent segment and a common ``question'' which is a few tokens from the end of the original context. Then XL3M gives a method to measure the relevance between each segment and the ``question'', and constructs a concise key context by splicing all the relevant segments in chronological order. The key context is further used instead of the original context to complete the inference task. Evaluations on comprehensive benchmarks show the superiority of XL3M. Using our framework, a Llama2-7B model is able to reason 20M long sequences on an 8-card Huawei Ascend 910B NPU machine with 64GB memory per card.
[ -0.2835855484008789, -0.6823405027389526, 0.9688752293586731, 0.17640142142772675, -0.6636868715286255, -0.20053254067897797, -0.3533448874950409, -0.4941159784793854, 0.03113468363881111, 0.4962511956691742, -0.5498948097229004, -0.5123353004455566, -0.5071330666542053, 0.15292713046073914, -0.5563238859176636, 0.5303806662559509, -0.1890815645456314, -0.04999080300331116, 0.010066266171634197, -0.29611438512802124, -0.13394728302955627, -0.4477919936180115, -0.6047019958496094, -0.21979773044586182, 0.5929593443870544, 0.5061837434768677, 0.4785974323749542, 1.068785548210144, 0.20754671096801758, 0.24136562645435333, -0.17793916165828705, 0.42052024602890015, -0.34872469305992126, -0.23136039078235626, 0.1325758993625641, -0.7836945056915283, -0.3717832863330841, -0.24726209044456482, 0.7464226484298706, 0.8093660473823547, 0.0197051540017128, -0.1147984117269516, 0.04195375740528107, 0.7540292739868164, -0.45167526602745056, -0.10502546280622482, -0.6235746145248413, 0.09555233269929886, 0.02664308249950409, -0.21166366338729858, -0.34439152479171753, -0.35081949830055237, 0.05394396185874939, -0.41715383529663086, 0.09672662615776062, 0.12932053208351135, 0.7026394009590149, 0.21489813923835754, -0.503943681716919, 0.0006181530188769102, -0.9187409281730652, 0.914154052734375, -0.8312190175056458, 0.4395543336868286, 0.3302496075630188, 0.26083502173423767, 0.011936313472688198, -0.3449760973453522, -0.6621915102005005, 0.025649094954133034, 0.21769565343856812, 0.09405303746461868, 0.06263038516044617, 0.2516525089740753, 0.28785228729248047, 0.3161601126194, -0.562473714351654, 0.2566060423851013, -0.4218290448188782, 0.056002333760261536, 0.4495284855365753, 0.08901254087686539, 0.20459194481372833, 0.14902982115745544, -0.5408695936203003, 0.09328258037567139, -1.0120735168457031, -0.14177434146404266, 0.5958943367004395, -0.02157306857407093, -0.1530543863773346, 0.5133786201477051, -0.029809094965457916, 0.8394084572792053, -0.1152135506272316, -0.24751269817352295, 0.14511948823928833, 0.10500535368919373, -0.42026984691619873, 0.1507469117641449, 0.7424523830413818, 0.5149625539779663, 0.07376228272914886, -0.021015970036387444, -0.021634824573993683, -0.2787271738052368, -0.21258902549743652, -0.7895724177360535, 0.31801265478134155, 0.5055133700370789, -0.35225969552993774, 0.25008559226989746, -0.06438805162906647, -0.38032203912734985, -0.030839931219816208, -0.4380694627761841, 0.16238680481910706, -0.8781896829605103, 0.01967306062579155, 0.20187756419181824, 0.16819708049297333, 0.3744734227657318, 0.28891363739967346, -0.9322662949562073, 0.10712181776762009, 0.7832455039024353, 0.9533007144927979, -0.37551864981651306, -0.4219944477081299, -0.6398530006408691, 0.3018030524253845, -0.5003174543380737, 0.7537350654602051, -0.35593393445014954, -0.3172370493412018, -0.11318743228912354, 0.004388228990137577, -0.06354732811450958, -0.4519009292125702, 0.594931960105896, -0.6992356181144714, 0.04780059680342674, 0.3559916615486145, -1.0563510656356812, -0.44976478815078735, 0.21444721519947052, -0.6914355754852295, 0.6268243193626404, -0.03275257721543312, -0.3875707685947418, 0.23550009727478027, -0.5368850231170654, -0.19974999129772186, 0.06048588827252388, -0.18281815946102142, -0.4481014013290405, 0.09531505405902863, 0.2640690505504608, 0.5166744589805603, -0.42184701561927795, 0.3327834904193878, -0.5383239388465881, -0.6795592904090881, 0.11958484351634979, -0.4191790521144867, 0.4314868152141571, 0.010608217678964138, -0.3689417243003845, 0.2136962115764618, -0.894666850566864, 0.13433781266212463, -0.0913853645324707, -0.5455611348152161, -0.22665327787399292, 0.06849920749664307, -0.2834039628505707, -0.008040894754230976, -0.08638947457075119, -0.5434255599975586, -0.05478997156023979, -0.7033888101577759, 0.26749446988105774, 0.656690776348114, -0.25711551308631897, 0.4844760596752167, -0.20308038592338562, 0.4329298734664917, -0.19289688766002655, -0.02842976339161396, -0.3249676525592804, -0.2628111243247986, -1.0269242525100708, -0.2628103196620941, 0.3510616421699524, 0.4964037835597992, -0.5298473834991455, 0.6130760908126831, -0.4897286295890808, -0.25796422362327576, 0.019505497068166733, 0.3060912489891052, 0.2991473972797394, 0.2633169889450073, 0.5629780888557434, 0.11304344236850739, -0.7843743562698364, -0.8728311061859131, -0.2066185176372528, -0.06430252641439438, -0.2191956788301468, 0.1623833328485489, 0.33700495958328247, -0.4056740999221802, 1.0386732816696167, -0.4805888533592224, -0.19503019750118256, -0.7619463801383972, -0.0746486708521843, 0.3778931796550751, 0.3293664753437042, 0.3311569392681122, -0.6071875691413879, -0.3276219367980957, -0.05955972149968147, -0.4966164827346802, 0.10037370026111603, -0.06290297210216522, 0.12385845929384232, 0.3708450496196747, 0.5069012641906738, -0.3197605311870575, 0.2337881177663803, 0.7705613970756531, -0.028934616595506668, 0.5215394496917725, -0.2136220633983612, -0.28568610548973083, -1.1608498096466064, -0.015922408550977707, 0.02379915863275528, -0.3074440062046051, -0.5710697770118713, -0.12787766754627228, 0.26752912998199463, 0.10029245913028717, -0.5996137857437134, 0.6700091361999512, -0.3968188464641571, -0.02521643415093422, -0.6287299394607544, 0.122214674949646, -0.00759882153943181, 0.6336846947669983, 0.2868281602859497, 0.4508693218231201, 0.2859034836292267, -0.6912280321121216, 0.43653514981269836, -0.13952744007110596, -0.6005432605743408, 0.2005886286497116, -0.5400905609130859, 0.0847608670592308, 0.0012707907008007169, 0.30470922589302063, -0.54707932472229, -0.3171340227127075, -0.024281948804855347, -0.24404503405094147, 0.2837684452533722, -0.24806414544582367, -0.39732131361961365, -0.3609800338745117, -0.17102459073066711, 0.507532000541687, 0.5317491292953491, -0.8044853806495667, 0.6263821125030518, 0.03549417108297348, -0.06970544159412384, -0.6205393671989441, -0.7268170118331909, -0.00891738012433052, -0.5785498023033142, -0.7296857237815857, 0.3603549301624298, -0.2645242512226105, -0.05385813117027283, -0.2707808017730713, -0.18984530866146088, -0.16345177590847015, 0.09812622517347336, 0.17952990531921387, 0.23085875809192657, -0.18341141939163208, -0.018404057249426842, 0.1284913271665573, -0.10154414921998978, 0.062188610434532166, -0.3046383261680603, 0.4999614953994751, -0.148228257894516, -0.42672333121299744, -0.2963985800743103, 0.38376352190971375, 0.23417852818965912, 0.28603965044021606, 0.5254778861999512, 0.40686652064323425, -0.26667577028274536, -0.45284968614578247, -0.6118478178977966, 0.04482331871986389, -0.40453672409057617, 0.5073320269584656, -0.17499609291553497, -1.216395378112793, 0.40429770946502686, 0.038528528064489365, -0.12241148948669434, 0.22273539006710052, 0.2572612762451172, 0.16769683361053467, 1.0612658262252808, 0.6946839690208435, -0.000531693862285465, 0.20370866358280182, -0.3594122529029846, 0.23195667564868927, -0.8982880711555481, -0.13616931438446045, -0.07029208540916443, -0.062291696667671204, -0.035740241408348083, -0.6440974473953247, 0.1424776315689087, 0.3419552147388458, -0.063355952501297, 0.3401586413383484, -0.0469573438167572, 0.7044275999069214, 0.3458479344844818, -0.0420629046857357, 0.2868403196334839, 0.05516797676682472, -0.33231058716773987, 0.3835623860359192, -0.45915526151657104, -0.38247138261795044, 1.0295040607452393, 0.40606555342674255, 0.626215934753418, 0.1805676519870758, 0.6318174600601196, -0.037586212158203125, 0.259110689163208, -0.9838969707489014, 0.6472755670547485, 0.1233190968632698, -0.22991500794887543, -0.4502643346786499, -0.5239832401275635, -0.8861448764801025, 0.2784222364425659, 0.23815405368804932, -0.8064994215965271, -0.10060406476259232, 0.28304317593574524, -0.6069674491882324, 0.5774049162864685, -0.4598327875137329, 0.3018190860748291, -0.45256346464157104, -0.47195127606391907, -0.09054579585790634, -0.614090085029602, 0.6185731291770935, -0.34493714570999146, 0.23106417059898376, -0.3673054277896881, -0.19994233548641205, 0.9732317924499512, -0.8704580068588257, 0.6716663241386414, 0.05434796214103699, -0.30883553624153137, 0.41768839955329895, -0.23406635224819183, 0.3871358633041382, 0.13597410917282104, -0.01686972938477993, 0.25384145975112915, -0.270752876996994, -0.2618477940559387, -0.5706524848937988, 0.750337541103363, -0.7307823896408081, -0.6786834001541138, -0.1715252548456192, -0.4932379722595215, -0.4903169274330139, 0.27641239762306213, 0.2993937134742737, 0.4750630855560303, 0.01037121657282114, 0.27746620774269104, 0.5919031500816345, -0.1704464703798294, 0.6300199031829834, 0.41217041015625, -0.29975584149360657, -0.631102979183197, 0.673968493938446, -0.14659841358661652, 0.1843600571155548, 0.6264495253562927, 0.24113576114177704, -0.5746957659721375, -0.8382734656333923, -0.5370920300483704, 0.11697717756032944, -0.7518812417984009, -0.22386334836483002, -0.6585425734519958, -0.23345807194709778, -0.11438712477684021, -0.025110749527812004, -0.17245061695575714, -0.3745769262313843, -0.22576703131198883, -0.3477877676486969, 0.3533762991428375, 0.39903968572616577, -0.22029855847358704, 0.47731298208236694, -1.0436933040618896, 0.20558281242847443, 0.3636884391307831, 0.5070348381996155, 0.023896556347608566, -0.7101417183876038, -0.4503377377986908, -0.011038398370146751, -0.29135459661483765, -0.5449294447898865, 0.4293656051158905, 0.19602730870246887, 0.3406032919883728, 0.6755024790763855, -0.3071027398109436, 0.7381336092948914, -0.5691660046577454, 0.649567723274231, 0.526089608669281, -0.9868332743644714, 0.30410534143447876, -0.28177738189697266, 0.3072354793548584, 0.18872664868831635, 0.4141416549682617, -0.5224220156669617, -0.13403797149658203, -0.32907527685165405, -1.1006346940994263, 0.8108075261116028, 0.029135555028915405, -0.05235825851559639, -0.21214079856872559, 0.31857630610466003, 0.25561290979385376, -0.23183202743530273, -0.6082502603530884, -0.32069844007492065, -0.017291460186243057, -0.03062031790614128, -0.18334980309009552, -0.4901975095272064, 0.10240356624126434, -0.10861166566610336, 0.7689831256866455, -0.5597497820854187, 0.1356528401374817, 0.22279909253120422, -0.31421539187431335, 0.0996708795428276, 0.37554091215133667, 0.7670774459838867, 0.8607559204101562, -0.375421404838562, 0.11062519252300262, 0.43619656562805176, -0.2059958428144455, 0.31650611758232117, 0.16383729875087738, 0.1745777726173401, -0.01148989051580429, 0.5001208186149597, 0.966323971748352, 0.2198975533246994, -0.8337017893791199, 0.5090357065200806, -0.02634260430932045, -0.5079617500305176, -0.44809338450431824, 0.10568311810493469, 0.4076010286808014, 0.026389848440885544, 0.5530102849006653, -0.3010367453098297, 0.05666175112128258, -0.2823271155357361, 0.05259431153535843, 0.2151813507080078, -0.5398891568183899, -0.2173144370317459, 0.5236467123031616, 0.14667683839797974, 0.061427511274814606, 0.3337525427341461, -0.008722608909010887, -0.5240587592124939, 0.8061367869377136, 0.568115234375, 0.7905817627906799, -0.12618869543075562, -0.11870241165161133, 0.31931209564208984, -0.015119090676307678, -0.42004668712615967, 0.23056264221668243, -0.040058210492134094, -0.7662023305892944, -0.9893410801887512, -0.7393000721931458, -0.5142921209335327, 0.6248173713684082, -0.4314597547054291, 0.2577148377895355, -0.30928388237953186, 0.14476341009140015, -0.42917966842651367, -0.1972426027059555, -0.3129616379737854, 0.42763471603393555, 0.36399975419044495, 1.2150665521621704, -0.35353443026542664, 0.8890811800956726, 0.41567760705947876, 0.17901654541492462, -0.9995933771133423, -0.16440775990486145, -0.10467522591352463, -0.8144606947898865, 0.48078829050064087, 0.6889599561691284, -0.2889043986797333, -0.22332388162612915, -0.4514918923377991, -0.9771480560302734, 1.1520718336105347, 0.39449405670166016, -0.9021990299224854, -0.12508974969387054, 0.45015522837638855, 0.23112165927886963, -0.4680180549621582, 0.25409242510795593, 0.6561712026596069, 0.22146844863891602, 0.2520507574081421, -0.5381192564964294, 0.07356689870357513, -0.0915370061993599, 0.1622975468635559, 0.26168230175971985, -0.5945378541946411, 0.47039952874183655, -0.4988100826740265, -0.16562645137310028, 0.46297648549079895, 0.8103698492050171, 0.35099053382873535, 0.2258882224559784, 0.6101815104484558, 0.6107258200645447, 0.5547574758529663, 0.021382885053753853, 0.8841508030891418, -0.42354536056518555, 0.38006284832954407, 1.2483501434326172, -0.35125526785850525, 0.7248099446296692, 0.35766610503196716, 0.023554418236017227, 0.5430741310119629, 0.6451266407966614, 0.050596632063388824, 0.31159448623657227, 0.3181101977825165, -0.3516099154949188, -0.3917343318462372, 0.385281503200531, -0.31061774492263794, 0.3269520401954651, 0.5223426222801208, -0.5616914629936218, -0.19784937798976898, -0.01811615563929081, 0.1280236691236496, -0.21886679530143738, -0.4743618667125702, 0.6484649777412415, 0.3884994089603424, -0.8609882593154907, 0.7622874975204468, 0.24751083552837372, 0.6210656762123108, -0.7180948853492737, 0.25507959723472595, -0.3877827227115631, 0.31595563888549805, -0.24264979362487793, -0.518295407295227, 0.42534181475639343, -0.10499481856822968, -0.08088105171918869, 0.057924289256334305, 0.468434602022171, -0.42580145597457886, -0.3866725265979767, 0.4825015366077423, 0.433925062417984, 0.14365170896053314, -0.1597663015127182, -0.43026214838027954, 0.09557760506868362, 0.03980353847146034, -0.15228171646595, 0.2925020158290863, 0.2438036948442459, 0.018368849530816078, 0.6896246671676636, 0.5967966914176941, 0.026664765551686287, -0.1409769058227539, 0.025847595185041428, 0.6492088437080383, -0.81270831823349, -0.4376767575740814, -1.1605557203292847, 0.1074005737900734, -0.07677620649337769, 0.07901403307914734, 0.6763234734535217, 0.8540611863136292, 0.7822242379188538, 0.04295433685183525, 0.9571341872215271, 0.3300108313560486, 0.4581940770149231, -0.8329761028289795, 0.3041088879108429, -0.683551013469696, 0.3994821012020111, 0.05269252881407738, -1.079131007194519, -0.5467367172241211, 0.24466052651405334, -0.5056864619255066, -0.09214799106121063, 0.8721638917922974, 0.5618724226951599, -0.1557663381099701, 0.14032259583473206, 0.5400658249855042, 0.09351952373981476, 0.2557933032512665, 0.8941752910614014, 0.9039443135261536, -0.1124408021569252, 1.0620146989822388, -0.19942177832126617, -0.2627410590648651, -0.3563072383403778, -0.9644092321395874, -0.9765928983688354, -0.23286879062652588, -0.11511079967021942, -0.1689881831407547, 0.01674201712012291, 0.9186289310455322, 0.7299599647521973, -0.5237126350402832, -0.22503583133220673, -0.27236971259117126, 0.2473965734243393, -0.061571769416332245, -0.20198293030261993, 0.6154892444610596, -0.1303940862417221, -0.7625958323478699, 0.6553599834442139, 0.5608718395233154, 0.18920837342739105, 0.03160634636878967, -0.2082790583372116, 0.1141199916601181, 0.18293042480945587, 0.7245581150054932, 0.46057286858558655, -0.7325143814086914, -0.34045079350471497, -0.12069240212440491, 0.26760655641555786, 0.3509712219238281, 0.6441748142242432, -0.6418367624282837, 0.03382420167326927, 0.21491360664367676, 0.6119983196258545, 0.41064921021461487, -0.04884997010231018, 0.707776665687561, -0.551501989364624, -0.17476457357406616, 0.018375450745224953, 0.7843761444091797, 0.4371519982814789, -0.08514969795942307, 0.5310290455818176, 0.1684010773897171, -0.47687363624572754, -0.5329684615135193, 0.4301474988460541, -0.9692921042442322, -0.2712012231349945, 1.5586782693862915, -0.3202647864818573, -0.522964596748352, -0.0582352951169014, -0.09068696945905685, 0.13102944195270538, -0.301530122756958, 0.5288776159286499, 0.3833349347114563, -0.25452154874801636, -0.2197437882423401, -0.10270091146230698, 0.3940975069999695, 0.4028114676475525, -0.7611472606658936, -0.035185202956199646, 0.3354474604129791, 0.43124982714653015, 0.16514289379119873, 0.4093003571033478, 0.028240369632840157, 0.3223094046115875, -0.48404499888420105, -0.13246604800224304, -0.05581294745206833, -0.2982812821865082, -0.3011350631713867, 0.2660132944583893, 0.07099288702011108, 0.06194329261779785 ]
http://arxiv.org/abs/2405.17743v2
http://arxiv.org/pdf/2405.17743v2
ORLM: Training Large Language Models for Optimization Modeling
2024-05-28T01:55:35
2024-05-30T02:12:05
Zhengyang Tang, Chenyu Huang, Xin Zheng, Shixi Hu, Zizhuo Wang, Dongdong Ge, Benyou Wang
cs.CL
cs.CL, cs.AI, cs.CE, cs.LG
Large Language Models (LLMs) have emerged as powerful tools for tackling complex Operations Research (OR) problem by providing the capacity in automating optimization modeling. However, current methodologies heavily rely on prompt engineering (e.g., multi-agent cooperation) with proprietary LLMs, raising data privacy concerns that could be prohibitive in industry applications. To tackle this issue, we propose training open-source LLMs for optimization modeling. We identify four critical requirements for the training dataset of OR LLMs, design and implement OR-Instruct, a semi-automated process for creating synthetic data tailored to specific requirements. We also introduce the IndustryOR benchmark, the first industrial benchmark for testing LLMs on solving real-world OR problems. We apply the data from OR-Instruct to various open-source LLMs of 7b size (termed as ORLMs), resulting in a significantly improved capability for optimization modeling. Our best-performing ORLM achieves state-of-the-art performance on the NL4OPT, MAMO, and IndustryOR benchmarks. Our code and data are available at \url{https://github.com/Cardinal-Operations/ORLM}.
[ -0.09503287076950073, -0.7806174755096436, 0.504642128944397, 0.057684075087308884, 0.08911392837762833, -0.26332250237464905, -0.39534345269203186, -0.43947678804397583, -0.46738389134407043, 0.8030108213424683, -0.6612899899482727, -0.6542788743972778, -0.12193487584590912, 0.047844093292951584, -0.37020343542099, 0.7144991755485535, -0.23410791158676147, 0.5364187955856323, -0.2553655505180359, -0.20279742777347565, -0.018311120569705963, -0.7376518249511719, -0.9506083726882935, -0.23885492980480194, 0.23615363240242004, 0.2653641700744629, 0.3202969431877136, 0.8940522074699402, 0.4327393174171448, 0.3207918405532837, 0.14037856459617615, 0.402766615152359, -0.9020728468894958, 0.19299620389938354, -0.08005697280168533, -0.42917588353157043, -0.48874524235725403, -0.12621276080608368, 0.654492974281311, 0.718396782875061, -0.5308376550674438, 0.4912986755371094, -0.1549399495124817, 0.5323171615600586, -0.6054471135139465, 0.25187790393829346, -0.8266571164131165, 0.13873088359832764, -0.09865794330835342, -0.17086608707904816, -0.32608726620674133, -0.7116068005561829, -0.10704910010099411, -0.5141327977180481, 0.07858334481716156, 0.4909793436527252, 0.40391412377357483, 0.48800161480903625, -0.17068374156951904, -0.3337193429470062, -0.6471173763275146, 1.0014368295669556, -0.8966878056526184, 0.6491196751594543, -0.06620275974273682, 0.2647036015987396, -0.3994516134262085, -0.5128857493400574, -0.2071840614080429, -0.16692064702510834, 0.25217580795288086, -0.14409036934375763, 0.30792292952537537, 0.21673482656478882, 0.4173697233200073, 0.29421067237854004, -0.6165634989738464, 0.2955358624458313, -0.3306010067462921, 0.08008772879838943, 0.6356307864189148, 0.5553726553916931, -0.01877458579838276, 0.49932560324668884, -0.45803722739219666, -0.0004336535930633545, -0.7387939691543579, -0.059907216578722, 0.4341028034687042, 0.31549251079559326, -0.09948857128620148, 0.7938941121101379, -0.12335263192653656, 0.7487406730651855, -0.5836440324783325, -0.29793715476989746, 0.19559164345264435, -0.15043237805366516, -0.46430259943008423, -0.11800134181976318, 0.7121973037719727, 0.0562673956155777, 0.14345917105674744, -0.043386753648519516, -0.6510791778564453, -0.08140463382005692, 0.15316936373710632, -0.7003800868988037, 0.01906292326748371, 0.11114704608917236, -0.41488954424858093, -0.23716653883457184, -0.09971543401479721, -0.6349846124649048, -0.48748674988746643, -0.6086623668670654, 0.2870838940143585, -0.2684725224971771, 0.13626348972320557, 0.5269002914428711, 0.04006272554397583, 0.31926092505455017, 0.07649052888154984, -0.8906731009483337, 0.15047603845596313, 0.6918987035751343, 0.5351192355155945, -0.11694716662168503, -0.36240169405937195, -0.5927711129188538, 0.12751446664333344, -0.5149800181388855, 0.26986387372016907, -0.464307963848114, -0.41303691267967224, 0.22916530072689056, -0.3120444715023041, -0.1333240121603012, -0.620568573474884, 0.6512556672096252, -0.62639981508255, -0.021710969507694244, 0.23979464173316956, -0.5222439169883728, -0.040788426995277405, 0.2546122372150421, -0.38300326466560364, 1.19730544090271, 0.11613770574331284, -0.3047875165939331, -0.018424151465296745, -1.019456386566162, -0.2532878816127777, -0.12457434087991714, -0.3152683973312378, -0.6886830925941467, 0.24927179515361786, 0.050548255443573, 0.2600463926792145, -0.6096488237380981, 0.1662302315235138, -0.5282230973243713, 0.013762425631284714, 0.10528039187192917, -0.21774214506149292, 0.8924644589424133, 0.27628931403160095, -0.06154872477054596, 0.2966526746749878, -0.8377408981323242, 0.014659016393125057, 0.3271676301956177, -0.4636995196342468, -0.10426265746355057, 0.20645692944526672, -0.17801982164382935, -0.14813411235809326, 0.5221266746520996, -0.5746529698371887, 0.25351813435554504, -0.4903286397457123, 0.8288328051567078, 0.6615390181541443, -0.13702233135700226, 0.42672014236450195, 0.02690301649272442, 0.6870373487472534, -0.7573151588439941, 0.7447222471237183, 0.13536183536052704, -0.12144385278224945, -0.919042706489563, -0.18234778940677643, -0.054553091526031494, 0.27005520462989807, -0.622992992401123, 0.25898393988609314, -0.03724229708313942, -0.3839981257915497, -0.48837217688560486, 0.2600402534008026, 0.36208078265190125, 0.5152640342712402, 0.19111070036888123, 0.022332679480314255, -0.8391703963279724, -0.8649259805679321, -0.08352380245923996, 0.0691460371017456, 0.012186900712549686, 0.2545982301235199, 0.3537290096282959, -0.07568295300006866, 1.0386391878128052, -0.5932100415229797, -0.5714399814605713, -0.10942289978265762, 0.0015133748529478908, 0.14537259936332703, 0.2931367754936218, 0.3631766140460968, -0.6306360363960266, -0.40714290738105774, 0.0662725642323494, -0.9716787338256836, -0.1856125444173813, 0.4149356782436371, -0.10959862172603607, 0.3743503987789154, 0.9271864295005798, -0.31292253732681274, 0.007379925809800625, 0.840837836265564, 0.40041354298591614, 0.5740939378738403, -0.30698561668395996, -0.40420132875442505, -0.6235014796257019, 0.18533237278461456, -0.28792986273765564, -0.3275061845779419, -0.46719494462013245, 0.273316353559494, -0.02442735619843006, -0.6457552909851074, -0.7285154461860657, 0.4922023415565491, -0.6468070149421692, -0.2962716817855835, -0.033840104937553406, -0.20773063600063324, -0.21959269046783447, 0.44855427742004395, 0.1255035549402237, 0.9065956473350525, 0.685762882232666, -0.3923231065273285, 0.2998464107513428, 0.1546027660369873, -0.5102750062942505, 0.23327885568141937, -0.5587104558944702, 0.38125964999198914, -0.06348031759262085, 0.04024393856525421, -0.5857091546058655, -0.3301742970943451, 0.17837940156459808, -0.15233534574508667, 0.142103374004364, -0.02135179191827774, -0.8753308653831482, -0.24616646766662598, -0.3288511037826538, 0.3391573131084442, 0.47826677560806274, -0.6487701535224915, 0.8209121227264404, 0.40158259868621826, 0.06395602226257324, -0.38932955265045166, -0.40775710344314575, -0.3248947560787201, -0.31725189089775085, -0.41390860080718994, -0.07623348385095596, -0.08226418495178223, 0.018547337502241135, 0.008378780446946621, -0.05380266159772873, 0.043469060212373734, 0.11753278970718384, 0.029349923133850098, 0.30028465390205383, -0.1488700956106186, 0.044052738696336746, -0.19787201285362244, -0.09421510994434357, 0.41463953256607056, -0.6123582124710083, 0.614665150642395, -0.08957783132791519, -0.4670277237892151, -0.027310388162732124, 0.16436684131622314, 0.4389318525791168, -0.5291520357131958, 0.7588135600090027, 0.3309434950351715, -0.18940149247646332, -0.7141393423080444, -0.519713819026947, -0.14442294836044312, -0.5404467582702637, 0.5488364696502686, -0.028843749314546585, -0.9131442308425903, 0.17908816039562225, -0.24231299757957458, 0.5624713897705078, -0.00971042737364769, 0.5691308975219727, -0.005276446230709553, 1.2264176607131958, 0.7165014147758484, -0.20289765298366547, 0.5299063920974731, -0.32178977131843567, 0.20919102430343628, -0.6511155962944031, -0.2826870083808899, -0.746882975101471, -0.1862856149673462, -0.13169008493423462, -0.49835795164108276, 0.8563156127929688, -0.037672605365514755, -0.5473091006278992, 0.0625600814819336, -0.3815292716026306, 0.6087024807929993, 0.46432867646217346, -0.07118071615695953, 0.3152315616607666, 0.006986626889556646, 0.1440274715423584, 0.35039693117141724, -0.9075117111206055, -0.5022324919700623, 1.0590585470199585, 0.2709886133670807, 1.172451376914978, -0.09440615773200989, 0.5843431353569031, 0.037934333086013794, 0.3450937569141388, -0.602933943271637, 0.688859224319458, -0.06060950830578804, -0.6906470060348511, -0.5273881554603577, -0.6562713980674744, -0.9916520714759827, -0.0037615804467350245, -0.01519845612347126, -0.6644567847251892, -0.07753334939479828, 0.27811869978904724, -0.15585465729236603, 0.32525262236595154, -0.6193255186080933, 0.8784611225128174, -0.5970433354377747, 0.142281636595726, 0.018266569823026657, -0.7247840762138367, 0.28471148014068604, -0.2717779874801636, 0.4090278446674347, -0.04597393795847893, -0.5161307454109192, 0.4663766324520111, -0.5802076458930969, 0.899878203868866, -0.01192536111921072, -0.13358965516090393, 0.031607531011104584, -0.2509612441062927, 0.6736444234848022, -0.21883970499038696, -0.4277415871620178, 0.24221597611904144, -0.4395112097263336, -0.19518405199050903, -0.5666955709457397, 0.6822617053985596, -0.847954511642456, -0.3387799561023712, -0.056981317698955536, -0.5862432718276978, -0.25150391459465027, 0.2912091612815857, 0.23143698275089264, 0.4592593014240265, -0.10417375713586807, 0.3725079596042633, 0.7089680433273315, -0.2156384289264679, 0.21788883209228516, 0.5676152110099792, -0.3068762421607971, -0.40223684906959534, 0.8225384950637817, -0.19452376663684845, 0.3899100422859192, 0.5042418241500854, 0.28681883215904236, -0.49825766682624817, -0.8674921989440918, -0.3465978801250458, 0.26934507489204407, -0.7537223100662231, -0.3189593255519867, -0.49997612833976746, -0.3464233875274658, -0.20191672444343567, -0.20696397125720978, -0.640602171421051, 0.0705351009964943, -0.39483198523521423, 0.10620491951704025, 0.3186996877193451, 0.6714038848876953, 0.12812675535678864, -0.013393205590546131, -0.7044080495834351, -0.027155375108122826, 0.025271551683545113, 0.49161869287490845, 0.1949702948331833, -0.2387549728155136, -0.5432943105697632, -0.0625024363398552, -0.22163470089435577, -0.30954790115356445, 0.32414665818214417, 0.2605614960193634, 0.6243582963943481, 0.3585720360279083, 0.3285766839981079, 0.3088085353374481, -0.6176976561546326, 0.5665842890739441, 0.03897613286972046, -0.8854333162307739, 0.27128565311431885, -0.39086616039276123, -0.016841711476445198, 0.5348024368286133, 0.47946232557296753, -0.042855992913246155, -0.40301981568336487, -0.33434608578681946, -0.852443277835846, 1.0672169923782349, 0.14071400463581085, 0.11293771862983704, 0.23460015654563904, 0.24253258109092712, 0.27601587772369385, 0.5807726979255676, -0.618849515914917, -0.35668128728866577, 0.2856062352657318, -0.015521392226219177, -0.15791572630405426, -0.08981303125619888, -0.07350484281778336, 0.08799628168344498, 0.9569683074951172, 0.09044728428125381, 0.004007226787507534, -0.0959767997264862, 0.04931765794754028, -0.18430671095848083, -0.049692653119564056, 0.618406355381012, 0.5811741352081299, -0.3958805501461029, -0.13567620515823364, 0.22890129685401917, -0.1130581796169281, 0.09324522316455841, -0.06178314611315727, -0.19488473236560822, -0.21706141531467438, 0.1407955139875412, 0.7304824590682983, -0.021699583157896996, -0.9677222967147827, 0.05348902568221092, 0.19540205597877502, -0.3220002055168152, -0.44413936138153076, 0.18749144673347473, 0.09203919023275375, 0.3126153349876404, 0.12298105657100677, -0.18641670048236847, 0.2835870683193207, -0.4434317946434021, -0.3974933624267578, 0.49298372864723206, -0.05490705370903015, 0.004162347875535488, 0.7750620245933533, 0.2496209591627121, -0.5515393614768982, 0.48559316992759705, -0.03324511647224426, -0.6116893887519836, 0.4242398142814636, 0.2052091509103775, 0.6345905661582947, -0.18931615352630615, -0.32602524757385254, 0.15265126526355743, 0.37913501262664795, -0.23601186275482178, 0.33781108260154724, 0.32256796956062317, -0.5069679617881775, -0.48217254877090454, -0.736953854560852, -0.6554029583930969, 0.5703303813934326, -0.5923795700073242, 0.5362322926521301, -0.4705447852611542, 0.0011027856962755322, -0.22547350823879242, -0.2414822280406952, -0.47938427329063416, 0.024132559075951576, 0.007241390645503998, 0.7975207567214966, -0.5333421230316162, 0.7555492520332336, 0.7805085182189941, -0.13369818031787872, -0.8948649168014526, -0.5447863340377808, 0.02917555905878544, -0.9362624287605286, 0.5496830940246582, -0.06165911257266998, -0.17272107303142548, 0.40483179688453674, -0.6616657376289368, -0.7826637029647827, 0.799938976764679, 0.7759441137313843, -0.5721641778945923, -0.08205104619264603, 0.43369096517562866, 0.492236852645874, -0.5513419508934021, 0.03245241194963455, 0.4383428394794464, 0.25814253091812134, -0.200935497879982, -0.7036564946174622, -0.26476699113845825, 0.11897215247154236, 0.25797000527381897, 0.6205390095710754, -0.668401300907135, 0.7920670509338379, 0.058559954166412354, -0.02494049444794655, 0.43741142749786377, 0.4283570349216461, 0.3060694634914398, 0.2614426910877228, 0.5072760581970215, 0.4469672739505768, 0.42572256922721863, 0.2440861463546753, 1.237896203994751, -0.29614126682281494, 0.6721302270889282, 1.2779713869094849, -0.48989295959472656, 0.914652407169342, 0.35469043254852295, -0.09801924228668213, -0.06463099271059036, 0.5664675235748291, -0.13762246072292328, 0.44790101051330566, 0.4469720721244812, -0.01791214570403099, -0.16295042634010315, -0.22638359665870667, -0.37981733679771423, 0.22099782526493073, 0.2784365117549896, -0.39554306864738464, -0.3931385576725006, 0.10413699597120285, -0.24030984938144684, 0.04520092159509659, -0.22002539038658142, 0.7672111392021179, 0.22758588194847107, -0.3726629614830017, 0.7872010469436646, 0.07474788278341293, 0.2995612621307373, -0.8683750629425049, -0.010805323719978333, -0.18498611450195312, 0.2561355233192444, -0.06766350567340851, -0.28013235330581665, 0.21931463479995728, -0.03566582128405571, -0.05382474139332771, -0.3875311315059662, 0.4808967113494873, -0.5993943810462952, -0.337044894695282, 0.3669944107532501, 0.14543022215366364, 0.3755403757095337, 0.11466845870018005, -0.747401773929596, 0.49331721663475037, -0.043401043862104416, -0.12497252970933914, 0.3861474096775055, 0.41915303468704224, -0.012524785473942757, 0.870448648929596, 0.7905915975570679, 0.22923485934734344, 0.16061660647392273, 0.18674539029598236, 0.8690935373306274, -0.10052704066038132, -0.2487272471189499, -0.8425827026367188, 0.21388736367225647, -0.005425491835922003, -0.1074041798710823, 0.7145872116088867, 0.9202196598052979, 1.0894049406051636, -0.3885727524757385, 0.7358548641204834, 0.19567717611789703, 0.5137208700180054, -0.8033415079116821, 0.5870032906532288, -0.7866610288619995, 0.36903318762779236, 0.20204010605812073, -1.3474020957946777, -0.18439632654190063, 0.3738129138946533, -0.3476022779941559, -0.01634054258465767, 0.5445154309272766, 1.0030827522277832, -0.19227555394172668, 0.010500207543373108, 0.35734373331069946, 0.17364218831062317, 0.36661839485168457, 0.5449420213699341, 0.9468129873275757, -0.01457949262112379, 0.7625309824943542, -0.1431259661912918, -0.18454670906066895, -0.4618736207485199, -1.137678861618042, -1.067909598350525, -0.1433054506778717, -0.16399812698364258, 0.006152050569653511, 0.13657943904399872, 1.1401885747909546, 0.8235824704170227, -0.5387392044067383, -0.7656530737876892, -0.353300541639328, -0.1854407787322998, -0.07288665324449539, -0.11844506859779358, 0.2447943538427353, -0.5245879888534546, -0.9004932045936584, 0.5767579078674316, 0.33159056305885315, -0.05944309011101723, -0.6176298260688782, -0.1513962596654892, 0.11782736331224442, 0.12618200480937958, 0.48872074484825134, 0.36711642146110535, -0.5988690853118896, 0.045783743262290955, -0.04858095571398735, -0.057182181626558304, -0.06467212736606598, 0.9516892433166504, -0.07891996949911118, 0.4773158133029938, 0.3405001163482666, 0.9211390614509583, 0.45859822630882263, 0.008476966060698032, 0.7359091639518738, -0.7957758903503418, 0.08210918307304382, 0.44070717692375183, 0.3329671621322632, 0.24463757872581482, -0.2303844839334488, 0.8359631896018982, -0.06670957803726196, -0.700172483921051, -1.0068833827972412, 0.13608808815479279, -0.7650084495544434, 0.01741953194141388, 1.1642717123031616, -0.0945497676730156, -0.24694384634494781, -0.04814235493540764, -0.20007595419883728, -0.025214916095137596, -0.6503089070320129, 0.512578010559082, 0.3693287670612335, -0.05174558609724045, 0.05662473663687706, -0.5678898692131042, 0.36586618423461914, 0.2681773006916046, -0.9330840110778809, 0.1987888216972351, 0.27746719121932983, 0.023186830803751945, -0.15092653036117554, 0.36758553981781006, -0.0332849957048893, -0.05459625646471977, -0.14498674869537354, 0.36421075463294983, -0.5479598045349121, -0.15511120855808258, -0.24622099101543427, 0.14239788055419922, 0.2753468453884125, -0.2439158409833908 ]
http://arxiv.org/abs/2405.17740v1
http://arxiv.org/pdf/2405.17740v1
MobileConvRec: A Conversational Dataset for Mobile Apps Recommendations
2024-05-28T01:53:16
2024-05-28T01:53:16
Srijata Maji, Moghis Fereidouni, Vinaik Chhetri, Umar Farooq, A. B. Siddique
cs.CL
cs.CL
Existing recommendation systems have focused on two paradigms: 1- historical user-item interaction-based recommendations and 2- conversational recommendations. Conversational recommendation systems facilitate natural language dialogues between users and the system, allowing the system to solicit users' explicit needs while enabling users to inquire about recommendations and provide feedback. Due to substantial advancements in natural language processing, conversational recommendation systems have gained prominence. Existing conversational recommendation datasets have greatly facilitated research in their respective domains. Despite the exponential growth in mobile users and apps in recent years, research in conversational mobile app recommender systems has faced substantial constraints. This limitation can primarily be attributed to the lack of high-quality benchmark datasets specifically tailored for mobile apps. To facilitate research for conversational mobile app recommendations, we introduce MobileConvRec. MobileConvRec simulates conversations by leveraging real user interactions with mobile apps on the Google Play store, originally captured in large-scale mobile app recommendation dataset MobileRec. The proposed conversational recommendation dataset synergizes sequential user-item interactions, which reflect implicit user preferences, with comprehensive multi-turn conversations to effectively grasp explicit user needs. MobileConvRec consists of over 12K multi-turn recommendation-related conversations spanning 45 app categories. Moreover, MobileConvRec presents rich metadata for each app such as permissions data, security and privacy-related information, and binary executables of apps, among others. We demonstrate that MobileConvRec can serve as an excellent testbed for conversational mobile app recommendation through a comparative study of several pre-trained large language models.
[ -0.5065045356750488, -0.5287688374519348, 0.07791627943515778, 0.29133012890815735, -0.20795853435993195, 0.032389260828495026, -0.12868474423885345, -0.3838333487510681, 0.28170958161354065, 0.502110481262207, -0.7176093459129333, -0.562186598777771, 0.24717813730239868, -0.36708906292915344, -0.30726638436317444, 1.0281367301940918, 0.20538045465946198, -0.03511376306414604, -0.6154361367225647, -0.38304638862609863, -0.9423518776893616, -0.41257399320602417, -0.5718334913253784, -0.3422754108905792, 0.3640483021736145, 0.879411518573761, 0.7920564413070679, 0.1315813660621643, 0.1942405253648758, 0.15601173043251038, 0.2677612900733948, 0.39719271659851074, -0.6721832156181335, 0.35057514905929565, 0.04023253172636032, -0.13450153172016144, -0.13088184595108032, 0.08581313490867615, -0.012658078223466873, 0.3964289426803589, -0.6879963874816895, 0.15029633045196533, -0.10208781808614731, 0.7525367140769958, -0.6882730722427368, 0.14977958798408508, -0.6142213940620422, -0.11090801656246185, 0.11969585716724396, -0.07978324592113495, -0.356248140335083, -0.5634456276893616, 0.37814861536026, -0.40610218048095703, 0.13656039535999298, 0.12164720892906189, 0.5987381339073181, -0.1310688704252243, -0.6860700845718384, -0.5143553614616394, -0.9882189631462097, 0.6164808869361877, -0.3564159870147705, 0.577399492263794, 0.587807834148407, 0.4122544527053833, -0.38254696130752563, -0.5980987548828125, -0.49917009472846985, -0.7361524105072021, -0.01990804448723793, 0.01637936197221279, -0.04673098027706146, -0.18285439908504486, 0.009164601564407349, 0.2570676803588867, -0.7431365251541138, -0.35244059562683105, -0.3215785324573517, -0.21504996716976166, 0.7893557548522949, 0.35877183079719543, 0.20253972709178925, 0.20808973908424377, -0.44441309571266174, -0.15244390070438385, -0.8041702508926392, 0.5765272974967957, 0.22517022490501404, 0.14794425666332245, -0.2276657074689865, 0.5860288739204407, -0.4221685230731964, 0.9343008995056152, 0.023627130314707756, 0.008765685372054577, 0.239999920129776, -0.723831295967102, -0.020471051335334778, 0.3173508942127228, 0.9082369804382324, 0.9158226251602173, 0.48669081926345825, -0.18327732384204865, 0.25112950801849365, 0.22150613367557526, 0.5068281292915344, -0.9760740399360657, -0.34062546491622925, 0.3144102096557617, -0.41825026273727417, -0.4180591106414795, 0.053423985838890076, -0.5206929445266724, -0.6208809018135071, -0.1934453397989273, -0.04385756328701973, -0.22648616135120392, 0.055725909769535065, 0.15571704506874084, 0.15912465751171112, 0.02451208047568798, 0.015568936243653297, -1.0850746631622314, 0.4936067461967468, 0.4077009856700897, 0.7257868647575378, -0.13633094727993011, -0.15249286592006683, -0.550152063369751, -0.030298249796032906, -0.24386855959892273, 0.6955742239952087, -1.055390477180481, -0.8675114512443542, 0.17566926777362823, 0.12177009880542755, -0.0005048554739914834, -0.6370802521705627, 0.9497632384300232, -0.4252759516239166, -0.14598920941352844, -0.07791124284267426, -0.4207113981246948, -0.3062913715839386, 0.3179554343223572, -0.3942812383174896, 0.9612225890159607, -0.16756758093833923, -0.48234787583351135, 0.4668048620223999, -0.34402331709861755, -0.7054597735404968, 0.09345705807209015, -0.13316383957862854, -0.12511499226093292, -0.2346012443304062, 0.16274388134479523, 0.5751791596412659, -0.4369503855705261, 0.328809529542923, -0.5899682641029358, -0.4138423502445221, 0.3126145601272583, -0.13508708775043488, 0.3626246154308319, 0.41774603724479675, -0.1974024474620819, 0.12721192836761475, -0.7364961504936218, 0.25054314732551575, -0.30279067158699036, -0.03877415135502815, -0.5794529318809509, 0.1881588250398636, -0.022786438465118408, 0.1710258573293686, 0.06818722933530807, -0.6312283873558044, 0.14237870275974274, -0.11758308857679367, 0.5520007014274597, 0.12275151163339615, 0.06769263744354248, 0.6975454688072205, -0.2157348096370697, 0.40863093733787537, 0.0004090022703167051, 0.24961523711681366, -0.48336488008499146, -0.34725040197372437, -0.46085429191589355, 0.07453938573598862, 0.44937536120414734, 0.7219312787055969, -0.6225859522819519, 0.135842427611351, -0.25459763407707214, -0.7489684820175171, -0.24945488572120667, 0.0426592193543911, 0.3430180549621582, 0.4115421772003174, -0.023970259353518486, -0.302944153547287, -0.6021742820739746, -0.8162255883216858, -0.3399365544319153, -0.3516773283481598, -0.0011462363181635737, 1.090111255645752, 0.14838731288909912, -0.37890905141830444, 1.0391935110092163, -0.42828887701034546, -0.2810373306274414, 0.010797782801091671, -0.03502201288938522, 0.24483463168144226, 0.2162119299173355, 0.2987191081047058, -0.8846299648284912, -0.5151886940002441, -0.016773834824562073, -0.37357303500175476, -0.002761662704870105, -0.20518673956394196, -0.15028510987758636, -0.26186972856521606, 0.4793829321861267, -0.7445236444473267, 0.29726338386535645, 0.8462589383125305, -0.4657260477542877, 0.4806877076625824, -0.25867539644241333, 0.3567899465560913, -0.9277366399765015, -0.021545730531215668, 0.14543531835079193, -0.14818523824214935, -0.6642546653747559, -0.5636652112007141, -0.0003667261335067451, -0.28172236680984497, -0.27577880024909973, 0.8752427101135254, 0.09781699627637863, 0.34763097763061523, 0.00032872098381631076, -0.11585972458124161, -0.12557947635650635, 0.14812840521335602, 0.01283523440361023, 0.8880734443664551, 0.25594979524612427, -0.7389205694198608, 0.5587011575698853, 0.587912380695343, -0.40717920660972595, 0.6786295771598816, -0.8577978014945984, 0.06050971522927284, 0.2052125334739685, 0.6579104065895081, -1.0780645608901978, -0.035299286246299744, 0.2357177585363388, -0.2872023284435272, -0.6989156603813171, -0.2900174856185913, -0.10325650870800018, -0.17524220049381256, -0.2609746754169464, 0.2910073697566986, 0.3157019019126892, -0.567593514919281, 0.6202250719070435, 0.6104746460914612, -0.25183579325675964, -0.33993595838546753, -0.15940622985363007, 0.0769982561469078, -0.03981614485383034, -0.7982947826385498, 0.3098992705345154, -0.24087004363536835, -0.20197142660617828, -0.28009939193725586, 0.174910768866539, -0.09491361677646637, -0.38435226678848267, 1.050982117652893, 0.32564738392829895, 0.07953377068042755, 0.4255373179912567, -0.23279520869255066, -0.04990960285067558, -0.17480069398880005, -0.23784424364566803, 0.5252927541732788, -0.17972834408283234, -0.11715530604124069, -0.3826134204864502, 0.15423108637332916, 0.7525962591171265, -0.106922946870327, 0.47442856431007385, 0.5493012070655823, 0.06995058804750443, 0.0821269154548645, -0.6831122040748596, -0.26664188504219055, -0.49153584241867065, -0.0013868390815332532, -0.5176064372062683, -0.8160651922225952, 0.3855704367160797, -0.19577160477638245, 0.0795353427529335, -0.16492174565792084, 0.7088556289672852, -0.1410847157239914, 1.0725499391555786, 0.1602604240179062, -0.2981759309768677, 0.5832037925720215, -0.06463857740163803, 0.20025713741779327, -0.5208703279495239, -0.5813989043235779, -0.4719444215297699, -0.15928702056407928, -0.6738959550857544, -0.2382434755563736, 0.016627002507448196, -0.08216328918933868, -0.2598831355571747, 0.3894004821777344, -0.2501407563686371, 0.3235453963279724, 0.6074945330619812, 0.26225724816322327, 0.09356456249952316, 0.14310921728610992, -0.16036273539066315, -0.010706757195293903, -0.6093084216117859, -0.4340393543243408, 0.9841120839118958, 0.09116090834140778, 1.0981035232543945, -0.18051937222480774, 0.1941261738538742, 0.5857698917388916, 0.046484388411045074, -0.9407833814620972, 0.5161168575286865, -0.24111786484718323, -0.4940390884876251, -0.031113000586628914, -0.25114598870277405, -0.9893895983695984, 0.12153807282447815, -0.37651723623275757, -0.5477750301361084, 0.3799077570438385, 0.30366238951683044, -0.44091910123825073, -0.20018762350082397, -0.9990177154541016, 0.9889553785324097, -0.06882510334253311, -0.5645065903663635, -0.23669014871120453, -0.35272395610809326, 0.1324995458126068, 0.3554159998893738, 0.2373652160167694, -0.1975669413805008, 0.4945184886455536, 0.3956528604030609, -0.36886799335479736, 0.5932373404502869, -0.27747172117233276, -0.07049493491649628, 0.5977057814598083, 0.4204935133457184, 0.9698280096054077, 0.45090633630752563, -0.020973140373826027, -0.047246575355529785, 0.13896159827709198, -0.11043231934309006, -0.4269987642765045, 0.950401246547699, -0.2930840849876404, -0.0819113627076149, -0.21533165872097015, -0.29914993047714233, -0.5020171999931335, 0.004496604669839144, 0.02479696460068226, 0.5286989808082581, -0.7035442590713501, 0.45447272062301636, 0.4221633970737457, -0.07183073461055756, 0.15034717321395874, 0.46734005212783813, -0.19472429156303406, -0.2853112816810608, 1.0949674844741821, -0.29691433906555176, -0.29017770290374756, 0.03875738009810448, 0.11702412366867065, -0.5392583012580872, -0.37079349160194397, -0.4840148389339447, -0.2495207041501999, -0.09470965713262558, 0.09016527235507965, -0.6286218166351318, 0.09866758435964584, -0.019574545323848724, -0.007658814545720816, -0.4023815989494324, -0.13123628497123718, -0.11685426533222198, -0.0198170505464077, 0.409931480884552, 0.49625492095947266, 0.1919250637292862, 0.24522261321544647, -1.000666856765747, 0.46555784344673157, 0.6823747754096985, 0.3822098970413208, -0.05908205360174179, -0.1941462755203247, -0.33907854557037354, 0.4356670081615448, -0.07541368156671524, -0.20956648886203766, 0.37324967980384827, 0.2927725315093994, 0.35572054982185364, 0.561786949634552, 0.23290856182575226, 0.5162558555603027, -0.6586957573890686, 0.884133517742157, 0.36656731367111206, -0.47236379981040955, 0.24270941317081451, -0.479413777589798, 0.16781829297542572, 0.8267440795898438, 0.26292017102241516, -0.9137524366378784, 0.3445710241794586, -0.45389121770858765, -0.7309843301773071, 0.31012028455734253, 0.22926650941371918, 0.4763537049293518, 0.16470389068126678, 0.2632802426815033, 0.27278706431388855, 0.28769031167030334, -0.0945497527718544, -0.07854149490594864, -0.2502550482749939, -0.23235934972763062, -0.3535744249820709, -0.487253874540329, -0.3031214475631714, -0.24876965582370758, 0.5099813342094421, 0.04853980988264084, -0.00569021375849843, -0.019056279212236404, 0.046342432498931885, 0.3885970413684845, 0.16523143649101257, 0.6208450198173523, 0.4999607503414154, -0.3835081458091736, 0.06620219349861145, 0.11678541451692581, -0.7842761278152466, 0.3140614330768585, 0.020283374935388565, 0.06358002871274948, -0.055225975811481476, -0.33607473969459534, 0.931013286113739, 0.15623383224010468, -0.8974705934524536, 0.4617891013622284, -0.6102269291877747, -0.07406020164489746, -0.39498892426490784, 0.16536246240139008, 0.1866811364889145, 0.12334353476762772, 0.20542876422405243, 0.1249193623661995, 0.3829593360424042, -0.5889252424240112, 0.32176095247268677, 0.5064595341682434, -0.8820697069168091, -0.22132021188735962, 0.1673005074262619, 0.7800469994544983, -0.3057292699813843, 0.546222448348999, 0.030346935614943504, -0.11209413409233093, 0.3008345067501068, 0.20440788567066193, 0.6687745451927185, -0.2195635885000229, 0.6345133185386658, 0.4366682767868042, -0.11435733735561371, -0.20272870361804962, 0.06215379387140274, -0.32630833983421326, -0.7643347382545471, -0.02697809785604477, -0.3162747025489807, -0.6868597269058228, 0.0404944010078907, -0.40541672706604004, 0.2636866867542267, -0.15604792535305023, -0.3330916464328766, 0.050696976482868195, -0.07290362566709518, -0.4313097596168518, 0.23267798125743866, 0.010411783121526241, 0.7015319466590881, -0.587227463722229, 0.639098584651947, 0.6755611300468445, 0.1709459275007248, -0.545511782169342, -0.23364341259002686, -0.24418920278549194, -0.26123589277267456, 0.4186045229434967, -0.037386465817689896, -0.47388237714767456, -0.2439243644475937, -0.6422869563102722, -0.2740483283996582, 0.7189317345619202, 0.14031463861465454, -0.6416403651237488, 0.5348363518714905, 0.253340482711792, 0.43223801255226135, -0.6847037076950073, 0.37358635663986206, 0.557546079158783, 0.19558489322662354, 0.4723370373249054, -0.8365352153778076, 0.03977341949939728, -0.4715544581413269, 0.09823380410671234, 0.046722542494535446, -0.670258641242981, 0.48233628273010254, -0.27114972472190857, 0.06936571002006531, -0.06086796149611473, 0.20328274369239807, 0.4250544309616089, 0.54048091173172, 0.5349459648132324, 0.25098225474357605, 0.5458139777183533, 0.11394167691469193, 0.9633751511573792, -0.2521183490753174, 0.145186647772789, 1.3564655780792236, -0.7019472122192383, 0.9034543037414551, 0.4860164523124695, -0.16001346707344055, 0.6696909070014954, 0.9317212104797363, 0.02262199856340885, 0.7932328581809998, 0.3046077787876129, -0.5363569259643555, -0.228037491440773, -0.45305728912353516, -0.4784916341304779, 0.4717073440551758, 0.32458969950675964, -0.05372675135731697, 0.1329711675643921, 0.020039396360516548, -0.20192517340183258, -0.2452738732099533, -0.048936497420072556, 0.8266982436180115, 0.06685305386781693, -0.5853723287582397, 0.740439236164093, -0.15406565368175507, 0.6401442289352417, -0.5607779622077942, -0.3172368109226227, -0.2915228605270386, 0.2076863944530487, -0.35510507225990295, -0.5934679508209229, -0.15527589619159698, -0.23592478036880493, -0.4409539997577667, 0.06716616451740265, 0.9424341917037964, -0.5031933784484863, -0.22120755910873413, 0.017551792785525322, 0.18750005960464478, 0.10232149064540863, -0.36360612511634827, -0.6121813058853149, -0.054993849247694016, 0.03768736869096756, -0.036587439477443695, 0.1392197459936142, 0.12365183234214783, -0.15256252884864807, 0.9668458700180054, 0.9759390950202942, -0.20072826743125916, -0.18852688372135162, -0.0034608368296176195, 0.7135095000267029, -0.6356337070465088, -0.6764686107635498, -0.601952314376831, 0.3862905502319336, -0.16369856894016266, -0.39412495493888855, 0.6973935961723328, 0.7930132150650024, 0.5510566234588623, -0.17918661236763, 0.7971517443656921, -0.14468573033809662, 0.41001203656196594, -0.2672678232192993, 0.6600297093391418, -0.19688266515731812, 0.33721888065338135, 0.10786376893520355, -0.8711363673210144, 0.11630304157733917, 0.49955058097839355, -0.26525160670280457, 0.087438203394413, 0.35313379764556885, 0.8905777335166931, -0.2702188491821289, 0.41178250312805176, 0.16413603723049164, -0.0746661126613617, 0.1623566895723343, 0.4660969078540802, 0.9895952343940735, -0.5062676668167114, 0.8126958012580872, -0.021396923810243607, 0.05183729529380798, -0.5159100294113159, -0.7409222722053528, -0.9716089963912964, -0.6696702241897583, -0.05957316234707832, -0.5449594259262085, 0.4116429388523102, 0.9603837728500366, 1.0533987283706665, -1.0389328002929688, -0.6219463348388672, -0.18290214240550995, -0.043862875550985336, -0.06266537308692932, -0.21042032539844513, 0.10227861255407333, 0.23900344967842102, -0.36671552062034607, 0.620353639125824, -0.009719847701489925, 0.07141268998384476, 0.07426011562347412, -0.3740200102329254, -0.07240297645330429, 0.010121583938598633, 0.7748889923095703, 0.4552190601825714, -0.12023276090621948, 0.03355872631072998, -0.11166160553693771, -0.2448110282421112, 0.024294568225741386, 1.1675083637237549, -1.1354689598083496, 0.659665584564209, 0.26546189188957214, 0.2680242657661438, 0.857523500919342, 0.14598166942596436, 0.7754711508750916, -0.5746672749519348, 0.3898047208786011, 0.09883669018745422, -0.3320808708667755, 0.06597534567117691, -0.222096249461174, 0.5331441760063171, -0.12048809230327606, -0.4030835032463074, -0.7850125432014465, 0.060300201177597046, -0.8693791627883911, 0.028763365000486374, 1.2198657989501953, -0.13183313608169556, 0.13521698117256165, -0.4524441063404083, -0.7157848477363586, -0.25168654322624207, -1.0166082382202148, 0.6007583737373352, 0.6974363923072815, -0.22101950645446777, -0.07134885340929031, -0.7290810346603394, 0.598559558391571, 0.12589451670646667, -0.6931257843971252, 0.38970884680747986, 0.3089110851287842, 0.15063180029392242, -0.14825424551963806, 0.5538463592529297, 0.1719537079334259, 0.10612346231937408, -0.049410123378038406, 0.032991815358400345, -0.03338129073381424, -0.14002157747745514, 0.011788345873355865, 0.18946871161460876, -0.31683415174484253, -0.41274818778038025 ]
http://arxiv.org/abs/2405.17732v2
http://arxiv.org/pdf/2405.17732v2
C$^{3}$Bench: A Comprehensive Classical Chinese Understanding Benchmark for Large Language Models
2024-05-28T01:23:58
2024-05-30T11:32:05
Jiahuan Cao, Yongxin Shi, Dezhi Peng, Yang Liu, Lianwen Jin
cs.CL
cs.CL
Classical Chinese Understanding (CCU) holds significant value in preserving and exploration of the outstanding traditional Chinese culture. Recently, researchers have attempted to leverage the potential of Large Language Models (LLMs) for CCU by capitalizing on their remarkable comprehension and semantic capabilities. However, no comprehensive benchmark is available to assess the CCU capabilities of LLMs. To fill this gap, this paper introduces C$^{3}$bench, a Comprehensive Classical Chinese understanding benchmark, which comprises 50,000 text pairs for five primary CCU tasks, including classification, retrieval, named entity recognition, punctuation, and translation. Furthermore, the data in C$^{3}$bench originates from ten different domains, covering most of the categories in classical Chinese. Leveraging the proposed C$^{3}$bench, we extensively evaluate the quantitative performance of 15 representative LLMs on all five CCU tasks. Our results not only establish a public leaderboard of LLMs' CCU capabilities but also gain some findings. Specifically, existing LLMs are struggle with CCU tasks and still inferior to supervised models. Additionally, the results indicate that CCU is a task that requires special attention. We believe this study could provide a standard benchmark, comprehensive baselines, and valuable insights for the future advancement of LLM-based CCU research. The evaluation pipeline and dataset are available at \url{https://github.com/SCUT-DLVCLab/C3bench}.
[ -0.1724691241979599, -0.7070989608764648, 0.8210349082946777, 0.4239652752876282, -0.328478068113327, -0.09023252129554749, -0.6898841857910156, -0.5212400555610657, -0.42011696100234985, 0.3266918659210205, -0.15290583670139313, -0.6035768389701843, -0.34402263164520264, -0.13140363991260529, -0.40099042654037476, 0.3642329275608063, -0.11809548735618591, 0.4888859987258911, -0.0870148316025734, -0.16131238639354706, -0.41173774003982544, -0.3851653039455414, -0.6769771575927734, -0.31460970640182495, 0.4582102596759796, 0.4379914700984955, 0.4514835774898529, 0.8301419615745544, 0.4896174669265747, 0.21118779480457306, -0.10520300269126892, 0.06652404367923737, -0.6295210123062134, -0.2902328372001648, -0.05709297955036163, -0.5139560103416443, -0.5153972506523132, 0.027178896591067314, 0.9889110922813416, 0.820857584476471, -0.07250674068927765, -0.04220399260520935, 0.42324644327163696, 0.7167425155639648, -0.8570777773857117, 0.33116480708122253, -0.6784451603889465, -0.03752688691020012, -0.5777168273925781, 0.029289383441209793, -0.6318237781524658, -0.14265508949756622, -0.021403534337878227, -0.854852557182312, 0.31138214468955994, 0.0033073388040065765, 0.6460936665534973, -0.014611396938562393, -0.42567211389541626, 0.22175255417823792, -0.370988130569458, 0.8265382051467896, -0.7816433906555176, 0.4265570044517517, 0.3243160843849182, 0.5734754800796509, -0.07100804895162582, -0.7870063781738281, -0.6537909507751465, -0.356035441160202, -0.10019581019878387, 0.3748108446598053, 0.04863815754652023, 0.08098629862070084, 0.1852228045463562, 0.7193861603736877, -0.6463125348091125, 0.32138293981552124, 0.004447381943464279, 0.18517525494098663, 0.4851817786693573, 0.3176276385784149, 0.2603142261505127, -0.05275333300232887, -0.34605908393859863, -0.20085006952285767, -0.7017300724983215, 0.21489904820919037, -0.14807504415512085, 0.23384350538253784, -0.22462521493434906, 0.2275913655757904, -0.23557133972644806, 0.9661298990249634, -0.1450897455215454, -0.0789484903216362, -0.059032127261161804, -0.47721409797668457, -0.4257493019104004, -0.08026201277971268, 0.8509462475776672, 0.13113702833652496, 0.11039773374795914, -0.18041753768920898, -0.05086282268166542, -0.2504735291004181, -0.0863935574889183, -0.6906527280807495, -0.2833751440048218, 0.05626896768808365, -0.5036555528640747, -0.012183812446892262, 0.15658417344093323, -0.2767177224159241, -0.6161007881164551, -0.45782941579818726, -0.26403576135635376, -0.6431092023849487, -0.2804587483406067, 0.02262616902589798, 0.17147736251354218, 0.7494854927062988, 0.4190307557582855, -0.8984678387641907, 0.5051813721656799, 0.9644456505775452, 0.831579327583313, -0.5206882953643799, -0.33929821848869324, -0.44110608100891113, 0.24092739820480347, -0.3725258708000183, 0.6327438950538635, -0.3297485113143921, -0.34950122237205505, 0.055210523307323456, 0.1916864812374115, -0.17302246391773224, -0.5554486513137817, 0.7838607430458069, -0.282540500164032, -0.3908298909664154, -0.5135720372200012, -0.32936233282089233, -0.2455025017261505, 0.40387776494026184, -0.7796632647514343, 0.7287929654121399, -0.13288700580596924, -0.586169421672821, 0.07893569022417068, -0.20597848296165466, -0.32700130343437195, 0.3549145460128784, -0.1976977437734604, -0.15536516904830933, 0.019280115142464638, 0.30582311749458313, 0.5372656583786011, -0.7131795883178711, 0.3908919394016266, -0.7975950241088867, -0.6690049767494202, 0.4499892294406891, -0.3254939317703247, 0.7689110636711121, 0.23997706174850464, -0.3435615003108978, -0.07156374305486679, -0.629418671131134, -0.011632325127720833, 0.02324032410979271, -0.0448855459690094, -0.293073832988739, 0.2430620789527893, 0.3963977098464966, -0.12380748242139816, 0.33844271302223206, -0.31258678436279297, -0.020977795124053955, -0.21547375619411469, 0.43282550573349, 0.7347293496131897, -0.337912380695343, 0.2835191488265991, -0.184549942612648, 0.1511608213186264, -0.14200885593891144, -0.001068583456799388, -0.009575583972036839, 0.11463084071874619, -0.8248243927955627, -0.3746817708015442, 0.19344966113567352, 0.3794974088668823, -0.6621938347816467, 0.11010966449975967, -0.36654895544052124, -0.6413328051567078, -0.27989673614501953, 0.1529083400964737, 0.4184149205684662, 0.16835568845272064, 0.4483058452606201, -0.06040026247501373, -0.14490075409412384, -0.9035736918449402, -0.4426177144050598, -0.09844215959310532, -0.15066803991794586, 0.5723527669906616, 0.1549079418182373, 0.24999749660491943, 0.5268285870552063, -0.37000155448913574, -0.21707157790660858, -0.3913135826587677, 0.09982320666313171, 0.2927519977092743, 0.4411180913448334, 0.43270865082740784, -0.7466071844100952, -0.5117046236991882, 0.4072194993495941, -0.8021478056907654, 0.036632243543863297, -0.27475106716156006, -0.14731058478355408, -0.015676861628890038, 0.4241313934326172, -0.2971969246864319, 0.03213534504175186, 0.6285659074783325, 0.14388291537761688, 0.5641396045684814, 0.14610172808170319, 0.11969979107379913, -0.905707061290741, 0.4791484475135803, 0.2589395046234131, -0.02403537929058075, -0.5431408286094666, 0.4475152790546417, 0.5765348672866821, 0.040295034646987915, -0.5916945934295654, 0.3947908282279968, -0.5895030498504639, -0.1314975917339325, -0.17571477591991425, 0.83460932970047, -0.22699007391929626, 0.5391818881034851, 0.29841333627700806, 0.33519235253334045, 0.2753952741622925, -0.5850321650505066, 0.37820494174957275, -0.1195153221487999, -0.44554951786994934, 0.6162199378013611, -0.6808685660362244, 0.16488304734230042, 0.33590540289878845, 0.5184673070907593, -0.7963560819625854, -0.17813853919506073, 0.18392157554626465, -0.36272263526916504, 0.22395575046539307, 0.024517666548490524, -0.721064031124115, -0.27820849418640137, -0.19939884543418884, 0.6014479398727417, 0.017299674451351166, -0.6333042979240417, 0.32334190607070923, 0.023994840681552887, 0.1673664003610611, -0.6898382902145386, -0.7547664046287537, 0.10723055899143219, -0.0387357659637928, -0.5369958281517029, 0.4125937223434448, -0.18906565010547638, -0.2865924835205078, -0.11197691410779953, -0.22448143362998962, -0.2199205607175827, 0.3201773166656494, 0.0013057998148724437, 0.5224283337593079, -0.37683144211769104, -0.04246397316455841, -0.3143450617790222, 0.08561491221189499, 0.12308911234140396, -0.16854716837406158, 0.3984721899032593, -0.24735558032989502, -0.38643506169319153, -0.6000811457633972, -0.21131427586078644, 0.4440929591655731, -0.4157847464084625, 0.48972004652023315, 0.6300629377365112, -0.43576762080192566, -0.13287466764450073, -0.5256941914558411, 0.11562268435955048, -0.4226425588130951, 0.305478572845459, -0.4790284037590027, -0.8819826245307922, 0.2929781973361969, 0.07333879172801971, 0.1298302561044693, 0.3711828887462616, 0.45794785022735596, 0.1529662162065506, 0.8184577822685242, 0.32824814319610596, -0.33674293756484985, 0.331173300743103, -0.1674555093050003, 0.10608142614364624, -0.9750926494598389, -0.007165612652897835, -0.6200735569000244, -0.20572184026241302, -0.6782683730125427, -0.4583423435688019, 0.14136430621147156, 0.3126949071884155, -0.22374725341796875, 0.3746730089187622, -0.2516542077064514, 0.24494950473308563, 0.1911805123090744, 0.2843811511993408, 0.44345614314079285, -0.5308116674423218, 0.02880355343222618, 0.024668509140610695, -0.40428176522254944, -0.3813855051994324, 0.8079259991645813, 0.2544739842414856, 0.46015357971191406, 0.2665248513221741, 0.34073513746261597, -0.12112875282764435, 0.449745237827301, -0.8203198909759521, 0.5565100312232971, -0.26367059350013733, -0.41599106788635254, -0.10512115061283112, -0.48215457797050476, -0.8113070130348206, 0.4785158932209015, -0.1454342007637024, -0.6934537887573242, 0.07236628979444504, -0.002239724388346076, -0.21000801026821136, 0.36675581336021423, -0.36605915427207947, 1.0612045526504517, -0.3675040006637573, -0.6654439568519592, -0.5029140114784241, -0.32631778717041016, 1.0660442113876343, -0.23044128715991974, 0.3226552903652191, -0.1131129190325737, -0.11563295125961304, 0.47188717126846313, -0.10856616497039795, 0.664947509765625, -0.044320084154605865, 0.04529191926121712, 0.10965366661548615, 0.03583837300539017, 0.4116133153438568, 0.278634637594223, -0.05015070363879204, -0.0683465301990509, 0.21929538249969482, -0.8253801465034485, -0.5110431909561157, 1.1276497840881348, -0.772551417350769, -0.5301205515861511, -0.5206279158592224, -0.45853716135025024, -0.22844074666500092, 0.2241119146347046, -0.2266746312379837, 0.2122039496898651, -0.6201785206794739, 0.5720850229263306, 0.4647926688194275, -0.3330082297325134, 0.6306049823760986, 0.8337196111679077, 0.22272241115570068, -0.3036694824695587, 0.7379550933837891, -0.1405894011259079, 0.2543943524360657, 0.6611869931221008, -0.11085891723632812, -0.0874868780374527, -0.8363996148109436, -0.24150621891021729, 0.2708152234554291, -0.45452427864074707, -0.09379171580076218, -0.44617509841918945, -0.18841204047203064, -0.3367284834384918, -0.06948010623455048, -0.1468811333179474, -0.07448840886354446, -0.30632656812667847, 0.05063682422041893, -0.12962780892848969, 0.5553215742111206, 0.05328717082738876, 0.30106616020202637, -0.7205801010131836, 0.382743775844574, 0.22105948626995087, 0.44220858812332153, 0.3100936710834503, -0.33059221506118774, -0.54998379945755, 0.014279060997068882, -0.45326176285743713, -0.579125165939331, 0.22948794066905975, -0.15169864892959595, 0.7789629101753235, 0.6735491156578064, 0.15310005843639374, 0.9051528573036194, -0.1898762583732605, 0.9448623061180115, 0.13149809837341309, -1.2070980072021484, 0.3109714984893799, -0.47886115312576294, 0.4030514657497406, 0.5882205367088318, 0.14067667722702026, -0.8219656348228455, -0.2956199049949646, -0.503129243850708, -0.6671628355979919, 0.8818381428718567, 0.021905114874243736, -0.30194488167762756, 0.057486169040203094, 0.2672591805458069, -0.24637222290039062, -0.23799720406532288, -0.9116425514221191, -0.14730805158615112, -0.019901413470506668, 0.053283240646123886, -0.3641859292984009, 0.05078376829624176, 0.12039918452501297, -0.10280741751194, 0.5625454783439636, -0.18651001155376434, -0.17130880057811737, 0.13535672426223755, -0.42894694209098816, 0.1061721220612526, 0.28091999888420105, 0.3522503972053528, 0.7917740345001221, -0.2383071631193161, 0.09001632034778595, 0.5825951099395752, -0.37939539551734924, -0.35984566807746887, 0.3266232907772064, 0.30084314942359924, -0.3063896894454956, 0.5605422258377075, 0.48369890451431274, 0.440616637468338, -0.6443893909454346, 0.5145421624183655, -0.2256826013326645, -0.16583877801895142, -0.4995608627796173, -0.03775220736861229, 0.15458089113235474, 0.017026817426085472, 0.3377644717693329, -0.265185683965683, 0.2141057401895523, -0.5472235679626465, 0.05192255973815918, 0.2739579677581787, -0.7234236001968384, -0.08428659290075302, 0.6094045639038086, 0.11489128321409225, 0.28856560587882996, 0.6849558353424072, 0.06928589195013046, -0.30570533871650696, 0.5762020945549011, 0.36682021617889404, 0.7161416411399841, -0.048787977546453476, -0.1307879239320755, 0.663957417011261, 0.18283148109912872, -0.27163007855415344, -0.2509090006351471, -0.2756390869617462, -0.545190691947937, -0.5992564558982849, -0.414863258600235, -0.5610208511352539, 0.2777753472328186, -0.8669310808181763, 0.4835266172885895, -0.5435203909873962, 0.442859947681427, -0.015047738328576088, 0.32486772537231445, -0.6322274804115295, 0.14820894598960876, 0.4570121169090271, 1.1113646030426025, -0.44164419174194336, 1.283660888671875, 0.3521292507648468, -0.2766801118850708, -0.8073548078536987, 0.020789628848433495, 0.21506322920322418, -0.8286208510398865, 0.4577038884162903, 0.2583840489387512, -0.1179896742105484, -0.16677738726139069, -0.71453458070755, -0.4497840106487274, 1.3478397130966187, 0.17486722767353058, -0.8862239122390747, 0.3203391432762146, 0.0015274452744051814, 0.45934513211250305, -0.3053136467933655, 0.4919683337211609, 1.0907797813415527, 0.7349691390991211, -0.08286436647176743, -0.7511264085769653, 0.3801901042461395, -0.3691491186618805, 0.05252053216099739, -0.11113990843296051, -0.9350976347923279, 0.6740381121635437, 0.03244128078222275, -0.4170721471309662, 0.5762017369270325, 0.7158226370811462, 0.6322568655014038, 0.4311315417289734, 0.471415251493454, 0.4526282548904419, 0.6198886632919312, -0.45112377405166626, 1.0701689720153809, -0.33288702368736267, 0.2174859493970871, 1.055570363998413, -0.10210607945919037, 1.0227108001708984, 0.02366429567337036, -0.23271438479423523, 0.35614845156669617, 0.9691449999809265, -0.1443149745464325, 0.09721694886684418, 0.5821237564086914, -0.36430391669273376, -0.45810967683792114, -0.16673004627227783, -0.43704289197921753, 0.3655381500720978, 0.4266020357608795, -0.159676194190979, 0.12201126664876938, -0.39567574858665466, 0.2908259630203247, 0.3223063051700592, -0.25835567712783813, 0.5943694710731506, 0.2550308108329773, -0.7420526742935181, 0.8221296072006226, 0.05920744314789772, 0.36885103583335876, -0.5013564825057983, -0.0029084538109600544, -0.3770575225353241, 0.3747725188732147, -0.16844214498996735, -0.6388074159622192, -0.3320915699005127, -0.14782783389091492, 0.14663632214069366, -0.039998821914196014, 0.2724621891975403, -0.30492350459098816, -0.21289770305156708, 0.4013873338699341, 0.3319207727909088, 0.16041123867034912, -0.26985234022140503, -0.6216483116149902, 0.2417483776807785, -0.04915832355618477, 0.07425428926944733, 0.2950042188167572, 0.606602132320404, 0.0729164332151413, 0.3580273389816284, 0.6644768714904785, 0.002453609835356474, -0.51634681224823, 0.26738062500953674, 0.791939914226532, -1.0142583847045898, -0.14946159720420837, -0.8745088577270508, 0.22231750190258026, -0.21966363489627838, -0.2197359949350357, 0.727089524269104, 0.7327256798744202, 0.8365911245346069, 0.24335698783397675, 0.8441619873046875, 0.016611572355031967, 0.2339872419834137, -0.44529807567596436, 0.7052396535873413, -0.5662941336631775, 0.22303658723831177, -0.4059472382068634, -0.9373601078987122, -0.5013927817344666, 0.1916898488998413, -0.41535449028015137, -0.2865132987499237, 1.0440707206726074, 0.5577002167701721, -0.07868300378322601, 0.31182512640953064, 0.358515202999115, 0.3980051577091217, 0.3262847065925598, 1.078058123588562, 0.8136106729507446, -0.3452834486961365, 0.8024562001228333, -0.1963863968849182, -0.4135228395462036, -0.11801394820213318, -0.6180670261383057, -0.9189404845237732, -0.474620521068573, 0.13944916427135468, -0.23505628108978271, 0.14751385152339935, 0.5328801274299622, 0.6259430050849915, -0.7884246706962585, -0.5934600234031677, -0.18827778100967407, 0.1418524533510208, -0.5856590867042542, -0.2099793702363968, 0.5931140184402466, -0.5990305542945862, -0.956367552280426, 0.4092382788658142, 0.01580977439880371, -0.18154144287109375, -0.18452298641204834, -0.1796419471502304, -0.06847252696752548, -0.3051632046699524, 0.5067329406738281, 0.3875136077404022, -0.9398419857025146, -0.13107536733150482, 0.23239780962467194, -0.23294301331043243, -0.1392073631286621, 1.0590187311172485, -0.6406220197677612, 0.4791821539402008, 0.3799237906932831, 0.7704676985740662, 0.9399477243423462, -0.1720069795846939, 0.7777604460716248, -0.1737707406282425, -0.05646902695298195, -0.07973641157150269, 0.5951569676399231, 0.48031529784202576, -0.08061043918132782, 0.6387839317321777, 0.27108731865882874, -0.5444239974021912, -0.5698076486587524, -0.1111440509557724, -1.4643906354904175, -0.4289851784706116, 1.0523546934127808, -0.33849769830703735, -0.2948075234889984, 0.054908983409404755, -0.19636443257331848, 0.3590564727783203, -0.25067877769470215, 0.46844011545181274, 0.8227488398551941, 0.029316728934645653, -0.5110697150230408, -0.7414171695709229, 0.22873808443546295, 0.541501522064209, -0.6894819140434265, 0.49614059925079346, 0.5042366981506348, -0.07703138887882233, -0.24233636260032654, 0.36537396907806396, -0.25810712575912476, 0.5942180156707764, -0.22127731144428253, 0.020533205941319466, 0.21125482022762299, 0.12650254368782043, -0.14418163895606995, -0.019507549703121185, 0.2866710424423218, -0.023833680897951126 ]
http://arxiv.org/abs/2405.18448v1
http://arxiv.org/pdf/2405.18448v1
Multi-objective Representation for Numbers in Clinical Narratives Using CamemBERT-bio
2024-05-28T01:15:21
2024-05-28T01:15:21
Boammani Aser Lompo, Thanh-Dung Le
cs.CL
cs.CL, eess.SP
This research aims to classify numerical values extracted from medical documents across seven distinct physiological categories, employing CamemBERT-bio. Previous studies suggested that transformer-based models might not perform as well as traditional NLP models in such tasks. To enhance CamemBERT-bio's performances, we introduce two main innovations: integrating keyword embeddings into the model and adopting a number-agnostic strategy by excluding all numerical data from the text. The implementation of label embedding techniques refines the attention mechanisms, while the technique of using a `numerical-blind' dataset aims to bolster context-centric learning. Another key component of our research is determining the criticality of extracted numerical data. To achieve this, we utilized a simple approach that involves verifying if the value falls within the established standard ranges. Our findings are encouraging, showing substantial improvements in the effectiveness of CamemBERT-bio, surpassing conventional methods with an F1 score of 0.89. This represents an over 20\% increase over the 0.73 $F_1$ score of traditional approaches and an over 9\% increase over the 0.82 $F_1$ score of state-of-the-art approaches. All this was achieved despite using small and imbalanced training datasets.
[ -0.2769598364830017, -0.4243130683898926, 0.8064022660255432, 0.39188581705093384, -0.5144553184509277, 0.2083318680524826, -0.14445284008979797, -0.32456764578819275, 0.4445973336696625, 0.4855722486972809, -0.2627221941947937, -0.7847834825515747, -0.8588093519210815, 0.3619123697280884, 0.1640649437904358, 1.1552605628967285, 0.13726435601711273, 0.5252022743225098, -0.34428539872169495, -0.44888579845428467, -0.6131877899169922, -0.7892434597015381, -0.34831753373146057, -0.5293252468109131, 0.69740891456604, 0.08977954834699631, 0.6101127862930298, 0.7591943740844727, 1.1757138967514038, 0.2024916410446167, 0.00932373572140932, 0.16405166685581207, -0.22676384449005127, 0.08147454261779785, 0.0852799266576767, -0.5242547392845154, -0.6045815944671631, -0.09795169532299042, 0.5144906640052795, 0.7682726979255676, -0.15150171518325806, 0.09621823579072952, -0.02636420540511608, 0.8940489292144775, -0.3784601092338562, 0.5144250988960266, -0.3227118253707886, 0.41582077741622925, -0.10896620154380798, -0.2691502273082733, -0.7874460220336914, -0.5187170505523682, 0.11233680695295334, -0.6137344241142273, 0.24138440191745758, -0.21084000170230865, 0.3884662687778473, 0.5422785878181458, -0.4526422321796417, -0.313085675239563, -0.44889146089553833, 0.8704641461372375, -0.7091876268386841, 0.49286893010139465, 0.4810451567173004, 0.12950833141803741, 0.40952032804489136, -0.7573274374008179, 0.004271609243005514, -0.10097745060920715, -0.326088547706604, 0.5757772922515869, -0.11500237137079239, 0.1094224750995636, 0.3896661400794983, 0.33434832096099854, -0.6219216585159302, -0.1849011331796646, -0.5552555918693542, -0.27387502789497375, 0.7074087858200073, 0.25416409969329834, 0.08943121880292892, -0.12359670549631119, -0.12957482039928436, -0.1269863247871399, -0.4882563650608063, -0.19524674117565155, -0.3043539226055145, 0.3479577600955963, -0.1405872106552124, 0.5951266288757324, 0.10648518800735474, 0.6551586985588074, 0.12844912707805634, -0.4211026430130005, 0.8007400631904602, -0.1903420239686966, -0.037976961582899094, 0.4461395740509033, 0.7410595417022705, 0.3766044080257416, 0.14824818074703217, -0.32040876150131226, 0.16003644466400146, 0.2482517510652542, 0.6426571011543274, -0.9238980412483215, 0.0752599835395813, 0.1975647658109665, -0.7528823614120483, -0.6568101048469543, 0.009674138389527798, -0.8579657673835754, -0.3465394675731659, -0.28973129391670227, 0.1272849291563034, -0.6931989789009094, 0.07601707428693771, 0.24312786757946014, -0.03638111427426338, -0.06632847338914871, 0.49633175134658813, -0.8356738686561584, 0.25286009907722473, 0.5286353230476379, 0.9449841976165771, -0.01882888376712799, 0.18262076377868652, -0.142989844083786, 0.20734992623329163, -0.3721972703933716, 0.8038116097450256, -0.5901815891265869, -0.45561322569847107, -0.1927390843629837, -0.12378421425819397, -0.17036207020282745, -0.614294171333313, 0.6560509204864502, -0.29989686608314514, 0.03701459988951683, -0.23417454957962036, -0.49719682335853577, -0.4517282545566559, 0.34058263897895813, -0.7820391654968262, 0.904776930809021, 0.1364322006702423, -0.6753528714179993, 0.3634493947029114, -0.7432550191879272, -0.3359197974205017, 0.3121028542518616, -0.49223247170448303, -0.5091656446456909, 0.3968822956085205, 0.21219532191753387, 0.4306579530239105, -0.49449482560157776, 0.8141371607780457, -0.1436859518289566, -0.07125501334667206, 0.38653287291526794, -0.6476179957389832, 0.45900386571884155, -0.05018608644604683, -0.1748637855052948, -0.25693950057029724, -0.946682333946228, 0.11440575867891312, -0.08193004131317139, -0.2791743874549866, -0.38266709446907043, -0.12483890354633331, -0.19590647518634796, 0.23676522076129913, -0.18639273941516876, -0.7769747972488403, 0.21915404498577118, -0.40450167655944824, 0.18347495794296265, 0.19843481481075287, 0.2010755091905594, 0.09702416509389877, -0.5986770987510681, 0.5410601496696472, 0.08789517730474472, -0.17239154875278473, -0.21906402707099915, -0.6839478611946106, -0.2714442014694214, -0.5173668265342712, 0.4214566946029663, 0.7244150042533875, -0.6565841436386108, 0.38191795349121094, -0.3044699728488922, -0.6894528865814209, -0.8498867154121399, -0.24180015921592712, 0.4166354537010193, 0.6997849345207214, 0.7201547026634216, -0.5489882826805115, -0.1594376415014267, -0.8903589248657227, -0.042294830083847046, -0.14690734446048737, -0.1534164845943451, 0.472307026386261, 0.4036756455898285, -0.3414302468299866, 0.781277596950531, -0.957123339176178, -0.43302175402641296, -0.019177787005901337, 0.30418989062309265, 0.45396509766578674, 0.5562077760696411, 0.6870865821838379, -0.8914486169815063, -0.4882468283176422, 0.24909114837646484, -1.227968692779541, -0.2035406529903412, -0.09783580899238586, 0.35103002190589905, -0.2904386818408966, 0.3645368814468384, -0.36762329936027527, 0.8245077729225159, 0.17510804533958435, -0.11659273505210876, 0.2509578466415405, -0.1795412003993988, 0.28693124651908875, -0.9041344523429871, 0.08080045878887177, 0.3392721116542816, -0.2095446139574051, -0.6154872179031372, -0.17592979967594147, 0.28512972593307495, -0.36006787419319153, -0.3764643967151642, 0.39021235704421997, -0.02560611069202423, 0.4641721546649933, 0.056796204298734665, -0.4231799840927124, 0.19355405867099762, 0.5423243045806885, 0.4006001353263855, 0.2966736853122711, 0.3369547724723816, -0.16052639484405518, 0.31231385469436646, 0.35424602031707764, 0.00010067372932098806, 0.6701067686080933, -0.8233023285865784, 0.17547696828842163, -0.488128662109375, 0.4555722177028656, -1.0781638622283936, -0.17571693658828735, 0.363960325717926, -0.5465518236160278, 0.3694649636745453, -0.13788005709648132, -0.5111789107322693, -0.3250189423561096, -0.396050363779068, 0.6085174083709717, 0.20954130589962006, 0.030628923326730728, 0.5756093859672546, 0.2468932867050171, -0.669331967830658, -0.2324274480342865, -0.8299099802970886, -0.012165618129074574, -0.4919348359107971, -0.42703977227211, 0.6980535984039307, -0.11851121485233307, -0.2505496144294739, -0.233711376786232, 0.042246654629707336, -0.41370463371276855, -0.33571571111679077, 0.18042117357254028, 0.20693683624267578, -0.34154072403907776, 0.55726158618927, 0.3230336010456085, -0.5015607476234436, 0.09156102687120438, 0.07257825881242752, 0.22291435301303864, -0.2148703634738922, -0.31682369112968445, -0.35700467228889465, 0.4809330403804779, 0.7624555826187134, -0.335235595703125, 0.8325129151344299, 0.7744243741035461, -0.6182220578193665, 0.32919174432754517, -0.5251074433326721, -0.2479361742734909, -0.3416959047317505, 0.3334892988204956, -0.20219434797763824, -0.6332497596740723, 0.5690892934799194, -0.29096662998199463, 0.03357798606157303, 0.5550220012664795, 0.6533862352371216, -0.004912136122584343, 1.131820797920227, 0.22412225604057312, 0.4231916666030884, 0.06375817954540253, -0.20203302800655365, 0.09507596492767334, -0.7578995823860168, -0.5934617519378662, -0.39307326078414917, -0.20448662340641022, -0.3906964957714081, -0.39443907141685486, 0.8798835277557373, -0.34187859296798706, -0.10785259306430817, 0.052095092833042145, -0.8535425662994385, 0.17318621277809143, 0.10032056272029877, 0.7739510536193848, 0.23903009295463562, -0.07843318581581116, -0.19514136016368866, -0.6504403948783875, -0.859561026096344, -0.3403627276420593, 1.2495324611663818, 0.6535176038742065, 0.7041993737220764, 0.23693886399269104, 0.8640230894088745, 0.3435503840446472, 1.0545158386230469, -1.1565455198287964, 0.2456376999616623, -0.3342471718788147, -0.7595553398132324, -0.13646024465560913, -0.34085696935653687, -0.7866365909576416, 0.5380313396453857, -0.18632203340530396, -0.6287946701049805, 0.44146859645843506, -0.05081966519355774, -0.7748034596443176, 0.0035116001963615417, -0.6323844790458679, 0.7553337812423706, -0.6035157442092896, -0.5036470293998718, -0.10773885995149612, -0.8348621129989624, 0.1960165798664093, -0.6484457850456238, 0.4597644805908203, -0.011632333509624004, -0.11038371920585632, 0.8899226188659668, -0.5437374711036682, 1.0989875793457031, -0.01361028477549553, 0.003962379414588213, 0.11804446578025818, -0.2299988716840744, 0.13403862714767456, 0.34764206409454346, -0.24618014693260193, 0.42218583822250366, 0.23310613632202148, -0.24408775568008423, -0.628584086894989, 0.28178730607032776, -0.5543815493583679, -0.2756099998950958, -0.7624239921569824, -0.5538105964660645, -0.3322826623916626, 0.15206027030944824, 0.3193962275981903, 0.8321042656898499, -0.14522789418697357, 0.7976287603378296, 0.6473623514175415, -0.5253561735153198, 0.10861985385417938, 0.37567564845085144, 0.07784430682659149, -0.877760648727417, 0.755695641040802, 0.332835853099823, 0.0627000629901886, 0.5977008938789368, 0.45228224992752075, -0.25648635625839233, -0.4590030014514923, -0.34757155179977417, 0.4389142692089081, -0.6300563216209412, -0.6159562468528748, -0.7854228615760803, -0.2132415771484375, -0.43878135085105896, -0.2677617371082306, -0.2802826464176178, -0.25778934359550476, -0.37226375937461853, -0.1947050541639328, 0.4802732765674591, 0.535559892654419, -0.2325805127620697, 0.5683498978614807, -1.1518019437789917, 0.36969754099845886, -0.07111462950706482, 0.3163906931877136, 0.017203116789460182, -0.4748969078063965, -0.38236314058303833, -0.12446614354848862, -0.49432605504989624, -1.0966671705245972, 0.7780240774154663, 0.16824287176132202, 0.38889816403388977, 0.5049545168876648, -0.023141849786043167, 0.5692468285560608, -0.5970045328140259, 0.35647767782211304, 0.45066434144973755, -0.6323243975639343, 0.4537787437438965, -0.3238075375556946, 0.40034377574920654, 0.9499716758728027, 0.6328335404396057, -0.34826308488845825, 0.00012614972365554422, -0.8701553344726562, -0.8618429899215698, 0.6265211701393127, 0.21478775143623352, -0.11299702525138855, -0.09668236970901489, 0.4353741407394409, 0.30847275257110596, 0.4355356991291046, -0.7866348624229431, -0.2664927840232849, -0.24858024716377258, -0.6806948184967041, -0.0940181314945221, -0.07415515184402466, -0.03929616138339043, -0.5358071327209473, 0.13852012157440186, -0.304487407207489, 0.5081345438957214, 0.3579241931438446, -0.1513792723417282, 0.17898224294185638, 0.023746849969029427, 0.49454909563064575, 0.6828126907348633, -0.596825897693634, 0.19334813952445984, 0.20277300477027893, -0.8054755330085754, 0.06241697445511818, 0.26968127489089966, 0.11820361018180847, 0.2243700921535492, 0.914408266544342, 0.5829038619995117, 0.46462205052375793, -0.43141576647758484, 0.29122763872146606, -0.07396671921014786, -0.28661689162254333, -0.025752834975719452, -0.27170896530151367, -0.1414676308631897, 0.007109771948307753, 0.40272092819213867, 0.2999916672706604, 0.2594328820705414, -0.22380474209785461, 0.5200090408325195, -0.05290447920560837, -0.7165622115135193, -0.38442274928092957, 0.4730067551136017, 0.18635830283164978, -0.3296490013599396, 0.5372292995452881, 0.1745024472475052, -0.3535138964653015, 0.8266575336456299, 0.6154822707176208, 0.6994174718856812, -0.38574862480163574, 0.4216941297054291, 0.48503345251083374, 0.22265294194221497, -0.09042827785015106, 0.1726456731557846, 0.0444696880877018, -0.7895609140396118, -0.3832004964351654, -0.4457228183746338, -0.4452488422393799, -0.010179579257965088, -1.008529782295227, 0.12248221784830093, -0.4273337721824646, -0.571986973285675, 0.6104518175125122, -0.29941892623901367, -0.7834904789924622, 0.4926348328590393, 0.06524989753961563, 0.6465676426887512, -0.970614492893219, 0.4466785192489624, 0.7353976368904114, -0.6682904958724976, -0.4866214692592621, -0.2649983763694763, 0.17876289784908295, -0.9048092365264893, 0.5585304498672485, 0.24618633091449738, 0.34706202149391174, 0.1841927319765091, -0.3624771535396576, -0.7299844026565552, 0.9499160647392273, 0.1759060025215149, -0.4984036386013031, -0.07155094295740128, 0.2682698369026184, 0.796851634979248, -0.4278697669506073, 0.43458759784698486, 0.3381277918815613, 0.5777618288993835, 0.2738938629627228, -0.720059335231781, -0.11686257272958755, -0.21086807548999786, -0.41636887192726135, 0.13353556394577026, -0.7386367321014404, 0.46416187286376953, -0.28009915351867676, 0.23738481104373932, -0.3586839437484741, 0.1392834633588791, 0.4013098478317261, 0.6827853322029114, 0.13412418961524963, 0.6677480936050415, 0.8523674607276917, -0.08372268080711365, 1.0855164527893066, -0.35734823346138, 0.5082547664642334, 0.5048807263374329, -0.28253501653671265, 0.3375761806964874, 0.31240665912628174, -0.5310841798782349, 0.2791590988636017, 0.7234510183334351, 0.0017027362482622266, 0.6880223751068115, 0.18028955161571503, -0.3767704963684082, -0.15343447029590607, -0.24839608371257782, -0.5618387460708618, 0.4082603454589844, 0.691322922706604, -0.6837791204452515, -0.20654138922691345, 0.25777924060821533, 0.1452890783548355, -0.25376152992248535, -0.28171196579933167, 0.9864261746406555, 0.4956875145435333, -0.5058374404907227, 0.5595495700836182, 0.003498408244922757, 0.36081641912460327, -0.695841372013092, -0.37544962763786316, -0.11535083502531052, 0.3336132764816284, -0.27511537075042725, -0.572762131690979, 0.4340441823005676, 0.032456863671541214, -0.24489372968673706, -0.4823669195175171, 0.7525790929794312, -0.4787244200706482, -1.1686761379241943, -0.03313535451889038, 0.6502305865287781, 0.11373114585876465, 0.024935385212302208, -0.6661873459815979, 0.18817758560180664, 0.10194078832864761, 0.0191266480833292, 0.13989226520061493, 0.6926236152648926, -0.17235030233860016, 0.4067138135433197, 0.458632230758667, 0.06722898036241531, -0.6392146348953247, 0.1317615807056427, 0.7649712562561035, -0.8643243312835693, -0.31400173902511597, -1.120445728302002, 0.3418923616409302, 0.19225426018238068, -0.3045075833797455, 0.39761289954185486, 0.6355900764465332, 0.18510520458221436, -0.23532544076442719, 0.8107821345329285, 0.24109603464603424, 0.5180662274360657, -0.3876911401748657, 0.583234429359436, -0.3628053367137909, 0.032124556601047516, -0.551753580570221, -0.6768874526023865, -0.9367763996124268, 0.7540431022644043, -0.3534702956676483, -0.002625537570565939, 0.9610174298286438, 0.35063785314559937, -0.006793786771595478, 0.05605137348175049, 0.32129859924316406, -0.014930409379303455, 0.30918076634407043, 0.5639544129371643, 0.5016751289367676, -0.33571216464042664, 0.03819792717695236, -0.12456874549388885, -0.7107640504837036, -0.1383117288351059, -0.7965051531791687, -0.6114551424980164, -0.18382993340492249, -0.4089009463787079, -0.30543869733810425, -0.0086770448833704, 0.9193434715270996, 0.6442286372184753, -0.7935601472854614, 0.07139880955219269, 0.3161329925060272, -0.13562916219234467, -0.22555314004421234, -0.10619232803583145, 0.6007038354873657, -0.01542779989540577, -0.217702254652977, 0.12863244116306305, 0.49937134981155396, 0.07474052160978317, 0.17208366096019745, 0.15623942017555237, 0.003150244941934943, -0.022363539785146713, 0.8220562934875488, -0.042922645807266235, -0.2671891152858734, 0.024002186954021454, 0.16610190272331238, 0.06887098401784897, 0.4471578598022461, 0.8890587687492371, -0.9805962443351746, 0.42215850949287415, 0.2715168595314026, 0.8778791427612305, 0.6162033081054688, 0.32357022166252136, 0.5614872574806213, -0.6380241513252258, 0.18572936952114105, 0.6687208414077759, 0.22733375430107117, 0.3332063853740692, -0.4338511526584625, 0.7139029502868652, 0.5824738144874573, -0.23828421533107758, -0.8120253086090088, -0.22122886776924133, -1.0301847457885742, -0.10596583783626556, 0.9608953595161438, -0.00323099154047668, 0.11321981996297836, -0.25351107120513916, -0.45785000920295715, 0.13030506670475006, -0.4622391164302826, 0.8166646361351013, 0.8505613803863525, -0.44381028413772583, -0.058513227850198746, -0.6775047183036804, 0.28864651918411255, 0.2218242883682251, -0.9464592337608337, -0.2620605230331421, 0.38711148500442505, -0.111397385597229, 0.521190345287323, 0.641409158706665, -0.5323995351791382, 0.14250998198986053, -0.20877200365066528, -0.08890713006258011, 0.1941474825143814, -0.19029685854911804, -0.263913094997406, 0.238511323928833, -0.20269355177879333, -0.001436183461919427 ]
http://arxiv.org/abs/2405.17712v1
http://arxiv.org/pdf/2405.17712v1
CLAIM Your Data: Enhancing Imputation Accuracy with Contextual Large Language Models
2024-05-28T00:08:29
2024-05-28T00:08:29
Ahatsham Hayat, Mohammad Rashedul Hasan
cs.CL
cs.CL, cs.LG
This paper introduces the Contextual Language model for Accurate Imputation Method (CLAIM), a novel strategy that capitalizes on the expansive knowledge and reasoning capabilities of pre-trained large language models (LLMs) to address missing data challenges in tabular datasets. Unlike traditional imputation methods, which predominantly rely on numerical estimations, CLAIM utilizes contextually relevant natural language descriptors to fill missing values. This approach transforms datasets into natural language contextualized formats that are inherently more aligned with LLMs' capabilities, thereby facilitating the dual use of LLMs: first, to generate missing value descriptors, and then, to fine-tune the LLM on the enriched dataset for improved performance in downstream tasks. Our evaluations across diverse datasets and missingness patterns reveal CLAIM's superior performance over existing imputation techniques. Furthermore, our investigation into the effectiveness of context-specific versus generic descriptors for missing data highlights the importance of contextual accuracy in enhancing LLM performance for data imputation. The results underscore CLAIM's potential to markedly improve the reliability and quality of data analysis and machine learning models, offering a more nuanced and effective solution for handling missing data.
[ 0.013223016634583473, -0.5648570656776428, 0.5099453330039978, 0.0029525072313845158, 0.18559619784355164, 0.17215946316719055, -0.4161280691623688, -0.4229404032230377, 0.330594003200531, 0.5539771318435669, -0.21560771763324738, -0.35206127166748047, -0.442157506942749, 0.09386305510997772, -0.364236980676651, 0.7571033835411072, 0.04894523322582245, -0.1418238878250122, -0.6181894540786743, -0.07544225454330444, -1.1390058994293213, -0.2925218939781189, 0.004583976697176695, -0.010211583226919174, 0.6018498539924622, 0.7652205228805542, 0.5344757437705994, 0.7507898807525635, 0.49669599533081055, 0.19122593104839325, 0.2161145806312561, 0.22087609767913818, -0.405219167470932, 0.2602294981479645, -0.18001529574394226, -0.28582000732421875, -0.3968368172645569, -0.2396574467420578, 0.6902883648872375, 1.1021862030029297, -0.29656174778938293, 0.3328533172607422, 0.18064656853675842, 0.7345392107963562, -0.8542993068695068, 0.1757579743862152, -1.121984839439392, 0.0936393067240715, -0.5392080545425415, -0.3071472942829132, -0.6088235378265381, -0.42462825775146484, 0.3155590891838074, -0.17451250553131104, 0.35358336567878723, -0.1320759505033493, 0.736089825630188, 0.29691681265830994, -0.5027452707290649, -0.3259596824645996, -0.6977455615997314, 0.6286385655403137, -0.8747197985649109, 0.1312505006790161, 0.5430226922035217, 0.5383679866790771, -0.13840168714523315, -0.8945749402046204, -0.682730495929718, -0.4393698573112488, -0.3970755338668823, -0.08098143339157104, 0.16766497492790222, -0.15131673216819763, 0.42123398184776306, 0.41902127861976624, -0.6132514476776123, 0.0606989786028862, -0.13022826611995697, -0.19876354932785034, 0.6386950016021729, 0.11845315247774124, 0.30461397767066956, 0.123695969581604, -0.12676465511322021, 0.055149126797914505, -1.0496177673339844, -0.04885057732462883, 0.33175256848335266, 0.7515773177146912, -0.13171377778053284, 0.5891121625900269, -0.43596571683883667, 1.1357073783874512, -0.2837411165237427, -0.09753680229187012, 0.29302144050598145, -0.24248038232326508, -0.3735106289386749, 0.3400971591472626, 0.29456230998039246, 0.07153908908367157, -0.05058852210640907, -0.39573726058006287, -0.08512558043003082, -0.3921668827533722, 0.19216498732566833, -0.42413005232810974, 0.04744163155555725, 0.248900905251503, -0.14603836834430695, -0.04188719019293785, 0.0013235496589913964, -0.8493568897247314, -0.5553944110870361, -0.4224911034107208, 0.40301188826560974, -0.09145911037921906, -0.15593484044075012, -0.20240665972232819, 0.0916370302438736, 0.0488041490316391, 0.3813152313232422, -0.9224344491958618, 0.1597469300031662, 0.5656757354736328, 0.6145625710487366, -0.015167390927672386, -0.07141610980033875, -0.8334125280380249, 0.48457053303718567, -0.5530555248260498, 0.6761314868927002, -0.7280108332633972, 0.03185373917222023, 0.22461360692977905, 0.08036492764949799, -0.12423436343669891, -0.8385471105575562, 0.6975947022438049, -0.3599698543548584, 0.20143817365169525, -0.7008296251296997, -0.6215658783912659, -0.2961759865283966, 0.3411419689655304, -0.8373138904571533, 1.057281494140625, 0.30708569288253784, -0.5538102984428406, 0.6213728189468384, -0.5494714975357056, -0.3418304920196533, 0.4470241069793701, -0.17934174835681915, -0.3388317823410034, 0.16433534026145935, 0.0559062585234642, 0.49356895685195923, -0.33910197019577026, 0.8017358183860779, -0.3618538975715637, -0.20491167902946472, 0.39774656295776367, -0.5200583934783936, 0.5747668147087097, 0.06005844101309776, -0.2780895233154297, -0.0908154770731926, -0.9243916869163513, -0.05728300288319588, 0.06267803907394409, -0.35645246505737305, -0.32859277725219727, 0.351936936378479, 0.1284177601337433, 0.004364354070276022, 0.4073992073535919, -0.7131052017211914, 0.10867699235677719, -0.6438418626785278, 0.11817436665296555, 0.6111889481544495, -0.3028583824634552, 0.2703384459018707, -0.21330849826335907, 0.24944861233234406, -0.20530444383621216, -0.4580021798610687, -0.3532862067222595, 0.1044967770576477, -0.4529171586036682, -0.3234007954597473, 0.5040555596351624, 0.6544580459594727, -0.5913705825805664, 0.37497133016586304, -0.648493230342865, -0.2517617642879486, -0.1497228443622589, -0.00525101600214839, 0.0631764680147171, 1.345796823501587, 0.5215941667556763, 0.034017883241176605, -0.7255333662033081, -1.1115808486938477, -0.3266911208629608, 0.051510684192180634, -0.2769511044025421, 0.30680030584335327, 0.35171931982040405, -0.027999255806207657, 1.4372552633285522, -0.7024747729301453, -0.40613695979118347, -0.416986346244812, -0.11440543830394745, 0.21109412610530853, 0.4931577742099762, 0.4324727952480316, -0.9121556282043457, -0.6859675645828247, 0.006520007271319628, -0.8976501226425171, -0.1741848737001419, -0.08345309644937515, 0.220514178276062, 0.33770763874053955, -0.037537116557359695, -0.35054799914360046, 0.5947215557098389, 0.10094741731882095, -0.11515568196773529, 0.3856131136417389, -0.20295517146587372, 0.011293475516140461, -0.8761966824531555, 0.24852292239665985, -0.01928643323481083, -0.3646741807460785, -0.6490018367767334, -0.3673236668109894, 0.33568084239959717, -0.21616610884666443, -0.2885661721229553, 0.730795681476593, -0.44534623622894287, -0.001925084856338799, -0.1253592073917389, -0.06875921785831451, -0.2371831089258194, 0.2532947063446045, 0.04057612270116806, 0.8390905857086182, 0.6380042433738708, -0.5828195810317993, 0.30825522541999817, 0.4596154987812042, -0.20139609277248383, 0.7942820191383362, -0.4579339027404785, -0.04728691279888153, -0.32968202233314514, 0.3281569480895996, -1.1005253791809082, -0.5848572254180908, 0.20912347733974457, -0.34442028403282166, 0.45992717146873474, -0.10691241919994354, -0.47022026777267456, -0.5024353861808777, 0.027004212141036987, 0.10931753367185593, 0.09423519670963287, -0.6010249853134155, 0.6260634064674377, 0.7159788608551025, -0.5073347687721252, -0.7614963054656982, -0.9693443179130554, 0.6033824682235718, -0.6551992297172546, -0.17169152200222015, 0.6572980284690857, 0.13307319581508636, -0.07342958450317383, -0.017808321863412857, -0.1544308215379715, -0.42870932817459106, 0.07633727043867111, 0.06676257401704788, 0.21823987364768982, -0.09843230247497559, 0.32478177547454834, -0.15109725296497345, -0.17013631761074066, -0.004983725491911173, -0.01314921211451292, 0.27936479449272156, 0.09627854079008102, -0.28395676612854004, -0.21239334344863892, 0.40653741359710693, 0.21302936971187592, -0.0781923308968544, 0.6852654814720154, 0.234338641166687, -0.9167712926864624, 0.05876486748456955, -0.8077524900436401, 0.08959513157606125, -0.397674560546875, 0.29574286937713623, -0.14457310736179352, -0.548570454120636, 0.5067914128303528, 0.2638649046421051, 0.16256754100322723, 0.2827005088329315, 0.2911423146724701, -0.10349596291780472, 0.6084141731262207, 0.7792683839797974, -0.23044456541538239, 0.28336238861083984, 0.14389091730117798, 0.3585273325443268, -0.6681005358695984, -0.1536189764738083, -0.6974434852600098, -0.26762130856513977, -0.3868706524372101, -0.15685702860355377, 0.311067134141922, -0.3576933443546295, -0.13219282031059265, 0.2391061931848526, -0.3794827461242676, 0.3783804774284363, 0.35131874680519104, 0.15359513461589813, 0.2789683938026428, 0.3667148947715759, 0.20460103452205658, -0.40415671467781067, -0.5976945757865906, -0.6670078039169312, 1.220605492591858, 0.23430941998958588, 0.5089573264122009, 0.2137872278690338, 0.3546949625015259, 0.6533812880516052, 0.6243024468421936, -0.6153602600097656, 0.369393527507782, 0.08233406394720078, -0.6053096652030945, -0.16980227828025818, -0.5363713502883911, -0.8202539682388306, 0.17215076088905334, -0.06869392096996307, -1.1410386562347412, 0.04667973890900612, 0.3820158541202545, -0.34153103828430176, 0.20536434650421143, -0.6014154553413391, 0.8687766790390015, -0.14469902217388153, -0.5287919044494629, -0.053658563643693924, -0.8390281796455383, 0.3721616268157959, -0.17114344239234924, -0.13952377438545227, -0.14971938729286194, -0.015651049092411995, 0.8594147562980652, -0.7366374135017395, 0.9698941111564636, -0.5142150521278381, -0.08583726733922958, 0.3032943308353424, -0.15194079279899597, 0.6886156797409058, -0.00891112256795168, -0.12803038954734802, -0.08792372792959213, -0.10166757553815842, -0.3980656564235687, -0.4434647262096405, 0.6602575778961182, 0.085243821144104, -0.3897783160209656, -0.6511328816413879, -0.7811538577079773, -0.5067591071128845, 0.0797952339053154, -0.1501547396183014, 0.6734403967857361, -0.14589379727840424, 0.4447545111179352, 0.6710808873176575, -0.5453898906707764, 0.7979200482368469, 0.6042761206626892, 0.3862496316432953, -0.38231009244918823, 1.0093004703521729, 0.5897136330604553, -0.08867035806179047, 0.6414717435836792, 0.11329600214958191, -0.6229257583618164, -0.31339794397354126, -0.5345373749732971, -0.01046528946608305, -0.5500319004058838, -0.7032839059829712, -0.8419970870018005, 0.004855939652770758, -0.4621257781982422, -0.015714488923549652, -0.3187623620033264, -0.21488744020462036, -0.02277730591595173, -0.2511483132839203, 0.36591947078704834, 0.43429213762283325, -0.016965443268418312, 0.4656369388103485, -0.6594080924987793, 0.21842816472053528, 0.11938939988613129, 0.28244277834892273, 0.02373894862830639, -0.38641688227653503, -0.3415111005306244, 0.20076964795589447, -0.3274517357349396, -0.9718738794326782, 0.6502354741096497, 0.18665608763694763, 0.7743855714797974, -0.13456079363822937, 0.08335471153259277, 1.0022939443588257, -0.44120293855667114, 0.5742937922477722, -0.0619550384581089, -0.805903434753418, 0.45769202709198, -0.25531357526779175, -0.06082455441355705, 0.634749174118042, 0.2746439576148987, -0.600264310836792, 0.07239144295454025, -0.6677523255348206, -1.1154204607009888, 0.6750427484512329, -0.07775451987981796, 0.11852484196424484, 0.08050397038459778, 0.21554253995418549, 0.16369888186454773, 0.4765043258666992, -0.9068429470062256, -0.2500244677066803, 0.35434532165527344, -0.66895592212677, 0.11951027810573578, -0.4242871105670929, -0.04574928432703018, -0.07980787754058838, 0.5470644235610962, -0.4566293954849243, 0.19531339406967163, 0.33055827021598816, -0.4293213188648224, -0.010886820033192635, 0.1558314561843872, 0.5241062641143799, 1.227579951286316, -0.17415441572666168, 0.02860710211098194, 0.42967745661735535, -0.31719425320625305, -0.041399624198675156, 0.34799885749816895, -0.18652451038360596, 0.19573244452476501, 0.25520142912864685, 0.33378323912620544, 0.11471573263406754, -0.9433344006538391, 0.5308672189712524, 0.04110480099916458, 0.3422704339027405, -0.6131125688552856, -0.36359724402427673, -0.1648014485836029, -0.11622072011232376, 0.9473221898078918, 0.007209018804132938, 0.13817185163497925, -0.3296678364276886, 0.3859361708164215, 0.5298629403114319, -0.5274665951728821, -0.048337895423173904, 0.7730698585510254, -0.21516387164592743, 0.017802400514483452, 0.3076038658618927, 0.14331921935081482, -0.13574889302253723, 0.8658888339996338, 0.6613417267799377, 0.5549364686012268, -0.0601235032081604, 0.2406676560640335, 0.34928521513938904, 0.1986055076122284, -0.15312333405017853, -0.12449560314416885, 0.09532996267080307, -0.5182721018791199, -0.5631891489028931, -0.4009271264076233, -0.27138662338256836, 0.4066878855228424, -0.5570809245109558, 0.22792962193489075, -0.14282433688640594, 0.23546239733695984, -0.2981172800064087, 0.08098452538251877, -0.6651827692985535, 0.30167853832244873, 0.24043147265911102, 1.0198463201522827, -0.9691612720489502, 0.5752434134483337, 0.23749740421772003, -0.4210403561592102, -0.8031136393547058, 0.07677264511585236, 0.019892549142241478, -0.5126017332077026, 0.7300266027450562, 0.2439272552728653, 0.4229586720466614, 0.05259077623486519, -0.6466385722160339, -1.1474817991256714, 0.8753802180290222, 0.6980977654457092, -0.45063892006874084, 0.19830553233623505, 0.2391250878572464, 0.29558315873146057, -0.5277966260910034, 0.22334502637386322, 0.5626901984214783, 0.48949670791625977, 0.15912699699401855, -0.8444259762763977, 0.2786117196083069, 0.2646774649620056, 0.15306514501571655, -0.010351515375077724, -0.11931701749563217, 0.4603296220302582, -0.0832180604338646, -0.23580549657344818, 0.03505183756351471, 0.9470463395118713, 0.09699632972478867, 0.5234838128089905, 0.1975088268518448, 0.5186713933944702, 1.2988938093185425, -0.08424106985330582, 1.0615782737731934, 0.13485023379325867, 0.3234976828098297, 1.4577401876449585, -0.7468648552894592, 0.7676730155944824, 0.24922823905944824, -0.08242619037628174, 0.22577987611293793, 0.6979073882102966, 0.17659211158752441, 0.47262486815452576, 0.060107868164777756, -0.38101908564567566, 0.2989533543586731, -0.3644159138202667, -0.48653486371040344, 0.2803969979286194, 0.5313428044319153, -0.22648614645004272, -0.5684493184089661, 0.07510140538215637, 0.09618464857339859, 0.22987185418605804, -0.20941248536109924, 0.5728525519371033, -0.3626101016998291, -0.6621885299682617, 0.6180853247642517, -0.17861652374267578, 0.330700546503067, -0.5382464528083801, -0.38133975863456726, -0.43084582686424255, -0.08431677520275116, -0.43040731549263, -0.5602231025695801, 0.5527339577674866, 0.09273339062929153, -0.21577896177768707, -0.24085594713687897, 0.7001155018806458, -0.8442314267158508, -0.5890716910362244, -0.17040887475013733, 0.4709770679473877, -0.06911571323871613, -0.15605966746807098, -0.4889231026172638, -0.2615472078323364, -0.013060095719993114, 0.14246350526809692, 0.161620631814003, 0.35803771018981934, -0.2490975707769394, 0.7249162197113037, 0.49284276366233826, 0.266110897064209, -0.08735445886850357, 0.0009794485522434115, 0.8188384175300598, -0.8187795877456665, -0.37056732177734375, -0.9948292374610901, 0.669337809085846, -0.2409101128578186, 0.21728184819221497, 0.6433535814285278, 0.971610426902771, 0.6834692358970642, -0.24250729382038116, 0.9417642951011658, -0.49755632877349854, 1.0106830596923828, -0.5760416984558105, 0.5250511169433594, -0.461667537689209, 0.2763807475566864, -0.36879149079322815, -0.7558690905570984, -0.5635973811149597, 0.3632635474205017, -0.5955002307891846, -0.1203559935092926, 0.6276789307594299, 1.0536330938339233, -0.12655147910118103, -0.384600430727005, 0.23320400714874268, 0.258137583732605, 0.31121307611465454, 0.5662446022033691, 0.6504185795783997, -0.40979447960853577, 0.2441512942314148, -0.0007330420194193721, -0.28000494837760925, -0.3378249704837799, -1.019694209098816, -0.23665077984333038, -0.5232564806938171, -0.49727576971054077, -0.2667490541934967, -0.27704375982284546, 0.8014548420906067, 0.6542675495147705, -0.8162473440170288, -0.19026239216327667, 0.021253053098917007, 0.3084675967693329, -0.08863557875156403, -0.36162734031677246, 0.26342344284057617, -0.47461703419685364, -0.8007418513298035, 0.5707356929779053, 0.2055061310529709, 0.09913519024848938, 0.1976454257965088, 0.2627900540828705, -0.37960687279701233, -0.3553735017776489, 0.4659026861190796, 0.6024932265281677, -0.5123134255409241, -0.31734737753868103, -0.24265840649604797, -0.02479512244462967, 0.4261111319065094, 0.653425931930542, -1.0840131044387817, 0.27342909574508667, 0.48318707942962646, 1.075153112411499, 0.27340006828308105, 0.3458694517612457, 0.7331144213676453, -0.9533774256706238, 0.2695698142051697, 0.25859948992729187, 0.42568323016166687, 0.6675938963890076, -0.7863638997077942, 0.638070821762085, 0.2884204387664795, -0.25008469820022583, -1.1700119972229004, 0.028042607009410858, -0.9525769352912903, 0.022233840078115463, 0.7747427225112915, -0.0718187540769577, -0.23441264033317566, -0.12354032695293427, -0.1344286948442459, 0.10024615377187729, -0.1813860982656479, 0.7332976460456848, 0.556510329246521, 0.152211531996727, 0.1081252470612526, -1.0175756216049194, 0.3677830398082733, 0.4597759246826172, -0.8905330896377563, 0.5046908259391785, 0.8115828633308411, 0.3777885437011719, 0.13169239461421967, 0.5727028846740723, -0.15028446912765503, -0.14048704504966736, -0.3232502341270447, 0.01204127911478281, 0.13272109627723694, -0.4894353151321411, -0.24572919309139252, 0.4423663914203644, -0.14014901220798492, -0.22187460958957672 ]
http://arxiv.org/abs/2406.00044v1
http://arxiv.org/pdf/2406.00044v1
Stochastic Adversarial Networks for Multi-Domain Text Classification
2024-05-28T00:02:38
2024-05-28T00:02:38
Xu Wang, Yuan Wu
cs.CL
cs.CL, cs.LG
Adversarial training has been instrumental in advancing multi-domain text classification (MDTC). Traditionally, MDTC methods employ a shared-private paradigm, with a shared feature extractor for domain-invariant knowledge and individual private feature extractors for domain-specific knowledge. Despite achieving state-of-the-art results, these methods grapple with the escalating model parameters due to the continuous addition of new domains. To address this challenge, we introduce the Stochastic Adversarial Network (SAN), which innovatively models the parameters of the domain-specific feature extractor as a multivariate Gaussian distribution, as opposed to a traditional weight vector. This design allows for the generation of numerous domain-specific feature extractors without a substantial increase in model parameters, maintaining the model's size on par with that of a single domain-specific extractor. Furthermore, our approach integrates domain label smoothing and robust pseudo-label regularization to fortify the stability of adversarial training and to refine feature discriminability, respectively. The performance of our SAN, evaluated on two leading MDTC benchmarks, demonstrates its competitive edge against the current state-of-the-art methodologies. The code is available at https://github.com/wangxu0820/SAN.
[ -0.40799516439437866, -0.7286117672920227, 0.265531450510025, -0.023239772766828537, -0.3014400005340576, 0.1909119188785553, -0.2991350591182709, -0.3002622127532959, -0.011917809024453163, 0.41157403588294983, -0.2965531051158905, -0.5614143013954163, -1.159604787826538, -0.25096356868743896, -0.2376982420682907, 1.6569595336914062, -0.1824953407049179, -0.023311715573072433, -0.024849599227309227, -0.37526485323905945, 0.1363113522529602, -1.0131295919418335, -0.7554380893707275, -0.06190741807222366, 0.7092861533164978, 0.015504656359553337, 0.8027782440185547, 0.6593992114067078, 0.5708690881729126, 0.2691100835800171, 0.0782691091299057, 0.4944056272506714, -0.4391293227672577, 0.14774304628372192, 0.12655754387378693, -0.21686899662017822, -0.21132373809814453, -0.032644305378198624, 0.4718254506587982, 0.44686785340309143, -0.17691314220428467, -0.22581888735294342, 0.08739825338125229, 0.4134702682495117, -0.7100341320037842, 0.06341752409934998, -0.44162312150001526, -0.025722017511725426, -0.4445604085922241, -0.2588687241077423, -0.4092227518558502, -0.4207670986652374, 0.3928107023239136, -0.5080083012580872, 0.763227641582489, -0.181692436337471, 1.2331384420394897, 0.23766040802001953, -0.528741180896759, -0.16155430674552917, -0.7732532620429993, 0.7098381519317627, -0.1770339459180832, 0.24418412148952484, 0.28929468989372253, 0.4770605266094208, -0.13576653599739075, -0.8956235647201538, -0.40326109528541565, 0.05976830795407295, 0.2537500560283661, 0.14450915157794952, -0.14231343567371368, -0.17628440260887146, -0.1680922657251358, 0.40003058314323425, -0.688576877117157, 0.07312886416912079, -0.4024193584918976, -0.006404847837984562, 0.7568530440330505, -0.06413345783948898, 0.07201627641916275, 0.5167689323425293, -0.9016494154930115, -0.25711295008659363, -0.41417497396469116, 0.03558371216058731, 0.5347469449043274, 0.2676715850830078, 0.11817958205938339, 0.08207999169826508, 0.23933075368404388, 0.2986379861831665, 0.042620059102773666, -0.0766473338007927, 0.12228687107563019, -0.19708706438541412, -0.2552870512008667, -0.02540707401931286, 1.2213259935379028, -0.25879815220832825, 0.03425351157784462, -0.10329239815473557, -0.11753156781196594, 0.02310456708073616, 0.6793110966682434, -0.713010847568512, -0.8521406054496765, -0.13660447299480438, -0.44760435819625854, -0.7042750120162964, 0.005640498362481594, -0.841590940952301, -0.7067169547080994, -0.11351954191923141, 0.5061324834823608, -0.38798215985298157, -0.2681349515914917, -0.061974409967660904, -0.1268501728773117, -0.6026891469955444, 0.4390738010406494, -0.7348637580871582, 0.3176516890525818, 0.3531162738800049, 0.9258690476417542, -0.44236183166503906, -0.4401381313800812, -0.2854083478450775, 0.024653717875480652, -0.147773876786232, 0.651833713054657, -0.48747003078460693, -0.38583680987358093, -0.04161457344889641, 0.141496941447258, -0.2937586307525635, -0.37080681324005127, 0.2889610826969147, -0.8867517709732056, 0.10099439322948456, 0.21499574184417725, -0.05459854379296303, -0.27778610587120056, 0.2651790380477905, -0.7469671964645386, 0.7778737545013428, -0.01876452937722206, -0.7655890583992004, 0.2749740183353424, -0.39728066325187683, -0.6318454146385193, -0.12179865688085556, -0.15558010339736938, -1.1891067028045654, -0.08619065582752228, 0.01413638610392809, 0.6530203819274902, -0.26803064346313477, 0.34090641140937805, -0.7706358432769775, -0.30708709359169006, 0.3066180348396301, -0.8843305110931396, 0.7485646605491638, 0.38393115997314453, -0.3362196385860443, 0.22794030606746674, -0.8129797577857971, -0.16378994286060333, 0.37349289655685425, -0.3712388575077057, -0.527015745639801, -0.15676657855510712, -0.04656825587153435, 0.24172501266002655, 0.14593465626239777, -0.20019957423210144, 0.22496485710144043, -0.07821101695299149, 0.30792754888534546, 0.7570118308067322, 0.2001909613609314, 0.5045338869094849, -0.33171653747558594, 0.38213542103767395, 0.31703415513038635, 0.11728872358798981, 0.1961280256509781, -0.6186617016792297, -0.45172104239463806, -0.9721290469169617, 0.42235511541366577, 0.3510614037513733, -0.9286230802536011, 0.19698020815849304, -0.24454663693904877, -0.6612386107444763, -0.3075791597366333, 0.024041755124926567, 0.4823816120624542, 0.032297853380441666, 0.5623533129692078, -0.27018651366233826, -0.16266275942325592, -0.8343543410301208, 0.07573145627975464, 0.06380042433738708, 0.037580352276563644, 0.24059389531612396, 0.5965995192527771, -0.2726210653781891, 0.33325403928756714, -0.7148424983024597, -0.506711483001709, -0.0525093749165535, 0.5829687714576721, -0.4286860227584839, 0.27959343791007996, 0.5424332022666931, -1.2231820821762085, -0.4387647807598114, 0.19823585450649261, -0.784665584564209, 0.3193407654762268, -0.150310680270195, -0.14641408622264862, 0.035464316606521606, -0.06215020641684532, -0.2959240674972534, 0.531084418296814, 0.39810413122177124, 0.053568221628665924, 0.7394281029701233, -0.41207197308540344, 0.366628497838974, -0.9825892448425293, -0.09349722415208817, 0.3297773599624634, -0.03455618396401405, -0.7913824915885925, 0.14143092930316925, 0.22297325730323792, -0.22874689102172852, -0.4042021930217743, 0.2392626404762268, -0.17094144225120544, 0.2763303816318512, -0.4676760733127594, -0.01862938329577446, 0.2708738148212433, 0.7341515421867371, 0.21887417137622833, 0.8712211847305298, 0.49022090435028076, -0.9917553067207336, 0.3573688566684723, 0.08205890655517578, 0.126580610871315, 0.4738663136959076, -0.3472890257835388, 0.06485217064619064, -0.01898207515478134, 0.3824208080768585, -0.6561216115951538, 0.10030999034643173, 0.2677261531352997, -0.4485439956188202, 0.5808857679367065, -0.16624249517917633, -0.3842959702014923, -0.2859484553337097, -0.35271885991096497, 0.27698585391044617, -0.055933255702257156, -0.8520109057426453, 0.41170576214790344, 0.6737794876098633, -0.19104641675949097, -0.7539247870445251, -0.6634660363197327, 0.06595289707183838, -0.33615773916244507, -0.427708238363266, 0.46607834100723267, -0.01670714095234871, 0.2176813930273056, -0.019126081839203835, -0.10058514773845673, -0.5617203116416931, 0.3274722397327423, 0.25128424167633057, 0.3600348234176636, -0.15630747377872467, 0.04049859568476677, 0.11369111388921738, -0.07404505461454391, -0.09582775086164474, -0.6204313039779663, 0.12393508106470108, -0.16065827012062073, -0.04331875219941139, -0.46810662746429443, 0.40696248412132263, 0.5530682802200317, -0.4068395495414734, 1.031622290611267, 0.7428710460662842, -0.41738030314445496, -0.5960795879364014, 0.008315487764775753, 0.058806225657463074, -0.42946815490722656, 0.32060056924819946, -0.7190352082252502, -0.8917084336280823, 0.36938464641571045, -0.20915625989437103, -0.1926787793636322, 0.4481137692928314, 0.4542831480503082, 0.12049762159585953, 1.1969636678695679, 0.7592984437942505, -0.03218914940953255, 0.3786422908306122, -0.4223209619522095, 0.19488006830215454, -0.6753571033477783, -0.15980415046215057, -0.4583243131637573, -0.234915092587471, -0.34568601846694946, -0.26374977827072144, 0.07396558672189713, 0.05623546615242958, -0.29154327511787415, 0.5272911787033081, -0.6089273691177368, 0.04719323292374611, 0.6166263818740845, 0.3284751772880554, 0.04638928174972534, 0.07677268236875534, -0.19003213942050934, -0.07181531935930252, -0.5051423907279968, -0.435569703578949, 1.1223608255386353, 0.41790837049484253, 0.7392436265945435, 0.3684440851211548, 0.606134831905365, 0.4798947870731354, 0.491659939289093, -0.5697112679481506, 0.2599254548549652, -0.7369049191474915, -0.3958897590637207, -0.03908854350447655, -0.8403357863426208, -0.6877530813217163, 0.5443035960197449, -0.15632770955562592, -0.450853168964386, 0.5616673827171326, -0.21044230461120605, -0.34442681074142456, 0.6360519528388977, -0.6449877619743347, 0.9281512498855591, -0.27305230498313904, -0.366659015417099, 0.14641979336738586, -0.5545954704284668, 0.4898771345615387, -0.45057904720306396, 0.11607778072357178, 0.2242889106273651, 0.06495938450098038, 0.7046290040016174, -0.2532705068588257, 0.7208241820335388, -0.3179861307144165, -0.07547177374362946, 0.25395330786705017, -0.011099754832684994, 0.6698764562606812, 0.005726001691073179, 0.035256218165159225, 0.4252660870552063, -0.13355454802513123, -0.291133850812912, -0.554951012134552, 0.8226528763771057, -1.0175367593765259, -0.22570452094078064, -0.7028705477714539, -0.31653106212615967, -0.2144451141357422, 0.2898610830307007, 0.4123910963535309, 0.42574310302734375, -0.27626878023147583, 0.19567538797855377, 0.98651522397995, -0.07174116373062134, 0.1374664008617401, 0.3303315341472626, 0.43903079628944397, -0.6055173277854919, 1.3662053346633911, 0.1599528193473816, 0.326779842376709, 0.41167744994163513, 0.1304616779088974, -0.41886359453201294, -0.8147663474082947, -0.7312744855880737, -0.1682615876197815, -0.6068056225776672, -0.41428062319755554, -0.7996832132339478, -0.5526922941207886, -0.42179372906684875, -0.18827836215496063, -0.3015562891960144, -0.36866870522499084, -0.4850989878177643, 0.027300627902150154, 0.15820296108722687, 0.6010465025901794, 0.12682689726352692, 0.501624345779419, -0.7262730598449707, 0.32244712114334106, 0.326826810836792, 0.20891022682189941, 0.001600275281816721, -0.5280534029006958, -0.4122246205806732, 0.02078528329730034, -0.5599427819252014, -0.5932506918907166, 0.4709183871746063, 0.3069898784160614, 0.4807356894016266, 0.6488523483276367, 0.48423588275909424, 0.5634986758232117, -0.6120757460594177, 0.5442832708358765, 0.304707407951355, -0.4393763542175293, 0.2555767893791199, -0.20793187618255615, -0.1407696157693863, 0.516103208065033, 0.6940271854400635, -0.058826714754104614, -0.5493772029876709, -0.663087010383606, -0.7195876836776733, 0.7336077690124512, 0.13802050054073334, -0.25086042284965515, 0.06145864725112915, 0.11185348778963089, 0.3192145526409149, 0.34205979108810425, -0.428945392370224, -0.5250046849250793, -0.5200237035751343, -0.6246659159660339, 0.027919776737689972, -0.011187925934791565, -0.34891292452812195, 0.4041825532913208, 0.8451019525527954, -0.09320710599422455, 0.3557158410549164, -0.04172400385141373, -0.10717184841632843, 0.2854894697666168, 0.1906723529100418, 0.7995619773864746, 0.13705039024353027, -0.04145263135433197, 0.5153934955596924, -0.0043977308087050915, -0.8038419485092163, 0.3311145603656769, 0.7057086229324341, -0.23300506174564362, -0.30851978063583374, -0.11807678639888763, 0.7251813411712646, 0.03983040153980255, -0.07760317623615265, 0.7426966428756714, -0.562937319278717, -0.6023244261741638, -0.06866130977869034, 0.0947505384683609, -0.5301234126091003, 0.2811645567417145, 0.36205533146858215, 0.8827122449874878, 0.3203781247138977, -0.0152237918227911, 0.5554273724555969, 0.2714444100856781, -0.6931079626083374, -0.2215263843536377, 1.0116677284240723, -0.09751736372709274, -0.06645897775888443, -0.017327357083559036, -0.4342972934246063, -0.7761945724487305, 0.5198540687561035, 0.4863850176334381, 0.8782409429550171, -0.23641668260097504, 0.4204416573047638, -0.10607215762138367, 0.1630532592535019, -0.2658149302005768, -0.2638600468635559, -0.17957966029644012, -0.5911356806755066, 0.17175206542015076, -0.5075894594192505, -0.3528040647506714, 0.1978963166475296, -0.5585828423500061, 0.04153585806488991, -0.8662905693054199, -0.249714195728302, 0.17953425645828247, 0.24469609558582306, -0.5181822180747986, 0.4625667333602905, 0.005730801727622747, 0.29246947169303894, -0.655076801776886, 1.203026533126831, 0.7342497706413269, -0.4254961907863617, -0.25244656205177307, 0.06911909580230713, 0.4161371886730194, -0.4945771098136902, 0.4518393874168396, 0.20416666567325592, -0.43849650025367737, -0.1854972094297409, -0.131117582321167, -0.5990955829620361, 0.8331296443939209, -0.15051057934761047, -0.1761312037706375, 0.2966076135635376, -0.05074585601687431, 0.5356783866882324, -0.3261469304561615, -0.15175612270832062, 0.075904980301857, 0.08824852854013443, -0.0615515299141407, -0.4516094923019409, 0.12741082906723022, -0.3386075496673584, 0.14530663192272186, 0.3318825662136078, -0.6441259980201721, 0.6253743767738342, -0.20015698671340942, -0.5043612122535706, -0.06884025782346725, 0.7593967914581299, 0.2140597403049469, 0.4863145053386688, 0.3362252116203308, 0.5678306221961975, 1.0264179706573486, -0.17413905262947083, 0.9214913845062256, 0.08601370453834534, 0.34826529026031494, 1.0528960227966309, -0.22404474020004272, 0.717165470123291, -0.1790040284395218, -0.15949887037277222, 0.4077175557613373, 0.7316814064979553, -0.21530920267105103, 0.8539394736289978, 0.10868890583515167, -0.6244430541992188, -0.004938486963510513, 0.09085725992918015, -0.38788506388664246, 0.02224903739988804, 0.3582291305065155, -0.37130650877952576, 0.17312343418598175, 0.410739004611969, 0.06357667595148087, 0.14381492137908936, -0.1550825983285904, 0.6716881990432739, 0.07501445710659027, -0.0285181924700737, 0.3511405885219574, 0.39101642370224, 0.8384184241294861, -0.7582030892372131, 0.39216527342796326, 0.17302609980106354, 0.8159385323524475, 0.12115656584501266, -0.6607121825218201, 0.21692322194576263, -0.03596419095993042, -0.5286601185798645, -0.23475368320941925, 0.7428040504455566, -0.5760197639465332, -0.17640899121761322, 0.37045007944107056, -0.13628725707530975, -0.11959844082593918, -0.20862111449241638, -0.692607581615448, -0.24578864872455597, -0.2049611210823059, -0.12566176056861877, 0.6845507025718689, 0.7316573262214661, -0.015669748187065125, 0.5139291286468506, 0.9287433624267578, 0.09333651512861252, 0.05437227711081505, 0.18206308782100677, 0.7838552594184875, -0.3507041335105896, -0.630971372127533, -0.5464101433753967, 0.24426089227199554, -0.2198532372713089, -0.479147732257843, 0.7344759702682495, 0.4889598786830902, 0.8128713369369507, -0.03583274781703949, 0.9461644887924194, 0.3191472291946411, 0.271066814661026, -0.13966386020183563, 1.1077195405960083, -0.673879086971283, 0.18732522428035736, 0.11231627315282822, -0.4242025911808014, -0.5932573080062866, 0.3989277184009552, -0.11073523759841919, 0.022005854174494743, 0.7719780802726746, 0.5854910612106323, -0.04909365624189377, 0.2725188136100769, 0.3027307093143463, -0.15510150790214539, 0.5358783006668091, 0.5448169112205505, 0.6645066738128662, -0.6539879441261292, 1.175296425819397, -0.2735704183578491, -0.4850119948387146, -0.1071084588766098, -0.3173602819442749, -0.9632492065429688, -0.5245025157928467, -0.49084991216659546, -0.444807767868042, 0.38526466488838196, 0.3919728100299835, 0.8779757022857666, -1.0018794536590576, 0.3432391881942749, 0.20641563832759857, 0.09258054941892624, -0.6351708173751831, -0.2811933755874634, 0.6422302722930908, -0.2542203962802887, -0.6349807977676392, 0.42891332507133484, 0.2674010097980499, 0.11608362197875977, -0.1427181214094162, -0.038071174174547195, -0.2415637969970703, -0.04692927375435829, 0.46691563725471497, 0.2804396450519562, -0.23870231211185455, -0.11763915419578552, -0.1779889017343521, -0.5676952600479126, -0.12859505414962769, 0.662152886390686, -0.3909495174884796, 0.3827594518661499, 0.25585776567459106, 1.0558406114578247, 0.4874935746192932, -0.027565035969018936, 0.49535199999809265, -0.9686862230300903, -0.15475048124790192, 0.04893455654382706, 0.2675279378890991, 0.1788453906774521, -0.5206783413887024, 0.19975198805332184, 0.541710376739502, -0.7015302777290344, -0.718329131603241, 0.11083535104990005, -0.5258930921554565, -0.45818421244621277, 0.6399614214897156, -0.5244936347007751, -0.231854647397995, -0.4514657258987427, -0.01288034487515688, 0.2715744078159332, -0.44831550121307373, 0.7802746295928955, 0.5223824977874756, 0.19838763773441315, -0.12470275163650513, -0.3928089439868927, 0.5697079300880432, -0.08886699378490448, -0.648716151714325, 0.07484925538301468, 0.16410934925079346, 0.05568823590874672, 0.3103783130645752, 0.4698488414287567, -0.15542596578598022, 0.1323261260986328, 0.3022293746471405, -0.047345612198114395, -0.4037691652774811, -1.0103750228881836, -0.4413883090019226, 0.5513190031051636, -0.397136390209198, -0.49113500118255615 ]
http://arxiv.org/abs/2405.17710v2
http://arxiv.org/pdf/2405.17710v2
Does Geo-co-location Matter? A Case Study of Public Health Conversations during COVID-19
2024-05-28T00:00:04
2024-06-28T06:24:37
Paiheng Xu, Louiqa Raschid, Vanessa Frias-Martinez
cs.SI
cs.SI, cs.CL
Social media platforms like Twitter (now X) have been pivotal in information dissemination and public engagement, especially during COVID-19. A key goal for public health experts was to encourage prosocial behavior that could impact local outcomes such as masking and social distancing. Given the importance of local news and guidance during COVID-19, the objective of our research is to analyze the effect of localized engagement, on social media conversations. This study examines the impact of geographic co-location, as a proxy for localized engagement between public health experts (PHEs) and the public, on social media. We analyze a Twitter conversation dataset from January 2020 to November 2021, comprising over 19 K tweets from nearly five hundred PHEs, along with approximately 800 K replies from 350 K participants. Our findings reveal that geo-co-location is associated with higher engagement rates, especially in conversations on topics including masking, lockdowns, and education, and in conversations with academic and medical professionals. Lexical features associated with emotion and personal experiences were more common in geo-co-located contexts. This research provides insights into how geographic co-location influences social media engagement and can inform strategies to improve public health messaging.
[ -0.35676297545433044, -0.9716485738754272, 0.8432797193527222, 0.33450764417648315, -0.18377120792865753, 0.3327355682849884, -0.23023127019405365, -0.7528678774833679, 1.1464697122573853, -0.1319189816713333, -0.16356082260608673, -0.786769449710846, -0.552823543548584, -0.19153694808483124, -0.18557336926460266, 0.7011530995368958, -0.12600304186344147, -0.2622869610786438, -0.023448389023542404, -0.13550522923469543, -0.33288493752479553, -0.7828336358070374, -0.8140017986297607, 0.2108672857284546, 0.9244260191917419, 0.48934629559516907, 0.8042868971824646, 0.12351655215024948, 0.5849490165710449, 0.19920550286769867, -0.2705193758010864, -0.1449621468782425, -0.8179677128791809, -0.15308184921741486, -0.293905109167099, -0.09360137581825256, -0.3474254310131073, 0.048309940844774246, 0.01649944856762886, 0.32726365327835083, -0.10056616365909576, 0.3664763271808624, -0.2928207814693451, 0.16144026815891266, -0.5155608057975769, -0.2411545366048813, -0.16063830256462097, 0.0732441321015358, -0.37962254881858826, -0.40058764815330505, 0.2650279104709625, -0.7222070693969727, 0.6922195553779602, -0.34101009368896484, 0.44848158955574036, -0.30185991525650024, 0.8402449488639832, 0.0852363184094429, -0.8277336955070496, 0.05823603272438049, -0.8954342603683472, 0.3613998591899872, -0.16398386657238007, 0.20997895300388336, 0.48407796025276184, 0.170784130692482, -0.23166082799434662, -0.3650221824645996, -0.11454252153635025, 0.4400933086872101, -0.14724957942962646, -0.02202661894261837, -0.6317768692970276, -0.2361280769109726, -0.031090782955288887, 0.09326312690973282, -0.35907095670700073, -0.1758916825056076, -0.6147834062576294, -0.07508810609579086, 0.8664558529853821, -0.12831424176692963, 0.6580726504325867, -0.14475488662719727, -0.0494246631860733, 0.3709772825241089, -0.5596922636032104, 0.44084420800209045, -0.14917263388633728, -0.01412909384816885, -0.7781931161880493, 0.19522371888160706, -0.12329965829849243, 0.005194066092371941, 0.29644641280174255, 0.0344257615506649, -0.08192084729671478, -0.4958397150039673, -0.005122995935380459, 0.3840761184692383, 0.6817504167556763, 0.5981240272521973, -0.20085284113883972, -0.09366637468338013, 0.45207715034484863, -0.28243890404701233, 0.268994003534317, -0.652458131313324, -0.4106176495552063, 0.34636956453323364, -0.4377073049545288, -0.0005312526482157409, 0.33045902848243713, -0.727348268032074, -0.6370773315429688, 0.18529300391674042, 0.07750757038593292, 0.2295934110879898, -0.351172536611557, -0.04821360111236572, -0.2198399156332016, -0.25797268748283386, 0.3206663131713867, -0.7772923111915588, 0.1781114786863327, 0.6455326080322266, 0.9763906598091125, 0.13261520862579346, 0.08599724620580673, -0.41669604182243347, 0.06480567902326584, -0.6070218682289124, 0.5152891278266907, -0.46798020601272583, -0.24179011583328247, 0.15735097229480743, -0.10818742960691452, -0.19133636355400085, -0.3393772542476654, 0.3339715600013733, -0.4499232769012451, 0.12928175926208496, -0.8945462107658386, 0.4684891402721405, -0.098597951233387, -0.005462040659040213, -0.14275604486465454, 0.8330864310264587, -0.07783433049917221, -0.7633267045021057, 0.42944759130477905, -0.5179666876792908, -0.7955303192138672, 0.21499475836753845, -0.3040964901447296, -0.37626171112060547, 0.2625548839569092, 0.7268796563148499, 0.3390645682811737, -0.04369714856147766, 0.3923923075199127, -0.48197856545448303, -0.4586239457130432, 0.0033091886434704065, 0.03327557444572449, 0.6588849425315857, -0.12049868702888489, -0.703787088394165, -0.12024718523025513, -0.20969612896442413, -0.20031008124351501, 0.0012819393305107951, 0.11037351936101913, -0.6910610198974609, 0.10281038284301758, -0.5076909065246582, 0.19342093169689178, 0.15542131662368774, -0.6152912974357605, -0.32000279426574707, -0.34422871470451355, 0.6402303576469421, 0.08261627703905106, 0.9724717736244202, 0.5475354790687561, -0.28340327739715576, 0.6189911365509033, -0.18536654114723206, 0.5977396368980408, 0.3553483486175537, -0.7989721298217773, 0.01799701899290085, -0.3586845397949219, -0.484372615814209, 0.33037176728248596, -0.24538156390190125, 0.14675910770893097, -0.25719815492630005, -0.8387854099273682, -0.36090752482414246, -0.47547945380210876, -0.08537960052490234, 0.4406013786792755, 0.17599165439605713, 0.2027329057455063, -0.5227442383766174, -0.3854448199272156, -0.07684670388698578, -0.004850802943110466, 0.41161179542541504, 0.5004512667655945, 0.12423674762248993, -0.053177013993263245, 0.9922363758087158, -0.44380494952201843, -0.1595304161310196, -0.10754384845495224, 0.32456135749816895, -0.19750036299228668, -0.12085487693548203, 0.745555579662323, -0.9025762677192688, -0.8589730858802795, -0.03839162737131119, -0.6332180500030518, -0.3914068341255188, 0.004478082526475191, -0.38254454731941223, -0.07949844747781754, 0.37425175309181213, -0.40905845165252686, 0.923457145690918, 0.9340099692344666, -0.26169443130493164, -0.0444384329020977, -0.2190910428762436, 0.5654323697090149, -1.1807321310043335, -0.09734132140874863, 0.20636937022209167, 0.08371875435113907, -0.8110359907150269, -0.256162166595459, -0.42149606347084045, -0.49766021966934204, -0.4061880111694336, 0.34329158067703247, -0.17411065101623535, 0.025514720007777214, -0.022308362647891045, -0.01901308260858059, 0.1538492888212204, -0.4479166865348816, 0.3290741741657257, 0.6446747183799744, 0.49005740880966187, -0.17077776789665222, -0.11854235827922821, 0.19949308037757874, -0.4006895422935486, 0.3172224760055542, -0.566291332244873, 0.14491713047027588, 0.08345711976289749, 0.5767714977264404, -0.7758365869522095, -0.3925114870071411, 0.3489142954349518, -0.4365190267562866, -0.6941956877708435, 0.10069582611322403, -0.20862498879432678, -0.5632702112197876, -0.2064841389656067, 0.3626248240470886, -0.03350372985005379, -0.23323923349380493, 0.10719702392816544, 0.883540689945221, -0.37994542717933655, -0.16297923028469086, -0.7247021198272705, 0.3663969337940216, -0.3351150453090668, -0.8139193654060364, 0.27180641889572144, 0.44638070464134216, -0.49531081318855286, 0.05254822596907616, -0.055857591331005096, -0.24808596074581146, 0.34660255908966064, 0.43743401765823364, -0.34916403889656067, -0.08909519761800766, 0.20270824432373047, -0.14669658243656158, 0.24409903585910797, 0.2975860834121704, 0.21763767302036285, 0.6688659191131592, 0.01125477533787489, -0.2729417681694031, -0.7980685234069824, 0.85140460729599, 0.478241890668869, -0.39083436131477356, 0.9260847568511963, 0.7297032475471497, -0.5368638038635254, 0.6518449783325195, -0.38293036818504333, -0.272480845451355, -0.45051950216293335, 0.15015216171741486, 0.29227370023727417, -0.8718097805976868, 0.559222400188446, 0.08845378458499908, -0.4811515808105469, -0.031712520867586136, 0.3625197112560272, -0.4181729257106781, 0.6052231192588806, 0.5615240335464478, -0.32632169127464294, 0.5032779574394226, 0.04132450744509697, 1.0493327379226685, -0.13865205645561218, -0.40843623876571655, -0.5465894937515259, -0.30188846588134766, -0.7108949422836304, -0.4195044934749603, 0.7275916934013367, -0.04717531427741051, -0.19990836083889008, 0.11099358648061752, -0.48456692695617676, 0.20619387924671173, 0.40009698271751404, 0.3476828932762146, -0.3167814314365387, 0.27019545435905457, 0.25439056754112244, -0.46425512433052063, -0.8907858729362488, 0.022917121648788452, 0.206497460603714, 0.1690794825553894, 0.48209530115127563, 0.3796607553958893, 1.0495935678482056, 0.26381394267082214, -0.03414202854037285, -0.22729195654392242, 0.38730356097221375, 0.11153976619243622, -0.38107937574386597, -0.32046613097190857, -0.11469079554080963, -1.2509746551513672, -0.3912055790424347, -0.46795654296875, -0.9900934100151062, 0.6506911516189575, -0.1683570295572281, -0.8529930114746094, 0.30193060636520386, -0.7137863039970398, 0.5580494999885559, -0.2172102928161621, -0.33484378457069397, -0.29178187251091003, -0.556122362613678, -0.22295770049095154, -0.19928205013275146, 0.45586109161376953, -0.2914748787879944, 0.3739354610443115, 0.6253684163093567, -0.5549522042274475, 0.9839267730712891, -0.09660165756940842, 0.06759634613990784, 0.5205084681510925, -0.28416794538497925, 0.3346719741821289, 0.3847807049751282, 0.17440921068191528, 0.4646070599555969, -0.1549796462059021, -0.45479264855384827, -0.1329290270805359, 0.7014050483703613, -1.1950709819793701, -0.7790113687515259, -0.3338771164417267, -0.43613409996032715, 0.22352254390716553, 0.06703728437423706, 0.31154757738113403, 0.5379143357276917, -0.06317499279975891, 0.060983750969171524, 0.5727618932723999, -0.36516714096069336, 0.3228641152381897, 0.1855958253145218, 0.08244805783033371, -0.5789192318916321, 0.6713424921035767, 0.49735260009765625, -0.06391390413045883, 0.5491195321083069, 0.7499575614929199, -0.03163611888885498, -0.05814209207892418, 0.39608895778656006, 0.2380782812833786, -0.4347643256187439, 0.04172714799642563, -0.6323875188827515, -0.06331708282232285, -0.8288286328315735, -0.8126447200775146, -0.10631167143583298, 0.24969251453876495, -0.2881738543510437, -0.1180371418595314, 0.6367730498313904, 0.9486240744590759, -0.47803378105163574, 0.3571683168411255, -0.7110608816146851, 0.026142893359065056, 0.25430771708488464, 0.046733103692531586, -0.2819605767726898, 0.01544270757585764, -0.619383692741394, -0.0529775395989418, 0.021411173045635223, -1.1355528831481934, 0.3048820495605469, -0.18478554487228394, 0.3331868052482605, 0.43494945764541626, 0.4667198359966278, 1.2130746841430664, -0.05026933178305626, 0.9754999876022339, -0.03332231193780899, -0.6203126907348633, 0.650135338306427, -0.8295736312866211, 0.6311905980110168, 0.5027937293052673, 0.6275050640106201, -0.9757779240608215, -0.7154268622398376, -0.5823409557342529, -0.8890620470046997, 0.09342198818922043, -0.13633185625076294, 0.18982619047164917, -0.38372549414634705, 0.16776348650455475, -0.25355035066604614, -0.00033114917459897697, -0.43632617592811584, -0.32092174887657166, 0.18047796189785004, 0.4135579764842987, 0.06419271975755692, -0.6433852910995483, -0.511649489402771, -0.3434392213821411, 0.10259973257780075, 0.6048580408096313, 0.4126487970352173, 0.5915964245796204, 0.42958080768585205, -0.4506966173648834, 0.19908733665943146, 0.7788394093513489, 0.894822359085083, -0.38826313614845276, 0.3994846045970917, 0.0619521364569664, -0.5948876142501831, 0.03142401576042175, -0.00429218215867877, -0.2077323943376541, 0.22750942409038544, 0.22150354087352753, 0.4147127568721771, 0.4020630419254303, 0.14636977016925812, 0.5330970883369446, -0.07803525775671005, 0.0016168988076969981, -0.07263267040252686, -0.43311503529548645, 0.3551144301891327, 0.46072256565093994, 0.5592544674873352, 0.0602477490901947, -0.004014074802398682, -0.5618270635604858, 0.18271248042583466, 0.2825736403465271, -0.3695257306098938, -0.6197071671485901, 0.9107800126075745, 0.41412225365638733, -0.33057981729507446, 0.2977093458175659, -0.015326167456805706, -0.5375432372093201, 0.4579727351665497, 0.3473288118839264, 0.561492919921875, -0.41309022903442383, 0.5340492129325867, 0.3482830226421356, 0.34439632296562195, 0.3213924467563629, 0.29139867424964905, 0.06871488690376282, -0.4208144247531891, -0.4542449414730072, 0.20519685745239258, -0.32034537196159363, 0.1514541357755661, -0.6754879951477051, 0.2466478794813156, -0.32051780819892883, -0.7435570359230042, -0.2996300756931305, 0.1472417265176773, -0.5966696739196777, 0.18433381617069244, 0.520775556564331, 0.8894500732421875, -1.39329195022583, 0.35857680439949036, 0.9444777369499207, 0.041107647120952606, -0.8147664070129395, 0.6920467019081116, 0.1482071876525879, -0.2943369150161743, 0.3735564351081848, 0.32646939158439636, -0.17218999564647675, -0.31962069869041443, -0.5933229923248291, -1.3083618879318237, 1.1738389730453491, 0.29774487018585205, -0.21446307003498077, 0.43009620904922485, 0.5167933702468872, 0.8095770478248596, -0.17137029767036438, 0.04846147820353508, 0.143530011177063, 0.1425294429063797, -0.08107252418994904, -1.1190084218978882, -0.048243068158626556, 0.07189000397920609, -0.18614867329597473, 0.026860442012548447, -1.1784330606460571, 0.41596972942352295, -0.3608185946941376, -0.5196554660797119, -0.5142788290977478, 0.48971277475357056, 0.12179271876811981, 0.8832191228866577, -0.0819348692893982, 0.4526190161705017, 1.0506210327148438, -0.033391762524843216, 1.1193749904632568, -0.21780218183994293, 0.16571147739887238, 1.0590922832489014, -0.2647700905799866, 0.9388538599014282, 0.4839344322681427, 0.10196846723556519, 0.4494855999946594, 0.8865789175033569, 0.6480274200439453, 0.7928580045700073, -0.3370739221572876, -0.6443797945976257, -0.06344973295927048, -0.604858934879303, -0.5692518949508667, 0.34943848848342896, 0.2806330621242523, -0.14209815859794617, -0.42048853635787964, 0.061967480927705765, 0.5514503717422485, 0.060163263231515884, -0.26592886447906494, 0.4612542688846588, -0.18189594149589539, -0.41216331720352173, 0.04854734241962433, -0.07849027216434479, 0.05559435486793518, -0.22666102647781372, 0.3262082636356354, -0.24712103605270386, -0.33630621433258057, -0.47021767497062683, -0.7553075551986694, 0.7319622039794922, -0.2168453484773636, -0.12182068079710007, -0.14712677896022797, 0.8897961974143982, -0.423744797706604, -0.16725477576255798, 0.5067818760871887, 0.6048261523246765, 0.35325145721435547, -0.43728628754615784, -0.30492672324180603, 0.3571600914001465, -0.2831498682498932, 0.05219278857111931, 0.3680163621902466, 0.596724808216095, -0.40967026352882385, 0.16162002086639404, 0.6113885045051575, 0.21722330152988434, 0.11141777038574219, -0.005352721083909273, 0.49679315090179443, -0.24278493225574493, -0.6658234000205994, -0.7768211960792542, 0.14099018275737762, -0.17761747539043427, -0.04945452883839607, 0.9030551314353943, 0.39177754521369934, 0.5345606803894043, 0.3927035629749298, 0.8445844054222107, -0.25645846128463745, 0.28008541464805603, 0.3556523323059082, 0.7853394150733948, -0.18301256000995636, -0.0768485739827156, 0.11563602089881897, -0.3060234785079956, -0.4660179018974304, 0.5315678119659424, -1.4139283895492554, -0.3812400698661804, 0.5437420010566711, 0.6290014386177063, 0.3318813443183899, -0.12188628315925598, 0.22676981985569, -0.08485006541013718, 0.33386164903640747, 0.20599724352359772, 0.5233932733535767, -0.15568453073501587, 0.32290083169937134, -0.5251234769821167, -0.009501387365162373, -0.44058579206466675, -0.7028120160102844, -0.805470883846283, -0.4464680254459381, -0.6434241533279419, -0.48404982686042786, 0.31326037645339966, 1.043039321899414, 0.5551764965057373, -0.5268949866294861, 0.20962685346603394, 0.18784567713737488, 0.20350266993045807, -0.06880869716405869, -0.26641783118247986, 0.6072812080383301, 0.21947456896305084, -0.3477446734905243, 0.12214943766593933, 0.685160756111145, -0.05184071883559227, 0.10141042619943619, 0.34488746523857117, -0.46464821696281433, -0.07413000613451004, 0.6665650010108948, 0.44843897223472595, -0.4403969347476959, -0.44154322147369385, 0.28927525877952576, -0.5267907381057739, 0.396449476480484, 0.6948212385177612, -0.5320364832878113, 0.5154330730438232, 0.461736261844635, 0.36925527453422546, 0.11477108299732208, 0.4235776364803314, 0.5595861673355103, -0.8359584808349609, 0.13601332902908325, -0.11145437508821487, 0.01411426067352295, 0.45570874214172363, -0.856368899345398, 0.1560232937335968, 0.3703320622444153, -0.8139772415161133, -0.4688689112663269, -0.2577022314071655, -0.5748995542526245, 0.24651746451854706, 1.4703607559204102, 0.001567993313074112, -0.24573291838169098, -0.44024133682250977, -0.09761493653059006, 0.3555312752723694, -0.6389215588569641, 1.1352890729904175, 0.6602789759635925, -0.05269898846745491, -0.23402610421180725, -0.5565552711486816, 0.4830501079559326, 0.21140241622924805, -0.8162139654159546, -0.3486652672290802, -0.0007230488117784262, 0.11925725638866425, 0.17120680212974548, 1.060634970664978, 0.257729709148407, 0.3777512013912201, -0.384924054145813, -0.2000422328710556, 0.3212891221046448, -0.30926769971847534, -0.2688840627670288, 0.07901164144277573, -0.2772471308708191, -0.24883557856082916 ]
http://arxiv.org/abs/2405.17703v1
http://arxiv.org/pdf/2405.17703v1
Mechanistic Interpretability of Binary and Ternary Transformers
2024-05-27T23:22:23
2024-05-27T23:22:23
Jason Li
cs.LG
cs.LG, cs.CL
Recent research (arXiv:2310.11453, arXiv:2402.17764) has proposed binary and ternary transformer networks as a way to significantly reduce memory and improve inference speed in Large Language Models (LLMs) while maintaining accuracy. In this work, we apply techniques from mechanistic interpretability to investigate whether such networks learn distinctly different or similar algorithms when compared to full-precision transformer networks. In particular, we reverse engineer the algorithms learned for the toy problem of modular addition where we find that binary and ternary networks learn similar algorithms as full precision networks. This provides evidence against the possibility of using binary and ternary networks as a more interpretable alternative in the LLM setting.
[ -0.10378362238407135, -0.5869909524917603, 0.6692666411399841, 0.2570268511772156, -0.028686122968792915, 0.07729823887348175, -0.31555622816085815, -0.3707064092159271, 0.1858610361814499, 0.28757908940315247, -0.7673062682151794, -0.05327318236231804, -0.6163627505302429, 0.2966230809688568, -0.624121367931366, 0.6911338567733765, 0.046412743628025055, 0.04481138661503792, 0.18696381151676178, -0.18968066573143005, -0.3828805387020111, -0.3812289237976074, -0.6357961893081665, -0.8232730031013489, 0.5281127095222473, 0.3181536793708801, 0.8982224464416504, 0.3109656870365143, 0.4698096811771393, 0.4362889528274536, -0.2637629210948944, -0.21252240240573883, -0.468530535697937, -0.08014260977506638, -0.5143009424209595, -0.8955507278442383, -0.2601480782032013, -0.3730919063091278, 0.5799145102500916, 0.8389402627944946, 0.059197887778282166, 0.27963268756866455, -0.12872323393821716, 0.798565685749054, -0.34635284543037415, 0.38662347197532654, -0.5652537941932678, 0.2789783179759979, 0.03547948598861694, -0.2615603804588318, -0.7385372519493103, -0.18386869132518768, 0.12562808394432068, -0.35764580965042114, 0.47577500343322754, -0.06945131719112396, 0.558944582939148, 0.13033054769039154, -0.23060466349124908, -0.14658069610595703, -1.1136149168014526, 0.8709343671798706, -0.7909218668937683, 0.4632357060909271, -0.18285655975341797, 0.4451276361942291, -0.1329147219657898, -0.7274628281593323, -0.8961753249168396, 0.09354505687952042, -0.39491167664527893, 0.03748231753706932, -0.3497835099697113, 0.08474639058113098, 0.41960427165031433, 0.21273711323738098, -0.5648360848426819, 0.2717440128326416, -0.6202037930488586, -0.04384738951921463, 0.37901660799980164, 0.27444973587989807, 0.29038864374160767, -0.3085285425186157, -0.11844875663518906, -0.11316634714603424, -0.6051720380783081, 0.1396542638540268, 0.3802069425582886, 0.21507520973682404, -0.2000545710325241, 0.7108749747276306, -0.15000154078006744, 0.4312620460987091, 0.0739511027932167, 0.03422102332115173, 0.22586436569690704, -0.23675638437271118, -0.31086447834968567, 0.10584288835525513, 0.7016443610191345, 0.2791602909564972, 0.6620607376098633, -0.48183006048202515, -0.13830852508544922, -0.09414123743772507, 0.4806033670902252, -0.7238130569458008, -0.405095636844635, 0.06865807622671127, -0.9343468546867371, -0.40886232256889343, 0.2595755159854889, -0.10279123485088348, 0.14644716680049896, -0.4589858055114746, 0.7849209308624268, -0.24811065196990967, -0.38180869817733765, 0.3110056221485138, -0.4402100443840027, 0.33719778060913086, 0.10703758895397186, -1.0624276399612427, 0.4019854664802551, 1.0889737606048584, 0.9497541189193726, -0.02436274103820324, -0.36573779582977295, -0.01493037585169077, 0.07299356907606125, -0.21944394707679749, 0.5586515069007874, -0.5972243547439575, -0.21932421624660492, -0.5381978154182434, 0.37986865639686584, -0.21836775541305542, -0.6427740454673767, 0.1752147376537323, -0.9469323754310608, -0.07909438014030457, 0.038993965834379196, -0.2112841159105301, -0.5127622485160828, -0.043599553406238556, -0.9740992784500122, 0.5707177519798279, 0.1962902843952179, -0.4488098919391632, 0.13765084743499756, -0.5560259819030762, -0.6648637056350708, -0.47544875741004944, 0.09679657220840454, -0.3915441632270813, 0.5702134370803833, -0.14249804615974426, 0.5174453258514404, -0.2273719757795334, 0.428608775138855, -0.44482114911079407, -0.8073961734771729, 0.6773276329040527, -0.8890957832336426, 0.8889157176017761, 0.057021353393793106, -0.5728614926338196, 0.12339679896831512, -0.6677677035331726, -0.1737697869539261, 0.0757300853729248, -0.16839778423309326, -0.01567767933011055, 0.173108771443367, -0.2644895911216736, 0.10639970004558563, 0.02205590531229973, -0.5016247034072876, 0.03422423452138901, -0.5798913836479187, 0.744943380355835, 0.9388332962989807, -0.1849389523267746, 0.6441903114318848, -0.2788018584251404, 0.17913785576820374, 0.1156812384724617, 0.15490058064460754, 0.14793427288532257, -0.5060186982154846, -0.8081271648406982, 0.2591772973537445, 0.3426482677459717, 0.4534209370613098, -1.0025110244750977, 0.46883127093315125, -0.7772324681282043, -0.27757003903388977, -0.07021760940551758, -0.026095926761627197, 0.22490696609020233, 0.5158994793891907, 0.5131371021270752, -0.4509391486644745, -0.4530177116394043, -1.2011289596557617, -0.19301167130470276, -0.3887510895729065, -0.22513262927532196, 0.2616097927093506, 0.4787208139896393, -0.11852836608886719, 0.7771745920181274, -0.40142491459846497, 0.29506024718284607, -0.1388876885175705, 0.10020117461681366, 0.8341445326805115, 0.4596027433872223, 0.21578097343444824, -0.7541019320487976, -0.2790893614292145, 0.0008516526431776583, -0.7663264274597168, 0.06348900496959686, -0.28392431139945984, 0.23744474351406097, -0.008207648061215878, 0.354944109916687, -0.5158035755157471, 0.5367998480796814, 0.45263296365737915, -0.1448919177055359, 0.7743135094642639, -0.13338540494441986, 0.19048982858657837, -0.818850040435791, -0.18256635963916779, 0.0005784243112429976, -0.2977781295776367, -0.714489221572876, -0.15171360969543457, 0.09880110621452332, 0.19252049922943115, -0.5670962333679199, 0.24617217481136322, -0.19096368551254272, -0.44434019923210144, -0.12469533085823059, -0.33668798208236694, 0.04743023216724396, 0.5508098006248474, -0.09553289413452148, 1.0843675136566162, 0.4713941812515259, -0.6549563407897949, 0.346096009016037, 0.2611997723579407, -0.19506874680519104, 0.23541833460330963, -1.0014469623565674, -0.1310766339302063, -0.10000225156545639, 0.2662981152534485, -1.02158784866333, 0.140059694647789, 0.3173695206642151, -0.4591953456401825, 0.2622470259666443, -0.0835256278514862, -0.5115874409675598, -0.31896576285362244, -0.28152307868003845, 0.6031639575958252, 0.6434051990509033, -0.7624020576477051, 0.7877473831176758, -0.3631836771965027, 0.0596085786819458, -0.7608412504196167, -0.8466581702232361, 0.0725979432463646, -0.24266108870506287, -0.7962734699249268, 0.1264267861843109, 0.1953149288892746, -0.3027947247028351, 0.3180954158306122, -0.3598494529724121, 0.0005049805622547865, 0.2964150309562683, 0.10853491723537445, 0.07748539745807648, -0.6698976159095764, 0.35474827885627747, 0.12725655734539032, -0.542513906955719, 0.3592197895050049, -0.4001445472240448, 0.6121594309806824, -0.23551808297634125, -0.3941095769405365, -0.4808826744556427, -0.01773880422115326, 0.3170994520187378, 0.21579083800315857, 0.9069517254829407, 0.5235562324523926, -0.01816122978925705, -0.2564905881881714, -0.39088010787963867, -0.37174245715141296, -0.6208928227424622, 0.2825005352497101, -0.6230493187904358, -0.793760359287262, 0.49539628624916077, -0.04928017407655716, -0.3028598725795746, 0.6697434782981873, 0.6286745071411133, -0.30500733852386475, 0.5775911211967468, 0.3340267241001129, 0.16115702688694, 0.31750771403312683, -0.30308404564857483, 0.3387295603752136, -0.7490761876106262, -0.223709836602211, -0.4665423035621643, -0.8812869191169739, -0.7654683589935303, -0.5134423971176147, 0.23678922653198242, -0.17687742412090302, -0.37609243392944336, 0.5355477929115295, -0.4559767246246338, 0.710675835609436, 0.5579585433006287, 0.4198088049888611, 0.4708862900733948, 0.2748969495296478, 0.18919359147548676, 0.22881197929382324, -0.464328408241272, -0.49032920598983765, 1.0924063920974731, 0.34691375494003296, 0.8272976279258728, 0.4932197034358978, 0.30109792947769165, 0.19104017317295074, 0.07714249938726425, -0.9930111765861511, 0.37079113721847534, -0.5961143374443054, -0.6784718036651611, -0.3580089807510376, -0.7842114567756653, -1.0064588785171509, 0.04899127781391144, -0.31393495202064514, -0.8828573226928711, 0.2271450310945511, -0.1201622262597084, -0.05015474557876587, 0.7496904730796814, -0.8673227429389954, 0.5571178197860718, -0.23410563170909882, 0.00468168081715703, -0.5290203094482422, -0.7758259773254395, 0.2606034278869629, -0.10897379368543625, -0.0434737503528595, 0.19096018373966217, -0.0760437622666359, 0.7067737579345703, -0.46039003133773804, 0.9795145392417908, 0.1625126600265503, -0.044521331787109375, 0.31327834725379944, 0.21948671340942383, 0.24279531836509705, -0.09272537380456924, -0.41090458631515503, 0.4983823299407959, -0.10447318851947784, -0.4344480037689209, -0.9992794990539551, 0.5752257704734802, -0.9877383708953857, -0.6755903959274292, 0.031663186848163605, -0.7419140934944153, -0.06811235845088959, 0.2129880040884018, 0.04569007828831673, 0.7968682646751404, 0.11270347982645035, 0.3948551118373871, 0.7317817211151123, -0.1958540380001068, 0.7268584966659546, 0.23406432569026947, 0.06884400546550751, 0.0732547715306282, 1.003404974937439, 0.21203669905662537, 0.5456090569496155, 0.8807633519172668, 0.2922781705856323, -0.3196026384830475, -0.7810362577438354, -0.5080516934394836, 0.3044990301132202, -0.6546891927719116, 0.20332622528076172, -0.6405417919158936, -0.2526814639568329, 0.04759996756911278, -0.06018410623073578, -0.047103047370910645, -1.2602111101150513, -0.27052152156829834, -0.09104591608047485, 0.3486024737358093, 0.9754942655563354, -0.056241489946842194, 0.8961483240127563, -0.9137054681777954, 0.3668214976787567, 0.4767571687698364, 0.6557281613349915, 0.31622937321662903, -0.621612548828125, -0.08303496241569519, 0.05290668085217476, -0.17733538150787354, -0.8020806908607483, -0.18163137137889862, 0.038871850818395615, 0.21929512917995453, 0.43321123719215393, -0.3465842306613922, 0.5338857173919678, -0.6059399247169495, 0.5308334827423096, 0.3230053186416626, -1.11895751953125, -0.1070348396897316, -0.12230809032917023, -0.021335305646061897, 0.29501307010650635, 0.31832006573677063, -0.4316999614238739, 0.20558671653270721, -0.9617505073547363, -0.548094630241394, 0.7580463886260986, 0.3733340799808502, 0.34302985668182373, 0.3118692934513092, 0.61099773645401, 0.3438946008682251, 0.16054020822048187, -0.5150177478790283, -0.6069179773330688, -0.06223312020301819, -0.34305378794670105, -0.4161229431629181, -0.29563283920288086, 0.22641931474208832, -0.11251375079154968, 0.5644559860229492, 0.009727898985147476, 0.4591505229473114, -0.17263492941856384, -0.270170122385025, -0.06307663768529892, 0.5239760875701904, 0.3425627648830414, 0.9502658247947693, -0.28084057569503784, 0.5350205898284912, 0.4345685541629791, -0.3625248670578003, 0.4688761830329895, -0.3416615128517151, -0.2564113438129425, 0.042293332517147064, 0.6531585454940796, 0.7228018045425415, 0.2143838107585907, -0.36537742614746094, 0.32989126443862915, -0.18266946077346802, -0.24573497474193573, -0.19586311280727386, 0.3375381529331207, 0.39660876989364624, 0.43638643622398376, 0.2824350893497467, 0.34793922305107117, 0.3781750798225403, -0.647676408290863, 0.31261059641838074, 0.33253833651542664, -0.7048077583312988, -0.6985757946968079, 0.2718508541584015, 0.032459624111652374, -0.7101118564605713, 0.6831184029579163, -0.0022474233992397785, -0.5764001607894897, 0.88374263048172, 0.5698285698890686, 0.7901451587677002, 0.08499202877283096, 0.3867049217224121, 0.16940361261367798, 0.597556471824646, -0.012846703641116619, -0.08860454708337784, 0.04668698459863663, -0.7898293733596802, -0.8718767762184143, -0.31411200761795044, -0.4509212076663971, -0.13039831817150116, -0.6914878487586975, 0.21714912354946136, -0.5029189586639404, 0.09584788978099823, 0.24199695885181427, -0.39921754598617554, -0.5970730781555176, 0.31243911385536194, -0.19194376468658447, 0.6710405349731445, -0.9157822728157043, 0.47304069995880127, 0.6674026250839233, -0.028575511649250984, -1.06148099899292, -0.15932703018188477, -0.17390549182891846, -1.0329264402389526, 0.7143697738647461, 0.23178425431251526, -0.14472466707229614, -0.1628587543964386, -0.4545661509037018, -0.5987276434898376, 1.081754207611084, 0.01651068776845932, -0.5554148554801941, -0.13534465432167053, 0.44750910997390747, 0.5953042507171631, -0.03625672683119774, 0.773059070110321, 0.8364177346229553, 0.44253048300743103, 0.16962255537509918, -1.069278359413147, 0.2819575369358063, -0.1502375453710556, -0.08923370391130447, 0.46297961473464966, -0.5956107378005981, 0.9414568543434143, -0.06933706998825073, -0.25837451219558716, -0.18420326709747314, 0.53974848985672, -0.22062049806118011, 0.3754110634326935, 0.6384363174438477, 0.361731618642807, 0.367083340883255, -0.15505743026733398, 0.7982138991355896, 0.1323203593492508, 0.46478554606437683, 0.9695577025413513, 0.2449212372303009, 0.5507093667984009, 0.40008801221847534, -0.5374654531478882, 0.6742902398109436, 0.2589789628982544, -0.09671032428741455, 0.14648514986038208, 0.2569583058357239, -0.06437364965677261, -0.4552687704563141, 0.14788205921649933, -0.3469700217247009, 0.2696283161640167, 0.37383508682250977, -0.3143678903579712, -0.30295512080192566, -0.3144618570804596, -0.1998395025730133, -0.22045372426509857, -0.23161625862121582, 0.718944251537323, 0.25683942437171936, -0.0009428165503777564, 0.40397459268569946, -0.005031300242990255, 0.7675074338912964, -0.1863735169172287, -0.030996650457382202, 0.19495922327041626, 0.29909682273864746, -0.4991045594215393, -1.0283652544021606, 0.5581844449043274, -0.3078141212463379, -0.4307366609573364, 0.06766636669635773, 0.7344943881034851, 0.1252715140581131, -0.7719606161117554, 0.25058603286743164, 0.6399950981140137, 0.126801997423172, 0.12323568016290665, -0.6408747434616089, -0.23301739990711212, 0.1334497630596161, -0.18049879372119904, 0.006633765995502472, 0.6437340378761292, -0.157467782497406, 0.8729480504989624, 0.633597195148468, 0.07161904871463776, 0.09884253144264221, -0.02928098849952221, 0.8870382308959961, -0.8102861642837524, -0.010748895816504955, -1.0637654066085815, 0.4577349126338959, 0.22681494057178497, 0.17541256546974182, 0.4677152931690216, 0.2575312852859497, 0.7477732300758362, -0.21755649149417877, 0.6414062976837158, -0.06211136281490326, 0.2338905781507492, -0.6578516960144043, 0.4499208331108093, -0.3563527464866638, 0.48698002099990845, -0.07073576748371124, -1.2216368913650513, -0.2755776047706604, 0.6078584790229797, -0.4653119742870331, 0.07351379841566086, 0.8550347089767456, 0.8834119439125061, -0.5397316813468933, 0.5035044550895691, 0.23178927600383759, 0.4747650921344757, 0.5049536228179932, 0.6525214314460754, 1.0289446115493774, -0.571070671081543, 0.6566315293312073, -0.4671384394168854, -0.10522495210170746, -0.10606411844491959, -0.8844101428985596, -1.0657531023025513, -0.281270295381546, 0.002246721414849162, -0.42747053503990173, -0.08005775511264801, 0.7517579793930054, 0.38420984148979187, -1.0060906410217285, -0.26116082072257996, -0.00032067502615973353, 0.6086943745613098, -0.2095838487148285, -0.22411476075649261, 0.2847886085510254, -0.04325711354613304, -0.6233952045440674, 0.12512007355690002, 0.1781845986843109, -0.046806395053863525, -0.10905414074659348, -0.020423877984285355, 0.06344933807849884, 0.1358967125415802, 0.6611042618751526, 0.051261600106954575, -0.5410531163215637, -0.652553379535675, 0.22900740802288055, 0.35989001393318176, 0.2116733342409134, 0.9159499406814575, -0.6683184504508972, 0.35702911019325256, 0.6035715937614441, 0.47323542833328247, 0.5889495015144348, 0.13512049615383148, 0.6006171703338623, -0.3694910705089569, 0.16335102915763855, -0.054623913019895554, 0.3143787384033203, 0.1155521348118782, -0.1471375972032547, 0.6601237654685974, 0.2000729888677597, -0.3715522289276123, -0.4529815912246704, 0.35729292035102844, -1.0385208129882812, -0.31949684023857117, 1.0341233015060425, 0.034093014895915985, -0.3518632650375366, -0.33852195739746094, 0.10223931074142456, 0.26316678524017334, -0.20251809060573578, 0.6339464783668518, 0.42121773958206177, -0.056007154285907745, 0.04068782180547714, -0.33005398511886597, -0.14268018305301666, 0.6838783025741577, -0.3659783899784088, -0.2832667827606201, 0.12309911847114563, 0.4745279550552368, 0.4792397618293762, 0.11989625543355942, 0.054098259657621384, 0.24510903656482697, -0.18154025077819824, -0.19963909685611725, -0.2334548979997635, -0.4874759316444397, -0.4561666250228882, 0.048144448548555374, 0.02212812937796116, 0.24467524886131287 ]
http://arxiv.org/abs/2405.17658v1
http://arxiv.org/pdf/2405.17658v1
Generative Query Reformulation Using Ensemble Prompting, Document Fusion, and Relevance Feedback
2024-05-27T21:03:26
2024-05-27T21:03:26
Kaustubh D. Dhole, Ramraj Chandradevan, Eugene Agichtein
cs.IR
cs.IR, cs.CL, H.3.3; I.2.7
Query Reformulation (QR) is a set of techniques used to transform a user's original search query to a text that better aligns with the user's intent and improves their search experience. Recently, zero-shot QR has been a promising approach due to its ability to exploit knowledge inherent in large language models. Inspired by the success of ensemble prompting strategies which have benefited other tasks, we investigate if they can improve query reformulation. In this context, we propose two ensemble-based prompting techniques, GenQREnsemble and GenQRFusion which leverage paraphrases of a zero-shot instruction to generate multiple sets of keywords to improve retrieval performance ultimately. We further introduce their post-retrieval variants to incorporate relevance feedback from a variety of sources, including an oracle simulating a human user and a "critic" LLM. We demonstrate that an ensemble of query reformulations can improve retrieval effectiveness by up to 18% on nDCG@10 in pre-retrieval settings and 9% on post-retrieval settings on multiple benchmarks, outperforming all previously reported SOTA results. We perform subsequent analyses to investigate the effects of feedback documents, incorporate domain-specific instructions, filter reformulations, and generate fluent reformulations that might be more beneficial to human searchers. Together, the techniques and the results presented in this paper establish a new state of the art in automated query reformulation for retrieval and suggest promising directions for future research.
[ -0.40050017833709717, -0.6892902851104736, 0.5788893699645996, -0.20291605591773987, -0.2764994502067566, 0.05546892061829567, -0.24977976083755493, 0.1076163798570633, 0.4461459517478943, 0.775291919708252, -0.5135366916656494, -0.6025877594947815, 0.0365656353533268, 0.20162838697433472, -0.7247565388679504, 1.0436344146728516, 0.27065232396125793, 0.026032689958810806, -0.2803269028663635, -0.07272961735725403, -0.5448972582817078, -0.3583792746067047, -0.5610553622245789, -0.10867291688919067, 0.49122604727745056, 0.45060813426971436, 0.45555171370506287, 0.27736490964889526, 0.3789273500442505, 0.20755521953105927, -0.05722992494702339, 0.09893088042736053, -0.6793369650840759, 0.7890009880065918, -0.11994173377752304, -0.7379108667373657, 0.023305578157305717, -0.2236059606075287, 0.7475107908248901, 0.3531714081764221, -0.563064694404602, -0.07912244647741318, 0.2663806974887848, 0.5892353057861328, -0.8378406167030334, -0.09316384047269821, -0.8246331810951233, -0.12671847641468048, -0.2826152443885803, -0.6850442290306091, -0.48571833968162537, -0.5483105182647705, -0.19615863263607025, -0.9636102914810181, 0.6275943517684937, 0.15738226473331451, 0.7131603360176086, 0.2470199018716812, -0.22716845571994781, -0.1413378268480301, -0.7974585294723511, 0.6364833116531372, -0.5648428201675415, 0.34188610315322876, 0.26169997453689575, 0.7274931073188782, -0.3929586708545685, -0.8767661452293396, -0.6288633942604065, -0.05193530023097992, -0.06680396944284439, 0.26884886622428894, -0.27438095211982727, 0.10291644930839539, 0.0565250962972641, 0.36422300338745117, -0.5656929016113281, -0.22924599051475525, -0.6081886291503906, -0.22200645506381989, 0.8128931522369385, 0.11680061370134354, 0.27452975511550903, -0.14103777706623077, -0.25498294830322266, -0.6913366317749023, -0.7509742379188538, -0.15709874033927917, 0.13888145983219147, 0.30950233340263367, 0.6827311515808105, 0.4087701141834259, -0.7701142430305481, 0.7778704762458801, 0.4595493972301483, 0.2059604525566101, -0.03247112035751343, -0.5446087121963501, -0.1570848971605301, 0.19381164014339447, 0.8020907640457153, 0.4791254997253418, -0.19803035259246826, -0.36533471941947937, -0.43688833713531494, -0.265703946352005, 0.4725174605846405, -0.6025891304016113, -0.35796332359313965, 0.21371576189994812, -0.4307769536972046, -0.2903968393802643, 0.2436860203742981, -1.0139000415802002, -0.22778619825839996, -0.22162052989006042, 0.809183657169342, -0.7926063537597656, 0.10742584615945816, 0.054892756044864655, -0.481585294008255, 0.7023568749427795, 0.5479406714439392, -0.8642603158950806, 0.2031424343585968, 0.6313096880912781, 0.3790332078933716, 0.19131772220134735, -0.1312706619501114, -0.829833984375, -0.025516238063573837, -0.3674217164516449, 1.0495648384094238, -0.9026006460189819, -0.7322131395339966, 0.021841904148459435, -0.13334806263446808, -0.15351872146129608, -0.761307418346405, 0.7247533202171326, -1.0747499465942383, 0.5535351634025574, -0.5076665282249451, -0.5918818712234497, -0.17954620718955994, 0.47126296162605286, -0.6117013096809387, 1.020471215248108, -0.056737303733825684, -0.26963356137275696, 0.4279823899269104, -0.6467828154563904, -0.2969937324523926, 0.563942551612854, -0.278675377368927, -0.1340673863887787, -0.005431179888546467, 0.4064975082874298, 0.02918514423072338, -0.23336343467235565, -0.07004275918006897, 0.10895585268735886, -0.675845205783844, -0.1659523993730545, -0.033144496381282806, 0.5120123624801636, 0.20008496940135956, -0.07204405963420868, 0.3099890947341919, -0.3533283770084381, 0.39547231793403625, -0.029274221509695053, -0.17305833101272583, -0.2938152849674225, -0.21940095722675323, -0.16777582466602325, -0.25495320558547974, 0.06666290760040283, -0.2546308636665344, 0.4873429834842682, -0.25756847858428955, 0.4728325605392456, 0.18715287744998932, 0.4610455334186554, 0.6434765458106995, -0.5177826881408691, 0.9504296779632568, -0.3052251935005188, -0.001457573496736586, -0.6109184622764587, -0.49775415658950806, -0.2960955798625946, 0.005003889091312885, 0.5728511810302734, 0.3941202759742737, -1.2497199773788452, 0.14698125422000885, -0.2573181092739105, -0.3578307330608368, -0.9150893092155457, 0.05363009124994278, 0.3063519299030304, 0.5109955668449402, 0.7002854347229004, -0.15836165845394135, -0.4607235789299011, -0.40977632999420166, -0.4578429162502289, -0.1749802678823471, -0.21662938594818115, 0.23285004496574402, 0.18323495984077454, 0.12998232245445251, 0.9214704632759094, -0.6141347885131836, -0.41226842999458313, -0.12165094912052155, 0.39378395676612854, -0.09476982802152634, 0.3878602683544159, 0.37395724654197693, -0.8632078766822815, -0.351203590631485, -0.20101362466812134, -0.38575491309165955, 0.06490152329206467, -0.13906815648078918, -0.32228147983551025, -0.060261424630880356, 0.7859915494918823, -0.6478581428527832, 0.26325997710227966, -0.153086319565773, 0.08252113312482834, 0.8610019087791443, -0.2265847623348236, 0.6769519448280334, -1.0247254371643066, 0.04341113939881325, -0.18720287084579468, 0.07669535279273987, -0.49644172191619873, 0.5591787099838257, 0.14379294216632843, -0.13715922832489014, -0.2904796600341797, 0.5500515699386597, -0.5261240601539612, 0.2410563975572586, -0.2256891280412674, 0.19107258319854736, 0.21876105666160583, 0.08152804523706436, -0.30046674609184265, 1.1401748657226562, 0.369572252035141, -0.7943728566169739, 0.3925221562385559, 0.30667752027511597, -0.1588352620601654, 0.5129587054252625, -0.5935919284820557, 0.22993165254592896, -0.4244469404220581, 0.4358753263950348, -1.2790091037750244, -0.553703784942627, 0.0433964729309082, -0.5203074812889099, 0.2846795916557312, -0.25902697443962097, -0.6500566005706787, -0.28055909276008606, -0.7496013641357422, 0.4010103642940521, 0.7035382390022278, -0.5937549471855164, 0.3333740234375, -0.08758310973644257, -0.019568737596273422, -0.33468806743621826, -0.3352627456188202, 0.19759371876716614, -0.25913599133491516, -0.5265674591064453, 0.8474829792976379, 0.20484519004821777, -0.06885921210050583, 0.09863857924938202, 0.0028815872501581907, -0.005563968326896429, -0.08900044858455658, -0.33283531665802, 0.18156473338603973, -0.27804604172706604, 0.40134209394454956, 0.39125046133995056, 0.3080764412879944, -0.2875897288322449, -0.44274958968162537, 0.8278132677078247, 0.13957378268241882, -0.45261165499687195, -0.42344486713409424, 0.1948327124118805, 0.36254939436912537, -0.6276885271072388, 0.4548680782318115, 0.7167051434516907, -0.12088923156261444, 0.003448840929195285, -0.727252185344696, -0.8402973413467407, -0.43839457631111145, -0.19514472782611847, -0.36137303709983826, -1.0558571815490723, 0.4962027966976166, 0.07841040194034576, -0.14082837104797363, 0.5544163584709167, 0.29500290751457214, -0.3118748366832733, 1.052341341972351, 0.2576009929180145, 0.21514926850795746, 0.5485054850578308, -0.32143667340278625, 0.16369715332984924, -1.098864197731018, -0.4617304801940918, -0.6750994920730591, -0.37127381563186646, -0.7339060306549072, -0.44718942046165466, 0.5341832637786865, 0.5860714316368103, 0.2164241522550583, 0.4569622874259949, -0.7780388593673706, 0.5277357697486877, 0.721341609954834, 0.13941341638565063, 0.16607527434825897, 0.197835311293602, -0.1967489868402481, 0.09318502992391586, -0.6930417418479919, -0.3488782048225403, 1.3314321041107178, -0.6185967922210693, 0.6708415746688843, 0.1835392266511917, 1.2105472087860107, 0.10014409571886063, 0.08960200846195221, -0.8079038262367249, 0.5851566791534424, 0.043658021837472916, -0.4617307186126709, -0.6186268329620361, -0.34100934863090515, -1.3940274715423584, 0.3404012620449066, -0.24217349290847778, -0.7535813450813293, 0.3144210875034332, 0.2156628519296646, -0.8575901985168457, -0.12445265054702759, -0.5426334142684937, 0.6086165308952332, 0.16835853457450867, -0.246754989027977, -0.07920832931995392, -0.5984781980514526, 0.2681421935558319, 0.20276950299739838, -0.24550020694732666, 0.1689319759607315, 0.07720639556646347, 0.47257623076438904, -0.41116759181022644, 0.26191437244415283, -0.12127132713794708, 0.15510587394237518, 0.46520817279815674, 0.05634191259741783, 0.4907623529434204, -0.13418379426002502, -0.3906324505805969, -0.5466998815536499, 0.33195242285728455, -0.40242239832878113, -1.126468539237976, 0.5286840200424194, -0.17001229524612427, -1.1138801574707031, 0.09309083968400955, -0.2689169943332672, -0.017703616991639137, 0.3724169433116913, 0.4924280643463135, 0.28460225462913513, -0.29519888758659363, 0.46138492226600647, 0.7662026882171631, 0.0004319869331084192, 0.30983766913414, 0.3828224539756775, -0.3670886754989624, -0.2632187306880951, 0.9168170094490051, 0.0732932910323143, -0.08784880489110947, 0.6013121008872986, 0.01850036345422268, -0.6713719367980957, -0.4358433485031128, -0.6517056822776794, 0.041208021342754364, -0.334248423576355, -0.4464825391769409, -0.4702620208263397, 0.02706863358616829, -0.9669357538223267, 0.10274186730384827, 0.25681397318840027, -0.39454707503318787, -0.21606601774692535, 0.26094773411750793, 0.43704840540885925, 0.143386110663414, 0.20713910460472107, 0.2931741178035736, -1.013368844985962, -0.031189247965812683, 0.42209991812705994, -0.08500613272190094, 0.00756025779992342, -0.6101675629615784, 0.08552298694849014, 0.04247886687517166, -0.5692174434661865, -1.1330479383468628, 0.4816162586212158, 0.360061377286911, 0.6438564658164978, 0.40896597504615784, 0.5141348838806152, 0.6250280737876892, -0.38744404911994934, 0.8390761017799377, -0.06783487647771835, -0.6209812164306641, 0.9110205769538879, -0.4276697635650635, 0.32156574726104736, 0.97319495677948, 0.25439149141311646, -0.42870625853538513, -0.22622272372245789, -0.5938809514045715, -0.815861165523529, 0.5014203190803528, 0.2678692638874054, 0.24597938358783722, -0.17390699684619904, 0.7270885109901428, -0.15146897733211517, 0.40517425537109375, 0.26983967423439026, -0.010463198646903038, -0.17415007948875427, 0.021274404600262642, 0.19126003980636597, -0.12486693263053894, -0.3005945086479187, -0.10682779550552368, 0.43368056416511536, -0.2788601815700531, 0.15170739591121674, 0.33417630195617676, 0.07947514951229095, 0.10797403007745743, 0.6362118124961853, 0.39041462540626526, 0.28797146677970886, -0.26945605874061584, -0.066793292760849, 0.005134107079356909, -0.20618294179439545, 0.17010380327701569, 0.30600592494010925, -0.5802389979362488, 0.02091800980269909, 0.027670709416270256, 0.5549138188362122, 0.2218395173549652, -0.6577598452568054, 0.3953245282173157, -0.07274531573057175, -0.3481593430042267, 0.20709937810897827, 0.39476895332336426, -0.16500648856163025, 0.06944123655557632, 0.65604168176651, -0.11664403975009918, 0.8532021641731262, -0.76829993724823, 0.34829476475715637, 0.5523760914802551, -0.33445021510124207, -0.1819836050271988, 0.7612027525901794, -0.01769411936402321, -0.34451380372047424, 0.8288720846176147, -0.6794208288192749, -0.46813347935676575, 0.4077033996582031, 0.495814710855484, 0.799669086933136, -0.48912233114242554, 0.5265907645225525, 0.3784414231777191, -0.02886611968278885, -0.41539695858955383, 0.36639514565467834, -0.5766087174415588, -0.7425593137741089, -0.3707065284252167, -0.558476448059082, -0.3353131413459778, -0.040111247450113297, -1.1119885444641113, 0.23311279714107513, -0.2610847055912018, -0.04179622232913971, 0.1064247190952301, -0.037691399455070496, -0.33365586400032043, 0.10081958770751953, -0.3041377663612366, 0.7784876823425293, -0.27365949749946594, 0.7791199088096619, 1.1673758029937744, -0.8422176241874695, -0.9092615842819214, 0.6068070530891418, 0.024756135419011116, -0.7153514623641968, 0.3977230489253998, -0.001364327734336257, -0.09151330590248108, 0.2456764280796051, -0.5212228298187256, -0.6414481997489929, 1.3104562759399414, 0.36104393005371094, -0.495758593082428, -0.11244986206293106, -0.4360092878341675, 0.7179160714149475, -0.08760523796081543, 0.37385690212249756, 0.6919825673103333, 0.30201080441474915, 0.502834677696228, -0.7216378450393677, 0.25102323293685913, -0.20113646984100342, 0.27672961354255676, 0.5100695490837097, -0.6142501831054688, 0.6697151064872742, -0.21964502334594727, -0.5471420288085938, 0.2787238359451294, 0.5265640616416931, 0.49498796463012695, 0.4450344145298004, 0.3107278048992157, 0.6161020994186401, 0.9140636324882507, -0.11396517604589462, 1.3504530191421509, -0.5952703952789307, 0.26307713985443115, 0.8440428972244263, -0.317241907119751, 1.1843444108963013, 0.48887354135513306, -0.1746596395969391, 0.4093056321144104, 0.5640977025032043, 0.06178539618849754, 0.6277491450309753, 0.15328238904476166, -0.5197707414627075, -0.15989673137664795, -0.11370989680290222, -0.39477354288101196, 0.4421246349811554, 0.2443368136882782, -0.18771088123321533, -0.35450008511543274, -0.11015070974826813, -0.008054496720433235, 0.1908070147037506, -0.2004529982805252, 1.0128288269042969, -0.19017165899276733, -1.0059022903442383, 0.6977100372314453, -0.014371980912983418, 0.5719171762466431, -0.09928156435489655, -0.2123400717973709, -0.5147790908813477, -0.13340148329734802, -0.3418551981449127, -0.7159592509269714, 0.2839072048664093, -0.38049355149269104, -0.19414404034614563, -0.16950146853923798, 0.8041022419929504, -0.6482105851173401, -0.2473127841949463, 0.01503545418381691, 0.43346133828163147, 0.3575791120529175, -0.5769599080085754, -0.547684371471405, -0.14770019054412842, 0.23854345083236694, 0.05231459438800812, 0.3816175162792206, 0.4795134961605072, -0.16627414524555206, 0.3978547751903534, 0.7351410388946533, -0.13631542026996613, 0.062317632138729095, 0.32101815938949585, 0.9745388627052307, -0.674933671951294, -0.2260741889476776, -0.5354422330856323, 0.16102972626686096, -0.11659731715917587, -0.07257769256830215, 0.7786441445350647, 0.4716396927833557, 0.8591662049293518, 0.13041993975639343, 0.5694672465324402, 0.1730392575263977, 0.35883384943008423, -0.622014045715332, 0.8133602142333984, -0.7129566669464111, 0.46542489528656006, 0.038488805294036865, -1.04649019241333, -0.3235619366168976, 0.2179635614156723, -0.44687846302986145, 0.17441706359386444, 0.2966248095035553, 1.1896817684173584, 0.1366993933916092, 0.08566765487194061, 0.3277681767940521, -0.05657421797513962, 0.20998576283454895, -0.0495871901512146, 0.6969025731086731, -0.6704671382904053, 0.8633667230606079, 0.05543340742588043, -0.027043577283620834, -0.7695921659469604, -0.25300097465515137, -0.14438800513744354, -0.5978575944900513, -0.28448808193206787, -0.3579343855381012, 0.38703450560569763, 0.6346220970153809, 0.6536717414855957, -0.8256404995918274, 0.044233907014131546, -0.12787583470344543, 0.052357692271471024, -0.26113301515579224, -0.3252110183238983, 0.25160378217697144, -0.836954653263092, -0.5445784330368042, 0.680698812007904, 0.3055969476699829, -0.2345532774925232, -0.15711838006973267, 0.07244513183832169, -0.10757820308208466, 0.06916827708482742, 0.5161742568016052, 0.49118441343307495, -0.7731985449790955, -0.03542279079556465, 0.3889635503292084, -0.025112999603152275, 0.20529808104038239, 0.7693986296653748, -1.1583614349365234, 0.6394208669662476, 0.7498190402984619, 0.5757272243499756, 0.712461531162262, 0.4335366189479828, 0.6903707981109619, -0.7754584550857544, -0.33839404582977295, 0.5106559991836548, -0.0595301128923893, 0.3256608545780182, -0.5105765461921692, 0.2914028763771057, 0.016146110370755196, -0.40168845653533936, -0.8224760890007019, 0.10737491399049759, -0.6366819739341736, -0.13633503019809723, 0.9350799322128296, 0.0986669734120369, -0.2070949822664261, 0.17401640117168427, -0.26877549290657043, 0.04813003167510033, -0.8165360689163208, 0.9521820545196533, 0.3406110107898712, -0.43730202317237854, -0.46601229906082153, -0.10053645819425583, 0.4951880872249603, 0.7566236853599548, -0.5210065245628357, -0.4724390506744385, 0.3634409010410309, 0.18117231130599976, 0.2700571119785309, 0.668123185634613, -0.36813589930534363, 0.5225346684455872, 0.009861133061349392, 0.13529571890830994, 0.3954671025276184, -0.02598147839307785, -0.43338704109191895, 0.3884432911872864, -0.05183425173163414, -0.38953647017478943 ]
http://arxiv.org/abs/2405.17653v2
http://arxiv.org/pdf/2405.17653v2
InversionView: A General-Purpose Method for Reading Information from Neural Activations
2024-05-27T20:53:22
2024-06-02T08:50:02
Xinting Huang, Madhur Panwar, Navin Goyal, Michael Hahn
cs.LG
cs.LG, cs.AI, cs.CL
The inner workings of neural networks can be better understood if we can fully decipher the information encoded in neural activations. In this paper, we argue that this information is embodied by the subset of inputs that give rise to similar activations. Computing such subsets is nontrivial as the input space is exponentially large. We propose InversionView, which allows us to practically inspect this subset by sampling from a trained decoder model conditioned on activations. This helps uncover the information content of activation vectors, and facilitates understanding of the algorithms implemented by transformer models. We present three case studies where we investigate models ranging from small transformers to GPT-2. In these studies, we demonstrate the characteristics of our method, show the distinctive advantages it offers, and provide causally verified circuits.
[ -0.19566401839256287, -0.3501773178577423, 0.5025559067726135, -0.011948512867093086, -0.21727780997753143, -0.3988081216812134, 0.18664272129535675, -0.19688962399959564, 0.1327357292175293, 0.40504997968673706, -0.49381205439567566, 0.06531952321529388, -0.5653791427612305, -0.13515879213809967, -0.8955222368240356, 0.6839213967323303, 0.17913824319839478, 0.20369334518909454, -0.10990311205387115, 0.029524507001042366, -0.1767641305923462, -0.1057082861661911, -0.4594148099422455, -0.7492020726203918, 0.28856295347213745, -0.11613655835390091, 0.3952639400959015, 0.3051453232765198, 0.3586871325969696, 0.3191140592098236, -0.11487846821546555, -0.06496670842170715, -0.3815905451774597, -0.2057957649230957, -0.10495540499687195, -0.808315098285675, 0.08333111554384232, -0.0805271789431572, 0.6746425032615662, 0.8749847412109375, 0.13393546640872955, 0.3963536322116852, 0.3005180060863495, 0.513706624507904, -0.7597389817237854, -0.06044609844684601, -0.42657896876335144, 0.26587873697280884, 0.4523405432701111, -0.5536153316497803, -0.7265413999557495, -0.3845857083797455, 0.05048469081521034, -0.45079541206359863, 0.23251043260097504, -0.30764034390449524, 0.629645586013794, 0.3268199861049652, -0.6344006657600403, 0.10283377766609192, -0.999525249004364, 0.6491159200668335, -0.34109050035476685, 0.47106555104255676, 0.255344957113266, 0.4387609660625458, 0.07220044732093811, -0.8467198610305786, -0.44054925441741943, -0.32194578647613525, -0.48320093750953674, 0.2410648763179779, -0.2317890226840973, 0.14034658670425415, 0.463400661945343, 0.3893386423587799, -0.2850608825683594, -0.15471668541431427, -0.44320961833000183, 0.017526596784591675, 0.26204466819763184, 0.006301138550043106, 0.387549489736557, -0.28540316224098206, -0.3086663484573364, -0.11014320701360703, -0.8147187232971191, 0.05147257074713707, 0.6160354018211365, -0.18401245772838593, 0.02530534937977791, 0.6196771264076233, 0.1298229992389679, 0.8591382503509521, 0.3509798049926758, 0.3324107229709625, 0.16388924419879913, -0.11016780883073807, -0.643811047077179, -0.09270815551280975, 0.22779139876365662, 0.26154252886772156, -0.10479989647865295, -0.5328271985054016, -0.13747847080230713, -0.4142001271247864, 0.5781071782112122, -0.7403880953788757, -0.2292097508907318, 0.3433619439601898, -0.8266196250915527, -0.43889299035072327, 0.15243306756019592, -0.6950665712356567, -0.7108902931213379, -0.7441215515136719, 0.6608003377914429, -0.3645345866680145, -0.5688855648040771, -0.198224276304245, -0.6886692643165588, 0.6231454610824585, 0.2332061529159546, -0.9256641864776611, 0.22220270335674286, 0.4867665767669678, 0.5323659777641296, 0.21507486701011658, 0.012304188683629036, -0.5100150108337402, -0.158620223402977, -0.26910749077796936, 0.5469291806221008, -0.361401230096817, -0.12543568015098572, -0.03325692564249039, -0.06917586922645569, -0.2436031997203827, -0.6187036633491516, 0.2729186713695526, -1.0306034088134766, -0.13396701216697693, -0.008953151293098927, -0.39126768708229065, -0.2633730173110962, 0.33419153094291687, -0.8253262639045715, 0.8862147927284241, 0.2947010397911072, -0.7472324967384338, 0.1893061399459839, -0.6238504648208618, -0.14640037715435028, -0.22682145237922668, -0.2846563160419464, -0.025234747678041458, 0.5652186274528503, 0.2580154836177826, -0.0053761200979352, -0.2649182379245758, 0.12194083631038666, 0.09983881562948227, -0.31924352049827576, 0.24719494581222534, -0.5656865835189819, 1.0149937868118286, 0.05290494114160538, -0.5304484963417053, 0.21991634368896484, -0.893592357635498, -0.06637655943632126, 0.04170290753245354, -0.15744760632514954, -0.4542350471019745, 0.047681599855422974, -0.09811857342720032, 0.13746626675128937, -0.22368837893009186, -0.6366851925849915, 0.3413519263267517, -0.46467751264572144, 0.46724605560302734, 0.6919237375259399, 0.1252080500125885, 0.6891035437583923, 0.3248702585697174, 0.5095386505126953, 0.37055155634880066, 0.10633833706378937, -0.34466782212257385, -0.2688629627227783, -0.8058487772941589, 0.17750298976898193, 0.5261273384094238, 0.4561564028263092, -0.9701663851737976, 0.46130073070526123, -0.3390582203865051, -0.29512885212898254, -0.5469949841499329, -0.05992403253912926, 0.1733856052160263, 1.0026228427886963, 0.5873227715492249, 0.18000061810016632, -0.37843215465545654, -1.2248739004135132, -0.41625019907951355, 0.08961941301822662, -0.6871978640556335, 0.3389037847518921, 0.47296518087387085, 0.03666217625141144, 0.8452654480934143, -0.4895741045475006, -0.09593077003955841, -0.4029736816883087, 0.37202712893486023, 0.46216264367103577, 0.48117902874946594, 0.3869958221912384, -0.9689663648605347, 0.008155870251357555, -0.052267517894506454, -0.9154205918312073, 0.059714797884225845, -0.5550811290740967, -0.22964000701904297, -0.6562371253967285, 0.7525008320808411, -0.19479644298553467, 0.8849380612373352, 0.34975072741508484, -0.04054876044392586, 0.1952681839466095, -0.10084102302789688, -0.017261873930692673, -0.9247361421585083, 0.4581772983074188, 0.12133463472127914, -0.1053389310836792, -0.752959668636322, -0.1423238217830658, 0.4715379476547241, 0.27472737431526184, -0.36967340111732483, 0.2892225980758667, -0.646475076675415, -0.18481770157814026, -0.2069752961397171, -0.09234027564525604, -0.038853902369737625, 0.5040900707244873, 0.13086339831352234, 0.5743754506111145, 0.31571587920188904, -0.36790338158607483, 0.35897254943847656, 0.19521905481815338, -0.525641679763794, 0.35593199729919434, -0.7659013867378235, 0.11383470147848129, -0.728549063205719, 0.20307719707489014, -1.13666832447052, -0.13968715071678162, 0.30290356278419495, -0.49837589263916016, 0.3884132504463196, -0.5535280704498291, -0.18250593543052673, -0.23881401121616364, -0.14567936956882477, 0.7440983653068542, 0.4929395318031311, -1.0047353506088257, 1.2969813346862793, 0.24649956822395325, 0.5035740733146667, -0.8450193405151367, -0.7507585287094116, -0.1300317645072937, -0.06149013340473175, -0.4160534143447876, 0.17557966709136963, 0.6319534778594971, -0.1853354126214981, 0.06497307121753693, -0.04131104424595833, 0.00626263115555048, 0.05080880969762802, 0.48576414585113525, 0.12151940912008286, -0.35715970396995544, 0.047982290387153625, 0.106777623295784, -0.19933347404003143, 0.2719404697418213, -0.6095240712165833, 0.5022485256195068, 0.125306636095047, -0.5597501993179321, -0.491079717874527, 0.16060586273670197, 0.16327571868896484, -0.19397947192192078, 0.4357241094112396, 0.14081436395645142, -0.5128328204154968, -0.28730466961860657, -0.25806984305381775, -0.3843376040458679, -0.5112563967704773, 0.3317440152168274, -0.30149778723716736, 0.028857799246907234, 0.5193160772323608, -0.48935773968696594, -0.13439306616783142, 0.5915793180465698, 0.30152469873428345, -0.011587890796363354, 1.0134646892547607, 0.5734163522720337, 0.08648543059825897, 0.6766996383666992, -0.815754771232605, 0.38888809084892273, -1.306849718093872, -0.45180001854896545, -0.26371312141418457, -1.0263469219207764, 0.22970585525035858, -0.049290090799331665, 0.5930853486061096, 0.08698054403066635, -0.04719531163573265, 0.2999097406864166, -0.5817939043045044, 0.7398563623428345, 0.608873724937439, 0.34618839621543884, 0.21954721212387085, -0.005732337478548288, -0.24972882866859436, 0.051280468702316284, -0.5505507588386536, -0.16179783642292023, 1.1246896982192993, 0.3084528148174286, 0.8791799545288086, -0.11483926326036453, 0.296572744846344, -0.06439924985170364, 0.723219633102417, -0.8907853364944458, 0.1924830973148346, 0.24037900567054749, -0.8220564126968384, -0.004760972689837217, -0.23339615762233734, -0.9880954027175903, 0.4166127145290375, 0.08365507423877716, -1.0595242977142334, 0.8282683491706848, 0.4105633795261383, -0.41701602935791016, 0.656108558177948, -0.7903666496276855, 0.6811361312866211, -0.4053754210472107, -0.3729557991027832, -0.07231512665748596, -0.8658682703971863, 0.5690171122550964, 0.2616262137889862, -0.1766512095928192, 0.6614075303077698, 0.15654337406158447, 0.47290587425231934, -0.31893497705459595, 1.066258430480957, -0.4319464862346649, 0.09397297352552414, 0.3498478829860687, 0.09849274903535843, 0.21600332856178284, 0.21488334238529205, -0.06862306594848633, 0.003796597942709923, -0.25463470816612244, -0.018987523391842842, -0.8812658190727234, 0.46506017446517944, -0.7397507429122925, -0.2855989634990692, -0.1591116487979889, -0.43863359093666077, -0.14563897252082825, 0.3172266185283661, 0.5937395095825195, 0.7885112762451172, 0.013636881485581398, 0.2873757481575012, 0.4733734428882599, -0.08350251615047455, 0.26771700382232666, -0.13581472635269165, -0.26006653904914856, -0.0859241634607315, 0.6215940713882446, -0.0642533078789711, 0.22244466841220856, 0.5982780456542969, -0.10193601995706558, -0.3915334641933441, -0.5181604623794556, -0.6970415115356445, -0.051841266453266144, -0.8926813006401062, -0.2391020953655243, -0.5044215321540833, -0.265247642993927, -0.005449654534459114, 0.2642849385738373, -0.14874257147312164, -0.584143877029419, -0.1851075142621994, -0.2957260012626648, -0.31609654426574707, 0.6428186893463135, -0.1823025494813919, 0.688014566898346, -0.6010394096374512, 0.7491586208343506, 0.3707444667816162, 0.33304858207702637, 0.39919984340667725, -0.46248194575309753, -0.11776411533355713, 0.16530022025108337, -0.4569181799888611, -1.1637853384017944, 0.2546161711215973, 0.009341294877231121, 0.5943646430969238, 0.8302344083786011, -0.2363787740468979, 0.4359012246131897, -0.5362961888313293, 0.9037498235702515, 0.07279039174318314, -0.9350656867027283, 0.5443408489227295, 0.08766016364097595, -0.01148118544369936, 0.5253317356109619, 0.3744795322418213, -0.27171051502227783, 0.17528048157691956, -0.576421856880188, -0.8931009769439697, 0.7810416221618652, 0.11447669565677643, 0.3339405357837677, 0.39357489347457886, 0.5772254467010498, 0.015280576422810555, 0.23503166437149048, -0.619217038154602, -0.3406676650047302, -0.4293718636035919, -0.17570653557777405, 0.22579067945480347, -0.05992777273058891, -0.4134361445903778, -0.40245020389556885, 0.20406603813171387, -0.10266181081533432, 0.636900782585144, 0.2936530113220215, -0.5512971878051758, -0.09044890850782394, -0.013639191165566444, 0.30120792984962463, 0.6991202235221863, -0.22786130011081696, 0.4113258421421051, 0.03129245713353157, -0.6491323113441467, 0.17309409379959106, -0.10781391710042953, -0.4073116183280945, -0.07637690752744675, 0.3591608703136444, 0.7772597670555115, 0.07042498141527176, -0.25837692618370056, 0.7541001439094543, -0.26451575756073, -0.2182922512292862, -0.49412864446640015, 0.014459380879998207, 0.03876160830259323, 0.22542406618595123, 0.5746449828147888, 0.3942141830921173, 0.5027891397476196, -0.2214079648256302, 0.0017231469973921776, 0.42729729413986206, -0.48937517404556274, -0.49233436584472656, 0.8716944456100464, 0.16963794827461243, -0.06413024663925171, 1.1707011461257935, 0.3206373453140259, -0.5274863243103027, 1.0196629762649536, 0.5677597522735596, 1.0087072849273682, -0.034305401146411896, 0.027322858572006226, 0.5311080813407898, 0.4209771752357483, 0.07557958364486694, 0.05718349665403366, -0.3045259416103363, -0.7438467144966125, -0.5480352640151978, -0.3985789716243744, -0.116585373878479, 0.4273255467414856, -0.852961540222168, 0.16534021496772766, -0.3361836075782776, -0.10208554565906525, 0.3784869909286499, -0.8578749895095825, -0.7978225946426392, 0.20268592238426208, 0.07955440878868103, 1.1943271160125732, -1.0584774017333984, 0.7226686477661133, 0.5731005668640137, -0.4696073830127716, -0.7398513555526733, 0.048953767865896225, -0.11588644236326218, -0.9456685185432434, 1.1220300197601318, 0.27406999468803406, -0.2846006155014038, 0.16831059753894806, -0.835027813911438, -0.5547894239425659, 0.8681150078773499, 0.3203432559967041, -0.09775509685277939, -0.32366207242012024, 0.19877691566944122, 0.49990883469581604, -0.05847279354929924, 0.8431249856948853, 0.627827525138855, 0.6361435055732727, 0.0027620920445770025, -0.21704323589801788, -0.0668143481016159, -0.5818389058113098, -0.12505348026752472, 0.3054295778274536, -0.18217769265174866, 0.5916353464126587, -0.08281602710485458, -0.10379767417907715, -0.006669924594461918, 0.5383559465408325, -0.44165945053100586, 0.003885968355461955, 0.7119749784469604, 0.43980175256729126, 0.307216078042984, -0.1277702897787094, 1.4218271970748901, -0.24858294427394867, 0.1943242996931076, 0.9163947701454163, 0.3197120726108551, 0.49319586157798767, 0.8858582377433777, -0.015393968671560287, 0.26287928223609924, 0.2811758518218994, -0.1244201734662056, 0.6175958514213562, 0.4054609537124634, 0.062498755753040314, -0.3396979868412018, 0.4205924868583679, -0.34468263387680054, 0.125574991106987, 0.4636663794517517, -0.9317604303359985, -0.27183592319488525, -0.02193182148039341, -0.45149025321006775, -0.39330968260765076, -0.3209713101387024, 0.7310391664505005, 0.10012365877628326, -0.738175630569458, 0.49980172514915466, -0.16848409175872803, 0.28178083896636963, -0.4871065020561218, -0.3192802369594574, -0.16987571120262146, 0.505179226398468, -0.48103418946266174, -0.6456972360610962, 0.2904577851295471, -0.2636362314224243, -0.023669417947530746, -0.15632136166095734, 0.6531119346618652, -0.06316256523132324, -0.4885353147983551, 0.2387831062078476, 0.2649747431278229, -0.07561483234167099, -0.24498501420021057, -0.07127200067043304, -0.30942344665527344, -0.03736400231719017, -0.5802550911903381, 0.10641822218894958, 0.07657390832901001, 0.11141517013311386, 0.3723883330821991, 0.4592163562774658, 0.030619336292147636, 0.3915625214576721, -0.11083373427391052, 1.0397299528121948, -0.5666481256484985, -0.40288206934928894, -0.5784324407577515, 0.9393756985664368, -0.4321501553058624, -0.6099352240562439, 0.5132784843444824, 0.5459928512573242, 0.6094026565551758, -0.34448346495628357, 0.8080220222473145, -0.016605330631136894, 0.25627025961875916, -0.4691905975341797, 0.5279327630996704, -0.6894649267196655, 0.2995838224887848, 0.18536792695522308, -1.0551626682281494, -0.5273417830467224, 0.6910305023193359, -0.6424680352210999, -0.0628887340426445, 0.5079048275947571, 0.6810136437416077, -0.740728497505188, 0.34712541103363037, -0.04731402546167374, 0.14958974719047546, 0.3521166741847992, 0.44037744402885437, 1.3113508224487305, -0.6179155707359314, 0.45354750752449036, -0.22640851140022278, -0.460997074842453, -0.1930381804704666, -0.8034366965293884, -0.7338075637817383, -0.423514187335968, 0.11871381103992462, -0.5003834366798401, -0.3751397430896759, 0.5514518022537231, 0.7184829115867615, -0.7735797166824341, 0.01689327321946621, -0.23468118906021118, 0.09326180815696716, -0.4717734754085541, -0.13596583902835846, 0.5690674185752869, -0.10299593210220337, -0.677787721157074, 0.30910754203796387, 0.07543906569480896, -0.22670245170593262, -0.22352977097034454, 0.3973348140716553, 0.18805500864982605, 0.016404137015342712, 0.3381602466106415, 0.46805766224861145, -0.24939994513988495, -0.13290192186832428, 0.07380691170692444, 0.12530460953712463, 0.27671709656715393, 1.2938010692596436, -1.0383967161178589, 0.43338948488235474, 0.9605604410171509, 0.8135422468185425, 0.7957396507263184, 0.31981781125068665, 0.45881131291389465, -0.6693527102470398, 0.37217941880226135, 0.3473530113697052, 0.3577756881713867, 0.07031005620956421, -0.45040440559387207, 0.38767123222351074, -0.21301545202732086, -0.4078611433506012, -0.7209778428077698, 0.3059564530849457, -0.807091236114502, -0.21226340532302856, 1.0382853746414185, 0.17127490043640137, -0.4905528128147125, -0.05290541052818298, -0.28653883934020996, 0.1349359005689621, 0.12726181745529175, 0.841945230960846, 0.2507603168487549, -0.5221063494682312, -0.02674618922173977, -0.5242224931716919, 0.4445964992046356, 0.3025752604007721, -0.6580068469047546, -0.05513867363333702, 0.4511144459247589, 0.2536364793777466, 0.509740948677063, 0.2741076350212097, -0.4511045813560486, 0.15817201137542725, 0.07973199337720871, -0.22795328497886658, -0.1350138634443283, -0.39634716510772705, -0.8046513199806213, 0.3236317038536072, -0.28382065892219543, -0.38081613183021545 ]
http://arxiv.org/abs/2406.02575v1
http://arxiv.org/pdf/2406.02575v1
Cross-Modal Safety Alignment: Is textual unlearning all you need?
2024-05-27T20:29:13
2024-05-27T20:29:13
Trishna Chakraborty, Erfan Shayegani, Zikui Cai, Nael Abu-Ghazaleh, M. Salman Asif, Yue Dong, Amit K. Roy-Chowdhury, Chengyu Song
cs.CL
cs.CL, cs.CR, cs.LG
Recent studies reveal that integrating new modalities into Large Language Models (LLMs), such as Vision-Language Models (VLMs), creates a new attack surface that bypasses existing safety training techniques like Supervised Fine-tuning (SFT) and Reinforcement Learning with Human Feedback (RLHF). While further SFT and RLHF-based safety training can be conducted in multi-modal settings, collecting multi-modal training datasets poses a significant challenge. Inspired by the structural design of recent multi-modal models, where, regardless of the combination of input modalities, all inputs are ultimately fused into the language space, we aim to explore whether unlearning solely in the textual domain can be effective for cross-modality safety alignment. Our evaluation across six datasets empirically demonstrates the transferability -- textual unlearning in VLMs significantly reduces the Attack Success Rate (ASR) to less than 8\% and in some cases, even as low as nearly 2\% for both text-based and vision-text-based attacks, alongside preserving the utility. Moreover, our experiments show that unlearning with a multi-modal dataset offers no potential benefits but incurs significantly increased computational demands, possibly up to 6 times higher.
[ 0.06517088413238525, -0.6827138066291809, 0.48338913917541504, -0.18998970091342926, -0.4017166197299957, 0.2924076020717621, -0.268827885389328, -0.5490625500679016, -0.25206825137138367, 0.3720088601112366, -0.5805509686470032, -0.4729810059070587, -0.588055431842804, -0.12285321205854416, -0.34264495968818665, 1.1306647062301636, -0.08714423328638077, 0.22717949748039246, -0.10751698166131973, -0.13201580941677094, -0.6652746200561523, -0.6212998628616333, -0.25127261877059937, -0.11231353133916855, 0.6520346403121948, 0.1742047369480133, 0.5761194825172424, 0.6664801836013794, 0.41375046968460083, 0.3072364926338196, 0.2530386745929718, 0.2076682299375534, -0.439109742641449, 0.2372632622718811, -0.35351982712745667, -0.17704938352108002, -0.15412990748882294, -0.07081370055675507, 0.45010361075401306, 0.7014186978340149, -0.08587348461151123, -0.1739378124475479, 0.16801445186138153, 0.6036207675933838, -0.9040137529373169, -0.08579736202955246, -0.6721981167793274, 0.12832558155059814, -0.26218485832214355, -0.4598167836666107, -0.6915676593780518, 0.083050936460495, 0.27575603127479553, -0.7044340968132019, -0.07644801586866379, 0.1810806393623352, 0.639953076839447, 0.39903494715690613, -1.0625272989273071, -0.0755951777100563, -0.621202290058136, 1.0273921489715576, -0.3842960000038147, 0.7711450457572937, 0.4863852560520172, 0.0741049274802208, -0.08719973266124725, -0.4769221544265747, -0.24027259647846222, 0.21867848932743073, -0.2177862524986267, 0.1881876289844513, -0.058964863419532776, 0.17523972690105438, 0.004335466306656599, -0.24471449851989746, -0.5680860877037048, 0.19181211292743683, -0.5362204909324646, -0.29485443234443665, 0.6312142610549927, 0.260711669921875, 0.3384305238723755, -0.14105939865112305, -0.917633593082428, -0.29484179615974426, -0.6361396312713623, 0.3093693256378174, 0.09137450903654099, 0.4400685727596283, -0.318278044462204, 0.5539451241493225, 0.04121395945549011, 0.6256791353225708, -0.08303942531347275, -0.38770225644111633, 0.3668461740016937, -0.7201139330863953, -0.3861968219280243, -0.006043707951903343, 1.00175142288208, 0.45028918981552124, 0.2486516535282135, -0.5325595140457153, -0.18379482626914978, -0.00986508559435606, 0.7086738348007202, -0.5145851373672485, -0.007876216433942318, 0.017436208203434944, -0.4195590317249298, -0.5318256616592407, 0.18076011538505554, -0.8037023544311523, -0.408744752407074, -0.46732401847839355, 0.4006502032279968, -0.6644825339317322, -0.058000966906547546, 0.058152373880147934, 0.04068891331553459, 0.2593364119529724, 0.3366042375564575, -0.8486343026161194, -0.18595653772354126, 0.5527651906013489, 0.5570114850997925, -0.2612207531929016, -0.6024274230003357, -0.6134973764419556, 0.3334577679634094, -0.2850430905818939, 0.6153014302253723, -0.6856318712234497, -0.561671793460846, 0.0762527585029602, 0.18074224889278412, -0.5424966812133789, -0.008171061985194683, 0.48098069429397583, -0.5037323236465454, 0.37908825278282166, -0.301881343126297, -0.38219112157821655, -0.21105194091796875, 0.10048752278089523, -0.5470379590988159, 0.8221420645713806, -0.22466962039470673, -0.7114005088806152, 0.6617839932441711, -0.24618567526340485, -0.8245099782943726, -0.5302698612213135, -0.4612712264060974, -0.6157872080802917, 0.1437808871269226, 0.1908746361732483, 0.4528025686740875, -0.2714296877384186, 0.29159170389175415, -0.31037744879722595, -0.18116872012615204, 0.5901837944984436, -0.8651857376098633, 0.6254843473434448, 0.15185095369815826, -0.4815983176231384, 0.10303471237421036, -0.7327703833580017, 0.29616719484329224, -0.19664467871189117, -0.6132594347000122, -0.5294040441513062, -0.03689121454954147, 0.5035051703453064, 0.4231311082839966, 0.13483302295207977, -0.6489455699920654, -0.13334299623966217, -0.1327836513519287, 0.12823061645030975, 0.7857955098152161, -0.14719834923744202, 0.6663175225257874, -0.4913964569568634, 0.31152212619781494, 0.09245795011520386, 0.2057868391275406, -0.031372565776109695, -0.18222643435001373, -0.3681732714176178, -0.44084087014198303, 0.3113928735256195, 0.657987117767334, -0.9553155899047852, 0.45503008365631104, 0.007912791334092617, -0.31179147958755493, -0.29696765542030334, 0.22096005082130432, 0.9830384850502014, 0.45546966791152954, 0.4271525740623474, -0.2076910138130188, -0.5620891451835632, -0.6396121382713318, -0.40949746966362, -0.15132515132427216, 0.15423782169818878, -0.14841733872890472, 0.37275224924087524, -0.25797295570373535, 0.8382622003555298, -0.08505979925394058, -0.32828500866889954, -0.14405670762062073, 0.10476482659578323, -0.5888062715530396, 0.405076801776886, 0.5139539241790771, -0.864861011505127, -0.3847596049308777, 0.3158707618713379, -1.1493194103240967, 0.1235344409942627, -0.33924415707588196, -0.09170939028263092, 0.5437301993370056, 0.6557391285896301, -0.42363038659095764, 0.5932312607765198, 0.5787633061408997, -0.4173145890235901, 0.03216138854622841, -0.2066764384508133, 0.2567060589790344, -1.2282404899597168, 0.17833389341831207, -0.13213469088077545, -0.15141409635543823, -0.8359553813934326, -0.08197873830795288, 0.32350701093673706, 0.07520338892936707, -0.7580620050430298, 0.3729020655155182, -0.6023918390274048, 0.17136766016483307, -0.25097742676734924, -0.10526856780052185, 0.02839425392448902, 0.7047693729400635, 0.04782090336084366, 0.6423652172088623, 0.5028557181358337, -0.32829928398132324, -0.03704864904284477, 0.22055085003376007, -0.15362630784511566, 0.6493706107139587, -0.35205209255218506, -0.09608015418052673, -0.19190381467342377, 0.08105257898569107, -0.7291156649589539, -0.10315853357315063, 0.1779080629348755, -0.24158751964569092, 0.5555765628814697, 0.13694491982460022, 0.06595312803983688, 0.3444712162017822, -0.5599570870399475, 0.5769496560096741, 0.3090176582336426, -0.45163169503211975, 0.7747374773025513, 0.4758198857307434, 0.0395871177315712, -1.1208051443099976, -0.700252890586853, -0.09315662086009979, -0.1958232969045639, -0.4093044102191925, 0.04831729829311371, -0.010143996216356754, -0.07437564432621002, -0.14436207711696625, -0.2388123720884323, -0.05891888961195946, 0.09319151192903519, 0.5561656951904297, 0.29558318853378296, 0.09194637089967728, 0.23709259927272797, 0.027589507400989532, -0.29410338401794434, -0.05389861762523651, -0.07269245386123657, 0.17994186282157898, -0.03470122441649437, -0.6567105650901794, -0.5690438151359558, 0.5700122714042664, 0.7976197600364685, -0.1813691407442093, 0.7209816575050354, 0.4512663185596466, -0.36737456917762756, -0.007213926874101162, -0.2003641426563263, -0.08166800439357758, -0.49376967549324036, 0.3667832314968109, -0.09453383833169937, -0.8847800493240356, -0.04348237067461014, 0.023052040487527847, 0.3872997462749481, 0.1607850342988968, 0.3655145466327667, -0.46750882267951965, 0.9369703531265259, 0.9457963705062866, 0.022075027227401733, 0.5680997371673584, 0.19917914271354675, 0.24973858892917633, -0.4779902696609497, -0.7384449243545532, -0.3180968165397644, -0.3455735743045807, -0.4063171446323395, -0.29528406262397766, 0.38755324482917786, -0.07826786488294601, -0.27238109707832336, 0.3378136157989502, -0.21019703149795532, 0.5732488632202148, 0.3152693212032318, 0.3330717384815216, 0.5633487701416016, 0.31673240661621094, -0.0599033385515213, -0.23192934691905975, -0.5466124415397644, -0.23367922008037567, 1.344161033630371, 0.2912679612636566, 1.1486389636993408, 0.23071768879890442, 0.5490086078643799, 0.07025343924760818, 0.14847593009471893, -0.5548192262649536, 0.3358202576637268, -0.35094115138053894, -0.4361947476863861, -0.390399694442749, -0.5372369289398193, -1.0250922441482544, 0.41553694009780884, -0.6586683988571167, -0.4527764618396759, 0.383695513010025, 0.05978187546133995, -0.34388619661331177, 0.4195191264152527, -0.6021360754966736, 0.8152784705162048, -0.7755331993103027, -0.21526922285556793, -0.0489283911883831, -0.9401376247406006, 0.37966805696487427, -0.5955225825309753, 0.35227251052856445, 0.10085589438676834, -0.16511334478855133, 0.6430344581604004, -0.4454948604106903, 1.3469232320785522, 0.14692911505699158, -0.27210164070129395, -0.0454627089202404, -0.0710163563489914, 0.37260323762893677, -0.04015509411692619, 0.3202650249004364, 0.17477701604366302, 0.0765741616487503, -0.2953139841556549, -0.5256832242012024, 0.4150523245334625, -0.8835600018501282, -0.1936364769935608, -0.6230872869491577, -0.6968774795532227, -0.41034188866615295, 0.23875437676906586, 0.5599690675735474, 0.602504551410675, -0.3222266137599945, 0.4369000494480133, 0.9543671607971191, -0.036858025938272476, 0.7021468281745911, 0.6325401663780212, 0.12374915182590485, -0.641796886920929, 0.9598109722137451, -0.06286797672510147, 0.37720856070518494, 0.585296094417572, -0.16161417961120605, -0.3346671760082245, -0.4183814227581024, -0.6239919662475586, -0.02053534984588623, -0.6666610836982727, -0.42496269941329956, -0.7176582217216492, -0.17783412337303162, -0.1167088970541954, -0.49383649230003357, -0.4378435015678406, -0.26531481742858887, -0.18141095340251923, -0.15969738364219666, 0.3526449501514435, 0.6174225211143494, -0.12106581777334213, 0.35375314950942993, -0.9787175059318542, 0.2228168398141861, 0.3034130334854126, 0.2284618467092514, -0.1906895637512207, -0.36162927746772766, -0.2782852053642273, 0.11861076205968857, -0.19847743213176727, -0.6861872673034668, 0.22462846338748932, 0.09302298724651337, 0.448202908039093, 0.2571316659450531, 0.19306282699108124, 0.548865795135498, -0.5089662671089172, 0.37123438715934753, 0.7920824289321899, -0.7830588817596436, 0.11707097291946411, -0.38528332114219666, 0.13026317954063416, 0.9796723127365112, 0.4064846336841583, -0.5301622152328491, -0.10466162115335464, -0.29612070322036743, -0.8204199075698853, 0.6345048546791077, 0.051726583391427994, -0.056701164692640305, 0.27251774072647095, -0.03479691594839096, 0.1561383157968521, 0.2223561406135559, -0.8143766522407532, -0.06835571676492691, -0.1677023470401764, -0.5270665884017944, 0.003603223245590925, 0.040840279310941696, -0.44924989342689514, -0.1492457240819931, 0.5252681970596313, -0.2950666546821594, -0.10616261512041092, -0.13891610503196716, -0.4387970268726349, -0.2507120668888092, 0.43778979778289795, 0.6370039582252502, 0.47304126620292664, 0.07778628170490265, 0.339614599943161, 0.3406500518321991, -0.6290894746780396, 0.3686157464981079, -0.06665922701358795, -0.1999243050813675, -0.2575686275959015, 0.4693196415901184, 0.621375560760498, 0.6948633193969727, -0.9002984166145325, 0.7906474471092224, -0.15353178977966309, -0.2879221439361572, -0.012416612356901169, -0.06325948238372803, -0.21943722665309906, 0.30213606357574463, 0.09920871257781982, 0.25630947947502136, -0.3163907825946808, -0.580683171749115, 0.4711456298828125, 0.6788814067840576, -0.6809932589530945, -0.30860888957977295, 0.765491247177124, 0.33092203736305237, 0.022731216624379158, 0.29500582814216614, 0.4148434102535248, -0.2537142336368561, 0.3403012454509735, 0.38251993060112, 0.8953248262405396, -0.16222180426120758, 0.20807859301567078, -0.1322588175535202, 0.6043452024459839, -0.0772065818309784, 0.18618334829807281, 0.04904896020889282, -0.5098996162414551, -0.39202845096588135, -0.5810729265213013, -0.41661739349365234, -0.00018606879166327417, -0.6094903349876404, 0.15923812985420227, -0.5706567764282227, 0.04603612795472145, -0.22337129712104797, -0.4795900881290436, -0.4111086428165436, 0.3793717622756958, 0.026568882167339325, 0.47626298666000366, -0.9375677108764648, 0.7953616380691528, 0.7927834987640381, -0.5509885549545288, -0.6822993755340576, 0.1435927152633667, 0.35521093010902405, -0.7954140901565552, 0.345845103263855, 0.03655161336064339, -0.33484798669815063, -0.4900852143764496, -0.19552986323833466, -0.9321451783180237, 1.118972897529602, 0.42210081219673157, -0.5252743363380432, -0.2629948854446411, 0.51100754737854, 0.4040203392505646, -0.18195831775665283, 0.008868008852005005, 0.4635806083679199, 0.3227202296257019, -0.20123936235904694, -0.9695801138877869, 0.22954590618610382, -0.18487130105495453, -0.14533035457134247, 0.3692963719367981, -0.632819652557373, 0.7424466609954834, -0.15690287947654724, -0.4347746670246124, -0.13902722299098969, 0.5852437019348145, 0.0009169520926661789, 0.5240110754966736, 0.5155611038208008, 0.5861606001853943, 0.6013645529747009, 0.08214133232831955, 0.828309953212738, -0.08843932300806046, 0.09509585052728653, 1.1329739093780518, -0.2158956378698349, 0.873145341873169, 0.6152857542037964, 0.37114763259887695, 0.30226191878318787, 0.40000271797180176, 0.4152293801307678, 0.8009228110313416, -0.5342012047767639, -0.1541597545146942, -0.6296078562736511, 0.030704699456691742, -0.47994017601013184, 0.5514073371887207, 0.0546417236328125, -0.3465750813484192, -0.41678181290626526, 0.3176540434360504, 0.12852953374385834, 0.09253910928964615, 0.09794636815786362, 0.8550066351890564, 0.16948921978473663, -0.39738407731056213, 0.6070349812507629, -0.15273535251617432, 0.8312088847160339, -0.7501135468482971, 0.18266302347183228, -0.0026524451095610857, 0.1795167475938797, -0.36985716223716736, -0.6690654754638672, 0.26137205958366394, 0.0211690254509449, -0.34615156054496765, -0.37770596146583557, 0.5261861681938171, -0.7674299478530884, -0.2438664436340332, 0.47199177742004395, 0.7143945693969727, -0.2647380232810974, 0.3218752443790436, -0.4663553237915039, 0.03254476562142372, 0.09041649103164673, -0.32720473408699036, 0.8725333213806152, 0.4477057456970215, -0.2446606606245041, 0.437238872051239, 0.7735235095024109, -0.4500085115432739, 0.14110314846038818, -0.13404116034507751, 0.9857490062713623, -0.7654379606246948, -0.34231194853782654, -0.6858606934547424, 0.7447465062141418, 0.025550948455929756, -0.4744388461112976, 0.6635070443153381, 0.43020325899124146, 1.0274688005447388, 0.1293814778327942, 1.1092571020126343, 0.11550872772932053, 0.2309863418340683, -0.9375913143157959, 0.6871179938316345, -0.7435123920440674, 0.2763082683086395, -0.293475478887558, -0.5832750201225281, -0.34518522024154663, 0.35126933455467224, -0.09719448536634445, -0.08632008731365204, 0.9823904037475586, 0.7033258676528931, -0.18355119228363037, 0.20723378658294678, 0.5243842005729675, -0.25066378712654114, 0.17472024261951447, 0.6682625412940979, 0.8855226039886475, -0.5148105025291443, 0.7712770104408264, -0.2503417730331421, -0.24224792420864105, -0.10482157766819, -0.8575398325920105, -1.1209195852279663, -0.5725724697113037, -0.13261573016643524, -0.22269988059997559, 0.29548877477645874, 0.8996661305427551, 0.4049738645553589, -0.6292471885681152, -0.04921786114573479, 0.21678772568702698, -0.09581585973501205, -0.10138297080993652, -0.08796141296625137, 0.3110138475894928, -0.4887520968914032, -0.42162176966667175, 0.8219021558761597, 0.2762681245803833, 0.1462203711271286, 0.020746205002069473, -0.11497160792350769, -0.27412357926368713, 0.02255137264728546, 0.6546858549118042, 0.5763010382652283, -0.5656756162643433, -0.563235878944397, 0.1588597595691681, -0.42272359132766724, -0.16352087259292603, 1.091346263885498, -0.6227990984916687, 0.3745809495449066, 0.4821980595588684, 1.1534090042114258, 0.03429513797163963, -0.09845632314682007, 0.6960057020187378, -0.994645357131958, 0.08563009649515152, -0.27157357335090637, 0.5784997940063477, 0.19960619509220123, -0.4041808843612671, 0.44679781794548035, 0.2854031026363373, -0.34378987550735474, -0.8513222932815552, 0.26960837841033936, -1.1004542112350464, -0.5476597547531128, 1.099773645401001, 0.27598831057548523, -0.2019096165895462, -0.6020288467407227, -0.2735010087490082, 0.2542154788970947, -0.2982717752456665, 0.6318149566650391, 0.1902787983417511, -0.008784918114542961, -0.029730094596743584, -0.3129305839538574, 0.6843528747558594, 0.8239381313323975, -0.9907163977622986, 0.3769771456718445, 0.6017377972602844, 0.31032079458236694, 0.13608624041080475, 0.43986424803733826, -0.16295239329338074, 0.530009388923645, -0.2160535305738449, -0.01777213253080845, -0.12383639812469482, -0.7698012590408325, -0.5930131673812866, 0.2870010435581207, -0.36746546626091003, -0.1851353645324707 ]
http://arxiv.org/abs/2405.17633v1
http://arxiv.org/pdf/2405.17633v1
HEART-felt Narratives: Tracing Empathy and Narrative Style in Personal Stories with LLMs
2024-05-27T20:00:38
2024-05-27T20:00:38
Jocelyn Shen, Joel Mire, Hae Won Park, Cynthia Breazeal, Maarten Sap
cs.CL
cs.CL
Empathy serves as a cornerstone in enabling prosocial behaviors, and can be evoked through sharing of personal experiences in stories. While empathy is influenced by narrative content, intuitively, people respond to the way a story is told as well, through narrative style. Yet the relationship between empathy and narrative style is not fully understood. In this work, we empirically examine and quantify this relationship between style and empathy using LLMs and large-scale crowdsourcing studies. We introduce a novel, theory-based taxonomy, HEART (Human Empathy and Narrative Taxonomy) that delineates elements of narrative style that can lead to empathy with the narrator of a story. We establish the performance of LLMs in extracting narrative elements from HEART, showing that prompting with our taxonomy leads to reasonable, human-level annotations beyond what prior lexicon-based methods can do. To show empirical use of our taxonomy, we collect a dataset of empathy judgments of stories via a large-scale crowdsourcing study with N=2,624 participants. We show that narrative elements extracted via LLMs, in particular, vividness of emotions and plot volume, can elucidate the pathways by which narrative style cultivates empathy towards personal stories. Our work suggests that such models can be used for narrative analyses that lead to human-centered social and behavioral insights.
[ -0.4848552346229553, -0.692179262638092, 0.8571025133132935, 0.1504770964384079, -0.2854227125644684, 0.24824288487434387, -0.01169462688267231, -0.588814914226532, 0.6062390804290771, 0.6102936863899231, -0.655093789100647, -0.6231080889701843, -0.7052026987075806, 0.5159466862678528, -0.09579133242368698, 0.772510290145874, -0.08143804967403412, 0.022608917206525803, -0.10460078716278076, -0.40780529379844666, -0.014100950211286545, -0.8309981822967529, -0.380560040473938, -0.24753351509571075, 0.9943587183952332, 0.45311790704727173, 0.5112215280532837, 0.8200838565826416, 0.5421431064605713, 0.23707161843776703, 0.027324507012963295, 0.08848986774682999, -0.39470174908638, -0.024133754894137383, 0.07448111474514008, -0.3757724463939667, -0.7331501841545105, 0.3991023600101471, 0.17726856470108032, 0.43592020869255066, -0.10846644639968872, 0.3499916195869446, 0.21021582186222076, 0.7657784223556519, -0.2487841248512268, -0.2595619261264801, 0.1294098198413849, 0.12213306874036789, 0.0038699074648320675, -0.5963078141212463, -0.0916491374373436, -0.5458417534828186, 0.32356560230255127, -0.40558820962905884, 0.2698673605918884, 0.24306418001651764, 0.3993961215019226, -0.23317691683769226, -0.5574073195457458, -0.617457926273346, -0.4120425879955292, 0.8023700714111328, -0.2900948226451874, -0.15011262893676758, 0.34603288769721985, -0.14293411374092102, 0.46740007400512695, -0.556337833404541, -0.5014495253562927, -0.14511339366436005, -0.24283921718597412, 0.20296348631381989, -0.304298460483551, -0.024063309654593468, 0.2508171796798706, 0.5100013017654419, -0.5186409950256348, 0.07917291671037674, 0.054695747792720795, 0.03164290636777878, 1.0349074602127075, 0.5118081569671631, 0.5004392862319946, -0.46408531069755554, -0.604195237159729, -0.14597511291503906, -0.46383994817733765, 0.37322887778282166, 0.5209351181983948, 0.11021149158477783, -0.47467830777168274, 0.47924521565437317, 0.1504652351140976, 0.3352402448654175, -0.1467520147562027, -0.48239636421203613, 0.1254846155643463, 0.03613758087158203, 0.09110072255134583, 0.23874182999134064, 0.6226239800453186, 1.1785341501235962, 0.8195514678955078, 0.05723746865987778, -0.02424866519868374, 0.06303369998931885, 0.49121761322021484, -0.6065008044242859, 0.23508983850479126, 0.17963893711566925, -1.022409200668335, -0.5560101866722107, -0.15710386633872986, -0.8146025538444519, -0.9152011871337891, -0.43734532594680786, 0.10451439768075943, -0.16149653494358063, -0.4266163110733032, 0.060617994517087936, -0.47282734513282776, 0.38645806908607483, 0.14593979716300964, -0.7185320854187012, 0.40629714727401733, 0.916595458984375, 1.045592188835144, -0.14359141886234283, -0.2963997423648834, -0.3253178000450134, -0.2057117074728012, -0.3164370656013489, 0.8933618664741516, -0.5066614151000977, -0.5930651426315308, 0.07473941147327423, -0.1627226173877716, 0.5118536353111267, -0.3725458085536957, 0.699325680732727, 0.12958945333957672, -0.24192868173122406, -0.6204341053962708, -0.47522374987602234, -0.000822473899461329, 0.22335153818130493, -0.39227715134620667, 0.5607377290725708, 0.17723622918128967, -0.693047821521759, 0.21885426342487335, -0.43173977732658386, -0.49119409918785095, -0.21539194881916046, 0.005091233644634485, -0.072119802236557, 0.5196088552474976, 0.10882095247507095, 0.9136130213737488, -0.34893181920051575, 0.16364888846874237, -0.4401666224002838, -0.37320610880851746, 0.29649215936660767, -0.11985993385314941, 0.4944162368774414, -0.016104042530059814, -0.004583732690662146, 0.14465682208538055, -0.6259733438491821, -0.4659446179866791, 0.33183789253234863, 0.1650344431400299, -0.512025773525238, -0.20362891256809235, 0.181534543633461, -0.20057687163352966, -0.10163930058479309, -0.6007904410362244, 0.34819021821022034, -0.09554476290941238, 0.4378025531768799, 0.8280099034309387, 0.27688100934028625, 0.5040263533592224, -0.7444578409194946, 0.7271032333374023, -0.2874780297279358, 0.34662383794784546, -0.2659088671207428, -0.3186539113521576, -0.20473410189151764, -0.31687039136886597, -0.46193042397499084, 0.22304731607437134, -0.04557211697101593, 0.30439499020576477, 0.24099232256412506, -0.7531144618988037, -0.6567283272743225, -0.21323701739311218, 0.3486965596675873, 0.7323938012123108, 0.389538437128067, -0.5888087749481201, -0.3749494254589081, -0.8808547854423523, -0.7430931925773621, -0.3036987781524658, -0.12411411851644516, 0.6186267137527466, 0.16271506249904633, 0.030119556933641434, 0.7713457345962524, -0.5489420890808105, -0.34636029601097107, -0.5093920826911926, 0.44119399785995483, 0.08910475671291351, 0.3231801986694336, 0.4192780554294586, -0.6364758610725403, -0.2618463635444641, -0.2225848138332367, -0.5455850958824158, -0.3817440867424011, -0.276155948638916, -0.1851436346769333, -0.1974421888589859, 0.22043709456920624, -0.3942500054836273, 0.6007453203201294, 0.6095134615898132, -0.6406487822532654, 0.7314220666885376, 0.042595893144607544, 0.41272079944610596, -1.0688174962997437, -0.038410529494285583, 0.2648627758026123, 0.19041885435581207, -0.5769543647766113, -0.3127037286758423, -0.11682741343975067, 0.23553623259067535, -0.2170557975769043, 1.1955374479293823, -0.4061506390571594, -0.23016205430030823, 0.011561580002307892, 0.3176995813846588, 0.29532837867736816, 0.3425469994544983, 0.4838142395019531, 0.1803143322467804, 0.6081032156944275, -0.31278812885284424, 0.6027066707611084, 0.38043272495269775, -0.10946233570575714, 1.2379460334777832, -0.4761085510253906, 0.2057635486125946, -0.07613241672515869, 0.19361329078674316, -0.7547016739845276, -0.2050592303276062, 0.18679088354110718, -0.6058387160301208, 0.12892495095729828, -0.07001789659261703, -0.5242114067077637, -0.21611915528774261, -0.406339555978775, -0.006694305222481489, 0.6550782918930054, -0.5812657475471497, 0.92264723777771, 0.19534985721111298, -0.43266561627388, 0.06197319179773331, -0.5730560421943665, 0.20337504148483276, -0.6621009111404419, -0.4777123034000397, -0.040030479431152344, -0.3218642771244049, -0.7925196290016174, -0.2831648588180542, -0.05436552315950394, -0.15745538473129272, 0.19215476512908936, 0.48241618275642395, 0.17974725365638733, 0.0506264790892601, 0.11557507514953613, 0.0639462023973465, -0.33094775676727295, 0.33388030529022217, 0.49795544147491455, 0.35620251297950745, -0.13675959408283234, -0.4692654013633728, -0.6598407626152039, 0.4998018443584442, 0.5675312280654907, -0.2367047816514969, 0.3688656985759735, 0.7813332676887512, 0.021515127271413803, 0.09926003962755203, -0.6603214144706726, -0.412902295589447, -0.3141322731971741, 0.015680082142353058, -0.22991274297237396, -0.8399760127067566, 0.42202451825141907, -0.258484810590744, -0.189482182264328, 0.11238599568605423, 0.3892865478992462, -0.3902210593223572, 0.7951691746711731, 0.49518683552742004, -0.3757019340991974, 0.1825527846813202, -0.058987416326999664, 0.11120140552520752, -1.187294363975525, -0.12216207385063171, -0.24407698214054108, -0.8226064443588257, -0.37351542711257935, 0.044661641120910645, 0.33911898732185364, 0.0589793361723423, -0.20264944434165955, -0.37366366386413574, -0.49501848220825195, 0.2892281711101532, 0.5837719440460205, 0.17817915976047516, 0.6488721370697021, -0.2674389183521271, 0.4230593740940094, 0.04163704439997673, -0.37023574113845825, -0.8547074198722839, 0.9630612134933472, 0.4584829807281494, 0.5705432891845703, -0.013000477105379105, 1.010301113128662, 0.36594703793525696, 0.6937056183815002, -0.9494438767433167, 0.4331255853176117, 0.11333484947681427, -0.27379268407821655, -0.24415703117847443, -0.06360997259616852, -0.9737009406089783, -0.17142313718795776, -0.22993764281272888, -0.9443703293800354, 0.22988219559192657, 0.26924100518226624, -0.5259786248207092, 0.21993540227413177, -0.7461081743240356, 0.4013077914714813, -0.28678444027900696, -0.2594873607158661, -0.15174275636672974, -0.8592343330383301, 0.06858938187360764, 0.06733417510986328, 0.22953543066978455, -0.2661120891571045, -0.1456507444381714, 0.5345003008842468, -0.2357926070690155, 1.1905674934387207, 0.08805699646472931, 0.009739967994391918, 0.49402979016304016, 0.5887215733528137, 0.37002646923065186, 0.1736273318529129, 0.030004970729351044, 0.40290123224258423, -0.17744609713554382, -0.38119518756866455, -0.5701895356178284, 0.5515206456184387, -0.5657287836074829, -0.4000273048877716, -0.38479629158973694, -0.5781247615814209, -0.3371220827102661, -0.1552002727985382, 0.13208921253681183, 0.6201230883598328, -0.42456790804862976, 0.04106728732585907, 0.37939298152923584, -0.10501858592033386, 0.6129409074783325, 0.3300169110298157, -0.03406069427728653, -0.3350106179714203, 0.5111449956893921, -0.11557534337043762, 0.2127620428800583, 0.2436450868844986, 0.6978139877319336, -0.1560264527797699, -0.2627231180667877, 0.0013619024539366364, 0.6168033480644226, -0.2619474232196808, -0.141703262925148, -0.517149806022644, 0.24862463772296906, -0.2389562875032425, -0.9638262391090393, -0.13942882418632507, 0.26662686467170715, -0.5504612326622009, -0.6325808763504028, 0.9775766730308533, 0.9190623760223389, -0.3708646297454834, 0.2113557904958725, -1.0178523063659668, 0.32821890711784363, 0.2559068500995636, 0.4206852912902832, 0.28975141048431396, -0.2341560423374176, 0.13549262285232544, -0.422296404838562, 0.04634542390704155, -0.9318392872810364, 0.6866245269775391, -0.26694080233573914, 0.01303067710250616, 0.5493690967559814, 0.2459212988615036, 0.6646356582641602, -0.20469491183757782, 0.7018284201622009, 0.3566264808177948, -0.9008049368858337, 0.2886068820953369, -0.55290687084198, 0.10033886879682541, 0.27399104833602905, 0.49089398980140686, -0.9519845843315125, -0.21005985140800476, -0.8854723572731018, -0.7219964265823364, 0.39292603731155396, -0.026589667424559593, 0.316537082195282, -0.1749028116464615, 0.540176272392273, 0.28677499294281006, 0.14238637685775757, -0.1654786616563797, -0.18944276869297028, -0.025465667247772217, -0.3404342234134674, -0.6819155216217041, -0.7054729461669922, -0.20942682027816772, -0.02843349613249302, -0.2409111112356186, -0.14785006642341614, 0.029095737263560295, 0.7376574277877808, 0.17194834351539612, -0.3219485282897949, 0.02430523931980133, 0.15734615921974182, 0.45757120847702026, -0.16546553373336792, 0.23838716745376587, -0.01254307571798563, -0.4871203899383545, -0.13829892873764038, -0.305187463760376, 0.44741177558898926, -0.2005128264427185, 1.1050407886505127, 0.5540576577186584, 0.38860011100769043, -0.8474417328834534, 0.5966049432754517, -0.169852152466774, -0.18407335877418518, -0.20666386187076569, -0.04326551780104637, 0.3355390131473541, 0.9697039127349854, 0.2904722988605499, -0.24034562706947327, 0.18311040103435516, -0.7048965096473694, -0.003266911720857024, 0.1262698471546173, -0.33254101872444153, -0.5066316723823547, 0.033207088708877563, 0.3635968863964081, -0.576482355594635, 0.542715847492218, 0.29841068387031555, -0.2991318106651306, 0.5003005862236023, 0.26182323694229126, 1.0058131217956543, -0.13948750495910645, 0.2640928030014038, 0.22209514677524567, -0.002989906119182706, -0.008528674021363258, 0.31244656443595886, -0.3072957694530487, -0.7049891352653503, 0.050501346588134766, -0.7343906164169312, -0.5604568123817444, -0.2777174413204193, -1.2475236654281616, -0.06624723225831985, -0.3174384534358978, -0.07785017788410187, -0.5494499802589417, 0.097164086997509, -0.6974270343780518, 0.37284359335899353, 0.26911038160324097, 0.9271226525306702, -0.9749276041984558, 0.18638616800308228, 0.364528626203537, -0.10160965472459793, -1.0454025268554688, 0.10295486450195312, 0.3219508230686188, -1.0350605249404907, 0.3681357502937317, 0.014158500358462334, -0.056115228682756424, 0.3860667645931244, -0.5091432929039001, -0.567872941493988, 1.3678619861602783, -0.003657386638224125, -0.5364234447479248, 0.09417155385017395, -0.23742394149303436, 0.7768615484237671, -0.7564257979393005, 0.17373467981815338, 0.6252757906913757, 0.5879085063934326, 0.010944823734462261, -0.6493104100227356, -0.09373434633016586, -0.04829065129160881, -0.13315600156784058, -0.16057933866977692, -0.8241236209869385, 0.42425012588500977, -0.5083296298980713, -0.016689859330654144, 0.21730828285217285, 0.4639301002025604, 0.5138518214225769, 0.7859470844268799, 0.24307161569595337, 0.32669785618782043, 0.7594442367553711, -0.007963492535054684, 1.5371131896972656, -0.06431245803833008, 0.11324657499790192, 0.8822259902954102, -0.29188868403434753, 0.7590251564979553, 0.5305477380752563, 0.05281820148229599, 0.4236488342285156, 0.8049296736717224, 0.20050513744354248, 0.13247251510620117, 0.22732113301753998, -0.19782505929470062, -0.12179842591285706, -0.48030248284339905, -0.1148672103881836, 0.49036842584609985, -0.21493588387966156, -0.6973205208778381, 0.19821590185165405, -0.02489054948091507, 0.3672136068344116, 0.13316509127616882, -0.7413437962532043, 0.8362875580787659, 0.45282843708992004, -0.26363956928253174, -0.2856692969799042, -0.598343551158905, 0.356565922498703, -0.416185200214386, -0.16814418137073517, -0.5555094480514526, -0.3995198905467987, -0.23015262186527252, -1.0042963027954102, -0.002928665140643716, 0.3948286771774292, -0.10655304044485092, -0.7771615982055664, 0.7295702695846558, -0.015727847814559937, -0.3141341209411621, 0.33184659481048584, 0.7500184774398804, 0.17955636978149414, -0.31403177976608276, -0.2281925231218338, 0.362335741519928, -0.3571053743362427, -0.7904520034790039, 0.527450442314148, 0.7944170832633972, 0.25659090280532837, 0.5587790012359619, 0.5799273252487183, 0.25700557231903076, -0.4317575693130493, 0.2749353349208832, 0.5608728528022766, -1.0841782093048096, -0.23915426433086395, -1.1517131328582764, 0.7992106676101685, -0.057390760630369186, -0.5103314518928528, 0.6471489071846008, 0.31647199392318726, 0.43850550055503845, -0.022654779255390167, 0.6291202902793884, 0.2452632486820221, 0.6363951563835144, -0.42083507776260376, 0.6385930776596069, -0.49901288747787476, -0.10129833221435547, -0.5004082918167114, -0.7976114749908447, -0.22900374233722687, 0.4543524384498596, -0.23029078543186188, -0.11696649342775345, 0.5517305731773376, 0.5773499011993408, 0.6127052307128906, -0.032476700842380524, 0.29095807671546936, 0.3029527962207794, -0.0825151801109314, 0.08356033265590668, 1.0352500677108765, 0.5657162070274353, -0.15294325351715088, -0.24304300546646118, -0.567084789276123, -0.1981586366891861, -1.0620423555374146, -0.7042049169540405, -0.6011040210723877, -0.24379609525203705, -0.25818440318107605, -0.2518116235733032, 0.8197870850563049, 0.35166338086128235, 0.15399733185768127, -0.4386684000492096, 0.18253251910209656, 0.12324506789445877, -0.1250770390033722, -0.26994842290878296, 0.4445064067840576, 0.07679009437561035, -0.5583996772766113, -0.019869977608323097, 0.7573240399360657, -0.054680269211530685, -0.2530082166194916, -0.29266080260276794, 0.4321616291999817, 0.2616347074508667, 0.7779549360275269, -0.10519371181726456, -0.763272762298584, -0.3071872889995575, 0.04942105710506439, 0.05848199501633644, 0.1205189973115921, 1.2756154537200928, -0.5178182125091553, 0.39404115080833435, 0.023950157687067986, 0.028366131708025932, 0.04049219936132431, 0.49519646167755127, 0.4284172058105469, -0.4791622459888458, -0.41519421339035034, 0.384643018245697, 0.3290175199508667, 0.10403411090373993, -0.6580649614334106, 0.547795832157135, 0.4083639085292816, -0.44571879506111145, -0.7555250525474548, 0.3519323170185089, -1.315115213394165, -0.1024552583694458, 1.3649615049362183, -0.033422552049160004, -0.23640702664852142, 0.20487326383590698, -0.800912618637085, 0.10308024287223816, -0.49251335859298706, 0.8167823553085327, 0.7263622283935547, -0.7868527770042419, -0.34018558263778687, -0.1489044576883316, 0.41725438833236694, -0.2546927034854889, -0.6018627285957336, 0.26780861616134644, 0.5320716500282288, -0.06056519225239754, -0.16572628915309906, 0.6661078333854675, 0.11611434072256088, -0.1565457284450531, -0.0034138960763812065, 0.3849858343601227, 0.02472502738237381, -0.03279370814561844, -0.18501578271389008, 0.3583519458770752, 0.012483678758144379, 0.42124834656715393 ]
http://arxiv.org/abs/2405.17613v1
http://arxiv.org/pdf/2405.17613v1
A Framework for Multi-modal Learning: Jointly Modeling Inter- & Intra-Modality Dependencies
2024-05-27T19:22:41
2024-05-27T19:22:41
Divyam Madaan, Taro Makino, Sumit Chopra, Kyunghyun Cho
cs.CV
cs.CV, cs.CL, cs.LG
Supervised multi-modal learning involves mapping multiple modalities to a target label. Previous studies in this field have concentrated on capturing in isolation either the inter-modality dependencies (the relationships between different modalities and the label) or the intra-modality dependencies (the relationships within a single modality and the label). We argue that these conventional approaches that rely solely on either inter- or intra-modality dependencies may not be optimal in general. We view the multi-modal learning problem from the lens of generative models where we consider the target as a source of multiple modalities and the interaction between them. Towards that end, we propose inter- & intra-modality modeling (I2M2) framework, which captures and integrates both the inter- and intra-modality dependencies, leading to more accurate predictions. We evaluate our approach using real-world healthcare and vision-and-language datasets with state-of-the-art models, demonstrating superior performance over traditional methods focusing only on one type of modality dependency.
[ -0.1654188185930252, -0.4772638976573944, 0.4700407087802887, 0.16099166870117188, -0.12003020197153091, -0.1815272569656372, 0.02162094973027706, -0.7102353572845459, -0.14176954329013824, 0.005547000095248222, -0.49213409423828125, -0.17998214066028595, -0.73668372631073, -0.1510612517595291, 0.22645188868045807, 0.6992543935775757, 0.026020606979727745, 0.8903164863586426, -0.6836200952529907, -0.11778832226991653, -0.4582342803478241, -0.4331175684928894, -0.2802565395832062, -0.6076782941818237, 0.7026122808456421, 0.3521353602409363, 0.38513296842575073, 0.42462611198425293, 0.6627184748649597, 0.1481751650571823, 0.21935346722602844, 0.20228995382785797, -0.18047840893268585, 0.11642438918352127, -0.29453667998313904, -0.38434162735939026, -0.2161843329668045, 0.3836401700973511, 0.3450918197631836, 0.8166985511779785, 0.07456891238689423, 0.06654001027345657, 0.1674211621284485, 0.3493533432483673, -0.7306625247001648, 0.4766215980052948, -0.239887535572052, 0.13702726364135742, -0.02886662445962429, -0.31907525658607483, -0.43021586537361145, 0.15234455466270447, 0.28849759697914124, -0.6414704322814941, 0.0012543379561975598, -0.11399625241756439, 0.6016619801521301, 0.2789308726787567, -1.097340703010559, -0.3531198501586914, -0.7595626711845398, 0.474991112947464, -0.26892152428627014, 0.7476865649223328, 0.8401315212249756, 0.2424977421760559, 0.24997414648532867, -0.5558910965919495, -0.16698084771633148, -0.4275364577770233, -0.29324832558631897, 0.6874091029167175, 0.16014952957630157, 0.15971766412258148, 0.039954669773578644, 0.09006626158952713, -0.33019912242889404, 0.35212981700897217, -0.5882130265235901, -0.11399434506893158, 0.23741880059242249, 0.20011955499649048, 0.2989470064640045, -0.30602627992630005, -1.1414308547973633, 0.09037857502698898, -0.6194291710853577, 0.12660428881645203, 0.09540454298257828, 0.3931155800819397, -0.43044543266296387, 0.6129270792007446, 0.12116293609142303, 0.5633448362350464, 0.12048210948705673, -0.8523648977279663, 0.059406258165836334, -0.6515930891036987, 0.06039326637983322, -0.1847994029521942, 0.5279937982559204, 0.3492535650730133, -0.29677632451057434, -0.5112472772598267, -0.18328385055065155, 0.24185645580291748, 0.30030158162117004, -0.7479815483093262, -0.1972033977508545, 0.19485630095005035, -0.619274377822876, -0.17969103157520294, 0.27473944425582886, -0.6077969670295715, -0.153928741812706, -0.7790384888648987, 0.8957304358482361, -0.4395955502986908, -0.6485101580619812, -0.2450779229402542, 0.23176343739032745, -0.015616686083376408, 0.29702773690223694, -0.9617709517478943, 0.0428132601082325, 0.6005189418792725, 0.8049449324607849, -0.12840303778648376, -0.3766948878765106, -0.5378221273422241, 0.5057900547981262, -0.17559629678726196, 0.6310470700263977, -0.6306390762329102, -0.4014562964439392, -0.014578753150999546, 0.048540208488702774, -0.35317063331604004, -0.6063253283500671, 0.11497366428375244, -0.4165748953819275, 0.6128882169723511, -0.47641992568969727, -0.5616487860679626, -0.6374382972717285, 0.14051303267478943, -0.7731140851974487, 0.7337914705276489, 0.5454488396644592, -0.567489743232727, 0.6000882983207703, -0.5642626285552979, -0.6366287469863892, -0.13270294666290283, -0.5680062770843506, -0.506242573261261, 0.24182619154453278, -0.12390504032373428, 0.5272752642631531, -0.5406306385993958, 0.6161196827888489, -0.35979050397872925, -0.14734244346618652, 0.11556797474622726, -0.5622177720069885, 0.7212124466896057, 0.0670446828007698, -0.27071166038513184, 0.142019122838974, -0.8537095189094543, -0.30404117703437805, -0.2255946695804596, -0.6585203409194946, -0.1833781599998474, 0.08135519921779633, 0.39136579632759094, 0.7076438069343567, 0.07800102233886719, -0.2403695285320282, 0.07268530875444412, 0.038195982575416565, 0.23924735188484192, 0.7043048739433289, -0.19252993166446686, 0.5224707126617432, -0.6120493412017822, 0.6067561507225037, 0.6092022061347961, 0.2778443396091461, -0.2722223401069641, -0.17712514102458954, -0.37166208028793335, -0.6692565679550171, 0.21107730269432068, 0.455514132976532, -0.7934642434120178, 0.08106634765863419, 0.04250218719244003, -0.18269316852092743, -0.17860589921474457, 0.01262612920254469, 0.64762282371521, 0.5969877243041992, 0.46309345960617065, -0.5356507897377014, -0.49971723556518555, -0.7385210394859314, 0.12087635695934296, -0.4794686436653137, 0.3004433214664459, 0.21862852573394775, 0.3707774877548218, -0.38076311349868774, 0.7397708296775818, 0.08997282385826111, -0.7651742696762085, 0.005783773027360439, 0.2242545783519745, -0.44699057936668396, 0.6173008680343628, 0.5937045812606812, -1.0472780466079712, -0.35475096106529236, 0.03965739905834198, -1.0912972688674927, 0.1734616756439209, -0.1608446091413498, 0.18283072113990784, 0.017979813739657402, 0.5514051914215088, -0.18373265862464905, 0.37403133511543274, 0.7274324297904968, -0.2384994924068451, 0.3650832176208496, -0.09853007644414902, 0.08142667263746262, -1.4131642580032349, 0.06098008155822754, 0.18482233583927155, -0.04167379438877106, -0.4814819097518921, -0.04907115921378136, 0.301262229681015, 0.10632931441068649, -0.40180185437202454, 0.44749483466148376, -0.5911594033241272, -0.08658837527036667, -0.07386814802885056, -0.5945267081260681, 0.30621740221977234, 0.4621186852455139, 0.003069284837692976, 0.7439633011817932, 0.67046719789505, -0.3759477138519287, 0.2324608564376831, 0.07656524330377579, -0.3255946636199951, 0.8990917205810547, -0.4395816922187805, -0.2996974587440491, -0.2791919410228729, 0.20991070568561554, -0.99477219581604, -0.6117215156555176, 0.4919767379760742, -0.20946842432022095, 0.5983045697212219, -0.274491548538208, -0.44121745228767395, 0.1716953068971634, 0.01357696857303381, 0.7280446887016296, 0.045456212013959885, -0.6294881701469421, 0.898422360420227, 0.29974228143692017, 0.16834494471549988, -0.41767504811286926, -0.6965574026107788, -0.19980013370513916, -0.231121227145195, -0.48503032326698303, 0.31810489296913147, -0.01737913303077221, -0.20250318944454193, 0.15528564155101776, -0.1302039623260498, -0.11232384294271469, 0.08638156950473785, 0.7363917231559753, 0.3732663691043854, -0.30652427673339844, 0.6721329689025879, -0.01816161535680294, -0.4958454966545105, -0.043400682508945465, -0.21356940269470215, 0.24641969799995422, 0.11348831653594971, -0.8083601593971252, -0.6319422125816345, 0.9830647110939026, 0.8235243558883667, -0.48597297072410583, 0.6753033399581909, 0.8088474273681641, -0.4120749831199646, 0.19862423837184906, -0.5761144161224365, -0.5102591514587402, -0.3758317232131958, 0.5962479114532471, -0.5944547653198242, -0.6374795436859131, 0.10527859628200531, -0.3782532215118408, -0.33233943581581116, 0.014835968613624573, 0.7434975504875183, -0.3850436806678772, 1.15374755859375, 0.8487668037414551, 0.05330204591155052, 0.7266972661018372, -0.3377169072628021, 0.1243644505739212, -0.9415819644927979, -0.9189661741256714, 0.054713279008865356, -0.20476871728897095, -0.0928124263882637, -0.5892466902732849, 1.0686734914779663, 0.47863656282424927, 0.09239384531974792, -0.06794798374176025, -0.25019681453704834, 0.09213869273662567, 0.7285003066062927, 0.4845457375049591, 0.38361436128616333, 0.05908816680312157, -0.17223452031612396, 0.030884195119142532, -0.8581633567810059, -0.07141725718975067, 1.1211897134780884, 0.23166301846504211, 0.7575905919075012, 0.3397890329360962, 0.2552544176578522, -0.020684318616986275, 0.38788604736328125, -1.0401344299316406, 0.12402713298797607, -0.14557763934135437, -0.7205724120140076, 0.24099409580230713, -0.21288900077342987, -0.9464665055274963, 0.568670392036438, -0.3672543466091156, -0.4315418303012848, 0.4621295928955078, 0.21846745908260345, -0.20321740210056305, 0.24174875020980835, -0.6724461913108826, 0.7500473260879517, -0.6233290433883667, -0.4869258403778076, -0.23090490698814392, -1.0247957706451416, 0.3483947813510895, -0.006132905837148428, 0.3202763497829437, -0.15926320850849152, -0.08272331207990646, 0.28924283385276794, -0.24107928574085236, 1.1919673681259155, 0.04207993671298027, -0.1010529175400734, 0.09369897842407227, -0.014854989014565945, 0.15916326642036438, 0.1299816220998764, 0.16607657074928284, 0.17380672693252563, 0.11411523818969727, -0.3279823362827301, -0.18636615574359894, 0.4045117497444153, -0.9330392479896545, -0.0811934694647789, -0.624058187007904, -0.6480090618133545, -0.4935694932937622, -0.0502694733440876, 0.6636075973510742, 1.1432462930679321, -0.044673942029476166, 0.04672723263502121, 0.6137073636054993, 0.19761301577091217, 0.31724488735198975, 0.5607202053070068, -0.14056754112243652, -0.6132845878601074, 0.7843628525733948, 0.4317382574081421, 0.5505996346473694, 0.4329126179218292, 0.05547906458377838, -0.17066694796085358, -0.23111902177333832, -0.4804464876651764, 0.2510429322719574, -0.794197142124176, -0.3296687602996826, -0.5603841543197632, -0.035712480545043945, -0.25314661860466003, -0.09044287353754044, -0.19422084093093872, 0.0021974765695631504, -0.774357795715332, 0.0003406918840482831, 0.19285650551319122, 0.8053475618362427, -0.57135409116745, 0.1463782787322998, -0.6756254434585571, 0.5224036574363708, 0.6621183753013611, 0.38897624611854553, -0.11500760167837143, -0.15255621075630188, -0.4902810752391815, -0.02682296559214592, -0.24215564131736755, -1.0427236557006836, -0.08952782303094864, 0.25805750489234924, 0.5892799496650696, 0.5669772028923035, -0.2163970172405243, 0.41076257824897766, -0.26386967301368713, 0.5600872039794922, 0.8637126684188843, -0.6361770033836365, 0.4214790463447571, -0.24509023129940033, 0.19085897505283356, 0.5335326790809631, 0.6790640950202942, -0.3664122521877289, 0.11655407398939133, -0.2462031990289688, -0.6888666749000549, 0.7268883585929871, -0.5860113501548767, -0.1534268856048584, 0.09904347360134125, 0.08629218488931656, 0.5948314070701599, -0.020680854097008705, -0.8477415442466736, 0.014044494368135929, -0.1438503861427307, -0.3542269170284271, 0.01033721398562193, -0.4417600631713867, -0.5143702030181885, -0.3300406336784363, 0.4922020137310028, -0.49352744221687317, 0.16181151568889618, 0.03429826349020004, -0.33169111609458923, -0.42665714025497437, -0.16925981640815735, 0.48455607891082764, 0.7690227627754211, 0.07873037457466125, 0.4889390170574188, -0.3292696475982666, -0.29207727313041687, 0.27820131182670593, 0.04979915916919708, -0.19460934400558472, -0.16925014555454254, 0.4602368175983429, 0.8674762845039368, 0.2524324059486389, -0.5822499394416809, 0.7708028554916382, 0.3973429799079895, -0.21899837255477905, -0.06931199878454208, -0.25217825174331665, 0.2814941704273224, 0.7842997312545776, -0.03666393831372261, 0.4417155086994171, 0.10998203605413437, -0.6560198068618774, 0.31855764985084534, 0.4471901059150696, -0.9293619990348816, -0.5440875887870789, 0.9978966116905212, 0.06278461217880249, 0.06034386530518532, 0.34623071551322937, 0.24151113629341125, -0.3223845064640045, 0.4775610864162445, 0.7001791000366211, 0.7037571668624878, -0.18916212022304535, 0.3384452164173126, 0.30516520142555237, 0.09008100628852844, -0.18365061283111572, 0.30901965498924255, -0.3051512539386749, -0.49342650175094604, -0.27528098225593567, -0.29830944538116455, -0.3002658188343048, -0.1423748880624771, -0.9245525598526001, 0.2413512021303177, -0.3077584207057953, -0.29824298620224, -0.05977006256580353, -0.48147130012512207, -0.7459275722503662, 0.38063564896583557, 0.1711382269859314, 0.17365504801273346, -0.9716794490814209, 0.9546372294425964, 0.8145875930786133, -0.9777891635894775, -0.738706111907959, -0.01830274984240532, 0.3281709849834442, -0.8145239949226379, 0.7839164733886719, 0.15773265063762665, -0.2740137279033661, -0.2182038128376007, -0.19465306401252747, -0.9350537061691284, 1.2346875667572021, 0.3444284200668335, -0.4188374876976013, -0.12364513427019119, 0.28893858194351196, 0.14788323640823364, -0.2927713394165039, 0.10006493330001831, 0.004641582723706961, 0.30108046531677246, 0.015374907292425632, -1.0883044004440308, -0.07592491060495377, -0.23247936367988586, 0.13337679207324982, -0.08363904803991318, -0.938199520111084, 1.1383657455444336, -0.27941492199897766, -0.06345552951097488, -0.08334892243146896, 0.31780073046684265, -0.11339671164751053, 0.5638837814331055, 0.4125736951828003, 0.5886204838752747, 0.2931925058364868, -0.044564396142959595, 0.7868308424949646, -0.3360721468925476, 0.5042101144790649, 1.2723432779312134, -0.1258455067873001, 0.5338035821914673, 0.5816513895988464, -0.13023623824119568, 0.2712336480617523, 0.6525668501853943, 0.12053916603326797, 0.7355878353118896, -0.15053460001945496, -0.5486503839492798, -0.4342476725578308, -0.37793272733688354, -0.6313695907592773, 0.8207607865333557, 0.4428729712963104, -0.5204299688339233, -0.26136815547943115, 0.6230506300926208, 0.0020454381592571735, -0.13814349472522736, 0.06438124924898148, 1.1809232234954834, 0.19145555794239044, -0.5877717733383179, 0.4985840916633606, -0.19934919476509094, 0.5082411766052246, -0.6616211533546448, -0.02555510215461254, 0.01789371855556965, 0.03324666991829872, -0.27350449562072754, 0.0014556663809344172, -0.10872865468263626, -0.6324034929275513, -0.651209831237793, -0.21988965570926666, 0.5958501100540161, -0.9395830631256104, -0.5375956296920776, 0.5490742921829224, 0.8537163734436035, -0.2765372693538666, 0.17935213446617126, -0.36542630195617676, 0.09435237944126129, -0.4209038317203522, -0.10596366226673126, 0.6495305299758911, 0.2653059661388397, 0.05947234854102135, 0.32832348346710205, 0.44989439845085144, -0.32426878809928894, 0.03334198519587517, -0.08367802947759628, 0.7654634714126587, -0.17322969436645508, -0.2729578912258148, -0.5272908210754395, 0.5651443004608154, 0.39357104897499084, -0.4979252815246582, 0.3613733947277069, 0.6064152717590332, 0.9141563177108765, 0.018223367631435394, 0.9338459968566895, 0.03887161985039711, 0.37052121758461, -0.7322903871536255, 0.3139103949069977, -1.173694372177124, 0.10971301794052124, 0.2174655646085739, -0.8226372003555298, -0.3770255148410797, 0.6580381393432617, -0.1231956034898758, 0.03606925532221794, 0.6558936834335327, 0.7990677952766418, -0.40520337224006653, -0.003407964250072837, 0.3688836693763733, -0.11978104710578918, 0.2548081874847412, 0.6916754841804504, 1.056631326675415, -0.2546749413013458, 0.18161918222904205, -0.5500407814979553, -0.3130999207496643, -0.5818168520927429, -0.598252534866333, -0.6367606520652771, -0.9442529082298279, -0.42541903257369995, -0.4025031626224518, -0.17140614986419678, 1.1604045629501343, 1.1417101621627808, -0.4889031946659088, -0.22686757147312164, 0.12927035987377167, -0.21169571578502655, -0.4151249825954437, -0.15454836189746857, 0.2999657392501831, -0.46784621477127075, -0.6313432455062866, 0.6054099798202515, 0.6957812309265137, 0.11407165974378586, -0.5668103694915771, 0.026005052030086517, -0.15474849939346313, -0.12772136926651, 0.8800724744796753, 0.06802231073379517, -1.0268845558166504, -0.35087406635284424, -0.1503181904554367, -0.37035250663757324, 0.29291319847106934, 0.9512216448783875, -0.7912618517875671, 0.9124325513839722, 0.32683226466178894, 0.4730857014656067, 0.40014564990997314, -0.15642192959785461, 0.27593228220939636, -0.3761562407016754, 0.18155395984649658, 0.3123413324356079, 0.28285595774650574, 0.2554958164691925, -0.12844185531139374, 0.6254988312721252, 0.5865252614021301, -0.24032804369926453, -0.6135965585708618, 0.6700137257575989, -1.315703272819519, -0.5650049448013306, 1.2377475500106812, -0.16794046759605408, 0.4924995005130768, -0.3127887547016144, -0.254954993724823, 0.3517730236053467, 0.20995178818702698, 0.698360025882721, 0.2921600043773651, -0.13255733251571655, -0.04340251162648201, -0.5535217523574829, 0.14737534523010254, 0.5870634317398071, -0.7984753251075745, -0.5045844912528992, 0.8906228542327881, 0.41324323415756226, -0.045385975390672684, 0.6447151303291321, -0.1546480506658554, 0.3228296637535095, 0.15217606723308563, -0.05812249705195427, -0.22703184187412262, -0.7927477359771729, -0.21034061908721924, 0.5144129991531372, -0.2078959047794342, -0.2654308080673218 ]
http://arxiv.org/abs/2405.17610v1
http://arxiv.org/pdf/2405.17610v1
Explainable machine learning multi-label classification of Spanish legal judgements
2024-05-27T19:16:42
2024-05-27T19:16:42
Francisco de Arriba-Pérez, Silvia García-Méndez, Francisco J. González-Castaño, Jaime González-González
cs.CL
cs.CL, cs.AI, cs.LG
Artificial Intelligence techniques such as Machine Learning (ML) have not been exploited to their maximum potential in the legal domain. This has been partially due to the insufficient explanations they provided about their decisions. Automatic expert systems with explanatory capabilities can be specially useful when legal practitioners search jurisprudence to gather contextual knowledge for their cases. Therefore, we propose a hybrid system that applies ML for multi-label classification of judgements (sentences) and visual and natural language descriptions for explanation purposes, boosted by Natural Language Processing techniques and deep legal reasoning to identify the entities, such as the parties, involved. We are not aware of any prior work on automatic multi-label classification of legal judgements also providing natural language explanations to the end-users with comparable overall quality. Our solution achieves over 85 % micro precision on a labelled data set annotated by legal experts. This endorses its interest to relieve human experts from monotonous labour-intensive legal classification tasks.
[ -0.45139622688293457, -0.6700605750083923, 0.5252459049224854, 0.23973332345485687, -0.5105632543563843, 0.2583601772785187, -0.12062588334083557, -0.7029727697372437, 0.12188011407852173, 0.6528540253639221, -0.28057733178138733, -0.5595706701278687, -0.5569984912872314, -0.07441247999668121, -0.4018900692462921, 1.3207792043685913, 0.09709353744983673, 0.25483763217926025, -0.057243525981903076, -0.5610265135765076, -0.3377053737640381, -0.5919451713562012, -0.3920564651489258, -0.35973304510116577, 0.4914952218532562, 0.5011090040206909, 0.8120779395103455, 0.507814884185791, 0.35720545053482056, 0.45080864429473877, 0.030500514432787895, 0.08593770116567612, 0.01694473996758461, -0.12846317887306213, -0.3854292333126068, -0.4795818030834198, -0.47638118267059326, -0.19477970898151398, 0.23514066636562347, 0.42169705033302307, -0.25992074608802795, 0.13685394823551178, -0.3110390901565552, 0.713264524936676, -0.5955284237861633, 0.35028061270713806, -0.5108788013458252, 0.5413023829460144, 0.024375751614570618, -0.33706286549568176, -0.5551100373268127, -0.42620036005973816, 0.18355755507946014, -0.6215556859970093, 0.45551782846450806, 0.2665814161300659, 0.7634062170982361, 0.5693374872207642, -0.7469820976257324, -0.4427136778831482, -0.6185575723648071, 0.5255940556526184, -0.35964563488960266, 0.24332214891910553, 0.04132743924856186, 0.8098888397216797, -0.09539048373699188, -0.6394098997116089, -0.5514238476753235, -0.3263868987560272, -0.21426156163215637, 0.33199888467788696, -0.2645798623561859, 0.23118062317371368, 0.137485072016716, 0.11610881984233856, -0.5178898572921753, 0.4988235831260681, -0.2696045935153961, -0.5707764625549316, 0.7341869473457336, -0.09039044380187988, 0.137208491563797, -0.06862260401248932, -0.2735939621925354, 0.09407457709312439, -0.4690321385860443, 0.36941012740135193, 0.4909079074859619, 0.06417267769575119, 0.24221009016036987, 0.6672357320785522, 0.02974989265203476, 0.8104926347732544, -0.11645346134901047, -0.29424718022346497, 0.3782115876674652, -0.09345761686563492, -0.4069874882698059, 0.45938730239868164, 1.158997893333435, 0.399795264005661, 0.23292624950408936, 0.019337594509124756, -0.18208342790603638, -0.013219855725765228, 0.02967064455151558, -0.5274432897567749, -0.16982147097587585, 0.24352718889713287, -0.638206422328949, -0.25381508469581604, 0.40278589725494385, -0.7907776832580566, -0.66068035364151, -0.4278864562511444, 0.1270100474357605, -0.07820858806371689, -0.03754810243844986, 0.2583763003349304, -0.302232027053833, -0.031118160113692284, 0.4606814980506897, -0.5289608836174011, 0.3211071491241455, 0.2800893187522888, 0.197781503200531, 0.26291990280151367, 0.17119669914245605, -0.48050621151924133, 0.15565846860408783, -0.10518386960029602, 0.7546315789222717, -0.42470598220825195, -0.03894709795713425, -0.1426047682762146, 0.07657422870397568, 0.1106719821691513, -0.5780103802680969, 0.8203758597373962, -0.6792036890983582, 0.4968860149383545, 0.21810905635356903, -0.3886595666408539, -0.6802998185157776, 0.03453925624489784, -0.7124348282814026, 0.7021900415420532, -0.23518669605255127, -0.6253281831741333, 1.0270895957946777, -0.8400983214378357, -0.6569005250930786, 0.3592938482761383, -0.28786423802375793, -0.6708433628082275, -0.12331229448318481, 0.36850157380104065, 0.6472881436347961, -0.11789475381374359, 0.8784574866294861, -0.35940390825271606, 0.05128973722457886, 0.36519235372543335, -0.399647980928421, 1.0213291645050049, 0.5000059604644775, -0.527047872543335, 0.3436146378517151, -0.8862600922584534, -0.13944318890571594, -0.042318325489759445, -0.43072617053985596, -0.09870681911706924, -0.0008025998831726611, -0.12443538010120392, 0.5929170250892639, 0.20154069364070892, -0.4398724436759949, -0.18719743192195892, -0.20761141180992126, 0.3661472797393799, 0.5206310749053955, -0.0885067731142044, 0.23417574167251587, -0.10386238247156143, 0.7332903146743774, -0.01579553820192814, 0.07260266691446304, -0.10784953087568283, -0.785915732383728, -0.7268505692481995, -0.3435856103897095, 0.49905580282211304, 0.874019980430603, -0.630504846572876, 0.6648624539375305, -0.2268434762954712, -0.1974465250968933, -0.7050079703330994, 0.09445109963417053, 0.429891437292099, 0.6551016569137573, 0.44655776023864746, 0.14597412943840027, -0.7264785170555115, -1.2638529539108276, -0.4950261414051056, -0.05279436707496643, 0.008394138887524605, 0.5321000814437866, 0.7145382761955261, -0.13385958969593048, 1.0345487594604492, 0.11119340360164642, -0.3809821307659149, -0.1435883641242981, 0.3615283966064453, 0.40899884700775146, 0.06237117946147919, 0.40338703989982605, -1.227735161781311, -0.36741572618484497, 0.4820144772529602, -1.0040171146392822, -0.16417630016803741, -0.20426009595394135, 0.2106674760580063, 0.16588708758354187, 0.4876888692378998, -0.09498047828674316, 0.3905109465122223, -0.021557167172431946, -0.627419650554657, 0.631893515586853, -0.7054896950721741, 0.08877412974834442, -0.5360927581787109, -0.11835864931344986, 0.4017184376716614, -0.5608568787574768, -0.44138452410697937, -0.05635729804635048, 0.24923159182071686, 0.15987303853034973, -0.5397987961769104, 0.2836137115955353, -0.32353371381759644, -0.043114639818668365, -0.2645699679851532, 0.057319525629282, 0.13284260034561157, 0.41509589552879333, 0.08797703683376312, 0.23939865827560425, 0.4201061725616455, -0.7437950968742371, 0.6118717193603516, -0.04475906863808632, -0.21020358800888062, 0.6769648790359497, -0.35986846685409546, -0.24803097546100616, -0.2369958460330963, 0.39636939764022827, -0.6662926077842712, -0.36826905608177185, 0.39925602078437805, -0.13226059079170227, 0.11458414793014526, -0.405482679605484, -0.5722702145576477, -0.857198178768158, -0.11136053502559662, 0.05342544615268707, 0.252252995967865, -0.6847934722900391, 0.7903082966804504, 0.6444092392921448, 0.01596561074256897, -0.6951528787612915, -0.7080055475234985, 0.28675317764282227, -0.644383430480957, -0.3881935179233551, 0.30255332589149475, 0.26977312564849854, -0.3511522710323334, 0.32845208048820496, 0.0954996794462204, -0.23356474936008453, 0.12347497045993805, 0.392767071723938, 0.029857520014047623, -0.23349373042583466, 0.3779572546482086, 0.39250490069389343, -0.16326864063739777, 0.44959959387779236, -0.4187089800834656, 0.0696713775396347, -0.44695422053337097, -0.34575003385543823, -0.7421956062316895, 0.19997374713420868, 0.629169762134552, -0.16313497722148895, 0.5817762017250061, 0.31953948736190796, -0.28954118490219116, -0.08840855956077576, -0.618450403213501, 0.3840109407901764, -0.41120100021362305, 0.11026809364557266, -0.7091558575630188, -0.5981152057647705, 0.7208690643310547, 0.06780615448951721, -0.12891745567321777, 0.9869663715362549, 0.8420861959457397, -0.14805884659290314, 1.0318453311920166, 0.4945814609527588, 0.09917356818914413, 0.28495946526527405, -0.09929835051298141, 0.3056028187274933, -0.006059644278138876, -0.7928556799888611, -0.6917386651039124, -0.1578981876373291, -0.6622710227966309, -0.11888547241687775, 0.26268869638442993, -0.058797504752874374, -0.15974615514278412, 0.2017083466053009, -0.598755955696106, 0.692693829536438, 0.8451609015464783, 0.3113100230693817, 0.5851393938064575, -0.09284254163503647, -0.4804804027080536, 0.220398411154747, -0.8050214648246765, -0.7378053665161133, 0.9088414311408997, 0.4491269290447235, 0.4733229875564575, 0.028359901160001755, 0.5685395002365112, 0.5451095700263977, 0.1801600158214569, -0.8159685134887695, 0.45331689715385437, -0.21849972009658813, -0.589855968952179, -0.08929738402366638, -0.4789005517959595, -0.9599472880363464, 0.5407724976539612, -0.5040301084518433, -0.44895023107528687, 0.1625695526599884, 0.10311415791511536, -0.5461904406547546, 0.22191324830055237, -0.7869731187820435, 0.9235259890556335, -0.5684492588043213, -0.15990813076496124, -0.2820728123188019, -0.806524395942688, 0.40221044421195984, -0.163601353764534, 0.7054953575134277, -0.023606980219483376, -0.03762941434979439, 1.053106427192688, -0.7755334973335266, 0.6693310737609863, -0.34855419397354126, 0.006234871689230204, 0.4046209156513214, -0.05713949725031853, 0.1797061413526535, -0.10270728915929794, -0.06372951716184616, -0.3289351463317871, -0.06050357222557068, -0.2099420428276062, -0.6727123856544495, 0.30732372403144836, -0.40565842390060425, -0.22238728404045105, -0.36435195803642273, -0.4742162823677063, 0.08630549162626266, 0.12805365025997162, 0.11830227077007294, 0.035949770361185074, 0.010147039778530598, 0.012957180850207806, 0.36595913767814636, -0.2265564352273941, 0.2599978744983673, 0.731522262096405, -0.14470341801643372, -0.45268514752388, 1.1269887685775757, 0.18510212004184723, -0.5314568877220154, 0.3358286917209625, 0.4674500524997711, -0.720705509185791, -0.6230835318565369, -0.6373052000999451, 0.054677676409482956, -0.852984607219696, -0.1693916916847229, -0.7200100421905518, 0.2179778665304184, -0.1460288166999817, -0.02010272815823555, 0.081953264772892, -0.7243947386741638, -0.12228089570999146, -0.31068921089172363, 0.2775098979473114, 0.801902711391449, 0.09344251453876495, 0.1363000124692917, -0.662533164024353, 0.6661050319671631, 0.2817836105823517, 0.3021365702152252, -0.391470730304718, -0.5455619096755981, -0.034610770642757416, -0.0493137501180172, -0.08485431969165802, -0.9697466492652893, 0.3166133165359497, 0.17859649658203125, 0.8483055830001831, 0.8314633369445801, 0.04586460813879967, 0.5660900473594666, -0.421066015958786, 0.3246525526046753, 0.28516244888305664, -0.7444587349891663, 0.823733389377594, -0.19172750413417816, -0.33430904150009155, 0.470241516828537, 0.46650430560112, -0.07287220656871796, -0.7237911224365234, -0.7127149105072021, -0.8648392558097839, 0.6412635445594788, -0.09452587366104126, -0.30426689982414246, 0.3223227560520172, 0.18671667575836182, 0.5590611100196838, 0.2734350264072418, -0.8520135283470154, -0.13603220880031586, -0.17635688185691833, -0.2940577566623688, 0.007558206096291542, -0.01416793279349804, -0.10328628122806549, -0.6093193292617798, 0.8035191893577576, -0.14133740961551666, -0.08210550993680954, -0.07853378355503082, -0.4641166925430298, 0.1944936066865921, 0.42466044425964355, 0.5401335954666138, 0.6446477174758911, -0.08413209021091461, 0.25628915429115295, -0.006546652875840664, -0.001066321274265647, 0.3714944124221802, 0.37311986088752747, -0.036436956375837326, 0.09890274703502655, 0.2103082537651062, 0.7411625385284424, -0.03683747723698616, -0.7851353883743286, 0.36079055070877075, -0.04241884872317314, -0.5663265585899353, -0.39617660641670227, -0.012533998116850853, -0.10708160698413849, 0.31841811537742615, 0.24825187027454376, 0.3128262758255005, 0.5009883642196655, -0.5031551718711853, 0.21641883254051208, 0.2959946393966675, -0.35415127873420715, 0.24451801180839539, 0.819101095199585, 0.2586970031261444, -0.34854844212532043, 0.1705010086297989, -0.36535802483558655, -0.6377993226051331, 0.8047084808349609, 0.20076727867126465, 0.4825601279735565, 0.17829443514347076, 0.4844091236591339, -0.06464646756649017, 0.04025651514530182, -0.2455352544784546, -0.013858291320502758, -0.27437466382980347, -0.5941548943519592, -0.3814515173435211, -0.29970434308052063, -0.6749558448791504, -0.08863119781017303, -0.7115755081176758, 0.04332183301448822, -0.46166324615478516, -0.0873502716422081, 0.34246334433555603, -0.2853858470916748, -0.7848935127258301, 0.2951701879501343, 0.07766646891832352, 0.6753562092781067, -1.0375930070877075, 0.728614866733551, 0.5424832105636597, -0.4352782368659973, -0.4424501359462738, -0.6065489053726196, 0.04315165802836418, -0.6059629917144775, 0.7191401720046997, 0.3734591603279114, -0.34439554810523987, -0.4362345039844513, -0.29065123200416565, 0.06688174605369568, 0.6015648245811462, 0.4955058991909027, -0.6095958352088928, 0.3227875232696533, 0.243589848279953, 0.9336230158805847, -0.34139928221702576, 0.35267600417137146, 0.7841519713401794, 0.7675336599349976, 0.04736220836639404, -0.861381471157074, -0.07036816328763962, -0.44246235489845276, -0.5662872195243835, 0.06466012448072433, -0.10866553336381912, 0.3144586682319641, -0.31594303250312805, 0.01378309354186058, -0.29504793882369995, 0.5234118103981018, 0.023711703717708588, 0.7533912658691406, 0.46846887469291687, 0.6928934454917908, 1.3233883380889893, -0.33980321884155273, 1.2020434141159058, -0.1435859352350235, 0.2917616665363312, 1.2122374773025513, -0.020987896248698235, 0.39751920104026794, 0.5332340002059937, -0.21303488314151764, 0.7626697421073914, 0.8247644305229187, -0.40445011854171753, 0.1807612180709839, 0.2617368996143341, -0.2285974621772766, -0.33876118063926697, -0.214985191822052, -0.03436794504523277, 0.3837549388408661, 0.404793381690979, -0.7677136063575745, -0.09742093086242676, 0.4684792160987854, -0.31379517912864685, 0.2603512406349182, -0.4957132041454315, 0.9636912941932678, -0.15024316310882568, -0.6730391383171082, 0.25755774974823, 0.1841582953929901, 0.49639180302619934, -0.022023340687155724, 0.04996783286333084, 0.23544694483280182, 0.25780153274536133, -0.5698065757751465, -1.130120038986206, 0.10920422524213791, 0.13621240854263306, -0.23799560964107513, -0.6473693251609802, 0.48723429441452026, -0.19130034744739532, -0.6694858074188232, 0.41469720005989075, 0.532319962978363, 0.5587136149406433, -0.15512517094612122, -1.1110261678695679, -0.6126627326011658, -0.16716335713863373, -0.1098969355225563, -0.062021903693675995, 0.863658607006073, -0.3527854382991791, 0.9303258061408997, 0.4611392617225647, -0.05660976842045784, 0.4493280053138733, 0.43878617882728577, 0.694402813911438, -0.7857887148857117, -0.688830554485321, -0.9046964049339294, 0.5469045639038086, -0.226808100938797, -0.061590902507305145, 0.510552704334259, 0.7094417810440063, 0.5545549392700195, -0.0942532941699028, 0.7904634475708008, -0.043292369693517685, 0.3844909369945526, -0.6817658543586731, 0.513270378112793, -0.31459757685661316, 0.24382294714450836, 0.02822957932949066, -0.5834705233573914, -0.7607117891311646, 0.5585817694664001, -0.26182106137275696, -0.010847527533769608, 0.6139704585075378, 0.5148423314094543, -0.23564603924751282, 0.06031758338212967, 0.2731093764305115, 0.06418047100305557, 0.3084455132484436, 0.47657859325408936, 0.8102985620498657, -0.1362958699464798, 0.9385697841644287, -0.37320515513420105, -0.16084089875221252, -0.39261892437934875, -0.8665109872817993, -0.8699155449867249, -0.18238523602485657, -0.415020227432251, -0.2596677243709564, -0.15017110109329224, 0.6436034440994263, 0.7177107930183411, -1.1291459798812866, 0.005533379036933184, -0.36097452044487, 0.40760526061058044, -0.045004431158304214, -0.26317232847213745, 0.3801397979259491, -0.27933090925216675, -0.46040841937065125, 0.32836079597473145, 0.23263905942440033, 0.07324882596731186, -0.04495420306921005, -0.20834562182426453, -0.08822476118803024, -0.36860090494155884, 0.5358496904373169, 0.5148398280143738, -0.9626128077507019, 0.06851140409708023, -0.6403921842575073, 0.04827161133289337, 0.352453351020813, 0.899058997631073, -0.9323675036430359, 0.68202143907547, 0.3347497880458832, 0.5110708475112915, 0.474499374628067, -0.05207180231809616, 0.3785960078239441, -0.42917492985725403, 0.3354301154613495, 0.5002835988998413, 0.8093047738075256, -0.0603637658059597, -0.2119777947664261, 0.3754538595676422, 0.04907548427581787, -0.3821280300617218, -0.42608311772346497, 0.03356665000319481, -0.979158341884613, -0.4447091817855835, 0.617103636264801, -0.23663429915905, -0.13989102840423584, -0.655402660369873, -0.41054567694664, 0.2300547957420349, -0.5159849524497986, 0.6793851852416992, 0.5876966118812561, -0.3642261326313019, -0.07452862709760666, -0.7443962097167969, 0.24697241187095642, 0.24022707343101501, -0.8936300277709961, -0.433714359998703, 0.6157826781272888, 0.14109207689762115, 0.26946955919265747, 0.29310765862464905, -0.23109236359596252, 0.4131312668323517, -0.2673320174217224, 0.06683018058538437, -0.20780326426029205, -0.5347163677215576, -0.5084039568901062, 0.6686645150184631, -0.22961001098155975, -0.20152565836906433 ]
http://arxiv.org/abs/2405.17604v1
http://arxiv.org/pdf/2405.17604v1
LoRA-XS: Low-Rank Adaptation with Extremely Small Number of Parameters
2024-05-27T19:07:13
2024-05-27T19:07:13
Klaudia Bałazy, Mohammadreza Banaei, Karl Aberer, Jacek Tabor
cs.LG
cs.LG, cs.AI, cs.CL
The recent trend in scaling language models has led to a growing demand for parameter-efficient tuning (PEFT) methods such as LoRA (Low-Rank Adaptation). LoRA consistently matches or surpasses the full fine-tuning baseline with fewer parameters. However, handling numerous task-specific or user-specific LoRA modules on top of a base model still presents significant storage challenges. To address this, we introduce LoRA-XS (Low-Rank Adaptation with eXtremely Small number of parameters), a novel approach leveraging Singular Value Decomposition (SVD) for parameter-efficient fine-tuning. LoRA-XS introduces a small r x r weight matrix between frozen LoRA matrices, which are constructed by SVD of the original weight matrix. Training only r x r weight matrices ensures independence from model dimensions, enabling more parameter-efficient fine-tuning, especially for larger models. LoRA-XS achieves a remarkable reduction of trainable parameters by over 100x in 7B models compared to LoRA. Our benchmarking across various scales, including GLUE, GSM8k, and MATH benchmarks, shows that our approach outperforms LoRA and recent state-of-the-art approaches like VeRA in terms of parameter efficiency while maintaining competitive performance.
[ -0.4180235266685486, -0.4481127858161926, 0.27176231145858765, -0.04309646785259247, -0.4721226990222931, -0.03135954216122627, -0.2966667413711548, -0.14045266807079315, 0.23553694784641266, 0.5383762121200562, -0.5129887461662292, -0.44211214780807495, -0.4108603596687317, -0.19756284356117249, -0.2286641150712967, 1.0543746948242188, 0.11358160525560379, -0.074978768825531, 0.05451900139451027, -0.5403396487236023, -0.18278104066848755, -0.3792469799518585, -0.7787787914276123, -0.07012556493282318, 1.0168527364730835, 0.6485658288002014, 0.4925660490989685, 0.9504728317260742, 0.4206674098968506, 0.2393835037946701, -0.17289873957633972, 0.09347610175609589, -0.8512564897537231, 0.06506355106830597, -0.16153980791568756, -0.7781032919883728, -0.8417840600013733, -0.31255829334259033, 0.9229711890220642, 0.8415178656578064, -0.11592930555343628, 0.5688206553459167, 0.049046486616134644, 0.8722584247589111, -0.8812811970710754, -0.040058061480522156, -0.7758027911186218, -0.10719043761491776, -0.2691787779331207, -0.0649302750825882, -0.43077465891838074, -0.3253825008869171, -0.1608293354511261, -0.6985180974006653, -0.20232689380645752, 0.1206526979804039, 0.691338062286377, 0.6360381841659546, -0.09457462280988693, 0.31472745537757874, -0.8792222738265991, 0.9274804592132568, -0.6271116137504578, 0.38021984696388245, 0.29987505078315735, 0.322341650724411, 0.0008667591609992087, -0.284243643283844, -0.09428218007087708, 0.15393100678920746, 0.4879262447357178, -0.254642516374588, -0.36198100447654724, -0.18847790360450745, 0.2690347135066986, 0.2324550747871399, -0.30535000562667847, 0.5229222774505615, -0.41529303789138794, 0.35925185680389404, 0.473610520362854, 0.2077663093805313, -0.15858598053455353, -0.07960918545722961, -0.17432546615600586, -0.20813415944576263, -1.0613785982131958, 0.16871437430381775, 0.19641712307929993, 0.9137967228889465, -0.20232625305652618, 0.36868706345558167, -0.27609923481941223, 0.6948645710945129, 0.23839980363845825, -0.4483327865600586, 0.06309545785188675, -0.16476532816886902, -0.33475667238235474, -0.05246695876121521, 0.46482613682746887, -0.03197314962744713, -0.2264622151851654, -0.0970686748623848, -0.11070215702056885, 0.2812272310256958, 0.020317912101745605, -0.7794346213340759, -0.06892125308513641, -0.25148290395736694, -0.5153779983520508, -0.4482056200504303, -0.3745107352733612, -0.5668123364448547, -0.3407531678676605, -0.15234781801700592, 0.868556797504425, -0.12665843963623047, 0.17166085541248322, 0.200956791639328, 0.060354411602020264, 0.25608113408088684, 0.6076033711433411, -1.012715458869934, 0.841833770275116, 0.39741936326026917, 0.6088911890983582, -0.5020377039909363, -0.12454662472009659, -1.0510716438293457, 0.08172360807657242, -0.32859402894973755, 0.8702840209007263, -0.37152785062789917, -0.16445493698120117, -0.5458787083625793, -0.18941451609134674, -0.09628596901893616, -0.5701321363449097, 0.6084017157554626, -0.3174948990345001, -0.0744263157248497, -0.3798907399177551, -0.0034959143958985806, 0.13235239684581757, -0.14830151200294495, -0.6017199158668518, 1.387055516242981, 0.47841593623161316, -0.35944223403930664, 0.4298105239868164, -0.7681078910827637, -0.28770551085472107, -0.09065647423267365, -0.15347523987293243, -0.5682650804519653, 0.5455693602561951, 0.021780000999569893, 0.2996867299079895, -0.636013388633728, -0.6909142136573792, -0.44541794061660767, -0.5449619293212891, -0.12849026918411255, -0.1639203280210495, 0.3449382185935974, 0.086591437458992, -0.104030542075634, 0.08040757477283478, -0.9683954119682312, 0.3464352488517761, 0.18092592060565948, -0.5706409215927124, -0.6352983117103577, 0.1684543788433075, -0.13630670309066772, 0.23402558267116547, 0.11210370063781738, -0.4487113654613495, 0.46233347058296204, -0.48728328943252563, 0.46783003211021423, 0.7927107214927673, -0.31868359446525574, 0.6127346754074097, -0.24384936690330505, 0.428009569644928, -0.09686432778835297, 0.24628165364265442, 0.13799329102039337, -0.31647011637687683, -1.014643907546997, -0.4115724563598633, 0.5231395959854126, 0.20258986949920654, -0.5342382788658142, 0.5306150317192078, -0.5055556297302246, -0.7269127368927002, -0.5538318157196045, 0.40323930978775024, 0.42308753728866577, 0.2651625871658325, 0.2984400689601898, -0.03080323524773121, -0.42081552743911743, -0.787327766418457, -0.0833144560456276, -0.14581532776355743, -0.012216032482683659, 0.16929462552070618, 0.5173115134239197, 0.022016001865267754, 0.8964713215827942, -0.7752948999404907, -0.5473054647445679, -0.23809371888637543, -0.12076408416032791, 0.1559123545885086, 0.4429129660129547, 0.831366777420044, -0.3911571800708771, -0.6974332928657532, 0.26689401268959045, -0.2911989092826843, 0.07853398472070694, 0.3313504159450531, 0.029212046414613724, 0.2655518651008606, 0.38531866669654846, -0.2725171148777008, 0.3520495593547821, 0.8455559015274048, -0.3722837269306183, 0.05113764852285385, -0.5508938431739807, -0.215230330824852, -0.9749861359596252, 0.03400839865207672, -0.12919355928897858, -0.45774024724960327, -0.4327222406864166, -0.043569400906562805, -0.009842845611274242, -0.2551605999469757, -0.520677924156189, 0.5161722898483276, -0.3096941113471985, -0.28974825143814087, -0.17030583322048187, 0.18709228932857513, -0.04389763996005058, 0.7113973498344421, -0.23386871814727783, 0.7155618071556091, 0.5084488391876221, -0.49700555205345154, -0.039528779685497284, 0.3382928967475891, -0.3487981855869293, 0.5982844233512878, -0.4679293632507324, 0.19608533382415771, 0.01568754017353058, 0.007681823335587978, -0.7598455548286438, 0.20864388346672058, 0.15440678596496582, 0.0017256736755371094, -0.059604842215776443, -0.6461165547370911, -0.4782382845878601, -0.06317386776208878, -0.5982183814048767, 0.2925754189491272, 0.8705528378486633, -0.5086336135864258, 0.6372068524360657, 0.30640536546707153, -0.48675498366355896, -0.29357394576072693, -0.3659130036830902, -0.10854408144950867, -0.4357030987739563, -0.37285906076431274, 0.3495466709136963, -0.45060816407203674, -0.10537516325712204, -0.09812244027853012, -0.25614047050476074, 0.02807551994919777, 0.22902826964855194, 0.35727983713150024, 0.07142001390457153, -0.6576476097106934, -0.23545655608177185, 0.551108181476593, -0.4026419222354889, -0.3834414482116699, -0.0783708319067955, 0.4162372052669525, -0.13005605340003967, -0.35563135147094727, -0.24847620725631714, 0.45890650153160095, 0.8347861170768738, -0.04723062738776207, 0.7838685512542725, 0.3430858850479126, -0.31484168767929077, -0.6406069993972778, -0.1418953388929367, 0.1005505621433258, -0.49617087841033936, 0.37226638197898865, -0.5856252312660217, -0.7269831299781799, 0.5850778222084045, -0.19062510132789612, -0.04076242819428444, 0.3176313638687134, 0.43112480640411377, -0.012061147950589657, 1.283975601196289, 0.9153847098350525, -0.12163498252630234, 0.6247920989990234, -0.1969522386789322, 0.06630434840917587, -0.702526867389679, 0.17694500088691711, -0.9175675511360168, -0.41250401735305786, -0.5169346928596497, -0.4949520230293274, 0.5438018441200256, 0.005186119116842747, -0.2839283347129822, 0.41977646946907043, -0.463246613740921, 0.5741015076637268, 0.33420196175575256, 0.05067216232419014, 0.45974379777908325, 0.13496719300746918, 0.3060872256755829, -0.08179546892642975, -0.8881109952926636, -0.21492043137550354, 0.9478549957275391, 0.24899673461914062, 1.1648781299591064, 0.17286255955696106, 0.7448028922080994, 0.40313857793807983, 0.004899139516055584, -0.827306866645813, 0.6237417459487915, -0.6846840381622314, -0.13639606535434723, -0.6659020781517029, -0.27037638425827026, -0.9546771049499512, 0.4503629803657532, -0.282489538192749, -0.8973793983459473, 0.39174044132232666, 0.11000338196754456, -0.867387592792511, 0.3252571225166321, -0.8419060111045837, 0.49946123361587524, -0.09347957372665405, -0.2361217737197876, -0.30001649260520935, -0.42037105560302734, -0.06665176153182983, -0.5066899657249451, 0.06643962115049362, -0.265738308429718, -0.25404733419418335, 1.0701711177825928, -0.48713168501853943, 0.7701946496963501, -0.3024449944496155, -0.30564001202583313, -0.2602044939994812, -0.09716300666332245, 0.750934898853302, -0.06977960467338562, -0.26806730031967163, -0.08545516431331635, 0.48616543412208557, -0.5066437721252441, -0.6912445425987244, 1.0116934776306152, -1.1455861330032349, -0.3539675176143646, -0.22696037590503693, -0.44449687004089355, -0.33140137791633606, 0.24881502985954285, 0.1217239573597908, 0.36976560950279236, -0.18765701353549957, 0.36520785093307495, 0.9194134473800659, 0.008855383843183517, 0.24706150591373444, 0.4893573224544525, -0.28320419788360596, -0.28895455598831177, 1.160392165184021, 0.4266655147075653, 0.3686143159866333, 0.44353505969047546, 0.24758575856685638, 0.11999012529850006, -0.8812453746795654, -0.4796355664730072, 0.3323996067047119, -0.6811908483505249, -0.3609219193458557, -0.20738768577575684, -0.08481821417808533, -0.08668181300163269, -0.40015482902526855, -0.9081842303276062, -0.6032967567443848, -0.30268219113349915, 0.36918404698371887, 0.44589361548423767, 0.7269414067268372, 0.08134876936674118, 0.5323329567909241, -0.5179311633110046, 0.7107496857643127, 0.31476324796676636, 0.6031745672225952, -0.3019549548625946, -0.8382654786109924, -0.5596882700920105, -0.15789620578289032, 0.267267644405365, -0.3058132231235504, 0.28318479657173157, 0.39369386434555054, 0.3996475636959076, 0.44549986720085144, 0.3449927270412445, 0.7962613105773926, -0.4422922432422638, 0.4709484279155731, 0.012031222693622112, -1.0023694038391113, 0.4514942169189453, -0.41712069511413574, 0.23695148527622223, 0.6421043276786804, -0.030350929126143456, -0.22874952852725983, 0.18376792967319489, -0.3863142728805542, -0.5858029723167419, 1.0164309740066528, 0.08156541734933853, 0.09609220921993256, 0.6028575897216797, 0.541056215763092, 0.4464707672595978, -0.20031128823757172, -0.4898534119129181, -0.3882586359977722, 0.10985942929983139, 0.05923750624060631, -0.042042676359415054, -0.24110934138298035, -0.17885532975196838, -0.46622857451438904, 0.7264324426651001, -0.5668652057647705, 0.37189263105392456, -0.45763418078422546, -0.12673735618591309, -0.45472827553749084, 0.2878272533416748, 0.659506618976593, 0.5062690377235413, -0.37470337748527527, 0.015282025560736656, 0.616831362247467, -0.2994864881038666, 0.2749464809894562, -0.04520261287689209, -0.09365597367286682, -0.21879780292510986, -0.13008973002433777, 0.9508053064346313, 0.6306021809577942, -0.5395247936248779, 0.2985715866088867, -0.2120717465877533, -0.2034635990858078, -0.06057320162653923, 0.4456010162830353, 0.0023942901752889156, 0.11123654991388321, 0.4818211793899536, 0.4014262855052948, -0.3389812409877777, -0.270455926656723, -0.24281558394432068, 0.2662624716758728, -0.38999736309051514, -0.5505847334861755, 0.4516925513744354, 0.19459490478038788, -0.24043241143226624, -0.02668818272650242, -0.026112528517842293, 0.2173999547958374, 0.2018921971321106, 0.46662747859954834, 0.5693362355232239, -0.18639983236789703, 0.17906521260738373, -0.03956862539052963, 0.0979568213224411, -0.18634416162967682, 0.5319138169288635, -0.048344410955905914, -0.5246062874794006, -0.39019575715065, -0.6915922164916992, -0.4915206730365753, 0.2191678285598755, -0.9759442210197449, 0.6158964037895203, -0.7215510010719299, 0.0017667690990492702, 0.27942049503326416, 0.20632857084274292, -0.35974180698394775, 0.07048013061285019, 0.09994455426931381, 1.0465469360351562, -1.0483112335205078, 1.21954345703125, 0.6106233596801758, -0.1482609659433365, -0.5059784650802612, -0.47044894099235535, -0.18263636529445648, -0.7814813852310181, 0.5953754186630249, -0.5711525678634644, -0.5188207626342773, 0.25310665369033813, -0.42554971575737, -1.308691143989563, 1.079929232597351, 0.9199161529541016, -0.29002273082733154, -0.27001169323921204, 0.1780908703804016, 0.4639657139778137, -0.3389344811439514, -0.3924059569835663, 0.6604011654853821, 0.421037495136261, -0.05766589939594269, -0.8526557683944702, 0.002388858934864402, -0.19314797222614288, 0.11776798218488693, 0.3372325897216797, -0.8220533132553101, 1.0111006498336792, -0.18699438869953156, 0.11684668809175491, 0.5775555968284607, 0.497440367937088, 0.1454419195652008, -0.1829887330532074, 0.6425208449363708, 0.39857569336891174, 0.7073609828948975, 0.01246705837547779, 0.6342999935150146, -0.05417715013027191, 0.27231287956237793, 0.9928632974624634, -0.5161150693893433, 1.2264866828918457, 0.6128239631652832, -0.24786314368247986, 0.6166481375694275, 0.30239418148994446, 0.1797219067811966, 0.6136125326156616, -0.02681589126586914, -0.08547651022672653, -0.4435581862926483, 0.05356382206082344, -0.3479919731616974, 0.6298102140426636, 0.45511430501937866, -0.10964211076498032, -0.36910316348075867, 0.227902352809906, -0.020089859142899513, -0.1511288434267044, -0.5643147826194763, 0.762728750705719, -0.043969426304101944, -0.2857727110385895, 1.0049716234207153, 0.08169983327388763, 0.4429536461830139, -0.8910033106803894, 0.14850232005119324, -0.2306983470916748, 0.561095654964447, -0.14704734086990356, -0.27659541368484497, -0.02270788513123989, -0.057380687445402145, -0.5271609425544739, -0.23019342124462128, 0.6459259390830994, -0.005982270464301109, -0.38539695739746094, 0.256765216588974, 0.6819355487823486, -0.06930772960186005, -0.1370396912097931, -0.5422590374946594, 0.44808053970336914, -0.2061319351196289, -0.2276144027709961, 1.0119082927703857, 0.26963385939598083, -0.4165208041667938, 0.8448572158813477, 0.5454967021942139, 0.20229926705360413, -0.10121646523475647, -0.16599568724632263, 1.2422276735305786, -0.7314711809158325, -0.7077169418334961, -0.4225555658340454, 0.2222258746623993, 0.3417503237724304, -0.36002442240715027, 0.6991240978240967, 0.5187283754348755, 0.48218420147895813, -0.1326800435781479, 0.8201470375061035, 0.08720333874225616, 0.632093608379364, -0.49672162532806396, 0.7336445450782776, -0.6364735960960388, 0.2687031328678131, -0.4221820831298828, -0.892583966255188, -0.38223710656166077, 0.39782872796058655, -0.21252226829528809, -0.04895210638642311, 0.5945767164230347, 0.6969879269599915, -0.2590317130088806, -0.450035959482193, 0.7742810845375061, 0.2440672665834427, -0.10154540836811066, 0.37138041853904724, 0.5640010833740234, -0.7183073163032532, 0.784496545791626, 0.017987079918384552, -0.20100641250610352, -0.5358870029449463, -0.7733178734779358, -0.794438362121582, -0.648167073726654, -0.41791048645973206, -0.1190217137336731, 0.14093324542045593, 0.991073489189148, 1.206805944442749, -0.7418175339698792, -0.1820393055677414, 0.4484761953353882, 0.1595114767551422, -0.486582487821579, -0.04275139421224594, 0.48909732699394226, 0.029312051832675934, -0.6810989379882812, 0.7324748635292053, 0.577317476272583, -0.13022273778915405, -0.4413571357727051, -0.28487005829811096, 0.20198388397693634, 0.32164138555526733, 0.8579409122467041, 0.5588733553886414, -0.49307844042778015, -0.4163728654384613, -0.07023760676383972, -0.05922107398509979, 0.4434833526611328, 0.5519837141036987, -1.0215482711791992, -0.08520563691854477, 0.4704880118370056, 0.414868026971817, 0.6579048037528992, -0.21672174334526062, 0.25444135069847107, -0.6460033655166626, 0.05895595997571945, -0.10643818974494934, 0.19167560338974, 0.02140089124441147, -0.14165917038917542, 0.3445762097835541, 0.0908789411187172, -0.225801020860672, -1.1457099914550781, 0.08346863836050034, -1.6269975900650024, -0.15673090517520905, 0.9946394562721252, 0.015709303319454193, -0.4745838940143585, -0.12337785959243774, -0.39629390835762024, -0.29049623012542725, -0.505159854888916, 0.6445268988609314, -0.02913222834467888, -0.18043045699596405, -0.23385073244571686, -0.14395184814929962, 0.5274284482002258, 0.3446331322193146, -1.0238200426101685, 0.3339247703552246, 0.008915781043469906, 0.37699899077415466, 0.05921159312129021, 0.5376091003417969, 0.07523172348737717, 0.30078426003456116, -0.002982171718031168, -0.1132708340883255, 0.10030800104141235, -0.18273019790649414, -0.5106752514839172, 0.36022695899009705, 0.5842535495758057, -0.054059311747550964 ]
http://arxiv.org/abs/2405.17587v1
http://arxiv.org/pdf/2405.17587v1
RAGSys: Item-Cold-Start Recommender as RAG System
2024-05-27T18:40:49
2024-05-27T18:40:49
Emile Contal, Garrin McGoldrick
cs.IR
cs.IR, cs.CL, cs.LG
Large Language Models (LLM) hold immense promise for real-world applications, but their generic knowledge often falls short of domain-specific needs. Fine-tuning, a common approach, can suffer from catastrophic forgetting and hinder generalizability. In-Context Learning (ICL) offers an alternative, which can leverage Retrieval-Augmented Generation (RAG) to provide LLMs with relevant demonstrations for few-shot learning tasks. This paper explores the desired qualities of a demonstration retrieval system for ICL. We argue that ICL retrieval in this context resembles item-cold-start recommender systems, prioritizing discovery and maximizing information gain over strict relevance. We propose a novel evaluation method that measures the LLM's subsequent performance on NLP tasks, eliminating the need for subjective diversity scores. Our findings demonstrate the critical role of diversity and quality bias in retrieved demonstrations for effective ICL, and highlight the potential of recommender system techniques in this domain.
[ -0.36548689007759094, -0.3091575503349304, 0.327707439661026, 0.043793875724077225, -0.4189658463001251, 0.15696866810321808, -0.20647495985031128, -0.19397762417793274, 0.04103156179189682, 0.23498135805130005, -0.26506173610687256, -0.3743624687194824, -0.5568845272064209, -0.1218365877866745, -0.5831728577613831, 1.5514984130859375, 0.12157288193702698, -0.21100841462612152, -0.3411721885204315, -0.1782858669757843, -0.5175833106040955, -0.042980488389730453, -0.6611035466194153, -0.4875410497188568, 0.27932122349739075, 0.7654533386230469, 0.5533424019813538, 0.34840166568756104, 0.2203880250453949, 0.2687171399593353, -0.14165331423282623, 0.35261619091033936, -0.7820243239402771, 0.41752782464027405, -0.28720253705978394, -0.2078365534543991, -0.11698216944932938, 0.05223151296377182, 0.5729283094406128, 0.721676766872406, -0.04268654063344002, 0.3145393133163452, 0.4431256949901581, 0.444997102022171, -0.7813680171966553, -0.4036153554916382, -0.7935104370117188, 0.006233742460608482, -0.1256413757801056, -0.11410597711801529, -0.45745304226875305, -0.1178969070315361, 0.5558899641036987, -0.4171643555164337, 0.052381642162799835, 0.41169145703315735, 0.8194577693939209, 0.06555785238742828, -0.4156382977962494, -0.5169550180435181, -0.8296013474464417, 1.1670010089874268, -0.5211304426193237, 0.33861032128334045, 0.47963035106658936, 0.3299092650413513, 0.01030698511749506, -0.6843584775924683, -0.30248013138771057, -0.5562942028045654, -0.20807044208049774, 0.09578076004981995, -0.05139218270778656, -0.38703653216362, 0.22946225106716156, 0.35787779092788696, -0.4006313979625702, 0.04712110385298729, -0.2369639277458191, 0.10707064718008041, 0.3357805609703064, 0.22222065925598145, 0.0801301896572113, -0.12084004282951355, -0.5527384281158447, 0.007347338367253542, -0.6489113569259644, 0.07294506579637527, -0.013691461645066738, 0.4983419179916382, -0.15357519686222076, 0.5501536130905151, -0.33503371477127075, 0.6879969239234924, 0.3037838637828827, -0.3840429186820984, 0.08855925500392914, -0.1733742505311966, -0.47761911153793335, -0.22995278239250183, 0.28900083899497986, 0.2052237093448639, -0.1764666736125946, -0.28239428997039795, -0.46028149127960205, -0.33997756242752075, 0.20004139840602875, -0.8448006510734558, 0.10214866697788239, -0.084019236266613, -0.633228600025177, -0.14961549639701843, 0.12865802645683289, -0.5788498520851135, -0.4057585895061493, -0.3689720928668976, 0.5280666947364807, -0.5273902416229248, -0.012920119799673557, -0.15101025998592377, -0.21375657618045807, 0.06223941594362259, 0.23259374499320984, -0.5774699449539185, 0.4858897924423218, 0.5582965016365051, 0.7092046141624451, -0.42126625776290894, -0.22590455412864685, -0.6496546864509583, 0.05987612158060074, -0.29808691143989563, 0.7426422834396362, -0.37150171399116516, -0.43338969349861145, 0.06091557443141937, -0.2352370321750641, 0.43849408626556396, -0.7874240875244141, 0.515907347202301, -0.6133602261543274, 0.25480011105537415, -0.3106684386730194, -0.6333703994750977, 0.14672209322452545, 0.3735281527042389, -0.1218506395816803, 0.9374868869781494, 0.20522341132164001, -0.6053345203399658, 0.9017934799194336, -0.3840233087539673, -0.4716145396232605, 0.429507851600647, -0.07375486195087433, -0.21297945082187653, -0.07497715204954147, -0.17064881324768066, 0.6698151230812073, -0.29932740330696106, 0.21841566264629364, -0.2887190282344818, -0.7169225215911865, 0.08199609816074371, -0.2238083928823471, 0.43273434042930603, 0.3766588866710663, -0.46592143177986145, 0.02856248989701271, -0.4609226584434509, -0.03758622333407402, -0.08599410951137543, -0.41158655285835266, -0.7110804915428162, -0.07042097300291061, 0.0964268147945404, 0.17811235785484314, 0.20581801235675812, -0.3388991355895996, 0.04247916117310524, -0.6492693424224854, -0.20604929327964783, 0.7549145817756653, -0.23072044551372528, 0.6277501583099365, -0.6534563899040222, 0.507124662399292, -0.0569983646273613, 0.028392937034368515, -0.23363810777664185, -0.2856963276863098, -0.866654634475708, -0.12406377494335175, 0.058910150080919266, 0.31403908133506775, -0.9119089841842651, 0.1870688647031784, 0.10643532872200012, -0.40876612067222595, -0.17691084742546082, 0.3757387399673462, 0.6865034103393555, 0.41304782032966614, 0.30793797969818115, -0.1886288821697235, -0.4375687837600708, -0.8691536784172058, -0.30360060930252075, 0.07367729395627975, -0.1879904568195343, 0.766189694404602, 0.26057693362236023, -0.15638986229896545, 0.8396835327148438, -0.3527790904045105, -0.4153566062450409, -0.4524019658565521, -0.13793198764324188, 0.685373067855835, 0.22265838086605072, 0.5961393713951111, -0.6436976194381714, -0.8320155739784241, -0.11450894922018051, -0.576916515827179, -0.05673939734697342, 0.17566531896591187, -0.039777833968400955, -0.019399721175432205, 0.568192720413208, -0.2395806461572647, 0.2940739393234253, 0.25380679965019226, -0.47658997774124146, 0.5052093267440796, -0.2464628368616104, 0.015004623681306839, -0.9891711473464966, -0.11846030503511429, 0.06796251237392426, -0.256298691034317, -0.4567580223083496, 0.1401585042476654, -0.06118623912334442, -0.14902423322200775, -0.44145482778549194, 0.9784356355667114, -0.28989240527153015, -0.07631804794073105, -0.5598992109298706, 0.3138476014137268, -0.044831838458776474, 0.18252822756767273, -0.3370920717716217, 0.7026880979537964, 0.553162157535553, -0.8865824937820435, -0.13674353063106537, 0.14009307324886322, -0.49588584899902344, 0.6733726859092712, -0.4889156222343445, 0.0619744136929512, -0.19675634801387787, 0.17003697156906128, -0.7514288425445557, 0.039370253682136536, -0.09962709993124008, 0.09428676962852478, 0.38537630438804626, -0.30626964569091797, -0.21664592623710632, -0.10472683608531952, -0.28248268365859985, 0.36438900232315063, 0.6787392497062683, -0.8311564922332764, 0.21142199635505676, 0.3338804841041565, 0.02348470687866211, -0.8745434880256653, -0.0029498154763132334, -0.03941585496068001, -0.31114307045936584, -0.056719012558460236, 0.4039158523082733, -0.2903743386268616, -0.5378603339195251, -0.14237338304519653, 0.015861717984080315, 0.24207407236099243, 0.2158268541097641, 0.3094470798969269, 0.22572007775306702, -0.07204345613718033, 0.4167789816856384, 0.09866368025541306, 0.07580312341451645, -0.4579119086265564, -0.5582085251808167, 0.5044373869895935, -0.28793883323669434, -0.31855010986328125, 0.06617990881204605, 0.2792273461818695, 0.20394237339496613, 0.06248394399881363, 0.3007259666919708, 0.6055879592895508, -0.34695714712142944, -0.6359597444534302, -0.4586988687515259, -0.24419856071472168, -0.5022587776184082, 0.2720741629600525, -0.22090373933315277, -0.8671867847442627, -0.05224736034870148, -0.20287610590457916, 0.11067469418048859, 0.2862982451915741, 0.4717545807361603, -0.4478370249271393, 0.7382126450538635, 0.7816387414932251, -0.043384578078985214, 0.6322869062423706, -0.41994115710258484, 0.07895849645137787, -0.8505274057388306, -0.10243523865938187, -0.4210394024848938, -0.4563657343387604, -0.2859056890010834, -0.13355706632137299, 0.5249359607696533, 0.2840639352798462, -0.3251290023326874, 0.2273644357919693, -0.39955276250839233, 0.7349851131439209, 0.5850104093551636, 0.23064859211444855, 0.13966919481754303, -0.039680540561676025, -0.41455507278442383, -0.0835479125380516, -0.6945463418960571, -0.6304718255996704, 1.1387709379196167, -0.040466681122779846, 0.7501206994056702, 0.08710186183452606, 0.743191123008728, 0.33540958166122437, 0.5975962281227112, -0.7737047672271729, 0.5500447750091553, -0.7576961517333984, -0.3063450753688812, -0.3326130509376526, 0.0791647806763649, -0.9644446969032288, 0.11714030802249908, -0.31530141830444336, -0.5790124535560608, 0.08754198253154755, 0.07974842190742493, -0.4145296514034271, 0.18664613366127014, -0.35320746898651123, 0.43800216913223267, -0.2216687947511673, -0.533519983291626, -0.33261871337890625, -0.3554725646972656, 0.42367851734161377, 0.14343661069869995, 0.20472775399684906, -0.01218709908425808, 0.031006863340735435, 0.7325171232223511, -0.05725764483213425, 0.7729554772377014, -0.22499743103981018, 0.17573173344135284, 0.05569208040833473, 0.4369867742061615, 0.29473990201950073, 0.21959565579891205, -0.18075868487358093, -0.3951808214187622, -0.27325159311294556, -0.21275249123573303, -0.6098864078521729, 0.9884274005889893, -0.5564499497413635, -0.692582368850708, -0.13584758341312408, -0.39736828207969666, -0.22117272019386292, 0.23388980329036713, 0.16891714930534363, 0.679417610168457, -0.1830289214849472, 0.3660297393798828, 0.7317796945571899, -0.24976302683353424, 0.47822028398513794, 0.5330902934074402, -0.3978573679924011, -0.20593152940273285, 0.9282739162445068, -0.11060553044080734, 0.20942619442939758, 0.30361995100975037, 0.43389415740966797, 0.008410695940256119, -0.6595529317855835, -0.40668946504592896, 0.12426908314228058, -0.8791930675506592, -0.41827529668807983, -0.6433969140052795, 0.05095202103257179, -0.21938712894916534, -0.4063982665538788, -0.06697578728199005, -0.12145202606916428, -0.41126352548599243, 0.05712778866291046, 0.20968320965766907, 0.9411521553993225, 0.1688801646232605, 0.1353207230567932, -0.3854392170906067, 0.322887122631073, 0.5424258708953857, 0.6066919565200806, 0.08701810240745544, -0.8586540818214417, -0.649969220161438, -0.3023447096347809, -0.5730040073394775, -0.4505692720413208, 0.3240848779678345, 0.37362417578697205, 0.6483548283576965, 0.7273757457733154, 0.1083131730556488, 0.5628613829612732, -0.484261691570282, 0.8108171224594116, -0.14448760449886322, -0.7751403450965881, 0.5328044295310974, -0.149852454662323, 0.33035901188850403, 0.5943155884742737, 0.5973971486091614, -0.4869617223739624, -0.4217894673347473, -0.6658464074134827, -0.8554185032844543, 0.5659841895103455, -0.2373049110174179, 0.24541626870632172, -0.11570524424314499, 0.3253895044326782, 0.3015570640563965, 0.1488266885280609, -0.3723503351211548, -0.27681201696395874, -0.12580452859401703, 0.07593429833650589, -0.21782496571540833, -0.42450135946273804, -0.16499574482440948, -0.12258613109588623, 0.7936105728149414, -0.347129225730896, -0.0518183633685112, 0.17016412317752838, -0.16589893400669098, -0.054547276347875595, 0.3136462867259979, 0.5763482451438904, 0.6987380385398865, -0.20719483494758606, -0.0542517751455307, 0.4141288995742798, -0.06875291466712952, 0.10465268045663834, -0.20297929644584656, -0.32815104722976685, 0.008566985838115215, 0.22202512621879578, 0.810572624206543, 0.5583316683769226, -0.7770753502845764, 0.7037967443466187, 0.09457843005657196, 0.29744914174079895, -0.372691810131073, 0.001189131522551179, -0.1578269600868225, 0.35021740198135376, 0.5154141783714294, 0.15388092398643494, 0.4908340871334076, -0.6913260221481323, 0.48966148495674133, 0.8273124098777771, -0.6509681940078735, -0.05135652795433998, 0.3153795599937439, -0.09350859373807907, -0.5393677353858948, 0.5058629512786865, -0.28976425528526306, -0.4177341163158417, 0.5386890172958374, 0.7555481791496277, 0.9282934665679932, 0.007409558165818453, 0.25176379084587097, 0.2486983835697174, 0.04647790640592575, -0.09110883623361588, 0.0630786195397377, -0.3377968668937683, -0.7757294178009033, -0.04739929735660553, -0.6864029765129089, -0.45116350054740906, -0.012466710060834885, -0.5616322755813599, 0.756760835647583, -0.4593990445137024, 0.03535741940140724, -0.34532132744789124, -0.07577399909496307, -0.8551417589187622, 0.30775177478790283, 0.06467270851135254, 0.8808816075325012, -0.6894297003746033, 0.7693725824356079, 0.6156213283538818, -0.08104514330625534, -0.5188937783241272, 0.12601791322231293, -0.25476759672164917, -0.4418056905269623, 1.0989593267440796, -0.06335779279470444, -0.1637711524963379, -0.2568415105342865, -0.4385790228843689, -0.8153452277183533, 1.171979546546936, 0.17777307331562042, -0.21668371558189392, 0.10275987535715103, -0.4832519292831421, 0.6291807889938354, -0.6844310760498047, 0.6991351842880249, 0.24006806313991547, 0.13242898881435394, -0.0031081174965947866, -1.00545072555542, -0.09137408435344696, -0.11758927255868912, 0.04823150113224983, -0.08187535405158997, -0.631775975227356, 0.7984898686408997, -0.38842061161994934, -0.25339752435684204, 0.2154279500246048, 0.5203079581260681, 0.5900325775146484, 0.606264054775238, 0.7089123129844666, 0.29804328083992004, 0.42860984802246094, 0.26413586735725403, 1.249755859375, 0.02991972491145134, 0.11454951018095016, 1.2867748737335205, -0.4101543128490448, 0.9718771576881409, 0.46985292434692383, -0.13528689742088318, 0.544868528842926, 0.37900787591934204, 0.23119504749774933, 0.5888899564743042, 0.19333243370056152, -0.2143709808588028, -0.16959688067436218, -0.3416522145271301, -0.08523334562778473, 0.3816336393356323, 0.3792072832584381, -0.4127518832683563, -0.3951575458049774, 0.33217018842697144, -0.29288917779922485, 0.21375957131385803, -0.16924184560775757, 1.0322400331497192, 0.10232742875814438, -0.6111160516738892, 0.6372280716896057, -0.16425484418869019, 1.0320849418640137, -0.5591053366661072, -0.22061944007873535, -0.45242932438850403, 0.018858332186937332, -0.07072848826646805, -0.5071874856948853, 0.12811113893985748, -0.19267326593399048, -0.39975717663764954, -0.5031799077987671, 0.8375692963600159, -0.38469940423965454, -0.33722999691963196, 0.3738315999507904, 0.4275226593017578, 0.28996166586875916, 0.38603484630584717, -0.5092236995697021, -0.42061737179756165, -0.2112550139427185, -0.08376075327396393, 0.7755346894264221, 0.25743234157562256, -0.1621522307395935, 0.8965898156166077, 0.5081232190132141, 0.011240467429161072, -0.20080675184726715, 0.020080745220184326, 0.8044455647468567, -0.31603968143463135, -0.36601850390434265, -0.7387635707855225, 0.3235587477684021, -0.06286407262086868, -0.3846101760864258, 0.9189010262489319, 0.6909938454627991, 1.0805737972259521, -0.1829880177974701, 0.7015907764434814, 0.006161611992865801, 0.8220633268356323, -0.36436259746551514, 0.7101888060569763, -0.7301477789878845, 0.49632275104522705, -0.35369187593460083, -0.7867413759231567, -0.06052052974700928, 0.172255277633667, 0.04720906540751457, 0.08572593331336975, 0.6281589865684509, 0.6272541284561157, -0.3768805265426636, -0.18990911543369293, 0.750137209892273, 0.14463455975055695, 0.138881653547287, 0.1808096468448639, 0.8779433369636536, -0.39982736110687256, 0.5083461999893188, -0.39249861240386963, -0.3956218361854553, -0.22713030874729156, -0.9097830057144165, -0.8596877455711365, -0.808195173740387, -0.08582556992769241, -0.43033987283706665, 0.040993742644786835, 1.3019529581069946, 0.8030298948287964, -0.8109452128410339, -0.6873697638511658, 0.496965616941452, 0.2980193495750427, -0.37362903356552124, -0.23024573922157288, 0.2576110064983368, -0.6638579964637756, -0.6861269474029541, 0.8509388566017151, 0.24363628029823303, -0.12132839113473892, -0.30198904871940613, -0.17837682366371155, -0.05646270141005516, -0.1506279557943344, 0.863053023815155, 0.12482093274593353, -0.7747986316680908, -0.0002302894281456247, -0.11493894457817078, 0.03412128984928131, -0.2673353850841522, 1.1028798818588257, -1.2375361919403076, 0.27627190947532654, 0.3800431787967682, 0.5737646818161011, 0.5916622877120972, -0.31757673621177673, 0.42924565076828003, -0.7091057896614075, 0.09654133021831512, 0.37895792722702026, 0.4383290410041809, 0.20519326627254486, -0.3576734662055969, 0.1759258359670639, 0.09588079899549484, -0.6149232983589172, -0.8030028939247131, 0.3508666157722473, -0.5150663256645203, -0.2548423111438751, 1.1173620223999023, -0.15847896039485931, 0.17014534771442413, -0.3208686113357544, -0.2507551610469818, -0.10897040367126465, -0.4501208961009979, 0.9217192530632019, 0.37120598554611206, 0.08200721442699432, -0.0028874727431684732, -0.4099288582801819, 0.675674557685852, 0.4177747964859009, -0.48108813166618347, -0.14329801499843597, 0.1316574364900589, 0.39054644107818604, -0.008680256083607674, 0.5152722001075745, 0.1947994977235794, 0.14962264895439148, -0.5630998611450195, -0.20572131872177124, 0.19127753376960754, -0.44703251123428345, -0.3825525939464569, 0.33860093355178833, 0.36055076122283936, 0.19222413003444672 ]
http://arxiv.org/abs/2405.17430v1
http://arxiv.org/pdf/2405.17430v1
Matryoshka Multimodal Models
2024-05-27T17:59:56
2024-05-27T17:59:56
Mu Cai, Jianwei Yang, Jianfeng Gao, Yong Jae Lee
cs.CV
cs.CV, cs.AI, cs.CL, cs.LG
Large Multimodal Models (LMMs) such as LLaVA have shown strong performance in visual-linguistic reasoning. These models first embed images into a fixed large number of visual tokens and then feed them into a Large Language Model (LLM). However, this design causes an excessive number of tokens for dense visual scenarios such as high-resolution images and videos, leading to great inefficiency. While token pruning/merging methods do exist, they produce a single length output for each image and do not afford flexibility in trading off information density v.s. efficiency. Inspired by the concept of Matryoshka Dolls, we propose M3: Matryoshka Multimodal Models, which learns to represent visual content as nested sets of visual tokens that capture information across multiple coarse-to-fine granularities. Our approach offers several unique benefits for LMMs: (1) One can explicitly control the visual granularity per test instance during inference, e.g. , adjusting the number of tokens used to represent an image based on the anticipated complexity or simplicity of the content; (2) M3 provides a framework for analyzing the granularity needed for existing datasets, where we find that COCO-style benchmarks only need around ~9 visual tokens to obtain accuracy similar to that of using all 576 tokens; (3) Our approach provides a foundation to explore the best trade-off between performance and visual token length at sample level, where our investigation reveals that a large gap exists between the oracle upper bound and current fixed-scale representations.
[ -0.5388887524604797, -0.7016683220863342, 0.4718712270259857, 0.16995328664779663, -0.4371190369129181, -0.16372889280319214, -0.27026280760765076, -0.42428791522979736, 0.13715092837810516, 0.5259022116661072, -0.5275455713272095, -0.4168711006641388, -0.5704113841056824, -0.14584973454475403, -0.20310503244400024, 0.575528085231781, 0.02359277755022049, -0.013915522955358028, -0.4925321042537689, -0.23253177106380463, -0.44794967770576477, -0.2321159541606903, -0.3442516326904297, -0.13918259739875793, 0.815707802772522, 0.49954095482826233, 0.8027054071426392, 0.5652989745140076, 0.6400938034057617, 0.30334019660949707, 0.031062044203281403, 0.6468701958656311, -0.31516164541244507, 0.03678025305271149, 0.04832344129681587, -0.45836251974105835, -0.3164052665233612, -0.06777326762676239, 0.5818392634391785, 0.6505687832832336, -0.18923354148864746, 0.4196711778640747, -0.2891005277633667, 0.5979118943214417, -0.7032912373542786, 0.5846927165985107, -0.5943866968154907, 0.20850177109241486, -0.10304857790470123, 0.049326397478580475, -0.5536699891090393, 0.27412447333335876, -0.2503824234008789, -0.6722928285598755, -0.21492797136306763, 0.14786314964294434, 0.8386939764022827, 0.1960223764181137, -0.5876189470291138, -0.03975070267915726, -0.5234777331352234, 0.9269266724586487, -0.6419126391410828, 0.23874464631080627, 0.42058220505714417, 0.4465044140815735, -0.06452036648988724, -0.678260326385498, -0.5999388694763184, -0.3124407231807709, -0.1615232527256012, 0.07217239588499069, -0.1127232164144516, 0.09157446026802063, 0.27194511890411377, 0.27249714732170105, -0.4057178795337677, 0.08028128743171692, -0.5486869812011719, -0.27800020575523376, 0.6558032035827637, 0.3617984652519226, 0.4043349027633667, -0.31928980350494385, -0.40253356099128723, -0.18761169910430908, -0.5116796493530273, 0.10528106987476349, 0.1461774855852127, 0.2337944358587265, 0.1730211228132248, 0.9536353945732117, -0.24311864376068115, 0.8727566599845886, -0.14830605685710907, -0.7279211282730103, 0.25191730260849, -0.36752447485923767, -0.29010137915611267, -0.13502782583236694, 0.8007359504699707, 0.49578386545181274, 0.2644466459751129, 0.07442700862884521, -0.2974404990673065, 0.3062100410461426, 0.21755017340183258, -0.9227903485298157, -0.03516276180744171, 0.08059343695640564, -0.6490644812583923, -0.458449125289917, -0.05996605008840561, -0.7249508500099182, -0.2312714159488678, -0.527861475944519, 0.7977308630943298, -0.496521532535553, -0.3352730870246887, 0.18100713193416595, -0.13291560113430023, 0.0785832479596138, 0.4638543426990509, -1.0321941375732422, 0.21051949262619019, 0.5512902140617371, 0.8628543019294739, -0.1297464817762375, -0.32622453570365906, -0.4425986409187317, 0.3031409978866577, -0.6931495070457458, 0.53607577085495, -0.7186395525932312, -0.29121240973472595, -0.0629223883152008, 0.02128615230321884, -0.014219456352293491, -0.5131040811538696, 0.17465442419052124, -0.30306464433670044, 0.010289330966770649, -0.11624756455421448, -0.30945318937301636, -0.24956297874450684, 0.34057411551475525, -0.7277541160583496, 1.068557620048523, -0.026274632662534714, -0.734951376914978, 0.5846697092056274, -0.4929477274417877, -0.36297208070755005, -0.2309899777173996, -0.43232202529907227, -0.34878215193748474, 0.3500145375728607, 0.5162861943244934, 0.6368520855903625, -0.09062813222408295, 0.37846529483795166, -0.43507543206214905, -0.4836183488368988, 0.23945993185043335, -0.4601019322872162, 0.45557597279548645, 0.291745662689209, -0.02961687371134758, 0.3523346781730652, -0.9469345211982727, -0.1412050873041153, 0.17967037856578827, -0.45913276076316833, -0.22538810968399048, -0.13551056385040283, 0.03253011777997017, 0.3462289869785309, -0.01155485026538372, -0.4114047586917877, 0.18941348791122437, 0.1655682474374771, 0.5362958908081055, 0.9183394908905029, -0.34928709268569946, 0.4856286644935608, -0.42434394359588623, 0.3280019462108612, 0.376234233379364, 0.3082311749458313, -0.6502518653869629, -0.6221439242362976, -0.8960908055305481, -0.8397922515869141, 0.33247795701026917, 0.2794658839702606, -0.8225201964378357, -0.010599985718727112, -0.33229050040245056, -0.2712913453578949, -0.4777776896953583, 0.19587664306163788, 0.11242871731519699, 0.2281828075647354, 0.14183297753334045, -0.5106992721557617, -0.41402798891067505, -1.0779285430908203, 0.34098899364471436, -0.14958427846431732, -0.012331120669841766, 0.44089755415916443, 0.6268714666366577, -0.16553613543510437, 0.8989188075065613, -0.3518294095993042, -0.24583320319652557, -0.18903376162052155, 0.11340709775686264, 0.19251756370067596, 0.4984332025051117, 0.3885914981365204, -0.8487112522125244, -0.14751404523849487, 0.06742721050977707, -0.7863150238990784, 0.21004442870616913, -0.10624684393405914, -0.14472883939743042, -0.02606530301272869, 0.4890469014644623, -1.0700105428695679, 0.4203915596008301, 0.5874970555305481, -0.12045906484127045, 0.6498083472251892, -0.11630339920520782, 0.15619565546512604, -0.9827868938446045, -0.07272759824991226, -0.17215296626091003, -0.33369913697242737, -0.4177500605583191, 0.1830468773841858, 0.07112718373537064, -0.36213332414627075, -0.5512939095497131, 0.6763724088668823, -0.44022855162620544, -0.25140783190727234, 0.03719682618975639, 0.11233191937208176, 0.2122478038072586, 0.6744363307952881, -0.042135726660490036, 0.8084290027618408, 0.4792763888835907, -0.467536598443985, 0.47807130217552185, 0.13122086226940155, -0.7082298994064331, 0.6025144457817078, -0.4128088653087616, -0.21380671858787537, -0.35943904519081116, 0.3085308074951172, -1.1068143844604492, -0.5129662156105042, 0.12743571400642395, -0.30003243684768677, 0.3846440613269806, -0.1450764238834381, -0.709191083908081, -0.24842315912246704, -0.2875581681728363, 0.48052266240119934, 0.585051953792572, -0.6197333335876465, 0.9509767293930054, 0.31771138310432434, 0.041877225041389465, -0.8165569305419922, -0.8567691445350647, 0.24462272226810455, -0.3252829909324646, -0.9725908041000366, 0.3301636874675751, -0.02336331084370613, -0.18514622747898102, 0.08319585770368576, -0.04372021183371544, 0.06466136872768402, -0.31526365876197815, 0.44135114550590515, 0.30060261487960815, -0.46368345618247986, 0.44656962156295776, -0.23649615049362183, -0.11081469058990479, -0.2880309224128723, -0.18564750254154205, 0.46539369225502014, -0.26092609763145447, -0.4888331890106201, -0.451003760099411, 0.3013448417186737, 0.9027010798454285, -0.4077414572238922, 0.7301911115646362, 1.0245075225830078, -0.29068470001220703, 0.03257252275943756, -0.6729719638824463, 0.03860871121287346, -0.4401712417602539, 0.3712802231311798, -0.7308712005615234, -0.8159760236740112, 0.4298064410686493, -0.13464662432670593, -0.08706264942884445, 0.22233179211616516, 0.546204149723053, -0.06630069017410278, 1.3095569610595703, 0.5540909767150879, 0.20773202180862427, 0.5561118721961975, -0.33059123158454895, 0.16596484184265137, -0.8720840811729431, -0.4006986916065216, 0.063057541847229, -0.2761411666870117, -0.35384872555732727, -0.8960232734680176, 0.18361784517765045, 0.05807339400053024, -0.23222415149211884, -0.0019064713269472122, -0.11375138908624649, 0.5705137848854065, 0.5741521716117859, 0.2648061513900757, 0.30068719387054443, 0.20480364561080933, -0.44714605808258057, 0.0338464118540287, -0.790382981300354, -0.41651037335395813, 0.9000867009162903, 0.3909614682197571, 0.8787776827812195, 0.23881369829177856, 0.33680739998817444, -0.024297621101140976, 0.07177336513996124, -0.8928576111793518, 0.7989540100097656, -0.2441992163658142, -0.6040891408920288, -0.21348576247692108, -0.4889139235019684, -0.784317672252655, 0.7168231010437012, -0.36443066596984863, -0.7199521660804749, 0.07399166375398636, 0.043869659304618835, -0.165390744805336, 0.44269612431526184, -0.6279147863388062, 0.9447935819625854, -0.08296575397253036, -0.47354361414909363, -0.358822762966156, -0.5927150249481201, 0.7767356634140015, 0.10783938318490982, 0.4143134355545044, -0.39711397886276245, -0.17941763997077942, 0.5214584469795227, -0.2726328670978546, 1.0195698738098145, 0.09846702963113785, 0.1139078140258789, 0.3783164620399475, 0.2254878133535385, 0.3098370432853699, 0.07478058338165283, 0.23078840970993042, 0.01750432327389717, 0.05166221410036087, -0.6188946962356567, -0.6112877130508423, 0.5449318289756775, -0.5930161476135254, -0.5550869107246399, -0.22094853222370148, -0.7259936928749084, -0.10496063530445099, 0.19447675347328186, -0.19314855337142944, 0.7740462422370911, 0.016537947580218315, 0.37426328659057617, 0.5652100443840027, -0.22674888372421265, 0.4275839030742645, 0.09562799334526062, -0.7728824019432068, -0.4542143642902374, 0.9289995431900024, 0.023271804675459862, 0.4440535306930542, 0.4103274345397949, 0.20746934413909912, -0.023397179320454597, -0.48441606760025024, -0.7128464579582214, 0.17545603215694427, -1.0351771116256714, -0.11085668951272964, -0.5352455973625183, -0.0847477912902832, -0.00038845391827635467, 0.035257332026958466, -0.41604241728782654, -0.6488639116287231, -0.12862615287303925, -0.10537468641996384, 0.1697678416967392, 0.6570765972137451, -0.275909960269928, 0.30537351965904236, -0.661201536655426, 0.2928343713283539, 0.6827681660652161, 0.2731512486934662, 0.0990501195192337, -0.2830476760864258, -0.08923128247261047, -0.18679644167423248, -0.030149944126605988, -0.40297022461891174, 0.19770199060440063, 0.06567242741584778, 0.5043261647224426, 0.5981497764587402, -0.4573497772216797, 1.0603289604187012, -0.5563834309577942, 0.871329128742218, 0.553572416305542, -0.7096153497695923, 0.35860902070999146, -0.34557780623435974, 0.35093218088150024, 0.31611329317092896, 0.18060903251171112, -0.5559819340705872, -0.027270546182990074, -0.4896452724933624, -0.7269171476364136, 0.4687773883342743, 0.21447907388210297, 0.3182417154312134, -0.0945972204208374, 0.037199992686510086, 0.09195894747972488, 0.3102261424064636, -0.6300531625747681, 0.173069030046463, -0.19648919999599457, -0.3920413851737976, -0.10718704760074615, -0.31537163257598877, -0.2438243180513382, -0.31605973839759827, 0.44176748394966125, -0.2973209619522095, 0.1612708419561386, -0.055176034569740295, -0.30780091881752014, 0.1411522477865219, -0.06702315807342529, 0.7124840021133423, 0.8936799168586731, -0.2185429036617279, 0.5874520540237427, 0.15945973992347717, -0.2851077914237976, 0.06689316034317017, -0.4337185025215149, 0.06814710050821304, 0.05994550138711929, 0.601107120513916, 0.9762927293777466, 0.34724313020706177, -1.0749486684799194, 0.6559402942657471, -0.12499433755874634, -0.1274469792842865, -0.12711553275585175, -0.009815158322453499, 0.15766531229019165, 0.23862534761428833, 0.013546145521104336, 0.24763014912605286, -0.22366367280483246, -0.8364264965057373, 0.3667343556880951, 0.49057266116142273, -0.3795802593231201, -0.1594424545764923, 0.34623321890830994, 0.03885209560394287, -0.003533637849614024, 0.7033886313438416, -0.09157535433769226, -0.1943293958902359, 0.6806666254997253, 0.46794024109840393, 0.13747155666351318, -0.009255584329366684, 0.43152719736099243, 0.455702006816864, 0.2871542274951935, -0.2670070230960846, -0.07588808238506317, -0.17253051698207855, -0.740748941898346, -0.551529049873352, -0.7008177042007446, -0.09647572040557861, 0.008844136260449886, -0.3633573353290558, 0.31811732053756714, -0.4089965224266052, -0.20477919280529022, 0.045832451432943344, -0.34621283411979675, -0.6332342028617859, 0.19544020295143127, 0.41347944736480713, 0.8310028910636902, -0.7851989269256592, 0.6555591225624084, 0.2781848907470703, -0.6859616041183472, -0.5393806099891663, -0.46120166778564453, 0.0011036331998184323, -1.1843467950820923, 0.758152425289154, 0.561470627784729, 0.053908124566078186, -0.42506828904151917, -0.5112274885177612, -1.0064481496810913, 1.3362504243850708, 0.24110062420368195, -0.474513441324234, 0.007209688890725374, 0.14432217180728912, 0.16317185759544373, -0.7995083928108215, 0.18056219816207886, 0.3604830205440521, 0.39520445466041565, 0.5684866309165955, -0.8311547636985779, -0.10071109980344772, -0.24501454830169678, 0.2881107032299042, 0.20133009552955627, -0.7235592603683472, 0.9268860220909119, -0.4176633954048157, -0.09813693910837173, 0.15430298447608948, 0.46641087532043457, 0.2692456543445587, 0.2268032282590866, 0.5616766810417175, 0.8377214670181274, 0.6734532117843628, 0.010377067141234875, 1.042746901512146, 0.0782868042588234, 0.23674659430980682, 0.9343924522399902, 0.03487171605229378, 0.9265016913414001, 0.6909487843513489, -0.16259706020355225, 0.45653125643730164, 0.7889030575752258, -0.02685900591313839, 0.5944926738739014, 0.24139522016048431, -0.18581607937812805, -0.6559520959854126, -0.3512338101863861, -0.06260799616575241, 0.5600271224975586, 0.43038976192474365, -0.3136458694934845, -0.016433503478765488, 0.11112609505653381, 0.04309627041220665, -0.24430428445339203, -0.37313225865364075, 0.6092026233673096, 0.1538892537355423, -0.508053719997406, 0.3466072678565979, -0.0785372257232666, 0.5084385275840759, -0.5402019023895264, -0.04224369302392006, -0.14730927348136902, 0.17147308588027954, -0.11602244526147842, -0.6345915794372559, 0.08726657181978226, -0.39068910479545593, 0.04564825817942619, -0.03458708897233009, 0.7292323708534241, -0.46640753746032715, -0.8935246467590332, 0.08033782988786697, 0.3497118055820465, 0.0759374350309372, 0.12982060015201569, -0.6196826696395874, 0.2547954022884369, -0.24650788307189941, -0.21665175259113312, 0.4596746861934662, 0.47134119272232056, -0.10698738694190979, 0.7261744737625122, 0.8065033555030823, -0.11653845757246017, 0.22538048028945923, 0.24604856967926025, 0.8072203397750854, -0.524179995059967, -0.21161691844463348, -0.858052670955658, 0.6907914876937866, -0.18725551664829254, -0.13839690387248993, 0.39711886644363403, 0.40869253873825073, 0.7280963063240051, -0.10691402107477188, 0.49829450249671936, 0.13356749713420868, -0.19260050356388092, -0.8558417558670044, 0.16049690544605255, -0.8857221603393555, 0.01990262232720852, -0.1336757242679596, -0.7915509343147278, -0.5649777054786682, 0.7088097929954529, -0.05765244737267494, -0.0566677451133728, 0.647026777267456, 0.9307332634925842, -0.3785284161567688, -0.238601952791214, 0.6840493679046631, 0.03624097257852554, 0.3117973208427429, 0.5260613560676575, 1.1947801113128662, -0.21619196236133575, 0.6117910742759705, -0.2970065176486969, -0.16559050977230072, -0.25573572516441345, -0.8489548563957214, -1.1079866886138916, -0.5380528569221497, -0.13371747732162476, -0.06304707378149033, -0.10581281036138535, 0.7557323575019836, 1.0360841751098633, -0.35071516036987305, -0.14601607620716095, 0.20673838257789612, 0.02436649240553379, -0.187903493642807, -0.16229099035263062, 0.2934468984603882, -0.3631490468978882, -0.4499715566635132, 0.16769306361675262, 0.6023832559585571, 0.0890384167432785, -0.4327179193496704, -0.07783111184835434, -0.13129040598869324, 0.4221459925174713, 0.978909969329834, -0.24718151986598969, -1.0363428592681885, -0.31468868255615234, -0.13422733545303345, -0.016890771687030792, 0.281157523393631, 0.8267176747322083, -0.570527195930481, 0.6301788091659546, 0.4232107102870941, 0.5187435746192932, 0.9452858567237854, -0.1581282913684845, 0.2910540997982025, -0.7302242517471313, 0.5060523748397827, -0.05004424229264259, 0.6308667063713074, 0.45464083552360535, 0.08392214775085449, 0.5124393701553345, 0.1062355488538742, -0.21239624917507172, -0.8291999101638794, 0.41109132766723633, -1.132940649986267, -0.5292392373085022, 1.1207176446914673, -0.07866921275854111, -0.48311296105384827, 0.37687110900878906, -0.4121699035167694, -0.11932896822690964, -0.2162965089082718, 0.6296172738075256, 0.921004593372345, -0.013309829868376255, -0.5087178945541382, -0.7354170083999634, 0.18542493879795074, 0.283823162317276, -0.6209542751312256, -0.12373556941747665, 0.39831089973449707, 0.183305561542511, 0.35216224193573, 0.6150624752044678, -0.2547721862792969, 0.1907770186662674, 0.3518811762332916, -0.20849351584911346, -0.31634587049484253, -0.6135267615318298, -0.008872798644006252, 0.3155069947242737, 0.06436986476182938, -0.2483927607536316 ]
http://arxiv.org/abs/2405.17428v1
http://arxiv.org/pdf/2405.17428v1
NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Models
2024-05-27T17:59:45
2024-05-27T17:59:45
Chankyu Lee, Rajarshi Roy, Mengyao Xu, Jonathan Raiman, Mohammad Shoeybi, Bryan Catanzaro, Wei Ping
cs.CL
cs.CL, cs.AI, cs.IR, cs.LG
Decoder-only large language model (LLM)-based embedding models are beginning to outperform BERT or T5-based embedding models in general-purpose text embedding tasks, including dense vector-based retrieval. In this work, we introduce the NV-Embed model with a variety of architectural designs and training procedures to significantly enhance the performance of LLM as a versatile embedding model, while maintaining its simplicity and reproducibility. For model architecture, we propose a latent attention layer to obtain pooled embeddings, which consistently improves retrieval and downstream task accuracy compared to mean pooling or using the last <EOS> token embedding from LLMs. To enhance representation learning, we remove the causal attention mask of LLMs during contrastive training. For model training, we introduce a two-stage contrastive instruction-tuning method. It first applies contrastive training with instructions on retrieval datasets, utilizing in-batch negatives and curated hard negative examples. At stage-2, it blends various non-retrieval datasets into instruction tuning, which not only enhances non-retrieval task accuracy but also improves retrieval performance. Combining these techniques, our NV-Embed model, using only publicly available data, has achieved a record-high score of 69.32, ranking No. 1 on the Massive Text Embedding Benchmark (MTEB) (as of May 24, 2024), with 56 tasks, encompassing retrieval, reranking, classification, clustering, and semantic textual similarity tasks. Notably, our model also attains the highest score of 59.36 on 15 retrieval tasks in the MTEB benchmark (also known as BEIR). We will open-source the model at: https://huggingface.co/nvidia/NV-Embed-v1.
[ -0.1344565600156784, -0.710022509098053, 0.46066954731941223, 0.10494998842477798, -0.5078032612800598, -0.008653556928038597, -0.0940643697977066, -0.09521736949682236, 0.29846158623695374, 0.6096048355102539, -0.17990736663341522, -0.7088329792022705, -0.6338707208633423, -0.09937457740306854, -0.49201080203056335, 0.5259037613868713, -0.006115759257227182, 0.2709684669971466, -0.5265944600105286, -0.12117856740951538, -0.4199039340019226, -0.4251798987388611, -0.33364734053611755, -0.17094090580940247, 0.331063449382782, 0.26410552859306335, 0.26274073123931885, 0.85576331615448, 0.4166438579559326, 0.17955194413661957, -0.17768341302871704, 0.21504206955432892, -0.6907568573951721, 0.15778881311416626, -0.092705138027668, -0.4535239040851593, -0.30143535137176514, -0.10842281579971313, 0.783707857131958, 0.34345462918281555, -0.2698924243450165, -0.11325542628765106, 0.20871491730213165, 0.32487908005714417, -0.7234218716621399, 0.07977328449487686, -0.575957715511322, -0.010980214923620224, 0.07363378256559372, -0.2289767563343048, -0.7190514206886292, -0.3934967517852783, 0.17869287729263306, -0.5116936564445496, 0.09624484181404114, 0.14137929677963257, 0.6325938701629639, 0.4197894036769867, -0.47055143117904663, -0.07151129841804504, -0.3280428349971771, 1.1380432844161987, -0.6655370593070984, 0.6546844840049744, 0.43940481543540955, 0.0804283395409584, 0.0692111998796463, -0.48758599162101746, -0.13876357674598694, -0.44894617795944214, 0.27123814821243286, 0.12268270552158356, -0.09959850460290909, 0.031229939311742783, -0.009601891972124577, 0.3857156038284302, -0.43775349855422974, 0.29576337337493896, 0.04819268360733986, 0.016416432335972786, 0.32594531774520874, 0.25570088624954224, 0.08384925872087479, -0.17289191484451294, -0.48038026690483093, -0.030872298404574394, -0.8138802647590637, -0.3201691806316376, 0.22968843579292297, 0.24681125581264496, -0.24391862750053406, 0.5462203025817871, -0.12188246101140976, 0.5997025966644287, -0.07781536132097244, 0.1268184930086136, 0.3008359372615814, -0.3139840364456177, -0.28297919034957886, -0.3211855888366699, 0.4879045784473419, 0.33114075660705566, -0.05180114507675171, -0.3621652126312256, -0.35745155811309814, 0.034988898783922195, 0.37962257862091064, -0.9547970294952393, -0.06457684934139252, -0.06431782245635986, -0.442754864692688, -0.4741958677768707, -0.058091018348932266, -0.5080361366271973, -0.38979294896125793, -0.3565160036087036, 0.48161619901657104, -0.4603654444217682, -0.08650131523609161, 0.1329358071088791, -0.08320774883031845, 0.7333278059959412, 0.488741010427475, -0.800696849822998, 0.4751388728618622, 0.605076014995575, 0.9378656148910522, -0.1946997493505478, 0.20641107857227325, -0.743121862411499, 0.17811249196529388, -0.22640396654605865, 0.7127404808998108, -0.9218913316726685, -0.22190150618553162, 0.33915793895721436, -0.15505041182041168, 0.18584229052066803, -0.5842530727386475, 0.41327884793281555, -0.6969574689865112, 0.1986187994480133, -0.26497682929039, -0.9112014770507812, -0.18795117735862732, 0.4539105296134949, -0.7329987287521362, 1.0782390832901, -0.12404914945363998, -0.7530242204666138, -0.08054757863283157, -0.3438463807106018, -0.10894320905208588, -0.08300529420375824, -0.19337333738803864, -0.40140005946159363, 0.3191787004470825, 0.3922058939933777, 0.7675262093544006, -0.4235725402832031, -0.003246218664571643, -0.27913960814476013, -0.7432807683944702, -0.1428656280040741, -0.3212150037288666, 0.3708803653717041, -0.19859418272972107, -0.07148052006959915, -0.12393173575401306, -0.5258150100708008, -0.19908025860786438, 0.23903270065784454, -0.4915454089641571, -0.4337969124317169, -0.02304183878004551, 0.1864108294248581, -0.025583626702427864, 0.38159140944480896, -0.6354926824569702, 0.40297117829322815, -0.562853217124939, 0.49133509397506714, 0.6224424242973328, 0.07047144323587418, 0.5045621395111084, -0.2195415496826172, 0.4326350688934326, -0.020705003291368484, -0.01970546878874302, -0.18124769628047943, -0.38486966490745544, -0.7078814506530762, -0.16461151838302612, 0.520228922367096, 0.6100220084190369, -0.9658203125, 0.25197115540504456, -0.34786075353622437, -0.33233681321144104, -0.6637417674064636, 0.2727397382259369, 0.5918244123458862, 0.24887573719024658, 0.4765952229499817, -0.37421801686286926, -0.3820100724697113, -0.8115439414978027, -0.1459568589925766, 0.2927645444869995, 0.04033992439508438, 0.46587488055229187, 0.537551760673523, -0.3505639135837555, 0.5205656886100769, -0.45038852095603943, -0.23977351188659668, -0.2744985520839691, -0.025372855365276337, 0.1594327986240387, 0.22312302887439728, 0.2161460816860199, -0.5915754437446594, -0.458595871925354, -0.06265215575695038, -0.6814596652984619, 0.08563543856143951, 0.3008274435997009, 0.14725691080093384, 0.2257591336965561, 0.8169596195220947, -0.06250300258398056, 0.177091583609581, 0.561034083366394, -0.062345802783966064, 0.1676408052444458, -0.3928311765193939, -0.12751010060310364, -1.1826308965682983, -0.0930645763874054, 0.13555596768856049, -0.38849249482154846, -0.5411226749420166, 0.07150024175643921, 0.37831398844718933, 0.1438237428665161, -0.6863071322441101, 0.5170040726661682, -0.5514270067214966, 0.013056090101599693, -0.41314226388931274, 0.48608526587486267, 0.029484225437045097, 0.41895174980163574, -0.1180216446518898, 0.6316193342208862, 0.430073082447052, -0.6158655285835266, 0.2449105829000473, 0.27673524618148804, -0.44455456733703613, 0.30502262711524963, -0.8398578763008118, 0.39270874857902527, -0.3968135714530945, 0.00334008876234293, -0.9566470980644226, 0.06520002335309982, 0.0962582677602768, -0.27233627438545227, 0.5918952822685242, -0.32212671637535095, -0.5648679733276367, 0.20171046257019043, -0.5489786267280579, 0.3092403709888458, 0.4882042109966278, -0.5925758481025696, 0.5859807729721069, 0.30672165751457214, -0.02273636683821678, -0.7718358039855957, -0.8427390456199646, 0.011985428631305695, 0.027261393144726753, -0.4441305100917816, 0.8184191584587097, 0.045718107372522354, 0.10228275507688522, 0.15611928701400757, -0.02245407924056053, -0.1163896918296814, 0.11587785929441452, 0.02838212437927723, 0.29046040773391724, -0.14760243892669678, 0.38659870624542236, 0.0886743888258934, -0.17074555158615112, -0.19518069922924042, -0.22983604669570923, 0.4838244915008545, 0.05929601937532425, -0.38371866941452026, -0.39917877316474915, 0.34067198634147644, 0.24535618722438812, -0.40576305985450745, 0.9016391634941101, 0.525861918926239, -0.436204195022583, -0.21753662824630737, -0.6970152258872986, -0.23875415325164795, -0.4033699035644531, 0.5899827480316162, -0.03652144968509674, -1.2343075275421143, 0.19333422183990479, -0.11043522506952286, 0.179691880941391, 0.11854158341884613, 0.5304928421974182, -0.0565604642033577, 0.8239796757698059, 0.7848777174949646, -0.2078128457069397, 0.9422182440757751, -0.4318591058254242, -0.0767681896686554, -1.1314862966537476, -0.38383492827415466, -0.301329106092453, -0.16940629482269287, -0.6131759881973267, -0.8838868737220764, -0.036696989089250565, -0.019149774685502052, -0.28296202421188354, 0.1408551037311554, -0.44994837045669556, 0.559848964214325, 0.33919718861579895, 0.221664160490036, 0.1132173165678978, 0.14231126010417938, -0.18970812857151031, -0.22141581773757935, -0.5159536004066467, -0.5421389937400818, 1.4242278337478638, 0.41181907057762146, 0.8859657049179077, 0.18499977886676788, 0.9934049248695374, 0.3066512942314148, 0.24282784759998322, -0.7239015102386475, 0.34657931327819824, -0.4537788927555084, -0.14928987622261047, -0.0004175315552856773, -0.30476829409599304, -0.7806674242019653, 0.5009239315986633, -0.2648707628250122, -0.42685961723327637, 0.0982573851943016, -0.03758613020181656, -0.23447059094905853, 0.1562693864107132, -0.6207171678543091, 0.6926423907279968, -0.04490092396736145, -0.6446608901023865, -0.2938641607761383, -0.27442172169685364, 0.16740283370018005, 0.17329558730125427, -0.04129035770893097, 0.08846765756607056, -0.5372871160507202, 0.67691969871521, 0.20811843872070312, 0.9096234440803528, -0.2872035503387451, 0.11180621385574341, 0.06959711015224457, -0.14899197220802307, 0.8442940711975098, -0.016559654846787453, -0.17956256866455078, -0.05854827165603638, -0.4522062838077545, -0.49073582887649536, -0.6398465037345886, 0.8609123826026917, -0.9787415266036987, -0.5968877673149109, -0.20109155774116516, -0.16127876937389374, 0.001832256093621254, 0.01866602897644043, -0.03568960726261139, 0.5048361420631409, -0.4450804889202118, 0.741328239440918, 1.3180208206176758, -0.34406501054763794, 0.22031930088996887, 0.3901846408843994, -0.15170633792877197, -0.5316423773765564, 0.9940622448921204, -0.021373027935624123, 0.19333606958389282, 0.986253023147583, -0.011680918745696545, -0.4116515815258026, -0.7180361151695251, 0.07726079970598221, 0.3302946388721466, -0.8169751763343811, -0.21913006901741028, -0.8168699741363525, -0.11205024272203445, -0.36592304706573486, 0.024298176169395447, -0.4821428060531616, -0.08481751382350922, -0.6803444027900696, -0.11112749576568604, 0.183717280626297, 0.9744184613227844, 0.35502201318740845, 0.20604802668094635, -0.4769305884838104, 0.26508629322052, 0.21368707716464996, 0.4310060143470764, 0.0094083147123456, -0.8482860326766968, -0.45818695425987244, -0.19183951616287231, -0.4063168466091156, -0.7989533543586731, 0.5210670828819275, 0.10401605814695358, 0.741278350353241, 0.17960746586322784, -0.25708115100860596, 0.2839972972869873, -0.482047438621521, 0.6623559594154358, -0.12490323185920715, -0.8773677945137024, 0.5244253277778625, -0.19492855668067932, 0.10294162482023239, 0.37688589096069336, 0.3044221103191376, -0.26549553871154785, -0.025952830910682678, -0.25119081139564514, -0.8522512316703796, 0.5263822078704834, 0.12273457646369934, 0.3393482267856598, -0.06212664768099785, 0.5326523780822754, -0.09655393660068512, 0.2461339682340622, -0.7554203271865845, -0.2815161347389221, -0.31524407863616943, -0.20512360334396362, -0.07631827145814896, -0.5124720931053162, 0.32959213852882385, -0.17595970630645752, 0.63474041223526, -0.13028208911418915, 0.5659446120262146, 0.14075788855552673, -0.35520049929618835, 0.3376704454421997, 0.2790513038635254, 0.4836541712284088, 0.17426255345344543, -0.34263893961906433, -0.007999107241630554, 0.2863166630268097, -0.3282267153263092, 0.10617545247077942, -0.022781195119023323, 0.02048582397401333, -0.020106427371501923, 0.22903859615325928, 0.7009955644607544, 0.6996557712554932, -0.4054761826992035, 0.7530612349510193, -0.270088255405426, -0.2630496025085449, -0.19121387600898743, 0.02224964275956154, 0.4252493679523468, 0.34901925921440125, 0.04669274389743805, -0.4335642158985138, 0.1075475886464119, -0.2568622827529907, 0.0650118887424469, 0.513731837272644, -0.36962592601776123, -0.045648884028196335, 0.5925513505935669, 0.2132149189710617, -0.20439667999744415, 0.7751617431640625, -0.17905430495738983, -0.19688774645328522, 0.3570963144302368, 0.5996553897857666, 0.9137647747993469, -0.2604838013648987, 0.14371182024478912, 0.2845570743083954, 0.4385203421115875, -0.19923755526542664, 0.4790865480899811, 0.07057499140501022, -0.5648914575576782, -0.5771551132202148, -0.5457929968833923, -0.6222524642944336, 0.022520439699292183, -0.6883749961853027, 0.33775198459625244, -0.4903079867362976, 0.0842389464378357, -0.3647351861000061, 0.22780604660511017, -0.9622410535812378, -0.03576214239001274, 0.09358905255794525, 0.9269546270370483, -0.7343785166740417, 1.029430627822876, 0.7378811836242676, -0.46500465273857117, -0.3074140250682831, -0.02330736070871353, -0.38477373123168945, -0.8646489381790161, 0.45055651664733887, 0.3572391867637634, 0.04108670726418495, 0.12321372330188751, -0.6943691968917847, -1.1241308450698853, 1.4154175519943237, 0.6692213416099548, -0.8172650337219238, -0.05018702521920204, -0.26205286383628845, 0.4489660859107971, -0.49540358781814575, 0.3858488202095032, 0.1559576541185379, 0.12256201356649399, 0.013377409428358078, -0.3098885416984558, 0.10513504594564438, -0.1716044545173645, 0.35741356015205383, 0.025505242869257927, -0.6236760020256042, 0.8120530247688293, -0.005872389767318964, -0.10869379341602325, -0.005397669039666653, 0.6904531121253967, 0.17906825244426727, -0.11480864137411118, 0.07066859304904938, 0.7444930076599121, 0.791348934173584, 0.07844951748847961, 1.3994051218032837, -0.23524600267410278, 0.25124591588974, 1.0588383674621582, -0.07751864939928055, 1.2470190525054932, 0.4680832624435425, 0.23087778687477112, 0.688769519329071, 0.29431354999542236, -0.20494797825813293, 0.9262804388999939, 0.23248909413814545, -0.1242946907877922, -0.4552233815193176, -0.2905087471008301, -0.33486729860305786, 0.3177460730075836, 0.42593836784362793, -0.6227253675460815, -0.12959958612918854, -0.03834094852209091, -0.29502058029174805, 0.06455332785844803, -0.17203176021575928, 0.7763841152191162, 0.3203590512275696, -0.16715402901172638, 0.4946523904800415, 0.3025051951408386, 0.9205756783485413, -0.37985289096832275, -0.2250642627477646, -0.23290874063968658, 0.20548364520072937, 0.013185454532504082, -0.4843088388442993, -0.013429127633571625, -0.06142333149909973, -0.2637132704257965, -0.22640854120254517, 0.6930676698684692, -0.4279822111129761, -0.2408868819475174, 0.5180236101150513, 0.512651801109314, 0.06672003120183945, -0.1787668913602829, -0.5812792778015137, 0.24935407936573029, -0.022763419896364212, -0.2840650677680969, 0.48237138986587524, 0.1906009018421173, 0.19826318323612213, 0.705915629863739, 0.46116331219673157, -0.19285067915916443, 0.049526672810316086, 0.2629528045654297, 0.9259614944458008, -0.9485790133476257, -0.361522376537323, -0.8928243517875671, 0.3567868769168854, 0.050217024981975555, -0.0099753113463521, 0.6188216805458069, 0.3919938802719116, 0.7569270133972168, 0.09660976380109787, 0.7173972129821777, 0.538186252117157, 0.27125731110572815, -0.5409860610961914, 0.3542110323905945, -0.7265111207962036, 0.22166286408901215, -0.06386902928352356, -1.0281989574432373, -0.3025188744068146, 0.5708805322647095, -0.3691774904727936, 0.15249377489089966, 0.47018253803253174, 0.7891894578933716, -0.07824131846427917, -0.11996368318796158, 0.5415861010551453, 0.2120242714881897, 0.3856908679008484, 0.7705923318862915, 0.7417678236961365, -0.6349393129348755, 0.5113769769668579, 0.07248230278491974, -0.1099572479724884, -0.5413318872451782, -0.9094236493110657, -1.0943464040756226, -0.20952370762825012, -0.3281981945037842, 0.037330396473407745, 0.190472811460495, 0.8012608289718628, 0.34993863105773926, -0.576614499092102, 0.027411848306655884, -0.07453139126300812, 0.14557993412017822, 0.13276775181293488, -0.14563973248004913, 0.35301265120506287, -0.3207152187824249, -0.6904417276382446, 0.6069656014442444, 0.435119092464447, 0.023476483300328255, -0.48000603914260864, -0.12763774394989014, -0.37512144446372986, 0.06977221369743347, 0.642367959022522, -0.17899298667907715, -0.7800607085227966, -0.16625183820724487, 0.19679173827171326, -0.35426464676856995, 0.1565721482038498, 0.3461950421333313, -0.7962169051170349, 0.4777545630931854, 0.5251975655555725, 1.0681705474853516, 0.6323396563529968, -0.2368798851966858, 0.4110882580280304, -0.9030349850654602, -0.10844729840755463, 0.34876319766044617, 0.4735998213291168, 0.5787015557289124, -0.1148081049323082, 0.166417196393013, 0.07794570177793503, -0.5123027563095093, -0.7738347053527832, -0.0028874827548861504, -0.737882137298584, -0.06501578539609909, 1.0827875137329102, -0.197367325425148, -0.28253182768821716, -0.1871347874403, 0.025375621393322945, 0.28687936067581177, -0.5728493928909302, 0.5245358943939209, 0.5833508968353271, 0.26162540912628174, -0.39295563101768494, -0.7356761693954468, 0.06331700086593628, 0.4983430802822113, -0.49865108728408813, -0.12032447010278702, 0.1258479803800583, 0.43540069460868835, -0.08068932592868805, 0.3511693477630615, -0.20207060873508453, 0.09312975406646729, -0.05548892170190811, 0.08960428088903427, -0.32691091299057007, -0.19136790931224823, -0.6000205278396606, 0.21573157608509064, 0.061036109924316406, -0.35525408387184143 ]
http://arxiv.org/abs/2405.17423v1
http://arxiv.org/pdf/2405.17423v1
Privacy-Aware Visual Language Models
2024-05-27T17:59:25
2024-05-27T17:59:25
Laurens Samson, Nimrod Barazani, Sennay Ghebreab, Yuki M. Asano
cs.CV
cs.CV, cs.CL
This paper aims to advance our understanding of how Visual Language Models (VLMs) handle privacy-sensitive information, a crucial concern as these technologies become integral to everyday life. To this end, we introduce a new benchmark PrivBench, which contains images from 8 sensitive categories such as passports, or fingerprints. We evaluate 10 state-of-the-art VLMs on this benchmark and observe a generally limited understanding of privacy, highlighting a significant area for model improvement. Based on this we introduce PrivTune, a new instruction-tuning dataset aimed at equipping VLMs with knowledge about visual privacy. By tuning two pretrained VLMs, TinyLLaVa and MiniGPT-v2, on this small dataset, we achieve strong gains in their ability to recognize sensitive content, outperforming even GPT4-V. At the same time, we show that privacy-tuning only minimally affects the VLMs performance on standard benchmarks such as VQA. Overall, this paper lays out a crucial challenge for making VLMs effective in handling real-world data safely and provides a simple recipe that takes the first step towards building privacy-aware VLMs.
[ -0.26193147897720337, -0.5497862100601196, 0.3316933214664459, -0.011150159873068333, -0.2936066687107086, -0.2269783616065979, -0.15410129725933075, -0.5299803018569946, -0.5734363198280334, 0.6731129288673401, -0.577890157699585, -0.775153636932373, -0.3978824019432068, -0.2782365381717682, -0.2966478765010834, 0.702871561050415, 0.300636351108551, -0.014706233516335487, -0.025986697524785995, -0.22192321717739105, -0.35173335671424866, -0.5287272930145264, -0.05550815165042877, 0.48795396089553833, 0.5109463334083557, 0.5387904047966003, 0.7094686031341553, 1.1782666444778442, 0.6324021816253662, 0.29864269495010376, -0.09531313925981522, 0.034716807305812836, -0.6446107625961304, 0.07441940158605576, -0.2528309226036072, -0.3117753267288208, -0.3314019739627838, -0.1647578775882721, 0.6061877012252808, 0.30623069405555725, 0.04724486544728279, 0.5920432806015015, -0.025248205289244652, 0.7175514698028564, -1.0600436925888062, 0.24711336195468903, -0.4318407475948334, 0.11710820347070694, -0.4636765420436859, 0.11488325893878937, -0.5349716544151306, -0.4166003167629242, 0.1827913075685501, -0.5581588745117188, 0.4060322642326355, 0.47027990221977234, 1.0345407724380493, 0.3696308732032776, -0.21748469769954681, 0.4123523235321045, -0.5287826657295227, 0.6500275135040283, -0.3677234351634979, 0.8825993537902832, 0.49804994463920593, 0.3851746618747711, 0.20823198556900024, -1.021375060081482, -0.34780651330947876, -0.10365504026412964, 0.009591125883162022, -0.14198513329029083, -0.2328111082315445, 0.07879480719566345, 0.6095114946365356, 0.3039723038673401, -0.8864049315452576, 0.08613225817680359, -0.3652738034725189, -0.37926533818244934, 0.47076594829559326, 0.3607597053050995, 0.02081761509180069, -0.02508259005844593, -0.27303430438041687, -0.24980027973651886, -0.6758330464363098, 0.209008127450943, 0.373166561126709, 0.05253993347287178, -0.33031243085861206, 0.5194331407546997, -0.4315176010131836, 1.106880784034729, -0.14659066498279572, -0.011651518754661083, 0.21485167741775513, -0.5293381214141846, -0.47760018706321716, -0.20191346108913422, 0.6199380159378052, 0.4980566203594208, 0.6066181659698486, 0.16418294608592987, 0.20582441985607147, -0.18973851203918457, 0.27803972363471985, -0.9511587619781494, -0.6787024140357971, -0.13030606508255005, -0.5548039078712463, -0.33969753980636597, 0.17019999027252197, -0.7294095754623413, -0.7238574028015137, -0.4994780719280243, 0.26825183629989624, -0.24338635802268982, -0.11368829011917114, 0.03338732570409775, 0.05950155109167099, 0.5038482546806335, 0.3864707946777344, -0.9046277403831482, 0.419086754322052, 0.7808533906936646, 0.5376570820808411, -0.1156010851264, -0.1869954615831375, -0.6888696551322937, 0.18423348665237427, -0.24139650166034698, 0.3644430637359619, -0.6169372200965881, -0.3737506568431854, -0.05258956924080849, 0.2564763128757477, 0.13078761100769043, -0.5681819915771484, 0.29117268323898315, -0.3575800955295563, -0.03524317592382431, -0.5322051048278809, -0.31259605288505554, -0.06185968965291977, 0.07459316402673721, -0.6946495175361633, 0.5850672125816345, 0.05261897295713425, -0.819932758808136, 0.5011447072029114, -0.36307772994041443, -0.1835222989320755, 0.28579577803611755, -0.2613934278488159, -0.7918528318405151, 0.29440873861312866, 0.15096063911914825, 0.4726637899875641, 0.10798274725675583, -0.18284806609153748, -0.323750376701355, -0.4718060791492462, 0.2289246767759323, -0.39382386207580566, 0.8588894009590149, 0.2192089557647705, -0.295938104391098, 0.3624081015586853, -0.848182737827301, 0.3770022988319397, 0.026222892105579376, -0.1253219097852707, -0.38015517592430115, -0.3632514774799347, 0.09158658981323242, -0.038420163094997406, 0.4691167175769806, -0.4272148013114929, -0.04741259291768074, -0.21179655194282532, 0.2801704406738281, 1.0437344312667847, -0.10985783487558365, 0.45643332600593567, 0.25048545002937317, 0.4226909577846527, -0.001597501919604838, 0.9971132278442383, -0.0162966288626194, -0.6556138396263123, -0.7809817790985107, -0.269879549741745, 0.492533415555954, 0.5434925556182861, -0.4560410976409912, 0.12930965423583984, -0.3592333495616913, -0.2595718801021576, -0.6369193196296692, 0.3018541634082794, 0.7395972609519958, 0.5702436566352844, -0.0053437757305800915, -0.4767417311668396, -0.4430032968521118, -1.099578619003296, -0.5824922323226929, 0.006349111907184124, 0.27618861198425293, 0.6642799377441406, 0.2980616092681885, 0.18741972744464874, 0.7374892234802246, -0.4002085328102112, -0.2506338953971863, 0.16794081032276154, -0.21212586760520935, -0.3081234395503998, 0.5535951852798462, 0.3801337778568268, -1.2378559112548828, -0.7640256881713867, -0.030603371560573578, -0.709878146648407, 0.15249550342559814, 0.564209520816803, -0.11680108308792114, -0.017887532711029053, 0.5206302404403687, -0.04280471056699753, 0.7337179183959961, 0.4634993076324463, -0.48463913798332214, 0.13810855150222778, -0.2719070315361023, -0.17528380453586578, -0.41536471247673035, -0.20145589113235474, -0.07268542051315308, -0.7040439248085022, -0.49663016200065613, 0.3295457363128662, 0.5354703664779663, -0.38918569684028625, -0.9822123646736145, 0.4845666289329529, -0.7037699222564697, -0.1693224459886551, -0.039532121270895004, -0.28968241810798645, -0.1101672351360321, 0.4987117052078247, 0.12790042161941528, 0.8131536245346069, 0.9398604035377502, -0.3854401707649231, 0.28523367643356323, 0.18089702725410461, -0.39621514081954956, 0.420597642660141, -0.39669522643089294, 0.20936116576194763, -0.29819557070732117, -0.4474022686481476, -0.5508126616477966, -0.34233883023262024, 0.4497567117214203, -0.24024376273155212, 0.5279659628868103, -0.3529888391494751, -0.5658650994300842, -0.24902541935443878, -0.3579239845275879, 0.23734581470489502, 0.7902500033378601, -0.4611404240131378, 0.5562366247177124, 0.4391863942146301, -0.04045369476079941, -0.6110302209854126, -0.574885904788971, 0.047103166580200195, -0.13800963759422302, -0.554766833782196, -0.0410710871219635, -0.04205101728439331, -0.21041755378246307, 0.17352838814258575, -0.14790059626102448, -0.32192254066467285, 0.236410453915596, 0.6042247414588928, 0.11117106676101685, -0.21828873455524445, -0.15056610107421875, -0.34132900834083557, -0.39209309220314026, -0.1880238950252533, -0.3312986493110657, 0.1711595207452774, -0.8171757459640503, -0.3437492251396179, -0.47373929619789124, 0.2767062187194824, 0.1360984742641449, -0.6782472133636475, 0.8400564193725586, 0.6890657544136047, -0.20428749918937683, -0.12986654043197632, -0.51558917760849, -0.04835930094122887, -0.5610431432723999, 0.11890487372875214, -0.4134519100189209, -1.1326987743377686, 0.21807192265987396, 0.032700683921575546, -0.11243194341659546, -0.12796133756637573, 0.6073315739631653, -0.08047173917293549, 0.8793373107910156, 1.2186206579208374, 0.18798567354679108, 0.8192657828330994, -0.12262740731239319, 0.27288153767585754, -0.6346316933631897, -0.18999731540679932, -0.3050850033760071, -0.0581863671541214, -0.9615543484687805, -0.35014158487319946, 0.3826845586299896, -0.17144900560379028, -0.33069178462028503, 0.36703360080718994, -0.7839521169662476, 0.9329948425292969, 0.7966741323471069, 0.24951685965061188, 0.24921225011348724, -0.05291826277971268, 0.32731059193611145, -0.3259599208831787, -0.5610454082489014, -0.44192683696746826, 1.2035784721374512, 0.12072554230690002, 0.9881985783576965, 0.1450510025024414, 0.5947120785713196, 0.04228809475898743, 0.2529352009296417, -0.25557559728622437, 0.7114723920822144, -0.4213096797466278, -0.669384241104126, -0.3619571030139923, -0.26903706789016724, -0.6797927021980286, 0.3270479142665863, 0.15871769189834595, -1.0690010786056519, 0.5247101783752441, 0.39689645171165466, -0.44398340582847595, -0.08569692820310593, -0.9471553564071655, 1.3289411067962646, -0.3201259970664978, -1.1244817972183228, 0.2459905594587326, -1.0236579179763794, 0.5872378945350647, 0.14220356941223145, 0.1287875473499298, -0.20493465662002563, -0.21004550158977509, 0.3626721203327179, -0.4071032702922821, 0.9057106971740723, -0.3596053421497345, 0.13087376952171326, 0.09462273865938187, 0.019426969811320305, 0.3754187226295471, 0.09073542803525925, 0.24351218342781067, 0.2671647071838379, -0.10293939709663391, -0.29588478803634644, -0.28788578510284424, 0.8664601445198059, -0.4091799259185791, -0.6501801013946533, -0.3581080734729767, -0.22920505702495575, -0.22282008826732635, 0.3558219373226166, 0.42498859763145447, 0.17543162405490875, -0.026951085776090622, 0.5409963130950928, 1.2643216848373413, -0.3013491928577423, 0.2963249981403351, 0.9143112897872925, -0.08944697678089142, 0.019237378612160683, 1.1079795360565186, 0.19015875458717346, 0.030409758910536766, 0.355899840593338, 0.199971541762352, -0.35705673694610596, -0.49480149149894714, -0.4993588924407959, 0.005543980281800032, -0.8214544057846069, 0.049548644572496414, -0.5882211923599243, -0.24233177304267883, -0.46076175570487976, 0.20513249933719635, -0.4712110459804535, -0.14410360157489777, -0.15089891850948334, -0.13314135372638702, 0.475251168012619, 0.303827702999115, -0.3050945997238159, 0.17712369561195374, -0.5987802147865295, 0.626506507396698, 0.6311032176017761, 0.7428376078605652, -0.45917919278144836, -0.32842153310775757, -0.23828093707561493, -0.2746668756008148, -0.02654186263680458, -0.587838888168335, 0.07544136047363281, 0.10301544517278671, 0.4935991168022156, 0.21007727086544037, -0.04126136377453804, 0.6306495666503906, -0.620739221572876, 0.7593456506729126, -0.2012384533882141, -0.8821678161621094, 0.5812985301017761, -0.2855229079723358, 0.0044319769367575645, 0.705998420715332, -0.07601019740104675, 0.023194748908281326, -0.14952784776687622, -0.679673433303833, -0.6806878447532654, 0.5243251323699951, 0.3253583312034607, 0.22283044457435608, 0.48822012543678284, 0.00014689634554088116, 0.04933254420757294, 0.5475411415100098, -0.7821826338768005, -0.2012401819229126, -0.3693608045578003, -0.1892397701740265, 0.16231174767017365, -0.39698219299316406, -0.0986243262887001, -0.516064465045929, 0.3217164874076843, 0.051649369299411774, -0.02005796507000923, -0.1490105390548706, -0.09552707523107529, 0.10748222470283508, 0.15724505484104156, 0.608864963054657, 0.628532350063324, -0.18835464119911194, 0.10598523914813995, -0.12641771137714386, -0.6705725193023682, 0.007973764091730118, 0.10456394404172897, -0.3787340819835663, -0.09949792176485062, 0.07609111815690994, 0.9995917081832886, 0.10158610343933105, -0.6675419211387634, 1.0468015670776367, -0.5064374804496765, 0.04074165225028992, -0.34074288606643677, 0.458810031414032, -0.05766545608639717, -0.004475526046007872, -0.36196741461753845, 0.04888993501663208, 0.29048269987106323, -0.26178306341171265, 0.24175480008125305, 0.28933820128440857, -0.420010507106781, -0.0426187664270401, 1.0836788415908813, 0.07693853974342346, -0.43273448944091797, 0.4276370406150818, -0.07094351947307587, -0.11001303046941757, 0.4239371716976166, 0.019044989719986916, 0.9833164811134338, -0.3258998990058899, 0.06281687319278717, -0.007363287266343832, 0.6780570149421692, 0.04120645672082901, 0.6981079578399658, -0.4951949119567871, -0.4004385769367218, -0.08388936519622803, -0.5415052771568298, -0.37826746702194214, 0.20582427084445953, -0.8778975009918213, 0.02694176696240902, -0.7985622882843018, -0.05421319231390953, -0.11793316155672073, -0.33748024702072144, -1.1787495613098145, 0.20252956449985504, 0.28975850343704224, 0.7080408334732056, -0.6939781904220581, 0.8951563239097595, 0.4733525514602661, -0.2548556625843048, -0.7002928256988525, -0.13346315920352936, 0.18021118640899658, -0.8135173916816711, 0.5812748670578003, 0.15992340445518494, -0.0628383532166481, 0.10869710147380829, -0.7653427720069885, -0.8059832453727722, 0.6181883811950684, 0.4923732876777649, -1.0651893615722656, 0.16516077518463135, 0.12831807136535645, 0.5544509291648865, 0.12535540759563446, -0.5412569046020508, 0.5703574419021606, 0.6550156474113464, -0.44230881333351135, -0.8443076014518738, -0.09042491763830185, -0.29676443338394165, 0.28918036818504333, -0.010969859547913074, -0.8370212316513062, 0.9526036977767944, -0.14168024063110352, -0.24644184112548828, 0.1083226278424263, 0.564639687538147, 0.08240421861410141, 0.2716199457645416, 0.20637424290180206, 0.5068425536155701, 0.7037183046340942, -0.18606364727020264, 1.2824420928955078, -0.3341849148273468, 0.009705403819680214, 1.3434754610061646, -0.32601305842399597, 0.5741990208625793, 0.346135675907135, 0.09964678436517715, 0.12605126202106476, 0.3283514380455017, -0.22368422150611877, 0.7676575183868408, 0.26679179072380066, -0.17886707186698914, -0.48655200004577637, -0.1493474394083023, -0.44138461351394653, 0.44788703322410583, 0.19562917947769165, -0.5967698693275452, -0.0823802649974823, 0.4079769253730774, -0.28029853105545044, 0.1645210236310959, -0.3312463164329529, 1.0458309650421143, 0.06688155978918076, -0.09949168562889099, 0.46906647086143494, 0.03541634604334831, 0.1528995931148529, -0.5015653967857361, 0.04943854734301567, 0.0004721685836557299, 0.3139752745628357, -0.10094313323497772, -0.812705934047699, -0.0674901157617569, 0.3935610353946686, -0.1316719949245453, -0.4504483938217163, 0.9355574250221252, -0.17111775279045105, -0.5473251342773438, -0.07458604872226715, 0.4994876980781555, 0.16935880482196808, -0.12193984538316727, -0.6496092081069946, 0.4646846354007721, -0.005701215006411076, -0.4181954264640808, 0.40091297030448914, 0.46325284242630005, -0.24666985869407654, 0.5504707098007202, 0.531441867351532, -0.07795634865760803, 0.5492702722549438, 0.24308542907238007, 0.834825873374939, -0.6891516447067261, -0.7634565234184265, -0.8686227798461914, 0.6402837634086609, -0.3542364239692688, -0.32452601194381714, 1.0077215433120728, 0.7720966339111328, 1.0574220418930054, -0.2503674030303955, 0.913300096988678, 0.2668335735797882, 0.47280940413475037, -0.5747649669647217, 0.6987085938453674, -0.39439016580581665, 0.08782579004764557, -0.04025820270180702, -0.6927497386932373, -0.15703988075256348, 0.5953390598297119, -0.2913644313812256, -0.19275477528572083, 0.34673020243644714, 0.9904931783676147, -0.21698115766048431, 0.06419552117586136, 0.5243721604347229, 0.21262870728969574, 0.1508142054080963, 0.5148933529853821, 0.7041829824447632, -0.42209142446517944, 0.3956736624240875, -0.7435287237167358, -0.12213525921106339, -0.19244979321956635, -0.9710841774940491, -0.8814659118652344, -0.47951480746269226, -0.3478332459926605, 0.014377586543560028, 0.3842729926109314, 0.09719815850257874, 1.0178114175796509, -0.5948200225830078, 0.20505371689796448, -0.203101247549057, -0.01655963435769081, -0.23714017868041992, -0.15323565900325775, 0.34246039390563965, 0.30071860551834106, -0.594185471534729, 0.25225555896759033, 0.51981121301651, 0.3796829879283905, -0.2877724766731262, 0.11267206817865372, 0.5254672765731812, -0.13601446151733398, 0.37713930010795593, 0.4321293234825134, -0.661188542842865, -0.3227350413799286, -0.048719942569732666, -0.2337232083082199, 0.06310497969388962, 0.8398398756980896, -0.7433308959007263, 0.7323312759399414, 0.43606701493263245, 0.37330517172813416, 0.7294297218322754, 0.25493597984313965, 0.1515742391347885, -0.927195131778717, 0.5376012921333313, 0.19692037999629974, 0.26119163632392883, 0.5111129283905029, -0.43895846605300903, 0.4261460304260254, 0.08403053879737854, -0.2727590501308441, -1.0125797986984253, 0.3706815242767334, -0.9820986390113831, -0.13208194077014923, 0.8292256593704224, -0.15571272373199463, -0.7049446105957031, -0.1276080161333084, -0.24241913855075836, -0.04751390963792801, -0.19250601530075073, 0.4362372159957886, 0.37664276361465454, 0.10923737287521362, -0.6550226211547852, -0.6905192732810974, 0.7465795278549194, 0.12229170650243759, -0.6099728345870972, 0.547523558139801, 0.5256016254425049, 0.4697669446468353, -0.2827812433242798, 0.6853828430175781, -0.2923564314842224, 0.5039107203483582, 0.06624716520309448, -0.25630179047584534, -0.6648874282836914, -0.6518084406852722, -0.33951690793037415, 0.25742045044898987, -0.0703384280204773, -0.5331565737724304 ]
http://arxiv.org/abs/2405.17537v1
http://arxiv.org/pdf/2405.17537v1
BIOSCAN-CLIP: Bridging Vision and Genomics for Biodiversity Monitoring at Scale
2024-05-27T17:57:48
2024-05-27T17:57:48
ZeMing Gong, Austin T. Wang, Joakim Bruslund Haurum, Scott C. Lowe, Graham W. Taylor, Angel X. Chang
cs.AI
cs.AI, cs.CL, cs.CV
Measuring biodiversity is crucial for understanding ecosystem health. While prior works have developed machine learning models for the taxonomic classification of photographic images and DNA separately, in this work, we introduce a multimodal approach combining both, using CLIP-style contrastive learning to align images, DNA barcodes, and textual data in a unified embedding space. This allows for accurate classification of both known and unknown insect species without task-specific fine-tuning, leveraging contrastive learning for the first time to fuse DNA and image data. Our method surpasses previous single-modality approaches in accuracy by over 11% on zero-shot learning tasks, showcasing its effectiveness in biodiversity studies.
[ -0.6332492828369141, -0.3327181339263916, 0.16412822902202606, -0.15366360545158386, -0.6157698035240173, 0.481398344039917, 0.08145409822463989, -0.544696033000946, 0.7517359852790833, 0.20751269161701202, -0.5311809182167053, -0.52484530210495, -0.45678210258483887, 0.34848520159721375, -0.11016135662794113, 0.6541825532913208, 0.25100332498550415, 0.1854095607995987, -0.5421969890594482, -0.7108910083770752, -0.1480385810136795, -0.3570444583892822, -0.0768958181142807, 0.08805382996797562, 0.7283984422683716, 0.280935138463974, 0.6278789639472961, 0.7853871583938599, 0.7051733732223511, 0.3461594879627228, -0.2505214512348175, 0.6202768087387085, -0.0899873822927475, -0.05081573873758316, -0.4963303208351135, -0.31251707673072815, -0.06302458792924881, -0.06167599558830261, 0.27068331837654114, 0.8710910677909851, 0.25394317507743835, 0.3067907392978668, 0.19227875769138336, 0.28652048110961914, -0.6406974792480469, 0.08642957359552383, -0.35726916790008545, 0.3309709131717682, -0.23510392010211945, -0.6218752264976501, -0.07430855184793472, -0.2951391041278839, -0.1569214016199112, -0.5804656744003296, 0.19252313673496246, -0.1901751309633255, 0.8117544651031494, 0.5053974986076355, -0.8827821016311646, -0.07685402035713196, -0.3052905201911926, 0.691887378692627, -0.08377514779567719, 0.20686286687850952, 0.06129809841513634, 0.3191443383693695, 0.23601168394088745, -0.47929495573043823, -0.4170708954334259, 0.5327947735786438, 0.1766987442970276, 0.3747722804546356, -0.3525106608867645, -0.12188159674406052, -0.09263309091329575, 0.48201984167099, -0.36097535490989685, 0.010559123940765858, -0.6021941304206848, -0.38968560099601746, 0.2841327488422394, 0.10078725218772888, 0.2559710741043091, -0.3176034390926361, -0.41467028856277466, -0.4420367479324341, -0.22694192826747894, 0.22721153497695923, -0.03316217660903931, 0.16520941257476807, -0.05253973975777626, 0.5657637715339661, 0.21099619567394257, 0.4916320741176605, 0.11667987704277039, -0.20784366130828857, 0.2520827651023865, -0.807553231716156, -0.08575614541769028, -0.3181193172931671, 0.49889078736305237, 0.7501801252365112, -0.26349493861198425, 0.10829464346170425, 0.3571033775806427, 0.12826906144618988, 0.19091303646564484, -0.8740721940994263, -0.30048102140426636, 0.11789390444755554, -0.5147706866264343, -0.5596323609352112, 0.33948010206222534, -1.3387888669967651, -0.24546895921230316, -0.015612014569342136, 0.48423805832862854, -0.5011857748031616, 0.120905302464962, -0.029960254207253456, -0.31046566367149353, 0.16898296773433685, 0.3277241289615631, -0.5173528790473938, -0.26775452494621277, 0.394187331199646, 1.1361515522003174, 0.10943380743265152, -0.22083479166030884, -0.2924310863018036, 0.32294246554374695, -0.3155546188354492, 0.9581173062324524, -0.4489057958126068, -0.7192602157592773, -0.2787458002567291, 0.39572569727897644, 0.05355387553572655, -0.5489932894706726, 0.2835361659526825, -0.15753982961177826, -0.09174185991287231, -0.23908068239688873, -0.35167548060417175, -0.7001510858535767, 0.27481719851493835, -0.7684369683265686, 0.5018690824508667, 0.2802755832672119, -0.6617515087127686, 0.6809959411621094, -0.11522869020700455, -0.3098360598087311, 0.25316599011421204, -0.3276232182979584, -0.7658979296684265, -0.2307545393705368, 0.30248335003852844, 0.3213255703449249, 0.30253866314888, 0.022669343277812004, -0.8966410756111145, -0.05920221284031868, 0.17913594841957092, 0.09799487888813019, 0.9655764698982239, 0.11070557683706284, -0.02114780619740486, 0.12996642291545868, -0.6385391354560852, -0.09945712238550186, -0.12367093563079834, -0.3869759142398834, -0.26114097237586975, -0.06132366508245468, 0.039782535284757614, -0.00983436219394207, -0.021221790462732315, -0.7269129157066345, 0.43871375918388367, -0.1122560054063797, 0.5134285092353821, 0.5956697463989258, 0.12595266103744507, 0.21178866922855377, -0.4834420084953308, 0.31512415409088135, 0.0736682116985321, 0.24327117204666138, -0.6128289699554443, -0.48282843828201294, -0.21309828758239746, -0.9314742684364319, 0.5069788694381714, 0.6322154998779297, -0.6655280590057373, 0.8550195693969727, -0.38427624106407166, -0.6084129810333252, -0.24439628422260284, 0.20127153396606445, 0.12551726400852203, 0.37113696336746216, 0.520013153553009, -1.0672446489334106, -0.6516489386558533, -0.4829622209072113, 0.26310402154922485, 0.15797796845436096, -0.21132293343544006, 0.7602062225341797, 0.7369580864906311, -0.7729809880256653, 0.8746983408927917, -0.4824433922767639, -0.34518852829933167, 0.15187598764896393, 0.5117900967597961, 0.10852392762899399, 0.6828605532646179, 0.9204941391944885, -0.7865210771560669, -0.10756928473711014, 0.18430529534816742, -0.8352500796318054, 0.12395452708005905, 0.2891990542411804, 0.0453607439994812, -0.0708591565489769, 0.28421637415885925, -0.10964363813400269, 0.4834005534648895, 0.46740517020225525, -0.2517268657684326, -0.022036097943782806, -0.03730860352516174, 0.42264607548713684, -0.9624718427658081, 0.09267055243253708, -0.09546518325805664, -0.32262033224105835, -0.29182538390159607, 0.1754283756017685, 0.28514695167541504, -0.36251330375671387, -0.1906684786081314, 0.026729291304945946, -0.3070025146007538, -0.19121624529361725, -0.06379782408475876, -0.5444324612617493, 0.31909796595573425, 0.3176724910736084, -0.0143923070281744, 0.6250864267349243, 0.5317059755325317, -0.3409554660320282, 0.5372095108032227, 0.6832755208015442, -0.25248801708221436, 0.7608090043067932, -0.3016161322593689, -0.043177295476198196, -0.13441477715969086, 0.35731032490730286, -0.8143506646156311, -0.5120009779930115, -0.06989309936761856, -0.6316710710525513, 0.4080303907394409, -0.04879080876708031, -0.0747818872332573, -0.431998074054718, -0.9010812044143677, 0.674953281879425, 0.43270066380500793, -0.8292251229286194, 0.8633466958999634, 0.36637282371520996, -0.10154687613248825, -0.07015006989240646, -0.876480221748352, -0.08166511356830597, -0.22355501353740692, -0.4636670649051666, 0.2996940612792969, 0.23225028812885284, 0.03337053582072258, 0.062296416610479355, -0.33878615498542786, -0.2944796085357666, 0.11885110288858414, 0.4962612986564636, 0.3573552072048187, -0.12690234184265137, 0.15451785922050476, 0.04122047871351242, 0.330877423286438, -0.29104456305503845, -0.28483107686042786, 0.18827557563781738, 0.12422677129507065, -0.43577802181243896, -0.10091160982847214, 0.42187410593032837, 0.5703299045562744, -0.4318391978740692, 0.4216749966144562, 0.49592018127441406, -0.19840683043003082, 0.06134764850139618, -0.05173828452825546, -0.13643863797187805, -0.3840266466140747, 0.1298808455467224, 0.023039711639285088, -0.6969688534736633, 0.29966816306114197, -0.429821640253067, -0.2404542714357376, 0.22224536538124084, 0.1492633819580078, -0.6822535395622253, 0.5007204413414001, 0.9910020232200623, -0.0381157211959362, 0.42756223678588867, -0.38839927315711975, -0.001468970556743443, -0.7900238037109375, -0.657085657119751, -0.6642816066741943, -0.225788876414299, -0.3374960124492645, -0.9456040859222412, 0.7002595067024231, 0.3019692301750183, -0.2670823335647583, 0.20710213482379913, -0.5292904376983643, 0.4723875820636749, 0.5569127202033997, 0.8759341239929199, 0.026733960956335068, 0.06298111379146576, -0.29942095279693604, 0.15983815491199493, -0.5779988169670105, -0.19761095941066742, 1.2017369270324707, -0.06523017585277557, 0.7456058859825134, 0.24081598222255707, 0.7306616902351379, 0.23487982153892517, -0.04297610744833946, -0.7842716574668884, 0.12742456793785095, -0.4747682213783264, -0.4051191210746765, -0.12635500729084015, -0.2697334885597229, -1.0206568241119385, 0.16622985899448395, -0.43203219771385193, -0.38427191972732544, 1.0179319381713867, 0.27603834867477417, -0.6718432307243347, 0.47083622217178345, -0.38642749190330505, 0.7170261144638062, -0.44659674167633057, -0.43784424662590027, -0.13770374655723572, -0.8676345348358154, 0.3752381503582001, -0.23129990696907043, 0.4757559895515442, 0.03441572189331055, -0.3450891673564911, 0.5053813457489014, -0.3830154538154602, 1.0005004405975342, 0.26781976222991943, 0.4803730249404907, 0.07850724458694458, 0.2027960866689682, -0.14929881691932678, -0.24206149578094482, 0.36513692140579224, 0.331208735704422, 0.3310779333114624, -0.636079728603363, -0.13608700037002563, 0.15419641137123108, -0.44987940788269043, -0.10988596081733704, -0.5145812034606934, -0.3458787202835083, -0.1240120455622673, 0.08736591041088104, 0.11942559480667114, 0.5116000175476074, -0.08518655598163605, 0.7314869165420532, 0.8681014776229858, -0.4225951135158539, 0.39042267203330994, 0.2233988642692566, -0.23595428466796875, -0.8579916954040527, 1.0622888803482056, -0.07403133809566498, -0.024894889444112778, 0.5104790329933167, 0.20021586120128632, -0.06035632640123367, -0.09761201590299606, -0.22199271619319916, -0.11589931696653366, -0.7288325428962708, -0.6194600462913513, -0.5574020743370056, 0.1546904593706131, -0.5532620549201965, -0.44237563014030457, 0.09015101939439774, -0.056132588535547256, -0.4553254544734955, -0.14368543028831482, 0.4385066330432892, 0.4658643305301666, -0.5254834294319153, 0.028033610433340073, -0.9490295648574829, 0.4084106683731079, 0.7109048962593079, 0.04193458706140518, -0.5057882070541382, -0.10760597884654999, 0.030794955790042877, -0.1564880609512329, -0.5736678242683411, -1.2583413124084473, 0.44206365942955017, 0.7751200199127197, 0.44123023748397827, 0.726436197757721, -0.34432682394981384, 0.6800298094749451, -0.07308750599622726, 0.8878944516181946, 0.3679962456226349, -0.9976492524147034, 0.6422309279441833, -0.15936309099197388, 0.25314861536026, 0.6563088893890381, 0.6752181053161621, -0.2537379264831543, -0.005139670800417662, -0.28241756558418274, -0.7517054080963135, 0.14511144161224365, -0.3872031569480896, -0.2728361487388611, -0.010351549834012985, -0.13220296800136566, 0.26900556683540344, 0.22617803514003754, -0.4038059413433075, 0.030446218326687813, -0.6653097867965698, -0.35632041096687317, -0.21198870241641998, -0.08993291109800339, -0.29560747742652893, -0.8482942581176758, 0.1492210030555725, -0.6033482551574707, 0.1823962926864624, 0.38787004351615906, -0.21666646003723145, -0.16817958652973175, 0.009124002419412136, 0.40509119629859924, 0.5142208337783813, -0.3244830369949341, 0.47300446033477783, -0.034416601061820984, -0.4616403877735138, -0.09257040172815323, 0.027278946712613106, -0.1329791098833084, -0.05498939007520676, 0.7112894058227539, 0.34329789876937866, 0.5154613852500916, -0.6855281591415405, 0.6488015651702881, 0.5327672958374023, -0.5517085194587708, 0.36118677258491516, -0.24647431075572968, -0.07000179588794708, 0.34903526306152344, 0.26238706707954407, 0.4548996388912201, 0.33317601680755615, -0.8863945603370667, 0.5084493160247803, 0.6968280673027039, -0.23402975499629974, -0.24914883077144623, 0.6189183592796326, 0.44233280420303345, 0.30834081768989563, 0.3025357723236084, -0.04746408760547638, -0.9312102198600769, 1.012215495109558, 0.06634694337844849, 0.537136435508728, -0.4360216557979584, 0.2628796696662903, 0.610572874546051, 0.24287928640842438, 0.5487909317016602, 0.41742515563964844, -0.48868098855018616, -0.6105771660804749, -0.014326406642794609, -0.7450353503227234, -0.6618353128433228, -0.35522058606147766, -0.8826593160629272, 0.11502712965011597, -0.4884522557258606, 0.04188848286867142, 0.3871966600418091, -0.2341771274805069, -0.4234314560890198, 0.12019895762205124, 0.15978465974330902, 1.0282196998596191, -1.0962588787078857, 0.6728696227073669, 0.5436962246894836, -0.7332824468612671, -0.5097931623458862, -0.32751867175102234, 0.25619614124298096, -0.7793118357658386, 0.5156053304672241, 0.4238801598548889, -0.28894874453544617, -0.1757047325372696, -0.8903482556343079, -0.7374604940414429, 1.3063640594482422, -0.08645506948232651, -0.5767534971237183, 0.5808294415473938, -0.29783228039741516, 0.25647133588790894, -0.19174034893512726, -0.02981962449848652, 0.06137770414352417, 0.3948807418346405, 0.3846514821052551, -0.6052011251449585, -0.3791872560977936, -0.1735599786043167, -0.03674100339412689, 0.2628784775733948, -0.677973210811615, 0.9846594929695129, -0.10752172023057938, -0.5991461873054504, 0.011972090229392052, 0.4064929187297821, -0.22345499694347382, 0.3724314570426941, 0.42739883065223694, 0.7484949827194214, 0.8501695990562439, -0.23867246508598328, 0.5848141312599182, -0.3872929811477661, 0.5143157243728638, 0.7654665112495422, -0.2990542948246002, 0.6077045202255249, 0.6588330864906311, -0.40711233019828796, 0.5328887701034546, 0.9995593428611755, -0.8401710987091064, 0.6061975359916687, 0.04812650755047798, -0.3515351414680481, -0.3126826882362366, -0.20180366933345795, -0.44607269763946533, 0.43445563316345215, 0.310215026140213, -0.20188936591148376, -0.2998499572277069, 0.5499767661094666, -0.41681233048439026, 0.16970597207546234, -0.7489028573036194, 0.8242796659469604, -0.23954592645168304, -0.021900508552789688, 0.027257975190877914, -0.3027684688568115, 1.0917357206344604, -0.2765558958053589, -0.30852988362312317, -0.3299839198589325, 0.06577993929386139, -0.4489341080188751, -0.9434406161308289, 0.5104547142982483, -0.24831318855285645, -0.17016801238059998, 0.15344439446926117, 0.4131786823272705, -0.33132514357566833, -0.5005134344100952, 0.24473197758197784, 0.07358482480049133, 0.27439063787460327, 0.3937486708164215, -0.26203805208206177, -0.17059139907360077, -0.019321128726005554, 0.27796101570129395, -0.06941904127597809, 0.24971288442611694, 0.014556501992046833, 0.5227537751197815, 0.5287689566612244, -0.14133575558662415, 0.20376844704151154, -0.5159427523612976, 0.8448898792266846, -0.7370646595954895, -0.18096846342086792, -0.6704174876213074, 0.18681608140468597, -0.11681700497865677, -0.05209584906697273, 0.7728744149208069, 0.8808711171150208, 0.9082972407341003, -0.2172459065914154, 0.6005706787109375, -0.050842106342315674, 0.5882021188735962, -0.31058135628700256, 0.17281244695186615, -0.6841545701026917, -0.3585115671157837, 0.1644977629184723, -0.23200194537639618, -0.49509912729263306, 0.3537796139717102, 0.29490697383880615, -0.16906411945819855, 0.8830053806304932, 0.6712207794189453, -0.1084132045507431, -0.3068252205848694, 0.18896755576133728, -0.08359187096357346, -0.13743704557418823, 0.6652853488922119, 0.5077266693115234, 0.015621157363057137, 0.5788626074790955, -0.512580156326294, -0.606594979763031, -0.3124183416366577, -0.8677210807800293, -0.7695330381393433, -0.42143845558166504, -0.18242520093917847, -0.06110411509871483, -0.09295463562011719, 0.6541680693626404, 0.8892332911491394, -0.852064847946167, 0.13932693004608154, 0.1962933987379074, 0.07553941756486893, -0.3499317467212677, -0.060791995376348495, 0.3332311511039734, -0.0021172247361391783, -0.5556063055992126, 0.24222584068775177, 0.704458475112915, 0.29715830087661743, -0.09440905600786209, 0.2949422299861908, -0.2689504325389862, 0.08544130623340607, 0.3005122244358063, 0.7417541742324829, -0.6061794757843018, -0.12159170210361481, -0.16867993772029877, -0.11106808483600616, 0.36595359444618225, 0.7167583107948303, -0.6180489659309387, 0.7817429304122925, 0.3807999789714813, 0.8098942041397095, 0.4666000008583069, 0.16676616668701172, 0.08153076469898224, -0.5873312950134277, 0.16089558601379395, 0.17324210703372955, 0.47171035408973694, 0.31783998012542725, -0.42881789803504944, 0.5642146468162537, 0.6153736710548401, -0.3981550931930542, -0.6907527446746826, 0.32571375370025635, -1.5267536640167236, -0.5574517250061035, 0.4506472647190094, -0.2585991621017456, -0.6932873725891113, -0.011927616782486439, -0.18152670562267303, 0.09592127799987793, 0.1731855571269989, 0.510370671749115, 0.3258950710296631, 0.049801286309957504, -0.3504943549633026, 0.17707298696041107, 0.177552729845047, 0.05245848745107651, -1.0157713890075684, -0.742737889289856, 0.597122848033905, 0.3255498707294464, 0.5262415409088135, -0.07111379504203796, -0.15021991729736328, 0.5235022902488708, 0.1922486275434494, 0.38059914112091064, -0.22295893728733063, -0.377204954624176, -0.7548795342445374, 0.38945433497428894, -0.32043585181236267, -0.6022698283195496 ]
http://arxiv.org/abs/2406.00041v2
http://arxiv.org/pdf/2406.00041v2
QUB-Cirdan at "Discharge Me!": Zero shot discharge letter generation by open-source LLM
2024-05-27T17:55:36
2024-06-27T14:31:22
Rui Guo, Greg Farnan, Niall McLaughlin, Barry Devereux
cs.CL
cs.CL
The BioNLP ACL'24 Shared Task on Streamlining Discharge Documentation aims to reduce the administrative burden on clinicians by automating the creation of critical sections of patient discharge letters. This paper presents our approach using the Llama3 8B quantized model to generate the "Brief Hospital Course" and "Discharge Instructions" sections. We employ a zero-shot method combined with Retrieval-Augmented Generation (RAG) to produce concise, contextually accurate summaries. Our contributions include the development of a curated template-based approach to ensure reliability and consistency, as well as the integration of RAG for word count prediction. We also describe several unsuccessful experiments to provide insights into our pathway for the competition. Our results demonstrate the effectiveness and efficiency of our approach, achieving high scores across multiple evaluation metrics.
[ 0.0029751150868833065, -0.3593236207962036, 1.244138479232788, -0.014213102869689465, -0.3835521340370178, 0.266370564699173, 0.44473230838775635, -0.11069737374782562, 0.2804446518421173, 0.7532770037651062, -0.5190327167510986, -0.9944424629211426, -0.2701272666454315, -0.0011324933730065823, -0.6534011960029602, 1.0952218770980835, -0.1774916797876358, -0.15303969383239746, -0.17614798247814178, -0.23534013330936432, -0.32366907596588135, -0.3269946575164795, -0.3416679799556732, -0.5289439558982849, 0.8462740182876587, 0.57124924659729, 0.25286269187927246, 0.7037810683250427, 0.4737095236778259, 0.06429477781057358, -0.0426827147603035, -0.09781419485807419, -0.5412917733192444, 0.2762603759765625, 0.15486042201519012, -0.5378330945968628, -0.7364010810852051, -0.12349981814622879, 0.4771755337715149, 0.5494487285614014, -0.4456256330013275, 0.46459558606147766, -0.15846779942512512, 0.6960014700889587, -1.112017035484314, -0.308290958404541, -0.2788372039794922, 0.14270469546318054, -0.18525344133377075, -0.4370534420013428, -0.4732693135738373, -0.45148152112960815, -0.14785036444664001, -0.44161638617515564, 0.5739222764968872, -0.07640307396650314, 0.5829444527626038, -0.1916889101266861, -0.3628835082054138, -0.3894176185131073, -0.7751152515411377, 0.48670780658721924, -0.8044562935829163, -0.03901706263422966, 0.17417362332344055, 0.270690381526947, 0.1123594343662262, -0.8910824656486511, -0.10403145849704742, -0.062302786856889725, -0.10391420125961304, 0.547703742980957, -0.11222730576992035, 0.46345868706703186, 0.3135146200656891, 0.6742888689041138, -0.80886310338974, -0.055550467222929, -0.6602275967597961, 0.1252862960100174, 0.632851779460907, 0.6797890067100525, 0.11991406232118607, -0.24457089602947235, -0.24323321878910065, 0.23142218589782715, -0.8552964329719543, 0.010097550228238106, 0.057700954377651215, -0.2720851004123688, -0.5283784866333008, 0.7624061107635498, -0.5911384224891663, 0.25972065329551697, 0.15599492192268372, 0.023069163784384727, 0.08852645009756088, -0.08903168886899948, -0.3012842535972595, 0.3703840672969818, 1.0054394006729126, 0.3700006306171417, -0.3888654112815857, -0.21358923614025116, -0.21662257611751556, -0.1198752298951149, 0.4534468948841095, -0.9358239769935608, -0.33109891414642334, 0.7176650762557983, -0.4601203501224518, -0.5157864093780518, -0.2318899929523468, -0.4736761450767517, -0.2505253553390503, -0.20403766632080078, 0.2723759114742279, -0.7034125924110413, 0.2806313931941986, -0.11253003031015396, -0.03022262081503868, -0.02243092656135559, 0.34894314408302307, -0.5422507524490356, -0.0036321599036455154, 0.6323472857475281, 0.9159570336341858, -0.013777167536318302, 0.22503405809402466, -0.7361658215522766, 0.5141406059265137, -0.3401516377925873, 0.8695067763328552, 0.023823238909244537, -0.6269432902336121, 0.3193233013153076, -0.493038535118103, 0.42760545015335083, -0.37934011220932007, 0.5662343502044678, -0.13632647693157196, 0.18077996373176575, -0.021113339811563492, -0.5473425984382629, 0.08338278532028198, 0.08989328891038895, -0.43785008788108826, 0.5084178447723389, 0.6686086058616638, -0.6321729421615601, 0.14551787078380585, -0.614615261554718, -0.06747019290924072, 0.5807905197143555, -0.2897975444793701, -0.30990102887153625, 0.3979145288467407, -0.041394609957933426, 0.5480867624282837, -0.3630364239215851, 0.15960060060024261, -0.19086705148220062, -0.48152634501457214, -0.07120025157928467, 0.009962599724531174, 0.9269492030143738, 0.4122895300388336, 0.0558750182390213, 0.08307243883609772, -1.0374819040298462, 0.025304198265075684, -0.06531096249818802, -0.36995798349380493, -0.12662452459335327, -0.2103264182806015, -0.2908788323402405, 0.012958400882780552, 0.10465455800294876, -0.47202545404434204, 0.1873295158147812, -0.5235964059829712, -0.10283263027667999, 0.534027099609375, 0.5717009902000427, 0.732151985168457, -0.645980179309845, 1.0382885932922363, 0.1612907350063324, 0.39162376523017883, -0.6682096719741821, -0.2822651267051697, -0.6212804913520813, -0.42895612120628357, 0.10341402888298035, 0.4062992334365845, -0.8278655409812927, 0.16582024097442627, 0.026230189949274063, -0.6798995137214661, -0.5771054029464722, -0.11007003486156464, 0.7011218667030334, 0.781289279460907, 0.5053210854530334, -0.39085856080055237, -0.32186031341552734, -0.6033799052238464, 0.11415468156337738, -0.28324249386787415, -0.19620086252689362, -0.07086241990327835, 0.009288400411605835, -0.22489342093467712, 0.6980922818183899, -0.7447732090950012, -0.21049365401268005, -0.3498555123806, 0.7702176570892334, 0.3451031744480133, 0.1381615400314331, 0.3938572108745575, 0.03817606344819069, -0.34125033020973206, -0.26694828271865845, -0.9284242391586304, -0.5727712512016296, -0.225738063454628, -0.30213937163352966, -0.022238317877054214, 0.2578103244304657, -0.40870001912117004, 0.5933500528335571, 0.2626810371875763, -0.30428215861320496, 0.8356120586395264, -0.2698966860771179, 0.12195805460214615, -1.1251312494277954, 0.15963496267795563, -0.008241540752351284, -0.22146694362163544, -0.777150571346283, 0.31440219283103943, 0.2999702990055084, -0.17147400975227356, -0.6811684966087341, 0.5561056137084961, -0.5035407543182373, 0.2717708647251129, -0.15682244300842285, -0.10237834602594376, 0.27283817529678345, 0.23826643824577332, -0.4852915108203888, 0.4561270773410797, 0.14519864320755005, -0.6714601516723633, 0.18650901317596436, 0.3390602171421051, 0.004913015756756067, 0.7234299778938293, -0.5360792279243469, -0.19685988128185272, -0.344899445772171, 0.24969565868377686, -0.6162553429603577, -0.2546286880970001, 0.3274584412574768, -0.20657671988010406, 0.3204776644706726, 0.12652865052223206, -0.273527055978775, -0.3167310953140259, -0.6126121878623962, 0.36996394395828247, 0.745141863822937, 0.02761675976216793, 0.3310541808605194, -0.044823817908763885, -0.061353012919425964, -0.3078175187110901, -0.44163545966148376, 0.014353819191455841, 0.006387063767760992, -0.14676813781261444, 0.4545345604419708, -0.2060277760028839, -0.15762434899806976, -0.1560358703136444, -0.05796242877840996, -0.02233734540641308, 0.0025332968216389418, 0.4964369535446167, 0.22284963726997375, -0.3310556709766388, -0.23158787190914154, 0.33470970392227173, 0.11161228269338608, 0.20866850018501282, 0.062401097267866135, 0.5859203934669495, 0.3192005455493927, -0.48240506649017334, -0.48678645491600037, 0.6572744250297546, 0.28691479563713074, -0.03855646774172783, 0.4552449882030487, 0.5554195642471313, -0.08590863645076752, -0.1334972232580185, -0.4886167347431183, -0.05334972217679024, -0.42613962292671204, -0.27023845911026, -0.01499719824641943, -0.7499371767044067, 0.41323602199554443, -0.13021963834762573, 0.34482541680336, 0.30852487683296204, 0.5568927526473999, -0.5088961720466614, 0.5273925065994263, 0.6507670283317566, 0.4570575952529907, 0.25735998153686523, -0.5867847800254822, 0.23773138225078583, -1.0566933155059814, -0.2699836492538452, -0.3098883330821991, -0.17588366568088531, -0.34579700231552124, -0.4356237053871155, 0.7491855025291443, 0.41142338514328003, -0.15399165451526642, 0.27461957931518555, -0.5948516130447388, 0.06384981423616409, 0.5427943468093872, 0.15740680694580078, 0.2244030088186264, -0.08132879436016083, -0.32235151529312134, 0.21345286071300507, -0.6279609203338623, -0.4477865397930145, 1.0132086277008057, 0.1465430110692978, 0.5496599078178406, -0.037742730230093, 1.5757858753204346, 0.39612939953804016, 0.4634069502353668, -0.48892343044281006, 0.5420059561729431, -0.29287463426589966, -0.13120339810848236, 0.07565927505493164, -0.14955617487430573, -0.8462273478507996, -0.24807368218898773, -0.29606765508651733, -0.6766992807388306, 0.2196728140115738, 0.25242453813552856, -0.6673599481582642, -0.0737660825252533, -0.48327839374542236, 0.47517675161361694, -0.09038384258747101, -0.23549041152000427, 0.018980447202920914, -0.57915198802948, 0.9171083569526672, -0.22804202139377594, 0.13258089125156403, -0.28347131609916687, -0.056437909603118896, 0.3164270222187042, -0.6088018417358398, 0.3811532258987427, 0.18332278728485107, -0.13470715284347534, 0.5944839119911194, 0.28107717633247375, -0.048231519758701324, 0.07628298550844193, -0.009998724795877934, 0.26377663016319275, 0.11534510552883148, -0.2865886688232422, -0.29969480633735657, 0.4014839828014374, -0.4404199421405792, -0.32005980610847473, -0.3735421299934387, -0.4819808006286621, 0.09651526808738708, 0.1548081785440445, 0.5690497756004333, 0.7009316086769104, -0.20584946870803833, 0.04465644806623459, 0.5969890356063843, -0.6424960494041443, 0.5161035656929016, 0.7134326100349426, -0.3855828642845154, -0.5958765745162964, 0.7043304443359375, 0.2285643219947815, 0.22731640934944153, 0.6980940699577332, 0.12877248227596283, -0.22084982693195343, -0.4903210997581482, -0.48855262994766235, 0.38729536533355713, -0.6024748682975769, -0.6210271120071411, -0.7844817042350769, -0.5986125469207764, -0.5442965030670166, -0.5418248772621155, 0.14954537153244019, -0.46784308552742004, -0.68207848072052, -0.06036602705717087, 0.07463840395212173, 0.846616804599762, -0.08621065318584442, 0.8194169402122498, -1.0614765882492065, 0.7249866127967834, -0.16210001707077026, 0.17077907919883728, -0.13630327582359314, -0.434872567653656, -0.43816787004470825, -0.10396254062652588, -0.9447683691978455, -1.1681437492370605, 0.4889976382255554, -0.026409747079014778, 0.3134417235851288, 0.5702629685401917, 0.20169946551322937, 0.5950400829315186, -0.5951173901557922, 1.0020806789398193, 0.8172340989112854, -0.7870360612869263, 0.7590668797492981, -0.7478170394897461, 0.7423517107963562, 0.3728907108306885, 0.43370795249938965, -0.4036436975002289, -0.9359535574913025, -0.9560540318489075, -1.2359743118286133, 0.6681153774261475, 0.16461308300495148, -0.1237136572599411, -0.26653623580932617, 0.5152004957199097, -0.14897768199443817, 0.2307683229446411, -0.08393152803182602, -0.3497268855571747, 0.13578352332115173, -0.4769539535045624, 0.3183180093765259, -0.8108233213424683, -0.20201894640922546, 0.2714402377605438, 0.5543491840362549, -0.056100618094205856, 0.33988821506500244, 0.22935165464878082, 0.11429031193256378, -0.12376358360052109, 0.436178982257843, 0.7353765368461609, 0.9585133790969849, -0.37608134746551514, -0.07297725230455399, -0.10337607562541962, -0.5507636666297913, 0.34991779923439026, -0.31811001896858215, -0.5560447573661804, 0.48999202251434326, 0.3819129765033722, 0.4346865117549896, 0.08710108697414398, -0.4579821527004242, 0.5451782941818237, -0.11470281332731247, -0.5692217946052551, -0.2938731908798218, 0.23196567595005035, 0.06888794153928757, 0.027709217742085457, 0.35446664690971375, -0.3850197196006775, 0.5555887222290039, -0.4634615182876587, 0.42315277457237244, 0.14422105252742767, -0.4206138849258423, -0.09648331999778748, 0.7392887473106384, 0.050089601427316666, -0.221415176987648, 0.22510994970798492, -0.24875740706920624, 0.13050615787506104, 0.5351177453994751, 0.4826657176017761, 1.1632516384124756, -0.21691131591796875, 0.5231388807296753, 0.6252709627151489, -0.15388073027133942, -0.020856834948062897, 0.5431016683578491, -0.027547569945454597, 0.021078187972307205, -0.49474674463272095, -1.123307704925537, -0.4954773187637329, 0.08615034073591232, -0.8736017942428589, 0.4453423321247101, -0.8776267766952515, 0.022218752652406693, -0.3089900612831116, -0.3649246096611023, -0.4890701472759247, 0.39993104338645935, 0.3422936499118805, 0.6989012360572815, -0.5854671001434326, 0.4103742837905884, 0.5330817103385925, -0.7949599623680115, -1.0212762355804443, 0.02710612863302231, -0.0531095452606678, -0.6449822783470154, 0.3179989159107208, -0.05577191337943077, 0.02293592318892479, -0.19168764352798462, -0.3980725109577179, -0.3516940772533417, 1.5118614435195923, 0.14469578862190247, -0.6435168385505676, -0.2152082324028015, 0.20267648994922638, 0.7132399678230286, -0.19498467445373535, 0.739402174949646, 0.30863192677497864, -0.2166803628206253, 0.1950926035642624, -0.40165624022483826, 0.0028102295473217964, 0.05489671602845192, 0.21483969688415527, 0.18386605381965637, -0.6331532001495361, 0.8301979899406433, -0.11764845252037048, -0.4264339208602905, 0.19881406426429749, 0.8478721976280212, 0.5232385396957397, 0.6403342485427856, -0.15114250779151917, 0.675109326839447, 0.4723717272281647, 0.14180302619934082, 1.0058315992355347, -0.515433669090271, 0.04652290791273117, 1.2364994287490845, -0.27161353826522827, 0.6313815116882324, 0.291166216135025, -0.05036293342709541, 0.7027101516723633, 0.22344593703746796, 0.18683406710624695, 0.39331427216529846, 0.28071698546409607, -0.8128218054771423, 0.2281346172094345, -0.48841866850852966, -0.23562981188297272, 0.32511934638023376, 0.18262852728366852, -0.5465191602706909, -0.39538338780403137, -0.410762220621109, -0.007432013284415007, -0.024086490273475647, -0.48090919852256775, 1.0557409524917603, 0.5082605481147766, -0.5999348163604736, 0.6583686470985413, 0.08555232733488083, 0.20662084221839905, -0.48258256912231445, -0.328264981508255, -0.5881828665733337, -0.18051202595233917, -0.4581705927848816, -0.8089550733566284, 0.3352217972278595, 0.29968664050102234, -0.3294547200202942, -0.5311680436134338, 0.5134968161582947, -0.17209267616271973, -0.43481266498565674, -0.10366765409708023, 0.6017178893089294, 0.2070678174495697, 0.15400296449661255, -0.5979059338569641, -0.20593661069869995, -0.0790766030550003, 0.15101183950901031, 0.374616414308548, 0.6923747062683105, -0.03828788176178932, 0.4286816418170929, 0.5003005266189575, 0.4279513955116272, 0.2097911387681961, 0.357176810503006, 0.694510281085968, -0.509942889213562, -0.3527633547782898, -0.874509871006012, 0.8717182278633118, 0.02145962230861187, -0.15436159074306488, 0.24362197518348694, 0.8271896839141846, 0.4195755124092102, -0.2273556888103485, 0.6896937489509583, -0.015502302907407284, 0.7675111889839172, -0.5039654970169067, 0.8687594532966614, -0.5286521315574646, 0.2043275088071823, -0.10085450857877731, -0.7183052897453308, -0.27261972427368164, 0.06711246818304062, 0.17777034640312195, -0.3960832953453064, 0.9972001910209656, 0.5414380431175232, 0.04359699413180351, -0.5008116364479065, 0.586327075958252, -0.015262235887348652, 0.4410589635372162, 0.6154588460922241, 0.6368402242660522, -0.5498108267784119, 0.49858859181404114, -0.5834786295890808, -0.08634614199399948, -0.33993884921073914, -0.8613386750221252, -0.6095497012138367, -0.245698481798172, -0.4217301607131958, -0.4592392146587372, 0.10396865755319595, 0.5568414330482483, 0.25217491388320923, -0.6997889876365662, -0.3312798738479614, -0.07067430019378662, -0.186919167637825, 0.21115466952323914, -0.23462919890880585, -0.033231060951948166, -0.28470030426979065, -0.12252520769834518, 0.1614384949207306, 0.6997159719467163, -0.11628580093383789, -0.19690082967281342, 0.11042840778827667, -0.08653927594423294, -0.006367117632180452, 0.5630782246589661, 0.1456746906042099, -0.6072602868080139, 0.14439688622951508, -0.08738761395215988, -0.5180603265762329, 0.08591590076684952, 0.8104391098022461, -0.7244688868522644, 0.2552526891231537, 0.6867266893386841, 0.2675362229347229, 0.34552666544914246, 0.39526423811912537, 0.5503346920013428, -0.9039430022239685, -0.197097048163414, 0.46894386410713196, 0.27516892552375793, 0.18546518683433533, -0.5728945136070251, 0.5759116411209106, 0.057907894253730774, -0.6419019103050232, -0.5983698964118958, 0.19142374396324158, -1.1219068765640259, 0.02181934379041195, 1.0695537328720093, -0.22904540598392487, -0.3989254832267761, -0.04957302659749985, -0.2705119550228119, 0.5434455275535583, -0.5269362926483154, 0.7498895525932312, 0.1774238497018814, -0.36950185894966125, -0.49326446652412415, -0.6357972025871277, 0.36124923825263977, 0.1534656435251236, -0.8115922808647156, -0.15791280567646027, 0.8028582334518433, 0.13189435005187988, 0.16108359396457672, 1.25006902217865, -0.027245232835412025, 0.5218519568443298, -0.2050611674785614, 0.3702283799648285, 0.08491690456867218, -0.16662979125976562, -0.3652814030647278, 0.3463442027568817, -0.021805264055728912, -0.05226680636405945 ]
http://arxiv.org/abs/2405.17402v1
http://arxiv.org/pdf/2405.17402v1
THREAD: Thinking Deeper with Recursive Spawning
2024-05-27T17:51:24
2024-05-27T17:51:24
Philip Schroeder, Nathaniel Morgan, Hongyin Luo, James Glass
cs.CL
cs.CL
Large language models (LLMs) have shown impressive capabilities across diverse settings, but still struggle as the length and complexity of the context increases. To address this challenge, we propose Thinking Recursively and Dynamically (ThReaD). THREAD frames model generation as a thread of execution that, based on the context, can run to completion or dynamically spawn new threads. By spawning, threads can offload work (e.g., thinking, retrieving information) to child threads, which only return tokens needed for the parent thread to do its work. In effect, this enables the model to adapt, as needed, the amount of intermediate work used to produce tokens. We apply THREAD in the settings of LLM task solving and question answering, where the dynamic threading allows the model to recursively decompose the given task or question into progressively simpler sub-problems that can be solved by separate child threads. We test THREAD, implemented using a few-shot learning approach, on diverse benchmarks for agent tasks and data-grounded question answering. THREAD achieves state-of-the-art performance with GPT-4 and GPT-3.5 on these benchmarks, including ALFWorld, TextCraft, and WebShop, along with two new benchmarks, DataCommons QA and MIMIC-III ICU QA. In addition, THREAD outperforms existing frameworks by 10% to 50% absolute points with smaller models, including Llama-3-8b and CodeLlama-7b.
[ -0.4027254581451416, -0.9984720349311829, 0.7037898898124695, -0.03568267449736595, -0.13567908108234406, 0.7052305340766907, -0.15628959238529205, -0.5605148077011108, -0.16053864359855652, 0.30564868450164795, -0.9698582291603088, -0.14536693692207336, -0.38342565298080444, 0.003531552152708173, -0.4260155260562897, 0.9366577863693237, -0.30732861161231995, -0.22522515058517456, -0.296406090259552, 0.02887924201786518, -0.4576147794723511, -0.3748388886451721, -0.9230200052261353, -0.5651648640632629, 0.577346920967102, 0.32755300402641296, 0.48015567660331726, 0.7279321551322937, 0.517212450504303, 0.3723379969596863, -0.13582074642181396, 0.39312440156936646, -0.6262703537940979, 0.6788254976272583, -0.1777796447277069, -0.5898473262786865, -0.321958988904953, 0.014238988049328327, 0.7145493030548096, 0.697375476360321, -0.3564930558204651, 0.40815162658691406, 0.05978305637836456, 0.644887387752533, -0.37319302558898926, 0.2469272017478943, -0.7681677341461182, 0.2586442530155182, -0.13549663126468658, -0.15380756556987762, -0.15322697162628174, -0.24391697347164154, 0.3255084753036499, -0.32786959409713745, 0.16811946034431458, 0.07800966501235962, 0.5373090505599976, 0.2697086036205292, -0.22710782289505005, -0.32980144023895264, -0.730657160282135, 0.7482004761695862, -0.6788311004638672, 0.23423796892166138, -0.07473628968000412, 0.3419754207134247, -0.1751650720834732, -0.9095582962036133, -0.5695934295654297, 0.08150198310613632, 0.29949474334716797, -0.00799945555627346, 0.0900077074766159, -0.11974150687456131, 0.48678648471832275, 0.6190847158432007, -0.3723592758178711, -0.17323929071426392, -0.1938536912202835, 0.277432382106781, 0.3451065719127655, 0.6043646931648254, 0.22372999787330627, 0.13649500906467438, -0.14812178909778595, 0.20348438620567322, -0.7635833621025085, 0.028106210753321648, 0.09083136171102524, 0.3721472918987274, -0.15973781049251556, 0.3946855366230011, -0.0928601399064064, 0.3821786642074585, 0.3076559007167816, -0.07492008805274963, 0.18414729833602905, -0.34121987223625183, -0.24929159879684448, -0.4671715795993805, 0.4148983061313629, 0.17241409420967102, 0.2042917162179947, -0.10899738222360611, -0.30664950609207153, -0.04165089130401611, 0.46754685044288635, -0.8250329494476318, -0.11564352363348007, 0.18580321967601776, -0.35540688037872314, -0.4993269741535187, -0.21648088097572327, -0.5643563270568848, -0.40999719500541687, -0.2911728024482727, 0.06387435644865036, -0.21158358454704285, -0.5481250882148743, -0.019811227917671204, 0.14130288362503052, 0.43502163887023926, 0.3726489245891571, -0.7396178245544434, 0.35806846618652344, 0.9260827898979187, 0.7566766142845154, -0.3864535391330719, -0.33134424686431885, -0.38277682662010193, 0.14703352749347687, -0.5864850282669067, 0.7205222845077515, -0.6918309926986694, -0.18096202611923218, 0.08862727880477905, 0.11983034759759903, -0.2305806279182434, -0.7410010695457458, -0.09736741334199905, -0.6446177363395691, 0.27480897307395935, -0.3933138847351074, -0.759144127368927, -0.3688926696777344, 0.5510751008987427, -0.5976364612579346, 1.0748777389526367, 0.17179246246814728, -0.8083850145339966, 0.1593756377696991, -0.7399274706840515, -0.29527711868286133, 0.09039512276649475, -0.23413726687431335, -0.16582746803760529, 0.33346185088157654, 0.0983930379152298, 0.370033323764801, -0.3952943682670593, 0.20811475813388824, -0.28689292073249817, -0.33888667821884155, 0.3523922860622406, -0.2539580166339874, 0.4434692859649658, 0.1847389042377472, -0.6422598958015442, 0.0706859678030014, -0.3615719676017761, 0.055824778974056244, 0.3219558298587799, -0.40546634793281555, 0.3958212435245514, 0.2719089686870575, -0.3594539165496826, 0.17933565378189087, 0.1313646137714386, -0.3932522237300873, 0.23200002312660217, -0.5663344264030457, 0.7766400575637817, 0.7559466361999512, 0.09607978910207748, 0.25344976782798767, -0.5773210525512695, 0.8348172903060913, 0.24230597913265228, 0.008870838209986687, -0.5108199119567871, -0.3821522295475006, -1.0095112323760986, 0.013516428880393505, -0.13626700639724731, 0.5749048590660095, -1.0547857284545898, -0.3058701455593109, -0.012281578034162521, -0.3169745206832886, -0.38032883405685425, 0.22876018285751343, 0.5678594708442688, 0.37455806136131287, 0.010434766300022602, -0.34976261854171753, -0.5671864748001099, -0.5946452617645264, 0.0004610237665474415, -0.2881861627101898, 0.27712976932525635, 0.4651223421096802, 0.5301902294158936, -0.35693806409835815, 0.6775533556938171, -0.6725627183914185, 0.12113144993782043, -0.4245578348636627, 0.1473211944103241, 0.5423071980476379, 0.4504404067993164, 0.3423822820186615, -0.41754379868507385, -0.3947979211807251, -0.027216395363211632, -0.9062109589576721, 0.17397308349609375, 0.12735867500305176, -0.16337639093399048, 0.3649596571922302, 0.4364902377128601, -0.8347001075744629, -0.007690966594964266, 0.4256587028503418, -0.0404595285654068, 0.41267403960227966, 0.055400412529706955, -0.03793284296989441, -1.3280092477798462, 0.038972292095422745, -0.42353615164756775, -0.5215533971786499, -0.4346800446510315, 0.5943846702575684, -0.2699710428714752, -0.3616444170475006, -0.6329434514045715, 0.4618784785270691, -0.5956595540046692, -0.23779815435409546, -0.5043454766273499, -0.1254807859659195, -0.0010416940785944462, 0.44364115595817566, -0.055423490703105927, 0.9857702851295471, 0.6042267084121704, -0.2592383623123169, 0.6233620047569275, -0.0781015157699585, -0.699032723903656, 0.05511034280061722, -0.5548518896102905, 0.6494636535644531, -0.09203241020441055, 0.30025818943977356, -0.801855206489563, -0.13769729435443878, 0.13939429819583893, -0.20588277280330658, 0.35244882106781006, -0.05149010196328163, -0.5564215779304504, -0.710417628288269, -0.29793113470077515, 0.7866848111152649, 0.383761465549469, -0.34291717410087585, 0.3523143529891968, 0.5797412991523743, -0.4300423562526703, -0.49842706322669983, -0.6038565039634705, -0.13354317843914032, -0.09287942945957184, -0.39044439792633057, 0.13025623559951782, -0.29711979627609253, -0.16676339507102966, 0.08206034451723099, 0.041526567190885544, -0.18217721581459045, 0.2079923152923584, 0.15009790658950806, 0.16266906261444092, -0.5347177386283875, 0.1847909539937973, -0.07486938685178757, -0.14180228114128113, 0.08290907740592957, -0.2696467638015747, 0.7772020101547241, -0.43774011731147766, -0.43020033836364746, -0.24229149520397186, 0.5389586687088013, 0.7186190485954285, -0.27418577671051025, 0.497889906167984, 0.3536284863948822, -0.45667439699172974, -0.40953415632247925, -0.6099647879600525, -0.22805675864219666, -0.5106766819953918, 0.39853131771087646, -0.36966025829315186, -1.3944344520568848, 0.6520406603813171, -0.12213604152202606, 0.36814481019973755, -0.002108735265210271, 0.7893241047859192, -0.4347367584705353, 0.9827900528907776, 0.7411725521087646, -0.13001883029937744, 0.4734771251678467, -0.47411343455314636, 0.378549724817276, -0.959219217300415, 0.04839863255620003, 0.15685130655765533, -0.5050735473632812, -0.4599231779575348, -0.9676363468170166, 0.2238401174545288, 0.126579150557518, -0.4272159934043884, 0.10691986232995987, -0.45238351821899414, 0.6546940803527832, 0.46720126271247864, 0.05514353886246681, 0.13487699627876282, -0.2562345266342163, -0.1554873138666153, 0.17516498267650604, -0.5770547986030579, -0.4189262092113495, 1.0297061204910278, 0.38607022166252136, 0.6858406662940979, -0.028175054118037224, 0.5738393068313599, 0.05184868350625038, 0.36099785566329956, -0.6026634573936462, 0.5625301599502563, 0.05758092924952507, -0.8744637370109558, -0.14991740882396698, -0.2658829987049103, -0.8600826263427734, 0.10321555286645889, -0.09888537228107452, -0.5454587340354919, -0.12951557338237762, 0.11560189723968506, -0.7261755466461182, 0.588150143623352, -0.3649425208568573, 0.5724248886108398, -0.006874958984553814, -0.38731488585472107, -0.4789159297943115, -0.148763507604599, 0.4549615979194641, -0.11080612987279892, 0.04699833318591118, -0.38141655921936035, -0.038474831730127335, 0.3899102210998535, -0.13679179549217224, 1.021673560142517, -0.026347210630774498, -0.09632079303264618, 0.7457435131072998, 0.2112198770046234, 0.454786479473114, 0.07741601020097733, -0.06605970859527588, -0.09880582243204117, 0.02318538911640644, -0.19361452758312225, -0.5597019195556641, 0.6948521733283997, -0.6114649176597595, -0.8990875482559204, -0.2995174825191498, -0.8091840147972107, -0.20978721976280212, 0.11289495974779129, -0.12727771699428558, 0.5354617834091187, 0.02752942591905594, 0.14972618222236633, 0.571937620639801, -0.2390357404947281, 0.6575278639793396, 0.6126226186752319, -0.6197251677513123, -0.3712112307548523, 0.711340069770813, 0.1700604259967804, 0.05831627920269966, 0.19933311641216278, 0.0058898343704640865, -0.09371457248926163, -0.5252104997634888, -0.3883329927921295, 0.2934923470020294, -0.4795156717300415, -0.365150511264801, -0.5461199283599854, -0.6083675622940063, -0.17905132472515106, -0.0766298845410347, -0.5939719676971436, -0.1603447049856186, -0.04419366270303726, -0.3276972770690918, 0.20596803724765778, 0.9672626256942749, 0.14519476890563965, 0.1140948161482811, -0.6701715588569641, 0.12055706232786179, 0.6872865557670593, 0.45472586154937744, 0.4347400963306427, -0.3119955360889435, -0.38221392035484314, -0.021821998059749603, -0.7131124138832092, -0.4724229574203491, 0.2530083656311035, 0.07281612604856491, 0.46197518706321716, 0.35631850361824036, -0.08090195059776306, 0.7406533360481262, -0.9149968028068542, 0.7877445220947266, -0.022941870614886284, -0.9084095358848572, 0.5150156617164612, -0.5598421096801758, 0.507046103477478, 0.4590018391609192, 0.16914014518260956, -0.4775879979133606, -0.5991576910018921, -0.3903365731239319, -0.763644814491272, 0.5821194648742676, 0.20080716907978058, 0.3823435306549072, -0.3296932876110077, 0.6458584070205688, 0.23220397531986237, 0.48554283380508423, -0.6276673078536987, -0.07632815837860107, 0.30638691782951355, -0.006418958771973848, 0.06714089959859848, -0.49454265832901, -0.09689202159643173, -0.41106387972831726, 0.4207806885242462, -0.30262959003448486, 0.6054075956344604, -0.13169027864933014, 0.02300337888300419, -0.39484140276908875, -0.03147374838590622, 0.6267647743225098, 1.0899691581726074, 0.029921047389507294, 0.2807425260543823, 0.37515291571617126, -0.10566234588623047, 0.1170392632484436, -0.2609179615974426, -0.11588187515735626, -0.30372270941734314, 0.5440274477005005, 0.9077693223953247, 0.4929535388946533, -0.8020967841148376, 0.2651060223579407, -0.025721484795212746, -0.08948692679405212, -0.3483707308769226, 0.21315880119800568, 0.4883239269256592, 0.7986360192298889, 0.18635410070419312, -0.3164338171482086, -0.13056257367134094, -0.8857468962669373, 0.3476414978504181, 0.36307963728904724, -0.31419315934181213, -0.4394014775753021, 0.4460752010345459, 0.4119887948036194, -0.333135187625885, 0.744036078453064, -0.048093248158693314, -0.7537230253219604, 0.6476179361343384, 0.6044436097145081, 1.1663846969604492, -0.08453702181577682, 0.20010732114315033, 0.36659789085388184, 0.13415436446666718, -0.059447549283504486, 0.6205831170082092, -0.1387055218219757, -0.942840576171875, -0.6600639224052429, -0.659001350402832, -0.627482533454895, 0.08850537985563278, -0.49582037329673767, -0.14284531772136688, -0.5451575517654419, -0.2853040397167206, -0.24400198459625244, 0.27719846367836, -0.471260130405426, -0.054174818098545074, 0.4241155982017517, 0.7716478705406189, -0.44751766324043274, 1.0050445795059204, 0.7423823475837708, -0.14956174790859222, -0.6917305588722229, 0.012245427817106247, 0.0695730671286583, -0.9065614938735962, 0.5250740647315979, 0.44048601388931274, -0.10664857178926468, 0.13896389305591583, -0.43673622608184814, -1.2406020164489746, 1.181868553161621, 0.4296764135360718, -0.6562435030937195, -0.1698070466518402, 0.05929328501224518, 0.4367925524711609, -0.6161242723464966, 0.13597652316093445, 0.4170133173465729, 0.08775158226490021, 0.062431346625089645, -0.7219100594520569, 0.020598361268639565, -0.3650408685207367, 0.017977112904191017, 0.1639714241027832, -0.7042297720909119, 1.0055187940597534, -0.27466222643852234, -0.4441255033016205, 0.18293654918670654, 0.5744078159332275, 0.41582444310188293, 0.26644930243492126, 0.5322004556655884, 0.6198847889900208, 0.8871442079544067, -0.0326911136507988, 0.978149950504303, -0.5860077142715454, 0.34951239824295044, 1.239111065864563, -0.4531167447566986, 0.9600490927696228, 0.3425276577472687, -0.19553963840007782, 0.7740369439125061, 0.6833838224411011, 0.27332988381385803, 0.36750179529190063, 0.259725958108902, -0.26988279819488525, -0.37719646096229553, -0.012868575751781464, -0.3992859423160553, 0.3013797700405121, 0.18766018748283386, -0.27189353108406067, -0.20200315117835999, -0.0037598158232867718, -0.08712004125118256, -0.018234649673104286, -0.15732239186763763, 0.9496629238128662, 0.3683434724807739, -0.7740938663482666, 0.4808233976364136, -0.20031757652759552, 0.4969870150089264, -0.346761018037796, 0.08738169074058533, -0.4726858139038086, 0.33602893352508545, 0.15597134828567505, -0.975833535194397, 0.5756298899650574, 0.2652437388896942, -0.6037516593933105, -0.4333289861679077, 0.4224429428577423, -0.394711971282959, -0.6343598365783691, 0.2707427144050598, 0.6846127510070801, 0.07498247921466827, 0.0345027819275856, -0.8782314658164978, 0.2727104127407074, -0.1722753345966339, -0.45504939556121826, 0.3055422306060791, 0.5884944796562195, 0.033284902572631836, 0.9981905221939087, 0.5406650304794312, -0.07381229102611542, 0.19020140171051025, 0.010485731065273285, 1.0754151344299316, -0.8632853031158447, -0.23780259490013123, -0.9303442239761353, 0.31768691539764404, -0.026879994198679924, -0.1958918571472168, 0.3136376440525055, 0.5894513130187988, 0.75055992603302, 0.0977807492017746, 0.42038747668266296, 0.10757226496934891, 0.7324073910713196, -0.28680381178855896, 0.8134673833847046, -0.414237916469574, 0.1500338762998581, -0.17579306662082672, -0.9940797090530396, -0.0015513390535488725, 0.49422118067741394, -0.15563111007213593, -0.007442309986799955, 0.8504129648208618, 0.6121380925178528, 0.17630180716514587, 0.04337960481643677, 0.271459698677063, 0.25414082407951355, 0.48784488439559937, 0.9209727048873901, 1.2434687614440918, -0.2095339447259903, 0.2691369950771332, -0.3068719804286957, -0.05284963920712471, 0.21907395124435425, -0.8820609450340271, -0.971238911151886, -0.459841787815094, -0.43772074580192566, -0.0195599477738142, 0.04769861698150635, 0.9085632562637329, 0.8798816800117493, -0.7910950779914856, -0.4443919360637665, -0.2081318348646164, 0.24110636115074158, -0.2726559340953827, -0.2535567879676819, -0.017845261842012405, -0.7367050647735596, -0.7686235308647156, 0.4410354495048523, 0.4704717695713043, -0.196642205119133, -0.4479934573173523, 0.05492397025227547, -0.21169400215148926, 0.3400736451148987, 0.8049381375312805, 0.14013265073299408, -0.7490679621696472, -0.3807404637336731, -0.12435349822044373, -0.15230919420719147, -0.11516781151294708, 0.8877736926078796, -0.8444740772247314, 0.3521597385406494, 0.5059490203857422, 0.9955312609672546, 0.5950083136558533, -0.159658282995224, 0.8550914525985718, -0.4209390878677368, 0.1346186399459839, 0.3098245859146118, 0.24165910482406616, 0.2515931725502014, -0.1338142305612564, 0.6114875674247742, 0.3070457875728607, -0.4877294600009918, -1.0379724502563477, 0.373508483171463, -0.586225688457489, -0.37160220742225647, 0.7870889902114868, -0.289943128824234, -0.3431442081928253, 0.06875041872262955, -0.048811253160238266, 0.18461468815803528, -0.11143989115953445, 0.8875017166137695, 0.6925400495529175, -0.15916617214679718, -0.5802838802337646, -0.5519625544548035, 0.38996925950050354, 0.2925456166267395, -0.7968319058418274, 0.2015949934720993, 0.17963449656963348, 0.3302463889122009, -0.05000569298863411, 0.799453854560852, -0.06525523215532303, 0.12607888877391815, -0.24059990048408508, -0.0827946662902832, -0.04391368478536606, -0.2723144292831421, 0.12591587007045746, 0.3185240924358368, 0.11875295639038086, -0.17048725485801697 ]
http://arxiv.org/abs/2405.17394v2
http://arxiv.org/pdf/2405.17394v2
The Expressive Capacity of State Space Models: A Formal Language Perspective
2024-05-27T17:46:57
2024-06-02T19:43:55
Yash Sarrof, Yana Veitsman, Michael Hahn
cs.CL
cs.CL, cs.FL, cs.LG
Recently, recurrent models based on linear state space models (SSMs) have shown promising performance in language modeling (LM), competititve with transformers. However, there is little understanding of the in-principle abilities of such models, which could provide useful guidance to the search for better LM architectures. We present a comprehensive theoretical study of the capacity of such SSMs as it compares to that of transformers and traditional RNNs. We find that SSMs and transformers have overlapping but distinct strengths. In star-free state tracking, SSMs implement straightforward and exact solutions to problems that transformers struggle to represent exactly. They can also model bounded hierarchical structure with optimal memory even without simulating a stack. On the other hand, we identify a design choice in current SSMs that limits their expressive power. We discuss implications for SSM and LM research, and verify results empirically on a recent SSM, Mamba.
[ -0.20521411299705505, -0.45271432399749756, 0.8906946182250977, 0.1302655041217804, 0.0719464048743248, 0.2474137842655182, -0.37897932529449463, -0.6107079386711121, 0.22038115561008453, 0.4591488540172577, -0.42129355669021606, -0.00905933603644371, -0.5618032813072205, -0.03322618454694748, -0.7143882513046265, 0.701707124710083, -0.35947656631469727, -0.17702719569206238, -0.25222745537757874, -0.2913777530193329, -0.490727037191391, -0.5319004058837891, -0.04142965003848076, -0.29548999667167664, 0.40101832151412964, 0.1615428477525711, 0.9079446792602539, 0.47245287895202637, 0.5292942523956299, 0.40329790115356445, -0.20054295659065247, -0.14694856107234955, -0.4821256101131439, 0.310979962348938, -0.1667448729276657, -0.5114932060241699, -0.36218100786209106, 0.02367008477449417, 1.0994848012924194, 0.7755427360534668, -0.25401732325553894, 0.14943276345729828, -0.010303957387804985, 0.6883938312530518, -0.5111142992973328, 0.37487465143203735, -0.6524960994720459, -0.12078020721673965, -0.19131052494049072, 0.00043714381172321737, -0.46755146980285645, -0.40481582283973694, 0.3173537850379944, -0.6373162269592285, 0.03082980215549469, -0.05622531473636627, 1.0368285179138184, 0.28243836760520935, -0.2482677847146988, -0.13257713615894318, -1.4046019315719604, 0.9854243397712708, -0.5785326957702637, 0.4909641444683075, 0.05517788976430893, 0.5105283856391907, -0.2284926474094391, -0.6831634640693665, -0.5266404747962952, -0.3382501006126404, -0.16222240030765533, -0.15557269752025604, -0.57410728931427, 0.14349311590194702, 0.4905940294265747, 0.692898154258728, -0.2670488953590393, 0.06355473399162292, -0.4530941843986511, -0.134162038564682, 0.38881683349609375, 0.4344802498817444, 0.26457422971725464, -0.1853475421667099, -0.5944579839706421, 0.38606536388397217, -0.5885682702064514, 0.17909768223762512, -0.11634022742509842, 0.4632091522216797, 0.02380635216832161, 0.7101880311965942, 0.0591566227376461, 0.9106209874153137, -0.1351931095123291, 0.15867653489112854, -0.35176658630371094, -0.3230009377002716, -0.22399573028087616, -0.5534803867340088, 0.7105865478515625, -0.15565147995948792, 0.25697633624076843, -0.39855146408081055, -0.3308110237121582, 0.47962686419487, 0.6006031632423401, -0.5225228667259216, 0.3352437913417816, 0.10595112293958664, -0.4612051546573639, -0.041724953800439835, 0.08128948509693146, -0.4114498794078827, -0.32295235991477966, -0.4579605460166931, 0.43602651357650757, -0.4775596261024475, -0.6583328247070312, 0.12032762169837952, 0.013540337793529034, 0.2585752606391907, -0.03485661745071411, -0.9716350436210632, 0.7779338955879211, 0.7553998231887817, 0.8037710189819336, -0.1093357503414154, 0.030649302527308464, 0.07625971734523773, -0.23003868758678436, -0.5514415502548218, 0.36487480998039246, -0.6060276627540588, -0.19960910081863403, 0.0159025676548481, -0.14283376932144165, -0.24483661353588104, -0.30434808135032654, 0.3229771554470062, -0.49947959184646606, 0.050214771181344986, -0.20773622393608093, -0.8693562746047974, -0.15518157184123993, -0.41798558831214905, -0.9800682663917542, 0.8797765970230103, 0.5315492153167725, -0.15332160890102386, 0.2887989580631256, -0.5318013429641724, -0.20015282928943634, 0.2602689266204834, -0.4605894684791565, -0.11695381253957748, 0.5389869809150696, -0.4204151928424835, 0.45735135674476624, -0.19800594449043274, 0.43589046597480774, -0.13900963962078094, -0.38280946016311646, 0.4934213161468506, 0.011424739845097065, 0.19560320675373077, 0.6614305377006531, -0.13837763667106628, 0.2724054455757141, -0.7237703204154968, 0.034179866313934326, 0.08274266868829727, -0.3645041882991791, -0.31616970896720886, 0.4792538583278656, -0.028343565762043, 0.3807639181613922, 0.2065669596195221, -0.6264718174934387, 0.06202999874949455, -0.497012197971344, 0.6775520443916321, 0.500941276550293, -0.4568057060241699, 0.8174089193344116, -0.34821075201034546, 0.8933826684951782, -0.27844107151031494, -0.11128844320774078, -0.13439276814460754, -0.12022314220666885, -0.7967192530632019, -0.2767835557460785, 0.23952756822109222, 0.38606756925582886, -0.5373499393463135, 0.5133350491523743, -0.3591792583465576, -0.3668997883796692, -0.6923931241035461, -0.09439438581466675, 0.3172220289707184, 0.10781905800104141, 0.2024531066417694, -0.12916165590286255, -0.654796302318573, -1.2330973148345947, -0.32563066482543945, -0.01978611759841442, 0.11642374098300934, 0.35880276560783386, 0.3325726091861725, 0.30513671040534973, 1.1525027751922607, -0.04110606387257576, -0.05817420780658722, -0.7572381496429443, -0.49560123682022095, 0.31115075945854187, 0.2345069795846939, 0.5755751132965088, -0.4446454644203186, -0.19902820885181427, -0.14211389422416687, -0.7778454422950745, 0.06447859108448029, -0.2922859787940979, 0.1822894960641861, 0.33351412415504456, 0.2556328773498535, -0.9631388783454895, 0.4799860119819641, 0.7135091423988342, -0.32151737809181213, 0.1478005349636078, 0.13521410524845123, -0.17500165104866028, -0.9972270131111145, 0.20990291237831116, 0.20072413980960846, -0.3380117118358612, -1.0785269737243652, 0.48717331886291504, 0.19823940098285675, -0.4100242257118225, -0.4412391781806946, 0.5597299337387085, -0.5723312497138977, -0.35328203439712524, -0.56175297498703, 0.4847226142883301, -0.44652214646339417, 0.5349030494689941, 0.2208905667066574, 0.35459330677986145, 0.4768521189689636, -0.7023166418075562, -0.015371952205896378, -0.24266375601291656, -0.8548827171325684, 0.25411540269851685, -0.5394569635391235, -0.17665958404541016, -0.0998748317360878, 0.3982142508029938, -1.1528379917144775, 0.010014286264777184, -0.002375537296757102, -0.15943218767642975, 0.41355377435684204, -0.061276547610759735, -0.27674755454063416, -0.35860517621040344, 0.2864281237125397, 0.27812978625297546, 0.6334692239761353, -0.24038955569267273, 0.901340126991272, 0.4747082591056824, -0.056580688804388046, -0.42798495292663574, -0.5518171787261963, -0.09659381955862045, -0.08478821814060211, -0.5638285875320435, 0.2668899893760681, 0.3461589515209198, -0.36049941182136536, 0.15552805364131927, -0.36920973658561707, 0.28479331731796265, 0.34998348355293274, 0.3800041377544403, 0.4928453862667084, -0.3318193852901459, 0.16621869802474976, -0.22651124000549316, -0.3143466114997864, -0.11903760582208633, -0.1731683313846588, 0.5818991661071777, -0.6884255409240723, -0.13417942821979523, -0.6958370804786682, 0.36706703901290894, 0.6128599047660828, 0.026668932288885117, 0.8376826643943787, -0.018773812800645828, -0.5985535383224487, -0.1211746409535408, -0.18966417014598846, -0.04874442517757416, -0.46131667494773865, 0.34636399149894714, -0.39696356654167175, -1.1407601833343506, 0.48465725779533386, 0.1252584010362625, 0.4528576731681824, 0.6451303362846375, 0.5070582032203674, -0.09777366369962692, 0.8523215651512146, 0.7548801898956299, -0.18757712841033936, 0.49068307876586914, -0.14780032634735107, 0.14581894874572754, -0.8931085467338562, -0.1026044562458992, -0.5678603649139404, -0.694202721118927, -0.7349444627761841, -0.39049598574638367, -0.13020917773246765, 0.09224489331245422, -0.11591122299432755, 0.7582830786705017, -0.43779456615448, 0.38163062930107117, 0.09626014530658722, -0.2880842685699463, 0.08259809762239456, 0.00823559332638979, -0.1414165049791336, -0.24996118247509003, -0.9129080772399902, -0.663992702960968, 0.6134572625160217, 0.8347182869911194, 1.1398950815200806, 0.3256867825984955, 0.1920643448829651, -0.1705288589000702, 0.26995953917503357, -0.9928147792816162, 0.717925488948822, -0.26130130887031555, -0.7714126706123352, -0.3627191185951233, -0.468180775642395, -0.9056045413017273, 0.2862915098667145, -0.21155677735805511, -0.8376368880271912, 0.15816478431224823, 0.16817253828048706, -0.3099882900714874, 0.5579105615615845, -0.4018348157405853, 0.38397008180618286, -0.13052329421043396, 0.0022982973605394363, -0.4448535740375519, -0.43076351284980774, 0.31489676237106323, 0.2466636598110199, 0.0658581554889679, -0.21349865198135376, -0.0759468674659729, 0.45633092522621155, -0.3190542459487915, 0.87610924243927, -0.21902453899383545, -0.14362773299217224, 0.35543760657310486, 0.3816945254802704, 0.35968226194381714, -0.5822216868400574, -0.012884755618870258, 0.23105600476264954, -0.09312155842781067, -0.3265046775341034, -0.6186513304710388, 0.7154250741004944, -0.4973146319389343, -0.615297794342041, -0.48832663893699646, -0.6603721380233765, -0.18733727931976318, 0.16586966812610626, 0.06772708147764206, 0.40624144673347473, -0.33010682463645935, 0.47769874334335327, 0.39888182282447815, -0.12706686556339264, 0.4337109625339508, 0.6099227666854858, -0.7356640696525574, 0.1625063270330429, 0.718251645565033, 0.17670448124408722, 0.6755276918411255, 0.48993855714797974, 0.12836982309818268, -0.47357192635536194, -0.19621717929840088, -0.41034039855003357, 0.2095082402229309, -0.5340684056282043, 0.1615147739648819, -0.3510691225528717, -0.5379296541213989, 0.06372811645269394, 0.11484987288713455, -0.47638627886772156, -1.171260952949524, -0.021188192069530487, -0.09203609079122543, 0.2923238277435303, 0.9728017449378967, 0.2546687424182892, 0.12051226198673248, -0.4124439060688019, 0.22666287422180176, -0.0415826216340065, 0.7849180698394775, 0.22358468174934387, -0.6277773976325989, -0.32091259956359863, -0.16618485748767853, -0.2382224053144455, -0.648604154586792, 0.06426365673542023, 0.0663105696439743, 0.7426016330718994, 0.2232772409915924, -0.4107070565223694, 0.6678442358970642, -0.4892318844795227, 0.9086548089981079, 0.1259886473417282, -0.9495391249656677, 0.3516945540904999, -0.26522305607795715, 0.3192060887813568, 0.039290718734264374, 0.4944995939731598, -0.6896531581878662, -0.9061312675476074, -0.6312965154647827, -0.5525403618812561, 0.6085023880004883, 0.2982480525970459, 0.15208712220191956, 0.15029872953891754, 0.4638783931732178, -0.05272458866238594, 0.12845192849636078, -0.587234377861023, -0.32544007897377014, -0.22618959844112396, -0.19303423166275024, -0.16276192665100098, -0.13189692795276642, 0.06646004319190979, -0.03125578165054321, 0.42362430691719055, 0.2671763002872467, 0.478155255317688, 0.06134187802672386, -0.06500736624002457, -0.3264239728450775, 0.5846050381660461, 0.826242208480835, 0.7208670973777771, 0.0793636366724968, -0.03705630451440811, 0.02158963866531849, -0.013944772072136402, 0.2430955171585083, -0.09017811715602875, -0.3691766858100891, 0.11714340001344681, 0.1479535549879074, 1.1556495428085327, 0.604637622833252, -0.3357563018798828, 0.127417653799057, 0.08613193035125732, -0.192903533577919, -0.3875153362751007, 0.3420059084892273, 0.2353750467300415, 0.12028481066226959, 0.2387259602546692, 0.3002912402153015, -0.3147534132003784, -0.5426100492477417, 0.051944855600595474, 0.6322999000549316, -0.6678376793861389, -0.36315128207206726, 0.6591424345970154, -0.049298692494630814, -0.5474555492401123, 0.5175309181213379, 0.3615650534629822, -0.260495126247406, 0.46001771092414856, 0.6473731398582458, 0.866885244846344, -0.28756991028785706, -0.020194850862026215, 0.3142462372779846, 0.26750287413597107, -0.1041993722319603, 0.4457297623157501, -0.0639510229229927, -0.9409307837486267, -0.5448586344718933, -0.6858566999435425, -0.3181789517402649, 0.3723374903202057, -0.8536414504051208, -0.014797292649745941, -0.639690637588501, -0.4907936453819275, 0.10150282829999924, -0.13479633629322052, -0.5196341872215271, -0.2568041682243347, 0.14706969261169434, 1.141369104385376, -0.5187904834747314, 0.7512381076812744, 0.38874298334121704, -0.23804086446762085, -0.9609898328781128, -0.44912898540496826, 0.11582312732934952, -0.6082492470741272, 0.3823509216308594, -0.0639834776520729, -0.3323712944984436, -0.2504352927207947, -0.36694008111953735, -1.0282378196716309, 0.8963663578033447, 0.1972810924053192, -0.8917083144187927, 0.029496824368834496, 0.09419286251068115, 0.854098379611969, -0.4565223753452301, -0.18021602928638458, 0.5911425948143005, 0.2076205313205719, -0.2038709968328476, -0.934853196144104, 0.11912253499031067, -0.19642366468906403, 0.33420976996421814, 0.7110025882720947, -0.7123762965202332, 0.6419947147369385, -0.191227525472641, -0.7769261598587036, 0.8771215081214905, 0.875368058681488, 0.40041568875312805, -0.1328325867652893, 0.5492227673530579, 0.4296960234642029, 0.47288978099823, -0.33502164483070374, 1.3091752529144287, -0.40294283628463745, 0.2864606976509094, 0.928899884223938, -0.49620094895362854, 0.9079281091690063, 0.4414326846599579, -0.2247915267944336, 0.8123019933700562, 0.17381486296653748, 0.008013199083507061, 0.10052765160799026, 0.46605876088142395, -0.2530270516872406, -0.30374425649642944, 0.07190411537885666, -0.1549272984266281, 0.3174859285354614, 0.588824450969696, -0.5201063752174377, -0.14362210035324097, -0.23491470515727997, -0.18606631457805634, 0.33969178795814514, -0.28149208426475525, 0.5145867466926575, 0.33947083353996277, -0.8208805322647095, 0.36452382802963257, -0.02813413180410862, 0.22773690521717072, -0.7866066694259644, 0.13242404162883759, -0.02716314233839512, 0.17805452644824982, -0.19836057722568512, -0.9360116124153137, 0.3409956693649292, 0.11925352364778519, -0.246597558259964, -0.4009322226047516, 0.8494928479194641, -0.45807749032974243, -0.3616068959236145, 0.2378406524658203, 0.37899985909461975, 0.253683865070343, 0.4676862359046936, -0.4005764126777649, 0.03174661472439766, -0.3967263698577881, -0.1324092298746109, 0.24208731949329376, 0.05167904868721962, -0.22999988496303558, 0.9147050380706787, 0.3665182888507843, 0.5400237441062927, 0.03761308640241623, 0.12706737220287323, 0.444874107837677, -0.8875711560249329, -0.46618223190307617, -0.7344762682914734, 0.3613210618495941, 0.22498850524425507, -0.08274189382791519, 0.5548151731491089, 0.5203791856765747, 0.5601933002471924, -0.10510247200727463, 0.7833153009414673, -0.19393716752529144, 0.7616272568702698, -0.6148492097854614, 0.7056940793991089, -0.46608954668045044, 0.33089399337768555, -0.21143749356269836, -0.7757278084754944, -0.02390599250793457, 0.6913431286811829, -0.08241844177246094, 0.20030778646469116, 0.533382773399353, 0.5952737927436829, 0.01400805450975895, 0.2119539976119995, 0.4005972146987915, 0.2864365875720978, 0.25100138783454895, 0.8456317186355591, 1.4796276092529297, -0.34976667165756226, 0.38695529103279114, -0.01720747910439968, -0.13070714473724365, 0.04001989960670471, -0.7257629036903381, -0.521541953086853, -0.8862964510917664, 0.09380510449409485, -0.3114207684993744, -0.6737601161003113, 0.6939753890037537, 0.821821391582489, -0.6114674210548401, -0.4884125292301178, -0.057111844420433044, 0.09944519400596619, -0.3330058157444, -0.2474365234375, 0.08176057785749435, -0.3125211000442505, -0.5397840142250061, 0.6411247253417969, 0.32399246096611023, 0.033224377781152725, -0.6750958561897278, -0.14722399413585663, 0.11989589035511017, 0.3862989842891693, 0.7905051112174988, 0.6470682621002197, -1.1533968448638916, -0.3951322138309479, 0.2355220764875412, -0.3243566155433655, -0.1408431977033615, 1.3143807649612427, -0.884890615940094, 0.2918156683444977, 0.4431806206703186, 0.5426234602928162, 0.33569619059562683, 0.019879164174199104, 0.7128994464874268, -0.7128512859344482, 0.0036395397037267685, 0.2133873701095581, 0.549339771270752, 0.018465479835867882, 0.017086857929825783, 0.3142368495464325, 0.039178017526865005, -0.5428991317749023, -0.5377933979034424, 0.7005733251571655, -1.0309820175170898, -0.3380056321620941, 1.0674257278442383, 0.13817934691905975, 0.11694958060979843, -0.0000018855082544178003, 0.2279670536518097, 0.0484871082007885, -0.20536641776561737, 0.6590083837509155, 0.9748092889785767, -0.27874261140823364, -0.18858866393566132, -0.6131828427314758, 0.5969201326370239, 0.4891907274723053, -0.3432367742061615, 0.17360392212867737, 0.40085381269454956, 0.17476528882980347, 0.41968971490859985, 0.7130464911460876, -0.34174057841300964, 0.32306158542633057, -0.3295929729938507, -0.20928959548473358, 0.10669626295566559, -0.640089213848114, -0.6317755579948425, -0.04626952484250069, 0.12840652465820312, -0.008985484018921852 ]
http://arxiv.org/abs/2405.17390v1
http://arxiv.org/pdf/2405.17390v1
KSW: Khmer Stop Word based Dictionary for Keyword Extraction
2024-05-27T17:42:54
2024-05-27T17:42:54
Nimol Thuon, Wangrui Zhang, Sada Thuon
cs.IR
cs.IR, cs.CL
This paper introduces KSW, a Khmer-specific approach to keyword extraction that leverages a specialized stop word dictionary. Due to the limited availability of natural language processing resources for the Khmer language, effective keyword extraction has been a significant challenge. KSW addresses this by developing a tailored stop word dictionary and implementing a preprocessing methodology to remove stop words, thereby enhancing the extraction of meaningful keywords. Our experiments demonstrate that KSW achieves substantial improvements in accuracy and relevance compared to previous methods, highlighting its potential to advance Khmer text processing and information retrieval. The KSW resources, including the stop word dictionary, are available at the following GitHub repository: (https://github.com/back-kh/KSWv2-Khmer-Stop-Word-based-Dictionary-for-Keyword-Extraction.git).
[ -0.4455271363258362, -0.6672729849815369, 0.5857934355735779, 0.1305341124534607, -1.0861902236938477, 0.511379599571228, -0.23603393137454987, -0.30562347173690796, 0.5217353701591492, 0.8480502367019653, -0.30331090092658997, -0.7732640504837036, -0.9764136075973511, 0.3349347412586212, -0.10062150657176971, 0.514136016368866, -0.27258849143981934, 0.18666739761829376, 0.28597506880760193, -0.5484949946403503, -0.4717807471752167, -0.24160131812095642, -0.5046163201332092, -0.22668404877185822, 0.6758579611778259, 0.6486397981643677, 0.6307905316352844, 0.8961003422737122, 0.7300429344177246, 0.23236729204654694, 0.09262868762016296, -0.24596239626407623, -0.32738587260246277, 0.5808600187301636, -0.2429616004228592, -0.3738299608230591, -0.22396188974380493, 0.14321202039718628, 0.3393014967441559, 0.5251979231834412, -0.16195183992385864, 0.322417289018631, -0.23577545583248138, 0.7848061919212341, -1.1547377109527588, 0.4557608664035797, -0.6095930337905884, 0.09086263179779053, -0.7050225734710693, -0.27551281452178955, -0.08075842261314392, -0.3271685838699341, 0.41703546047210693, -0.697736918926239, -0.07312528043985367, -0.3436518609523773, 0.9008355140686035, 0.14523229002952576, -0.34661221504211426, -0.4834311008453369, -0.3507627248764038, 0.7444345951080322, -0.7590938210487366, 0.8350293040275574, 0.5480758547782898, 0.39138856530189514, -0.08156894892454147, -1.2413266897201538, -0.8807183504104614, -0.1162601187825203, 0.25279396772384644, 0.518744170665741, 0.3490231931209564, 0.5802882313728333, 0.09409834444522858, 0.25749582052230835, -0.44851288199424744, -0.24331976473331451, -0.29930439591407776, -0.194520965218544, 0.20652201771736145, -0.04422437399625778, 0.41799184679985046, -0.6065751910209656, -0.10232314467430115, 0.07391359657049179, -0.6916608810424805, 0.09908603876829147, 0.41168636083602905, 0.45871350169181824, 0.06383061408996582, 0.8926506638526917, -0.561430037021637, 0.5899299383163452, -0.3625401258468628, -0.6778033971786499, 0.08724496513605118, -0.32515034079551697, -0.34539198875427246, 0.14773960411548615, 0.38173454999923706, 0.6222237944602966, 0.24007205665111542, -0.28481370210647583, -0.2665310800075531, 0.015684137120842934, 0.21397000551223755, -0.8977389335632324, -0.602992057800293, 0.17179059982299805, -0.9810417294502258, -0.7235518097877502, -0.043763305991888046, -0.8797370791435242, -0.1363300234079361, -0.35066190361976624, 0.5763500332832336, -0.2152174711227417, -0.48387330770492554, -0.22719354927539825, -0.7726622819900513, 0.33091604709625244, -0.0661764144897461, -0.4897262752056122, 0.3602485954761505, 0.41358712315559387, 1.0405340194702148, -0.47502848505973816, -0.027538394555449486, -0.5304074883460999, 0.3022993206977844, -0.5390710830688477, 0.568254292011261, -0.9115548133850098, -0.8475285768508911, 0.038955993950366974, 0.3474772870540619, 0.3222857713699341, -0.8303675651550293, 0.5036775469779968, -0.724574863910675, 0.005173105746507645, -0.42623844742774963, -0.5102647542953491, -0.28835415840148926, 0.04889451339840889, -0.8055061101913452, 0.835999071598053, 0.36375686526298523, -0.5437089204788208, 0.7216963171958923, -0.6709744930267334, -0.6370007395744324, 0.6573386192321777, 0.02473928965628147, -0.1350424438714981, 0.15434996783733368, -0.07572140544652939, 0.08716228604316711, -0.13234911859035492, -0.13237173855304718, -0.22770902514457703, -0.09834598749876022, -0.2305227816104889, 0.07074249535799026, 0.7181281447410583, 0.4381672739982605, -0.12668079137802124, 0.20797231793403625, -0.8844566941261292, 0.13117824494838715, 0.3101848065853119, -0.6779290437698364, -0.7573984265327454, 0.011414961889386177, 0.24548961222171783, 0.19974510371685028, 0.5696671605110168, -0.8071448802947998, 0.09722594171762466, -0.40800487995147705, 0.11319701373577118, 0.7217555046081543, 0.16035056114196777, 0.4248063266277313, 0.07518128305673599, 0.7971944212913513, -0.32060420513153076, -0.04473118856549263, -0.18034569919109344, -0.6147793531417847, -0.4264409840106964, -0.6509280204772949, 0.5863089561462402, 0.6711378693580627, -1.000714659690857, 0.4710656702518463, -0.11518944054841995, -0.7016919255256653, -0.7027376890182495, 0.16364847123622894, 0.34045830368995667, 0.8837565183639526, 0.5258426070213318, -0.49817919731140137, -0.9081763029098511, -0.46066468954086304, -0.37844061851501465, -0.09242809563875198, -0.0535830520093441, 0.24942965805530548, 0.38162580132484436, -0.06219431012868881, 1.17111074924469, -0.8902324438095093, -0.0765441432595253, -0.31720414757728577, 0.11331511288881302, -0.1931481957435608, 0.16659758985042572, 0.22581157088279724, -1.0626518726348877, -0.8707423806190491, -0.24943995475769043, -0.5564833879470825, -0.4097497761249542, 0.4092056155204773, -0.18032889068126678, 0.34577861428260803, 0.411549836397171, -0.7584785223007202, 0.4635329842567444, 0.2998526692390442, -0.26788225769996643, 0.928604781627655, -0.09956119954586029, 0.14187344908714294, -1.2397836446762085, 0.16168808937072754, -0.42917144298553467, -0.17869457602500916, -0.4783979058265686, 0.36580339074134827, 0.11423058807849884, -0.10994897037744522, -0.2078332006931305, 0.5487614870071411, -0.23587533831596375, -0.028231700882315636, -0.5789353251457214, 0.2952362895011902, -0.057908397167921066, 0.14994995296001434, 0.3458525240421295, 0.4600924849510193, 0.22138793766498566, -0.5200389623641968, 0.600564181804657, 0.05354681983590126, -0.25991249084472656, 0.40057581663131714, -0.5893378257751465, 0.12189052999019623, 0.08968953788280487, 0.05168531462550163, -1.0526272058486938, -0.08060643821954727, 0.4279966652393341, -0.40544992685317993, 0.3223765790462494, -0.3402259051799774, -0.43162450194358826, -0.28480687737464905, -0.5316311120986938, 0.08575788140296936, 0.6037936210632324, -0.4263845384120941, 0.22554033994674683, 0.6436191201210022, -0.44451704621315, -0.5470133423805237, -0.3805444538593292, 0.3048318326473236, -0.22071754932403564, -0.13126562535762787, 0.3549943268299103, 0.1205151379108429, -0.4052330255508423, 0.25784048438072205, -0.4914983808994293, -0.3077560067176819, -0.10316088795661926, -0.07984171062707901, 0.3906499147415161, -0.1447574496269226, 0.2725133001804352, 0.11538995802402496, -0.3025606572628021, -0.19122551381587982, -0.418137788772583, 0.6656575202941895, 0.5279902219772339, 0.07068474590778351, -0.1565261036157608, 0.2267441600561142, 0.6707031726837158, -0.2964290976524353, 0.486443430185318, 0.5932466983795166, -0.5764181017875671, 0.2721041142940521, -0.37221717834472656, -0.12139109522104263, -0.48337453603744507, 0.4202664792537689, -0.6677491068840027, -0.6095365285873413, 0.5145999789237976, -0.37736472487449646, 0.015946000814437866, 0.47942012548446655, 0.45212095975875854, 0.002210346283391118, 0.9650360345840454, 0.7756998538970947, -0.01042500976473093, 0.32303640246391296, 0.01087021455168724, 0.3413538932800293, -0.7241289019584656, -0.1558392494916916, -0.6396505832672119, -0.0861096978187561, -0.7130516171455383, -0.325057715177536, -0.19384685158729553, 0.5073277950286865, 0.2348044216632843, 0.5722863674163818, -0.5869443416595459, 0.010661804117262363, 0.34352654218673706, -0.4140726327896118, 0.25940343737602234, -0.2974953353404999, -0.5778220891952515, -0.3623245358467102, -0.16352608799934387, -0.5679025053977966, 1.0898027420043945, -0.1002286747097969, 0.4705003798007965, -0.12593047320842743, 0.7278553247451782, 0.38486894965171814, 0.12143266946077347, -1.0586868524551392, 0.6563588380813599, -0.012852069921791553, -0.2608911097049713, -0.6474059820175171, -0.148593008518219, -1.0806193351745605, 0.1532427966594696, 0.14293083548545837, -0.5744900107383728, -0.2994980812072754, -0.33253371715545654, 0.1392415314912796, 0.323968768119812, -0.6931943893432617, 0.9260361790657043, 0.3341674506664276, 0.42285579442977905, -0.43316367268562317, -0.661953330039978, 0.16264301538467407, -0.30396533012390137, 0.09067069739103317, -0.31118401885032654, -0.6658496856689453, 0.8903704881668091, -0.9618902802467346, 0.1566285789012909, -0.5045539736747742, -0.06919834017753601, 0.37544453144073486, 0.04335717856884003, 0.5307995676994324, -0.10714345425367355, 0.32245832681655884, 0.3082113564014435, 0.40278732776641846, -0.3390236794948578, -0.5001897215843201, 0.47090864181518555, -0.36830225586891174, -0.1871175915002823, -0.06323455274105072, -0.3040788173675537, 0.09459536522626877, 0.6808716654777527, 0.4779392182826996, 0.34273120760917664, 0.12341280281543732, 0.05945363640785217, 0.34442269802093506, -0.38137286901474, 0.4792921841144562, 0.773594856262207, -0.505314826965332, -0.7712519764900208, 1.3567134141921997, 0.848508894443512, 0.06207701191306114, 0.5650615096092224, 0.4314907491207123, -0.5431036353111267, -0.5982815027236938, -0.35050129890441895, -0.09282977133989334, -0.6673474311828613, -0.08746378123760223, -0.6326969861984253, -0.1632460206747055, -0.7248619794845581, -0.30118727684020996, -0.1906287968158722, -0.6163449287414551, 0.1492425948381424, 0.07322056591510773, 0.3670635521411896, 0.6979940533638, -0.09819162636995316, 0.3147827982902527, -0.9532124996185303, 1.0123023986816406, 0.4263116419315338, 0.5042024254798889, -0.19932344555854797, -0.13305354118347168, -0.19100448489189148, -0.36137011647224426, -0.05661644786596298, -1.2249763011932373, 0.3174005448818207, 0.039162527769804, 0.5533264875411987, 0.6816422343254089, 0.3621072471141815, 0.6247305274009705, -0.46620115637779236, 1.124215006828308, 0.16575242578983307, -0.8212165832519531, 0.7547106742858887, -0.1989412009716034, 0.7274447083473206, 0.496091365814209, 0.3963755667209625, -0.9257577657699585, -0.7403331995010376, -0.5795795321464539, -0.9960000514984131, 0.3289323151111603, 0.13219326734542847, -0.17870719730854034, -0.3749449551105499, 0.34027981758117676, 0.25360873341560364, 0.43279415369033813, -0.1482619196176529, -0.35353097319602966, -0.18342934548854828, -0.39196306467056274, 0.27910858392715454, -0.5212622880935669, 0.2782675325870514, -0.2214771956205368, 0.6024340391159058, -0.04672009125351906, -0.1784115582704544, 0.31413543224334717, -0.49885088205337524, -0.15570245683193207, 0.017897628247737885, 0.44072726368904114, 0.8433519005775452, -0.26601293683052063, 0.12838107347488403, 0.3393946886062622, -1.3907026052474976, -0.06941457092761993, 0.09835037589073181, -0.1775863766670227, 0.4360613226890564, 0.35928231477737427, 0.06456968933343887, 0.1929284781217575, -0.8232012987136841, 0.27735552191734314, -0.21619842946529388, 0.02540697157382965, -0.14999829232692719, -0.2772922217845917, 0.08403386920690536, 0.004918940830975771, 0.5551362037658691, -0.21101008355617523, 0.13327860832214355, -0.20286013185977936, 0.30414584279060364, 0.43609869480133057, -0.41892021894454956, -0.14906354248523712, 0.45359861850738525, 0.13350895047187805, -0.7552765607833862, 0.3890848159790039, -0.3326473534107208, -0.550020694732666, 0.47586074471473694, 0.43348339200019836, 1.120717167854309, -0.38012903928756714, 0.04590632766485214, 0.35050153732299805, 0.2290976345539093, 0.38590896129608154, 0.8834448456764221, -0.6413403153419495, -0.694145143032074, -0.6044445633888245, -0.885841429233551, -0.45900869369506836, 0.42318058013916016, -0.7432150840759277, 0.4819207787513733, -0.2988685071468353, -0.09211745113134384, -0.16768600046634674, 0.42770835757255554, -0.20914600789546967, 0.19020164012908936, -0.16899928450584412, 1.1717084646224976, -0.11074157059192657, 1.011176586151123, 0.7778114080429077, -0.27711722254753113, -0.5479785203933716, 0.18357603251934052, -0.057297367602586746, -0.5837545394897461, 0.5416446924209595, 0.2965056598186493, -0.11156455427408218, 0.06747906655073166, -0.47515472769737244, -0.7931391596794128, 0.8561586141586304, -0.025080712512135506, -0.438180148601532, 0.10845614969730377, 0.03426253795623779, 0.18670432269573212, -0.05065188556909561, -0.4541912376880646, 0.8536946773529053, 0.6474342942237854, 0.0059981271624565125, -0.8068802356719971, 0.12943850457668304, -0.09615147113800049, 0.07057027518749237, 0.3997688889503479, -0.22709505259990692, 0.23926150798797607, -0.03713710233569145, -0.1512557566165924, 0.22045491635799408, 0.49429449439048767, 0.3455788493156433, 0.16417773067951202, 0.7751166224479675, 0.8365665674209595, 0.6959369778633118, 0.062188901007175446, 0.595434308052063, -0.6415616869926453, 0.3213016986846924, 1.0882487297058105, -0.2416594922542572, 0.7577829360961914, 0.5279040336608887, -0.32784825563430786, 0.26063984632492065, 0.7009296417236328, 0.24462297558784485, 1.0356206893920898, 0.03546476736664772, -0.6759573221206665, 0.04286599159240723, -0.12235483527183533, -0.2450159639120102, 0.815820038318634, 0.29317688941955566, -0.1785733699798584, -0.427166610956192, 0.165225550532341, 0.047540031373500824, -0.26887020468711853, -0.3260365128517151, 0.6311027407646179, 0.20757347345352173, -0.5502724051475525, 0.05482916161417961, 0.18026188015937805, 0.5447120666503906, -0.8615426421165466, -0.44812366366386414, 0.40597018599510193, -0.07599565386772156, 0.12525470554828644, -0.7185248136520386, 0.5063933730125427, -0.1480952650308609, -0.09522569924592972, -0.058234021067619324, 1.3823606967926025, -0.4492945373058319, -0.11267206817865372, 0.44592589139938354, 0.43110132217407227, 0.3137561082839966, -0.12357659637928009, -0.5990338325500488, -0.199456125497818, -0.3174856901168823, -0.4422142505645752, 0.2304980456829071, 0.34885016083717346, 0.33755919337272644, 0.33458802103996277, 0.9148018956184387, 0.6693607568740845, -0.031769052147865295, 0.09926461428403854, 0.4718809425830841, -0.7174482941627502, -0.7564915418624878, -0.9218913912773132, 0.14057624340057373, -0.2294543981552124, -0.3696960210800171, 0.6873154640197754, 0.6664904952049255, 0.7682769894599915, -0.0759458988904953, 1.1590328216552734, -0.31151947379112244, 0.544921875, -0.2283787578344345, 1.1122862100601196, -0.3923749625682831, -0.45513927936553955, -0.4635907709598541, -0.8569883704185486, -0.10779495537281036, 0.5189956426620483, 0.07550309598445892, -0.24401693046092987, 0.6371975541114807, 0.5167551636695862, 0.3028044104576111, 0.016020476818084717, 0.6900036334991455, 0.07617846876382828, 0.3719201982021332, -0.27484002709388733, 0.27049586176872253, -0.09627391397953033, 0.7158771753311157, -0.42581164836883545, -0.1754675656557083, -0.19969041645526886, -0.6923539638519287, -0.4429214596748352, -0.8134703040122986, 0.011086426675319672, -0.30998724699020386, -0.05085233226418495, 0.7424586415290833, 0.48373943567276, -0.7909631133079529, 0.18934044241905212, -0.2500593960285187, 0.6296182870864868, -0.17953860759735107, -0.3889256715774536, 0.5115594863891602, -0.6769019365310669, -0.6312471628189087, 0.2502688765525818, 0.7086568474769592, 0.005448285024613142, -0.20323802530765533, -0.2653068006038666, -0.2825794517993927, 0.1520370990037918, 0.8277663588523865, 0.2781960666179657, -0.6068580746650696, -0.4581614136695862, -0.09400825947523117, -0.09981927275657654, -0.12073425948619843, 0.8349724411964417, -0.9246687293052673, 0.9858060479164124, 0.7496739029884338, 0.5047963261604309, 0.28697240352630615, -0.3781649172306061, 0.7036702632904053, -0.5925796627998352, 0.27300500869750977, 0.1363682597875595, 0.38801565766334534, 0.021502187475562096, -0.14987199008464813, 0.5401080250740051, 0.9466921091079712, -0.3478299379348755, -0.8320349454879761, 0.23669913411140442, -0.7953970432281494, -0.23830990493297577, 0.8311638236045837, -0.27936863899230957, -0.0932784155011177, -0.6491746306419373, -0.45465850830078125, 0.844911515712738, -0.08343701809644699, 0.7323655486106873, 1.060254693031311, 0.2601604759693146, -0.05035894736647606, -0.7820826172828674, 0.6244242787361145, -0.07361381500959396, -0.4681251347064972, -0.23654118180274963, -0.11383209377527237, 0.5004037022590637, 0.17993956804275513, 0.9243888854980469, -0.210213765501976, 0.4422857463359833, 0.13493312895298004, 0.17765267193317413, 0.23600323498249054, -0.2264905422925949, -0.1288716346025467, 0.2880537509918213, -0.10023478418588638, -0.6880882382392883 ]
http://arxiv.org/abs/2405.17386v1
http://arxiv.org/pdf/2405.17386v1
MindMerger: Efficient Boosting LLM Reasoning in non-English Languages
2024-05-27T17:41:54
2024-05-27T17:41:54
Zixian Huang, Wenhao Zhu, Gong Cheng, Lei Li, Fei Yuan
cs.CL
cs.CL, cs.AI
Reasoning capabilities are crucial for Large Language Models (LLMs), yet a notable gap exists between English and non-English languages. To bridge this disparity, some works fine-tune LLMs to relearn reasoning capabilities in non-English languages, while others replace non-English inputs with an external model's outputs such as English translation text to circumvent the challenge of LLM understanding non-English. Unfortunately, these methods often underutilize the built-in skilled reasoning and useful language understanding capabilities of LLMs. In order to better utilize the minds of reasoning and language understanding in LLMs, we propose a new method, namely MindMerger, which merges LLMs with the external language understanding capabilities from multilingual models to boost the multilingual reasoning performance. Furthermore, a two-step training scheme is introduced to first train to embeded the external capabilities into LLMs and then train the collaborative utilization of the external capabilities and the built-in capabilities in LLMs. Experiments on three multilingual reasoning datasets and a language understanding dataset demonstrate that MindMerger consistently outperforms all baselines, especially in low-resource languages. Without updating the parameters of LLMs, the average accuracy improved by 6.7% and 8.0% across all languages and low-resource languages on the MGSM dataset, respectively.
[ -0.55976402759552, -0.38656219840049744, 0.7012097835540771, -0.0585966520011425, -0.34412121772766113, 0.1680126190185547, -0.5509344339370728, -0.45590540766716003, 0.16250275075435638, 0.3192131519317627, -0.6765484809875488, -0.3499203622341156, -0.49138012528419495, 0.342111200094223, 0.220805823802948, 0.8047794699668884, -0.1237790435552597, 0.4598706066608429, -0.5655866861343384, -0.33827856183052063, -0.37867194414138794, -0.6172863245010376, -0.7510749697685242, -0.8885220289230347, 0.45629066228866577, 0.4244118630886078, 0.40451598167419434, 0.2674610912799835, 0.32070955634117126, 0.26030319929122925, -0.06730271130800247, 0.6209269165992737, -0.3527511954307556, 0.00655362056568265, -0.5048242211341858, -0.7483595013618469, -0.23775148391723633, -0.15265774726867676, 0.3432616591453552, 0.4395529329776764, -0.15138381719589233, 0.08306571841239929, 0.10202329605817795, 0.7229032516479492, -0.46355679631233215, 0.39376121759414673, -0.7393941879272461, 0.021746696904301643, -0.002804472343996167, -0.23429423570632935, -0.38493216037750244, -0.030889537185430527, -0.14912161231040955, -0.5958271622657776, 0.20660577714443207, 0.2882462441921234, 0.5524803996086121, 0.46461930871009827, -0.09775851666927338, -0.01949223503470421, -0.39274632930755615, 0.9324389696121216, -0.5785535573959351, 0.6736640334129333, 0.3740638494491577, 0.38979825377464294, -0.0736822709441185, -0.2087746560573578, -0.5935942530632019, -0.15592510998249054, -0.3038591742515564, 0.16624188423156738, -0.2305057942867279, -0.076603002846241, 0.2424463927745819, 0.381479948759079, -0.6119577884674072, 0.22115923464298248, -0.12384776026010513, -0.27698543667793274, 0.6534003615379333, -0.13881151378154755, 0.0320361964404583, -0.0608939602971077, -0.14573325216770172, -0.2540929913520813, -0.5990349650382996, 0.06270868331193924, 0.3820793628692627, 0.3520967364311218, -0.10466162860393524, 0.5194663405418396, -0.11259693652391434, 0.7047851085662842, 0.1537809818983078, -0.5288414359092712, 0.2536385953426361, -0.08226887881755829, -0.1375388503074646, 0.11100776493549347, 0.615095853805542, 0.3698781728744507, 0.36291244626045227, -0.23924703896045685, -0.3110359311103821, 0.1950404942035675, -0.1588953137397766, -0.6760905385017395, -0.27810752391815186, 0.27365848422050476, -0.15520502626895905, 0.17039057612419128, -0.31967243552207947, -0.5578895211219788, -0.30182185769081116, -0.36729609966278076, 0.2256302535533905, -0.5663085579872131, -0.49807873368263245, 0.4466537833213806, -0.09024997800588608, 0.33651211857795715, 0.19375143945217133, -0.7530139684677124, -0.09333846718072891, 0.6997891068458557, 0.6210041642189026, -0.24802105128765106, -0.27513712644577026, -0.4670049250125885, 0.306402325630188, -0.412588506937027, 1.0715185403823853, -0.44542890787124634, -0.2808917760848999, -0.2893269658088684, -0.08376718312501907, -0.08396284282207489, -0.5991262197494507, 0.436763197183609, -0.5248624086380005, 0.572085440158844, -0.22223716974258423, -0.6252330541610718, -0.5015032291412354, 0.5964983701705933, -0.3888744115829468, 0.8948615193367004, 0.006517887115478516, -0.7517723441123962, 0.2708856463432312, -0.4328123927116394, -0.5027974843978882, 0.17666839063167572, -0.36375582218170166, -0.07917957752943039, 0.07637099176645279, 0.683295726776123, 0.5953671932220459, -0.42920029163360596, 0.4696129262447357, -0.08406678587198257, -0.3132816255092621, 0.0837659165263176, -0.327623188495636, 0.6381844282150269, 0.03675521910190582, -0.04487059637904167, 0.07228520512580872, -0.5543683171272278, 0.3019063174724579, 0.31720849871635437, -0.2764929533004761, -0.35418906807899475, -0.09268801659345627, -0.3024037182331085, 0.40875348448753357, 0.35352832078933716, -0.36158278584480286, -0.01892867684364319, -0.6170757412910461, 0.15381979942321777, 0.45858293771743774, -0.0545172356069088, 0.37924259901046753, -0.46230944991111755, 0.738236665725708, -0.0925096720457077, -0.2125443071126938, -0.16229605674743652, -0.4556961953639984, -1.0129624605178833, -0.5291486382484436, 0.043833810836076736, 0.9799102544784546, -1.2410696744918823, 0.5209267139434814, -0.3870691657066345, -0.487643301486969, -0.7365566492080688, 0.4391327500343323, 0.6976333856582642, 0.47474074363708496, 0.6205242872238159, 0.015008409507572651, -0.49655401706695557, -1.0978903770446777, -0.44864630699157715, -0.3049844205379486, -0.10849609225988388, 0.17286212742328644, 0.3409527540206909, -0.3095240592956543, 0.6024125218391418, -0.4633943736553192, -0.17430609464645386, -0.7929761409759521, -0.26500532031059265, 0.39941978454589844, 0.4110899567604065, 0.34123411774635315, -0.4918292462825775, -0.22798743844032288, 0.09778282046318054, -0.7612344622612, -0.11023125052452087, -0.015217140316963196, -0.398490309715271, 0.40474212169647217, 0.48209089040756226, -0.6433627009391785, -0.0702895075082779, 0.6536271572113037, -0.14283260703086853, 0.4756937325000763, -0.2214156985282898, 0.13783897459506989, -1.1223262548446655, -0.19080229103565216, 0.1748909056186676, -0.2761392891407013, -0.48663610219955444, 0.27349400520324707, 0.24179919064044952, 0.0210389643907547, -0.624828040599823, 0.8355324268341064, -0.45720016956329346, 0.15888690948486328, -0.1830873042345047, 0.30692583322525024, 0.13637468218803406, 0.7255617380142212, 0.17030830681324005, 0.9150366187095642, 0.5914689302444458, -0.5932784080505371, 0.45187103748321533, 0.09491309523582458, -0.3926312029361725, 0.8203741908073425, -0.2519370913505554, 0.18318313360214233, -0.3177505433559418, 0.12780122458934784, -0.7615681290626526, -0.11977530270814896, 0.26474106311798096, -0.39814379811286926, 0.5061067938804626, -0.2256607711315155, -0.6715430617332458, -0.3548746407032013, -0.06564830243587494, 0.1270725131034851, 0.34679046273231506, -0.8311125636100769, 0.8537753820419312, 0.3644511103630066, 0.047667425125837326, -0.4750992953777313, -0.8607689142227173, 0.01895851455628872, -0.37543731927871704, -0.603563129901886, 0.189728781580925, -0.07420646399259567, -0.43571221828460693, -0.15336143970489502, -0.19809231162071228, 0.1807997226715088, -0.1591835469007492, -0.35585758090019226, 0.3816225826740265, -0.05488274618983269, 0.2959960103034973, 0.10377408564090729, -0.45915600657463074, 0.057104144245386124, -0.5067200660705566, 0.35664990544319153, -0.26256293058395386, -0.4667356312274933, -0.09679488837718964, 0.3943038880825043, 0.3392244279384613, -0.38728323578834534, 0.9112696051597595, 0.5104808211326599, -0.35030773282051086, -0.3269895315170288, -0.7276597023010254, -0.27542611956596375, -0.47950488328933716, 0.433759868144989, -0.6319171786308289, -1.1263532638549805, 0.2366805374622345, 0.10679206252098083, 0.2918620705604553, 0.24436555802822113, 0.5525607466697693, 0.05137266218662262, 1.0587382316589355, 0.5505890846252441, -0.20455482602119446, 0.11794426292181015, -0.080291248857975, 0.36795774102211, -0.7292641997337341, -0.3429870009422302, -0.11312641948461533, -0.10392232984304428, -0.47782444953918457, -0.9453549385070801, 0.1964029222726822, 0.1528848558664322, -0.009655103087425232, 0.2497466504573822, -0.3785736858844757, 0.7435302734375, 0.3228929936885834, 0.022337572649121284, 0.5083072781562805, 0.3078892230987549, -0.6279043555259705, -0.22298188507556915, -0.949599027633667, -0.46811631321907043, 0.8100836873054504, 0.05820225179195404, 0.7584964632987976, 0.22367116808891296, 0.6353242993354797, -0.19221673905849457, 0.45747798681259155, -1.0077074766159058, 0.7038066983222961, -0.080905981361866, -0.38281047344207764, 0.030626552179455757, -0.6703991293907166, -0.5173468589782715, 0.8284903168678284, -0.15676547586917877, -0.5952431559562683, -0.38527756929397583, 0.33766674995422363, -0.015629535540938377, 0.5967418551445007, -0.7609218955039978, 0.5129967331886292, -0.6721291542053223, -0.462190717458725, -0.43810319900512695, -0.23556536436080933, 0.4223935902118683, -0.18999698758125305, 0.42588213086128235, -0.24054771661758423, -0.20289158821105957, 0.5884321331977844, 0.13106268644332886, 0.5467067360877991, -0.10296738147735596, -0.4765309691429138, 0.14980392158031464, 0.21261346340179443, 0.47477608919143677, 0.0641341507434845, -0.08160936087369919, 0.42581498622894287, -0.29279276728630066, -0.32244375348091125, -0.7916924953460693, 0.6293857097625732, -0.5358566045761108, -1.0715235471725464, -0.3478250205516815, -0.7928667664527893, -0.6532209515571594, 0.06177719309926033, 0.18326185643672943, 0.13160204887390137, 0.06712091714143753, -0.09729316085577011, 0.6811301112174988, -0.26591062545776367, 0.09678152203559875, 0.7803457975387573, -0.31725746393203735, -0.5573939085006714, 0.8850476145744324, -0.06653665006160736, 0.21550196409225464, 0.6427846550941467, 0.18159490823745728, -0.5314581394195557, -0.33279693126678467, -0.5593610405921936, 0.5760090947151184, -0.9328855276107788, -0.17953376471996307, -0.86684650182724, -0.03150907903909683, -0.10567998886108398, -0.20931318402290344, -0.31238827109336853, -0.45356494188308716, 0.0015646717511117458, -0.2852070927619934, 0.4185149073600769, 0.2761336863040924, -0.06524862349033356, -0.0010298171546310186, -0.8217175602912903, 0.25172415375709534, 0.2880936861038208, 0.36639973521232605, 0.07310467958450317, -0.6892656087875366, -0.4626634418964386, -0.046584051102399826, -0.14648723602294922, -0.7105767726898193, 0.3447130024433136, 0.035458531230688095, 0.9379361271858215, 0.3659757077693939, -0.37553930282592773, 0.9023110866546631, -0.4611402451992035, 0.3953687846660614, 0.2601436972618103, -0.7378880977630615, 0.5308602452278137, -0.25915393233299255, 0.5395772457122803, 0.5195692181587219, 0.4424014389514923, -0.6003353595733643, -0.4588898718357086, -0.4636882543563843, -0.8168025016784668, 0.6108697652816772, -0.07963622361421585, -0.19524215161800385, -0.0557861402630806, 0.26781129837036133, -0.008558488450944424, 0.20097710192203522, -0.7818512916564941, -0.18781466782093048, 0.09558505564928055, -0.30652523040771484, -0.4733108580112457, 0.010143371298909187, -0.1573566347360611, -0.6408224105834961, 1.0354995727539062, -0.4649098813533783, 0.15602827072143555, -0.11732753366231918, -0.23899616301059723, -0.01573706790804863, 0.4157842993736267, 0.12038666754961014, 0.5710657835006714, 0.15357805788516998, 0.2634468078613281, 0.755526065826416, -0.05169733241200447, 0.32310765981674194, 0.21393617987632751, 0.1425902396440506, -0.2753552496433258, 0.3390843868255615, 0.5154297947883606, 0.2347005158662796, -1.0889791250228882, 0.1603880673646927, -0.18553784489631653, -0.2898414731025696, -0.2537860870361328, 0.2779545187950134, 0.5102373957633972, 0.5171348452568054, 0.14247074723243713, 0.010323703289031982, -0.2456686943769455, -0.0031843623146414757, 0.03187315911054611, 0.5418380498886108, -0.1493951827287674, -0.04864403232932091, 0.39603838324546814, 0.07795476913452148, -0.04482884705066681, 0.376710444688797, -0.5823865532875061, -0.6703190803527832, 0.28644707798957825, 0.7561810612678528, 0.8417168855667114, -0.09294073283672333, -0.12677504122257233, 0.4458850920200348, 0.5652937889099121, -0.3001299798488617, 0.4354357123374939, -0.10735342651605606, -1.162515640258789, -0.8092833757400513, -0.5308896899223328, -0.5441040396690369, 0.2667199671268463, -0.5296803116798401, 0.10726017504930496, -0.19549524784088135, 0.01164988148957491, -0.3691836893558502, 0.07558706402778625, -0.7252674698829651, 0.010115500539541245, 0.38140878081321716, 1.0127686262130737, -0.8618918061256409, 0.8027826547622681, 1.061966896057129, -0.006760045420378447, -0.7201909422874451, -0.04267622157931328, 0.052118606865406036, -0.9220799207687378, 0.3922756612300873, 0.5678307414054871, -0.5873884558677673, 0.1268823742866516, -0.2058064192533493, -0.9169550538063049, 0.9179036617279053, 0.6024129986763, -0.6511955261230469, 0.2716677486896515, -0.18151943385601044, 0.537652850151062, -0.39590489864349365, 0.04703502729535103, 0.686812698841095, 0.4883253872394562, 0.06295745819807053, -0.5225954651832581, -0.03912561014294624, -0.24866452813148499, -0.04794999957084656, 0.40583521127700806, -0.610060453414917, 0.3961706757545471, -0.3627062141895294, -0.3345458507537842, -0.2935694456100464, 0.7159720063209534, 0.645869791507721, -0.11149413138628006, 0.5698856115341187, 1.0083231925964355, 1.0878140926361084, -0.03450774401426315, 0.9710140228271484, -0.5000544190406799, 0.09158500283956528, 1.1154122352600098, -0.5226852297782898, 0.7472018599510193, 0.4720222055912018, -0.13851065933704376, 0.49483945965766907, 0.4079597294330597, -0.003619218012318015, 0.3068901598453522, 0.002127681626006961, -0.39219045639038086, -0.6301154494285583, -0.07852351665496826, -0.09274846315383911, 0.4525897800922394, 0.5370947122573853, -0.0271916501224041, -0.2296038269996643, 0.05387963727116585, 0.4155619442462921, 0.16807235777378082, -0.3698834180831909, 0.6757554411888123, 0.19122938811779022, -0.9741957783699036, 0.7074065208435059, 0.24115286767482758, 1.0711737871170044, -0.6651197075843811, 0.14926157891750336, -0.16414016485214233, 0.46505823731422424, -0.19717678427696228, -0.7712757587432861, 0.3007863759994507, 0.36004912853240967, -0.18102172017097473, -0.39391079545021057, 0.7229390740394592, -0.6709088087081909, -0.7972740530967712, 0.7332197427749634, 1.102596640586853, 0.18113268911838531, 0.11819515377283096, -0.8404000401496887, -0.4000067710876465, 0.16491936147212982, -0.09060540050268173, 0.38016054034233093, 0.30707985162734985, 0.030166437849402428, 0.9622946381568909, 0.8534313440322876, 0.28432729840278625, -0.4132595360279083, 0.36716505885124207, 0.7355276942253113, -0.6330961585044861, -0.6043732166290283, -1.1003434658050537, 0.07311341166496277, 0.04108802229166031, 0.060896001756191254, 0.9725918173789978, 0.5993791818618774, 1.2642947435379028, 0.12890325486660004, 0.8349471688270569, 0.22399389743804932, 0.5783980488777161, -0.6642767190933228, 0.5657218098640442, -0.6945418119430542, 0.13836659491062164, 0.06997624039649963, -0.7913120985031128, -0.2197873890399933, 0.9329351186752319, -0.36732473969459534, 0.11033517122268677, 0.7207451462745667, 1.0150010585784912, -0.041365478187799454, -0.051067035645246506, 0.3995072543621063, -0.15735386312007904, 0.24942253530025482, 0.7911874651908875, 0.862686812877655, 0.2264472097158432, 0.5759598612785339, -0.3306158781051636, -0.3376920819282532, 0.16926349699497223, -0.8978577852249146, -1.3943612575531006, -0.08446022123098373, -0.2069174200296402, -0.17771892249584198, -0.1444777101278305, 1.3102518320083618, 0.5646786093711853, -0.8021777272224426, -0.3718818426132202, 0.11866112053394318, 0.20919226109981537, -0.39230403304100037, -0.25043219327926636, 0.07497873902320862, -0.4662177562713623, -0.5941343903541565, 0.6363794803619385, 0.3917735517024994, 0.05973061919212341, -0.38660570979118347, -0.13767153024673462, -0.16609278321266174, 0.1315527856349945, 0.7248509526252747, -0.043311238288879395, -0.7329318523406982, 0.0022877976298332214, -0.023692522197961807, 0.12791380286216736, 0.10341420024633408, 0.750408947467804, -0.9521723985671997, 0.37111666798591614, 0.37316465377807617, 0.7393321394920349, 0.27319011092185974, -0.1653098613023758, 0.5827274322509766, -0.8409487009048462, 0.5478545427322388, 0.05150361359119415, 0.7624739408493042, 0.8228560090065002, -0.3627685606479645, 0.4764993190765381, 0.1658448725938797, -0.19561722874641418, -0.42206519842147827, 0.3429321348667145, -0.28268641233444214, -0.48710817098617554, 1.2216432094573975, -0.07427218556404114, -0.0916142538189888, -0.1544792354106903, -0.11488879472017288, 0.2943562865257263, -0.35150447487831116, 0.4667675197124481, 0.8793549537658691, -0.3696417212486267, -0.4479537904262543, -0.6907415986061096, 0.319102942943573, 0.49112382531166077, -0.8959220051765442, 0.04204274341464043, 0.5200190544128418, 0.19833046197891235, 0.12919718027114868, 0.5350013375282288, -0.10605186223983765, 0.09997832030057907, -0.3270637094974518, 0.1338081806898117, -0.226573646068573, -0.3372569680213928, -0.4239148795604706, -0.15478046238422394, 0.11153864860534668, 0.149481400847435 ]
http://arxiv.org/abs/2405.17383v1
http://arxiv.org/pdf/2405.17383v1
Unlocking the Secrets of Linear Complexity Sequence Model from A Unified Perspective
2024-05-27T17:38:55
2024-05-27T17:38:55
Zhen Qin, Xuyang Shen, Dong Li, Weigao Sun, Stan Birchfield, Richard Hartley, Yiran Zhong
cs.CL
cs.CL
We present the Linear Complexity Sequence Model (LCSM), a comprehensive solution that unites various sequence modeling techniques with linear complexity, including linear attention, state space model, long convolution, and linear RNN, within a single framework. The goal is to enhance comprehension of these models by analyzing the impact of each component from a cohesive and streamlined viewpoint. Specifically, we segment the modeling processes of these models into three distinct stages: Expand, Oscillation, and Shrink (EOS), with each model having its own specific settings. The Expand stage involves projecting the input signal onto a high-dimensional memory state. This is followed by recursive operations performed on the memory state in the Oscillation stage. Finally, the memory state is projected back to a low-dimensional space in the Shrink stage. We perform comprehensive experiments to analyze the impact of different stage settings on language modeling and retrieval tasks. Our results show that data-driven methods are crucial for the effectiveness of the three stages in language modeling, whereas hand-crafted methods yield better performance in retrieval tasks.
[ -0.09846886992454529, -0.6971913576126099, 0.7638060450553894, -0.12427734583616257, -0.24402301013469696, 0.0391952283680439, 0.11897744238376617, -0.4303957521915436, -0.23041972517967224, 0.6630069613456726, -0.8190634846687317, -0.21376146376132965, -0.4842686355113983, -0.0870789885520935, -0.5789373517036438, 0.8458800911903381, 0.11060366034507751, 0.21002790331840515, 0.018281733617186546, -0.0296096820384264, -0.3704153001308441, -0.4626809358596802, -0.4221821129322052, -0.4065544605255127, 0.4844571352005005, 0.2313471883535385, 0.7119059562683105, 0.7959942817687988, 0.5508875846862793, 0.3219856321811676, -0.4056863784790039, -0.1320594698190689, -0.6475870609283447, 0.3200989067554474, -0.11516404896974564, -0.5346634387969971, -0.26365235447883606, -0.18049722909927368, 0.552179217338562, 1.4032193422317505, -0.23132571578025818, 0.28390318155288696, 0.2634640336036682, 0.8481693267822266, -0.34353622794151306, -0.08293727040290833, -0.38818541169166565, 0.19961607456207275, 0.11132264137268066, 0.08369474112987518, -0.5384283065795898, -0.2894228398799896, 0.523587703704834, -0.4741923213005066, 0.3038053810596466, -0.004932446405291557, 0.41969534754753113, 0.2661207616329193, -0.43262627720832825, -0.5617382526397705, -1.1893916130065918, 0.9822277426719666, -0.6970113515853882, 0.47185495495796204, -0.198708638548851, -0.03797212243080139, -0.21042773127555847, -0.5884179472923279, -0.15656310319900513, -0.13625690340995789, 0.07715301960706711, -0.35708269476890564, 0.08416462689638138, 0.47718653082847595, 0.4529242217540741, 0.5641527771949768, -0.6946306824684143, 0.016892295330762863, -0.6809004545211792, -0.20773519575595856, 0.40111857652664185, 0.35369357466697693, 0.29407235980033875, 0.05979645624756813, -0.4286436140537262, 0.1250627487897873, -0.501562774181366, 0.11348725110292435, 0.0850423127412796, 0.5056735277175903, 0.17386311292648315, 0.5586639642715454, -0.06500589847564697, 0.8020842671394348, -0.2673152685165405, -0.2652064263820648, -0.01890050806105137, -0.4951903223991394, -0.2947465181350708, -0.20700953900814056, 0.46934476494789124, -0.39088544249534607, -0.11799464374780655, -0.09540058672428131, -0.1342095285654068, -0.23313884437084198, 0.3074498772621155, -0.5448492765426636, 0.1381119340658188, 0.3359243869781494, -0.5917362570762634, -0.06533342599868774, 0.06846212595701218, -0.7981496453285217, -0.46470680832862854, -0.5090649724006653, 0.5147546529769897, -0.3572317063808441, -0.013549028895795345, 0.40878602862358093, 0.2766247093677521, 0.1929543912410736, 0.41266685724258423, -0.6456308364868164, 0.5577667951583862, 0.9060343503952026, 0.7280523777008057, -0.23831357061862946, 0.10109751671552658, -0.41932958364486694, -0.27084285020828247, -0.2014039158821106, 0.18188731372356415, -0.5561749935150146, -0.14027026295661926, 0.03366583585739136, -0.24967515468597412, 0.0400962233543396, -0.22061395645141602, 0.5377556681632996, -0.7919982075691223, 0.16475826501846313, -0.17286130785942078, -0.7836530208587646, -0.29190725088119507, -0.27339839935302734, -0.9890192747116089, 0.9897903203964233, -0.23434366285800934, -0.49669405817985535, -0.1730903685092926, -0.6840667128562927, -0.37520867586135864, -0.0961608961224556, -0.030019352212548256, -0.33932462334632874, 0.5116590261459351, 0.06146882846951485, 0.49015089869499207, -0.2761801481246948, 0.013514840975403786, -0.3390701711177826, -0.34129881858825684, 0.2148626297712326, -0.19146336615085602, 0.5452688336372375, 0.34296268224716187, -0.07736615836620331, -0.001402315916493535, -1.0131055116653442, 0.02950766310095787, 0.1313546895980835, -0.4156224727630615, -0.22847901284694672, 0.214198037981987, -0.31364578008651733, 0.29587656259536743, 0.37826600670814514, -0.47114884853363037, 0.18922048807144165, -0.5841492414474487, 0.44514110684394836, 0.5351273417472839, -0.007509520743042231, 0.8309035301208496, 0.12216362357139587, 0.625789999961853, 0.11886990070343018, 0.3180769383907318, -0.7846843004226685, -0.3242756128311157, -0.72933429479599, 0.21653997898101807, 0.06081925332546234, 0.5306710004806519, -0.48046982288360596, 0.15394507348537445, -0.20261254906654358, -0.3346717357635498, -0.44578295946121216, 0.1839553266763687, 0.5856121182441711, 0.3117538392543793, 0.2833282947540283, -0.3406983017921448, -0.6277551054954529, -0.6511773467063904, -0.05626968294382095, -0.024970436468720436, -0.042403656989336014, -0.002120430115610361, 0.3875490427017212, 0.11791297793388367, 0.6646032929420471, -0.5524369478225708, 0.024338284507393837, -0.41884446144104004, 0.12264106422662735, 0.762188196182251, 0.2498994767665863, -0.024280542507767677, -0.628798246383667, 0.06692976504564285, -0.1222274899482727, -0.4566764831542969, 0.15328559279441833, -0.11560793966054916, 0.24656403064727783, 0.23998084664344788, 0.5114681720733643, -0.3810155689716339, 0.6859896779060364, 0.39359501004219055, -0.18059515953063965, 0.39132988452911377, -0.24980291724205017, -0.23684804141521454, -0.908875048160553, 0.12895430624485016, -0.19550950825214386, -0.06273802369832993, -1.0917707681655884, 0.41448694467544556, 0.011256258934736252, -0.3027721643447876, -0.18921785056591034, 0.0650782510638237, -0.7234764695167542, -0.5314079523086548, -0.11262605339288712, 0.08462661504745483, 0.09486287087202072, 0.596424400806427, -0.23392897844314575, 0.41121143102645874, 0.27943453192710876, -0.5935302376747131, 0.15013085305690765, -0.3292868733406067, -0.4030311107635498, -0.14747609198093414, -0.9519990086555481, 0.30313724279403687, -0.30851492285728455, 0.028674449771642685, -1.2141282558441162, 0.11302576959133148, -0.02541884407401085, -0.3177012801170349, 0.33181580901145935, 0.03999435901641846, -0.4512594938278198, -0.6538481712341309, -0.0025062488857656717, 0.4239337742328644, 0.35918205976486206, -0.1908789426088333, 0.5459966063499451, 0.16796128451824188, -0.2820647358894348, -0.8459939956665039, -0.4380452036857605, -0.31939151883125305, -0.056581832468509674, -0.4217156171798706, 0.12243133783340454, -0.3185148239135742, -0.2157595157623291, -0.3458840847015381, -0.3019421696662903, -0.05372133105993271, 0.1557781994342804, 0.25538399815559387, 0.2885163724422455, -0.37356650829315186, 0.23243550956249237, -0.09263968467712402, 0.1882733404636383, -0.04682519659399986, -0.5598095655441284, 0.7655725479125977, -0.2601422965526581, -0.40387219190597534, -0.3656485676765442, 0.4903827905654907, 0.6989576816558838, -0.24296268820762634, 0.6057780981063843, 0.19399414956569672, -0.3572847545146942, -0.25117364525794983, -0.2082013338804245, -0.11918894946575165, -0.4170365333557129, 0.5459781885147095, -0.22764542698860168, -0.9929548501968384, 0.7684124112129211, -0.054143212735652924, 0.08210142701864243, 0.1286701261997223, 0.4226972162723541, -0.06568775326013565, 0.9928433299064636, 0.8923507332801819, -0.1889246553182602, 0.37612393498420715, -0.2618163228034973, 0.2819775342941284, -0.6938055753707886, -0.2076401561498642, -0.46413835883140564, -0.37349966168403625, -0.0837038904428482, -0.6497206091880798, 0.28248584270477295, 0.44228386878967285, -0.2415226548910141, 0.38118061423301697, -0.36658453941345215, 0.5324761271476746, 0.17844417691230774, 0.25796422362327576, 0.42733344435691833, 0.06842193752527237, -0.48642316460609436, -0.07739416509866714, -0.5865491628646851, -0.3831818103790283, 1.255164623260498, 0.7258829474449158, 0.8980386853218079, 0.10137494653463364, 0.7633734941482544, 0.09728056937456131, -0.21681270003318787, -0.8889390230178833, 0.5117573738098145, -0.12872155010700226, -0.5106907486915588, -0.6437636017799377, -0.3501226007938385, -1.0308327674865723, 0.2430499941110611, 0.13881021738052368, -0.9352844953536987, 0.2549481689929962, -0.044027429074048996, -0.8229389786720276, 0.32374075055122375, -0.3889908194541931, 0.2928455173969269, -0.13340748846530914, -0.29733946919441223, -0.35688161849975586, -0.8619750738143921, 0.3237794041633606, 0.08616074174642563, 0.5547674298286438, 0.07606958597898483, -0.21836385130882263, 0.4419405162334442, -0.4826999008655548, 0.7477097511291504, 0.11095849424600601, -0.39345791935920715, 0.07645386457443237, 0.32029199600219727, 0.3772784471511841, -0.17409013211727142, -0.1812174916267395, -0.08511363714933395, -0.12357017397880554, -0.2664620876312256, -0.6217014193534851, 0.4609954357147217, -0.5933664441108704, -0.40893444418907166, -0.18190675973892212, -0.726201593875885, -0.044368792325258255, 0.2249416708946228, 0.0006981308688409626, 0.7428174018859863, -0.308089941740036, 0.0658424124121666, 1.1606907844543457, -0.2742886543273926, 0.5095021724700928, 0.521909773349762, -0.4837314486503601, -0.17489317059516907, 0.5195505023002625, 0.1089056134223938, 0.6302053332328796, 0.549365758895874, -0.04743976145982742, 0.0033787894062697887, -0.5538714528083801, -0.020578540861606598, 0.21559935808181763, -0.8064353466033936, -0.037178587168455124, -0.5338172316551208, -0.3256116807460785, -0.2818056344985962, 0.18569457530975342, -0.5607033967971802, -0.6196656227111816, -0.35498905181884766, -0.05876984819769859, -0.007453528232872486, 1.1852892637252808, -0.009901660494506359, 0.13948458433151245, -0.7574243545532227, 0.3615255355834961, 0.2913654148578644, 0.3308090269565582, 0.15601606667041779, -0.6855505704879761, -0.6376118659973145, -0.01572532206773758, -0.40824973583221436, -0.9127019643783569, 0.38954123854637146, 0.23479312658309937, 0.47971948981285095, 0.5402681827545166, -0.19830350577831268, 0.542540431022644, -0.6641986966133118, 0.8012921810150146, 0.1286144256591797, -0.9878853559494019, 0.6424641609191895, -0.15826518833637238, 0.3857277035713196, 0.12807220220565796, 0.40807756781578064, -0.2642616331577301, -0.14344994723796844, -0.3890259861946106, -0.8661128282546997, 0.936349630355835, 0.15658137202262878, -0.07516354322433472, 0.2597716152667999, 0.5493738651275635, 0.0577969066798687, -0.03578706830739975, -0.7703724503517151, -0.42196157574653625, 0.3239384591579437, -0.10968874394893646, -0.10593108832836151, -0.41065436601638794, 0.04611575976014137, -0.20001251995563507, 0.2820582389831543, 0.12009422481060028, 0.31111153960227966, 0.2772354781627655, -0.2693082094192505, -0.26555413007736206, 0.3891829252243042, 0.7708449959754944, 0.5765926241874695, -0.22099897265434265, -0.025186998769640923, 0.007402003277093172, -0.35292768478393555, 0.1173659935593605, 0.00003246568303438835, 0.10762874782085419, 0.042126238346099854, 0.5738651156425476, 0.8284489512443542, 0.6385543942451477, -0.4290735721588135, 0.17337676882743835, 0.03178836405277252, -0.007380680181086063, -0.09089982509613037, -0.026136226952075958, 0.07465772330760956, 0.333108514547348, 0.6233046054840088, -0.026858055964112282, 0.48082128167152405, -0.6727055311203003, 0.303724467754364, 0.0013762630987912416, -0.4431740343570709, -0.34796807169914246, 0.5163412094116211, -0.01651875674724579, -0.22335109114646912, 0.5658817887306213, 0.1811983436346054, -0.599166214466095, 0.7676820755004883, 0.44139590859413147, 0.5971971750259399, -0.5661568641662598, 0.19997401535511017, 0.699935257434845, 0.4165385365486145, -0.3846862316131592, 0.47023290395736694, -0.11867041140794754, -0.4942130446434021, -0.5793212056159973, -0.7686854600906372, -0.2057497203350067, 0.09009163081645966, -1.1037664413452148, -0.08964289724826813, -0.4434962868690491, 0.023219842463731766, 0.09965910017490387, 0.09301584959030151, -0.6250802278518677, 0.07465086877346039, 0.5677829384803772, 0.8682572245597839, -0.6066032648086548, 0.867632269859314, 0.30074411630630493, -0.23626485466957092, -0.7088888883590698, -0.1171652302145958, 0.19558601081371307, -0.7518365979194641, 0.8461683988571167, 0.20274408161640167, -0.14141187071800232, -0.043922290205955505, -0.682157576084137, -1.4433205127716064, 1.1574338674545288, 0.11237205564975739, -0.8081383109092712, -0.20628611743450165, 0.4238708019256592, 0.7557011842727661, -0.56805819272995, -0.04819982498884201, 0.69186931848526, -0.03399551287293434, 0.3779813349246979, -0.8907305002212524, -0.114610955119133, -0.07722030580043793, 0.3780466616153717, 0.27837520837783813, -0.10421730577945709, 1.0668354034423828, -0.7092161178588867, -0.5171324014663696, 0.5409870743751526, 0.7195959687232971, 0.18940545618534088, 0.14289920032024384, 0.5395720601081848, 0.6689897179603577, 0.6729132533073425, 0.00709271477535367, 0.9481955170631409, -0.21041032671928406, 0.4170786142349243, 1.3523335456848145, -0.28359255194664, 0.9750404953956604, 0.35891449451446533, -0.4042629897594452, 0.6092334985733032, 0.4438459575176239, 0.379792720079422, 0.37599778175354004, 0.593178391456604, -0.04883171245455742, -0.14445807039737701, 0.06807348132133484, -0.30655810236930847, 0.12301193922758102, 0.8604827523231506, -0.734645664691925, -0.18101516366004944, 0.1508498191833496, -0.07747949659824371, 0.04392620921134949, -0.5644979476928711, 0.7825789451599121, 0.2783573567867279, -0.6743066310882568, 0.3787282407283783, -0.2001367062330246, 0.19314324855804443, -0.519672691822052, -0.038331061601638794, -0.25948646664619446, 0.2964513301849365, 0.17971041798591614, -0.8609281778335571, 0.19224320352077484, -0.26802363991737366, -0.4607768654823303, -0.13491939008235931, 0.5901626944541931, -0.5833768844604492, -0.5421062707901001, 0.5828362703323364, 0.24446195363998413, 0.06329422444105148, 0.12384055554866791, -0.7534864544868469, 0.35967525839805603, -0.05984126776456833, -0.33544671535491943, 0.007400026544928551, 0.4204128086566925, 0.19560079276561737, 0.8586506843566895, 0.36446613073349, -0.14581811428070068, 0.33506911993026733, 0.25403255224227905, 0.7759004831314087, -0.6441183686256409, -0.15566319227218628, -0.7203866243362427, 0.4705926477909088, 0.013787581585347652, 0.1036369651556015, 0.428933709859848, 0.35286933183670044, 0.6630289554595947, -0.08435353636741638, 0.5370790362358093, 0.20468021929264069, 0.7223213911056519, -0.4111741781234741, 0.37357085943222046, -0.5022299289703369, 0.5071371793746948, -0.4478358328342438, -0.6547553539276123, -0.4281395375728607, 0.21127936244010925, -0.1736370474100113, -0.04820605739951134, 0.6773177981376648, 0.8222825527191162, 0.31977739930152893, -0.051411222666502, 0.5196314454078674, 0.3734016716480255, 0.0192360058426857, 0.8889818787574768, 0.7057168483734131, -0.6525164842605591, 0.6926981806755066, -0.20078085362911224, -0.19096973538398743, -0.2372792512178421, -0.4932404160499573, -0.7423413395881653, -0.7740324139595032, -0.0075241196900606155, -0.24022483825683594, -0.16249114274978638, 0.7976433038711548, 0.6824929118156433, -0.8538317084312439, -0.44699499011039734, -0.038429856300354004, 0.3265557289123535, -0.13048358261585236, -0.1768074780702591, 0.20271509885787964, -0.5147161483764648, -0.5352689623832703, 0.35785195231437683, 0.5285453200340271, -0.08643180131912231, -0.38916730880737305, -0.023439757525920868, -0.23016953468322754, 0.31091028451919556, 0.6856390237808228, 0.5297577977180481, -1.0303454399108887, 0.03980375826358795, 0.2879558503627777, -0.19774466753005981, -0.17000247538089752, 1.0129132270812988, -0.5578176379203796, 0.7162206768989563, 0.5340238809585571, 0.36093661189079285, 0.18812955915927887, -0.23379456996917725, 0.8713674545288086, -0.6368845701217651, -0.025508396327495575, -0.0002953619114123285, 0.5136348605155945, 0.011372190900146961, -0.46995872259140015, 0.6047653555870056, -0.005938866175711155, -0.5590341687202454, -0.8180904984474182, 0.5917378664016724, -0.9491449594497681, -0.5039353966712952, 0.8631722927093506, -0.12924744188785553, -0.04817634075880051, -0.2087765336036682, -0.012862724252045155, 0.2905125319957733, -0.1480335295200348, 0.5931856632232666, 0.7107148766517639, -0.14130473136901855, -0.3862273693084717, -0.49983203411102295, 0.32967454195022583, 0.3952649235725403, -0.33814358711242676, 0.018057750537991524, 0.3908049464225769, 0.037126101553440094, 0.4484805166721344, 0.20739960670471191, -0.3920864462852478, 0.014880276285111904, -0.35360684990882874, 0.09893576800823212, 0.3011736273765564, -0.5377311110496521, -0.8381765484809875, 0.31103232502937317, -0.16562308371067047, 0.13225460052490234 ]
http://arxiv.org/abs/2405.17382v1
http://arxiv.org/pdf/2405.17382v1
ReMoDetect: Reward Models Recognize Aligned LLM's Generations
2024-05-27T17:38:33
2024-05-27T17:38:33
Hyunseok Lee, Jihoon Tack, Jinwoo Shin
cs.LG
cs.LG, cs.CL
The remarkable capabilities and easy accessibility of large language models (LLMs) have significantly increased societal risks (e.g., fake news generation), necessitating the development of LLM-generated text (LGT) detection methods for safe usage. However, detecting LGTs is challenging due to the vast number of LLMs, making it impractical to account for each LLM individually; hence, it is crucial to identify the common characteristics shared by these models. In this paper, we draw attention to a common feature of recent powerful LLMs, namely the alignment training, i.e., training LLMs to generate human-preferable texts. Our key finding is that as these aligned LLMs are trained to maximize the human preferences, they generate texts with higher estimated preferences even than human-written texts; thus, such texts are easily detected by using the reward model (i.e., an LLM trained to model human preference distribution). Based on this finding, we propose two training schemes to further improve the detection ability of the reward model, namely (i) continual preference fine-tuning to make the reward model prefer aligned LGTs even further and (ii) reward modeling of Human/LLM mixed texts (a rephrased texts from human-written texts using aligned LLMs), which serves as a median preference text corpus between LGTs and human-written texts to learn the decision boundary better. We provide an extensive evaluation by considering six text domains across twelve aligned LLMs, where our method demonstrates state-of-the-art results. Code is available at https://github.com/hyunseoklee-ai/reward_llm_detect.
[ -0.103331558406353, -0.30635297298431396, 0.7193208336830139, -0.2136303037405014, -0.35068437457084656, 0.15779326856136322, -0.330655574798584, -0.5538411736488342, 0.1456833779811859, 0.4351748824119568, -0.7216067910194397, -0.6018133163452148, -0.7314848899841309, 0.1742447167634964, -0.23943234980106354, 0.9843948483467102, -0.362117737531662, -0.08061729371547699, -0.455751895904541, -0.1753426492214203, -0.32207340002059937, -0.6103562116622925, -0.3525111675262451, -0.8089532852172852, 0.6619036793708801, 0.2683736979961395, 0.43951770663261414, 0.860295295715332, 0.45971837639808655, 0.27335116267204285, -0.05801019445061684, 0.319831520318985, -0.5278036594390869, 0.29401424527168274, -0.021748432889580727, -0.37453493475914, -0.3000146448612213, 0.2498871088027954, 0.5204336643218994, 0.15725941956043243, -0.05392373725771904, -0.0210323017090559, 0.22546282410621643, 0.6998598575592041, -0.7550562620162964, -0.25605154037475586, -0.7514690160751343, -0.06424421817064285, -0.30403369665145874, -0.4407901167869568, -0.5507128834724426, -0.40842920541763306, -0.016643214970827103, -0.5588259696960449, 0.005726595409214497, 0.05336141213774681, 1.0415761470794678, 0.37140125036239624, -0.5132692456245422, -0.39535602927207947, -0.3012804090976715, 1.0215575695037842, -0.39635950326919556, 0.39750611782073975, 0.22804105281829834, 0.04922852665185928, -0.2394801527261734, -0.4387008547782898, -0.5283119082450867, -0.14974148571491241, -0.2356444001197815, 0.0408720001578331, -0.012034074403345585, -0.07208921760320663, -0.11221013218164444, 0.2726878523826599, -0.4696930944919586, 0.5674727559089661, 0.1965777426958084, -0.3643297851085663, 0.674217700958252, 0.3270922303199768, 0.3297179043292999, -0.24368637800216675, -0.7706965208053589, -0.21570470929145813, -0.7840662598609924, 0.2395811229944229, 0.5643749833106995, 0.16359063982963562, -0.14527051150798798, 0.4150838851928711, -0.13765962421894073, 0.8849013447761536, 0.22160743176937103, -0.45326024293899536, 0.35549402236938477, -0.2208135426044464, -0.12264267355203629, 0.10055045783519745, 0.9397880434989929, 0.47849249839782715, 0.32358384132385254, -0.07079323381185532, -0.4574097692966461, 0.11317004263401031, 0.3198544383049011, -0.5931621789932251, 0.09735392779111862, 0.007468859199434519, -0.5994948744773865, -0.699059009552002, -0.22224631905555725, -0.3032788932323456, -0.7436467409133911, -0.4631642699241638, 0.28068476915359497, -0.3672066032886505, -0.12897828221321106, 0.4074372947216034, -0.04072948172688484, 0.43653756380081177, 0.17642472684383392, -1.206939458847046, -0.12749511003494263, 0.9899711608886719, 0.6666192412376404, -0.5800293684005737, -0.25668269395828247, -0.3817763328552246, 0.05478231608867645, 0.11691553890705109, 1.1855380535125732, -0.5378010869026184, -0.11938945949077606, 0.11098355054855347, -0.07860250771045685, -0.08599194884300232, -0.5311020016670227, 0.9070862531661987, -0.46538469195365906, 0.22806695103645325, -0.20857839286327362, -0.8363016843795776, 0.3212640881538391, 0.5790418386459351, -0.5634396076202393, 0.7826259732246399, -0.03421621024608612, -1.087217092514038, 0.7643465995788574, -0.17812985181808472, -0.14518097043037415, 0.004847967531532049, -0.219996839761734, -0.7923282384872437, -0.16687804460525513, 0.22353462874889374, 0.5219627618789673, -0.16260358691215515, 0.5179520845413208, -0.2547088861465454, -0.4666502773761749, 0.42890995740890503, -0.5432893633842468, 0.5687869787216187, 0.07733763009309769, -0.1626545935869217, 0.4734245538711548, -0.5036675333976746, -0.04064657539129257, 0.0352085717022419, -0.6470286250114441, -0.4972870349884033, 0.055855121463537216, 0.030943075194954872, -0.01618148572742939, 0.5706849098205566, -0.5035097002983093, 0.2929331362247467, -0.3084958791732788, 0.22355610132217407, 1.1702898740768433, -0.2586793601512909, 0.4989374577999115, -0.5451472401618958, 0.4663359820842743, 0.04562748968601227, -0.07637932896614075, -0.030889656394720078, -0.09441540390253067, -0.6001970767974854, -0.4843961000442505, 0.23072896897792816, 0.5213704705238342, -0.4498140215873718, 0.7741502523422241, -0.3332803249359131, -0.4514791667461395, -0.5461466908454895, 0.1539703756570816, 0.4724911153316498, 0.3251868188381195, 0.13872529566287994, -0.042076755315065384, -0.6420647501945496, -1.0327011346817017, -0.7763040661811829, -0.10257870703935623, -0.08472038060426712, 0.1527690440416336, 0.31942564249038696, -0.22698111832141876, 0.8747527003288269, -0.3983471095561981, -0.17652186751365662, -0.23961958289146423, -0.013064105994999409, 0.05358373001217842, 0.3754529356956482, 0.30761224031448364, -0.7635740637779236, -0.43567970395088196, -0.13124436140060425, -0.7233409881591797, -0.2070675641298294, -0.2096974104642868, -0.12215977907180786, 0.09525098651647568, 0.49344635009765625, -0.2431972473859787, 0.1477264016866684, 0.422116219997406, -0.4125266671180725, 0.4080941081047058, -0.04584290087223053, 0.06057974696159363, -1.219638705253601, -0.07943613827228546, 0.21437948942184448, -0.44204774498939514, -0.47363564372062683, -0.13683247566223145, 0.33121320605278015, 0.5048376321792603, -0.26487961411476135, 0.6574943661689758, -0.47355031967163086, 0.023960035294294357, -0.4959369897842407, 0.23182891309261322, -0.15644608438014984, 0.35441628098487854, 0.23707550764083862, 0.7853195071220398, 0.13274385035037994, -0.3639315962791443, 0.31954148411750793, 0.3105795085430145, -0.543379008769989, 0.7267251014709473, -0.4127146005630493, 0.0707673579454422, -0.06864399462938309, 0.22355881333351135, -1.0172897577285767, -0.3575049340724945, 0.27480795979499817, -0.4263856112957001, 0.36592772603034973, 0.08028095960617065, -0.2105274498462677, -0.14216123521327972, -0.5722583532333374, 0.48220229148864746, 0.4417189657688141, -0.8667389154434204, 0.36047855019569397, 0.4614671468734741, 0.1132359728217125, -0.9488787055015564, -0.395233154296875, -0.09911805391311646, -0.4687349796295166, -0.6264211535453796, 0.5537275075912476, 0.16207969188690186, 0.0489158108830452, -0.11454126983880997, -0.09650102257728577, 0.2282930165529251, 0.37607240676879883, 0.34584319591522217, 0.346157431602478, 0.10157589614391327, 0.13264764845371246, -0.005976601503789425, -0.3807012140750885, -0.09500101208686829, -0.21501357853412628, 0.6101399660110474, -0.06477036327123642, -0.28229549527168274, -0.4263235628604889, 0.03518590331077576, 0.3250393867492676, -0.2190680205821991, 0.823173463344574, 0.6113985180854797, -0.21999166905879974, 0.013026746921241283, -0.4678305983543396, -0.14855694770812988, -0.49629971385002136, 0.2854202687740326, -0.05318917706608772, -1.2118998765945435, 0.30761900544166565, 0.009611635468900204, 0.04760478436946869, 0.24571870267391205, 0.8053639531135559, 0.05380059406161308, 0.910000741481781, 0.6247926354408264, -0.35772350430488586, 0.7661257982254028, 0.24091358482837677, 0.12549544870853424, -0.962429940700531, -0.3854997158050537, -0.3533894717693329, -0.5576414465904236, -0.6242378354072571, 0.057248104363679886, 0.29947519302368164, -0.14230163395404816, -0.2777409851551056, 0.16637957096099854, -0.759649395942688, 0.727418065071106, 0.5695876479148865, 0.22533641755580902, 0.2429502308368683, -0.02053401619195938, -0.08979977667331696, -0.1177714616060257, -0.367198646068573, -0.7796850800514221, 1.2428393363952637, 0.3409503996372223, 0.861705482006073, -0.14959211647510529, 1.188208818435669, 0.24159827828407288, 0.4513770043849945, -0.7751237154006958, 0.3826359808444977, -0.16452491283416748, -0.2521771788597107, -0.0991787537932396, -0.34445273876190186, -1.0080114603042603, 0.03901182860136032, -0.4092182219028473, -0.7799332141876221, -0.004970382433384657, 0.2821796238422394, -0.3608313798904419, 0.36637648940086365, -0.4963710904121399, 0.9955839514732361, -0.4334394931793213, -0.48492303490638733, 0.0726335421204567, -0.534480631351471, 0.4588095247745514, 0.0920511856675148, -0.1855359673500061, -0.23222321271896362, 0.012105266563594341, 0.8878522515296936, 0.0666334331035614, 0.8417485356330872, 0.08966623991727829, -0.2695026993751526, -0.01351739838719368, -0.17180076241493225, 0.5622970461845398, -0.029386186972260475, 0.015355395153164864, -0.1718098223209381, -0.40026646852493286, -0.2715667486190796, -0.17832079529762268, 0.8191705346107483, -0.8033624887466431, -0.6056073904037476, -0.5110374689102173, -0.7575383186340332, -0.029394173994660378, 0.10272781550884247, 0.4566479027271271, 0.14465826749801636, -0.20767174661159515, 0.04669541120529175, 0.6694189310073853, -0.2190522849559784, 0.17045234143733978, 0.25947627425193787, -0.12315098941326141, -0.4485827088356018, 0.7304283976554871, -0.40739282965660095, 0.30755698680877686, 0.4599417746067047, 0.1302671581506729, -0.4146747589111328, -0.5154092311859131, -0.2452637255191803, 0.14891980588436127, -0.5266233086585999, -0.45501792430877686, -0.524105429649353, -0.19411775469779968, -0.14947034418582916, -0.4877470135688782, -0.21718622744083405, -0.10961287468671799, -0.37740054726600647, -0.2770226001739502, 0.3796021044254303, 0.6242623925209045, -0.03892333805561066, 0.44094908237457275, -0.7277738451957703, 0.27856776118278503, 0.2807086110115051, 0.3702038526535034, -0.1937992125749588, -0.5348016023635864, -0.1562434285879135, 0.12720203399658203, -0.489043653011322, -0.6216875910758972, 0.3992021083831787, -0.22789321839809418, 0.5454221367835999, 0.4176104962825775, 0.025925328955054283, 0.24705639481544495, -0.31462356448173523, 0.6599995493888855, 0.24002262949943542, -0.8080859780311584, 0.16418075561523438, -0.2960662543773651, 0.05494236946105957, 0.5768525004386902, 0.27255526185035706, -0.640344500541687, -0.2658753991127014, -0.46212244033813477, -0.7150827050209045, 0.689140796661377, 0.011653618887066841, 0.014529384672641754, -0.017516247928142548, 0.47832876443862915, 0.18343205749988556, 0.10527843236923218, -1.1449264287948608, -0.024154668673872948, -0.010715372860431671, -0.8282173275947571, 0.13143420219421387, -0.5030808448791504, -0.11125104874372482, 0.09935875236988068, 0.5810994505882263, -0.04967780038714409, 0.17116016149520874, -0.029147470369935036, -0.03299380838871002, -0.12376762181520462, 0.4844791293144226, 0.7002454400062561, 0.1260455697774887, -0.33412912487983704, 0.26881662011146545, -0.24063506722450256, -0.36317551136016846, 0.5686304569244385, 0.026156514883041382, -0.3168197274208069, -0.3711252808570862, 0.4333707094192505, 0.8829364776611328, 0.19331517815589905, -0.6683549880981445, 0.5738809108734131, -0.06527271121740341, -0.1976252943277359, -0.24693040549755096, 0.23512710630893707, 0.2798873782157898, 0.19810131192207336, 0.04599932208657265, -0.03239061310887337, -0.10223192721605301, -0.3805750906467438, 0.25286611914634705, 0.8085100054740906, -0.4951001703739166, -0.11353911459445953, 0.559720516204834, 0.3031790256500244, -0.3543611168861389, 0.4837506115436554, -0.3853854835033417, -0.9505583643913269, 0.4300227761268616, 0.6036144495010376, 0.9691975116729736, -0.10871532559394836, 0.17215146124362946, 0.25753238797187805, 0.18528051674365997, -0.23209021985530853, 0.09515754133462906, 0.031270720064640045, -1.250106692314148, -0.10768672823905945, -0.6218191981315613, -0.12775816023349762, 0.128767728805542, -0.574222207069397, 0.4161064326763153, -0.13731101155281067, -0.021218953654170036, -0.024357300251722336, -0.16512519121170044, -0.3671007752418518, -0.12182223051786423, 0.37188073992729187, 0.5458750128746033, -1.0073285102844238, 0.7697852849960327, 0.5683503150939941, -0.030333226546645164, -0.7820904850959778, 0.030440060421824455, 0.24390219151973724, -1.0916742086410522, 0.5846681594848633, 0.5219606161117554, -0.15865470468997955, -0.12328242510557175, -0.6389263272285461, -0.506172239780426, 1.2748321294784546, 0.28168103098869324, -0.5735066533088684, 0.007922062650322914, 0.15550164878368378, 0.387781023979187, -0.5788936018943787, 0.12197290360927582, 0.7495608925819397, 0.4056290090084076, -0.17633949220180511, -0.7449212670326233, 0.0016842982731759548, 0.015567143447697163, -0.24117445945739746, 0.6703349351882935, -0.5470043420791626, 0.7562901377677917, -0.0098238131031394, -0.21520741283893585, 0.2610360383987427, 0.42740482091903687, 0.7647411823272705, 0.5686109066009521, 0.6460773348808289, 0.6484391689300537, 0.8175724148750305, -0.12530723214149475, 0.9232973456382751, -0.17952759563922882, 0.4371127784252167, 0.9276089668273926, -0.4088284969329834, 0.7119966149330139, 0.618564784526825, 0.1158180981874466, 0.4582543671131134, 0.8247779607772827, 0.07457727193832397, 0.6164541244506836, 0.2528854012489319, -0.30512019991874695, -0.6765747666358948, -0.29806098341941833, -0.22332367300987244, 0.30016595125198364, 0.1352103352546692, -0.5550504326820374, -0.08817902207374573, -0.041059158742427826, 0.025136182084679604, 0.3699124753475189, -0.24954678118228912, 0.770653247833252, -0.06042018160223961, -0.7066255211830139, 0.5997948050498962, -0.03023282065987587, 1.1947572231292725, -0.534037172794342, 0.24715061485767365, -0.14800086617469788, 0.380029559135437, -0.24675697088241577, -1.0019932985305786, -0.05800505727529526, 0.09175564348697662, -0.2934172451496124, -0.40988773107528687, 0.9622426629066467, -0.66279137134552, -0.19813767075538635, 0.17485256493091583, 0.28465408086776733, -0.20442797243595123, 0.05818603187799454, -0.5415527820587158, -0.03204715624451637, 0.39200007915496826, -0.1959458589553833, 0.5520584583282471, 0.3007947504520416, -0.10792716592550278, 0.6889510750770569, 0.6090771555900574, -0.12207505851984024, -0.07995739579200745, -0.10097093135118484, 0.7356483340263367, -0.6584004759788513, -0.44832858443260193, -1.0666669607162476, 0.3497292697429657, -0.3005697727203369, -0.2638917565345764, 0.4689252972602844, 0.5157178640365601, 0.8381137251853943, -0.04055843502283096, 0.6381010413169861, 0.31643491983413696, 0.5364290475845337, -0.7661304473876953, 0.6542145609855652, -0.6131656765937805, 0.4767542779445648, -0.12818977236747742, -0.6574884653091431, -0.16147923469543457, 0.5569104552268982, -0.3403555750846863, -0.06917205452919006, 0.4284839332103729, 0.6855325102806091, -0.13811609148979187, -0.12464889138936996, 0.06936195492744446, -0.31272444128990173, 0.37880247831344604, 0.9465897083282471, 1.1513950824737549, -0.22485214471817017, 0.41031450033187866, -0.027293585240840912, -0.05269066244363785, -0.32446756958961487, -1.035414457321167, -0.842860221862793, -0.47348448634147644, -0.17067790031433105, -0.2002299726009369, -0.0830078199505806, 1.0295131206512451, 0.33183974027633667, -0.563285231590271, -0.1757848560810089, -0.08394306898117065, 0.46402105689048767, -0.021742848679423332, -0.14187560975551605, 0.392113596200943, -0.25563445687294006, -0.5482825040817261, 0.0434369258582592, 0.25567325949668884, 0.13993768393993378, -0.05293021351099014, -0.4110903739929199, -0.22697673738002777, -0.01079969760030508, 0.18565624952316284, 0.09381639212369919, -0.7272771000862122, -0.6059815287590027, 0.10618947446346283, -0.4327934980392456, 0.14278677105903625, 0.9625412821769714, -0.6718000173568726, 0.2268189787864685, 0.47220391035079956, 0.8399125337600708, 0.10938823968172073, 0.12113571166992188, 0.6174758076667786, -0.7992739677429199, 0.1699398159980774, 0.10036186873912811, 0.5491355061531067, 0.5196496248245239, -0.47168365120887756, 0.4541669189929962, 0.07259251177310944, -0.8394953012466431, -0.8537046313285828, 0.5322129726409912, -1.0406121015548706, -0.08965718746185303, 1.1552013158798218, -0.05202515050768852, -0.2612771987915039, 0.05553855374455452, -0.27855417132377625, 0.2755872309207916, -0.3837709128856659, 0.8344448208808899, 0.6920056939125061, -0.023238928988575935, 0.07025063037872314, 0.0689685195684433, 0.7249828577041626, 0.6113347411155701, -0.7878323197364807, 0.2599450349807739, 0.4734513461589813, 0.39294806122779846, 0.07921826839447021, 0.5051386952400208, 0.10292964428663254, 0.2562367916107178, -0.5357798337936401, 0.2726021409034729, -0.17913201451301575, -0.09568685293197632, -0.4213278591632843, -0.03649740293622017, 0.26688089966773987, -0.2043091356754303 ]
http://arxiv.org/abs/2405.17381v2
http://arxiv.org/pdf/2405.17381v2
Various Lengths, Constant Speed: Efficient Language Modeling with Lightning Attention
2024-05-27T17:38:13
2024-06-20T09:12:42
Zhen Qin, Weigao Sun, Dong Li, Xuyang Shen, Weixuan Sun, Yiran Zhong
cs.CL
cs.CL
We present Lightning Attention, the first linear attention implementation that maintains a constant training speed for various sequence lengths under fixed memory consumption. Due to the issue with cumulative summation operations (cumsum), previous linear attention implementations cannot achieve their theoretical advantage in a casual setting. However, this issue can be effectively solved by utilizing different attention calculation strategies to compute the different parts of attention. Specifically, we split the attention calculation into intra-blocks and inter-blocks and use conventional attention computation for intra-blocks and linear attention kernel tricks for inter-blocks. This eliminates the need for cumsum in the linear attention calculation. Furthermore, a tiling technique is adopted through both forward and backward procedures to take full advantage of the GPU hardware. To enhance accuracy while preserving efficacy, we introduce TransNormerLLM (TNL), a new architecture that is tailored to our lightning attention. We conduct rigorous testing on standard and self-collected datasets with varying model sizes and sequence lengths. TNL is notably more efficient than other language models. In addition, benchmark results indicate that TNL performs on par with state-of-the-art LLMs utilizing conventional transformer structures. The source code is released at github.com/OpenNLPLab/TransnormerLLM.
[ -0.10067197680473328, -0.9828835129737854, 0.4608617126941681, 0.6718096137046814, -0.22693032026290894, 0.16845084726810455, -0.29181280732154846, -0.5240932106971741, 0.0953035056591034, 0.274619996547699, -0.5004774928092957, -0.24408486485481262, -0.42976072430610657, -0.05287669971585274, -0.621152400970459, 0.5981220006942749, 0.06815726310014725, -0.1068599671125412, 0.12614406645298004, -0.2853982746601105, -0.3623732924461365, -0.23416762053966522, -0.5725387334823608, -0.2120271772146225, 0.9508400559425354, 0.40350618958473206, 0.7431361675262451, 0.7802110910415649, 0.7513689398765564, 0.1790926158428192, -0.15454405546188354, 0.04650295898318291, -0.8063227534294128, -0.12176502496004105, -0.12139381468296051, -0.16288799047470093, -0.41773220896720886, -0.1714988350868225, 0.8174882531166077, 0.6702910661697388, 0.0011359781492501497, 0.3055594861507416, -0.11503049731254578, 0.7696272134780884, -0.5591962337493896, -0.37240445613861084, -0.7644954919815063, 0.30289608240127563, -0.3066428005695343, -0.12068426609039307, -0.48000064492225647, -0.4095537066459656, 0.19347339868545532, -0.17444337904453278, 0.19508987665176392, 0.3273884356021881, 0.6779581308364868, 0.43207743763923645, 0.005007324740290642, -0.07043064385652542, -0.965560793876648, 0.8486778140068054, -0.5496311187744141, 0.7129167914390564, -0.08554341644048691, 0.1746816784143448, 0.3882371485233307, -0.9359354376792908, -0.2086367905139923, -0.26019352674484253, 0.1907413750886917, -0.07085355371236801, -0.29060879349708557, 0.12796539068222046, 0.38298094272613525, 0.5859113335609436, -0.6521373987197876, -0.0011831021402031183, -0.2642795741558075, 0.026332346722483635, 0.4588265120983124, 0.3377603590488434, 0.25041496753692627, 0.3973464071750641, -0.36204877495765686, 0.21807153522968292, -0.7784125804901123, -0.051485463976860046, 0.09444459527730942, 0.20067349076271057, -0.3328911066055298, 0.481704980134964, 0.2279508411884308, 0.9288251399993896, 0.10288688540458679, -0.010463492013514042, 0.006855470594018698, -0.2568630278110504, -0.3218105733394623, 0.06663095951080322, 0.6844125986099243, 0.08354953676462173, 0.4512730836868286, -0.5789018869400024, -0.006130811758339405, 0.0014384565874934196, 0.5205925107002258, -0.6490667462348938, -0.11192774772644043, 0.14155171811580658, -0.3585565686225891, -0.1231679916381836, -0.3899521827697754, -0.7061413526535034, -0.010109318420290947, -0.3399120271205902, 0.18434661626815796, -0.46341603994369507, -0.01325854193419218, 0.34880372881889343, 0.4476777911186218, 0.11867287009954453, 0.10360518842935562, -1.039496898651123, 0.521129310131073, 0.6774585247039795, 1.0957248210906982, -0.44676831364631653, -0.12319003790616989, -0.7397964000701904, -0.06823296844959259, -0.24404415488243103, 0.4602257013320923, -0.5315268039703369, -0.2475949376821518, -0.168613001704216, -0.36201924085617065, -0.20634116232395172, -0.22300449013710022, 0.5082578659057617, -0.43289902806282043, 0.07358548045158386, 0.43777716159820557, -0.6307610869407654, 0.060501616448163986, 0.07730359584093094, -0.5217416882514954, 1.0310876369476318, 0.19683678448200226, -0.9105039238929749, -0.3221976161003113, -0.6486554145812988, -0.7185753583908081, 0.30219948291778564, 0.14342153072357178, -0.5079628825187683, 0.5026245713233948, -0.09728609025478363, 0.24594362080097198, -0.4766198396682739, 0.2585029602050781, 0.009363374672830105, -0.5115513801574707, 0.1622370034456253, -0.4179134666919708, 0.5941842198371887, 0.3631085157394409, -0.3821369707584381, 0.23267143964767456, -0.6801271438598633, -0.06516072154045105, 0.012728853151202202, -0.22139273583889008, -0.1501450538635254, -0.08560588955879211, 0.3487617075443268, 0.09826655685901642, 0.3243979513645172, -0.4243846833705902, 0.07001324743032455, -0.5735157132148743, 0.058721575886011124, 0.6196251511573792, -0.2078932821750641, 0.4371453523635864, -0.09711664170026779, 0.7656097412109375, -0.32794538140296936, 0.5008236169815063, -0.33980807662010193, -0.4301178753376007, -0.9274634122848511, -0.10591696202754974, 0.3058934509754181, 0.4770638346672058, -0.5447666049003601, 0.2492142766714096, -0.37878063321113586, -0.46865636110305786, -0.7555832862854004, 0.18221235275268555, 0.7632612586021423, 0.4064125418663025, 0.19922378659248352, -0.20672361552715302, -0.6451264023780823, -0.8137698769569397, -0.5158525109291077, 0.0886000320315361, 0.11580310016870499, 0.4007488191127777, -0.012356434017419815, -0.2591274380683899, 0.972762942314148, -0.5863316655158997, 0.05197327211499214, -0.5983484387397766, -0.012354932725429535, 0.2581181526184082, 0.2734951674938202, 0.632961094379425, -0.52972412109375, -0.8578615188598633, 0.016971150413155556, -0.4401336908340454, -0.2701374888420105, -0.27922502160072327, 0.02441711351275444, 0.025208262726664543, 0.44655802845954895, -0.40889376401901245, 0.31000879406929016, 0.6665429472923279, -0.20789852738380432, 0.38593238592147827, 0.0064554717391729355, -0.2799271047115326, -0.856314480304718, 0.3430105149745941, 0.2792694866657257, -0.5874287486076355, -1.1422927379608154, 0.11761012673377991, 0.35707056522369385, -0.017988210543990135, -0.8342867493629456, 0.7101427316665649, -0.5144860148429871, -0.03953847289085388, -0.36537784337997437, 0.12282953411340714, -0.21159180998802185, 0.6725888252258301, -0.07285399734973907, 0.7375765442848206, 0.5403407216072083, -0.7243112921714783, 0.5025244355201721, -0.18964798748493195, -0.2610795497894287, 0.13397665321826935, -0.7740182280540466, 0.43653610348701477, -0.0374685600399971, -0.4612681567668915, -0.7656602263450623, 0.2274472713470459, 0.05448238551616669, -0.19665218889713287, 0.48966196179389954, 0.049711812287569046, -0.619015097618103, -0.49276790022850037, -0.26417380571365356, 0.5221381783485413, 0.5831600427627563, -0.2855975031852722, 0.4923688471317291, 0.4155591130256653, -0.1146429106593132, -0.2597801089286804, -0.7323627471923828, 0.20386748015880585, -0.24937403202056885, -0.5765371918678284, 0.27940255403518677, -0.33500608801841736, -0.37411820888519287, -0.13160230219364166, 0.01420463714748621, 0.10263478755950928, 0.2162804901599884, -0.010919108055531979, 0.21230405569076538, -0.14562354981899261, 0.10829088091850281, -0.3822023272514343, -0.21845874190330505, -0.2354818433523178, -0.39521756768226624, 0.9224482178688049, -0.18070118129253387, -0.1765054166316986, -0.43354907631874084, 0.15882539749145508, 0.4349662959575653, -0.14802363514900208, 0.6049923300743103, 0.534484326839447, -0.2877087891101837, -0.07761751115322113, -0.754594624042511, -0.13360324501991272, -0.4507369101047516, 0.3315238058567047, -0.1938009262084961, -1.0683637857437134, 0.467214435338974, 0.12306582182645798, 0.28571757674217224, 0.22299888730049133, 0.45274385809898376, 0.13024303317070007, 0.8623282313346863, 0.9927545189857483, -0.5922505855560303, 0.7262492775917053, 0.08952885866165161, 0.33886051177978516, -0.8336672186851501, -0.07325989753007889, -0.5012591481208801, -0.4807127118110657, -0.2897712290287018, -0.3552500307559967, 0.2661283612251282, -0.18065494298934937, 0.024799909442663193, 0.42570003867149353, -0.4054885506629944, 0.5506720542907715, 0.14367391169071198, -0.13287292420864105, 0.2009086012840271, 0.0698179230093956, -0.047022558748722076, -0.3498515188694, -0.8334598541259766, -0.07305508852005005, 0.9791927337646484, 0.6360986828804016, 1.2219762802124023, -0.02373986877501011, 0.334536075592041, 0.14159902930259705, 0.44417431950569153, -0.7504674792289734, 0.5117146372795105, -0.24724413454532623, -0.3043312430381775, -0.21092386543750763, -0.6936824917793274, -0.7668781280517578, 0.1142568290233612, 0.268846720457077, -0.668515145778656, -0.24657563865184784, 0.21754927933216095, -0.3862130641937256, 0.2670121490955353, -0.5218861699104309, 0.6781980991363525, -0.4905530512332916, -0.6786765456199646, -0.33006250858306885, -0.7852933406829834, 0.5232061147689819, -0.11635389178991318, 0.12066050618886948, -0.06300736963748932, 0.004030212294310331, 0.5232107639312744, -0.1579609513282776, 0.7300190925598145, 0.10925401002168655, -0.17317788302898407, -0.01927546225488186, -0.027788212522864342, 0.40871015191078186, -0.07001643627882004, 0.08744252473115921, -0.11520197242498398, -0.8814989924430847, -0.2850266695022583, -0.3384912312030792, 0.8305649757385254, -0.47309228777885437, -0.4396684765815735, -0.3444001078605652, -0.9475877285003662, -0.11296529322862625, 0.1756170243024826, 0.1348761022090912, 0.5774515867233276, -0.2758260667324066, 0.25161972641944885, 1.155712604522705, -0.1428653597831726, 0.8196017146110535, 0.6119918823242188, -0.4905392825603485, -0.2656366229057312, 0.6290509104728699, -0.1266263723373413, 0.36054468154907227, 0.6211627721786499, 0.10493603348731995, -0.3363109230995178, -0.44978204369544983, -0.18602310121059418, 0.44870859384536743, -0.33674538135528564, -0.1061629131436348, -0.8914691805839539, -0.368010938167572, -0.29160451889038086, -0.04700273275375366, -0.6069015264511108, -0.5239166617393494, -0.22090671956539154, 0.03735196962952614, 0.44983354210853577, 0.39598575234413147, 0.2658020555973053, 0.3855992555618286, -0.774647057056427, 0.651990532875061, 0.3216928541660309, 0.5773543119430542, 0.08884624391794205, -0.797199010848999, -0.5631086826324463, -0.33655476570129395, -0.3298000395298004, -0.5580580234527588, 0.5111809372901917, 0.46562737226486206, 0.5339453816413879, 0.42772746086120605, -0.2796323299407959, 0.8081401586532593, -0.8459104895591736, 0.5550283789634705, 0.3759123682975769, -0.9742745757102966, 0.4587344229221344, 0.021241415292024612, 0.8707805275917053, 0.4813750982284546, 0.1739041656255722, -0.9236088991165161, -0.6665593385696411, -0.5651029944419861, -0.6818792819976807, 0.8672325611114502, 0.468289315700531, 0.18816177546977997, 0.2057187408208847, 0.4285184442996979, -0.07623174786567688, 0.0879717692732811, -0.7279690504074097, -0.6700797080993652, 0.025334075093269348, -0.44655677676200867, -0.2200903594493866, -0.4684404134750366, 0.1509033441543579, -0.3366061747074127, 0.6596164703369141, 0.15061599016189575, 0.05862767994403839, 0.03822316229343414, -0.549205482006073, -0.1960507333278656, 0.08641768246889114, 0.9210728406906128, 0.6388384699821472, -0.19620604813098907, 0.37044355273246765, 0.2474936544895172, -0.750130832195282, 0.030877673998475075, 0.018514391034841537, -0.33687859773635864, 0.3993252217769623, 0.3205122947692871, 0.9884417057037354, 0.6763026118278503, -0.5621342658996582, 0.17749400436878204, -0.35473036766052246, 0.07071804255247116, 0.03255916014313698, -0.04558428376913071, 0.3401731550693512, -0.090060755610466, 0.26561641693115234, -0.10400483012199402, -0.004763453267514706, -0.3205193877220154, 0.15946170687675476, 0.15905265510082245, -0.6961564421653748, -0.36504682898521423, 0.8004331588745117, 0.28295814990997314, -0.5302194952964783, 0.584038496017456, 0.12772896885871887, -0.41157224774360657, 0.5542006492614746, 0.5048537254333496, 1.2376282215118408, -0.6066418290138245, -0.06491589546203613, 0.07323324680328369, 0.5251742601394653, 0.024977773427963257, 0.45030477643013, -0.05829005315899849, -0.5372188687324524, -0.41253727674484253, -0.5942076444625854, -0.36439746618270874, 0.028115613386034966, -0.2723643481731415, 0.1526627093553543, -0.7410236597061157, -0.031227050349116325, -0.1089647188782692, -0.12348622828722, -0.5242716073989868, 0.10497689247131348, 0.26746806502342224, 1.1195642948150635, -0.6171543002128601, 1.1367985010147095, 0.4080727994441986, 0.042283229529857635, -0.4516076445579529, -0.19656018912792206, -0.14310352504253387, -0.47415751218795776, 0.4011354446411133, 0.31195348501205444, -0.36299270391464233, 0.22429151833057404, -0.4981374740600586, -0.745980441570282, 0.8616779446601868, 0.4502333402633667, -1.0765358209609985, 0.1875312477350235, 0.30744120478630066, 0.5523727536201477, -0.3342040777206421, 0.16063222289085388, 0.5499176383018494, 0.17986442148685455, -0.12050849944353104, -0.8241435885429382, -0.3444184958934784, -0.28297996520996094, 0.41655227541923523, 0.22080333530902863, -0.7545259594917297, 0.7233913540840149, -0.06395307928323746, -0.31472912430763245, -0.003988353069871664, 0.8213731646537781, 0.2706974148750305, 0.15010805428028107, 0.3638111650943756, 0.6067222952842712, 0.43243536353111267, -0.16791489720344543, 1.128048062324524, -0.7103558778762817, 0.4416210949420929, 1.0450639724731445, -0.41543683409690857, 0.3573567569255829, 0.6074526906013489, -0.09542209655046463, 0.09601453691720963, 0.35355570912361145, 0.18436196446418762, 0.6736482977867126, 0.2654206156730652, -0.26110905408859253, 0.06029418483376503, -0.2612909972667694, -0.2727549970149994, -0.11104253679513931, 0.2031026929616928, -0.3442883789539337, -0.07637140154838562, 0.13747097551822662, -0.03993353620171547, 0.09957099705934525, -0.46175166964530945, 0.7466212511062622, 0.4475812613964081, -0.48158103227615356, 0.6030264496803284, 0.1220255196094513, 0.8049778938293457, -0.8284029960632324, 0.38623905181884766, -0.5132419466972351, 0.37739986181259155, -0.022563215345144272, -0.5167699456214905, 0.34886372089385986, 0.42059603333473206, -0.19445352256298065, -0.4910910725593567, 0.5933323502540588, -0.6085787415504456, -0.7204411625862122, 0.3037263751029968, -0.07760395109653473, 0.03009173460304737, 0.0090076494961977, -0.6565313339233398, 0.37561291456222534, 0.0772029235959053, -0.20320242643356323, 0.11232323199510574, 0.2114412486553192, 0.1473347246646881, 0.896852970123291, 0.39723843336105347, 0.08444119989871979, 0.5738716721534729, 0.5270286798477173, 0.7545762658119202, -0.63459312915802, -0.505168080329895, -1.111054539680481, 0.42658787965774536, -0.024179408326745033, -0.2533821165561676, 0.8778434991836548, 0.910672664642334, 0.35050898790359497, -0.309635728597641, 0.5170013308525085, 0.30248767137527466, 0.4156210422515869, -0.6001914143562317, 0.46139538288116455, -0.361233115196228, 0.2750322222709656, -0.26322776079177856, -1.1346683502197266, -0.6198803186416626, 0.3329322636127472, -0.03643139451742172, -0.1695292890071869, 0.7971934080123901, 0.46994343400001526, -0.2871510684490204, -0.13075199723243713, 0.44206446409225464, 0.1499851942062378, 0.3543475270271301, 0.9050682187080383, 0.49702316522598267, -0.43751099705696106, 0.3921579420566559, -0.36565715074539185, -0.051817722618579865, -0.27804967761039734, -0.7964787483215332, -0.8639771938323975, -0.20740433037281036, -0.4000624418258667, 0.1230413168668747, 0.17230969667434692, 0.6827154755592346, 0.7158024907112122, -0.7254947423934937, -0.3877466917037964, -0.29443860054016113, 0.08452444523572922, -0.08964388072490692, -0.20774170756340027, 0.30737021565437317, -0.5270107388496399, -0.6947255730628967, 0.4339818060398102, 0.7986540198326111, 0.07143279165029526, -0.32487088441848755, -0.2106291651725769, -0.3608006536960602, 0.07753752171993256, 0.47894248366355896, 0.34991663694381714, -0.6606929898262024, -0.09419336169958115, 0.18029724061489105, -0.46383342146873474, 0.10788224637508392, 0.8532940745353699, -0.5381937623023987, 0.3894294202327728, 0.5940874814987183, 0.7559136152267456, 0.8201292157173157, 0.009205147624015808, 0.5478417277336121, -1.0973563194274902, 0.5069179534912109, 0.37519407272338867, 0.2601768374443054, 0.49674928188323975, -0.3314700424671173, 0.582063615322113, 0.08829724788665771, -0.33389654755592346, -0.6908158659934998, 0.2965972423553467, -0.9275754690170288, -0.0611586794257164, 0.9815101027488708, -0.05883040651679039, -0.39073020219802856, -0.025698838755488396, -0.15539535880088806, 0.11488199979066849, -0.2192469835281372, 0.699141263961792, 0.40267977118492126, 0.15022999048233032, -0.814044177532196, -0.3644788861274719, 0.44274717569351196, 0.5413545370101929, -0.7902063727378845, 0.031984418630599976, 0.11489365249872208, 0.052719343453645706, 0.13465920090675354, 0.5608566403388977, -0.06176622211933136, 0.37845656275749207, -0.38545945286750793, 0.19244374334812164, 0.057047054171562195, -0.5635464787483215, -0.6386678218841553, 0.15549425780773163, -0.13361836969852448, -0.03528886288404465 ]
http://arxiv.org/abs/2405.17376v1
http://arxiv.org/pdf/2405.17376v1
Federating Dynamic Models using Early-Exit Architectures for Automatic Speech Recognition on Heterogeneous Clients
2024-05-27T17:32:37
2024-05-27T17:32:37
Mohamed Nabih Ali, Alessio Brutti, Daniele Falavigna
cs.CL
cs.CL
Automatic speech recognition models require large amounts of speech recordings for training. However, the collection of such data often is cumbersome and leads to privacy concerns. Federated learning has been widely used as an effective decentralized technique that collaboratively learns a shared prediction model while keeping the data local on different clients. Unfortunately, client devices often feature limited computation and communication resources leading to practical difficulties for large models. In addition, the heterogeneity that characterizes edge devices makes it sub-optimal to generate a single model that fits all of them. Differently from the recent literature, where multiple models with different architectures are used, in this work, we propose using dynamical architectures which, employing early-exit solutions, can adapt their processing (i.e. traversed layers) depending on the input and on the operation conditions. This solution falls in the realm of partial training methods and brings two benefits: a single model is used on a variety of devices; federating the models after local training is straightforward. Experiments on public datasets show that our proposed approach is effective and can be combined with basic federated learning strategies.
[ -0.3245156705379486, -0.7681893110275269, 0.46139439940452576, -0.015137417241930962, -0.15240639448165894, 0.17620351910591125, -0.2408776730298996, -0.5430659055709839, -0.017994288355112076, 0.15232257544994354, -0.5733337998390198, -0.27717897295951843, -0.3795066773891449, -0.08396676182746887, -0.43684715032577515, 0.7873403429985046, -0.3463743031024933, -0.022541487589478493, -0.15478233993053436, -0.31119483709335327, -0.2519012689590454, -0.3048812747001648, -0.5912314653396606, -0.6102070808410645, 0.43074125051498413, 0.33709803223609924, 0.6539999842643738, 0.8730548024177551, 0.27344396710395813, 0.3613261282444, -0.04353902488946915, 0.01491147093474865, -0.2162030190229416, 0.2996334135532379, 0.21770691871643066, -0.2678639888763428, -0.3323739767074585, 0.22260762751102448, 0.9444164633750916, 1.1001262664794922, -0.6980898380279541, 0.11693909019231796, 0.048567526042461395, 0.32207220792770386, -0.49521350860595703, 0.20037944614887238, -0.5516070127487183, 0.5805647969245911, -0.37881946563720703, -0.05093654617667198, -0.3722456395626068, -0.16468055546283722, 0.6957913637161255, -0.4985058903694153, 0.05450558289885521, -0.2724246680736542, 0.5318390727043152, 0.36287978291511536, -0.00560566084459424, -0.15774571895599365, -1.1503610610961914, 0.6939311027526855, -0.45229873061180115, 0.7692808508872986, 0.2006661742925644, 0.7043382525444031, 0.0913274884223938, -0.9406899809837341, -0.4158903956413269, -0.08896603435277939, 0.06486311554908752, -0.08552785217761993, -0.5312619805335999, -0.17722657322883606, 0.10356643050909042, 0.20571529865264893, -0.3687392473220825, 0.4763799011707306, -0.09799094498157501, -0.3934016823768616, 0.27518871426582336, -0.04743937402963638, 0.0710037499666214, 0.4041118919849396, -0.4420788288116455, -0.15326820313930511, -0.5559388995170593, 0.21760451793670654, 0.4776703715324402, 0.8240547776222229, -0.47549745440483093, 0.05122845619916916, -0.2649247348308563, 0.7156228423118591, 0.48676639795303345, -0.22706766426563263, 0.6889805793762207, -0.10600736737251282, -0.3871399760246277, 0.4631015956401825, 0.5760886669158936, -0.5137776732444763, -0.3721960186958313, -0.4722059667110443, -0.6204687356948853, -0.3090096414089203, 0.00023475088528357446, -0.5681582689285278, -0.35585179924964905, 0.45396602153778076, -0.4777268171310425, -0.3018638491630554, -0.177042618393898, -0.5029032826423645, -0.2258002758026123, -0.536689817905426, 0.5187180042266846, -0.11003737896680832, -0.30688056349754333, -0.11134401708841324, 0.20653045177459717, 0.14500795304775238, 0.39361926913261414, -0.7049030661582947, 0.5242149233818054, 0.4519001543521881, 1.1595251560211182, -0.10687559843063354, -0.2661198377609253, -1.4840569496154785, -0.03099239431321621, 0.1057261973619461, 0.470505028963089, -0.5028961896896362, -0.3130638599395752, 0.04003273323178291, -0.1320921927690506, -0.12499739974737167, -0.48925960063934326, 0.3567376136779785, -0.5905311107635498, 0.5383729338645935, 0.07701277732849121, -0.25302645564079285, -0.02979898825287819, -0.028785528615117073, -0.6127728819847107, 0.4108480215072632, -0.20088191330432892, -0.7812994122505188, 0.04640179127454758, -0.7680551409721375, -0.553489625453949, 0.14714637398719788, -0.33034342527389526, -0.8524537682533264, 0.1140078604221344, 0.20847927033901215, 0.664987325668335, -0.135573148727417, 0.04007074981927872, -0.3832835853099823, -0.2612069249153137, -0.1960975080728531, -0.4342845678329468, 0.8753758668899536, 0.38141244649887085, -0.559756875038147, 0.02392180822789669, -0.9451270699501038, -0.04305869713425636, 0.12986157834529877, -0.6844854950904846, -0.35408827662467957, 0.13961684703826904, -0.03957701846957207, 0.13107748329639435, 0.19609272480010986, -0.6811815500259399, -0.1420702040195465, -0.450619101524353, 0.36208340525627136, 0.9088143110275269, -0.15725259482860565, 0.5899357199668884, -0.4545019567012787, 0.4682869613170624, 0.20243528485298157, 0.19431635737419128, -0.16607457399368286, -0.27106910943984985, -0.42082566022872925, -0.5925123691558838, 0.21255145967006683, 0.47433412075042725, -0.7546637058258057, 0.19246205687522888, -0.20513826608657837, -0.7040097713470459, -0.3412805199623108, 0.0924297422170639, 0.5051110982894897, 0.5760061740875244, 0.17129437625408173, -0.31656360626220703, -0.44918936491012573, -0.493783175945282, 0.039526887238025665, -0.16268031299114227, -0.00331767275929451, 0.6779794692993164, -0.006697578355669975, -0.19874024391174316, 0.8534446954727173, -0.21049270033836365, -0.2926217317581177, -0.0017409725114703178, 0.25403231382369995, 0.3812454044818878, 0.5145321488380432, 0.48470401763916016, -0.9770060777664185, -0.4235261082649231, 0.2856762707233429, -0.4834003150463104, -0.0005410104058682919, -0.20379845798015594, 0.1446004956960678, -0.12642666697502136, -0.02078448235988617, -0.3751121759414673, 0.12334531545639038, 0.7507493495941162, 0.1709478348493576, 0.5092863440513611, -0.2676679790019989, -0.23614555597305298, -0.9714142084121704, -0.08545681089162827, 0.020018864423036575, -0.3115435540676117, -0.8295661211013794, -0.25608110427856445, -0.43565449118614197, -0.44684624671936035, -0.7085053324699402, 0.32549819350242615, -0.5929426550865173, -0.5258030295372009, -0.12077461928129196, -0.06294715404510498, -0.24641740322113037, 0.33666494488716125, 0.2514069676399231, 0.6879080533981323, 0.8460496664047241, -0.6295698881149292, 0.6115321516990662, 0.19678445160388947, -0.044799111783504486, 0.217139333486557, -0.6856068968772888, 0.4575175642967224, 0.008866691961884499, 0.3270322382450104, -0.7069313526153564, -0.3915860056877136, 0.13374584913253784, -0.37381812930107117, 0.31004559993743896, -0.16770195960998535, -0.18277209997177124, -0.18154148757457733, -0.0976424440741539, 0.4560033977031708, 0.5330727100372314, -0.9190486073493958, 0.9023585915565491, 0.6500710844993591, -0.1266116201877594, -0.4529510736465454, -0.7299820780754089, -0.2619442343711853, -0.31613096594810486, -0.6258716583251953, 0.43285277485847473, 0.10614221543073654, -0.07331148535013199, -0.12136221677064896, -0.08544974029064178, -0.2938527762889862, 0.22122728824615479, 0.5019710659980774, 0.15228089690208435, -0.43446049094200134, -0.05710778012871742, 0.184183731675148, 0.04538626968860626, -0.07625411450862885, -0.4907284379005432, 0.7332785129547119, -0.3575662076473236, -0.5019930601119995, -0.7748590111732483, 0.36495888233184814, 0.5177939534187317, -0.7036175727844238, 0.6348229646682739, 0.7769773006439209, -0.6381154656410217, -0.4750632643699646, -0.3195437490940094, -0.17891420423984528, -0.5277808904647827, 0.11730972677469254, -0.49785682559013367, -0.642205536365509, 0.8284767270088196, -0.13156703114509583, 0.24939659237861633, -0.043521732091903687, 0.904642641544342, -0.21712295711040497, 0.7499899864196777, 0.644287645816803, -0.09308584034442902, 0.9216378927230835, -0.20604658126831055, 0.0513739138841629, -0.48014146089553833, -0.28878891468048096, -0.462319016456604, -0.188012033700943, -0.5651426911354065, -0.17275303602218628, 0.5994893908500671, -0.4204823076725006, -0.06385636329650879, 0.20772308111190796, -0.4667614996433258, 0.3236970603466034, 0.7013596296310425, 0.43797022104263306, 0.0036252348218113184, 0.4471043348312378, -0.4054834842681885, 0.4267280697822571, -0.8897442817687988, -0.27432945370674133, 0.8383527994155884, 0.658180296421051, 0.663553774356842, 0.05662897601723671, 1.143617033958435, 0.3163275420665741, 0.12011740356683731, -0.5376144051551819, 0.3258858025074005, -0.19309644401073456, -0.29279306530952454, -0.4454673230648041, -0.6610468029975891, -0.8040623664855957, 0.13331665098667145, -0.10016776621341705, -0.6661880612373352, 0.7876326441764832, 0.3421047627925873, -0.7297626733779907, 0.41262370347976685, -0.6192907691001892, 0.5563852190971375, -0.07541494816541672, -0.5092961192131042, 0.18150605261325836, -0.7907521724700928, 0.18370525538921356, -0.23587293922901154, -0.019148988649249077, 0.15677601099014282, 0.3544556200504303, 0.8760132193565369, -0.36287039518356323, 0.8119507431983948, -0.7811037302017212, 0.06193815544247627, 0.23566529154777527, -0.07381551712751389, 0.6003481149673462, -0.1707088202238083, -0.20656731724739075, 0.2340337336063385, -0.16700147092342377, -0.19398751854896545, -0.2952194809913635, 0.6310750842094421, -0.9994507431983948, -0.049505483359098434, -0.3830344080924988, -0.33659133315086365, -0.3919011056423187, 0.19095125794410706, 0.0006937066791579127, 0.8148654699325562, 0.02906402200460434, 0.23887652158737183, 0.6438862681388855, -0.1057635173201561, 0.5446073412895203, 0.5336577892303467, 0.21735075116157532, -0.23120585083961487, 0.8434582948684692, 0.08939900994300842, 0.17719666659832, 0.08362508565187454, 0.3655758500099182, -0.3114590048789978, -0.7793370485305786, -0.27537068724632263, 0.003695813473314047, -0.5211392045021057, -0.06217329949140549, -0.41967540979385376, -0.2571476697921753, -0.2759835720062256, -0.018374186009168625, -0.7685583829879761, 0.00529910484328866, -0.5992396473884583, 0.1288943588733673, -0.2002929002046585, 0.21250155568122864, -0.47016531229019165, 0.38331085443496704, -0.9074246287345886, 0.08214041590690613, 0.44142913818359375, 0.3711457848548889, 0.1703762710094452, -0.46550998091697693, -0.375091016292572, 0.2714065611362457, -0.08731364458799362, -0.6627233624458313, 0.1853918731212616, 0.5389348268508911, 0.9185305833816528, 0.5871108770370483, 0.17282776534557343, 0.5745304822921753, -0.7543635964393616, 0.3747576177120209, 0.3438139259815216, -0.803582489490509, 0.5694210529327393, -0.4216943085193634, 0.1712108999490738, 0.5868990421295166, 0.4803430736064911, -0.3589518964290619, -0.07922671735286713, -0.2713108956813812, -0.6018550395965576, 0.869047999382019, 0.1679258793592453, 0.09272369742393494, 0.4450649321079254, 0.23313027620315552, 0.32046210765838623, 0.08585246652364731, -0.501696765422821, -0.14221645891666412, -0.2780264914035797, -0.18875418603420258, 0.19212540984153748, 0.30156275629997253, -0.41064733266830444, -0.10523902624845505, 0.4644010066986084, 0.0557786300778389, 0.5152920484542847, -0.05024757608771324, 0.09098969399929047, -0.30255183577537537, 0.0511823371052742, 0.3818320333957672, 0.44226059317588806, -0.31802085041999817, -0.041675910353660583, -0.1287391185760498, -0.4601516127586365, 0.4459797441959381, 0.6726841926574707, -0.28045013546943665, 0.08565528690814972, 0.38874050974845886, 1.0975748300552368, 0.03953063115477562, -0.4840601682662964, 0.49759364128112793, -0.1678413450717926, -0.07101207971572876, -0.36329320073127747, -0.016614295542240143, -0.3025139570236206, 0.5910863876342773, 0.4589311480522156, 0.1821819245815277, 0.09970536082983017, -0.6174649596214294, 0.5417190194129944, 0.3368518352508545, -0.3159485459327698, -0.5323392152786255, 0.5964740514755249, 0.4528419077396393, -0.44609761238098145, 0.5929437279701233, -0.0810885950922966, -0.37309029698371887, 0.29669252038002014, 0.3636396825313568, 1.1149601936340332, -0.5607370138168335, 0.29042232036590576, -0.2710600793361664, -0.0370294414460659, 0.01987125724554062, -0.03801757097244263, -0.6173849105834961, -0.7990135550498962, -0.3161020874977112, -0.7478004097938538, -0.6743166446685791, -0.05040137469768524, -0.7164826393127441, 0.20377828180789948, -0.5497794151306152, -0.1653139889240265, 0.059582896530628204, 0.07335919886827469, -0.8692420721054077, 0.26099517941474915, 0.6015076637268066, 0.5943447947502136, -0.9767313003540039, 0.9481638669967651, 0.7784431576728821, -0.14094585180282593, -0.9878966808319092, 0.0715550109744072, 0.11982323229312897, -0.5441810488700867, 0.4757850468158722, 0.011431237682700157, -0.3235093355178833, -0.13871726393699646, -0.23749451339244843, -0.7236371040344238, 1.184629201889038, 0.34367847442626953, -0.643818199634552, -0.4208601415157318, 0.09651479870080948, 0.3575958013534546, -0.601169228553772, 0.02898551896214485, 0.2762739658355713, 0.1159917563199997, 0.28661873936653137, -1.1695938110351562, -0.19225721061229706, -0.07306534796953201, -0.24298827350139618, -0.18023724853992462, -0.45335912704467773, 1.1958216428756714, -0.18289531767368317, -0.5225352644920349, -0.1684464067220688, 0.6044480800628662, 0.19009768962860107, 0.662878692150116, 0.9759838581085205, 0.2924382984638214, 0.973829448223114, 0.10302308201789856, 0.7352162599563599, -0.1401359885931015, 0.32401043176651, 1.4320553541183472, -0.414814293384552, 0.8666922450065613, 0.29225048422813416, -0.09914111346006393, 0.2648973762989044, 0.7095247507095337, 0.29405903816223145, 1.1165571212768555, -0.03985264152288437, -0.3619542717933655, -0.20069174468517303, 0.05730308219790459, -0.4149976074695587, 1.0109329223632812, -0.05855044722557068, -0.28942161798477173, -0.42694440484046936, 0.4177606701850891, -0.21291400492191315, -0.1198577955365181, -0.13844189047813416, 0.8223354816436768, -0.09653603285551071, 0.0008562178700231016, 0.5587148070335388, 0.06518769264221191, 0.420475572347641, -0.5637766122817993, 0.056405261158943176, -0.30147188901901245, 0.03762892633676529, -0.2350231260061264, -0.12390460073947906, 0.22017332911491394, 0.12022610008716583, -0.09968685358762741, -0.3656456768512726, 0.6342045664787292, -0.3779134750366211, -0.37005114555358887, 0.13364307582378387, 0.7443947792053223, 0.015632493421435356, 0.15326420962810516, -0.5911546349525452, 0.29656171798706055, -0.1536046266555786, -0.30251964926719666, 0.28530555963516235, 0.2843960225582123, 0.38698267936706543, 0.7131354212760925, 0.9605380892753601, 0.2908003032207489, 0.2770676016807556, -0.06147143989801407, 1.193833827972412, 0.02972063049674034, -0.8959538340568542, -0.5180454850196838, 0.4034452438354492, -0.008187945932149887, -0.05448950454592705, 0.5115972757339478, 0.42786574363708496, 0.7963696718215942, 0.3046722710132599, 0.5702500343322754, 0.18436411023139954, 0.7059215307235718, -0.48287099599838257, 0.8273712396621704, -0.6142268776893616, 0.48166218400001526, -0.22091737389564514, -0.9192891120910645, -0.21404911577701569, 0.7024694681167603, -0.26964160799980164, -0.05032110586762428, 0.018680591136217117, 0.28636375069618225, -0.5973197817802429, 0.15983933210372925, 0.2104664444923401, 0.33366549015045166, 0.6234790682792664, 0.5480921864509583, 0.5995429158210754, -0.11555671691894531, 0.16733738780021667, -0.4552479088306427, -0.36414679884910583, -0.13671809434890747, -0.684468150138855, -0.38538891077041626, -0.6113136410713196, -0.45806488394737244, -0.1174011081457138, 0.20558464527130127, 1.0271272659301758, 1.1170034408569336, -0.6755236983299255, -0.10306116193532944, 0.05344662442803383, -0.10877180099487305, -0.13906028866767883, -0.1094788983464241, 0.3472597002983093, -0.07862554490566254, -0.6229066252708435, 0.6963261365890503, 0.10369770973920822, 0.13912686705589294, -0.5389965772628784, -0.24849428236484528, -0.10934591293334961, -0.03622519597411156, 0.26093316078186035, 0.522940456867218, -0.4008873403072357, -0.375633180141449, -0.40259334444999695, 0.14451907575130463, 0.10453857481479645, 0.5383001565933228, -1.0492756366729736, 0.668302059173584, 0.32685863971710205, 1.0023201704025269, 0.47320860624313354, 0.011170662008225918, 0.4975636899471283, -0.8756667971611023, 0.4593215882778168, 0.5941197276115417, 0.3375462591648102, 0.36625516414642334, -0.16821032762527466, 0.03342510014772415, 0.2570589482784271, -0.40896186232566833, -1.2973371744155884, 0.058214567601680756, -0.9559575319290161, 0.18308044970035553, 0.6081387996673584, -0.6336838603019714, -0.27656832337379456, 0.21120983362197876, 0.35176220536231995, 0.32753440737724304, -0.36075958609580994, 0.5273452401161194, 0.3930688798427582, -0.39172205328941345, -0.12763366103172302, -0.11151120066642761, 0.26870399713516235, 0.07712649554014206, -0.8580330014228821, -0.015268777497112751, 0.5464189648628235, 0.1706153154373169, 0.18426048755645752, 0.6070209741592407, 0.01758788339793682, 0.44812557101249695, 0.07752995193004608, -0.2572140097618103, -0.38616272807121277, -0.663216769695282, -0.6343472003936768, 0.4771397113800049, -0.30788159370422363, -0.8154178261756897 ]
http://arxiv.org/abs/2405.17361v1
http://arxiv.org/pdf/2405.17361v1
A One-Layer Decoder-Only Transformer is a Two-Layer RNN: With an Application to Certified Robustness
2024-05-27T17:10:04
2024-05-27T17:10:04
Yuhao Zhang, Aws Albarghouthi, Loris D'Antoni
cs.CL
cs.CL
This paper reveals a key insight that a one-layer decoder-only Transformer is equivalent to a two-layer Recurrent Neural Network (RNN). Building on this insight, we propose ARC-Tran, a novel approach for verifying the robustness of decoder-only Transformers against arbitrary perturbation spaces. Compared to ARC-Tran, current robustness verification techniques are limited either to specific and length-preserving perturbations like word substitutions or to recursive models like LSTMs. ARC-Tran addresses these limitations by meticulously managing position encoding to prevent mismatches and by utilizing our key insight to achieve precise and scalable verification. Our evaluation shows that ARC-Tran (1) trains models more robust to arbitrary perturbation spaces than those produced by existing techniques and (2) shows high certification accuracy of the resulting models.
[ -0.2150631695985794, -0.6679179668426514, 0.15920008718967438, 0.20694103837013245, -0.12471181899309158, 0.16428795456886292, 0.08918851613998413, -0.11639013141393661, -0.21090802550315857, 1.0037155151367188, -0.5687769055366516, -0.5484970808029175, -0.6662679314613342, 0.25902605056762695, -0.96433025598526, 0.7533225417137146, -0.0412411205470562, -0.36584916710853577, 0.012707114219665527, -0.30939990282058716, -0.08022043108940125, -0.31536543369293213, -0.38496413826942444, -0.38907068967819214, 0.40284407138824463, 0.20740826427936554, 0.7587961554527283, 0.5903927087783813, 0.7606604099273682, 0.20715847611427307, -0.21718069911003113, -0.04226820915937424, -0.2204446792602539, 0.3774920701980591, -0.221488356590271, -0.4969021677970886, -0.5409379005432129, -0.1708681434392929, 0.6704797744750977, 0.30258840322494507, -0.043990422040224075, 0.24639615416526794, 0.003586407285183668, 0.5390122532844543, -0.7078725099563599, -0.315460205078125, -0.8052007555961609, 0.24540628492832184, 0.02411866933107376, -0.18594051897525787, -0.9910061359405518, -0.3964897096157074, -0.006304605398327112, -0.35461440682411194, 0.10922972112894058, -0.03229926899075508, 1.0393288135528564, 0.8309302926063538, -0.4770176410675049, 0.4575980007648468, -1.184744954109192, 0.7559462189674377, -0.40524300932884216, 0.7451678514480591, 0.22760199010372162, 0.5554606914520264, 0.17881707847118378, -1.1352440118789673, -0.5590354204177856, -0.11282096803188324, -0.33129432797431946, 0.15328127145767212, -0.4765119254589081, 0.07694873958826065, 0.4699866771697998, 0.2804780900478363, -0.3796839118003845, 0.07458341121673584, 0.07082582265138626, -0.39596790075302124, 0.2858719825744629, -0.020594969391822815, 0.4078884422779083, 0.0003628111444413662, -0.9392163753509521, -0.4603102207183838, -0.8420187830924988, 0.2293538898229599, 0.34602004289627075, -0.02234654873609543, -0.0181664377450943, 0.5781511664390564, 0.3390544354915619, 0.10561118274927139, 0.33995291590690613, 0.08689696341753006, -0.18693919479846954, -0.4304791986942291, -0.15451675653457642, 0.13662220537662506, 0.7281212210655212, -0.12817202508449554, -0.016308153048157692, -0.5491542220115662, -0.29644325375556946, 0.15954305231571198, 0.5786358118057251, -0.5852578282356262, -0.20714780688285828, 0.312120258808136, -0.3386554419994354, -0.5703624486923218, 0.3110704720020294, -0.5408169627189636, -0.26800477504730225, 0.2117498368024826, 0.2725624144077301, -0.4447084367275238, -0.5917843580245972, 0.2761405408382416, 0.10255368798971176, 0.8028955459594727, -0.14456331729888916, -0.6106545925140381, 0.3745213747024536, 0.8605619072914124, 0.6305140852928162, -0.27955129742622375, -0.6890919208526611, -0.11943996697664261, 0.00829328689724207, -0.3607194125652313, 0.9239652156829834, -0.1332923322916031, 0.010776796378195286, -0.2405720353126526, -0.10436388850212097, -0.06926029920578003, -0.2854462265968323, 0.8221273422241211, -0.5449227094650269, -0.24733051657676697, -0.0054354737512767315, -0.19150367379188538, -0.044138047844171524, 0.5213007926940918, -0.9857364892959595, 1.0268055200576782, 0.8524760007858276, -0.9635635018348694, 0.2888251543045044, -0.2688474953174591, -0.5964145064353943, -0.39156490564346313, 0.23878338932991028, -0.8766878843307495, -0.1714669018983841, 0.2716085612773895, -0.07759207487106323, -0.04053583741188049, -0.10507528483867645, 0.011321558617055416, -0.3193144202232361, 0.51576167345047, -0.7445387244224548, 0.8322988152503967, 0.13712984323501587, -0.3788556456565857, 0.0759313553571701, -0.9081549644470215, 0.23556247353553772, -0.0381961464881897, -0.3948538899421692, 0.013102810829877853, -0.32932621240615845, -0.05185428634285927, 0.13049858808517456, -0.18158641457557678, -0.706024706363678, 0.26837587356567383, -0.5272282361984253, 0.727192223072052, 0.5679627060890198, 0.05217833071947098, 0.5870831608772278, -0.32782140374183655, 0.7540084719657898, 0.23603424429893494, 0.2838120758533478, -0.3847625255584717, -0.24420134723186493, -0.8185312747955322, -0.2914823591709137, 0.469264417886734, 0.89769047498703, -0.7608667016029358, 0.9814572930335999, -0.4018632769584656, -0.36921441555023193, -0.4862757623195648, -0.2180156260728836, 0.1847945749759674, 0.689430832862854, 0.5040050745010376, -0.18880848586559296, -0.824287474155426, -0.6761348247528076, -0.30454137921333313, -0.1945352554321289, -0.04758693277835846, -0.15568169951438904, 0.4208245277404785, -0.41750216484069824, 0.8540810346603394, 0.22241410613059998, -0.15822593867778778, -0.49961307644844055, -0.2759685516357422, 0.08564350754022598, 0.535006582736969, 0.3218710422515869, -0.4277876019477844, -0.3578241467475891, 0.28768908977508545, -0.6633198857307434, 0.048860665410757065, -0.35452786087989807, -0.22694548964500427, -0.005829930305480957, 0.22110344469547272, -0.6126970648765564, 0.875074028968811, 0.5760190486907959, -0.3262667655944824, 0.4281981885433197, -0.09719229489564896, 0.05366180092096329, -0.6968650817871094, 0.15968042612075806, -0.22670474648475647, -0.5191338062286377, -0.7251734733581543, 0.31852197647094727, 0.16983507573604584, -0.07388386130332947, -0.5377284288406372, 0.16529300808906555, -0.061818648129701614, 0.10734258592128754, 0.005440808832645416, -0.3225614130496979, 0.3675072491168976, 0.39136362075805664, -0.029328374192118645, 0.619040846824646, 0.7514311671257019, -0.3716108798980713, 0.3059510588645935, 0.602016031742096, -0.4194667637348175, 0.6018540859222412, -0.914017915725708, 0.5039193034172058, -0.14884062111377716, 0.42814984917640686, -0.9779474139213562, 0.17097069323062897, 0.04290369153022766, -0.1997797042131424, 0.2479812204837799, -0.1901116967201233, -0.1196812093257904, -0.4237327575683594, -0.1740325540304184, 0.6439441442489624, 0.391621470451355, -0.6615225076675415, 1.1279430389404297, -0.19687065482139587, 0.4096470773220062, -0.983063817024231, -1.318660855293274, 0.0294367466121912, -0.030958352610468864, -0.8452016711235046, -0.14947982132434845, 0.3766666054725647, 0.03556984290480614, -0.24753175675868988, -0.5099813938140869, -0.18635407090187073, 0.3208635747432709, 0.21513131260871887, 0.16549156606197357, -0.5563272833824158, -0.5566791296005249, 0.26765307784080505, -0.6991136074066162, 0.061576470732688904, -0.3911086916923523, 0.30466949939727783, -0.07919162511825562, -0.6119877696037292, -0.8641137480735779, 0.4992969334125519, 0.9639835953712463, -0.4803726375102997, 0.31193724274635315, 0.45740658044815063, -0.1861010193824768, -0.65400230884552, -0.4940289258956909, -0.40941110253334045, -0.5047828555107117, 0.4042036831378937, -0.50054532289505, -0.4522702395915985, 0.7853736281394958, -0.08471956104040146, 0.06549742072820663, 0.32414665818214417, 0.08504394441843033, 0.058337558060884476, 0.9825478196144104, 0.3638932704925537, 0.031549375504255295, 0.12433480471372604, -0.6198614835739136, 0.680450439453125, -0.7843886017799377, -0.34854856133461, -0.6876930594444275, -0.6329641342163086, -0.2561695873737335, -0.08764493465423584, 0.2545822262763977, -0.10248907655477524, -0.8180456161499023, 0.9518608450889587, -0.9629859924316406, 0.6569833159446716, 0.18396668136119843, 0.2702309191226959, 0.4135698080062866, 0.07887385040521622, -0.039771661162376404, 0.07109241187572479, -0.5647764205932617, -0.5807054042816162, 0.7765722274780273, 0.7141274213790894, 1.1171679496765137, 0.14966590702533722, 0.3651908338069916, 0.10377376526594162, 0.036999061703681946, -0.887249231338501, 0.4345450699329376, -0.2967979907989502, -0.47317084670066833, -0.32100027799606323, -0.3757229745388031, -0.7549159526824951, -0.03420485183596611, -0.22933697700500488, -0.5421798825263977, 0.40975096821784973, 0.026034895330667496, -0.30423882603645325, 0.886656641960144, -0.3545071482658386, 0.6103089451789856, -0.3372594118118286, 0.02299102209508419, 0.4802168309688568, -0.7576310634613037, 0.16610294580459595, 0.262382835149765, -0.3077200651168823, 0.2295108288526535, -0.09099453687667847, -0.042239975184202194, -0.2786068320274353, 0.4050850570201874, 0.17375366389751434, -0.12861914932727814, 0.3292366564273834, 0.8730961084365845, 0.6833401322364807, 0.10382207483053207, -0.22629079222679138, 0.3576664626598358, 0.014049282297492027, -0.1509416550397873, -0.7388924956321716, 0.44085273146629333, -0.9268381595611572, -0.4326217472553253, -0.1412893682718277, -0.40062761306762695, -0.15663427114486694, 0.36903899908065796, 0.8072724342346191, 0.22851234674453735, 0.059053272008895874, 0.4516420066356659, 1.015900731086731, 0.157361701130867, 0.16372282803058624, -0.06980270147323608, 0.13557086884975433, -0.2960547208786011, 0.5634393692016602, -0.4159713089466095, 0.5127396583557129, 0.732674777507782, 0.27821436524391174, -0.36459457874298096, -0.3296385407447815, -0.4407939016819, -0.1913740187883377, -0.8213343620300293, -0.40749284625053406, -0.5625970363616943, -0.7033997178077698, -0.24989284574985504, -0.10916010290384293, -1.022562026977539, -0.5754337310791016, 0.12157174944877625, -0.39396369457244873, 0.024817658588290215, 0.7364892363548279, 0.2748834192752838, 0.10109077394008636, -0.7145951390266418, 0.320282518863678, 0.4507344663143158, 0.6997573971748352, 0.04693060740828514, -0.6285420060157776, 0.23910407721996307, -0.0028181271627545357, -0.46850454807281494, -0.5491774678230286, -0.11306816339492798, 0.240281343460083, 0.4368225634098053, 0.6038006544113159, 0.1410972774028778, 0.20540286600589752, -0.341282457113266, 0.9860506057739258, 0.18832610547542572, -1.1631107330322266, 0.568880021572113, 0.0359543040394783, 0.0984468162059784, 0.6417199969291687, -0.09951632469892502, -0.2126656025648117, -0.5087581872940063, -0.43166524171829224, -0.8522640466690063, 0.5188425183296204, 0.4861370623111725, 0.20482167601585388, 0.46275269985198975, 0.5870146155357361, 0.2601873576641083, -0.3318202495574951, -0.8372156620025635, -0.7623599171638489, -0.9419957399368286, 0.03157941624522209, 0.6541414260864258, -0.2001705914735794, -0.09240070730447769, -0.14800117909908295, 0.40057626366615295, 0.09361671656370163, 0.41024506092071533, 0.44166094064712524, -0.09795145690441132, -0.15108975768089294, 0.4427832365036011, 0.47357887029647827, 0.5473195314407349, 0.003976893145591021, 0.6136753559112549, 0.370032399892807, -0.6075579524040222, 0.7047033309936523, -0.5324181318283081, -0.30009713768959045, 0.08244799822568893, 0.5903464555740356, 0.8201726078987122, 0.12360592186450958, 0.0003450013173278421, 0.8247663974761963, -0.2636629641056061, -0.2453841269016266, 0.051135119050741196, -0.041210856288671494, -0.4704473912715912, 0.012209621258080006, 0.25938472151756287, 0.6440353989601135, -0.24906162917613983, -0.12102516740560532, 0.397512823343277, 0.1561013013124466, -0.4876175820827484, -0.5173095464706421, 1.0016615390777588, -0.04709320515394211, -0.3294089436531067, 0.751541793346405, 0.19900093972682953, -0.6263608932495117, 0.5922375321388245, 0.686659038066864, 1.2280786037445068, -0.3679410219192505, -0.011627376079559326, 0.5424243807792664, 0.701924204826355, -0.393020361661911, -0.09616124629974365, -0.1141449511051178, -0.7584676742553711, -0.35837027430534363, -0.2050817906856537, -0.49970895051956177, -0.21538464725017548, -0.971967875957489, 0.3946738839149475, -0.5867782235145569, -0.28456637263298035, -0.13366255164146423, -0.7440834045410156, -0.5930117964744568, -0.017028242349624634, -0.09415857493877411, 1.18855881690979, -0.7607433199882507, 0.8716562390327454, 0.405095636844635, -0.08416421711444855, -1.145097017288208, -0.1227451041340828, -0.44402503967285156, -0.7709931135177612, 0.12350252270698547, -0.022256042808294296, -0.5134559273719788, -0.12723858654499054, -0.5289937257766724, -0.7039678692817688, 1.1717077493667603, 0.8551110029220581, -0.4051191806793213, -0.2738988399505615, 0.4637328088283539, 0.45929381251335144, -0.045217953622341156, 0.3490290939807892, 0.8539745807647705, 0.6286303997039795, 0.3475162386894226, -0.6896367073059082, 0.09928339719772339, -0.0006592895952053368, 0.18508051335811615, 0.02646549977362156, -0.3234172463417053, 0.6853811740875244, -0.20525634288787842, -0.5928149223327637, 0.48778411746025085, 0.4349301755428314, -0.20264345407485962, -0.06259677559137344, 0.5890055894851685, 0.7442584037780762, 0.4901933968067169, -0.42901939153671265, 1.1485517024993896, -0.42909353971481323, 0.7005346417427063, 0.932604193687439, -0.13143764436244965, 0.5604678392410278, 0.43858933448791504, -0.22437691688537598, 0.7659208178520203, -0.08463796228170395, -0.10766081511974335, 0.5098521709442139, -0.0863436907529831, -0.004276916850358248, -0.5125624537467957, 0.3049475848674774, -0.37112900614738464, 0.6366491913795471, 0.06841162592172623, -0.31628847122192383, -0.20696254074573517, 0.029847439378499985, -0.24653251469135284, 0.1800125539302826, -0.08071184903383255, 0.6474664211273193, 0.11433619260787964, -0.5479479432106018, 0.6226897239685059, -0.17749950289726257, 0.6811746954917908, -0.7063867449760437, 0.1569513976573944, -0.25817960500717163, 0.3923407793045044, -0.7400084733963013, -0.8869683742523193, 0.6101847887039185, -0.18366363644599915, -0.10547152906656265, -0.3890349566936493, 0.7425270676612854, -0.18850210309028625, -0.556725025177002, 0.09155144542455673, 0.0964115560054779, -0.35896217823028564, 0.05215349420905113, -0.18084584176540375, 0.07890098541975021, -0.1605568379163742, -0.319138765335083, -0.23152218759059906, 0.38367751240730286, 0.2672940194606781, 0.942313551902771, 0.3969452679157257, 0.19964663684368134, 0.17002110183238983, 0.11887111514806747, 0.6592351794242859, -0.4415319561958313, -0.4725298285484314, -0.6825480461120605, 0.8093475699424744, 0.3594948947429657, -0.3301139175891876, 0.6719806790351868, 0.3377760052680969, 0.5727178454399109, 0.023542268201708794, 0.7616284489631653, 0.33434516191482544, 0.1611134558916092, -0.18882159888744354, 0.9239863157272339, -0.0037718755193054676, 0.7229205369949341, -0.11588475108146667, -0.8953872919082642, -0.7745320200920105, 0.7459983825683594, 0.25809532403945923, -0.164452463388443, 0.8363712430000305, 0.896574079990387, -0.31906524300575256, 0.1887340396642685, 0.336731880903244, 0.2390872985124588, 0.23580214381217957, 0.7302199602127075, 1.1372097730636597, -0.9888569712638855, 0.7617242336273193, -0.5700724124908447, 0.0936366617679596, 0.43914005160331726, -0.9865669012069702, -0.765488862991333, -0.4746262729167938, -0.4704834818840027, -0.9252578020095825, -0.4660485088825226, 0.4139794707298279, 0.7338845729827881, -1.0777896642684937, 0.26366570591926575, -0.18660178780555725, 0.5789353251457214, -0.8346545696258545, -0.20328879356384277, 0.3434276580810547, 0.2382071614265442, -0.30262869596481323, 0.21994037926197052, 0.38606229424476624, 0.02332414872944355, -0.5989845991134644, 0.10777369886636734, 0.3425373435020447, 0.20016413927078247, 0.4118843376636505, 0.24982649087905884, -0.7701372504234314, -0.6494853496551514, 0.3760128915309906, -0.3203326463699341, 0.5764614343643188, 1.258703589439392, -0.632250189781189, 0.3150155544281006, 0.5791977047920227, 0.6938779354095459, 0.2663390636444092, 0.06253347545862198, 0.2448263019323349, -0.9058762192726135, 0.2588719129562378, 0.5748652219772339, 0.3843761384487152, 0.24305947124958038, -0.6336970329284668, 0.29698094725608826, -0.29832205176353455, -0.5467179417610168, -0.900093674659729, 0.3686133325099945, -1.350994348526001, 0.33114737272262573, 1.1314786672592163, -0.4386182725429535, -0.29387030005455017, -0.14721304178237915, -0.14253829419612885, 0.1350546032190323, -0.050352733582258224, 0.6791516542434692, 0.3458482027053833, 0.25699368119239807, -0.4372355043888092, 0.387362003326416, 0.11069712787866592, 0.10168277472257614, -0.5152754783630371, 0.06802913546562195, -0.3980737626552582, 0.4806632995605469, 0.3106992840766907, -0.1740298718214035, -0.29055503010749817, 0.5367918014526367, 0.16907143592834473, -0.16174335777759552, -0.5530019402503967, -0.4439387619495392, -0.5028641223907471, 0.23115457594394684, -0.03043145313858986, -0.14618989825248718 ]
http://arxiv.org/abs/2405.17357v3
http://arxiv.org/pdf/2405.17357v3
DoRA: Enhancing Parameter-Efficient Fine-Tuning with Dynamic Rank Distribution
2024-05-27T17:02:27
2024-06-26T14:41:33
Yulong Mao, Kaiyu Huang, Changhao Guan, Ganglin Bao, Fengran Mo, Jinan Xu
cs.CL
cs.CL
Fine-tuning large-scale pre-trained models is inherently a resource-intensive task. While it can enhance the capabilities of the model, it also incurs substantial computational costs, posing challenges to the practical application of downstream tasks. Existing parameter-efficient fine-tuning (PEFT) methods such as Low-Rank Adaptation (LoRA) rely on a bypass framework that ignores the differential parameter budget requirements across weight matrices, which may lead to suboptimal fine-tuning outcomes. To address this issue, we introduce the Dynamic Low-Rank Adaptation (DoRA) method. DoRA decomposes high-rank LoRA layers into structured single-rank components, allowing for dynamic pruning of parameter budget based on their importance to specific tasks during training, which makes the most of the limited parameter budget. Experimental results demonstrate that DoRA can achieve competitive performance compared with LoRA and full model fine-tuning, and outperform various strong baselines with the same storage parameter budget. Our code is available at https://github.com/MIkumikumi0116/DoRA
[ -0.4393210709095001, -0.8275906443595886, 0.4113052487373352, 0.30402490496635437, -0.4368549585342407, 0.3857729136943817, -0.25940290093421936, -0.2809838652610779, 0.14136849343776703, 0.1715061515569687, -0.8075718283653259, -0.3162676692008972, -0.5451940894126892, -0.13388538360595703, -0.21061664819717407, 0.9986379146575928, -0.04809961095452309, -0.42864105105400085, 0.030145462602376938, -0.06702163815498352, -0.45118317008018494, -0.2324834167957306, -0.814813494682312, 0.13736723363399506, 0.7917343974113464, 0.6811200976371765, 0.6286409497261047, 0.5707465410232544, 0.6292756199836731, 0.23748475313186646, -0.24680693447589874, 0.5373901724815369, -1.079600214958191, 0.44074127078056335, -0.18153931200504303, -0.3956035077571869, -1.1578497886657715, 0.02978711947798729, 0.9104928374290466, 0.5054665207862854, -0.3373135030269623, 0.5124937891960144, 0.2878774106502533, 0.8084637522697449, -1.2542386054992676, 0.15085847675800323, -0.8834138512611389, 0.029567580670118332, -0.32058700919151306, -0.3430124521255493, -0.17285481095314026, -0.25696197152137756, -0.17866690456867218, -0.9881331920623779, 0.08426658064126968, -0.13657090067863464, 0.9848645925521851, 0.7255642414093018, -0.32857826352119446, 0.1681322455406189, -0.8094044327735901, 0.8793825507164001, -0.47614744305610657, 0.2843923270702362, 0.3470420241355896, 0.4889451265335083, 0.07809127122163773, -0.6224445700645447, -0.09730285406112671, 0.058388952165842056, 0.4562380313873291, 0.027473436668515205, 0.06862857192754745, -0.11136777698993683, 0.12177126109600067, 0.3712320029735565, -0.0065506696701049805, 0.20439468324184418, -0.20209425687789917, 0.42855140566825867, 0.6568640470504761, 0.0888446569442749, -0.15428538620471954, 0.22625598311424255, -0.34491369128227234, -0.3783401846885681, -0.918815553188324, 0.08101551234722137, 0.5532658100128174, 0.5102018117904663, -0.12390753626823425, -0.06801564991474152, -0.2616930902004242, 0.5365840792655945, 0.5671566724777222, -0.09005963057279587, 0.15976224839687347, -0.172554612159729, -0.2953334450721741, 0.06106586754322052, 0.09889133274555206, 0.15910233557224274, -0.006046826485544443, 0.0846286416053772, -0.22782652080059052, -0.3629555106163025, 0.34907838702201843, -0.968852162361145, -0.513846218585968, -0.06622543931007385, -0.478412389755249, -0.7820184230804443, -0.17945441603660583, -0.9724876880645752, -0.4940232038497925, -0.1470724493265152, 0.8599258065223694, 0.046222832053899765, -0.14205650985240936, 0.11802839487791061, 0.08226870000362396, 0.052879609167575836, 0.6264323592185974, -0.9911997318267822, 0.4456682503223419, 0.4789729714393616, 0.6480504870414734, -0.1753900647163391, -0.1909024566411972, -1.5243678092956543, 0.2700735926628113, -0.31359606981277466, 0.6510939002037048, -0.6015227437019348, -0.24312618374824524, -0.36517494916915894, 0.030933484435081482, -0.2771776020526886, -0.6221009492874146, 0.5509482026100159, -0.7130076289176941, -0.45344674587249756, -0.3503345847129822, 0.10938860476016998, -0.02499816007912159, 0.02937810681760311, -0.5974011421203613, 0.8676009774208069, 0.14318148791790009, -0.31146422028541565, 0.6310022473335266, -0.7508233785629272, -0.5037899613380432, -0.19144447147846222, 0.24825654923915863, -0.7837802171707153, 0.2784993350505829, 0.5749137997627258, 0.39466288685798645, -0.29335448145866394, -0.054915353655815125, -0.5744584798812866, -0.685145914554596, -0.18310566246509552, -0.5020367503166199, 0.2868626117706299, 0.3464183211326599, -0.3512534201145172, 0.44520145654678345, -0.9776583313941956, 0.0013676033122465014, 0.23213188350200653, -0.5422561168670654, -0.21990089118480682, 0.296415239572525, -0.06801522523164749, -0.23592273890972137, 0.4309059679508209, -0.10343515872955322, 0.48897528648376465, -0.22966764867305756, 0.49573013186454773, 0.9462631344795227, 0.07765036076307297, 0.5237404704093933, -0.26196494698524475, 0.6394530534744263, -0.15758852660655975, 0.5283938050270081, 0.24124068021774292, -0.17454341053962708, -0.6310031414031982, -0.6901251077651978, 0.6681824922561646, 0.08557598292827606, -0.265067458152771, 0.25841858983039856, -0.18917962908744812, -0.3327235281467438, -0.4722422659397125, 0.29336240887641907, 0.0944056585431099, 0.44954660534858704, 0.4044892191886902, -0.016365977004170418, -0.36837729811668396, -0.6664416193962097, 0.025633886456489563, 0.20110644400119781, 0.17881983518600464, 0.2744227647781372, 0.24470460414886475, 0.06538757681846619, 0.37831026315689087, -0.6960679888725281, -0.5740352272987366, 0.037866946309804916, 0.20401813089847565, 0.26312336325645447, 0.6749495267868042, 0.8378483653068542, -0.7423537969589233, -0.6685990691184998, -0.3287978172302246, -0.20243866741657257, 0.03101305104792118, -0.06551879644393921, -0.3846350312232971, -0.15074647963047028, 0.3471984267234802, -0.08021869510412216, 0.40261510014533997, 0.7231705188751221, -0.19735971093177795, 0.1420062929391861, -0.7756373286247253, 0.1890314221382141, -0.6746724247932434, 0.07350222766399384, -0.3325307369232178, -0.3004189729690552, -0.10917120426893234, 0.2926783859729767, 0.0825011357665062, -0.39379608631134033, -0.22536540031433105, 0.21843260526657104, -0.4775605797767639, 0.020669585093855858, -0.16178569197654724, -0.18329031765460968, 0.014514707028865814, 0.41956979036331177, -0.2071269452571869, 1.1344666481018066, 0.5929242372512817, -0.7940175533294678, 0.07692310214042664, 0.30001747608184814, -0.32606807351112366, 0.4780966639518738, -0.6507556438446045, 0.03725046664476395, 0.06470199674367905, 0.061066482216119766, -0.8005701899528503, -0.16621194779872894, 0.06899140030145645, 0.1845068633556366, 0.4546458125114441, -0.7921105623245239, -0.48192933201789856, 0.16415350139141083, -0.6461536884307861, 0.5580102205276489, 0.9017531275749207, -0.7905980944633484, 0.37345072627067566, 0.454315721988678, -0.1769854724407196, -0.20238572359085083, -0.17478764057159424, -0.1984093338251114, -0.46685197949409485, -0.4135074019432068, 0.5364971160888672, -0.2668822407722473, 0.20494085550308228, -0.2541634440422058, -0.28443750739097595, -0.020536350086331367, 0.6580721735954285, 0.19328653812408447, -0.08438026160001755, -0.3030189573764801, 0.050965193659067154, 0.48049360513687134, -0.024372048676013947, -0.31359532475471497, -0.06478574126958847, 0.48309794068336487, -0.20840130746364594, -0.4164382219314575, -0.3798559904098511, 0.08567016571760178, 0.9029604196548462, -0.6264904737472534, 0.9686628580093384, 0.6237872242927551, -0.04112499952316284, -0.6630706191062927, -0.10581577569246292, -0.14230632781982422, -0.54433274269104, 0.3723908066749573, -0.6067391633987427, -0.127924844622612, 0.5485769510269165, -0.4645494222640991, -0.035440750420093536, 0.27335548400878906, 0.26636239886283875, -0.26002010703086853, 1.4503690004348755, 0.6393424868583679, 0.1497611552476883, 0.7763288617134094, -0.47217217087745667, 0.11973601579666138, -0.9824484586715698, 0.1073702946305275, -0.3722096085548401, -0.9894189238548279, -0.60196453332901, -0.38366568088531494, 0.808782696723938, 0.38635167479515076, -0.5530252456665039, -0.05569704622030258, -0.5203317999839783, 0.3753313720226288, 0.5378580689430237, 0.30426329374313354, 0.26376938819885254, 0.15091949701309204, 0.4161025285720825, 0.03785652667284012, -0.7628546953201294, -0.10691878199577332, 1.1296563148498535, 0.3533605933189392, 1.036861777305603, 0.1978779137134552, 0.7255890369415283, 0.36936628818511963, -0.10780703276395798, -0.5871455669403076, 0.46195200085639954, -0.5427842736244202, -0.08285845071077347, -0.406329482793808, -0.29901671409606934, -0.9201315641403198, 0.16395172476768494, -0.4962053596973419, -0.3241012692451477, 0.6788610219955444, 0.41452959179878235, -0.7422440648078918, 0.3666662871837616, -0.5423323512077332, 0.6960374712944031, -0.24096886813640594, -0.6161210536956787, -0.5726014971733093, -0.2108084112405777, 0.09062010049819946, -0.5459306836128235, -0.018861470744013786, -0.42619624733924866, -0.16961972415447235, 0.8282873034477234, -0.7039851546287537, 0.5792570114135742, -0.43919074535369873, -0.19654887914657593, -0.10906345397233963, 0.08318468928337097, 0.9685690999031067, 0.3152376711368561, -0.3530735969543457, -0.22022593021392822, 0.2209780514240265, -0.6530817747116089, -0.6822370886802673, 0.964320182800293, -0.8785096406936646, -0.4166758060455322, -0.23963052034378052, -0.6930921673774719, -0.5273823738098145, 0.04340671747922897, -0.06260129809379578, 0.44160032272338867, 0.1936347782611847, 0.41228729486465454, 0.7051619291305542, -0.059069011360406876, 0.024152198806405067, 0.483366996049881, -0.009072844870388508, -0.24074941873550415, 0.9668763875961304, 0.059555355459451675, 0.16321681439876556, 0.29103025794029236, 0.2495591640472412, -0.16489067673683167, -0.8951869010925293, -0.3050713837146759, 0.13828784227371216, -0.5167539715766907, -0.1537504345178604, -0.05827765911817551, 0.00698689091950655, -0.012235910631716251, -0.39384791254997253, -0.6961614489555359, -0.39670097827911377, -0.4676884710788727, 0.3009871542453766, 0.5417733192443848, 0.5251102447509766, -0.11388334631919861, 0.5007497668266296, -0.5448617935180664, 0.49072784185409546, 0.5382625460624695, 0.5179166197776794, 0.1981993466615677, -0.7279013991355896, -0.23371420800685883, 0.1802522987127304, -0.28355786204338074, -0.453550785779953, 0.22019913792610168, 0.6464020013809204, 0.45837920904159546, 0.46960943937301636, 0.48870742321014404, 1.2908824682235718, -0.4415622055530548, 0.41146624088287354, -0.1970556527376175, -0.8563948273658752, 0.7628898024559021, -0.5374329090118408, 0.055711645632982254, 0.7892844080924988, 0.014741327613592148, 0.3843224048614502, -0.11366605013608932, -0.5092987418174744, -0.9198602437973022, 0.789766252040863, 0.05819292739033699, 0.04676366597414017, 0.3639243543148041, 0.40974703431129456, 0.06521233916282654, 0.28114408254623413, -0.08082183450460434, 0.09208200126886368, -0.01175285317003727, -0.21855399012565613, -0.14934828877449036, -0.25559911131858826, -0.18644031882286072, -0.6220932602882385, 0.757574737071991, -0.2454940229654312, 0.04802725091576576, -0.24753281474113464, -0.20156115293502808, -0.45142316818237305, -0.1045629158616066, 0.6112691164016724, 0.8214108943939209, -0.7583457827568054, 0.12466007471084595, 0.3057686686515808, -0.44027483463287354, 0.14364761114120483, 0.17940843105316162, -0.22364197671413422, -0.42329445481300354, 0.011012197472155094, 0.8264456391334534, 0.8263854384422302, -0.5270094275474548, 0.3378993272781372, 0.07819195091724396, -0.19349305331707, 0.06997212767601013, 0.4930568039417267, -0.19248546659946442, 0.46893036365509033, 0.393149733543396, 0.21203087270259857, -0.1694021075963974, -0.59185391664505, -0.03142112120985985, 0.4578125476837158, -0.08027654886245728, -0.4520798623561859, 1.01888108253479, 0.36693689227104187, 0.007218028884381056, 0.4717155694961548, -0.06581556051969528, -0.07348302751779556, 0.523936927318573, 0.3376614451408386, 0.6174412965774536, -0.07487042993307114, 0.22622939944267273, 0.2124008685350418, -0.10530070215463638, -0.15543144941329956, 0.5187086462974548, -0.2091512233018875, -0.13118267059326172, -0.28875067830085754, -0.9354978203773499, -0.29113438725471497, 0.2848205864429474, -0.7764663100242615, 0.4740809500217438, -0.7808207273483276, -0.11459484696388245, -0.0986994057893753, 0.24213531613349915, -0.627964437007904, -0.08555420488119125, 0.06650649756193161, 0.9536712765693665, -0.7113802433013916, 0.8191676139831543, 0.8544725179672241, -0.48037436604499817, -0.6382012963294983, 0.1532272845506668, -0.3275146782398224, -0.7630228400230408, 0.8352525234222412, -0.5395479202270508, -0.34363406896591187, 0.3938000500202179, -0.34336671233177185, -1.20547354221344, 1.1285479068756104, 0.6575437188148499, -0.4431321620941162, -0.18430370092391968, -0.2321581095457077, 0.2972370684146881, -0.20604735612869263, -0.21612896025180817, 0.21843722462654114, 0.6110292077064514, 0.12604184448719025, -0.9527848362922668, 0.004084324464201927, 0.05743627995252609, 0.031053312122821808, 0.3787026107311249, -0.7379618287086487, 1.1998887062072754, -0.16424089670181274, -0.0171204786747694, 0.2155570238828659, 0.4635986387729645, 0.32195207476615906, 0.0643879771232605, 0.81467604637146, 0.15011060237884521, 1.0877349376678467, 0.20186059176921844, 0.7047179341316223, -0.39144575595855713, 0.5091146230697632, 1.026843547821045, -0.4279240369796753, 1.086502194404602, 0.3498373329639435, -0.2869851589202881, 0.49890661239624023, 0.6529582142829895, -0.09145250171422958, 1.1565340757369995, 0.04606841877102852, -0.1043023094534874, -0.5954254269599915, 0.19096244871616364, -0.43558618426322937, 0.4264148771762848, 0.1532333791255951, -0.057336799800395966, -0.44143813848495483, 0.16222083568572998, -0.25621747970581055, -0.13318468630313873, -0.6378301978111267, 0.5713204145431519, -0.167537659406662, -0.34004470705986023, 1.2739393711090088, -0.045437730848789215, 0.4688153862953186, -0.6575329303741455, -0.09501463174819946, -0.2237996906042099, 0.5984277725219727, -0.07290418446063995, -0.3199964165687561, 0.0355854369699955, 0.04361854866147041, -0.3188697397708893, -0.3883446455001831, 0.5604867935180664, -0.22221730649471283, -0.48061180114746094, -0.09184455126523972, 0.31186407804489136, -0.07225945591926575, -0.2402368187904358, -0.6307841539382935, 0.3949694335460663, -0.4091913402080536, -0.23993468284606934, 0.8031860589981079, 0.161453515291214, -0.19230905175209045, 0.6114989519119263, 0.7232627272605896, 0.4314141869544983, -0.036494795233011246, 0.0226194616407156, 0.9195550084114075, -0.22880546748638153, -0.8445505499839783, -0.3603358864784241, 0.3898216784000397, 0.0383877195417881, -0.12374593317508698, 0.4278806149959564, 0.43206048011779785, 0.4678581655025482, -0.16316808760166168, 0.3132290542125702, 0.27813592553138733, 0.44812673330307007, -0.5982658267021179, 1.0662680864334106, -1.1351723670959473, 0.4877045452594757, -0.2417486310005188, -0.8790366053581238, -0.08871528506278992, 0.7545989155769348, -0.4187425374984741, -0.04544113203883171, 0.26076680421829224, 0.48213571310043335, -0.8349374532699585, -0.4026140570640564, 0.25323668122291565, 0.2488030642271042, 0.24174001812934875, 0.5965042114257812, 0.6710606813430786, -0.5667353868484497, 0.5321311354637146, -0.09464836120605469, -0.19877129793167114, -0.6895450949668884, -1.0406066179275513, -0.6151120066642761, -0.546637237071991, -0.6111338138580322, -0.07853060960769653, 0.4027806520462036, 0.660888671875, 1.3423337936401367, -0.7614892721176147, 0.07726066559553146, 0.017013436183333397, 0.05817234888672829, -0.6980447769165039, -0.14196236431598663, 0.6498390436172485, -0.5022999048233032, -0.8701965808868408, 0.6964733600616455, 0.0667758584022522, -0.15181483328342438, -0.12655368447303772, -0.1656780242919922, -0.08977898210287094, 0.141030415892601, 0.6206605434417725, 0.17921897768974304, -0.33376190066337585, -0.38535869121551514, -0.29737192392349243, 0.4167524576187134, 0.12930601835250854, 0.3793787956237793, -0.9964445233345032, 0.20245516300201416, 0.46820101141929626, 0.528891921043396, 0.7837336659431458, 0.2793820798397064, 0.47276008129119873, -0.7787713408470154, 0.21223661303520203, 0.02925543300807476, 0.11528903245925903, -0.07893352210521698, -0.3841884434223175, 0.41134676337242126, 0.12063930928707123, -0.40908533334732056, -1.3962376117706299, 0.1480480581521988, -1.1028658151626587, -0.3191832900047302, 0.7473952174186707, 0.05801357328891754, -0.18646293878555298, 0.2815231680870056, -0.15163180232048035, 0.042322788387537, -0.35170838236808777, 0.8658303618431091, 0.1450256109237671, -0.019533339887857437, -0.21774818003177643, -0.5127250552177429, 0.8021476864814758, 0.43115323781967163, -0.790613055229187, 0.09541015326976776, -0.0030580637976527214, 0.5058284997940063, -0.2730255424976349, 0.30597254633903503, 0.13855980336666107, 0.3198780119419098, -0.21167747676372528, -0.5308892130851746, -0.48423704504966736, -0.5011491775512695, -0.2760162055492401, 0.524344265460968, 0.4245586693286896, -0.5730500221252441 ]
http://arxiv.org/abs/2405.17345v2
http://arxiv.org/pdf/2405.17345v2
Exploring and steering the moral compass of Large Language Models
2024-05-27T16:49:22
2024-06-06T11:53:23
Alejandro Tlaie
cs.AI
cs.AI, cs.CL
Large Language Models (LLMs) have become central to advancing automation and decision-making across various sectors, raising significant ethical questions. This study proposes a comprehensive comparative analysis of the most advanced LLMs to assess their moral profiles. We subjected several state-of-the-art models to a selection of ethical dilemmas and found that all the proprietary ones are mostly utilitarian and all of the open-weights ones align mostly with values-based ethics. Furthermore, when using the Moral Foundations Questionnaire, all models we probed - except for Llama 2-7B - displayed a strong liberal bias. Lastly, in order to causally intervene in one of the studied models, we propose a novel similarity-specific activation steering technique. Using this method, we were able to reliably steer the model's moral compass to different ethical schools. All of these results showcase that there is an ethical dimension in already deployed LLMs, an aspect that is generally overlooked.
[ -0.16079308092594147, -0.4914264380931854, 0.9072773456573486, 0.12895259261131287, -0.11249734461307526, 0.1391390711069107, -0.22838418185710907, -0.5173354148864746, -0.450289785861969, 0.7539873719215393, -0.4735923409461975, -0.3001488447189331, -0.6044337153434753, 0.20755784213542938, -0.4078635573387146, 0.91126948595047, 0.33399084210395813, 0.5223919153213501, -0.11304895579814911, -0.45217400789260864, -0.03249600902199745, -0.5414769649505615, -0.8897504806518555, -0.7367727756500244, 0.5300401449203491, 0.03811126574873924, 1.0146491527557373, 0.8138324022293091, 0.5988870859146118, 0.3229231536388397, -0.4347482919692993, -0.23258744180202484, -0.6216487884521484, -0.08669117838144302, -0.5581821203231812, -0.4149631857872009, -0.587249219417572, 0.3629830479621887, 0.46801331639289856, 0.5720345377922058, 0.0032257288694381714, 0.4784868657588959, -0.0721815750002861, 0.5861585736274719, -0.5061076283454895, -0.14546692371368408, -0.6991978883743286, -0.17455218732357025, 0.22141920030117035, -0.18275825679302216, -0.39314064383506775, -0.7391341924667358, 0.19733045995235443, -0.42969608306884766, -0.5103030800819397, 0.2521575093269348, 0.6581154465675354, 0.21936513483524323, -0.7625974416732788, -0.5993187427520752, -0.5149198770523071, 1.5785620212554932, -0.8679971694946289, 0.3198617696762085, 0.24994608759880066, 0.003198638092726469, -0.10259508341550827, -0.3813819885253906, -0.5046119689941406, -0.29512858390808105, 0.22530096769332886, -0.1469547301530838, -0.12537457048892975, 0.060245633125305176, 0.14593204855918884, 0.16912858188152313, -0.1925612837076187, 0.7346209287643433, -0.3012479543685913, 0.0333636999130249, 0.615972638130188, 0.18780000507831573, 0.07632674276828766, -0.07574467360973358, -0.3563041090965271, -0.2461330145597458, -1.030714988708496, 0.2448805421590805, 0.6895583271980286, 0.0033302174415439367, -0.13190047442913055, 0.7156550884246826, 0.08837631344795227, 0.4018116593360901, 0.10546425729990005, -0.3134838342666626, 0.2174815833568573, -0.1905284821987152, -0.43888431787490845, 0.13823217153549194, 0.9168806672096252, 0.877254068851471, 0.9773563146591187, 0.47585684061050415, -0.3563765287399292, -0.2377980649471283, 0.3038375675678253, -0.5671550631523132, 0.28253886103630066, 0.46936655044555664, -0.8385096192359924, -0.6551084518432617, -0.13174976408481598, -0.38494521379470825, -0.6811352968215942, -0.6037085056304932, 0.0988057479262352, -0.07565883547067642, -0.31202903389930725, 0.24083958566188812, 0.03859724476933479, 0.908511757850647, 0.14254331588745117, -0.6130235195159912, -0.26416489481925964, 1.1885348558425903, 0.6569347381591797, -0.059491995722055435, 0.04607909545302391, -0.5585854649543762, 0.13274666666984558, -0.509965181350708, 0.41902288794517517, -0.9908937215805054, -0.48161301016807556, 0.09697746485471725, 0.09788814932107925, 0.4685411751270294, -0.45376425981521606, 0.6426401138305664, -0.5290008187294006, 0.048569902777671814, -0.6108950972557068, -0.32922494411468506, -0.5927449464797974, 0.3295256495475769, -0.6288018822669983, 0.7873410582542419, -0.15430596470832825, -0.6017746329307556, 0.3803703486919403, -0.5483353734016418, -0.17375674843788147, -0.1960674673318863, -0.49846652150154114, -0.473518967628479, 0.010910006240010262, -0.059412769973278046, 0.6499773859977722, -0.8542057871818542, 0.6462713479995728, -0.5201244354248047, -0.2838971018791199, 0.3775847554206848, -0.5247555375099182, 1.3482463359832764, 0.0609823539853096, -0.30721938610076904, 0.38179099559783936, -0.5699687004089355, -0.08301432430744171, 0.20445002615451813, -0.01760036125779152, -0.552773118019104, 0.05177950859069824, -0.11063538491725922, 0.44124361872673035, 0.4021828770637512, -0.3787524998188019, -0.039894819259643555, -0.11378712207078934, 0.4655568301677704, 1.1502560377120972, -0.10832089930772781, 0.6075631380081177, -0.6055002212524414, 0.43820032477378845, -0.35880187153816223, 0.4947153329849243, 0.25731247663497925, -0.4040986895561218, -0.7673037648200989, -0.15835422277450562, -0.4174136519432068, 0.554891049861908, -0.04877382516860962, 0.5670300722122192, -0.2723574936389923, -0.3845425248146057, -0.6893330812454224, 0.057865485548973083, 0.4114992916584015, 0.22450494766235352, 0.22052238881587982, 0.027355672791600227, 0.12065843492746353, -1.140579104423523, -0.5314083695411682, -0.36954763531684875, -0.01765034906566143, 0.425308495759964, 0.5010208487510681, -0.1873117834329605, 0.652783989906311, 0.02605021931231022, 0.10526561737060547, -0.15756765007972717, -0.07634949684143066, 0.33164331316947937, 0.39599090814590454, 0.623631477355957, -0.9091344475746155, -0.15469741821289062, 0.3556458353996277, -0.8856627941131592, -0.24002854526042938, -0.19870513677597046, -0.09318538010120392, 0.0070043583400547504, 0.5603697299957275, -0.33818382024765015, 0.09845585376024246, 0.5728604793548584, -0.31669479608535767, 0.5604824423789978, 0.058736495673656464, 0.2974565625190735, -0.803955614566803, 0.11883009225130081, -0.1633322387933731, -0.13834458589553833, -0.4297047257423401, -0.023885421454906464, 0.03670709952712059, 0.47857242822647095, -0.5821229219436646, 0.37735050916671753, -0.2522931694984436, -0.4353558123111725, -0.14579685032367706, 0.07652949541807175, -0.0874788761138916, 0.10789871215820312, -0.11475639790296555, 0.7376161217689514, 0.5428880453109741, -0.5409315228462219, 0.587158739566803, 0.2182420939207077, -0.21100327372550964, 0.8253279328346252, -0.772555410861969, 0.008395945653319359, -0.12724219262599945, -0.03786855936050415, -0.39353281259536743, 0.1867016702890396, -0.028295334428548813, -0.19551029801368713, -0.19174912571907043, -0.04813459888100624, -0.43798983097076416, -0.07606562972068787, -0.62412428855896, 0.4002920389175415, 0.7699463367462158, -0.3744915723800659, 0.653824508190155, 0.3230452239513397, -0.44764524698257446, -0.7871231436729431, -0.5350631475448608, -0.12171106040477753, -0.5961204171180725, -0.5513142347335815, -0.20483800768852234, 0.1461605727672577, -0.8809565305709839, -0.20583631098270416, -0.0007642920245416462, 0.37491166591644287, 0.14635837078094482, 0.21498030424118042, 0.2838054299354553, -0.21367862820625305, -0.025903357192873955, 0.2744770646095276, -0.14747203886508942, 0.3965734839439392, -0.2247590273618698, 0.4479570984840393, -0.5581831336021423, -0.445483535528183, -0.3624487519264221, 0.26144638657569885, 0.9384438395500183, -0.6105682849884033, 0.7116693258285522, 0.2091604620218277, -0.0625266581773758, -0.015899736434221268, -0.7925702333450317, -0.07080905139446259, -0.5919438004493713, 0.26508191227912903, 0.15358835458755493, -1.0139014720916748, 0.4625934958457947, -0.21830347180366516, 0.5052061676979065, 0.2614251375198364, 0.8087038397789001, -0.04995262622833252, 0.938683807849884, 0.7709225416183472, -0.041878681629896164, 0.4718702733516693, -0.2834629416465759, 0.3184353709220886, -0.8596487641334534, -0.27316924929618835, -0.4382650554180145, -0.0966358631849289, -0.7508577704429626, -0.42444926500320435, 0.39340054988861084, 0.02163609117269516, -0.9434224367141724, 0.06665779650211334, -0.32952791452407837, 0.6435979008674622, 0.315742552280426, -0.5632643699645996, 0.7900794744491577, -0.058643314987421036, -0.14053210616111755, 0.40661099553108215, -0.43018049001693726, -1.229028582572937, 1.0819720029830933, 0.48413053154945374, 0.8363465666770935, 0.03882485628128052, 0.4178585708141327, 0.05359288305044174, 0.4463304877281189, -0.7346926927566528, 0.7564223408699036, -0.2700834572315216, -0.40787971019744873, -0.33900678157806396, -0.36701515316963196, -0.7459153532981873, 0.286485493183136, -0.1723593771457672, -0.8200105428695679, 0.19933953881263733, -0.2671586871147156, -0.408080518245697, 0.4092083275318146, -0.3960391879081726, 0.5866214632987976, -0.7273625135421753, -0.40470588207244873, -0.49587610363960266, -0.7293582558631897, 0.3128102123737335, -0.21638360619544983, 0.3796418309211731, -0.41501468420028687, -0.2133263200521469, 0.6534630060195923, -0.020267656072974205, 0.6225923299789429, 0.2801707088947296, -0.670863687992096, 0.16215243935585022, 0.10962316393852234, 0.4890277087688446, -0.08137330412864685, -0.6035035848617554, 0.19252003729343414, 0.08898573368787766, -0.06281278282403946, -0.2858548164367676, 1.0073550939559937, -0.6400238275527954, -0.6440483927726746, -0.4627987742424011, -0.47275251150131226, -0.2434977889060974, 0.3404605984687805, 0.040824439376592636, 0.26752808690071106, -0.18215012550354004, 0.46290943026542664, 0.6682971715927124, -0.7241798639297485, 0.5289397239685059, 0.5404143929481506, -0.24508601427078247, -0.03948117047548294, 0.4709906280040741, -0.22704139351844788, 0.6967575550079346, 0.021526983007788658, 0.3609203100204468, -0.5056893825531006, -0.31171900033950806, -0.43931347131729126, 0.5356770753860474, -0.8517490029335022, -0.1880953460931778, -0.4610578715801239, -0.07324618846178055, 0.008468521758913994, -0.7868378162384033, -0.5534229278564453, 0.013663733378052711, -0.3862781524658203, -0.29002583026885986, 0.6782499551773071, 0.965175986289978, 0.2633838355541229, 0.22961777448654175, -0.6610521078109741, 0.10075168311595917, 0.05626494437456131, 0.4036189615726471, 0.12010746449232101, -0.3643890917301178, 0.43199867010116577, 0.1510222852230072, -0.27452942728996277, -0.5942956805229187, 0.0803312435746193, -0.1197897270321846, 0.48414865136146545, 0.6118066310882568, 0.07329361885786057, 0.3474445641040802, -0.3090580701828003, 0.6854888200759888, 0.3145391047000885, -0.9726302027702332, -0.013251857832074165, -0.4948938190937042, 0.03063475713133812, 0.48879003524780273, 0.5859595537185669, -0.39053937792778015, -0.4743588864803314, -0.5014752149581909, -0.7261461615562439, 0.38483211398124695, 0.20335747301578522, 0.2071211189031601, 0.2164829522371292, 0.3106555938720703, 0.1543799787759781, 0.27244535088539124, -0.8560219407081604, -0.08604443818330765, 0.18952542543411255, -0.4530724883079529, 0.12920215725898743, 0.03408798202872276, -0.19668111205101013, 0.0030987297650426626, 0.539599597454071, 0.027578411623835564, -0.15465381741523743, -0.04345615208148956, 0.05915011838078499, -0.14513328671455383, 0.5282803773880005, 0.2654785215854645, 0.7996460199356079, 0.11536752432584763, -0.008864895440638065, 0.2443520873785019, -0.3012396991252899, 0.41927358508110046, -0.339682936668396, -0.18199674785137177, -0.5650985240936279, 0.37204188108444214, 0.3906298875808716, 0.058564286679029465, -0.8630043268203735, 0.7487401366233826, 0.32976430654525757, 0.007148693315684795, -0.37556472420692444, -0.11501964926719666, 0.18559108674526215, 0.6345142126083374, 0.14994454383850098, -0.4636334180831909, 0.13044773042201996, -0.6195259094238281, -0.11542908847332001, 0.8128384947776794, -0.17250186204910278, 0.06686578691005707, 0.39616361260414124, 0.4289695918560028, -0.23426097631454468, 0.5344749689102173, -0.2271602898836136, -0.6239632964134216, 0.6534699201583862, 0.21368692815303802, 0.8809870481491089, -0.062195952981710434, 0.2175709307193756, 0.028591476380825043, 0.5591554045677185, -0.3746829628944397, 0.31078001856803894, 0.1626979261636734, -0.7308595180511475, -0.6157966256141663, -0.712142825126648, -0.39203742146492004, 0.17262530326843262, -0.8389014005661011, 0.20937679708003998, -0.561489462852478, -0.2997872233390808, -0.40086233615875244, -0.10294593125581741, -0.3772026300430298, 0.05371361970901489, 0.003899576608091593, 0.5130612254142761, -0.5563235282897949, 0.6082528829574585, 0.5264761447906494, -0.0719367042183876, -0.6193262934684753, -0.1324314922094345, 0.08384840190410614, -0.8909721970558167, 0.5406370759010315, 0.2507326304912567, -0.8243545889854431, 0.018238570541143417, -0.7010231018066406, -0.6369971036911011, 1.245369553565979, 0.2587914764881134, -0.8299697041511536, -0.029252996668219566, 0.2616865932941437, 0.2829093337059021, -0.34918659925460815, 0.08689398318529129, 0.8277537226676941, 0.6094426512718201, -0.1677848994731903, -1.2039557695388794, 0.14511898159980774, 0.06365907937288284, -0.14809943735599518, 0.26716288924217224, -0.800186276435852, 0.7717925310134888, -0.42664316296577454, -0.06814132630825043, 0.1988220065832138, 0.2976008355617523, 0.4860498309135437, 0.23597899079322815, 0.4838193655014038, 0.023869674652814865, 0.7488977909088135, 0.11032382398843765, 0.8452618718147278, -0.28802022337913513, 0.4434417188167572, 0.6686257719993591, -0.5616390705108643, 0.6157948970794678, 0.6950944662094116, 0.13992035388946533, 0.3384324312210083, 0.18042714893817902, -0.31791549921035767, 0.057238560169935226, 0.30295154452323914, -0.0221575815230608, -0.4570392072200775, -0.45250847935676575, -0.24445870518684387, 0.5180178284645081, 0.3911055326461792, -0.6043452024459839, -0.003192854579538107, -0.10069746524095535, 0.11495891958475113, -0.016132215037941933, -0.6463951468467712, 0.7210229635238647, 0.4970046877861023, -0.45058566331863403, 0.43300554156303406, 0.07740840315818787, 0.8029515147209167, -0.6097449660301208, 0.10983525216579437, 0.1310083568096161, 0.14832431077957153, -0.06589657813310623, -1.0999287366867065, 0.10871637612581253, 0.46491149067878723, 0.2552667558193207, -0.5248742699623108, 0.45418936014175415, -0.15963011980056763, -0.3849256634712219, 0.6979666948318481, 0.45606544613838196, 0.0042989784851670265, 0.13836237788200378, -0.7918007373809814, 0.3319164514541626, -0.1648038923740387, -0.30590546131134033, 0.055652838200330734, 0.30684617161750793, -0.3963882327079773, 1.1840351819992065, 0.6531511545181274, -0.07578887790441513, -0.08995597064495087, 0.027089187875390053, 0.6877706050872803, -0.903366208076477, -0.37713924050331116, -0.906868040561676, 0.23830319941043854, -0.1556645929813385, -0.35839205980300903, 0.6649562120437622, 0.22646643221378326, 0.8373528718948364, 0.15755070745944977, 0.6568174362182617, 0.3132472336292267, 0.017965801060199738, -0.7970379590988159, 0.9765216112136841, -0.58320552110672, 0.44525378942489624, -0.23978930711746216, -1.016876220703125, -0.0831218883395195, 1.0116959810256958, -0.5683324337005615, 0.30983099341392517, 0.46636074781417847, 0.7882155776023865, 0.09628855437040329, 0.20760248601436615, 0.261993944644928, 0.27384525537490845, 0.4557768702507019, 0.5371137261390686, 1.2354124784469604, 0.1330571323633194, 0.32648950815200806, 0.11371295899152756, -0.283740758895874, -0.2125319093465805, -1.271621823310852, -1.0548095703125, -0.28113409876823425, -0.06258574873209, -0.07066690176725388, -0.004779112990945578, 1.2720650434494019, 0.44545629620552063, -0.6745256781578064, -0.4484096169471741, 0.05925482511520386, 0.2448081225156784, 0.08288346230983734, -0.1220906525850296, 0.14306727051734924, 0.24249669909477234, -0.6264294385910034, 0.055040083825588226, 0.5653659701347351, 0.1080632284283638, -0.48705849051475525, -0.08310841768980026, -0.12708331644535065, 0.5285624265670776, 0.7899087071418762, -0.01848727837204933, -1.0602103471755981, -0.4032672643661499, 0.09639569371938705, -0.1924068182706833, -0.1734853833913803, 0.9825853705406189, -0.29012104868888855, -0.03567206487059593, 0.3173282742500305, 0.5954031348228455, -0.31148698925971985, 0.10227183997631073, 0.7966417074203491, 0.10990246385335922, 0.005722851026803255, 0.5958296060562134, 0.3093309998512268, 0.4319221079349518, -0.24717238545417786, 0.26515325903892517, -0.31143125891685486, -0.7554649710655212, -0.7997225522994995, 0.48155733942985535, -1.1365933418273926, -0.1697002500295639, 1.6623458862304688, 0.12864114344120026, -0.033232226967811584, -0.19240154325962067, -0.31164681911468506, 0.059485819190740585, -0.405931293964386, 0.3424978256225586, 0.611433744430542, 0.13793206214904785, 0.14694499969482422, -0.6387012004852295, 0.38355937600135803, 0.5483779907226562, -0.6374466419219971, 0.30536919832229614, 0.5341821908950806, 0.39533111453056335, -0.06943187117576599, 0.18417629599571228, -0.4298143684864044, 0.19933059811592102, -0.5169346332550049, -0.17505399882793427, 0.05505111441016197, -0.27666983008384705, -0.516055703163147, -0.1684415340423584, 0.23195035755634308, 0.384115993976593 ]
http://arxiv.org/abs/2405.17337v1
http://arxiv.org/pdf/2405.17337v1
Cost-efficient Knowledge-based Question Answering with Large Language Models
2024-05-27T16:37:34
2024-05-27T16:37:34
Junnan Dong, Qinggang Zhang, Chuang Zhou, Hao Chen, Daochen Zha, Xiao Huang
cs.CL
cs.CL, cs.AI
Knowledge-based question answering (KBQA) is widely used in many scenarios that necessitate domain knowledge. Large language models (LLMs) bring opportunities to KBQA, while their costs are significantly higher and absence of domain-specific knowledge during pre-training. We are motivated to combine LLMs and prior small models on knowledge graphs (KGMs) for both inferential accuracy and cost saving. However, it remains challenging since accuracy and cost are not readily combined in the optimization as two distinct metrics. It is also laborious for model selection since different models excel in diverse knowledge. To this end, we propose Coke, a novel cost-efficient strategy for KBQA with LLMs, modeled as a tailored multi-armed bandit problem to minimize calls to LLMs within limited budgets. We first formulate the accuracy expectation with a cluster-level Thompson Sampling for either KGMs or LLMs. A context-aware policy is optimized to further distinguish the expert model subject to the question semantics. The overall decision is bounded by the cost regret according to historical expenditure on failures. Extensive experiments showcase the superior performance of Coke, which moves the Pareto frontier with up to 20.89% saving of GPT-4 fees while achieving a 2.74% higher accuracy on the benchmark datasets.
[ -0.18817004561424255, -0.7527984380722046, 0.6629304885864258, 0.08195098489522934, 0.13333752751350403, 0.30618351697921753, -0.2136378139257431, -0.14959433674812317, -0.1022019311785698, 0.5900071263313293, -0.4897851347923279, -0.3519335091114044, -0.411271870136261, -0.10667786002159119, 0.14811226725578308, 0.674523115158081, -0.08360493183135986, 0.05820643529295921, -0.397323340177536, 0.046956807374954224, -0.5312142968177795, -0.45857641100883484, -0.6871296167373657, -0.26394739747047424, 0.657275915145874, 0.36667945981025696, 0.6421472430229187, 0.35781559348106384, 0.0918230414390564, 0.1748870313167572, -0.1429624706506729, 0.35770225524902344, -0.5391210913658142, 0.023210611194372177, -0.046107228845357895, -0.5256277918815613, -0.10431985557079315, -0.0901690274477005, 0.09644132852554321, 0.7311810851097107, -0.14340664446353912, -0.15621711313724518, 0.013370892032980919, 0.5969602465629578, -0.8272251486778259, 0.2424674928188324, -0.9475333094596863, -0.42485329508781433, 0.14527633786201477, 0.017709171399474144, -0.36383819580078125, -0.5806127786636353, 0.2233934998512268, -0.6068264842033386, -0.1967753916978836, 0.03196384757757187, 0.8054116368293762, 0.42520278692245483, -0.47613224387168884, -0.7749671936035156, -0.38011863827705383, 0.8338072299957275, -0.4697044789791107, 0.4667051136493683, 0.26924630999565125, 0.4668227434158325, -0.19425909221172333, -0.7063217759132385, -0.4655483365058899, -0.11458885669708252, 0.07044318318367004, 0.14107444882392883, -0.2937726080417633, 0.044565360993146896, -0.11710282415151596, -0.20515578985214233, -0.40408846735954285, 0.10473700612783432, -0.4793996512889862, -0.464207261800766, 0.3818517327308655, -0.019149957224726677, -0.09424082189798355, -0.26963934302330017, -0.524861752986908, 0.09924743324518204, -0.9525130987167358, 0.20122164487838745, 0.3368164002895355, 0.49072331190109253, 0.2989288866519928, 0.4548570513725281, -0.44805604219436646, 0.7823787331581116, -0.08444533497095108, -0.5233407616615295, -0.14408285915851593, -0.12298396974802017, -0.2497858852148056, -0.028978025540709496, 0.3538973331451416, 0.2239605337381363, 0.4781128764152527, -0.3563067615032196, 0.04085436835885048, -0.25140810012817383, 0.0620238333940506, -0.9738313555717468, -0.4805777072906494, 0.4104941487312317, -0.14436030387878418, -0.02412806637585163, -0.6208307147026062, -0.47046807408332825, -0.42321011424064636, -0.0846683531999588, 0.7484632134437561, -0.47822263836860657, 0.08227226883172989, -0.02033054269850254, -0.0940379723906517, 0.27517518401145935, 0.49059802293777466, -0.48882925510406494, -0.05732664465904236, 0.4838302731513977, 0.6369696855545044, 0.3268570899963379, 0.003918202593922615, -0.6549307703971863, 0.38976049423217773, -0.4687967598438263, 0.8738191723823547, -0.5063751935958862, -0.3050108551979065, -0.06245730072259903, -0.47548192739486694, -0.11401896178722382, -0.6898283958435059, 0.34875962138175964, -0.9691159725189209, 0.2120354026556015, -0.5108931660652161, -0.8051708340644836, -0.2315349578857422, 0.45168015360832214, -0.38386619091033936, 0.886838972568512, 0.39257264137268066, -0.5687748789787292, 0.5033707022666931, -0.4792343080043793, -0.31214287877082825, 0.3220668137073517, -0.010039161890745163, -0.030177395790815353, -0.3251660168170929, 0.6254198551177979, 0.48510074615478516, -0.5491291880607605, 0.5218318104743958, -0.3195592761039734, -0.2109840214252472, 0.12057437747716904, -0.21949122846126556, 0.8387497067451477, 0.4326433837413788, 0.04789147898554802, -0.04013722762465477, -0.346281498670578, 0.22674879431724548, -0.04021161422133446, -0.6049644351005554, -0.4197787642478943, -0.010061425156891346, -0.35364529490470886, 0.2497410923242569, 0.38306888937950134, -0.44775545597076416, 0.12049654871225357, -0.2684771418571472, 0.44125881791114807, 0.73536616563797, -0.03203463926911354, 0.44511374831199646, -0.16682928800582886, 0.593743085861206, -0.274547278881073, 0.17185068130493164, 0.1990705132484436, -0.4418122470378876, -0.45808184146881104, -0.6528065204620361, 0.49300891160964966, 0.6296745538711548, -1.1830791234970093, 0.06489691138267517, -0.18991364538669586, -0.5073788166046143, -0.4603186249732971, 0.1745782047510147, 0.29104679822921753, 0.8396973609924316, 0.3276883065700531, 0.2208806872367859, -0.11923350393772125, -1.002138614654541, -0.489085853099823, -0.19716764986515045, -0.22179953753948212, 0.74997878074646, 0.4198172390460968, 0.2405700981616974, 1.3624826669692993, -0.9562551975250244, -0.2014503926038742, -0.28822973370552063, -0.04249566048383713, 0.2652708888053894, 0.13733333349227905, 0.6034886240959167, -0.7598535418510437, -0.7221975922584534, -0.25333744287490845, -0.29675692319869995, -0.21096737682819366, 0.08089029043912888, -0.17361055314540863, 0.33850952982902527, 0.4168648421764374, -0.5804284811019897, 0.02180878445506096, 0.4931607246398926, -0.006119254976511002, 0.40848061442375183, -0.15380823612213135, 0.151534765958786, -0.9322847723960876, 0.0320647768676281, -0.28247877955436707, -0.12191776931285858, -0.5948100090026855, -0.1312032788991928, 0.3398214280605316, -0.2318800985813141, -0.539158284664154, 0.7143393158912659, -0.35168522596359253, 0.1507028341293335, -0.2606339454650879, 0.3243328332901001, -0.0030117137357592583, 0.8495562076568604, -0.0024185283109545708, 0.9583411812782288, 0.5129004120826721, -0.5475378036499023, 0.2781452238559723, 0.3057384490966797, -0.4952361285686493, 0.5748472809791565, -0.7029992341995239, 0.25142955780029297, -0.3390064835548401, 0.3454432189464569, -0.9855332374572754, -0.09229805320501328, 0.20694400370121002, -0.5208940505981445, 0.24818561971187592, -0.5392187237739563, -0.3612339198589325, -0.19290073215961456, -0.1881444752216339, 0.10938038676977158, 0.6524794101715088, -0.6217623353004456, 0.7141680121421814, 0.5792083144187927, -0.4392455220222473, -0.8809466361999512, -0.3168999254703522, 0.0248288381844759, -0.3138783276081085, -0.6480039358139038, 0.13991530239582062, -0.012884074822068214, -0.025452537462115288, 0.14144761860370636, -0.4407429099082947, -0.3793710470199585, 0.036161188036203384, -0.34399306774139404, 0.15707269310951233, 0.017598962411284447, 0.30660131573677063, 0.1510680615901947, -0.018373552709817886, 0.11870148032903671, -0.6309946179389954, 0.685840368270874, 0.07991954684257507, 0.08310040831565857, 0.17662794888019562, 0.3914710283279419, 0.3819906413555145, -0.2347828596830368, 0.8137544989585876, 0.19627274572849274, -0.34753820300102234, -0.2690802812576294, -0.6144596934318542, 0.03018743172287941, -0.45277586579322815, 0.5383884310722351, -0.5505549311637878, -0.9593406319618225, 0.40847623348236084, -0.17434437572956085, -0.10348207503557205, 0.22806581854820251, 0.553476095199585, -0.2541109025478363, 0.7918193936347961, 0.053190018981695175, -0.18479037284851074, 0.04107414931058884, -0.06526374071836472, 0.615467369556427, -0.5586786270141602, -0.34917813539505005, -0.8130647540092468, -0.0810694545507431, -0.42328521609306335, -0.7158365845680237, 0.9215945601463318, 0.27471891045570374, -0.4853849709033966, 0.10574328154325485, -0.10122855007648468, 0.5971359610557556, 0.9108390808105469, 0.2475731372833252, 0.1413588672876358, -0.24824000895023346, 0.08457677066326141, 0.16825717687606812, -1.2029517889022827, -0.2163553386926651, 1.2772228717803955, 0.06700825691223145, 0.8554144501686096, 0.08978781849145889, 0.5440240502357483, 0.039968252182006836, 0.3105820119380951, -0.7688361406326294, 0.43642285466194153, 0.08157475292682648, -0.7980512380599976, -0.4455881416797638, -0.8414442539215088, -0.7268071174621582, 0.2414422482252121, -0.24442365765571594, -0.6022046208381653, -0.010351451113820076, 0.47356685996055603, -0.35751792788505554, 0.3447781801223755, -0.7365891933441162, 0.7974932193756104, -0.3044968247413635, -0.2596963942050934, -0.11224327981472015, -0.6999176144599915, 0.3211837410926819, -0.1394375115633011, 0.19170233607292175, -0.10635852068662643, -0.17674753069877625, 0.6815328001976013, -0.42341965436935425, 0.45146188139915466, -0.5482775568962097, 0.005555087234824896, 0.3824532926082611, -0.0021978155709803104, 0.8659095764160156, -0.09008123725652695, 0.15957343578338623, -0.06841485947370529, -0.06313155591487885, -0.6088946461677551, -0.7309476137161255, 0.665673553943634, -0.579777717590332, -0.6056521534919739, -0.2624228000640869, -0.9413096904754639, -0.7568351626396179, 0.18041488528251648, 0.04470505192875862, 0.40854620933532715, 0.20034874975681305, 0.28840377926826477, 0.7452751994132996, -0.5424821376800537, 0.1613599807024002, 0.35651886463165283, 0.10088590532541275, -0.6119837760925293, 0.7575620412826538, 0.19474729895591736, 0.5093225836753845, 0.5778119564056396, 0.5054846405982971, -0.7554430961608887, -0.6296048760414124, -0.38567879796028137, 0.1783267706632614, -0.8760424256324768, -0.48214995861053467, -0.9332403540611267, 0.07026880979537964, -0.6269550323486328, -0.2846739888191223, -0.2838132083415985, -0.32933253049850464, 0.11294165998697281, 0.14636121690273285, 0.46999356150627136, 0.09131649881601334, 0.15002310276031494, 0.31903788447380066, -0.5821948051452637, 0.1236562579870224, 0.7534226179122925, 0.2813841700553894, 0.00233632093295455, -0.30926647782325745, -0.16398659348487854, 0.09060894697904587, -0.07866073399782181, -0.9429275393486023, 0.3670772612094879, 0.027616335079073906, 0.5651161074638367, 0.06338270008563995, 0.5771365761756897, 0.7179025411605835, -0.24261701107025146, 0.46629321575164795, 0.09633370488882065, -0.9200542569160461, 0.1376550793647766, -0.3972395360469818, 0.27861306071281433, 0.6608739495277405, 0.6714016199111938, -0.46666401624679565, -0.30623236298561096, -0.37293368577957153, -1.0709867477416992, 0.5721903443336487, 0.04908683896064758, -0.037626806646585464, 0.07259337604045868, 0.10927212238311768, -0.1132422387599945, 0.4617648720741272, -0.5516909956932068, -0.1045936569571495, 0.17487718164920807, -0.2305854856967926, 0.15025918185710907, -0.17706601321697235, -0.16858170926570892, -0.07800911366939545, 0.8756106495857239, -0.35928604006767273, 0.09203930199146271, 0.12888813018798828, -0.27790260314941406, 0.4855029881000519, 0.3182823061943054, 0.2542080283164978, 0.6445319056510925, -0.22717763483524323, -0.14255781471729279, 0.3491345942020416, -0.06876025348901749, -0.14350183308124542, -0.021091293543577194, -0.28272536396980286, -0.2982504665851593, 0.01004844345152378, 0.5185117721557617, 0.2137109935283661, -1.0464341640472412, 0.47503453493118286, 0.2342650145292282, -0.3275628983974457, -0.17778252065181732, -0.08450630307197571, 0.6247959136962891, 0.39399388432502747, 0.3522529900074005, -0.15683622658252716, 0.024163737893104553, -0.39141449332237244, -0.046560704708099365, 0.670549750328064, -0.11730717867612839, 0.4827493727207184, 0.6323367953300476, 0.39106300473213196, -0.12896813452243805, 0.7586054801940918, -0.0857279822230339, -0.8329397439956665, 0.6116736531257629, 0.2986600995063782, 0.529087483882904, 0.06437879800796509, 0.24493752419948578, 0.17249037325382233, 0.30438706278800964, 0.19806578755378723, 0.34185487031936646, -0.12761758267879486, -0.7594738602638245, -0.4601805806159973, -0.4016385078430176, -0.6477231979370117, 0.038548074662685394, -0.40985721349716187, 0.20793499052524567, -0.1281745880842209, 0.35068294405937195, -0.23263691365718842, 0.2220223993062973, -0.577472984790802, 0.3414768874645233, -0.16537487506866455, 1.0621557235717773, -0.6579075455665588, 0.7258843183517456, 0.3156415820121765, -0.18984486162662506, -1.0912126302719116, -0.1086622029542923, -0.29442423582077026, -0.9955838918685913, 0.4895145893096924, -0.04343894496560097, -0.19057206809520721, 0.10237155109643936, -0.577226996421814, -0.9962950348854065, 1.0313516855239868, 0.46306857466697693, -0.22327029705047607, -0.11035303771495819, -0.13584360480308533, 0.07091659307479858, -0.15681476891040802, 0.13120771944522858, 0.6179862022399902, 0.45920953154563904, 0.5038849711418152, -0.8056246042251587, -0.2299034595489502, 0.32064974308013916, -0.2359774261713028, 0.5085885524749756, -0.6471748948097229, 0.8754066228866577, -0.24333839118480682, -0.040844932198524475, -0.11140976846218109, 0.4955764710903168, 0.3455789089202881, 0.2983327805995941, 0.6329168677330017, 0.2844587564468384, 1.0417835712432861, -0.020486097782850266, 0.9509570598602295, -0.2638736665248871, 0.46215584874153137, 0.9831727743148804, -0.44502341747283936, 0.614970326423645, 0.39763039350509644, -0.35798728466033936, 0.08333739638328552, 0.7070223689079285, 0.24166418612003326, 0.7541932463645935, 0.3514024317264557, -0.275638222694397, -0.4485641121864319, 0.025713540613651276, -0.11281643807888031, 0.49579760432243347, 0.0718594491481781, 0.030361024662852287, -0.4226868450641632, -0.09087616205215454, 0.5875667333602905, 0.054749954491853714, -0.38966765999794006, 0.6571171283721924, -0.3257436156272888, -0.8202440142631531, 0.5465663075447083, -0.06947757303714752, 0.6038652658462524, -1.0126953125, 0.2952762246131897, -0.3993207812309265, 0.02033456414937973, 0.1775861233472824, -0.4955619275569916, 0.16745078563690186, 0.17499706149101257, -0.07636776566505432, -0.2628408372402191, 0.5837461948394775, -0.7312588095664978, -0.46172913908958435, 0.06180599331855774, 0.5761109590530396, 0.08858413249254227, -0.49507588148117065, -0.5065892934799194, -0.3251264691352844, -0.033786796033382416, -0.10153325647115707, 0.29796797037124634, 0.10962428152561188, -0.015250293537974358, 0.8656323552131653, 0.5158103704452515, 0.09996949136257172, 0.017884032800793648, -0.22672368586063385, 0.858046293258667, -0.4431425631046295, -0.7610483169555664, -0.37779688835144043, 0.2996523678302765, -0.1855955272912979, -0.27185824513435364, 0.5400261282920837, 0.6926575303077698, 0.9380642771720886, -0.0657462477684021, 0.9259272813796997, -0.2170971781015396, 0.6090796589851379, -0.7577343583106995, 0.8112317323684692, -0.6483778953552246, 0.04384763166308403, -0.2931261360645294, -0.6596294641494751, -0.09588803350925446, 0.30651387572288513, -0.42465949058532715, 0.13705474138259888, 0.6070544719696045, 1.0489269495010376, 0.33019042015075684, -0.15397456288337708, 0.3311522901058197, 0.03263147547841072, 0.35095638036727905, 0.9682693481445312, 0.6958547830581665, -0.03898315131664276, 0.9512359499931335, -0.21218475699424744, -0.3264886438846588, -0.06742464005947113, -0.7976524233818054, -0.6843307614326477, -0.3618565797805786, -0.19080936908721924, -0.32242825627326965, 0.02596384845674038, 1.033555507659912, 0.7542012333869934, -0.5708162188529968, -0.1426115185022354, 0.3216645419597626, 0.2602241635322571, -0.2684231698513031, -0.20356401801109314, 0.6475548148155212, -0.459009051322937, -0.9170116782188416, 0.38062819838523865, 0.12549453973770142, -0.421187162399292, 0.12136172503232956, 0.004191747400909662, -0.20015399158000946, 0.34259143471717834, 0.6553897857666016, 0.17273733019828796, -0.5894264578819275, -0.432713121175766, 0.3585300147533417, 0.19026319682598114, -0.017135487869381905, 0.8823819756507874, -0.8493433594703674, 0.37887945771217346, 0.4159424602985382, 1.072788119316101, 0.5463500618934631, 0.0045057726092636585, 0.508781373500824, -0.6216448545455933, -0.07493335753679276, 0.4722515344619751, 0.15691255033016205, 0.2319781333208084, -0.3457088768482208, 0.35265281796455383, 0.17426730692386627, -0.5240442752838135, -0.707427442073822, 0.3580077290534973, -0.8144102096557617, -0.7400196194648743, 1.0505435466766357, -0.17733408510684967, -0.05485010892152786, -0.3461668789386749, -0.19924655556678772, -0.025482432916760445, -0.3025033473968506, 0.6780151724815369, 0.774010956287384, -0.4382852017879486, -0.03716430440545082, -0.364378958940506, 0.4757685363292694, 0.2911870777606964, -0.7426155209541321, 0.13284100592136383, 0.7991082668304443, 0.4679816961288452, -0.17004771530628204, 0.5875433683395386, 0.18838337063789368, 0.15566131472587585, 0.11896933615207672, -0.016695184633135796, -0.25792473554611206, -0.5120823383331299, 0.07273203879594803, 0.6294390559196472, 0.045336708426475525, -0.3462364375591278 ]
http://arxiv.org/abs/2405.17336v1
http://arxiv.org/pdf/2405.17336v1
XFormParser: A Simple and Effective Multimodal Multilingual Semi-structured Form Parser
2024-05-27T16:37:17
2024-05-27T16:37:17
Xianfu Cheng, Hang Zhang, Jian Yang, Xiang Li, Weixiao Zhou, Kui Wu, Fei Liu, Wei Zhang, Tao Sun, Tongliang Li, Zhoujun Li
cs.CL
cs.CL
In the domain of document AI, semi-structured form parsing plays a crucial role. This task leverages techniques from key information extraction (KIE), dealing with inputs that range from plain text to intricate modal data comprising images and structural layouts. The advent of pre-trained multimodal models has driven the extraction of key information from form documents in different formats such as PDFs and images. Nonetheless, the endeavor of form parsing is still encumbered by notable challenges like subpar capabilities in multi-lingual parsing and diminished recall in contexts rich in text and visuals. In this work, we introduce a simple but effective \textbf{M}ultimodal and \textbf{M}ultilingual semi-structured \textbf{FORM} \textbf{PARSER} (\textbf{XFormParser}), which is anchored on a comprehensive pre-trained language model and innovatively amalgamates semantic entity recognition (SER) and relation extraction (RE) into a unified framework, enhanced by a novel staged warm-up training approach that employs soft labels to significantly refine form parsing accuracy without amplifying inference overhead. Furthermore, we have developed a groundbreaking benchmark dataset, named InDFormBench, catering specifically to the parsing requirements of multilingual forms in various industrial contexts. Through rigorous testing on established multilingual benchmarks and InDFormBench, XFormParser has demonstrated its unparalleled efficacy, notably surpassing the state-of-the-art (SOTA) models in RE tasks within language-specific setups by achieving an F1 score improvement of up to 1.79\%. Our framework exhibits exceptionally improved performance across tasks in both multi-language and zero-shot contexts when compared to existing SOTA benchmarks. The code is publicly available at https://github.com/zhbuaa0/layoutlmft.
[ -0.1116987094283104, -0.47040823101997375, 0.43518078327178955, 0.29482975602149963, -0.10496845841407776, 0.2742686867713928, -0.25475192070007324, -0.2564072906970978, -0.007739395834505558, -0.14583630859851837, -0.5614965558052063, -0.3517521917819977, -0.2995772659778595, 0.07459736615419388, -0.0646432638168335, 0.6620917320251465, -0.14900973439216614, 0.3288825750350952, -0.48206788301467896, -0.08936168998479843, -0.19292710721492767, -0.513454258441925, -0.7230514883995056, -0.22618600726127625, 0.22610892355442047, 0.21051375567913055, 0.5609745383262634, 0.3718034625053406, 0.1319200098514557, 0.37481704354286194, -0.09032797068357468, -0.09819255769252777, -0.06589311361312866, 0.4633682072162628, -0.1633114516735077, -0.6783741116523743, -0.3081304430961609, -0.24224655330181122, 1.01189124584198, 0.581071674823761, -0.2447967231273651, 0.020293869078159332, -0.17101070284843445, 0.34316757321357727, -0.7589595913887024, 0.5245862603187561, -0.3726925551891327, 0.12653988599777222, -0.6787264347076416, 0.053713567554950714, -0.34981903433799744, 0.30107754468917847, -0.5517141222953796, -0.44646573066711426, 0.23908580839633942, 0.09491927921772003, 0.8343388438224792, 0.10925979912281036, -0.1283697485923767, 0.16621828079223633, -0.3641431927680969, 0.5474721193313599, -0.49398016929626465, 1.107540488243103, 0.09707988798618317, 0.6491085290908813, -0.27764657139778137, -1.0070253610610962, -0.8276509046554565, -0.11676983535289764, -0.02072202041745186, 0.23895661532878876, -0.44162169098854065, 0.022772153839468956, 0.21716928482055664, 0.6526166200637817, -0.6920345425605774, 0.1477348953485489, -0.2211826592683792, -0.3470117151737213, 0.16109596192836761, -0.09833546727895737, 0.7510367035865784, -0.6248789429664612, -0.37003496289253235, -0.31627485156059265, -0.18390138447284698, 0.6419075131416321, 0.03522642329335213, 0.1875850260257721, -0.2853075861930847, 0.43525758385658264, -0.26304924488067627, 0.6001104116439819, -0.21516920626163483, -0.3511030077934265, 0.22143767774105072, -0.12866221368312836, -0.4059368669986725, 0.10648690909147263, 0.8487263917922974, -0.15832000970840454, -0.2328055202960968, -0.2890979051589966, -0.34573060274124146, 0.26601463556289673, -0.06702838093042374, -0.4270220994949341, -0.31536611914634705, -0.13163071870803833, -0.4031785726547241, -0.2031458616256714, 0.03832719102501869, -0.7946314811706543, -0.11039452999830246, -0.28435564041137695, 0.1596161425113678, -0.3664603531360626, -0.12376691401004791, 0.022053027525544167, -0.24769027531147003, 0.12273488193750381, 0.3698054552078247, -0.6548315286636353, 0.1928696185350418, 0.4568726718425751, 0.7924210429191589, -0.1200266033411026, -0.13426057994365692, -0.7792316675186157, 0.2826334238052368, 0.014779981225728989, 1.1036663055419922, -0.6790043711662292, -0.10829943418502808, -0.3251219391822815, 0.31141412258148193, -0.13768647611141205, -0.40509721636772156, 0.7748574614524841, -0.4924394190311432, 0.5235847234725952, 0.20458795130252838, -0.281494140625, -0.18705466389656067, 0.4003611207008362, -0.9373905062675476, 1.1522419452667236, 0.37945500016212463, -0.2128940373659134, 0.5049042701721191, -0.4817282557487488, -0.40024691820144653, 0.1194877177476883, -0.7081564664840698, -0.5922949314117432, 0.24093587696552277, 0.32200881838798523, 0.3140491545200348, -0.4618018865585327, 0.19297166168689728, -0.36548569798469543, 0.2731838524341583, -0.15306217968463898, -0.5978219509124756, 0.642402708530426, 0.08098620176315308, -0.5006412267684937, 0.35204145312309265, -1.2257152795791626, 0.28208404779434204, 0.15899421274662018, -0.4548191726207733, -0.2925182580947876, -0.49311065673828125, 0.3390531837940216, 0.697242796421051, -0.05790485441684723, -0.8255675435066223, 0.14116379618644714, -0.3657395839691162, 0.41662320494651794, 0.617540180683136, -0.2860339879989624, 0.43314680457115173, -0.07015278190374374, 0.8669050335884094, -0.007793910335749388, 0.021437084302306175, -0.3460496962070465, -0.13787922263145447, -0.4553912580013275, -0.7323458790779114, 0.31747788190841675, 0.31110602617263794, -0.7284772992134094, 0.031792547553777695, -0.21056672930717468, -0.5349358320236206, -0.4274756908416748, 0.27262863516807556, 0.5803954005241394, 0.6881443858146667, 0.21375718712806702, 0.009800879284739494, -0.6014352440834045, -0.8625244498252869, -0.05214541405439377, 0.06718674302101135, 0.14665667712688446, -0.20621465146541595, 0.14984093606472015, 0.00890291202813387, 0.8637921214103699, -0.46735766530036926, -0.4654166102409363, -0.5544008612632751, -0.015085001476109028, 0.09467156231403351, 0.5033531785011292, 0.6145062446594238, -1.1061590909957886, -0.4850284457206726, -0.1769750714302063, -0.8425323367118835, -0.14857694506645203, -0.09607572853565216, -0.20615267753601074, 0.27120596170425415, 0.5462768077850342, -0.7423990964889526, 0.3018324077129364, 0.5042334794998169, -0.26764270663261414, 0.380182683467865, -0.18169988691806793, 0.14124919474124908, -1.1123992204666138, 0.2216692417860031, -0.04358253628015518, -0.632918655872345, -0.30994075536727905, 0.019566789269447327, 0.42717957496643066, -0.544519305229187, -0.6228802800178528, 0.7028514742851257, -0.7771983742713928, 0.015971748158335686, 0.04908183217048645, -0.04947153478860855, 0.454766184091568, 0.5911152362823486, 0.017644546926021576, 0.9478508830070496, 0.38602736592292786, -0.12226853519678116, 0.25920769572257996, 0.32479965686798096, -0.25247418880462646, 0.5215477347373962, -0.7100347280502319, -0.24507516622543335, -0.44670015573501587, 0.1879642754793167, -1.1661484241485596, -0.22146384418010712, 0.1491340547800064, -0.20736634731292725, 0.7526677846908569, -0.04106448218226433, -0.6460845470428467, -0.047507308423519135, -0.4057733118534088, 0.38083168864250183, 0.23462575674057007, -0.42146220803260803, 0.9279345273971558, 0.4095701277256012, -0.407621830701828, -0.22193162143230438, -0.4111565351486206, 0.14032529294490814, 0.21932357549667358, -0.9167966246604919, 0.6160467863082886, 0.05346868187189102, -0.005500725470483303, -0.03566219285130501, -0.46268028020858765, -0.0845678374171257, 0.020637916401028633, 0.24249574542045593, 0.23891380429267883, -0.2578316330909729, 0.07115040719509125, 0.46127399802207947, -0.4247588813304901, -0.14329063892364502, 0.1716461181640625, 0.6452748775482178, -0.0695389062166214, -0.4072422981262207, -0.5165349841117859, 0.5626067519187927, 0.8825141787528992, -0.4252641201019287, 0.557616114616394, 0.42481371760368347, -0.5180092453956604, -0.0050504873506724834, -0.4138493239879608, 0.20344296097755432, -0.39927592873573303, 0.32506006956100464, -0.8439208269119263, -0.6855031251907349, 0.30489182472229004, -0.13626378774642944, -0.09660650044679642, 0.44338178634643555, 0.5143606066703796, -0.09761649370193481, 1.1319653987884521, 0.7589234113693237, 0.07667306810617447, 0.563319206237793, -0.13183686137199402, 0.18292221426963806, -0.6050422787666321, -0.6470740437507629, -0.48251160979270935, -0.035271693021059036, -0.188897043466568, -0.11348330229520798, 0.441837340593338, 0.34591254591941833, 0.22849106788635254, 0.14422555267810822, -0.18989139795303345, 0.21722310781478882, 0.47935181856155396, -0.06915267556905746, 0.25072914361953735, 0.03988044336438179, -0.18218426406383514, -0.09548447281122208, -0.734289824962616, -0.559933066368103, 0.45053383708000183, 0.2246844619512558, 0.9498914480209351, 0.30201172828674316, 0.2875286042690277, 0.4266932010650635, -0.06985493749380112, -0.6437200903892517, 0.30359870195388794, -0.23349662125110626, -0.3484399914741516, -0.04294567555189133, -0.17596352100372314, -0.8246426582336426, 0.47878116369247437, -0.3543877899646759, -0.4940987527370453, 0.2547169327735901, 0.015381799079477787, -0.3059127628803253, 0.3349190950393677, -0.7588624358177185, 1.2270570993423462, -0.33907172083854675, -0.3748897314071655, 0.2554202675819397, -0.6678591370582581, 0.18532148003578186, -0.10315239429473877, 0.2045544981956482, -0.18694263696670532, 0.03305290639400482, 0.6903477311134338, -0.36943531036376953, 0.6957712173461914, -0.2781895697116852, -0.01976165734231472, -0.27001339197158813, 0.04408854618668556, 0.21014191210269928, 0.3142072260379791, 0.014059003442525864, 0.17723780870437622, 0.26161906123161316, -0.43591615557670593, -0.9452196359634399, 0.4330081343650818, -0.6841399073600769, -0.22497229278087616, -0.41570740938186646, -0.3869763910770416, -0.15129999816417694, 0.6742206811904907, 0.19210536777973175, 0.7549335956573486, -0.044457755982875824, 0.14801093935966492, 0.5099135041236877, -0.09080399572849274, 0.47844967246055603, 0.44699499011039734, -0.019980745390057564, -0.6387903094291687, 0.5763301849365234, 0.005295756738632917, 0.06884106993675232, 0.7938647270202637, 0.13647055625915527, -0.6138898730278015, 0.07277949154376984, -0.712501049041748, 0.158845454454422, -0.7341519594192505, -0.5335283279418945, -1.0415705442428589, 0.03190775215625763, -0.8028005957603455, -0.05443252995610237, -0.41047877073287964, -0.7439786791801453, 0.14721445739269257, 0.05459370091557503, -0.25254184007644653, 0.21395492553710938, -0.010796553455293179, 0.3310479521751404, -0.8476002216339111, 0.5862835049629211, 0.10168837010860443, 0.19125108420848846, -0.3038574457168579, -0.14169660210609436, 0.21482889354228973, -0.12464496493339539, -0.16744691133499146, -0.7440781593322754, 0.07656770199537277, 0.4378899931907654, 1.0379664897918701, 0.38484400510787964, -0.14829714596271515, 0.6556275486946106, -0.44599926471710205, 0.6043542623519897, 0.23861336708068848, -0.8657490611076355, 0.6855091452598572, 0.061499133706092834, 0.28377386927604675, 0.6569438576698303, 0.41195034980773926, -0.6413097381591797, -0.1053209975361824, -0.6769314408302307, -0.6853715777397156, 0.8517947793006897, 0.12752465903759003, -0.1467222422361374, 0.20802900195121765, 0.22657833993434906, 0.29452982544898987, 0.33939579129219055, -0.6232002377510071, -0.225297212600708, -0.21948623657226562, -0.31316566467285156, -0.08609171211719513, -0.39977288246154785, 0.27090227603912354, -0.22024723887443542, 0.7662265300750732, 0.050987109541893005, 0.1188197210431099, 0.07538174837827682, -0.5300977230072021, 0.12338627129793167, 0.5402373671531677, 0.7791645526885986, 0.38242706656455994, -0.015904059633612633, 0.44308722019195557, -0.24943797290325165, -0.28428617119789124, 0.5504230856895447, 0.5490524768829346, -0.16332295536994934, 0.2326612025499344, 0.5078181624412537, 0.6736878156661987, 0.4861803948879242, -0.7036902904510498, 0.6808786988258362, -0.32973340153694153, 0.21632105112075806, -0.41023537516593933, -0.031932633370161057, -0.4111320972442627, 0.1977347433567047, -0.0147618493065238, 0.187059223651886, 0.06197621300816536, -0.4901188910007477, 0.4120108187198639, 0.24175548553466797, -0.4910682439804077, -0.5642333626747131, 0.8739790320396423, -0.08957677334547043, -0.10738296806812286, 0.4861263036727905, -0.23794247210025787, -0.4947476387023926, 0.06620017439126968, 0.7630529403686523, 0.5685292482376099, -0.17223985493183136, 0.13963255286216736, -0.0011512769851833582, 0.02856490947306156, 0.16299015283584595, 0.4752534329891205, -0.523678183555603, -0.5350607633590698, -0.3910549581050873, -0.8284590840339661, -0.1255292147397995, -0.03680899739265442, -0.49518537521362305, 0.39045360684394836, -0.2951088845729828, 0.042939528822898865, 0.12558843195438385, -0.18529416620731354, -0.5057498216629028, 0.27262452244758606, 0.27772635221481323, 1.0921686887741089, -0.9262482523918152, 0.5944235324859619, 1.3111566305160522, -0.921059250831604, -0.8352206945419312, -0.47492164373397827, 0.14146459102630615, -0.9003174304962158, 0.6868395209312439, 0.18431521952152252, -0.047010235488414764, -0.06940273940563202, -0.030691683292388916, -0.7945014238357544, 0.7405298352241516, 0.6833837628364563, -0.3103373050689697, -0.27501198649406433, 0.1630808562040329, 0.12801598012447357, 0.06199875473976135, 0.3483688533306122, 0.29164832830429077, 0.4203835427761078, -0.05119611322879791, -0.7254073619842529, 0.2628873586654663, -0.6766066551208496, 0.08642897754907608, 0.4394749402999878, -0.5805956721305847, 0.6927988529205322, 0.2713295817375183, -0.3467372953891754, -0.08032237738370895, 0.8369960188865662, 0.31326961517333984, 0.20650456845760345, 0.6641905903816223, 0.7344399690628052, 0.6598419547080994, 0.03924792259931564, 0.8603590726852417, -0.28023648262023926, 0.1403723806142807, 1.1269367933273315, -0.21978658437728882, 0.535428524017334, 0.49815449118614197, -0.10007687658071518, 0.62897127866745, 0.3188202381134033, 0.1300026774406433, 0.5055826306343079, -0.09434971213340759, -0.2949884533882141, -0.48896726965904236, -0.24297386407852173, -0.23615767061710358, 0.8781412839889526, -0.1360531598329544, -0.2579618990421295, -0.9691183567047119, 0.5835445523262024, 0.3759106397628784, 0.2002890706062317, -0.05352375656366348, 0.6444957852363586, -0.09018973261117935, -0.2988554835319519, 0.2264704704284668, 0.19291532039642334, 0.428209125995636, -0.9567287564277649, -0.2940429449081421, -0.1434093564748764, 0.2840854227542877, -0.3108392655849457, -0.6950244903564453, 0.0529768168926239, -0.18022865056991577, -0.6332153081893921, -0.4177665412425995, 0.8442156910896301, -0.29069700837135315, -0.49665209650993347, 0.032560959458351135, 0.5634319186210632, 0.06587735563516617, -0.36836308240890503, -0.7270390391349792, 0.2652859091758728, 0.00039848333108238876, -0.2121886909008026, 0.20563063025474548, 0.5690780282020569, -0.5308511853218079, 0.4484867751598358, 0.8278163075447083, 0.18816182017326355, 0.21158134937286377, 0.36063623428344727, 1.0034819841384888, -0.5963921546936035, -0.6634695529937744, -0.7387121915817261, 0.7370812296867371, -0.27268916368484497, -0.3210691511631012, 0.585868775844574, 0.938288688659668, 0.9568013548851013, 0.01535460352897644, 0.6019572615623474, -0.31638360023498535, 0.22542057931423187, -0.599055826663971, 0.6909967660903931, -0.7440375089645386, -0.19976548850536346, -0.26760637760162354, -0.9789974093437195, -0.5061883926391602, 0.44694411754608154, 0.03293386846780777, -0.008489875122904778, 0.563637375831604, 0.716413140296936, -0.30614084005355835, -0.21428753435611725, 0.4935579001903534, -0.08136305212974548, 0.8769091367721558, 0.1802876591682434, 0.7064514756202698, -0.4271496832370758, 0.5621955990791321, -0.607446014881134, -0.5755894184112549, 0.2839437425136566, -0.7068037390708923, -0.6748822927474976, -0.6824420094490051, -0.16050907969474792, 0.08083826303482056, -0.23450447618961334, 0.9286665916442871, 0.7732111215591431, -0.6146851778030396, 0.13272865116596222, 0.17409496009349823, -0.2160687893629074, -0.05869068577885628, -0.2773820757865906, 0.40584179759025574, -0.7939940690994263, -0.6450343132019043, 0.5966724753379822, 0.6688722968101501, 0.08114025741815567, -0.12328564375638962, 0.3785850703716278, -0.30665916204452515, -0.5502055287361145, 0.8311238288879395, 0.258530855178833, -0.4836573004722595, 0.16980983316898346, -0.00872931070625782, -0.23749296367168427, 0.2840348482131958, 0.7639653086662292, -0.7179073691368103, 0.5597221851348877, 0.6057997345924377, 0.6575074195861816, 0.3356657922267914, -0.033834923058748245, 0.5192356705665588, -0.714275062084198, 0.24606890976428986, 0.06764975190162659, 0.8003697395324707, 0.2509230971336365, -0.4329376816749573, 0.4193854033946991, 0.47106537222862244, -0.1831509917974472, -0.7373688817024231, 0.03517227992415428, -1.2490431070327759, -0.19766181707382202, 0.634450376033783, -0.03445039689540863, -0.5960275530815125, 0.05487122759222984, -0.5223315954208374, 0.3499046862125397, -0.5592514872550964, 0.3975973129272461, 0.32530534267425537, -0.36377424001693726, -0.36732959747314453, -0.2936583161354065, 0.3316924571990967, 0.5543091893196106, -0.9020310044288635, -0.1961883306503296, 0.44069841504096985, 0.17381040751934052, 0.2172502875328064, 0.6605291366577148, -0.3745890259742737, 0.35960879921913147, -0.1551491916179657, 0.37277770042419434, -0.39556431770324707, -0.2900964021682739, -0.3150380253791809, 0.5216249823570251, -0.08248528838157654, -0.2703365683555603 ]
http://arxiv.org/abs/2406.01608v1
http://arxiv.org/pdf/2406.01608v1
Detecting Deceptive Dark Patterns in E-commerce Platforms
2024-05-27T16:32:40
2024-05-27T16:32:40
Arya Ramteke, Sankalp Tembhurne, Gunesh Sonawane, Ratnmala N. Bhimanpallewar
cs.IR
cs.IR, cs.AI, cs.CL, cs.HC
Dark patterns are deceptive user interfaces employed by e-commerce websites to manipulate user's behavior in a way that benefits the website, often unethically. This study investigates the detection of such dark patterns. Existing solutions include UIGuard, which uses computer vision and natural language processing, and approaches that categorize dark patterns based on detectability or utilize machine learning models trained on datasets. We propose combining web scraping techniques with fine-tuned BERT language models and generative capabilities to identify dark patterns, including outliers. The approach scrapes textual content, feeds it into the BERT model for detection, and leverages BERT's bidirectional analysis and generation abilities. The study builds upon research on automatically detecting and explaining dark patterns, aiming to raise awareness and protect consumers.
[ -0.18573160469532013, -1.0908775329589844, 0.30578577518463135, 0.20406845211982727, -0.6432026028633118, 0.11423636227846146, 0.33710065484046936, -1.2460622787475586, 0.3410959541797638, 1.1253433227539062, -0.566895604133606, -0.44589442014694214, -0.1014290601015091, 0.012255317531526089, -0.5150620341300964, 0.7295053005218506, 0.3703455626964569, -0.1368730515241623, 0.22661817073822021, 0.25890421867370605, -0.20525678992271423, -0.5215957760810852, -0.6088494658470154, 0.027252791449427605, 0.30610573291778564, 0.38146671652793884, 0.5250688195228577, 0.394998162984848, 0.6088146567344666, 0.42015165090560913, 0.18255525827407837, 0.5240996479988098, -0.36031970381736755, 0.385421484708786, 0.09022248536348343, -0.5681604146957397, 0.19712084531784058, -0.15458182990550995, -0.2849556505680084, 0.49304527044296265, -0.19514316320419312, 0.20150594413280487, 0.3018187880516052, 0.6617326736450195, -0.621823787689209, -0.04141876474022865, -0.6687662601470947, -0.03701470419764519, -0.27406635880470276, -0.17246241867542267, -0.5729690194129944, -0.29226329922676086, -0.2844060957431793, -0.3438849151134491, 0.5287994742393494, 0.38396263122558594, 0.8666752576828003, 0.01998024247586727, -0.22082719206809998, -0.34225428104400635, -0.5045522451400757, 0.826076865196228, -0.6982026100158691, 0.43769973516464233, 0.7368212342262268, 0.4028382897377014, -0.3168693482875824, -0.8418576717376709, -0.44308218359947205, -0.20461949706077576, -0.27987709641456604, 0.052037689834833145, -0.49975329637527466, -0.06143932044506073, 0.11596524715423584, 0.06387048959732056, -0.5428617000579834, 0.40387246012687683, -0.6269001960754395, -0.35643261671066284, 0.7223753929138184, 0.11735208332538605, 0.4977710247039795, -0.1290297657251358, -0.579060971736908, -0.04403464496135712, -0.3200230300426483, 0.12723204493522644, 0.8742879033088684, 0.36075446009635925, -0.33388689160346985, 0.3644998073577881, 0.1258474737405777, 0.9327967166900635, 0.39513158798217773, 0.006214550696313381, 0.18376313149929047, -0.09375857561826706, -0.3021373748779297, 0.15418657660484314, 0.3832032382488251, 0.6928430795669556, 0.09962154179811478, -0.11129733920097351, -0.4172925353050232, -0.002408107277005911, 0.4903828799724579, -0.7932041883468628, -0.5482547283172607, 0.05134200677275658, -1.2717939615249634, -0.5750294923782349, 0.034430257976055145, -0.903654932975769, -0.6734545826911926, -0.3943922817707062, 0.20888885855674744, -0.21106137335300446, -0.12369750440120697, 0.27393630146980286, -0.6400026679039001, 0.27791860699653625, 0.3903796970844269, -0.795386016368866, 0.3804052472114563, 0.4694446325302124, 0.5613265633583069, -0.07773419469594955, 0.15176524221897125, -0.28261440992355347, 0.11449923366308212, 0.008426060900092125, 0.5322383046150208, -0.6384682059288025, -0.054351501166820526, 0.12818196415901184, 0.1593489795923233, 0.21009418368339539, -0.4705204963684082, 0.6325678825378418, -1.0131123065948486, 0.07589805871248245, -0.11974756419658661, -0.5809715986251831, -0.5422179102897644, 0.32500794529914856, -0.8427693843841553, 0.7405933141708374, -0.08562002331018448, -0.5636332035064697, 0.5697008967399597, -0.5238152146339417, -0.4326004087924957, 0.4415574073791504, 0.2451593428850174, -0.5300092697143555, 0.43484750390052795, -0.010296744294464588, 0.5276067852973938, 0.10898029804229736, -0.2717481553554535, -0.43448883295059204, -0.4589008390903473, 0.538537323474884, -0.7238547801971436, 1.2819801568984985, 0.6485958695411682, -0.48194095492362976, -0.5806233286857605, -1.0681923627853394, 0.005562285892665386, 0.36566677689552307, -0.1921761929988861, -0.8630924820899963, 0.17723652720451355, 0.5846912264823914, -0.013076555915176868, 0.30091115832328796, -0.5369661450386047, 0.007067972794175148, -0.18530359864234924, 0.4051281213760376, 0.9918617606163025, 0.1478326916694641, -0.08265934139490128, -0.3208315968513489, 0.2866084575653076, 0.19823552668094635, 0.35830849409103394, -0.009317925199866295, -0.6735160946846008, -0.6449620723724365, -0.4138054847717285, 0.15145622193813324, 0.40571025013923645, -0.6204144954681396, 0.7329055070877075, 0.41639089584350586, -0.3211599290370941, -0.4210025370121002, 0.17432089149951935, 0.1915409117937088, 0.34014782309532166, 0.43943560123443604, -0.6696035861968994, -0.4230829179286957, -0.9462825059890747, -0.3140842914581299, 0.11360947787761688, 0.11840815842151642, 0.202529639005661, 0.3951442241668701, -0.652135968208313, 0.6462699174880981, -0.36947014927864075, -0.22418203949928284, -0.03888845816254616, 0.5687134861946106, 0.3197261393070221, 0.5404060482978821, 0.9540150761604309, -1.3819897174835205, -0.618327260017395, -0.11339760571718216, -0.35297489166259766, -0.3822691738605499, -0.0608791820704937, -0.0018114267149940133, -0.014908036217093468, 0.5892856121063232, -0.0021936565171927214, 0.4882490038871765, 0.45177167654037476, -0.5411015152931213, 0.502733051776886, -0.1320803165435791, 0.23323994874954224, -0.5462450385093689, -0.177580788731575, 0.14912088215351105, -0.29523128271102905, -0.8919477462768555, 0.036836814135313034, 0.03934796527028084, -0.017809482291340828, -0.22816236317157745, 0.15464253723621368, -0.32283881306648254, -0.018818175420165062, -0.27984553575515747, -0.2951332926750183, 0.3051103949546814, 0.38285118341445923, -0.16144363582134247, 0.6385701894760132, 0.24001598358154297, -0.8193336129188538, 0.33449387550354004, 0.09798288345336914, -0.7019781470298767, 0.46490585803985596, -0.30090683698654175, 0.1797609031200409, -0.03283798322081566, -0.22276407480239868, -1.0692291259765625, -0.12849220633506775, 0.612805962562561, -0.3372115194797516, 0.24785958230495453, -0.37117433547973633, -0.7632029056549072, -0.3938993513584137, -0.5691438913345337, 0.44399240612983704, 0.5257589221000671, -0.751348078250885, 0.3819039463996887, 0.07900726795196533, -0.07096926122903824, -0.6227456331253052, -1.034317135810852, 0.1880241185426712, -0.26639363169670105, -0.5077629685401917, 0.38959482312202454, -0.20237110555171967, -0.49171748757362366, -0.12281914800405502, 0.13518497347831726, -0.31864482164382935, 0.6572320461273193, -0.08450634032487869, 0.22672222554683685, 0.09001504629850388, -0.2006402313709259, -0.12030437588691711, 0.12150410562753677, 0.1573755443096161, -0.2589086592197418, 0.7646017670631409, 0.466906875371933, -0.7709205746650696, -0.6351838707923889, 0.24657823145389557, 0.6375666856765747, -0.0974738746881485, 0.296151340007782, 0.43197888135910034, -0.35046279430389404, -0.39974215626716614, -0.7538695335388184, -0.2794128656387329, -0.6189090609550476, -0.237625852227211, 0.12444952875375748, -0.38476964831352234, 0.72000652551651, 0.14345532655715942, -0.14201189577579498, 0.053783174604177475, 0.3265770971775055, -0.39407411217689514, 1.3436115980148315, 0.9697459936141968, 0.08095061033964157, 0.7926314473152161, -0.08672451227903366, 0.3392240107059479, -0.27770355343818665, -0.35410329699516296, -0.5846517086029053, -0.6450238227844238, -1.0353901386260986, -0.1649734526872635, 0.02463403344154358, 0.21159647405147552, -0.23447486758232117, 0.2812759578227997, -0.8407883644104004, 0.5119897723197937, 0.9814525246620178, 0.6547225117683411, 0.2819458246231079, 0.4190000593662262, -0.2919313609600067, -0.005360421258956194, 0.03688468411564827, -0.4405086040496826, 0.9700378775596619, -0.06691820919513702, 1.0168070793151855, 0.2927560806274414, 0.600490927696228, 1.1306169033050537, -0.10616811364889145, -0.6498863101005554, 0.31366342306137085, -0.3723007142543793, -0.6810106039047241, 0.05935468152165413, -0.2780824899673462, -1.0664902925491333, 0.147264763712883, -0.037352193146944046, -0.8949920535087585, 0.7198962569236755, 0.07723899185657501, -0.07535205036401749, 0.4274243712425232, -0.7728785276412964, 0.4558042883872986, -0.9045889973640442, -0.750476598739624, -0.15907298028469086, -0.5995264053344727, 0.2179478108882904, -0.06162267550826073, 0.22217559814453125, 0.020207693800330162, 0.17410722374916077, 0.517560601234436, -0.3210236430168152, 1.3814442157745361, -0.31301209330558777, -0.16122178733348846, 0.13371743261814117, 0.21297095715999603, 0.7414082884788513, -0.31353825330734253, 0.1436692327260971, 0.017029311507940292, -0.42962947487831116, -0.6247693300247192, -0.207275852560997, 0.2332509309053421, -0.6204267740249634, -0.2644970715045929, -0.3519979417324066, 0.0154164033010602, -0.16430848836898804, 0.3133906126022339, 0.17801298201084137, -0.026160404086112976, -0.2863750159740448, 0.16982263326644897, 0.7569679617881775, -0.1999644637107849, 0.6890721917152405, 0.7583159804344177, -0.1170140951871872, -0.1253129094839096, 0.8760929703712463, -0.2815144658088684, -0.04043759033083916, 0.32162290811538696, 0.13177670538425446, -0.21473680436611176, -1.0269132852554321, -0.33018940687179565, -0.07536610215902328, -0.505586564540863, -0.3556724786758423, -0.1787353754043579, -0.07583913952112198, -0.19095070660114288, -0.4612598121166229, 0.3799671232700348, -0.23798289895057678, -0.40522637963294983, -0.02796786092221737, 0.40224310755729675, 0.674816370010376, -0.3323563039302826, 0.4566028416156769, -0.8819154500961304, 0.6153058409690857, 0.7227449417114258, 0.23797117173671722, 0.0005652544205076993, -0.11691758781671524, -0.18752893805503845, 0.18107417225837708, -0.5088306069374084, -0.7610904574394226, 0.7259611487388611, -0.1756337583065033, 0.6581891179084778, 1.0787724256515503, -0.027146656066179276, 0.5457507967948914, -0.18171089887619019, 0.804233968257904, 0.7371218204498291, -0.7041261792182922, 0.5243030190467834, -0.31208500266075134, -0.35221293568611145, 0.5823195576667786, 0.393555223941803, -0.43347328901290894, -0.38756340742111206, -0.5534034371376038, -0.7343288660049438, 0.6738338470458984, 0.2735697627067566, 0.2392464131116867, 0.17442192137241364, 0.0461210273206234, 0.4581698179244995, 0.5135214328765869, -0.8062441349029541, -0.21233083307743073, -0.41295889019966125, -0.13436684012413025, 0.16494497656822205, -0.4569161832332611, -0.19424796104431152, 0.08852558583021164, 0.2520444393157959, -0.06868933141231537, 0.174357607960701, -0.31794220209121704, -0.4709264934062958, -0.26710423827171326, 0.15316179394721985, 0.2959918677806854, 0.8029325008392334, -0.28009721636772156, 0.05668956786394119, -0.4680686891078949, -0.7647712230682373, -0.08112319558858871, 0.5311974287033081, -0.567202091217041, -0.023927925154566765, 0.24934302270412445, 0.13924813270568848, 0.14434152841567993, -0.7097391486167908, 0.576880156993866, -0.11934305727481842, -0.04771570861339569, -0.24202002584934235, 0.18838851153850555, -0.6012833118438721, 0.29877254366874695, 0.5862873196601868, 0.21269652247428894, 0.794821560382843, -0.6234735250473022, 0.06741293519735336, 0.39195388555526733, -0.3589398264884949, -0.21620610356330872, 0.42140549421310425, 0.45865246653556824, -0.42168128490448, 0.8722330927848816, -0.16448739171028137, -0.6649168729782104, 0.8808185458183289, 0.6999136209487915, 0.9406013488769531, -0.22263894975185394, 0.13203413784503937, -0.17070116102695465, 0.4299831688404083, 0.09581699967384338, 0.4302721619606018, -0.5025381445884705, -1.0772769451141357, -0.08672739565372467, -0.6737513542175293, -0.4076572358608246, 0.3846282958984375, -0.8891474008560181, 0.5018745064735413, -0.3576712906360626, 0.11567051708698273, 0.31084585189819336, -0.03693152219057083, -0.6714271903038025, 0.0809546634554863, 0.3845657408237457, 0.5340672731399536, -0.8389388918876648, 0.37611913681030273, 0.34646064043045044, -0.5804834365844727, 0.020342297852039337, -0.11926501244306564, 0.02728160098195076, -1.2440400123596191, 0.688275933265686, 0.45666438341140747, -0.38143423199653625, -0.3431236743927002, -1.1898720264434814, -0.3144429922103882, 0.7051824331283569, 0.10978996008634567, -0.7972438931465149, 0.050705455243587494, 0.1621750146150589, 0.2466253936290741, -0.008795141242444515, -0.023766210302710533, 0.44803664088249207, 0.7265381217002869, -0.30540770292282104, -0.4294183552265167, -0.18875253200531006, -0.2594450116157532, -0.26833096146583557, 0.380627304315567, -0.5435621738433838, 0.5976343750953674, 0.20404782891273499, -0.1919378638267517, 0.09723781049251556, -0.033342257142066956, 0.05141960829496384, 0.5955254435539246, 0.6809726357460022, 0.8141353726387024, 0.7978673577308655, -0.011913296766579151, 0.32545310258865356, -0.37866780161857605, 0.17633533477783203, 0.6347069144248962, -0.28568288683891296, 0.36034512519836426, 0.17795239388942719, -0.07229636609554291, 0.9477155208587646, 0.6797747611999512, -0.7070419788360596, 0.8676886558532715, 0.3227415382862091, -0.15624836087226868, -0.5347510576248169, -0.019553853198885918, -0.32890763878822327, 0.7156673669815063, 0.7627699971199036, -0.7198939323425293, -0.14277711510658264, 0.1192023828625679, -0.15119530260562897, 0.05994468927383423, -0.5632127523422241, 0.8422953486442566, -0.028442587703466415, 0.015269861556589603, 0.35971808433532715, 0.09576282650232315, 0.7982537746429443, -0.5804393887519836, -0.42939215898513794, 0.055713504552841187, 0.26910945773124695, -0.3019067943096161, -0.46352657675743103, -0.08202935010194778, 0.08033094555139542, -0.19715796411037445, -0.5829181671142578, 1.1890275478363037, 0.07453496754169464, -0.5178096294403076, 0.501941442489624, 0.4955574870109558, -0.07042010128498077, 0.1791958510875702, -1.0053303241729736, -0.3023967444896698, 0.10432204604148865, 0.05711609870195389, 0.23498380184173584, 0.5202230215072632, 0.056317612528800964, 0.5003666281700134, 1.069649577140808, -0.15516197681427002, 0.06625514477491379, 0.2642787992954254, 0.8917543292045593, -0.8424108028411865, -0.7866837978363037, -0.7360435724258423, 0.4659324586391449, -0.5968065857887268, 0.04956665635108948, 0.855735182762146, 0.6817180514335632, 0.9144191145896912, 0.08263766765594482, 0.8421819806098938, -0.024206023663282394, 0.3964817523956299, -0.5223190784454346, 0.7150949239730835, -0.49336007237434387, 0.37301498651504517, -0.11483753472566605, -0.613574743270874, -0.16389741003513336, 0.37152615189552307, 0.13548748195171356, -0.016894401982426643, 0.15479065477848053, 0.7243025302886963, -0.49208423495292664, 0.3444708585739136, 0.3404407203197479, 0.2303457260131836, 0.018577132374048233, -0.03254395350813866, 1.1875275373458862, 0.035160429775714874, 0.5839861631393433, -0.345537930727005, -0.18970227241516113, -0.9316574931144714, -0.7323443293571472, -0.8810449838638306, -0.16186390817165375, -0.023296628147363663, -0.3625860810279846, 0.08003581315279007, 0.6125123500823975, 0.7186437845230103, -1.1005113124847412, -0.2096938192844391, -0.1713915765285492, 0.17922037839889526, -0.6447668671607971, -0.2799752354621887, 0.23465800285339355, -0.4690946638584137, -0.4741828441619873, 0.3741053342819214, 0.22614891827106476, 0.5456492304801941, -0.14179816842079163, 0.522418200969696, -0.054471127688884735, 0.0690600797533989, 0.6118090152740479, 0.22843500971794128, -0.48977985978126526, -0.16363416612148285, -0.03514330834150314, 0.10535785555839539, -0.1424027383327484, 0.9578981399536133, -0.7051836252212524, 0.7719997763633728, 0.4771379828453064, 0.339816689491272, 0.5531914830207825, 0.19503183662891388, 0.31031209230422974, -0.6617071032524109, 0.0959608182311058, 0.5769862532615662, 0.49515995383262634, 0.1800180971622467, -0.42816025018692017, 0.2540596127510071, 0.22786211967468262, -0.4148680567741394, -0.7992360591888428, 0.3322281837463379, -0.8262357711791992, -0.876319944858551, 0.6138684153556824, 0.1278783679008484, -0.08648383617401123, -1.0158042907714844, -0.018417585641145706, -0.2815295457839966, -0.4003361463546753, 1.1664713621139526, 0.3710663616657257, -0.240006685256958, 0.2045481950044632, -0.38882362842559814, 0.268540620803833, -0.174683079123497, -0.5413845777511597, 0.06898052990436554, 0.6340773105621338, 0.017990265041589737, 0.3719651997089386, -0.00684869010001421, 0.14332643151283264, 0.5177082419395447, -0.18065287172794342, -0.21299207210540771, -0.005594185087829828, 0.01527926791459322, -0.23715147376060486, 0.14060285687446594, -0.11239423602819443, -0.3238731324672699 ]