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.19592v1
http://arxiv.org/pdf/2405.19592v1
Why Larger Language Models Do In-context Learning Differently?
2024-05-30T01:11:35
2024-05-30T01:11:35
Zhenmei Shi, Junyi Wei, Zhuoyan Xu, Yingyu Liang
cs.LG
cs.LG, cs.AI, cs.CL
Large language models (LLM) have emerged as a powerful tool for AI, with the key ability of in-context learning (ICL), where they can perform well on unseen tasks based on a brief series of task examples without necessitating any adjustments to the model parameters. One recent interesting mysterious observation is that models of different scales may have different ICL behaviors: larger models tend to be more sensitive to noise in the test context. This work studies this observation theoretically aiming to improve the understanding of LLM and ICL. We analyze two stylized settings: (1) linear regression with one-layer single-head linear transformers and (2) parity classification with two-layer multiple attention heads transformers (non-linear data and non-linear model). In both settings, we give closed-form optimal solutions and find that smaller models emphasize important hidden features while larger ones cover more hidden features; thus, smaller models are more robust to noise while larger ones are more easily distracted, leading to different ICL behaviors. This sheds light on where transformers pay attention to and how that affects ICL. Preliminary experimental results on large base and chat models provide positive support for our analysis.
[ -0.5186092257499695, -0.7529094219207764, 0.47691720724105835, 0.2173607349395752, -0.03383397310972214, -0.074406199157238, -0.6106183528900146, -0.7248597741127014, -0.4099965989589691, 0.2877681255340576, -0.5479204058647156, -0.06953254342079163, -0.6089572310447693, 0.04610053822398186, -0.4305494427680969, 1.100140929222107, 0.2012052983045578, 0.1684156060218811, -0.3591808080673218, -0.3481510281562805, -0.447006493806839, -0.6164314150810242, -0.8315873146057129, -0.6217736005783081, 0.6763142943382263, 0.33489176630973816, 0.6650581955909729, 0.52927565574646, 0.5584356188774109, 0.2503352761268616, -0.28492841124534607, -0.11589710414409637, -0.5819079875946045, -0.08060923218727112, 0.044379137456417084, -0.4977322220802307, -0.06923496723175049, 0.11964590847492218, 0.7134786248207092, 0.9264525771141052, 0.21842439472675323, 0.37079161405563354, 0.43520066142082214, 0.5356265902519226, -0.5216584801673889, 0.5353396534919739, -0.6532995104789734, -0.048195380717515945, 0.04204878211021423, 0.11753959208726883, -0.753720223903656, 0.19540423154830933, 0.33072206377983093, -0.289557546377182, 0.07147546857595444, 0.026335636153817177, 0.8309869170188904, 0.38362956047058105, -0.604847252368927, -0.2664561867713928, -0.9087852239608765, 1.105438470840454, -0.7430472373962402, 0.5331000685691833, 0.33399316668510437, 0.138276144862175, 0.25291311740875244, -0.5324311256408691, -0.21711640059947968, -0.5191120505332947, -0.3079673647880554, -0.27313536405563354, -0.1871798187494278, -0.07965240627527237, 0.6216645240783691, 0.1426282376050949, -0.13931825757026672, 0.5484729409217834, -0.2467167228460312, 0.07009749114513397, 0.482124000787735, 0.03875543549656868, 0.1096784770488739, 0.2765709161758423, -0.3256908655166626, -0.22136268019676208, -0.9368009567260742, 0.5738649368286133, 0.01777922734618187, 0.5378236174583435, -0.5065236687660217, 0.14521639049053192, 0.0969935953617096, 0.5499526858329773, 0.4482620656490326, -0.5335348844528198, 0.21014940738677979, 0.08480273187160492, -0.23462308943271637, -0.037728648632764816, 0.4902797043323517, 0.05913731828331947, 0.4007287621498108, -0.2031528651714325, -0.4418381154537201, -0.25150054693222046, 0.08063358813524246, -0.7927840948104858, -0.015760375186800957, -0.012403636239469051, -0.7074077725410461, -0.2704133689403534, -0.055164143443107605, -0.39291709661483765, -0.39422935247421265, -0.8719658255577087, 0.6879356503486633, -0.2296503484249115, -0.1966153383255005, -0.17383500933647156, 0.2424410879611969, 0.5626891255378723, 0.2828823924064636, -0.9451941847801208, 0.4377586245536804, 0.8166607022285461, 0.6935750842094421, -0.16392938792705536, -0.25840482115745544, -0.5828285217285156, -0.09484145045280457, -0.4239179491996765, 0.6355456113815308, -0.5166739225387573, -0.06851296126842499, -0.0924142599105835, -0.21454177796840668, -0.37679678201675415, -0.7933641076087952, 0.1452922224998474, -0.45195454359054565, 0.16120298206806183, -0.5052006840705872, -0.2743397057056427, -0.12787365913391113, 0.0514281764626503, -0.4760245084762573, 0.9148964881896973, 0.10739818215370178, -0.8400671482086182, 0.5244326591491699, -0.5561701655387878, -0.39516884088516235, -0.10056465119123459, -0.4558999538421631, -0.49698498845100403, 0.3928898870944977, 0.14797185361385345, 0.4740852415561676, -0.3736877143383026, 0.1850665658712387, -0.28834766149520874, -0.6350168585777283, 0.6124668717384338, -0.5796370506286621, 0.7419094443321228, -0.01644936390221119, -0.501419723033905, 0.19805443286895752, -0.4740668535232544, -0.21440695226192474, 0.017688991501927376, -0.4174862802028656, -0.34679412841796875, 0.2118878960609436, -0.004343037493526936, 0.4557425379753113, -0.05502687394618988, -0.35257503390312195, -0.015849968418478966, -0.36280032992362976, 0.5287591814994812, 0.7675257921218872, -0.12500318884849548, 0.6021448373794556, -0.4199661612510681, 0.3051794767379761, 0.31158336997032166, 0.18843328952789307, 0.04720887169241905, -0.20879606902599335, -0.9199244379997253, -0.4490489959716797, 0.20277151465415955, 0.24804221093654633, -0.3277696371078491, 0.12479206919670105, -0.26961085200309753, -0.2137661874294281, -0.3652661144733429, 0.08937834948301315, 0.4577758312225342, 0.6286929249763489, 0.2518646717071533, -0.06457777321338654, -0.2943921387195587, -1.0322909355163574, -0.11795792728662491, -0.16170482337474823, -0.12970437109470367, 0.5988713502883911, 0.4637163281440735, -0.19575177133083344, 0.8753084540367126, -0.21470440924167633, -0.2499467432498932, -0.5692193508148193, -0.17559397220611572, 0.13402782380580902, 0.22118595242500305, 0.8102315664291382, -0.8275085687637329, -0.8639980554580688, 0.10219041258096695, -0.5227091908454895, -0.1211184486746788, -0.23015102744102478, 0.3543395698070526, 0.12683044373989105, 0.9184637069702148, -0.45466840267181396, 0.3624826669692993, 0.3731563985347748, -0.03215261176228523, 0.285137414932251, -0.030723663046956062, -0.4259830117225647, -0.8577405214309692, -0.1408924162387848, 0.21390950679779053, -0.11264639347791672, -0.8494808673858643, 0.1105293333530426, 0.2174094170331955, 0.09600638598203659, -0.4584038257598877, 0.44794413447380066, -0.42219334840774536, -0.29643160104751587, -0.3086158335208893, -0.0007154738414101303, -0.15111032128334045, 0.6282946467399597, -0.09029029309749603, 0.9386094212532043, 0.651324450969696, -0.6915150284767151, -0.31030330061912537, 0.038864247500896454, -0.4356972575187683, 0.23901806771755219, -0.6107951402664185, 0.1648554652929306, -0.35884401202201843, 0.3079022169113159, -0.9993184208869934, -0.1804865300655365, -0.19407278299331665, -0.15769386291503906, 0.6084502935409546, -0.018179336562752724, -0.5265753269195557, -0.05031353980302811, -0.15760169923305511, 0.4598666727542877, 0.7288360595703125, -0.7721141576766968, 0.49542510509490967, 0.44683411717414856, 0.05296764895319939, -0.49204960465431213, -0.7779132127761841, -0.2411959022283554, -0.6485779285430908, -0.3733775317668915, 0.05441773310303688, -0.2321491688489914, -0.727420449256897, -0.492051362991333, -0.15830741822719574, -0.19739748537540436, 0.2136726975440979, 0.357161283493042, 0.04964742064476013, -0.5613514184951782, 0.3168203830718994, -0.2674809396266937, 0.034451574087142944, 0.19188006222248077, -0.021965501829981804, 0.662840723991394, -0.2994109094142914, -0.23426596820354462, -0.5821806192398071, 0.1600702702999115, 0.7274964451789856, -0.21368195116519928, 0.9322558641433716, 0.5979447960853577, -0.1567295640707016, -0.3697965741157532, -0.49663466215133667, -0.44932103157043457, -0.4942159056663513, 0.3907009959220886, -0.4259050786495209, -0.9386231899261475, 0.6135776042938232, 0.11112836748361588, 0.0955628901720047, 0.33843448758125305, 0.7198553681373596, -0.1297500878572464, 1.2329691648483276, 0.752528727054596, -0.2867961525917053, 0.6566644310951233, -0.19387215375900269, 0.3930862843990326, -1.1041520833969116, -0.0875878855586052, -0.5543192028999329, -0.5176466107368469, -0.5592067241668701, -0.06590992212295532, 0.2951194643974304, 0.036050520837306976, -0.4652584493160248, 0.11844699829816818, -0.1910986751317978, 0.5999795198440552, 0.35508471727371216, 0.131622314453125, 0.16038307547569275, 0.12230761349201202, 0.06466902047395706, -0.12077919393777847, -0.663475513458252, -0.24686510860919952, 0.8775394558906555, 0.6417557597160339, 0.8353813290596008, 0.08491449058055878, 0.2873500883579254, -0.10508668422698975, 0.39716872572898865, -0.9126436710357666, 0.3643867075443268, -0.1631811261177063, -0.48038414120674133, -0.17937085032463074, -0.31427979469299316, -0.9154824018478394, 0.535732090473175, -0.04215091094374657, -0.9018623232841492, 0.240890234708786, 0.12721557915210724, -0.2802399694919586, 0.31984761357307434, -0.8158493638038635, 0.6088681817054749, -0.05312900245189667, -0.19081653654575348, -0.11247796565294266, -0.6904807686805725, 0.1536916047334671, -0.20805321633815765, 0.41936928033828735, 0.031743962317705154, 0.10626538097858429, 0.26960012316703796, 0.06608369946479797, 1.2158122062683105, 0.005049717612564564, -0.16373693943023682, 0.15920090675354004, 0.09089706093072891, 0.5264610648155212, 0.11589821428060532, 0.06441916525363922, 0.17943459749221802, -0.3438277542591095, -0.2651391625404358, -0.3268028497695923, 0.760366678237915, -1.1113345623016357, -0.6242760419845581, -0.12602242827415466, -0.9376263618469238, -0.29614877700805664, -0.12725132703781128, 0.4416448175907135, 0.7562907338142395, 0.28144633769989014, 0.747016429901123, 1.0062633752822876, -0.32658281922340393, 0.6516183614730835, 0.559052050113678, -0.10589625686407089, 0.3974056541919708, 0.5946917533874512, 0.3041367530822754, 0.6947745680809021, 0.6513473987579346, 0.32932978868484497, -0.11189347505569458, -0.4291207194328308, 0.020101072266697884, 0.2347697913646698, -0.7660974264144897, 0.08070458471775055, -0.6469511389732361, -0.4750906527042389, -0.40204179286956787, -0.01517358049750328, -0.2934950292110443, -0.1234457939863205, -0.3540738523006439, 0.01990032196044922, 0.04459076002240181, 0.7731826305389404, 0.14650221168994904, 0.4671381711959839, -0.2010534703731537, 0.10506252199411392, 0.38131579756736755, 0.3293093144893646, 0.3271041214466095, -0.9180948138237, -0.4236987233161926, -0.055696144700050354, -0.2142544984817505, -0.41237446665763855, 0.20882324874401093, 0.344453364610672, 0.43928518891334534, 0.5053099393844604, -0.11100565642118454, 0.6701093912124634, -0.5104631781578064, 0.5775651931762695, -0.24815604090690613, -0.8552822470664978, 0.04058035835623741, -0.3725300133228302, 0.5409441590309143, 0.2699509263038635, 0.12172951549291611, -0.46232175827026367, -0.3653997480869293, -0.5289222598075867, -0.6099138259887695, 0.8634160161018372, 0.010287920944392681, 0.30867186188697815, 0.17342892289161682, 0.49127867817878723, 0.27142077684402466, 0.16039662063121796, -1.2620052099227905, -0.23970526456832886, 0.15542428195476532, -0.1740472912788391, -0.24021928012371063, -0.3460884094238281, -0.04424368590116501, -0.32523179054260254, 0.25522875785827637, -0.16627013683319092, 0.3097991347312927, -0.07672900706529617, -0.2966305911540985, -0.08760838210582733, 0.20919297635555267, 0.5667784214019775, 0.7685416340827942, -0.06794138252735138, 0.17255046963691711, 0.31789180636405945, -0.2677796185016632, -0.16963566839694977, -0.3670448660850525, -0.11298324912786484, -0.2327328473329544, 0.8597153425216675, 1.167046308517456, 0.4522654116153717, -0.6022987365722656, 0.6765826344490051, -0.07653088867664337, -0.17755824327468872, -0.5061883330345154, 0.09395764023065567, -0.005163734778761864, 0.43683961033821106, 0.29128989577293396, 0.0881640687584877, -0.08603774011135101, -0.6452884078025818, -0.05281776934862137, 0.5482620000839233, -0.5743305087089539, -0.40496528148651123, 0.47720620036125183, -0.13754740357398987, -0.2900931239128113, 0.741415798664093, 0.04159722849726677, -0.3231610059738159, 0.825099527835846, 0.7395209670066833, 0.7616416215896606, 0.06767874956130981, -0.04350949451327324, 0.09519360959529877, 0.3225049376487732, 0.07310432940721512, -0.1565430611371994, -0.1899479180574417, -0.7539749145507812, -0.5168609619140625, -0.47089889645576477, -0.3168589472770691, 0.5488003492355347, -0.696634829044342, 0.19148705899715424, -0.49342286586761475, 0.08766200393438339, 0.0011771273566409945, -0.2699294090270996, -0.8027846813201904, 0.06874004006385803, 0.2342878133058548, 0.5535798668861389, -0.9245413541793823, 0.9766208529472351, 0.5198909640312195, -0.24659939110279083, -1.0458405017852783, 0.3922169804573059, -0.04911517724394798, -0.7196852564811707, 0.9491525888442993, 0.5125793814659119, 0.08957329392433167, -0.05230855941772461, -0.5972527265548706, -1.124986171722412, 0.9120959639549255, 0.4198743999004364, -0.48188793659210205, -0.034844864159822464, 0.3202051520347595, 0.759607195854187, -0.662359893321991, 0.2529442608356476, 0.4697638750076294, 0.14874278008937836, -0.18234026432037354, -1.1187115907669067, -0.31700244545936584, 0.18459950387477875, 0.08878602087497711, 0.2197730988264084, -1.0910650491714478, 1.3393988609313965, -0.03234897181391716, -0.13018901646137238, -0.18441954255104065, 0.34557682275772095, 0.13736434280872345, 0.24979504942893982, 0.6388218998908997, 0.12191702425479889, 0.34794336557388306, 0.0013999453512951732, 1.210481882095337, -0.17426250874996185, 0.4117998480796814, 1.166089653968811, -0.33685535192489624, 0.8605725169181824, 0.46121060848236084, -0.09358339756727219, 0.5350258946418762, 0.6723601222038269, 0.14265495538711548, 0.3973352909088135, 0.06580191850662231, -0.04225790128111839, -0.3130168914794922, -0.04213200882077217, -0.12126266956329346, 0.6362240314483643, 0.4468165636062622, -0.3405492603778839, -0.17991302907466888, 0.3835699260234833, -0.02788425423204899, -0.05457623675465584, -0.4466066062450409, 0.9214568734169006, 0.2118709236383438, -0.49354037642478943, 0.42229145765304565, -0.19676515460014343, 0.551634669303894, -0.4158029854297638, 0.33957216143608093, -0.245521679520607, 0.5654829144477844, 0.06679157167673111, -0.48693281412124634, 0.10473685711622238, -0.21879540383815765, -0.4132271707057953, -0.22388356924057007, 0.5127020478248596, -0.24595031142234802, -0.3726480305194855, 0.5294270515441895, 0.2881839871406555, 0.005993905942887068, -0.1757645159959793, -0.7488718628883362, 0.20054899156093597, 0.06433790922164917, -0.37865689396858215, 0.7895475029945374, 0.38229700922966003, -0.3476355969905853, 0.8683831691741943, 0.39932340383529663, -0.13796478509902954, 0.17582589387893677, 0.24330203235149384, 0.6707732081413269, -0.2540523409843445, -0.3400576412677765, -0.9206638932228088, 0.3077583611011505, 0.09953412413597107, -0.40440189838409424, 0.7377448081970215, 0.3939920961856842, 1.0224802494049072, -0.23737461864948273, 0.42134106159210205, 0.16976408660411835, 0.5765268206596375, -0.44786179065704346, 0.42306962609291077, -0.5260095596313477, 0.42419782280921936, -0.019892172887921333, -0.9731554388999939, -0.2536579370498657, 0.6092809438705444, -0.3140524625778198, 0.23567798733711243, 0.7608029246330261, 0.6306487321853638, -0.2283233106136322, -0.17393875122070312, 0.4404061734676361, 0.5529570579528809, 0.41195109486579895, 0.4852011501789093, 0.8681405782699585, -0.20238760113716125, 0.3293284475803375, -0.37143850326538086, -0.08613278716802597, -0.24391064047813416, -0.4835025668144226, -1.2444519996643066, -0.6157686114311218, -0.2638201415538788, -0.03599933534860611, -0.394622802734375, 1.0644611120224, 0.8865154385566711, -0.8334813714027405, -0.4655350148677826, 0.015864403918385506, -0.07296305149793625, -0.1115623190999031, -0.26214396953582764, 0.40311357378959656, -0.5550363659858704, -0.8393540382385254, 0.34866899251937866, 0.36812058091163635, -0.039736468344926834, -0.2742329239845276, 0.09646013379096985, -0.03604591637849808, 0.14912566542625427, 0.7588163614273071, 0.1641521006822586, -0.895179271697998, -0.6001803874969482, -0.1375385969877243, -0.3704063296318054, 0.24646568298339844, 0.8190966248512268, -0.7891518473625183, 0.006808971054852009, 0.28163084387779236, 0.5648838877677917, 0.399775892496109, -0.2153765708208084, 0.2925822138786316, -0.9462401866912842, 0.6591524481773376, 0.009505935944616795, 0.30429866909980774, 0.2543787658214569, -0.4953669011592865, 0.30792921781539917, -0.10096107423305511, -0.7395837903022766, -0.9421249628067017, 0.31106695532798767, -0.7278801202774048, -0.4759073555469513, 1.3308295011520386, 0.1164645254611969, -0.03301079198718071, 0.012850062921643257, -0.21218159794807434, -0.038028981536626816, -0.1637834757566452, 0.9511803984642029, 0.8117027878761292, -0.3864852786064148, -0.28321173787117004, -0.7978702187538147, 0.5529099702835083, 0.47315844893455505, -0.409022718667984, 0.05177266150712967, 0.09753330796957016, 0.35086584091186523, 0.006264411378651857, 0.1969352811574936, -0.003746116068214178, -0.027687571942806244, -0.2543656826019287, -0.49731776118278503, 0.36745455861091614, -0.4558703899383545, -0.5605566501617432, 0.15517394244670868, 0.4023624062538147, 0.16603592038154602 ]
http://arxiv.org/abs/2405.19575v1
http://arxiv.org/pdf/2405.19575v1
A Deep Convolutional Neural Network-based Model for Aspect and Polarity Classification in Hausa Movie Reviews
2024-05-29T23:45:42
2024-05-29T23:45:42
Umar Ibrahim, Abubakar Yakubu Zandam, Fatima Muhammad Adam, Aminu Musa
cs.CL
cs.CL, cs.AI
Aspect-based Sentiment Analysis (ABSA) is crucial for understanding sentiment nuances in text, especially across diverse languages and cultures. This paper introduces a novel Deep Convolutional Neural Network (CNN)-based model tailored for aspect and polarity classification in Hausa movie reviews, an underrepresented language in sentiment analysis research. A comprehensive Hausa ABSA dataset is created, filling a significant gap in resource availability. The dataset, preprocessed using sci-kit-learn for TF-IDF transformation, includes manually annotated aspect-level feature ontology words and sentiment polarity assignments. The proposed model combines CNNs with attention mechanisms for aspect-word prediction, leveraging contextual information and sentiment polarities. With 91% accuracy on aspect term extraction and 92% on sentiment polarity classification, the model outperforms traditional machine models, offering insights into specific aspects and sentiments. This study advances ABSA research, particularly in underrepresented languages, with implications for cross-cultural linguistic research.
[ -0.7085610032081604, -0.5475993752479553, 0.16159911453723907, 0.270563542842865, -0.7847757935523987, 0.19293950498104095, -0.10453037172555923, -0.40691977739334106, 0.5494560599327087, 0.5755267143249512, -0.514854907989502, -0.5859439373016357, -0.5456109046936035, -0.03258346766233444, -0.2525424063205719, 1.2063462734222412, 0.18090303242206573, 0.38678544759750366, -0.0382402203977108, -0.6143934726715088, -0.40353158116340637, -0.6433706283569336, -0.6275786757469177, -0.5503670573234558, 0.5998077392578125, 0.31949949264526367, 0.9690614938735962, -0.13733255863189697, 0.6776151061058044, 0.1289113610982895, -0.3768172562122345, 0.1854517012834549, -0.030159544199705124, 0.04625610634684563, -0.40249887108802795, -0.25557491183280945, -0.48139598965644836, 0.11375852674245834, 0.3955322504043579, 0.5068992972373962, 0.19940979778766632, 0.17192156612873077, 0.1326352208852768, 0.9150000214576721, -0.4759633243083954, 0.24318602681159973, -0.2905064821243286, 0.4595847427845001, -0.06853707879781723, 0.38822466135025024, 0.0692719891667366, -0.167399600148201, 0.2083767056465149, -0.27092257142066956, 0.20981615781784058, 0.01788157969713211, 0.7831225991249084, 0.26519060134887695, -0.2848000228404999, -0.1786838173866272, -0.6672080755233765, 0.7317529320716858, -0.7339320182800293, 0.3334420919418335, 0.25782492756843567, -0.10953684896230698, 0.13858497142791748, 0.024834586307406425, -0.87248694896698, -0.0721285417675972, -0.09376046806573868, 0.10093429684638977, -0.010760615579783916, -0.1461138129234314, -0.25519707798957825, 0.7342875599861145, -0.19254139065742493, 0.17205658555030823, -0.22581379115581512, 0.12325737625360489, 0.6729214191436768, -0.032479528337717056, 0.12942765653133392, -0.9670809507369995, -0.38222262263298035, 0.04771100729703903, -0.7726224660873413, 0.4221488833427429, 0.20286516845226288, 0.12660929560661316, -0.4450267553329468, 0.725913405418396, -0.25657719373703003, 0.24264179170131683, -0.06529677659273148, 0.23541243374347687, 0.26308104395866394, -0.2106695920228958, -0.3454594314098358, -0.011484306305646896, 1.1272817850112915, 0.3895246982574463, 0.03862115368247032, 0.25948625802993774, -0.22460247576236725, -0.06630413979291916, 0.4852973222732544, -0.5446016192436218, 0.08435665816068649, 0.13136708736419678, -0.5776245594024658, -0.7014541029930115, 0.018343564122915268, -1.0609729290008545, -0.9357024431228638, -0.33027392625808716, 0.14399324357509613, -0.2379496991634369, -0.18679660558700562, -0.38934892416000366, 0.24008886516094208, 0.19106414914131165, 0.29409900307655334, -0.38421058654785156, -0.17288534343242645, 0.8830239772796631, 0.8013107776641846, -0.3470093011856079, -0.11319723725318909, -0.14309732615947723, -0.5468112230300903, -0.29220619797706604, 0.6808501482009888, -0.5566039085388184, -0.30212053656578064, 0.11419862508773804, -0.09892629832029343, 0.3260192275047302, -0.2838517725467682, 0.6186559796333313, -0.67728590965271, 0.13810531795024872, 0.06783072650432587, -0.28819507360458374, -0.8502843976020813, 0.6522961854934692, -0.7491869330406189, 0.5328097343444824, 0.14654327929019928, -0.6192405819892883, 0.23013731837272644, -0.46383002400398254, -0.5791138410568237, -0.14937864243984222, -0.306308388710022, -0.8520368933677673, 0.4979666471481323, 0.5217949748039246, 0.47843387722969055, -0.4617062509059906, 0.4095197021961212, -0.41167259216308594, -0.07202247530221939, 0.781478762626648, -0.47259876132011414, 0.5999249219894409, 0.32888761162757874, -0.42022180557250977, 0.22285760939121246, -0.4391152858734131, -0.3948275148868561, -0.18844106793403625, -0.14046581089496613, -0.28630468249320984, 0.06352072209119797, -0.06426724046468735, 0.2358158826828003, 0.24611032009124756, -0.7373736500740051, -0.046622324734926224, -0.5471681356430054, 0.24457958340644836, 0.2658355236053467, 0.16881898045539856, 0.6297498345375061, 0.22108948230743408, 0.5144732594490051, 0.5631197690963745, 0.37477415800094604, 0.026066020131111145, -0.5461899638175964, -1.0695133209228516, 0.09595736861228943, -0.12190485745668411, 0.5114307403564453, -0.6663293242454529, 0.5608565807342529, -0.18176357448101044, -0.46910360455513, -0.6389998197555542, 0.3739393651485443, 0.4493764638900757, 0.3221571743488312, 0.17580720782279968, -0.6493664383888245, -0.5534154176712036, -1.0214232206344604, 0.23092445731163025, -0.4076756238937378, 0.17839153110980988, 0.4130246639251709, 0.3098534047603607, -0.20817188918590546, 1.0226616859436035, -0.3521519601345062, -0.967189371585846, -0.6264317631721497, 0.35248270630836487, 0.48598381876945496, 0.3046649694442749, 0.21069948375225067, -1.01211678981781, -0.27846476435661316, 0.2566063106060028, -1.0625559091567993, 0.3587146997451782, 0.1687556505203247, 0.005294987000524998, 0.27949342131614685, 0.22375458478927612, -0.5388371348381042, 0.5959687232971191, 0.5046505331993103, -0.32264474034309387, 0.2389543056488037, 0.0794750452041626, 0.14091110229492188, -1.3337801694869995, -0.14005140960216522, 0.27473193407058716, 0.08195751160383224, -0.1984845995903015, -0.039165347814559937, -0.2515256404876709, -0.518433690071106, -0.7262831926345825, 0.33268803358078003, -0.08040124922990799, -0.017100952565670013, -0.6985714435577393, -0.19249612092971802, 0.4615408480167389, 0.8002419471740723, 0.3839748501777649, 0.2873041331768036, 0.3763396739959717, -0.2308654636144638, 0.49623122811317444, 0.28038573265075684, -0.35509487986564636, 0.5208836793899536, -0.4346866309642792, 0.07655607163906097, -0.12182921916246414, 0.15014642477035522, -0.48050904273986816, -0.12120921909809113, 0.32508426904678345, -0.4164179265499115, 0.24777205288410187, -0.3202471137046814, 0.007458199746906757, -0.2900671362876892, -0.2490016222000122, 0.6410930156707764, 0.39160189032554626, -0.30662229657173157, 0.8584005832672119, 0.5860772728919983, -0.24112887680530548, -0.7858899235725403, -0.3730921149253845, 0.038668442517519, -0.12485559284687042, -0.29978519678115845, 0.21788205206394196, 0.3190600275993347, -0.29919201135635376, -0.06256771832704544, 0.321505606174469, -0.12235746532678604, -0.053256817162036896, 0.4693189859390259, 0.18876662850379944, -0.27084431052207947, -0.12232745438814163, 0.1191972866654396, 0.09935496747493744, 0.20947808027267456, 0.04703908786177635, 0.5685808658599854, -0.5132905840873718, -0.025725634768605232, -0.4384978115558624, 0.5128185749053955, 0.695845365524292, -0.4627664089202881, 0.46237799525260925, 0.7647413015365601, -0.39821621775627136, 0.048069555312395096, -0.35461509227752686, -0.052983567118644714, -0.28930848836898804, 0.7174108624458313, -0.039955589920282364, -0.5684379935264587, 0.5014842748641968, 0.5473397970199585, -0.2574763298034668, 0.3956088125705719, 0.4407309889793396, -0.40009427070617676, 0.7676941752433777, 0.8344639539718628, -0.5210532546043396, 0.5846547484397888, -0.39474523067474365, 0.5047423839569092, -1.048952579498291, -0.3336672782897949, -0.31582409143447876, -0.3269481658935547, -0.4849521815776825, -0.20171178877353668, 0.36902305483818054, 0.18181222677230835, -0.08727873861789703, 0.10135389119386673, -0.3422597646713257, 0.35280123353004456, 0.33770594000816345, 0.3253006339073181, 0.1371200829744339, 0.09367847442626953, 0.3472200930118561, 0.01614619605243206, -0.32490068674087524, -0.3555343747138977, 0.8530929684638977, 0.7477593421936035, 0.7574620246887207, 0.09321197122335434, 0.4075993001461029, 0.6519505381584167, 0.7403619885444641, -1.0659196376800537, 0.37427812814712524, -0.7294580340385437, -0.5402169227600098, -0.25267699360847473, 0.020600005984306335, -0.34867116808891296, 0.1664341688156128, -0.30436643958091736, -0.406817764043808, 0.737456738948822, -0.1958816796541214, -0.5345658659934998, 0.4380892813205719, -0.3681175708770752, 0.7092931866645813, -0.1284499168395996, -0.2188940793275833, -0.4575123190879822, -0.3273456394672394, 0.2713039219379425, -0.15266074240207672, 0.3229631185531616, -0.4176276624202728, 0.3243873417377472, 0.8659387230873108, -0.32937029004096985, 1.1736171245574951, -0.10351314395666122, -0.008193598128855228, 0.5693616271018982, 0.2746914327144623, 0.14542575180530548, 0.6972994208335876, -0.19044101238250732, 0.8736763596534729, -0.5996364951133728, -0.1529812067747116, -0.6060549020767212, 0.7621303200721741, -1.061556339263916, -0.6947326064109802, -0.46623694896698, -0.41516053676605225, -0.032728809863328934, 0.10386090725660324, 0.3041367530822754, 0.2795441746711731, -0.2443266659975052, 0.14836040139198303, 0.3428230881690979, -0.15588872134685516, 0.6234912276268005, 0.41751551628112793, -0.3755932152271271, -0.8706991076469421, 1.0676579475402832, -0.010852632112801075, -0.3547373116016388, 0.3286050260066986, 0.23230722546577454, -0.05664631351828575, -0.5468397736549377, -0.7498329281806946, 0.1229432076215744, -0.7015519738197327, -0.40107885003089905, -0.5110169053077698, -0.4569702446460724, -0.4263627827167511, -0.18187052011489868, -0.7222621440887451, -0.031677957624197006, -0.34319454431533813, -0.10587769001722336, 0.16705377399921417, 0.9181054830551147, 0.33931246399879456, 0.3650313913822174, -0.7035780549049377, 0.1312745213508606, 0.12126501649618149, 0.26732397079467773, -0.044267941266298294, -0.6231788992881775, -0.3893531858921051, 0.016311289742588997, -0.4120117425918579, -0.7342813611030579, 0.6891362071037292, 0.23292659223079681, 0.00007465128146577626, 0.4892643094062805, -0.009935501031577587, -0.05665525421500206, 0.0892539992928505, 0.9571344256401062, 0.29330122470855713, -0.7504084706306458, 0.5573082566261292, -0.05720305070281029, 0.35662394762039185, 0.5264811515808105, 0.42128583788871765, -0.39884018898010254, -0.2966805100440979, -0.30848729610443115, -0.6890755295753479, 0.6902620196342468, 0.3094937801361084, 0.44684332609176636, 0.07772959768772125, 0.24363520741462708, 0.4945746064186096, 0.4006478190422058, -0.9340426921844482, -0.14573274552822113, -0.6298347115516663, -0.30689916014671326, -0.22842206060886383, -0.42302486300468445, 0.13887280225753784, -0.35687246918678284, 0.7869153022766113, -0.1982399821281433, 0.07947124540805817, 0.2256208211183548, -0.08933942019939423, -0.017679421231150627, 0.5127674341201782, 0.18086226284503937, 0.23850494623184204, -0.32765933871269226, 0.12190819531679153, 0.09658218920230865, -0.6360121965408325, 0.2330777943134308, 0.14585073292255402, -0.5039838552474976, -0.005475286394357681, 0.2124958485364914, 1.0366801023483276, -0.06956330686807632, -0.1759130358695984, 0.5827974081039429, -0.11640699207782745, 0.45930132269859314, -0.8005693554878235, -0.20247693359851837, -0.37179577350616455, 0.25223949551582336, 0.3838779330253601, 0.32855507731437683, 0.143923819065094, -0.5377116799354553, 0.033741194754838943, 0.3028717041015625, -1.0596606731414795, -0.4444409906864166, 0.11500796675682068, 0.5645477175712585, -0.4072568118572235, 0.8233206868171692, -0.3039977252483368, -0.7036726474761963, 0.6779652833938599, -0.05919888615608215, 1.3212321996688843, -0.06520187109708786, 0.7049042582511902, 0.3340463936328888, 0.10234002768993378, 0.46845534443855286, 0.1185900866985321, -0.020680973306298256, -0.9553092122077942, -0.23496825993061066, -1.128620982170105, -0.5555675029754639, 0.18953374028205872, -0.5450553894042969, 0.2770930826663971, -0.5643025636672974, -0.21849313378334045, 0.029778974130749702, -0.23171894252300262, -0.5578444004058838, 0.5577091574668884, 0.559452474117279, 0.32869911193847656, -0.8447422981262207, 0.9659901857376099, 0.9226476550102234, -0.8305358290672302, -0.3624470829963684, -0.07262575626373291, -0.3061954975128174, -0.27788469195365906, 0.5450654029846191, 0.4963029623031616, -0.045016154646873474, -0.5196402668952942, -0.26125001907348633, -0.8265843391418457, 0.6142023801803589, -0.06233495473861694, -0.2958393394947052, 0.09249523282051086, 0.5215923190116882, 0.7598487734794617, -0.9516100883483887, 0.1445164531469345, 0.46040526032447815, 0.09790956974029541, -0.18232810497283936, -0.4173605740070343, -0.15253256261348724, -0.4036950170993805, -0.20111039280891418, -0.13161976635456085, -0.7164098024368286, 0.7405765056610107, -0.14405086636543274, 0.2996774911880493, -0.28682923316955566, 1.3673226833343506, 0.050031378865242004, 0.6428562998771667, 0.6233261227607727, 0.35813331604003906, 0.07512366026639938, -0.018832707777619362, 0.9183660745620728, -0.054044004529714584, 0.4420534670352936, 0.8634664416313171, -0.25372955203056335, 0.9761483669281006, 0.4853622615337372, 0.004292876925319433, 0.9368682503700256, 0.5631597638130188, 0.08630827069282532, 0.44135430455207825, -0.16461604833602905, -0.3982468843460083, -0.3424372375011444, -0.5121007561683655, 0.11023576557636261, 0.5966479778289795, 0.5585668683052063, -0.5870248079299927, -0.11198911815881729, 0.571168839931488, 0.06785853207111359, -0.15229375660419464, -0.6984090805053711, 0.8742058873176575, 0.6387099623680115, -1.0774160623550415, 0.19687782227993011, -0.020095953717827797, 0.7907012701034546, -0.20007243752479553, 0.11111804097890854, -0.6693102717399597, 0.42186057567596436, -0.39957961440086365, -1.1789950132369995, 0.4935332238674164, 0.1144753023982048, -0.6803228259086609, 0.36696523427963257, 0.5640923976898193, -0.34105560183525085, -0.8354161381721497, 0.3505977392196655, 0.001981446286663413, -0.028630094602704048, -0.36710429191589355, -0.7605859637260437, 0.05130908265709877, 0.17579799890518188, -0.32840579748153687, 0.05674414336681366, 0.16063754260540009, -0.5107810497283936, 0.4667133688926697, 0.2501712441444397, -0.20602956414222717, -0.2895272374153137, 0.3863598704338074, 0.6905314922332764, -0.7973464131355286, -0.6265575885772705, -0.7302603125572205, 0.3879810869693756, -0.09403445571660995, -0.46988916397094727, 0.3286663889884949, 0.35852235555648804, 0.5924098491668701, -0.15083858370780945, 0.6820083856582642, -0.11530564725399017, 0.17554660141468048, -0.5184850096702576, 1.0262916088104248, -0.4498032331466675, 0.26104360818862915, -0.0657404214143753, -1.096602439880371, -0.21709075570106506, 0.25534534454345703, -0.34764203429222107, -0.02468053437769413, 0.693979799747467, 0.7125638127326965, -0.07759436964988708, 0.32042497396469116, 0.14559777081012726, 0.20571471750736237, 0.4366176724433899, 0.2479785978794098, 0.6919258236885071, -0.413918673992157, 0.3362565338611603, -0.8699974417686462, -0.18379586935043335, -0.28801897168159485, -0.7853027582168579, -0.8535279035568237, -0.5032089948654175, -0.5612980723381042, -0.4916708767414093, -0.24031278491020203, 0.8248830437660217, 0.534247875213623, -1.201956868171692, -0.12579233944416046, -0.019436512142419815, 0.41421785950660706, -0.09492374956607819, -0.24754248559474945, 0.6321175694465637, -0.29156866669654846, -0.6823148131370544, 0.3502693176269531, 0.23412960767745972, 0.07600576430559158, -0.8972489833831787, -0.10533654689788818, -0.027956295758485794, 0.1302655190229416, 0.5731184482574463, 0.19455993175506592, -0.694243848323822, -0.12611214816570282, -0.25476548075675964, -0.0878177359700203, 0.11350787431001663, 0.8513365387916565, -0.5610488653182983, 0.35452985763549805, 0.649146318435669, 0.35197797417640686, 0.2705371677875519, -0.002015115926042199, 0.7176308631896973, -0.925078809261322, 0.2774052917957306, 0.34773293137550354, 0.6476039290428162, 0.6575658321380615, -0.6988475322723389, 0.2837178409099579, 0.1421889066696167, -0.3776065707206726, -0.39539530873298645, 0.1749129444360733, -1.2947537899017334, -0.1996348798274994, 1.1204942464828491, -0.3125038146972656, -0.7528225779533386, -0.10797223448753357, -0.2698493003845215, 0.21308110654354095, -0.4661776125431061, 0.96659255027771, 0.5990728735923767, -0.10719369351863861, -0.17999149858951569, 0.1803816556930542, 0.3871093988418579, 0.6691136956214905, -0.6056343913078308, -0.05579853430390358, 0.3387046754360199, 0.022802604362368584, 0.5346364974975586, 0.15056869387626648, -0.2818186581134796, 0.3255787193775177, -0.5684559941291809, 0.48462092876434326, -0.22724266350269318, -0.36436089873313904, -0.6211149096488953, 0.4619622528553009, -0.013842500746250153, -0.09568621218204498 ]
http://arxiv.org/abs/2405.19567v1
http://arxiv.org/pdf/2405.19567v1
Dr-LLaVA: Visual Instruction Tuning with Symbolic Clinical Grounding
2024-05-29T23:19:28
2024-05-29T23:19:28
Shenghuan Sun, Gregory M. Goldgof, Alexander Schubert, Zhiqing Sun, Thomas Hartvigsen, Atul J. Butte, Ahmed Alaa
cs.AI
cs.AI, cs.CL, cs.CV, cs.LG
Vision-Language Models (VLM) can support clinicians by analyzing medical images and engaging in natural language interactions to assist in diagnostic and treatment tasks. However, VLMs often exhibit "hallucinogenic" behavior, generating textual outputs not grounded in contextual multimodal information. This challenge is particularly pronounced in the medical domain, where we do not only require VLM outputs to be accurate in single interactions but also to be consistent with clinical reasoning and diagnostic pathways throughout multi-turn conversations. For this purpose, we propose a new alignment algorithm that uses symbolic representations of clinical reasoning to ground VLMs in medical knowledge. These representations are utilized to (i) generate GPT-4-guided visual instruction tuning data at scale, simulating clinician-VLM conversations with demonstrations of clinical reasoning, and (ii) create an automatic reward function that evaluates the clinical validity of VLM generations throughout clinician-VLM interactions. Our algorithm eliminates the need for human involvement in training data generation or reward model construction, reducing costs compared to standard reinforcement learning with human feedback (RLHF). We apply our alignment algorithm to develop Dr-LLaVA, a conversational VLM finetuned for analyzing bone marrow pathology slides, demonstrating strong performance in multi-turn medical conversations.
[ 0.20867887139320374, -0.7618321180343628, 0.8308377861976624, -0.05882099270820618, -0.57674640417099, 0.048109374940395355, -0.0689074918627739, -0.20336724817752838, 0.39110979437828064, 0.5625718235969543, -0.7169753909111023, -0.8652405142784119, -0.5572865009307861, -0.20663021504878998, 0.1345260888338089, 0.7102749347686768, -0.10550548881292343, 0.731476902961731, -0.5159120559692383, -0.36740073561668396, -1.1165286302566528, -0.381616473197937, -0.37692132592201233, -0.3527897298336029, 0.4172803461551666, 0.27616310119628906, 0.6989889144897461, 1.0977598428726196, 0.7729557156562805, 0.2918466031551361, 0.33608752489089966, 0.507378339767456, -0.5951581001281738, 0.3399564027786255, -0.1324964165687561, -0.363654762506485, -0.5119163990020752, -0.35527288913726807, 0.2884427309036255, 0.43689700961112976, -0.3643943667411804, -0.1414775550365448, -0.3988088071346283, 0.6480512022972107, -0.2654271423816681, 0.2156740128993988, -0.5647879242897034, 0.14963912963867188, 0.05523064732551575, -0.6780371069908142, -0.4700339436531067, -0.36642220616340637, -0.0019561408553272486, -0.7385630011558533, -0.053592946380376816, -0.13371454179286957, 1.0882771015167236, 0.8641124963760376, -0.31204140186309814, -0.25326046347618103, -0.31195464730262756, 0.8339309692382812, -0.5695973634719849, 0.27589619159698486, 0.2673174738883972, 0.6527954339981079, -0.07299423962831497, -0.5971118807792664, -0.28984102606773376, -0.24302536249160767, -0.18911515176296234, 0.21995848417282104, 0.12988083064556122, 0.32954636216163635, 0.290709912776947, 0.003362294053658843, -0.44453081488609314, 0.05151143670082092, -0.40191757678985596, -0.2215137481689453, 0.5517899394035339, 0.6609876155853271, 0.4009987711906433, -0.011064484715461731, -0.4202716648578644, -0.2477056235074997, -0.5876650214195251, -0.20492678880691528, -0.28500184416770935, 0.044363413006067276, -0.1557667851448059, 0.8381500244140625, 0.06772516667842865, 0.9879012703895569, 0.10168464481830597, -0.6007753014564514, 0.2700822055339813, -0.20014043152332306, -0.4039279818534851, 0.3311605155467987, 0.5384894013404846, 0.8930539488792419, 0.2720898389816284, 0.1550387591123581, 0.05554455891251564, 0.6007727384567261, 0.7277917265892029, -0.6689285635948181, -0.2612416446208954, 0.1792517751455307, -0.436801016330719, -0.605635941028595, -0.2687722444534302, -0.6802561283111572, -0.6732214689254761, -0.7662045955657959, 0.37843239307403564, -0.6119918823242188, 0.12204635143280029, 0.1520562469959259, -0.03159230202436447, 0.32631632685661316, 0.6547839045524597, -0.8401378393173218, 0.1726781725883484, 0.41508322954177856, 0.5836604833602905, -0.10082516074180603, -0.12083853781223297, -0.7538497447967529, 0.26465630531311035, -0.4338408410549164, 0.6888697147369385, -0.683442234992981, -0.21950644254684448, 0.015400929376482964, -0.036105576902627945, -0.10568057745695114, -0.39932721853256226, 0.35873329639434814, -0.11966565996408463, 0.11531136184930801, -0.28803813457489014, -0.5031135678291321, 0.018951596692204475, 0.35083305835723877, -0.15478621423244476, 0.7077726125717163, 0.16298384964466095, -0.6080147624015808, 0.5104946494102478, -0.21614091098308563, -0.3144846260547638, 0.18958188593387604, -0.9487490653991699, -0.3842656910419464, 0.17177100479602814, 0.4238760471343994, 0.2712933421134949, -0.16831307113170624, 0.6181498169898987, -0.05259697884321213, -0.409217894077301, -0.12792450189590454, -0.21444879472255707, 0.5564354658126831, 0.02261846326291561, -0.5956544280052185, 0.6479180455207825, -0.7342780232429504, 0.1380043476819992, 0.30629101395606995, 0.15386268496513367, -0.5034361481666565, 0.05002422630786896, -0.4840053617954254, 0.21135511994361877, 0.060407109558582306, -0.28918179869651794, 0.5062756538391113, -0.4835720658302307, 0.07063055038452148, 0.8052270412445068, -0.15696832537651062, 0.15612681210041046, -0.3763442933559418, 0.4868065416812897, 0.2135503590106964, 0.3262563645839691, -0.17687924206256866, -0.6477764248847961, -0.8323776721954346, -0.4276992082595825, -0.154007226228714, 0.6645117402076721, -0.8647292256355286, 0.24880066514015198, -0.39659345149993896, -0.3635067045688629, -0.8196640014648438, -0.028984434902668, 0.5688807368278503, 0.9555650949478149, 0.4759314954280853, -0.3014114201068878, -0.5656133890151978, -0.9606884121894836, 0.13616016507148743, -0.10668104887008667, 0.21960431337356567, 0.5754830837249756, 0.1675359308719635, -0.340818852186203, 0.6684285998344421, -0.5024042129516602, -0.5429341793060303, 0.0435786210000515, -0.07707788795232773, 0.035029467195272446, 0.3496301770210266, 0.2984769940376282, -0.4735167920589447, -0.2586258053779602, 0.2887267470359802, -1.3689017295837402, -0.19248245656490326, -0.22468607127666473, -0.24954411387443542, 0.12358715385198593, 0.3828548192977905, -0.5028084516525269, 0.7484140992164612, 0.34140047430992126, -0.4382328689098358, 0.3518126904964447, -0.5818617343902588, 0.37653571367263794, -0.8328520059585571, -0.2821466028690338, -0.1483880579471588, -0.24389973282814026, -0.5262229442596436, 0.0453060157597065, 0.14171263575553894, 0.05371026322245598, -0.36646872758865356, 0.5601699352264404, -0.30373793840408325, 0.18973368406295776, -0.22800837457180023, 0.1316985934972763, -0.1440093070268631, 0.2997274696826935, 0.34242740273475647, 0.6232439875602722, 0.6896176338195801, -0.4824223816394806, 0.4039725959300995, 0.47527167201042175, 0.13021226227283478, 0.9572243690490723, -0.5445371270179749, 0.06615737825632095, -0.17951884865760803, 0.03668263554573059, -0.6499872207641602, -0.34562206268310547, 0.32445028424263, -0.28155162930488586, 0.31297022104263306, -0.09948881715536118, -0.2008063942193985, -0.21945762634277344, -0.06924678385257721, 0.4291532635688782, 0.6442611813545227, -0.4477354884147644, 0.5281982421875, 0.3296401798725128, 0.14655594527721405, -0.6595224738121033, -0.3967713713645935, 0.14242492616176605, -0.15786878764629364, -0.8058467507362366, 0.3181374669075012, -0.01733928732573986, -0.23110410571098328, -0.14573611319065094, -0.12517306208610535, 0.18744534254074097, -0.20515750348567963, 0.45761600136756897, 0.5097687244415283, -0.371614009141922, 0.27021703124046326, 0.3106364905834198, -0.18736863136291504, -0.07347920536994934, -0.24918319284915924, 0.40605905652046204, -0.04278484731912613, -0.7360709309577942, -0.5080931186676025, 0.1662522256374359, 0.5207504034042358, -0.05752985551953316, 0.6024698615074158, 0.5129647254943848, -0.4044189155101776, 0.04044988751411438, -0.4166484773159027, -0.390657901763916, -0.4133704602718353, 0.2657651901245117, -0.2462131828069687, -0.6308775544166565, 0.03546116128563881, -0.13190358877182007, 0.016412410885095596, 0.19108283519744873, 0.9744985699653625, -0.18691016733646393, 1.3084443807601929, 0.5010152459144592, 0.5330000519752502, -0.05827415734529495, 0.10222563147544861, 0.1498894840478897, -0.5308129787445068, -0.46511152386665344, 0.05370154231786728, -0.27442455291748047, -0.17538350820541382, -0.6111472249031067, 0.4158461093902588, -0.05420403555035591, -0.11950504779815674, -0.09748515486717224, -0.9152069091796875, 0.45305168628692627, 0.3593299388885498, 0.3322688639163971, 0.1662781834602356, 0.16308890283107758, -0.2934481203556061, -0.5373854041099548, -0.5859229564666748, -0.5121889710426331, 0.9314789772033691, 0.2594316899776459, 0.8652085661888123, -0.10395542532205582, 0.7857698798179626, -0.022426921874284744, 0.4063749611377716, -0.6496332287788391, 0.4468320906162262, -0.14896941184997559, -0.03193075582385063, -0.24311406910419464, -0.16960717737674713, -0.7655821442604065, 0.3432643413543701, -0.1828494369983673, -0.6611090302467346, -0.09553731977939606, 0.43915194272994995, -0.13998432457447052, 0.0012456751428544521, -0.5651949644088745, 0.9901636242866516, -0.6288964152336121, -0.5151559710502625, -0.27117395401000977, -0.9270606637001038, 0.45909613370895386, 0.18277660012245178, 0.11856775730848312, -0.005823773797601461, 0.09844894707202911, 0.24053117632865906, -0.42774859070777893, 0.9779157638549805, -0.2626960575580597, -0.14695435762405396, -0.21331962943077087, 0.12306033074855804, 0.3954925537109375, 0.1763785481452942, 0.4745975434780121, 0.08175824582576752, 0.003922733478248119, -0.37186139822006226, -0.64556884765625, 0.720282793045044, -0.6319101452827454, -0.8204377889633179, -0.40822726488113403, -0.647002637386322, -0.38884395360946655, 0.1120186299085617, 0.18664343655109406, 0.28885868191719055, -0.07916814833879471, -0.15719492733478546, 0.8108177185058594, -0.3465781509876251, -0.3520750403404236, 0.12189459055662155, -0.25350484251976013, -0.4738447964191437, 0.947472095489502, -0.32951778173446655, 0.28889229893684387, 0.33289021253585815, 0.27843427658081055, -0.10404124110937119, -0.509611964225769, -0.7662360668182373, 0.5385052561759949, -0.9746724963188171, -0.2510639429092407, -0.5150681734085083, -0.09685666859149933, -0.27601659297943115, -0.44918093085289, -0.25393038988113403, -0.1276922971010208, -0.24330434203147888, -0.04106069356203079, 0.3803694248199463, 0.5004207491874695, 0.283935010433197, 0.21542143821716309, -0.6465867757797241, 0.4655480682849884, 0.12857238948345184, 0.22875036299228668, -0.3891224265098572, -0.3912696838378906, -0.13706763088703156, 0.10060034692287445, -0.2847358286380768, -0.9916034936904907, 0.4701983630657196, 0.036787308752536774, 0.4977739751338959, 0.3357005715370178, -0.216018944978714, 1.2108886241912842, -0.7197730541229248, 0.6276922225952148, 0.48370951414108276, -0.7243591547012329, 0.8482801914215088, -0.12358666211366653, 0.04693985357880592, 0.42371323704719543, 0.012668580748140812, -0.26431718468666077, -0.39819031953811646, -0.5017496943473816, -0.5466585755348206, 0.4955345094203949, 0.09786738455295563, 0.0023786169476807117, -0.06917676329612732, 0.19345779716968536, 0.15515005588531494, 0.24097618460655212, -0.3426835834980011, -0.29150286316871643, -0.5288048982620239, -0.7489404082298279, 0.021062500774860382, -0.11528035253286362, -0.773223340511322, -0.5459014177322388, 0.3632756769657135, -0.364962100982666, 0.3009956181049347, 0.31149646639823914, -0.30262020230293274, -0.2246745079755783, -0.11665991693735123, 1.0811846256256104, 0.7116687893867493, -0.14381282031536102, 0.11644056439399719, -0.00024337286595255136, -0.5653513073921204, 0.1758960634469986, -0.17955563962459564, 0.05970913544297218, 0.08551859110593796, 0.3546799421310425, 1.1881626844406128, 0.2282908409833908, -0.9489243626594543, 0.5936964750289917, -0.17273756861686707, -0.494915634393692, -0.1249166950583458, 0.08650881052017212, -0.018798762932419777, 0.2393731325864792, -0.2515158951282501, -0.02354177087545395, -0.16452723741531372, -0.06459342688322067, 0.4703595042228699, 0.5359779000282288, -0.6604004502296448, -0.09147975593805313, 0.8979792594909668, 0.04249824583530426, -0.20274677872657776, 0.8297054767608643, 0.2834926247596741, -0.20128948986530304, 0.5078586339950562, 0.6106308698654175, 0.563531219959259, -0.032311663031578064, 0.4230921268463135, 0.22968240082263947, 0.2323182374238968, 0.0816761776804924, 0.22990964353084564, 0.20566222071647644, -0.5137630105018616, -0.44409963488578796, -0.483397513628006, -0.1721489131450653, -0.06635596603155136, -0.49777188897132874, 0.5550389289855957, -0.4400017559528351, -0.03695055842399597, 0.054447390139102936, -0.44395288825035095, -0.5760906934738159, 0.29283231496810913, 0.28043603897094727, 0.5107855200767517, -0.7228113412857056, 1.0478109121322632, 0.7291277647018433, -0.41701263189315796, -0.7904970049858093, -0.4278954267501831, 0.27827420830726624, -1.3191466331481934, 0.9319387674331665, 0.12050370126962662, -0.07236186414957047, -0.17138482630252838, -0.49313387274742126, -0.5419942736625671, 1.2053977251052856, 0.5145665407180786, -0.5941113829612732, -0.011899217963218689, 0.04302572086453438, 0.7870633006095886, -0.5753429532051086, 0.08788745105266571, 0.468149334192276, 0.3808406591415405, 0.3497246205806732, -0.8048848509788513, 0.19461141526699066, -0.2153884470462799, -0.17408022284507751, 0.3399125933647156, -0.23539689183235168, 0.4386903941631317, -0.5621981024742126, -0.07915177941322327, -0.03614945337176323, 0.33720093965530396, 0.6368089318275452, 0.3936479389667511, 0.3094613552093506, 0.7208830118179321, 0.8204118013381958, -0.13709868490695953, 1.0810694694519043, -0.2312719225883484, 0.03394569829106331, 0.7757960557937622, -0.4308728575706482, 0.24671563506126404, 0.9029428362846375, 0.1617055982351303, 0.2852896451950073, 0.4239119589328766, -0.09751932322978973, 0.600318968296051, 0.2605610191822052, 0.026158222928643227, -0.37463581562042236, -0.04352765902876854, -0.4320972263813019, 0.2595599591732025, 0.377661794424057, -0.4723333418369293, -0.0758422464132309, -0.012320099398493767, -0.30700650811195374, 0.22159001231193542, -0.11163416504859924, 0.9438735246658325, 0.12626364827156067, -0.5936068892478943, 1.0546605587005615, -0.35533347725868225, 0.1785384863615036, -0.5397423505783081, -0.577570915222168, -0.20493410527706146, 0.19343209266662598, -0.22281891107559204, -0.5019189715385437, 0.19512417912483215, -0.2547414302825928, 0.05855930596590042, -0.028221527114510536, 0.579971432685852, -0.42094147205352783, -0.45456522703170776, 0.12289318442344666, 0.4696815609931946, 0.15695011615753174, 0.4705222249031067, -0.7178224325180054, 0.18878421187400818, 0.21914523839950562, 0.13622474670410156, 0.5445563793182373, 0.43211811780929565, -0.3874967396259308, 0.7124889492988586, 0.602901816368103, 0.1634209007024765, 0.02160153165459633, 0.5735766887664795, 0.8156654238700867, -0.6902472972869873, -0.2663423418998718, -0.8246079087257385, 0.582338809967041, -0.17559240758419037, -0.30763205885887146, 0.379734605550766, 0.18441180884838104, 0.3948623239994049, -0.22033970057964325, 0.47693508863449097, 0.21121898293495178, -0.06445235013961792, -0.8073068261146545, 0.35434964299201965, -0.7735951542854309, 0.3276187479496002, -0.2660506069660187, -0.478240042924881, -0.5713469982147217, 0.8414933681488037, -0.09987100958824158, -0.2330075204372406, 0.8732179999351501, 0.6991150379180908, 0.05878378823399544, -0.1819840371608734, 0.6630882620811462, 0.03296650946140289, 0.40242546796798706, 0.4470174014568329, 0.5957282185554504, -0.19512993097305298, 0.17822283506393433, -0.32178112864494324, -0.41876447200775146, -0.2823944687843323, -0.7541704177856445, -0.9859172701835632, -0.3030758798122406, -0.35752108693122864, -0.4330015182495117, 0.428312212228775, 0.8466559052467346, 0.6779420375823975, -0.5540478825569153, -0.13044799864292145, -0.16254229843616486, 0.04259626194834709, -0.5203365683555603, -0.11141576617956161, 0.6055364608764648, -0.5912866592407227, -0.4013214409351349, 0.3837619721889496, 0.6549039483070374, -0.02119504101574421, -0.05084800347685814, -0.3214978873729706, 0.22808247804641724, -0.1403387188911438, 0.5516374707221985, 0.022512033581733704, -1.0922023057937622, -0.22696563601493835, 0.230038121342659, -0.3322049677371979, 0.4496631920337677, 0.8167122602462769, -0.8637318015098572, 0.6982052326202393, 0.030973637476563454, 0.7932340502738953, 0.21126379072666168, 0.13173338770866394, 0.6870622038841248, -0.5660982728004456, 0.17231538891792297, 0.43650922179222107, 0.17922824621200562, 0.25323817133903503, -0.5696430802345276, 0.3828243017196655, 0.29232481122016907, -0.45270824432373047, -0.9369108080863953, 0.2404380887746811, -1.2281053066253662, -0.1592838168144226, 0.9451068043708801, 0.283651202917099, -0.21611298620700836, 0.1362914741039276, -0.6463274955749512, 0.20041322708129883, -0.15712952613830566, 0.8535670042037964, 0.3516349792480469, -0.3368167579174042, -0.31498152017593384, -0.5721864104270935, 0.6351445317268372, 0.495953232049942, -0.8721591830253601, -0.08878596872091293, 0.6154941916465759, 0.05428548529744148, -0.06024087965488434, 0.6813570261001587, -0.32674849033355713, 0.43262094259262085, -0.03716141730546951, 0.10926812887191772, -0.1727842390537262, -0.2560157775878906, -0.19449546933174133, -0.22285737097263336, -0.010438692755997181, -0.19536298513412476 ]
http://arxiv.org/abs/2405.19563v1
http://arxiv.org/pdf/2405.19563v1
Unlearning Climate Misinformation in Large Language Models
2024-05-29T23:11:53
2024-05-29T23:11:53
Michael Fore, Simranjit Singh, Chaehong Lee, Amritanshu Pandey, Antonios Anastasopoulos, Dimitrios Stamoulis
cs.CL
cs.CL
Misinformation regarding climate change is a key roadblock in addressing one of the most serious threats to humanity. This paper investigates factual accuracy in large language models (LLMs) regarding climate information. Using true/false labeled Q&A data for fine-tuning and evaluating LLMs on climate-related claims, we compare open-source models, assessing their ability to generate truthful responses to climate change questions. We investigate the detectability of models intentionally poisoned with false climate information, finding that such poisoning may not affect the accuracy of a model's responses in other domains. Furthermore, we compare the effectiveness of unlearning algorithms, fine-tuning, and Retrieval-Augmented Generation (RAG) for factually grounding LLMs on climate change topics. Our evaluation reveals that unlearning algorithms can be effective for nuanced conceptual claims, despite previous findings suggesting their inefficacy in privacy contexts. These insights aim to guide the development of more factually reliable LLMs and highlight the need for additional work to secure LLMs against misinformation attacks.
[ 0.041151419281959534, -0.7969773411750793, 0.7580138444900513, -0.19522354006767273, -0.0848875418305397, 0.21076510846614838, -0.5249146819114685, -0.4077456295490265, -0.4129427373409271, 0.6735429763793945, -0.22477877140045166, -0.4984261691570282, -0.6552394032478333, -0.1677209734916687, -0.4292682409286499, 0.8430936932563782, 0.3266434967517853, 0.009541448205709457, -0.2527632713317871, -0.008721656166017056, -0.33537113666534424, -0.34822291135787964, -0.39358335733413696, -0.4003313183784485, 0.7148720622062683, 0.5468502044677734, 0.9242028594017029, 0.5260415077209473, 0.2699429392814636, 0.23462031781673431, -0.38587555289268494, 0.2787407338619232, -0.6801702380180359, 0.11862166225910187, -0.4900527000427246, -0.4928692877292633, 0.14160767197608948, 0.24828961491584778, 0.4453166425228119, 0.4470159113407135, -0.34337812662124634, 0.39206042885780334, 0.14136642217636108, 0.599639892578125, -0.8098729252815247, 0.1714993268251419, -1.1702018976211548, -0.2439921796321869, -0.14900776743888855, -0.14465534687042236, -0.726574182510376, -0.12528672814369202, -0.008800113573670387, -0.49712952971458435, 0.5581687092781067, 0.32839900255203247, 0.7236091494560242, 0.5913821458816528, -0.4142013192176819, -0.5260210037231445, -0.829710066318512, 0.7256770730018616, -1.0285067558288574, 0.5100321769714355, 0.28658783435821533, 0.17183397710323334, -0.25717893242836, -0.5072853565216064, -0.7551785707473755, -0.16511742770671844, -0.10917757451534271, 0.07162536680698395, -0.29384809732437134, -0.23385308682918549, 0.37402597069740295, 0.043870795518159866, -0.5811883807182312, 0.4279930293560028, -0.41617944836616516, -0.36325758695602417, 0.683407187461853, -0.08848372101783752, 0.17748872935771942, -0.27173566818237305, -0.29131776094436646, -0.12293565273284912, -0.9996548891067505, -0.2018824964761734, 0.5846648216247559, 0.54490727186203, -0.25872382521629333, 0.6431861519813538, -0.038342785090208054, 0.45259883999824524, 0.0295344777405262, -0.2375430464744568, -0.03124878741800785, -0.12842340767383575, -0.24263837933540344, 0.2464928925037384, 0.5474152565002441, 0.5274183750152588, 0.14471234381198883, -0.5038592219352722, -0.10484534502029419, -0.16759096086025238, 0.13898204267024994, -0.7353995442390442, -0.30304843187332153, 0.17017808556556702, -0.10658922046422958, -0.2953859269618988, 0.0831093117594719, -0.99509596824646, -0.860724687576294, -0.3690299093723297, 0.2926856279373169, 0.06202219799160957, -0.17506106197834015, 0.09040405601263046, -0.30530163645744324, -0.08025504648685455, 0.4960402548313141, -0.28101736307144165, -0.08303025364875793, 0.6222088932991028, 0.6933990716934204, 0.03268539905548096, -0.10948731005191803, -0.3877864181995392, 0.0663573294878006, -0.4217589497566223, 0.6901963949203491, -0.5281975269317627, -0.2623094618320465, -0.05098412558436394, 0.01658032462000847, 0.0555717758834362, -0.5302615165710449, 0.39070403575897217, -0.7953534722328186, 0.49703964591026306, -0.3541213870048523, -0.5237107276916504, -0.3275246024131775, 0.12117636203765869, -0.52956223487854, 0.66936194896698, -0.2660823464393616, -1.026629090309143, 0.29561153054237366, -0.44454067945480347, 0.003544350154697895, -0.07954882085323334, 0.11152932792901993, -0.507889449596405, -0.09787613898515701, 0.012809877283871174, 0.3657241761684418, -0.5498138070106506, 0.614948034286499, -0.2857530415058136, 0.07285518199205399, 0.4309040606021881, -0.8481097221374512, 0.8126331567764282, 0.34417489171028137, -0.398772656917572, -0.006670692935585976, -0.6378986835479736, -0.11839963495731354, 0.202689066529274, -0.4504842162132263, -0.20495948195457458, 0.041063275188207626, -0.18505294620990753, 0.0013255832018330693, 0.3207716643810272, -0.7618021368980408, -0.0863257348537445, -0.17238697409629822, 0.42078009247779846, 0.7122684717178345, 0.0323205292224884, 0.23954617977142334, -0.4955815076828003, 0.1463577002286911, 0.12407928705215454, 0.035773865878582, -0.02863042987883091, -0.5398280620574951, -0.4858311116695404, 0.15709231793880463, 0.2492980808019638, 0.681208074092865, -0.6944436430931091, 0.2695232033729553, -0.21405765414237976, -0.8968492150306702, -0.2877119481563568, 0.24698294699192047, 0.3658539652824402, 0.9328835606575012, 0.4049597978591919, 0.31087830662727356, -0.32720956206321716, -0.5755670666694641, -0.6589706540107727, -0.3097500205039978, 0.15448902547359467, 0.2705777585506439, 0.6048378944396973, -0.36305752396583557, 0.9290621876716614, -0.5243576765060425, 0.29965847730636597, 0.1369316279888153, 0.24476364254951477, -0.04557414352893829, 0.4462187886238098, 0.5836647748947144, -1.0055979490280151, -0.3335500657558441, -0.10214108973741531, -0.5852129459381104, 0.1279607117176056, 0.06922698020935059, 0.2828695774078369, 0.34904852509498596, 0.32234349846839905, -0.5117717385292053, 0.49303320050239563, 0.614564836025238, -0.347480446100235, 0.6171098947525024, -0.43854963779449463, 0.16261518001556396, -0.8817263841629028, 0.14345484972000122, 0.04904088377952576, -0.21478182077407837, -0.7246127128601074, -0.10821370035409927, 0.06430652737617493, 0.0690225288271904, -0.5617690682411194, 0.764457643032074, -0.4256289601325989, 0.234889954328537, -0.33387866616249084, 0.07878740131855011, 0.025938119739294052, 0.11238942295312881, -0.21222999691963196, 0.7016920447349548, 0.46449384093284607, -0.5974929928779602, 0.5339815020561218, 0.18953360617160797, -0.4978752136230469, 0.15000484883785248, -0.3913746178150177, 0.24424771964550018, -0.43395698070526123, 0.27788877487182617, -0.8052692413330078, -0.4507337212562561, 0.22978714108467102, -0.539162278175354, 0.19781027734279633, -0.1910923272371292, -0.7334016561508179, -0.17917238175868988, -0.03743515536189079, 0.1428331881761551, 0.5949108600616455, -0.9419178366661072, 0.30989131331443787, 0.44588345289230347, -0.07855258136987686, -0.679599940776825, -0.6820700168609619, 0.15382738411426544, -0.33576956391334534, -0.3705492913722992, -0.08095985651016235, -0.18938395380973816, -0.5767428874969482, 0.039581578224897385, -0.41739702224731445, -0.08640357106924057, 0.37486082315444946, 0.3099498450756073, 0.04231565445661545, -0.12198598682880402, 0.274192750453949, -0.5316500663757324, 0.12828610837459564, 0.2087498903274536, -0.06671128422021866, 0.4470551609992981, 0.048131462186574936, -0.12263015657663345, -0.13391168415546417, 0.004597246181219816, 0.686517059803009, -0.03123478591442108, 1.0923514366149902, 0.2712165117263794, -0.5745470523834229, -0.05906877666711807, -0.7291296720504761, -0.09939031302928925, -0.4467932879924774, 0.08289175480604172, 0.3000287413597107, -1.0120071172714233, 0.4628632068634033, -0.2993415296077728, 0.1912301480770111, 0.6057753562927246, 0.262495756149292, -0.015066562220454216, 0.8096827268600464, 0.693701982498169, -0.013663125224411488, 0.1288466900587082, -0.0052573783323168755, 0.3400825560092926, -0.5800660848617554, -0.5896196365356445, -0.8422899842262268, 0.11908680200576782, -0.6797351241111755, -0.5464736819267273, 0.308122456073761, 0.10396039485931396, -0.5865876078605652, -0.006356655154377222, -0.2586195170879364, 0.6891018748283386, 0.29696449637413025, 0.14791181683540344, 0.3552367687225342, 0.011802870780229568, 0.16985203325748444, 0.15806590020656586, -0.6893821358680725, -0.6354995369911194, 0.9667495489120483, 0.35302454233169556, 0.925777792930603, 0.2882983088493347, 0.09370693564414978, 0.398362398147583, 0.3788132071495056, -0.5116466879844666, 0.1902584284543991, -0.07943528145551682, -0.7044583559036255, -0.46557652950286865, -0.6827379465103149, -0.7464663982391357, 0.20081868767738342, -0.4347076714038849, -0.7094942331314087, 0.25447598099708557, 0.3588375747203827, -0.08903338015079498, 0.6687491536140442, -0.523514449596405, 0.6711612343788147, -0.3357228636741638, -0.11598815023899078, -0.3022804260253906, -0.6146411895751953, 0.4088970422744751, -0.4758259356021881, 0.5980167388916016, -0.2810669541358948, 0.13565872609615326, 0.6268889307975769, -0.3030281066894531, 1.1109529733657837, -0.20240294933319092, -0.292642205953598, 0.17071722447872162, -0.006705115083605051, 0.5681282877922058, 0.09987815469503403, -0.391182005405426, 0.29512104392051697, -0.11324649304151535, -0.5021821856498718, -0.4495711922645569, 0.6764428019523621, -0.7513331174850464, -0.7783278226852417, -0.45414191484451294, -0.4699011445045471, -0.317968487739563, 0.18836989998817444, 0.4224282205104828, 0.30047497153282166, -0.28128981590270996, 0.22645379602909088, 0.896800696849823, -0.36600765585899353, 0.13211771845817566, 0.9239786863327026, -0.09527608007192612, -0.17631173133850098, 0.8010340929031372, 0.2277827113866806, 0.35498523712158203, 0.2750188410282135, 0.6541740894317627, -0.24981118738651276, -0.5765868425369263, -0.2354939728975296, 0.3782425820827484, -0.7980866432189941, -0.5364579558372498, -0.41589558124542236, -0.2888159453868866, -0.5960304141044617, 0.11295098066329956, -0.30584558844566345, -0.044069625437259674, -0.2772878110408783, -0.3179005980491638, 0.6716169118881226, 0.9157233834266663, -0.16385678946971893, 0.4532049000263214, -0.8523962497711182, 0.16076529026031494, 0.15903432667255402, 0.02602950483560562, -0.03356890007853508, -0.7500755190849304, -0.214562326669693, 0.660709798336029, -0.1875065565109253, -0.7889474034309387, 0.3824271857738495, 0.09286703914403915, 0.44852572679519653, 0.4321307837963104, 0.35454627871513367, 0.5311836004257202, -0.43075671792030334, 0.905200719833374, 0.18986108899116516, -0.9736665487289429, 0.3796886205673218, -0.14613193273544312, 0.2817130386829376, 0.33528581261634827, 0.4481281340122223, -0.6841095089912415, -0.43376511335372925, -0.8936215043067932, -0.771865963935852, 0.4790663719177246, -0.21573102474212646, 0.13046634197235107, 0.13353337347507477, 0.5751205682754517, 0.2767297327518463, 0.4787270724773407, -0.4570268392562866, -0.2855357825756073, -0.0764080286026001, 0.061087336391210556, -0.44466230273246765, -0.2902365028858185, -0.2544936537742615, -0.12899990379810333, 0.8434168100357056, -0.23355220258235931, -0.18557679653167725, 0.0659138560295105, -0.02267068810760975, -0.3439069390296936, 0.4006696939468384, 0.5435976386070251, 0.7821601629257202, 0.023746518418192863, 0.42837175726890564, 0.3457581698894501, -0.3562287986278534, -0.03715018182992935, -0.3152899444103241, -0.4772579073905945, 0.027882108464837074, 0.4249081015586853, 0.7456727623939514, 0.09876593202352524, -0.7649774551391602, 0.6130947470664978, -0.0687084048986435, -0.02061273902654648, -0.19052231311798096, 0.08016085624694824, 0.13297422230243683, 0.06034952029585838, 0.10476174205541611, 0.3509097099304199, -0.032184261828660965, -0.7585881352424622, -0.05103808641433716, 0.50679612159729, -0.14933228492736816, -0.3058139383792877, 0.6417484879493713, -0.0042855520732700825, 0.06481045484542847, 0.679537832736969, 0.09435059130191803, -0.5466735363006592, 0.480251669883728, 0.5099999904632568, 0.37914547324180603, -0.36281105875968933, 0.3720904290676117, 0.30393680930137634, 0.5257576107978821, -0.2908616364002228, 0.06505115330219269, 0.10571600496768951, -0.9486556649208069, -0.2974187433719635, -0.48596012592315674, -0.5358269214630127, 0.3914933502674103, -0.46489399671554565, -0.07367975264787674, -0.5373091697692871, 0.15112106502056122, -0.10087969899177551, -0.14434505999088287, -0.6184839606285095, 0.31003469228744507, 0.13406182825565338, 1.0315712690353394, -0.9583612680435181, 0.6114267706871033, 0.4113326370716095, -0.15463128685951233, -0.7839059829711914, 0.22543103992938995, 0.40912139415740967, -0.6791195273399353, 0.5418737530708313, -0.008183651603758335, -0.3403339684009552, -0.2357458472251892, -1.2422842979431152, -0.9401073455810547, 0.9477320909500122, 0.7943500876426697, -0.7015998363494873, 0.08672776073217392, 0.11073017865419388, 0.38660040497779846, -0.12462767213582993, -0.08162521570920944, 0.5419825911521912, 0.765365481376648, 0.2973408102989197, -0.893990159034729, 0.015920817852020264, 0.2154151052236557, -0.25473031401634216, -0.01764032244682312, -0.7635703086853027, 0.6104410886764526, -0.4678365886211395, -0.5198599696159363, -0.07756976783275604, 0.6320001482963562, -0.07621202617883682, 0.5981435775756836, 0.6244406700134277, 0.4442131519317627, 1.3392974138259888, -0.12544681131839752, 0.8356420993804932, -0.21381217241287231, 0.37142542004585266, 1.1350456476211548, -0.3872404396533966, 0.8123825192451477, 0.13547199964523315, 0.2978266775608063, 0.18458232283592224, 0.5449691414833069, -0.028806185349822044, 0.45407119393348694, 0.2848251461982727, -0.16490957140922546, -0.30665627121925354, -0.30430370569229126, -0.03485261648893356, 0.3714366555213928, 0.558588981628418, 0.0752648338675499, -0.39904430508613586, 0.10219157487154007, 0.4829147756099701, 0.3206227719783783, -0.37250036001205444, 0.8390230536460876, 0.01971982978284359, -0.55577152967453, 0.5185327529907227, 0.1526166796684265, 0.7038469910621643, -0.1732569932937622, 0.025350073352456093, 0.016474084928631783, -0.07001113146543503, -0.49135202169418335, -0.8407068252563477, 0.3472748398780823, 0.46672236919403076, -0.2940220534801483, -0.09122603386640549, 0.5585774183273315, -0.6189069151878357, -0.24025508761405945, 0.025493955239653587, 0.41181647777557373, 0.2302970141172409, -0.23796243965625763, -0.6925317645072937, 0.028290841728448868, 0.15756137669086456, -0.07371339946985245, 0.12081356346607208, 0.37378907203674316, 0.12001219391822815, 0.8571133017539978, 0.8023384809494019, 0.22398820519447327, 0.2083791196346283, -0.26686856150627136, 0.6970782279968262, -0.576735258102417, -0.12203174084424973, -0.6274730563163757, 0.33917853236198425, -0.09066123515367508, -0.11698409169912338, 0.854279637336731, 0.574631929397583, 0.9048209190368652, 0.11497090011835098, 0.9542250037193298, 0.28966543078422546, 0.7977985739707947, -0.8755032420158386, 0.7194768786430359, -0.39756450057029724, 0.39720845222473145, 0.28205370903015137, -0.8657578229904175, -0.2641604244709015, 0.19756534695625305, -0.46043118834495544, -0.035915423184633255, 0.5959227085113525, 0.7801185846328735, 0.1415729820728302, 0.07222400605678558, 0.36953842639923096, 0.7075783014297485, 0.41882267594337463, -0.0900733545422554, 0.7625005841255188, -0.07065635919570923, 0.23596462607383728, -0.24464210867881775, 0.008284937590360641, -0.2469518929719925, -1.0079021453857422, -0.7044745683670044, -0.4903929531574249, -0.5950554013252258, -0.5664524435997009, 0.19781151413917542, 0.6722277402877808, 0.33685779571533203, -0.7214080095291138, 0.10050135105848312, 0.17151902616024017, 0.24841253459453583, 0.311907559633255, -0.22701941430568695, 0.37236499786376953, -0.12741819024085999, -0.5525693893432617, 0.5578497648239136, 0.05531851947307587, 0.13367754220962524, -0.3001288175582886, -0.07000572979450226, 0.039025139063596725, 0.43958738446235657, 0.298955500125885, 0.5335525870323181, -0.8077982068061829, -0.6625465750694275, -0.32434985041618347, -0.18722477555274963, -0.09212750196456909, 0.5323914885520935, -0.5773599743843079, 0.31564345955848694, 0.38779595494270325, 0.5868597030639648, 0.08146443963050842, 0.10933451354503632, 0.22892649471759796, -0.7258062362670898, -0.08436673134565353, 0.19662483036518097, 0.36226460337638855, 0.740511417388916, -0.631557822227478, 0.253933310508728, 0.23722802102565765, -0.7080978155136108, -0.9912469983100891, 0.1694992482662201, -0.7696565389633179, -0.5822650790214539, 1.2522902488708496, -0.08260133862495422, -0.39439550042152405, -0.14588147401809692, -0.10713472217321396, 0.08844999223947525, -0.3795178532600403, 0.7730363011360168, 0.7966185808181763, 0.11164987087249756, 0.13687781989574432, -0.5500029921531677, 0.5104338526725769, 0.006134666968137026, -0.7385689616203308, 0.5748926401138306, 0.6622605323791504, 0.6188706755638123, 0.3197600543498993, 0.0501929372549057, 0.11689194291830063, 0.11451492458581924, -0.2556050717830658, 0.027242936193943024, -0.020048148930072784, -0.4922443926334381, -0.35090556740760803, -0.07447617501020432, 0.22066831588745117, 0.2596243619918823 ]
http://arxiv.org/abs/2405.19562v1
http://arxiv.org/pdf/2405.19562v1
Selective Explanations
2024-05-29T23:08:31
2024-05-29T23:08:31
Lucas Monteiro Paes, Dennis Wei, Flavio P. Calmon
cs.CY
cs.CY, cs.CL, cs.LG
Feature attribution methods explain black-box machine learning (ML) models by assigning importance scores to input features. These methods can be computationally expensive for large ML models. To address this challenge, there has been increasing efforts to develop amortized explainers, where a machine learning model is trained to predict feature attribution scores with only one inference. Despite their efficiency, amortized explainers can produce inaccurate predictions and misleading explanations. In this paper, we propose selective explanations, a novel feature attribution method that (i) detects when amortized explainers generate low-quality explanations and (ii) improves these explanations using a technique called explanations with initial guess. Our selective explanation method allows practitioners to specify the fraction of samples that receive explanations with initial guess, offering a principled way to bridge the gap between amortized explainers and their high-quality counterparts.
[ -0.3868003487586975, -0.7779690027236938, 0.6982476115226746, -0.05743538215756416, -0.5760671496391296, -0.15205782651901245, 0.20577606558799744, -0.2919955253601074, 0.1348526030778885, 0.5616379976272583, -0.8005973696708679, -0.135598823428154, -0.5264277458190918, -0.4110517203807831, -0.3392966389656067, 1.1808933019638062, -0.32614925503730774, -0.22916565835475922, -0.4203120768070221, -0.16683807969093323, -0.1294940561056137, -0.11578492075204849, -0.592490553855896, -0.6174482107162476, 0.9094319343566895, 0.4071349799633026, 0.9159172177314758, 0.9795573353767395, 0.26586171984672546, 0.16534321010112762, -0.09346316009759903, 0.09835093468427658, -0.2376817911863327, -0.07675518095493317, 0.046805836260318756, -1.0032646656036377, -0.21795415878295898, 0.23970897495746613, 0.48779186606407166, 0.7113435864448547, 0.08019184321165085, 0.31717348098754883, 0.04877058416604996, 0.4059189558029175, -0.9496103525161743, -0.2725923955440521, -0.8044561147689819, 0.14530450105667114, 0.011894484050571918, -0.45744627714157104, -0.5457841753959656, -0.40068939328193665, 0.29311683773994446, -0.5279458165168762, 0.7699831128120422, -0.15314629673957825, 1.143959641456604, 0.671340823173523, -0.15955647826194763, -0.0051226490177214146, -0.7697317004203796, 1.0024731159210205, -0.059892501682043076, -0.1134185791015625, 0.48119720816612244, 0.6867710947990417, 0.45071035623550415, -0.3541758060455322, -0.15605589747428894, -0.000552545243408531, -0.16926869750022888, 0.03655371069908142, -0.17632605135440826, 0.03202774003148079, -0.07010719925165176, 0.4606626033782959, -0.4525516927242279, 0.32939469814300537, -0.3717399835586548, -0.4745429754257202, 0.8131631016731262, 0.03441515192389488, -0.41847389936447144, 0.11535794287919998, -0.5629306435585022, 0.21617868542671204, -0.5329413414001465, 0.4262183904647827, 0.4104688763618469, -0.1349322348833084, -0.052764952182769775, 0.5283609628677368, 0.2899012267589569, 0.7267795205116272, 0.2142585664987564, 0.16096004843711853, 0.022645331919193268, -0.008516089990735054, -0.3212489187717438, 0.4894880950450897, 0.4892728924751282, 0.14083634316921234, 0.10955049842596054, -0.15433155000209808, -0.2919633388519287, 0.5039227604866028, 0.4194052815437317, -0.5930380821228027, -0.23794002830982208, 0.588003396987915, -0.8140755891799927, -0.7835390567779541, -0.16062909364700317, -0.8277345299720764, -0.49042341113090515, 0.05002504959702492, 0.42635348439216614, -0.24687352776527405, -0.21389083564281464, -0.1386600136756897, -0.4746769070625305, -0.06672405451536179, 0.5491291880607605, -0.8417007923126221, 0.04420005530118942, 0.40947967767715454, 0.6944098472595215, -0.228877454996109, -0.10562670975923538, -0.38805705308914185, 0.06817641854286194, -0.4475848376750946, 1.094096302986145, -0.5731496810913086, -0.09259682148694992, -0.34814193844795227, -0.3143177628517151, 0.11814168095588684, -0.5574721693992615, 0.2737085223197937, -0.4191838502883911, 0.28652873635292053, 0.04959595948457718, -0.22178079187870026, -0.4037550985813141, 0.009517427533864975, -0.4225391745567322, 0.6660072207450867, 0.341640442609787, -0.7200785875320435, 0.8974074125289917, -0.8505877256393433, -0.14310401678085327, -0.016435863450169563, 0.009444073773920536, -0.7274115085601807, 0.4172650873661041, 0.5639377236366272, 0.2716101408004761, -0.030759574845433235, 0.14549429714679718, -0.5044255256652832, -0.4664829671382904, 0.6909781098365784, -0.9916540384292603, 0.9390685558319092, 0.6127964854240417, -0.1830531656742096, 0.23283211886882782, -0.6568573713302612, 0.0006117508164606988, 0.5512570738792419, -0.1783875972032547, -0.05346494913101196, 0.15854643285274506, -0.5488978624343872, -0.3751676678657532, 0.235190287232399, -0.1235799640417099, -0.3558264970779419, -0.33127361536026, 0.34118565917015076, 0.8891389966011047, 0.16279767453670502, 0.6907605528831482, -0.5050051212310791, 1.1045986413955688, 0.41982704401016235, 0.2635323107242584, -0.6896679997444153, -0.4252345860004425, -0.45176970958709717, -0.45196810364723206, 0.1362413465976715, 0.46019411087036133, -0.34281155467033386, 0.0048431092873215675, 0.08704762160778046, -0.2045620232820511, -1.0759365558624268, 0.0852271020412445, 0.5175127387046814, 0.38238322734832764, 0.26676174998283386, 0.0966387689113617, -0.33635255694389343, -1.085930347442627, -0.4650580883026123, -0.304056316614151, -0.3251477777957916, 0.4639228284358978, 0.20898881554603577, 0.06416437029838562, 1.1751790046691895, -0.45933645963668823, 0.17661736905574799, -0.14757800102233887, 0.18853941559791565, 0.10459844768047333, 0.11718157678842545, 0.6249668598175049, -0.968768298625946, -0.149397611618042, -0.1362248957157135, -0.4915299713611603, 0.03074054606258869, -0.2650776505470276, -0.10474119335412979, -0.28559818863868713, 0.20125934481620789, -0.26440173387527466, 0.24087770283222198, 0.4226225018501282, -0.3644565939903259, 0.7118664383888245, -0.08650205284357071, 0.005692151375114918, -0.5859991312026978, -0.44953885674476624, 0.3752148747444153, -0.2679283916950226, -0.16118386387825012, 0.06542301923036575, -0.06469029188156128, -0.3517572581768036, -0.416483074426651, 0.47347185015678406, -0.3611290156841278, 0.17810754477977753, -0.18242202699184418, 0.07631389051675797, 0.31593579053878784, 0.26454901695251465, -0.3702426850795746, 0.5368472933769226, 0.6914031505584717, -0.7532185912132263, 0.31819385290145874, 0.04445591941475868, -0.11719746887683868, 0.2303602546453476, -0.5404869318008423, -0.12438134104013443, -0.4111243784427643, -0.021889470517635345, -1.223233938217163, -0.47048094868659973, 0.17636825144290924, -0.9143344759941101, 0.22992970049381256, -0.7443897128105164, 0.12224825471639633, -0.6047818660736084, -0.2418767809867859, 0.19504201412200928, 0.5094809532165527, -0.818043053150177, 0.4883708357810974, 0.028054332360625267, 0.15840330719947815, -0.5889982581138611, -0.9478021860122681, -0.43758291006088257, -0.9900781512260437, -0.7190287709236145, 0.4197904169559479, 0.15612046420574188, -0.44381818175315857, 0.20082031190395355, -0.5076850652694702, -0.45413240790367126, 0.7630771398544312, 0.15138836205005646, 0.27757424116134644, -0.7474326491355896, 0.10033027082681656, 0.18832968175411224, -0.4486132562160492, 0.4253045916557312, -0.06641502678394318, -0.011372355744242668, 0.17350617051124573, -0.5202342867851257, -0.3638186752796173, 0.31603991985321045, 0.5108323693275452, -0.3780100643634796, 0.7498475909233093, 0.6621755361557007, -0.3269517719745636, -0.4846879839897156, -0.41466808319091797, -0.45529407262802124, -0.4505186676979065, 0.25504955649375916, -0.5722261071205139, -0.7069593071937561, 0.8037744164466858, 0.05518324300646782, 0.13747556507587433, 0.5555564165115356, 0.4444355368614197, -0.10675092786550522, 1.4148839712142944, 0.5208078622817993, 0.06394324451684952, 0.6992326378822327, -0.010275600478053093, 0.2490210384130478, -0.5017141103744507, -0.0604219064116478, -0.6533255577087402, -0.3733580410480499, -0.35224249958992004, -0.2680930197238922, 0.1786157637834549, 0.4812130928039551, -0.0016469995025545359, -0.1886262595653534, -0.9074192047119141, 0.7333398461341858, 0.5667016506195068, 0.43469011783599854, -0.0052889748476445675, 0.4507949650287628, 0.14706279337406158, 0.09664203226566315, -0.7004849910736084, -0.42946699261665344, 0.9789816737174988, 0.7981008291244507, 0.9063323736190796, 0.017809608951210976, 0.8392242789268494, 0.1902480572462082, 0.41044849157333374, -0.8899168372154236, 0.006542363669723272, -0.21979597210884094, -0.8337846398353577, -0.54352205991745, -0.44732776284217834, -1.0256999731063843, 0.5714024305343628, -0.0791064128279686, -1.2096226215362549, 0.11486046016216278, 0.8347389698028564, -0.7700590491294861, -0.07680504769086838, -1.1550581455230713, 1.1543861627578735, -0.30593881011009216, -0.3557831645011902, -0.3053777813911438, -0.1600271314382553, 0.6521351337432861, -0.07931455969810486, 0.025600237771868706, -0.16847184300422668, 0.03901371732354164, 0.8245440721511841, -0.4236668050289154, 0.649748682975769, -0.7145259380340576, 0.13920803368091583, 0.4944210648536682, 0.2195182889699936, 0.5071633458137512, 0.2172076255083084, -0.295309454202652, -0.1724185198545456, -0.58966064453125, -0.5056824088096619, -0.8117337822914124, 0.35051247477531433, -0.44500765204429626, -0.7530249357223511, 0.20705042779445648, -0.43576931953430176, 0.13132470846176147, -0.27642905712127686, 0.6403477787971497, 0.17621266841888428, 0.34952476620674133, 0.09782201796770096, 0.9077146649360657, -0.12627139687538147, 0.22671571373939514, 0.3175460398197174, 0.14343774318695068, -0.12421780079603195, 1.0218478441238403, -0.21442635357379913, 0.2058170735836029, 0.12063697725534439, 0.6235804557800293, -0.26015418767929077, -1.0246050357818604, -0.5184819102287292, 0.11364071816205978, -0.6748499870300293, 0.07762012630701065, -0.541418194770813, -0.0010463058715686202, 0.0037751460913568735, -0.8408241271972656, -0.32259345054626465, -0.32846108078956604, -0.5665584206581116, -0.2651887536048889, 0.5968148112297058, 0.07810717821121216, 0.3083721101284027, 0.6071572303771973, -0.4570073187351227, 0.6555890440940857, 0.2935294806957245, 0.39729297161102295, 0.0015300854574888945, -0.8520074486732483, -0.4555434286594391, 0.10524431616067886, -0.49458974599838257, -0.9629032015800476, 0.13974565267562866, 0.1765514612197876, 0.9768922328948975, 1.0301415920257568, -0.10513061285018921, 0.8244162797927856, 0.029420850798487663, 0.9242249131202698, 0.1918714940547943, -0.6599190831184387, 1.2047710418701172, -0.029559722170233727, 0.19147413969039917, 0.2541109621524811, 0.5456230640411377, 0.1476808339357376, -0.6565198302268982, -0.8302260041236877, -0.8171380758285522, 1.1618471145629883, -0.01530561875551939, -0.10909403860569, 0.274556428194046, 0.3657418489456177, 0.3453066349029541, -0.0905502587556839, -0.717345118522644, -0.5133172869682312, -0.2936059534549713, -0.14076536893844604, -0.2791133522987366, -0.5076453685760498, -0.2470242828130722, 0.14149267971515656, 0.6367357969284058, -0.23850855231285095, 0.6281014084815979, 0.029236342757940292, -0.2809290885925293, -0.5609232187271118, 0.2003951370716095, 0.46087145805358887, 1.0011324882507324, -0.18535196781158447, 0.13352593779563904, -0.10070469975471497, -0.035544391721487045, 0.14211776852607727, 0.38041242957115173, -0.2276042103767395, 0.3453807234764099, 0.4061312675476074, 1.1274527311325073, -0.07945141941308975, -0.1882452517747879, 0.45104342699050903, 0.306100457906723, -0.3061378300189972, -0.12438458949327469, 0.36583220958709717, -0.1340358555316925, 0.40164947509765625, 0.4808005690574646, 0.10313344746828079, 0.18426094949245453, -0.2387595772743225, 0.2143869400024414, 0.5619783997535706, -0.8387345671653748, -0.004130042158067226, 1.1319668292999268, -0.11134223639965057, -0.155935600399971, 0.3804945647716522, -0.03607498109340668, -0.4632238447666168, 0.9343517422676086, 0.2261076271533966, 1.0188239812850952, -0.4204484820365906, 0.5937051773071289, 0.08730503916740417, 0.26485952734947205, 0.05725234001874924, 0.01758129522204399, -0.37305504083633423, -0.9208927154541016, -0.7052228450775146, -0.5890210270881653, -0.3782869279384613, 0.01721927523612976, -0.851804256439209, 0.06047727167606354, -0.1115054339170456, -0.02266813814640045, 0.681884229183197, -0.4065288305282593, -0.47932109236717224, 0.10553528368473053, 0.2411481738090515, 0.6006469130516052, -1.031973123550415, 0.3931449353694916, 0.5580532550811768, -0.4113946855068207, -0.6247667074203491, -0.1428123563528061, 0.2519693076610565, -1.1814643144607544, 0.3916012644767761, 0.09133951365947723, 0.20055344700813293, -0.38565823435783386, -0.6504943370819092, -0.4996671676635742, 0.622617244720459, 0.5287648439407349, -0.12450800836086273, -0.002120258053764701, -0.15871618688106537, 0.22451511025428772, -0.3379124104976654, 0.512424111366272, 0.6458674669265747, 0.5433310270309448, -0.028926735743880272, -0.41746634244918823, -0.048387300223112106, 0.02429232932627201, -0.170517235994339, 0.24400827288627625, -0.2489495426416397, 0.6159778237342834, -0.5892261862754822, 0.09216897934675217, -0.4149690866470337, 0.5444212555885315, 0.5018244981765747, 0.7767391204833984, 0.6995497941970825, 0.2639518976211548, 0.7793326377868652, -0.19896365702152252, 1.305619478225708, 0.20444242656230927, 0.3053990602493286, 0.7648295164108276, 0.4106573760509491, 0.24359267950057983, 0.5640074014663696, -0.48845458030700684, 0.5566810965538025, 1.3450692892074585, -0.266876220703125, 0.5986406803131104, 0.30804967880249023, -0.25655385851860046, -0.3642705976963043, 0.0687432661652565, -0.006765422411262989, 0.4924522936344147, 0.4827840328216553, -1.0189749002456665, -0.28885695338249207, 0.24915024638175964, -0.30752646923065186, -0.3336777091026306, -0.5168500542640686, 0.6801154017448425, -0.03642026707530022, -0.6760529279708862, 0.8299271464347839, -0.21366624534130096, 0.5037543177604675, -0.5654321908950806, 0.13087372481822968, -0.22928005456924438, 0.3230101466178894, -0.38412749767303467, -0.8435895442962646, 0.23944106698036194, 0.031156430020928383, -0.7809762954711914, -0.5556823015213013, 0.4612289071083069, -0.23339508473873138, -0.3761501908302307, 0.01753871515393257, 0.15792547166347504, 0.4859638512134552, -0.5398551821708679, -0.9494472742080688, -0.3859096169471741, 0.34649109840393066, -0.5501748919487, 0.125580295920372, 0.8386945128440857, -0.32861247658729553, 0.9067118167877197, 0.37725725769996643, 0.0106658348813653, 0.02678745798766613, -0.050238072872161865, 0.5766086578369141, -0.4867786467075348, -0.7561850547790527, -0.9109578132629395, 0.9727036952972412, 0.25487369298934937, -0.3321819603443146, 0.358468234539032, 0.387053906917572, 0.5384984612464905, -0.06265363097190857, 0.7475031018257141, 0.46542757749557495, 0.4940367639064789, -0.6243674159049988, 0.3939882516860962, -0.8143225312232971, 0.35618144273757935, 0.1140814945101738, -1.0176103115081787, 0.04185225069522858, 0.523651123046875, -0.07632020115852356, 0.03514650836586952, 0.7859287858009338, 0.5622691512107849, -0.2957087457180023, 0.026085184887051582, 0.35329189896583557, 0.34882819652557373, 0.04416634142398834, 0.3164356052875519, 0.8346577286720276, -0.022420499473810196, 0.9236432313919067, -0.35308635234832764, -0.4115596413612366, -0.5750067234039307, -0.6114262938499451, -0.5979302525520325, -0.12051091343164444, -0.6938788294792175, -0.3774236738681793, -0.023543942719697952, 0.16707202792167664, 0.989520251750946, -0.8017329573631287, 0.32551491260528564, 0.0023192160297185183, 0.7374595403671265, -0.5960296988487244, -0.3868410289287567, 0.23219048976898193, -0.26291948556900024, -0.385860800743103, 0.45266175270080566, -0.018601469695568085, 0.07346121221780777, -0.406756192445755, 0.02316584438085556, 0.6166751980781555, -0.1009412333369255, 0.2920506000518799, 0.016448598355054855, -1.0820657014846802, -0.0834817960858345, -0.35806405544281006, 0.41515299677848816, 0.32289400696754456, 1.1349362134933472, -0.8102593421936035, 0.49654507637023926, 0.19724217057228088, 0.3895513713359833, 0.7289261817932129, 0.11734801530838013, 0.5609662532806396, -0.550163209438324, 0.20569001138210297, 0.3445380926132202, 0.3082731366157532, 0.03175278380513191, -0.7972844839096069, 0.2006305605173111, 0.012849792838096619, -0.28596508502960205, -0.8935469388961792, 0.1651322841644287, -0.8076913952827454, -0.5135248303413391, 0.6672064065933228, -0.4016718566417694, -0.4352196156978607, -0.1903364062309265, 0.19980090856552124, 0.12440083920955658, -0.4612537920475006, 0.8633626103401184, 0.6551412343978882, -0.2705973982810974, -0.6837965846061707, -0.3678496479988098, 0.3952793478965759, 0.43544790148735046, -0.5499585270881653, 0.1665843427181244, 0.3777437210083008, 0.14408987760543823, 0.07335911691188812, 0.2233877182006836, -0.2238692343235016, 0.6514085531234741, 0.39304056763648987, -0.1727544665336609, -0.2188282310962677, -0.43218567967414856, -0.6034852862358093, 0.23715269565582275, 0.19943022727966309, -0.7114129066467285 ]
http://arxiv.org/abs/2406.00062v1
http://arxiv.org/pdf/2406.00062v1
Unlocking the Potential of Large Language Models for Clinical Text Anonymization: A Comparative Study
2024-05-29T23:07:58
2024-05-29T23:07:58
David Pissarra, Isabel Curioso, João Alveira, Duarte Pereira, Bruno Ribeiro, Tomás Souper, Vasco Gomes, André V. Carreiro, Vitor Rolla
cs.CL
cs.CL, cs.AI, cs.CR, cs.LG, I.2.7
Automated clinical text anonymization has the potential to unlock the widespread sharing of textual health data for secondary usage while assuring patient privacy and safety. Despite the proposal of many complex and theoretically successful anonymization solutions in literature, these techniques remain flawed. As such, clinical institutions are still reluctant to apply them for open access to their data. Recent advances in developing Large Language Models (LLMs) pose a promising opportunity to further the field, given their capability to perform various tasks. This paper proposes six new evaluation metrics tailored to the challenges of generative anonymization with LLMs. Moreover, we present a comparative study of LLM-based methods, testing them against two baseline techniques. Our results establish LLM-based models as a reliable alternative to common approaches, paving the way toward trustworthy anonymization of clinical text.
[ 0.2911607027053833, -0.6387986540794373, 1.0275146961212158, 0.12149116396903992, -0.21170714497566223, 0.12278375029563904, -0.40871724486351013, -0.6092979311943054, 0.08647330850362778, 0.7515019178390503, -0.262570858001709, -0.8673439621925354, -0.9692336320877075, 0.3062750995159149, -0.6396566033363342, 0.7127969264984131, -0.12007120251655579, 0.5522797703742981, -0.48623669147491455, -0.39633452892303467, -0.1829720139503479, -0.9234837889671326, -0.7247281670570374, -0.2868860363960266, 0.5228844285011292, 0.005306322127580643, 0.876318633556366, 0.903150200843811, 0.9864230751991272, 0.36495697498321533, -0.25534263253211975, -0.020662393420934677, -0.3954595625400543, 0.26702290773391724, 0.10425462573766708, -0.4570065140724182, -0.5623593330383301, -0.0657690167427063, 0.7155850529670715, 0.8159217238426208, -0.3261469304561615, -0.010818934068083763, -0.17639774084091187, 0.6667962670326233, -0.5753260850906372, 0.061743106693029404, -0.3935945928096771, 0.09867174923419952, -0.31103354692459106, -0.07469332218170166, -0.4084683954715729, -0.5944292545318604, 0.26190587878227234, -0.4514409601688385, 0.17995572090148926, 0.05524385720491409, 0.68080735206604, 0.08690182864665985, -0.32267242670059204, -0.8432868719100952, -0.7177892327308655, 0.7304094433784485, -0.9005112051963806, 0.6273859739303589, 0.4676235318183899, 0.32367387413978577, 0.11043261736631393, -0.9931069612503052, -0.31482309103012085, -0.8196455240249634, -0.24426360428333282, 0.10077676922082901, -0.2662419080734253, 0.21013787388801575, 0.0812159925699234, 0.6095068454742432, -0.5608624219894409, 0.6423124074935913, -0.09662102162837982, -0.16311122477054596, 0.6973276138305664, 0.5050419569015503, 0.5570902228355408, 0.004602479282766581, -0.38907933235168457, 0.07656659185886383, -0.7692304253578186, -0.47575220465660095, 0.2799791693687439, 0.034692637622356415, -0.35610732436180115, 0.7215532064437866, -0.1177605390548706, 0.3940467834472656, -0.35257747769355774, -0.39239391684532166, 0.24297267198562622, -0.3577997386455536, -0.21389733254909515, -0.15432974696159363, 1.0376096963882446, 0.32988643646240234, 0.060467563569545746, -0.5426603555679321, -0.016315707936882973, 0.1455952376127243, 0.19853602349758148, -0.8329042792320251, -0.21912215650081635, 0.510322630405426, -0.9582817554473877, -0.31833261251449585, -0.20412173867225647, -0.6641017198562622, -0.6940597891807556, -0.1704416573047638, 0.18019498884677887, -0.4285534620285034, -0.024177012965083122, 0.2124244123697281, 0.0447281152009964, -0.12316739559173584, 0.44417038559913635, -0.8292960524559021, 0.5003297328948975, 0.9130451083183289, 0.9857596158981323, -0.4469105005264282, -0.10106293112039566, -0.12190480530261993, -0.06074526533484459, -0.3535447120666504, 0.48427388072013855, -0.6218580007553101, -0.44498440623283386, 0.31547218561172485, -0.009134655818343163, -0.13144433498382568, -0.8051211833953857, 0.2945346236228943, -0.39795660972595215, 0.17606398463249207, -0.1250893920660019, -0.6865293979644775, 0.17425590753555298, 0.1307033896446228, -0.7616980075836182, 0.5454611778259277, -0.0486830398440361, -0.7755818367004395, 0.17747244238853455, -0.42128729820251465, -0.2859378159046173, 0.2156846523284912, -0.21321260929107666, -0.7290809154510498, 0.2958933115005493, 0.05221354961395264, 0.3486574590206146, -0.6652551293373108, 0.4501006007194519, -0.44050976634025574, -0.12737078964710236, 0.6244266033172607, -0.5177751183509827, 0.9426420331001282, 0.27536070346832275, 0.09813287109136581, 0.11694846302270889, -0.6695260405540466, -0.2009427547454834, 0.10493949800729752, -0.13329260051250458, -0.3461049199104309, 0.05766034871339798, -0.014805840328335762, -0.22413784265518188, 0.318233847618103, -0.4961737096309662, -0.09237409383058548, -0.4431857168674469, 0.517541229724884, 0.3061499297618866, -0.019019924104213715, 0.21530011296272278, -0.466418981552124, 0.8189475536346436, -0.30923205614089966, 0.18991497159004211, -0.176686629652977, -0.28789079189300537, -0.5131939053535461, -0.7065691351890564, 0.699436366558075, 0.43140894174575806, -0.44863519072532654, 0.19157657027244568, -0.357431560754776, -0.5279141664505005, -0.7216418385505676, 0.05693693831562996, 0.7152819037437439, 0.41571202874183655, 0.26427942514419556, -0.424616277217865, -0.325494647026062, -0.9176483154296875, -0.3892959654331207, -0.23909741640090942, -0.25315430760383606, 0.5284970998764038, 0.3710462152957916, -0.4059789180755615, 0.44646283984184265, -0.3432573080062866, -0.4373365640640259, -0.34518760442733765, -0.05330553650856018, -0.13610196113586426, 0.2204820066690445, 0.4195691645145416, -0.5755888819694519, -0.4810333549976349, 0.0405627079308033, -1.0266377925872803, -0.2358282059431076, 0.12373030185699463, 0.10668709129095078, -0.14237374067306519, 0.4997711479663849, -0.3767351508140564, 0.4424465596675873, 0.8302921652793884, -0.14703500270843506, 0.3839118480682373, -0.4689752757549286, 0.14985089004039764, -0.8397940993309021, 0.16642822325229645, -0.10794660449028015, -0.31447523832321167, -0.8588147759437561, 0.19681839644908905, 0.11772342771291733, -0.12286365032196045, -0.4027225971221924, 0.6273183226585388, -0.7310886383056641, 0.14730319380760193, -0.22518578171730042, -0.1449195295572281, -0.15310199558734894, -0.2909393012523651, 0.28238680958747864, 0.4987451732158661, 0.6069645881652832, -0.23160652816295624, 0.30552491545677185, 0.5042517185211182, -0.3578222692012787, 0.32819464802742004, -0.6645193696022034, 0.052430395036935806, -0.15493498742580414, 0.2918156385421753, -0.7687776684761047, -0.39119115471839905, 0.02247779443860054, -0.3305436074733734, 0.15342046320438385, -0.07108619809150696, -0.7548866868019104, -0.18193510174751282, -0.24609152972698212, 0.5406162738800049, 0.5337905287742615, -0.44438111782073975, -0.03021187148988247, 0.6030489206314087, -0.4594115912914276, -0.3544989228248596, -0.7044914364814758, 0.5529054403305054, -0.329123854637146, -0.5460478663444519, 0.3711206614971161, -0.01239848230034113, -0.3887697160243988, -0.06286878883838654, 0.1017359048128128, -0.4246210753917694, 0.09815195202827454, 0.14408251643180847, 0.1980016976594925, -0.2066272795200348, 0.42774802446365356, -0.09406664222478867, -0.17886191606521606, 0.07801513373851776, 0.11078537255525589, 0.3620324730873108, 0.14409728348255157, -0.27100899815559387, -0.7674381732940674, 0.5716889500617981, 0.46190887689590454, -0.18785175681114197, 1.0044734477996826, 0.21380837261676788, -0.5675083994865417, 0.07450053095817566, -0.8032048940658569, -0.10288121551275253, -0.40485841035842896, 0.46512919664382935, 0.2524169385433197, -0.9358939528465271, 0.38438794016838074, -0.18449997901916504, -0.03625457361340523, 0.15636485815048218, 0.7787389755249023, 0.08031284809112549, 0.7772589325904846, 0.6467639803886414, 0.19808368384838104, 0.10518544912338257, 0.2624622583389282, 0.2503841817378998, -0.5053535103797913, -0.1911700963973999, -0.7200307846069336, 0.13525180518627167, -0.7973191738128662, -0.3263493478298187, 0.5397019386291504, -0.09890498965978622, 0.1599579006433487, 0.009890269488096237, -0.17835424840450287, 0.23759277164936066, 0.0732966810464859, 0.26654043793678284, 0.8072224855422974, -0.06655067205429077, 0.1250297874212265, -0.18295606970787048, -0.5665427446365356, -0.7945235967636108, 1.2677719593048096, 0.6243858933448792, 0.6464622020721436, 0.24358177185058594, 0.7273436188697815, 0.1974397897720337, 0.8255200982093811, -0.6150680780410767, 0.3435021936893463, -0.6037654876708984, -0.4767027497291565, -0.4069403409957886, -0.4804842174053192, -0.9775970578193665, 0.3403981328010559, -0.27281904220581055, -0.8549001812934875, -0.1417146921157837, 0.09373252838850021, -0.2624971270561218, 0.08692774921655655, -0.4883267879486084, 0.6970292925834656, -0.11388565599918365, -0.22977465391159058, 0.03944646567106247, -0.6011630296707153, 0.31841644644737244, -0.27335816621780396, 0.3582800328731537, -0.025997867807745934, -0.2703641951084137, 0.7091984748840332, -0.8043666481971741, 0.7817990779876709, 0.27442845702171326, -0.1967920958995819, 0.000800157489720732, -0.1977171152830124, 0.3419940173625946, 0.21918024122714996, -0.22301225364208221, 0.3947155773639679, 0.11530636250972748, -0.2901700735092163, -0.4139968752861023, 0.7725859880447388, -0.3377261459827423, -0.40610283613204956, -0.4334432780742645, -0.38674163818359375, -0.43689459562301636, 0.20960105955600739, 0.3257090449333191, 0.5138283371925354, -0.42835092544555664, 0.42871537804603577, 0.4429406225681305, -0.5372275114059448, 0.3144078552722931, 0.6939451098442078, 0.11211979389190674, -0.48445987701416016, 0.5045761466026306, -0.0435921810567379, 0.2872621417045593, 0.3774160146713257, 0.44061917066574097, -0.5210033655166626, -1.0040067434310913, -0.2781694233417511, 0.4837264120578766, -0.5139208436012268, -0.11536642163991928, -0.8499029278755188, -0.30025574564933777, -0.3851023316383362, -0.13569276034832, -0.39988115429878235, -0.24369804561138153, -0.1212151050567627, -0.15825504064559937, 0.16982725262641907, 0.8534172177314758, 0.177586168050766, 0.2616226077079773, -0.8206186294555664, 0.4091228246688843, -0.019743502140045166, 0.3747674524784088, 0.06534158438444138, -0.26525068283081055, -0.03304148092865944, -0.27342551946640015, -0.01986154355108738, -1.0678675174713135, 0.5489633083343506, -0.057040952146053314, 0.4067111015319824, 0.23493953049182892, -0.038881607353687286, 0.4099288582801819, -0.8149606585502625, 0.6716261506080627, 0.5099523663520813, -0.7437590956687927, 0.23492632806301117, -0.22037796676158905, 0.05578422546386719, 0.6874372959136963, 0.3947511613368988, -0.5077980756759644, -0.6553037166595459, -0.543946385383606, -0.8047829270362854, 0.2937253415584564, 0.339673787355423, 0.2367756962776184, 0.03734531253576279, 0.23269128799438477, 0.441873699426651, 0.3479437828063965, -0.7528221011161804, -0.31364351511001587, 0.4312008023262024, -0.41225987672805786, -0.185892716050148, -0.48445796966552734, -0.20665568113327026, 0.07837650179862976, 0.14751555025577545, 0.17962318658828735, 0.24509823322296143, 0.3167896568775177, -0.17230798304080963, 0.11862443387508392, 0.4078364074230194, 0.45618411898612976, 0.7813324332237244, 0.12492316216230392, 0.1836937516927719, 0.10392337292432785, -0.7367991805076599, 0.11382798850536346, 0.1314091682434082, -0.32074081897735596, 0.2463262528181076, 0.7440035343170166, 0.6343972682952881, 0.09204114973545074, -0.8542913794517517, 0.6797304153442383, -0.06656607240438461, -0.24135692417621613, -0.29907137155532837, -0.12664085626602173, 0.09826768934726715, 0.02136816270649433, -0.16918933391571045, -0.5465579628944397, 0.2223753035068512, -0.4517400562763214, 0.11325002461671829, 0.4001070261001587, -0.5022922158241272, -0.2539833188056946, 0.7599653005599976, 0.08262339234352112, -0.44801801443099976, 0.23743057250976562, 0.26363682746887207, -0.09190104901790619, 0.680768609046936, 0.5421118140220642, 0.9228073358535767, -0.3391651213169098, 0.24225769937038422, 0.20824077725410461, 0.17557422816753387, -0.28132978081703186, 0.02142481878399849, 0.3171737492084503, -0.37447723746299744, -0.1808663010597229, -0.45278045535087585, -0.7081485390663147, 0.3103336989879608, -0.6705482006072998, 0.06161096319556236, -0.46199268102645874, -0.1283133625984192, 0.21588893234729767, -0.19692271947860718, -0.6791659593582153, 0.22392326593399048, 0.03330158814787865, 0.6004096865653992, -0.5909801721572876, 0.8263525366783142, 0.5119727849960327, 0.11389526724815369, -0.29017654061317444, 0.13520413637161255, 0.16708548367023468, -0.7370048761367798, 0.17897137999534607, 0.10227138549089432, 0.1940382570028305, -0.3756827116012573, -0.2540234327316284, -0.5320532321929932, 1.0849069356918335, 0.31292951107025146, -0.8377825617790222, -0.12327848374843597, 0.5052955746650696, 1.0201225280761719, -0.4924561083316803, 0.328299343585968, 0.494977742433548, 0.2657179832458496, -0.1659158170223236, -1.0791149139404297, 0.2849041819572449, 0.06417784839868546, 0.025744767859578133, -0.014215345494449139, -0.6791825294494629, 0.6493054032325745, -0.2739594578742981, -0.2742675840854645, 0.6346574425697327, 0.26688259840011597, 0.11204700171947479, 0.5093135237693787, 0.2643304467201233, 0.282059907913208, 0.8623359203338623, 0.2528645694255829, 1.189444661140442, -0.18157914280891418, 0.46616655588150024, 0.9820118546485901, -0.5531458854675293, 0.6663929224014282, 0.12477858364582062, -0.21628712117671967, 0.2765013575553894, 0.2328076958656311, 0.12687872350215912, 0.38609904050827026, 0.4461168646812439, -0.4530901312828064, -0.11742474138736725, -0.14676512777805328, -0.42779219150543213, 0.44419974088668823, 0.38385525345802307, -0.7991480231285095, -0.12980659306049347, -0.048939090222120285, 0.3571764826774597, 0.25913339853286743, -0.05307595804333687, 0.8595165610313416, 0.3684123456478119, -0.38678333163261414, 0.45539939403533936, 0.17468780279159546, 0.27790242433547974, -0.5561094880104065, 0.07056459784507751, -0.15672242641448975, 0.06834350526332855, -0.133381187915802, -0.17019310593605042, 0.18029525876045227, 0.4473121166229248, 0.17329788208007812, -0.20124919712543488, 0.6734868288040161, -0.4273468554019928, -0.5608500242233276, 0.27949094772338867, 0.5110381245613098, 0.05133950710296631, 0.3199823200702667, -0.5859077572822571, 0.24528074264526367, -0.30101269483566284, -0.07985066622495651, 0.4176900386810303, 0.22081492841243744, 0.013229907490313053, 0.7404730916023254, 0.5182901620864868, 0.48989033699035645, -0.17735116183757782, 0.20472452044487, 0.5058590769767761, -0.7265267968177795, -0.5982272624969482, -1.0108078718185425, 0.1129511147737503, -0.20896072685718536, -0.3214329481124878, 0.8293119072914124, 0.502701461315155, 0.42782384157180786, 0.1194487139582634, 0.839128315448761, 0.4326629340648651, 0.7617970108985901, -0.7996673583984375, 0.9697725176811218, -0.4074722230434418, 0.5710614919662476, -0.1838136464357376, -0.5754117369651794, -0.6593494415283203, 0.1699383556842804, -0.18970249593257904, -0.1596238613128662, 0.8445746898651123, 0.6436931490898132, 0.1332000494003296, 0.02155611477792263, 0.44001835584640503, 0.4270346462726593, 0.2825332283973694, 0.41354861855506897, 0.7046092748641968, -0.16272448003292084, 0.1993321031332016, -0.2922060191631317, -0.4484851062297821, -0.1489868462085724, -0.8607199192047119, -1.0348899364471436, -0.1369122415781021, -0.5182831287384033, -0.40465015172958374, 0.3810707628726959, 0.5400792360305786, 0.5106971859931946, -0.8022997975349426, -0.1589263528585434, 0.027106864377856255, -0.16415566205978394, -0.07140409201383591, -0.058205053210258484, 0.5831475257873535, 0.0590556338429451, -0.7667544484138489, 0.322830468416214, 0.43004974722862244, 0.14812184870243073, -0.2658791244029999, 0.005963267292827368, 0.47950106859207153, 0.24463020265102386, 0.4254583716392517, 0.2283460646867752, -0.7888396978378296, -0.07015221565961838, -0.06593751162290573, -0.3979060649871826, -0.02236892469227314, 0.860759437084198, -0.42752763628959656, 0.5641096830368042, 0.3897453844547272, 0.77562415599823, 0.22470857203006744, 0.06209441274404526, 0.5156952142715454, -0.16804805397987366, 0.003056339453905821, 0.41512277722358704, 0.2554602026939392, 0.3092345595359802, -0.3060750663280487, 0.3872092366218567, -0.11957522481679916, -0.3658674657344818, -1.1164438724517822, 0.13751950860023499, -0.7858043313026428, -0.16486115753650665, 1.347780466079712, -0.301471084356308, 0.10303836315870285, -0.2097223401069641, 0.060227490961551666, -0.06756129860877991, -0.00005881749530090019, 0.9193102717399597, 0.6674565672874451, 0.02546459436416626, 0.13502568006515503, -0.8274663686752319, 0.6711643934249878, 0.42041829228401184, -0.9626316428184509, 0.14178459346294403, 0.2630625367164612, 0.32993045449256897, -0.2725304365158081, 1.170439600944519, -0.6220605373382568, 0.22795478999614716, -0.23716451227664948, -0.28304317593574524, 0.10035908222198486, -0.26348021626472473, -0.47856542468070984, 0.21786130964756012, 0.09379113465547562, 0.0766792967915535 ]
http://arxiv.org/abs/2405.19561v1
http://arxiv.org/pdf/2405.19561v1
Quo Vadis ChatGPT? From Large Language Models to Large Knowledge Models
2024-05-29T23:06:54
2024-05-29T23:06:54
Venkat Venkatasubramanian, Arijit Chakraborty
cs.AI
cs.AI, cs.CL, I.2.0; I.2.7
The startling success of ChatGPT and other large language models (LLMs) using transformer-based generative neural network architecture in applications such as natural language processing and image synthesis has many researchers excited about potential opportunities in process systems engineering (PSE). The almost human-like performance of LLMs in these areas is indeed very impressive, surprising, and a major breakthrough. Their capabilities are very useful in certain tasks, such as writing first drafts of documents, code writing assistance, text summarization, etc. However, their success is limited in highly scientific domains as they cannot yet reason, plan, or explain due to their lack of in-depth domain knowledge. This is a problem in domains such as chemical engineering as they are governed by fundamental laws of physics and chemistry (and biology), constitutive relations, and highly technical knowledge about materials, processes, and systems. Although purely data-driven machine learning has its immediate uses, the long-term success of AI in scientific and engineering domains would depend on developing hybrid AI systems that use first principles and technical knowledge effectively. We call these hybrid AI systems Large Knowledge Models (LKMs), as they will not be limited to only NLP-based techniques or NLP-like applications. In this paper, we discuss the challenges and opportunities in developing such systems in chemical engineering.
[ -0.25519317388534546, -0.5204764604568481, 1.0138320922851562, 0.16914308071136475, 0.1638832837343216, 0.6774337887763977, -0.1421041339635849, -0.341760516166687, 0.011279783211648464, 0.38010698556900024, -0.42355263233184814, -0.20243185758590698, -0.6390243172645569, -0.03940877318382263, -0.5099284648895264, 1.0786908864974976, -0.3428913652896881, 0.15326310694217682, -0.18430081009864807, 0.3547177314758301, -0.05777066946029663, -0.7786778211593628, -0.673555314540863, -0.532009482383728, 0.21066275238990784, -0.009547265246510506, 0.4518071115016937, -0.06852101534605026, 0.3782331943511963, 0.35842615365982056, -0.23794864118099213, 0.3149709105491638, -0.3347601592540741, 0.26666539907455444, -0.17524860799312592, -0.3741985857486725, -0.27733954787254333, 0.038514625281095505, 0.4124612510204315, 1.029032588005066, -0.008033321239054203, -0.21162158250808716, 0.22849369049072266, 0.6252838373184204, -0.3997640609741211, 0.5388237833976746, -0.5414720177650452, 0.3580740690231323, 0.23928317427635193, -0.005218757316470146, -0.24349457025527954, -0.06835594773292542, 0.2797555923461914, -0.6814826726913452, 0.2646673917770386, 0.0037354519590735435, 0.8010108470916748, 0.21720176935195923, -0.3027263581752777, -0.09734218567609787, -1.3007316589355469, 0.6671281456947327, -0.6889141201972961, 0.3708325922489166, -0.15208259224891663, 0.5394107699394226, -0.5720744132995605, -0.8656969666481018, -0.7120980024337769, -0.3896898627281189, 0.11761914193630219, 0.1836448311805725, 0.0836886465549469, 0.3614995777606964, 0.13941681385040283, 0.5579599142074585, -0.5079643726348877, 0.0066281468607485294, -0.6442611813545227, -0.39974674582481384, 0.5126447081565857, 0.1793631762266159, 0.20484407246112823, 0.18139469623565674, -0.36468037962913513, 0.056863389909267426, -0.39493343234062195, -0.37029728293418884, 0.032149724662303925, 0.13312454521656036, 0.10526406764984131, 0.784026026725769, -0.20592191815376282, 0.2770107686519623, -0.17200519144535065, 0.05396508052945137, -0.1037912592291832, -0.26017552614212036, -0.4302102327346802, -0.22855640947818756, 0.9584247469902039, -0.3580789566040039, 0.28385981917381287, -0.34099867939949036, -0.20097817480564117, 0.43586358428001404, 0.2960056960582733, -0.48394426703453064, -0.2543879449367523, 0.17945082485675812, -0.2112904191017151, -0.197854682803154, -0.010376793332397938, -0.5435646176338196, -0.6178532838821411, -0.6117156147956848, 0.3561142086982727, -0.5110769867897034, -0.26190871000289917, 0.14850692451000214, -0.36729416251182556, 0.34550970792770386, 0.3865451216697693, -0.8071799874305725, 0.3594802916049957, 1.0014008283615112, 0.9022674560546875, -0.22450339794158936, -0.23492345213890076, 0.12455008924007416, 0.12200106680393219, -0.20174537599086761, 0.5736520290374756, -0.40637654066085815, -0.6152224540710449, -0.2297481894493103, -0.16668978333473206, -0.08889849483966827, -0.7772035598754883, 0.42147502303123474, -0.6482160091400146, -0.054985467344522476, 0.06572455167770386, -0.5895293951034546, -0.016547808423638344, -0.05198546499013901, -0.28386321663856506, 0.8885260224342346, -0.055068422108888626, -0.4993416666984558, 0.11596602201461792, -0.7860578298568726, -0.5292659997940063, 0.026278965175151825, -0.4295218884944916, -0.20638148486614227, 0.2528703212738037, -0.23580320179462433, 0.6523581743240356, -0.519620954990387, 0.379924476146698, -0.36182069778442383, 0.08739069104194641, 0.25622856616973877, -0.30588555335998535, 0.4355207681655884, 0.3923853039741516, -0.22747163474559784, 0.21221911907196045, -0.7825722694396973, -0.1281486302614212, 0.07899719476699829, -0.41145843267440796, 0.014830426312983036, 0.16337861120700836, 0.1629093438386917, 0.4533087909221649, 0.2848750054836273, -0.5306211113929749, 0.19163021445274353, -0.1758461594581604, 0.9376925826072693, 0.8965328931808472, -0.004998739808797836, 0.5459089875221252, -0.1866406947374344, 0.6147623062133789, 0.04680698364973068, -0.012047984637320042, -0.1311759203672409, -0.5473119020462036, -0.9964834451675415, -0.24275709688663483, 0.0007964203832671046, 0.7714627981185913, -1.1084755659103394, 0.47714534401893616, -0.28994011878967285, -0.6436594724655151, -0.14074426889419556, 0.3025185465812683, -0.043393563479185104, 0.3698804974555969, 0.09806106239557266, -0.14739301800727844, -0.56266850233078, -1.2899061441421509, -0.10602286458015442, -0.19781173765659332, -0.24565914273262024, 0.002793575171381235, 0.6462002992630005, -0.19597874581813812, 0.9850219488143921, -0.447721928358078, 0.04582066461443901, -0.256879597902298, 0.04697798192501068, 0.45018869638442993, 0.3674646019935608, 0.025105644017457962, -0.8891847729682922, -0.3763834536075592, 0.38509637117385864, -1.0344648361206055, 0.11590000987052917, 0.022312792018055916, -0.18669471144676208, 0.10818804055452347, 0.7230002284049988, -1.0020371675491333, 0.06212025508284569, 0.4937969446182251, -0.059286151081323624, 0.7429318428039551, -0.273587167263031, -0.020930616185069084, -1.065484881401062, 0.18131385743618011, 0.39432352781295776, -0.12810245156288147, -0.7572598457336426, -0.11312869191169739, -0.26964735984802246, -0.678370475769043, -0.39936596155166626, 0.38284236192703247, -0.2412860244512558, 0.02286328189074993, -0.49556586146354675, -0.2303861677646637, -0.24294789135456085, 0.5117474794387817, 0.1520882099866867, 0.8293336033821106, 0.6836458444595337, -0.6280307769775391, 0.515133798122406, -0.003803141415119171, -0.3571992516517639, 0.49332860112190247, -0.7417531609535217, 0.08279173821210861, -0.07256701588630676, 0.4102964699268341, -0.784020721912384, -0.26076382398605347, -0.018138056620955467, -0.2400013655424118, 0.42649298906326294, 0.08084587752819061, -0.6691111922264099, -0.5624036192893982, 0.09654434025287628, 0.2340569645166397, 0.5747179985046387, -0.268559992313385, 0.8093401789665222, 0.4030948877334595, -0.39459726214408875, -0.15693575143814087, -0.41025957465171814, 0.08686331659555435, -0.06317979842424393, -0.9834674596786499, 0.23377086222171783, 0.05208906903862953, -0.18307091295719147, -0.11552875488996506, -0.34320664405822754, -0.16964568197727203, 0.0242096446454525, 0.25319209694862366, 0.41874778270721436, -0.321842223405838, 0.10794617980718613, 0.028345704078674316, -0.3094903230667114, 0.087873674929142, -0.6604022979736328, 0.6761906147003174, -0.35540661215782166, -0.34293246269226074, -0.6780614852905273, 0.5151366591453552, 1.1864327192306519, -0.08956164866685867, 0.9553436040878296, 0.30884310603141785, -0.40520673990249634, -0.34185364842414856, -0.35549017786979675, -0.31687024235725403, -0.5083078145980835, 0.556003212928772, -0.2635436952114105, -0.9548981785774231, 0.5288441777229309, -0.5064566731452942, 0.03268972039222717, 0.6136455535888672, 0.5166099071502686, -0.3910527229309082, 0.7869362235069275, 0.791138768196106, -0.22371821105480194, 0.2639429271221161, -0.3620319664478302, 0.7849199771881104, -0.6072093844413757, -0.13556033372879028, -0.3524843156337738, -0.36530235409736633, -0.610611617565155, -0.3761276602745056, 0.8570834398269653, 0.03860509768128395, -0.5006099343299866, 0.1261213719844818, -0.31453725695610046, 0.2905665338039398, 0.6198820471763611, 0.02689185179769993, 0.34589892625808716, 0.04630383849143982, -0.05917977914214134, 0.21142707765102386, -0.9726725816726685, -0.7751016616821289, 0.8075529336929321, 0.39413100481033325, 0.7104687690734863, -0.3547353446483612, 0.3904278874397278, 0.4763508141040802, 0.03209817782044411, -0.9695996642112732, 0.7090137600898743, -0.04407132416963577, -0.6079581379890442, -0.2195977121591568, -0.43578583002090454, -0.6251611709594727, 0.24419960379600525, -0.3104906678199768, -0.4727344512939453, 0.03168484568595886, 0.058769285678863525, -0.3203786611557007, 0.6556848287582397, -0.8610497713088989, 0.662291407585144, -0.29403531551361084, -0.18830373883247375, -0.2515983283519745, -0.5245507955551147, 0.36456167697906494, -0.24980750679969788, 0.2732539474964142, 0.1491335779428482, 0.000694331421982497, 0.6218369007110596, -0.7074490189552307, 1.0107585191726685, 0.09316477179527283, -0.3024274706840515, 0.26414838433265686, 0.07032117992639542, 0.4125005602836609, -0.2985609471797943, -0.04854320362210274, 0.09160419553518295, 0.09116267412900925, -0.5352934002876282, -0.5857440233230591, 0.7146684527397156, -0.7615096569061279, -0.7025370597839355, -0.5637767314910889, -0.4144696295261383, -0.58228600025177, 0.029598725959658623, 0.19416193664073944, -0.33761587738990784, -0.21510861814022064, -0.022154130041599274, 0.8503854870796204, -0.453599750995636, 0.20380938053131104, 0.18483053147792816, -0.06742405146360397, -0.18987290561199188, 1.0884488821029663, 0.057821109890937805, 0.3730955123901367, 0.2033909559249878, -0.11523289978504181, 0.2276839166879654, -0.4379130005836487, -0.11861948668956757, 0.3831748366355896, -0.6508112549781799, 0.10379558056592941, -0.538330614566803, -0.8254185914993286, -0.33113572001457214, -0.19870299100875854, -0.6664397716522217, -0.5429694056510925, -0.15618771314620972, -0.010869618505239487, 0.17184913158416748, 0.8203684687614441, 0.148569718003273, 0.13998766243457794, -0.7705246210098267, 0.2924332916736603, 0.3901762068271637, 0.3813330829143524, 0.0458349846303463, -0.246585875749588, -0.15671253204345703, 0.033875077962875366, -0.6920819282531738, -0.6682162284851074, 0.15051187574863434, 0.04729841649532318, 0.5855124592781067, 0.2130439132452011, -0.22525866329669952, 0.010232893750071526, -0.6328257918357849, 0.8092056512832642, 0.19901178777217865, -0.8482235670089722, 0.5091759562492371, -0.5151391625404358, -0.035104356706142426, 0.0659007877111435, 0.585105836391449, -0.8351321220397949, -0.2059873789548874, -0.6148028373718262, -0.9753397107124329, 0.31232908368110657, 0.3878520131111145, 0.10185009986162186, 0.3890097141265869, 0.44257107377052307, 0.22334155440330505, 0.21324500441551208, -0.5251955986022949, -0.2076108455657959, 0.16414158046245575, -0.22819659113883972, -0.0018707135459408164, 0.14254693686962128, 0.05136385187506676, -0.19784528017044067, 1.2608411312103271, -0.02996283583343029, 0.16895456612110138, 0.12486573308706284, 0.21440881490707397, 0.1834978461265564, 0.43157392740249634, 0.5506794452667236, 0.41235315799713135, 0.23268571496009827, -0.11109649389982224, -0.038508739322423935, -0.3457111120223999, 0.30023032426834106, 0.06534484028816223, -0.10362900048494339, -0.4072470963001251, 0.20692145824432373, 0.8145576119422913, -0.2224457859992981, -0.6368942856788635, 0.07495640218257904, 0.3587998151779175, -0.3034800887107849, -0.37631940841674805, 0.2706563472747803, 0.13552682101726532, 0.5083106160163879, 0.47270235419273376, 0.20853979885578156, -0.08261771500110626, -0.8703046441078186, -0.10745934396982193, 0.4685402810573578, -0.22494658827781677, -0.289596825838089, 0.6240524053573608, 0.28003448247909546, -0.22004973888397217, 0.5216012001037598, 0.0633981004357338, -0.7430574893951416, 0.578529417514801, 0.24646972119808197, 0.7670281529426575, -0.12489329278469086, 0.23327934741973877, -0.07712479680776596, 0.3211398422718048, -0.15458953380584717, 0.03889175131917, -0.018464908003807068, -0.768429160118103, -0.44936996698379517, -0.7182795405387878, -0.46336665749549866, 0.43083953857421875, -0.05119844898581505, 0.21063648164272308, -0.8637465834617615, -0.16808810830116272, 0.24325375258922577, -0.29422569274902344, -0.6156316995620728, -0.06569992005825043, 0.2847020626068115, 0.7297291159629822, -1.0921205282211304, 0.5821623206138611, 0.7907127737998962, -0.34098124504089355, -0.40754735469818115, -0.35479113459587097, 0.06581614166498184, -0.597078263759613, 0.7007886171340942, -0.2903241217136383, 0.025097891688346863, -0.2540651559829712, -0.6495094299316406, -0.7262906432151794, 0.9843631982803345, 0.42944690585136414, -0.5995673537254333, -0.379572331905365, 0.3928212821483612, 0.9197354316711426, -0.0625835582613945, -0.15735554695129395, 0.6556304693222046, 0.40919584035873413, 0.13498683273792267, -1.2264039516448975, -0.24342277646064758, -0.5101597905158997, 0.07204858213663101, 0.3158998489379883, -0.8489491939544678, 0.5645546317100525, 0.08590242266654968, -0.19928526878356934, 0.07882121950387955, 0.8500790596008301, 0.32628440856933594, 0.2676534056663513, 0.10309464484453201, 0.49254724383354187, 0.5309013724327087, -0.1767413318157196, 1.1545674800872803, -0.09089358150959015, 0.1809869259595871, 0.9198803901672363, -0.5265318155288696, 0.6116532683372498, 0.6986599564552307, -0.6248162984848022, 0.35390475392341614, 0.5302842259407043, 0.03357100114226341, 0.16819079220294952, 0.5455105304718018, -0.6495526432991028, -0.48154813051223755, -0.009181225672364235, -0.2910199463367462, 0.2764987647533417, 0.6818093061447144, -0.5019212961196899, -0.10001514106988907, 0.12016447633504868, -0.37469178438186646, -0.011100150644779205, -0.12838080525398254, 0.6360868215560913, 0.48821720480918884, -0.3739231824874878, 0.29057058691978455, -0.006582203321158886, 0.6258718371391296, -0.6156660914421082, -0.05627111345529556, 0.09386584907770157, 0.13314609229564667, -0.04066354036331177, -0.7631346583366394, 0.2793934643268585, -0.15777508914470673, -0.39290106296539307, -0.25481802225112915, 0.7356753349304199, -0.0332757867872715, -0.6967492699623108, 0.07938314229249954, 0.5952025651931763, 0.0411827489733696, -0.18220125138759613, -0.4907335937023163, -0.26081910729408264, -0.263141006231308, -0.056322768330574036, 0.16614164412021637, 0.46768924593925476, -0.04375085607171059, 0.9579194188117981, 0.5500218272209167, 0.30031663179397583, 0.15361280739307404, -0.2649209201335907, 0.9442614316940308, -0.5121523141860962, -0.3738185167312622, -0.6267579197883606, 0.39829370379447937, 0.13436312973499298, 0.24348780512809753, 0.33499178290367126, 0.5942797064781189, 0.6799377799034119, -0.18044553697109222, 1.3788024187088013, -0.05668463185429573, 0.3679756820201874, -0.5000817775726318, 0.7908346652984619, -0.2901594638824463, 0.32132476568222046, -0.17783018946647644, -1.052899956703186, -0.10680332779884338, 0.29009658098220825, -0.4475349187850952, 0.22257477045059204, 0.6951920986175537, 0.6395952701568604, -0.31017813086509705, 0.3080480694770813, 0.26904478669166565, 0.4985794126987457, 0.6217939853668213, 0.8005611300468445, 0.9792458415031433, -0.22790516912937164, 0.28863468766212463, -0.05187011510133743, -0.26269298791885376, 0.10857683420181274, -0.6109074950218201, -0.6687668561935425, -0.8501570224761963, -0.170648992061615, -0.26329585909843445, -0.1785869151353836, 0.7815516591072083, 0.765768826007843, -0.8324252367019653, -0.30883947014808655, -0.4317028820514679, -0.20613770186901093, 0.27902501821517944, -0.23475821316242218, 0.16891911625862122, -0.24068766832351685, -0.5508140325546265, 0.5082577466964722, 0.5697082281112671, 0.20307622849941254, -0.46987515687942505, -0.07679568976163864, -0.1584460586309433, 0.03291165083646774, 0.7874013185501099, 0.685430109500885, -0.5091506242752075, -0.011190887540578842, -0.005590458400547504, 0.06959811598062515, 0.023497000336647034, 0.988701343536377, -0.7297214865684509, 0.16186600923538208, 0.5549930334091187, 0.950309157371521, 0.7058106660842896, -0.49199917912483215, 1.0087374448776245, -0.2531278133392334, 0.044606249779462814, 0.4055497646331787, 0.5243807435035706, 0.33771660923957825, -0.22421151399612427, 0.36307206749916077, 0.420871376991272, -0.6898263096809387, -0.3905316889286041, 0.3565356135368347, -1.00619637966156, -0.30923694372177124, 0.9301573634147644, 0.1477748304605484, -0.11637340486049652, -0.006735568400472403, -0.3682999014854431, 0.4545438587665558, -0.2557523250579834, 0.9176305532455444, 0.9246900081634521, -0.45728185772895813, 0.11250757426023483, -0.7480974197387695, 0.33957457542419434, 0.6682597994804382, -1.006514310836792, -0.05101185664534569, 0.42913419008255005, 0.23939166963100433, 0.47466346621513367, 0.20851477980613708, -0.03957127034664154, 0.03564134240150452, -0.2103547602891922, 0.04664517939090729, 0.2262296974658966, -0.3642100691795349, -0.06453501433134079, 0.21732380986213684, -0.03051109053194523, 0.19374138116836548 ]
http://arxiv.org/abs/2406.00061v1
http://arxiv.org/pdf/2406.00061v1
STAT: Shrinking Transformers After Training
2024-05-29T22:59:11
2024-05-29T22:59:11
Megan Flynn, Alexander Wang, Dean Edward Alvarez, Christopher De Sa, Anil Damle
cs.LG
cs.LG, cs.AI, cs.CL
We present STAT: a simple algorithm to prune transformer models without any fine-tuning. STAT eliminates both attention heads and neurons from the network, while preserving accuracy by calculating a correction to the weights of the next layer. Each layer block in the network is compressed using a series of principled matrix factorizations that preserve the network structure. Our entire algorithm takes minutes to compress BERT, and less than three hours to compress models with 7B parameters using a single GPU. Using only several hundred data examples, STAT preserves the output of the network and improves upon existing gradient-free pruning methods. It is even competitive with methods that include significant fine-tuning. We demonstrate our method on both encoder and decoder architectures, including BERT, DistilBERT, and Llama-2 using benchmarks such as GLUE, Squad, WikiText2.
[ -0.7197254300117493, -0.5411937236785889, 0.027701519429683685, 0.08557400852441788, -0.434557169675827, -0.013979589566588402, -0.4868970513343811, -0.10329815000295639, 0.32893192768096924, 0.43265512585639954, -1.039556860923767, -0.07431989163160324, -0.5256763100624084, -0.0038821951020509005, -0.6250237822532654, 1.1546978950500488, 0.3247842490673065, 0.016461081802845, 0.01661849580705166, 0.06591632962226868, -0.4837140440940857, -0.21297089755535126, -0.9611476063728333, -0.531754195690155, 0.49493634700775146, 0.5593665242195129, 0.46312132477760315, 0.5419535040855408, 0.9006415605545044, 0.306501179933548, -0.4269419312477112, 0.3256196677684784, -1.1420938968658447, 0.05038047209382057, 0.33101803064346313, -0.621168851852417, -0.3395460546016693, -0.19881850481033325, 0.6739391088485718, 0.4879031777381897, -0.0722656324505806, 0.4896674156188965, 0.134942427277565, 0.9111655950546265, -0.398255854845047, 0.17692948877811432, -0.5994704961776733, 0.1748020052909851, 0.15620139241218567, -0.47952014207839966, -0.81841641664505, -0.38656967878341675, -0.17914852499961853, -0.3229019045829773, 1.0943516492843628, -0.16108086705207825, 1.159929633140564, 0.9054181575775146, -0.12273023277521133, 0.6705690622329712, -0.976798415184021, 0.9040857553482056, -0.1185249537229538, 0.38334575295448303, 0.23890843987464905, 0.5243011116981506, -0.006566522177308798, -0.7520690560340881, -0.2888202965259552, 0.04577667638659477, -0.2812494933605194, 0.2005973607301712, -0.238600492477417, 0.13955573737621307, 0.46004316210746765, 0.4161125421524048, -0.3432130217552185, -0.06291436403989792, -0.9398643970489502, -0.3064850866794586, 0.5891648530960083, -0.05901312455534935, -0.011993822641670704, 0.11375033855438232, -0.37906381487846375, -0.5883085131645203, -0.9176785945892334, -0.18261747062206268, 0.3931771516799927, 0.06337031722068787, 0.25354039669036865, 0.6499201059341431, 0.18062545359134674, 0.3616337180137634, 0.3238329291343689, -0.008996298536658287, 0.1410692185163498, 0.1573813259601593, -0.5492265224456787, -0.041932057589292526, 0.6775326132774353, 0.27248382568359375, 0.38634413480758667, -0.2704894542694092, -0.08661666512489319, 0.14859700202941895, 0.7177866697311401, -0.6840111017227173, -0.603008508682251, 0.15403765439987183, -0.6886628866195679, -0.2543081045150757, -0.12034925818443298, -0.6710378527641296, -0.07855058461427689, -0.37045037746429443, 0.43948298692703247, -0.5705342292785645, -0.09266023337841034, -0.07818859815597534, -0.49393126368522644, 0.2925857901573181, 0.3780575692653656, -0.6847424507141113, 0.4899452328681946, 0.7869936227798462, 0.7313054800033569, 0.12375791370868683, -0.09340860694646835, -0.4193420708179474, -0.0637609139084816, -0.22694210708141327, 0.5218473672866821, -0.019894419237971306, -0.3945849537849426, -0.40804776549339294, 0.17721086740493774, -0.06459294259548187, -0.4039261043071747, 0.8791003823280334, -0.584567666053772, -0.10820434242486954, -0.13542011380195618, -0.4485187530517578, -0.2863384783267975, 0.07238151878118515, -0.9952473044395447, 0.8131260275840759, 0.05199776962399483, -0.8238292336463928, 0.25123295187950134, -0.5271390676498413, -0.4256167411804199, -0.17881210148334503, 0.29181772470474243, -0.85894376039505, 0.5232194662094116, 0.32298988103866577, 0.38835981488227844, -0.29416149854660034, 0.07825887948274612, -0.010700590908527374, -0.5692487955093384, -0.15782347321510315, -0.5695206522941589, 0.8641916513442993, 0.17325277626514435, -0.06066005676984787, 0.1583472043275833, -0.4118921756744385, 0.02719731442630291, 0.3490084111690521, -0.1792987734079361, 0.10699795931577682, 0.18075348436832428, -0.05047328770160675, -0.041115280240774155, 0.07258779555559158, -0.6873359084129333, 0.2642669975757599, -0.36518245935440063, 0.5383590459823608, 0.7717922925949097, -0.1150137186050415, 0.474030077457428, -0.3766849935054779, 0.28005313873291016, -0.17785146832466125, 0.45330676436424255, 0.19377268850803375, -0.3151124119758606, -1.2532960176467896, -0.4645318388938904, 0.3433802127838135, 0.03187056630849838, -0.48487037420272827, 0.5775744915008545, -0.8487030863761902, -0.7011337280273438, -0.4329048693180084, -0.1253894716501236, 0.05184587091207504, 0.47464194893836975, 0.4881190061569214, -0.36677274107933044, -0.48104923963546753, -1.2761503458023071, 0.03713555261492729, -0.08842748403549194, -0.4010639488697052, -0.05588306114077568, 0.35112807154655457, 0.0780225545167923, 0.9854500889778137, -0.8038235902786255, -0.5897014737129211, -0.4384455978870392, 0.22734424471855164, 0.18661054968833923, 0.5805296897888184, 0.45871323347091675, -0.7267214059829712, -0.33162543177604675, -0.1556156724691391, -0.3666188716888428, 0.41356998682022095, 0.05043673887848854, 0.10476647317409515, -0.30594319105148315, 0.1310359090566635, -1.0022164583206177, 0.6845404505729675, 0.303730309009552, 0.11696310341358185, 0.596393883228302, -0.3049204647541046, -0.12632183730602264, -0.49797719717025757, 0.19211263954639435, 0.17806950211524963, -0.32963430881500244, -0.8891395330429077, -0.025467457249760628, 0.27925577759742737, -0.5619426369667053, -0.3408006727695465, 0.13110403716564178, -0.5525954365730286, -0.0033620360773056746, 0.05419054999947548, -0.4764929711818695, 0.02632807195186615, 0.878820538520813, -0.10024265199899673, 0.769609808921814, 0.34118929505348206, -0.7404653429985046, -0.0603436678647995, 0.5629907250404358, -0.34773656725883484, 0.004172923509031534, -0.7968736290931702, 0.2805687487125397, -0.6094825863838196, 0.509017825126648, -0.7327840924263, -0.1396682858467102, 0.20226871967315674, -0.48150208592414856, 0.6783753037452698, -0.36024439334869385, -0.3646095097064972, -0.7342015504837036, -0.35467958450317383, 0.1890205293893814, 0.8771665096282959, -0.5723276138305664, 0.5092023015022278, 0.32899636030197144, 0.2375912219285965, -0.5988914966583252, -0.7387006878852844, -0.12924936413764954, -0.22043609619140625, -0.4448564946651459, 0.5110380053520203, -0.18049107491970062, 0.05844217538833618, 0.04075591266155243, -0.41896912455558777, -0.5920563340187073, 0.09933330863714218, 0.03172878548502922, 0.19341862201690674, -0.050275273621082306, 0.10379981249570847, 0.07511907070875168, -0.193876251578331, -0.04281487688422203, -0.00346553698182106, 0.7302080392837524, 0.11695709824562073, -0.2464369535446167, -0.6247366070747375, 0.1584877222776413, 0.7572887539863586, -0.28306809067726135, 0.6547735333442688, 0.8580988049507141, -0.16666743159294128, -0.4437299966812134, -0.5204975008964539, -0.6613213419914246, -0.5597174763679504, 0.38517752289772034, -0.20326896011829376, -0.6225959062576294, 0.3115905821323395, -0.016956090927124023, 0.2745579481124878, 0.5955467224121094, 0.2684006690979004, -0.05755050480365753, 1.0247552394866943, 0.9569534063339233, -0.163969025015831, 0.6874410510063171, -0.8350222110748291, 0.6294550895690918, -0.7951027750968933, 0.021560389548540115, -0.5554412007331848, -0.7504481673240662, -0.1510322093963623, -0.5310203433036804, 0.5409953594207764, -0.06689725071191788, -0.2462746798992157, 0.6026281118392944, -1.1694570779800415, 0.6983041167259216, 0.4721420705318451, 0.5458043217658997, -0.20214547216892242, 0.4717652201652527, 0.5850138664245605, -0.001818487304262817, -0.9219961166381836, 0.005427666008472443, 1.0263264179229736, 0.5034980773925781, 0.6319690346717834, -0.12947365641593933, 0.6726647615432739, 0.26685431599617004, 0.5556148290634155, -1.2181262969970703, 0.7407993674278259, -0.346833199262619, -0.5117319226264954, -0.6257087588310242, -0.7376018166542053, -0.9132825136184692, 0.04193434491753578, 0.13791169226169586, -0.8189842700958252, 0.3814839720726013, 0.3407403528690338, -0.23606915771961212, 0.6036388874053955, -0.7637320756912231, 0.24889102578163147, 0.18088184297084808, -0.09824930131435394, -0.5976475477218628, -0.6237494945526123, 0.5200037956237793, 0.01760542206466198, -0.39524608850479126, -0.27804791927337646, 0.40746036171913147, 0.8466931581497192, -0.8553454875946045, 0.7845444083213806, -0.23203761875629425, 0.25448882579803467, 0.4568868577480316, 0.14095117151737213, 0.5696224570274353, -0.44298431277275085, 0.0028801648877561092, 0.3666097819805145, -0.32608696818351746, -0.25064125657081604, -0.5915008187294006, 0.39432841539382935, -0.7794873118400574, -0.4524158835411072, 0.05561593174934387, -0.5738186240196228, -0.062392089515924454, 0.006402591243386269, 0.3866133689880371, 0.6637416481971741, -0.19626955687999725, 0.4733521044254303, 0.7760754823684692, 0.04818454757332802, 0.4639164209365845, 0.038566507399082184, 0.5478090047836304, -0.3493501842021942, 1.034758448600769, 0.22280193865299225, 0.12210717797279358, 0.5159534811973572, 0.17507345974445343, -0.2839815318584442, -0.2708941400051117, -0.06407114863395691, 0.35598766803741455, -0.6306787729263306, -0.6698424816131592, -0.4527466893196106, -0.46464502811431885, -0.2098269909620285, 0.01727861724793911, -0.6303935050964355, -0.60721355676651, -0.15728460252285004, 0.08458564430475235, 0.3693377673625946, 0.5460101366043091, -0.10730930417776108, 0.7511711120605469, -0.8095680475234985, 0.49099138379096985, 0.20960786938667297, 0.286079078912735, 0.2040398120880127, -0.4136218726634979, -0.22626592218875885, 0.06759419292211533, -0.27941301465034485, -0.621222972869873, 0.7937228679656982, 0.36248475313186646, 0.357355535030365, 0.5029258131980896, 0.15700945258140564, 0.7678065896034241, -0.7609228491783142, 0.5239052176475525, 0.6472465395927429, -0.7558131814002991, 0.29183152318000793, 0.025038812309503555, 0.09984023869037628, 0.415382981300354, 0.09545762836933136, -0.1777566373348236, -0.19757218658924103, -0.7334991693496704, -0.8167364001274109, 0.9132282137870789, 0.43198394775390625, -0.0763220265507698, 0.040963929146528244, 0.12612910568714142, -0.1167941689491272, 0.1250002384185791, -0.2784115970134735, -0.5325710773468018, -0.30644285678863525, -0.335695743560791, -0.2241852581501007, -0.3864388167858124, -0.4951304495334625, -0.6828972101211548, 0.5561991333961487, -0.03732109069824219, 0.9253250956535339, 0.33887597918510437, -0.4242621064186096, -0.016398053616285324, 0.02231130376458168, 0.4866824448108673, 0.5227402448654175, -0.43698281049728394, 0.04627389460802078, 0.18567746877670288, -0.6468116044998169, 0.3450135588645935, -0.13325375318527222, -0.27513018250465393, 0.16505275666713715, 0.06077614054083824, 0.7917191386222839, 0.3186299800872803, -0.127851665019989, 0.34944936633110046, -0.44940489530563354, -0.38985198736190796, -0.14225126802921295, 0.07832355052232742, -0.3903883993625641, -0.250609815120697, 0.45334795117378235, 0.6780620217323303, -0.07994046807289124, 0.10671161860227585, 0.3373499810695648, 0.2362728863954544, -0.5481048226356506, -0.4732324779033661, 0.7304298877716064, 0.22818011045455933, -0.34312644600868225, 0.6201486587524414, 0.13159699738025665, -0.5090471506118774, 0.9445040822029114, 0.4344886541366577, 1.1577136516571045, -0.12622040510177612, 0.402898371219635, 0.5939412117004395, 0.6056194305419922, -0.4700792729854584, -0.12780271470546722, -0.12200629711151123, -0.6775757670402527, -0.6590760946273804, -0.5029305219650269, -0.10119660198688507, 0.044357169419527054, -0.8515262007713318, 0.34562942385673523, -0.6393035054206848, -0.3647432029247284, 0.06966042518615723, 0.02800605073571205, -1.1368334293365479, 0.30697399377822876, -0.19159579277038574, 1.1537652015686035, -0.8177131414413452, 0.8914759159088135, 0.3260062038898468, -0.27447766065597534, -0.8297210335731506, -0.10444602370262146, -0.17550501227378845, -0.6323498487472534, 0.6815742254257202, 0.2178163379430771, -0.051761627197265625, 0.35277849435806274, -0.751420259475708, -0.8669794797897339, 0.9353711605072021, 0.6949060559272766, -0.582817018032074, 0.024314751848578453, -0.2664596736431122, 0.42735549807548523, 0.2968220114707947, 0.3897272050380707, 0.6964603066444397, 0.5595640540122986, -0.12704110145568848, -0.6120611429214478, -0.20831364393234253, -0.20624485611915588, -0.3504527807235718, 0.476939857006073, -0.9505897164344788, 0.7813764810562134, -0.07448169589042664, -0.6239659786224365, -0.17584453523159027, 0.5772663950920105, -0.3853866159915924, -0.29423755407333374, 0.8152645826339722, 0.6148000955581665, 0.8419400453567505, -0.31919360160827637, 1.043673038482666, -0.45855578780174255, 0.7783929705619812, 0.7948551774024963, 0.13974256813526154, 0.3786235451698303, 0.5228608250617981, -0.1625513881444931, -0.08208585530519485, 0.48296958208084106, -0.24134787917137146, 0.5571885704994202, 0.01998140662908554, 0.06001412123441696, -0.2740774154663086, -0.16286727786064148, -0.2046954333782196, 0.33161523938179016, 0.15604907274246216, -0.10253679752349854, -0.35648784041404724, -0.40461382269859314, -0.010078798979520798, -0.48451998829841614, -0.3476570248603821, 0.6087095141410828, 0.016571348533034325, -0.6121761798858643, 0.8549897074699402, -0.11563054472208023, 0.30673450231552124, -0.8092222809791565, 0.11363542079925537, -0.26608744263648987, 0.2592688500881195, -0.13556747138500214, -0.43792015314102173, 0.48717206716537476, -0.25143927335739136, -0.38486549258232117, -0.5340202450752258, 1.0292543172836304, -0.3440103828907013, -0.5439304709434509, 0.09710179269313812, 0.23037494719028473, 0.2182987481355667, 0.06640241295099258, -0.33082640171051025, 0.07131114602088928, 0.30507612228393555, -0.3778761625289917, 0.12005803734064102, 0.10252682864665985, 0.28599247336387634, 0.9958622455596924, 0.6325610280036926, 0.12992382049560547, -0.03256019949913025, 0.17273102700710297, 1.1401121616363525, -0.4181070029735565, -0.21198946237564087, -0.49488523602485657, 0.5159266591072083, -0.32875221967697144, -0.24816389381885529, 0.5818703174591064, 0.3944929838180542, 0.420411616563797, -0.3275775611400604, 0.41370889544487, -0.08233770728111267, 0.20432902872562408, -0.08338231593370438, 0.9515531063079834, -0.4614886939525604, 0.0562153160572052, 0.09695286303758621, -0.9790346026420593, -0.2950322926044464, 0.4389284551143646, -0.14154885709285736, -0.41729578375816345, 0.7403743267059326, 0.7279209494590759, -0.3215842843055725, -0.18693605065345764, 0.35619187355041504, 0.11202133446931839, 0.33874648809432983, 0.19193032383918762, 0.44837144017219543, -0.5449495315551758, 0.7983788251876831, -0.5895784497261047, -0.08689513802528381, -0.21171873807907104, -0.4367634654045105, -0.9352067112922668, -0.23020373284816742, -0.366458922624588, -0.11683885008096695, -0.17316044867038727, 0.4669730067253113, 0.9976732134819031, -0.6304171681404114, 0.02284866012632847, -0.1262625902891159, 0.32439467310905457, -0.6947253346443176, -0.23276232182979584, 0.6884435415267944, -0.3471978008747101, -0.7447040677070618, 0.6850827932357788, 0.14184747636318207, -0.22554387152194977, -0.26531317830085754, 0.06163153797388077, 0.22122405469417572, -0.020386232063174248, 0.44862228631973267, 0.26529252529144287, -0.3203945755958557, -0.5805807113647461, -0.09352456778287888, 0.31359410285949707, 0.3078066110610962, 0.9644001126289368, -0.8667058944702148, 0.3124741017818451, 0.791782557964325, 0.4385385811328888, 0.7291098833084106, 0.25663986802101135, 0.7658660411834717, -1.2023940086364746, 0.4812326729297638, 0.3281320631504059, 0.4973209798336029, 0.26532620191574097, -0.3062238395214081, 0.6967013478279114, 0.0487247072160244, -0.5935707092285156, -1.0539600849151611, 0.18411453068256378, -0.8535990715026855, -0.13523904979228973, 0.7624649405479431, -0.0772065818309784, -0.7373092174530029, 0.12696675956249237, -0.15956784784793854, 0.5580177903175354, -0.34163573384284973, 0.7809948325157166, 0.2164599448442459, 0.28116992115974426, -0.25139808654785156, -0.333617240190506, 0.6247734427452087, 0.5239370465278625, -0.37228426337242126, 0.1400989294052124, 0.27944719791412354, 0.25044459104537964, 0.21768978238105774, 0.2928750514984131, 0.1203097477555275, 0.06786870956420898, 0.1243022158741951, 0.35064539313316345, -0.05207178369164467, -0.7636496424674988, -0.42311862111091614, 0.34340161085128784, -0.5001238584518433, -0.37748482823371887 ]
http://arxiv.org/abs/2406.00060v1
http://arxiv.org/pdf/2406.00060v1
Cascade-Aware Training of Language Models
2024-05-29T22:28:46
2024-05-29T22:28:46
Congchao Wang, Sean Augenstein, Keith Rush, Wittawat Jitkrittum, Harikrishna Narasimhan, Ankit Singh Rawat, Aditya Krishna Menon, Alec Go
cs.CL
cs.CL, cs.LG
Reducing serving cost and latency is a fundamental concern for the deployment of language models (LMs) in business applications. To address this, cascades of LMs offer an effective solution that conditionally employ smaller models for simpler queries. Cascaded systems are typically built with independently trained models, neglecting the advantages of considering inference-time interactions of the cascaded LMs during training. In this paper, we present cascade-aware training(CAT), an approach to optimizing the overall quality-cost performance tradeoff of a cascade of LMs. We achieve inference-time benefits by training the small LM with awareness of its place in a cascade and downstream capabilities. We demonstrate the value of the proposed method with over 60 LM tasks of the SuperGLUE, WMT22, and FLAN2021 datasets.
[ -0.47714999318122864, -0.32620665431022644, -0.10213169455528259, 0.4001350700855255, 0.05977678671479225, 0.16504165530204773, -0.027572479099035263, -0.5509033799171448, 0.046861372888088226, 0.5232577323913574, -0.6450725793838501, -0.017523346468806267, -0.07385789602994919, -0.24207565188407898, -0.18370270729064941, 0.9822015762329102, 0.21657244861125946, 0.24406489729881287, 0.08385299891233444, -0.12308884412050247, -0.43307381868362427, -0.5457054376602173, -1.316391110420227, -0.5237239599227905, 0.5421056747436523, 0.14219024777412415, 0.7684425115585327, 0.6238235235214233, 0.3798505663871765, 0.09300606697797775, -0.20247845351696014, 0.05898435413837433, -0.3412111699581146, 0.054781850427389145, -0.3609655499458313, -0.6249573230743408, -0.49674665927886963, -0.17148639261722565, 0.5078815817832947, 0.8036230206489563, -0.3723989725112915, 0.37235158681869507, 0.26913997530937195, 0.8073975443840027, -0.9439643025398254, 0.11832280457019806, -0.6892563700675964, 0.41407763957977295, 0.009722392074763775, -0.03865288943052292, -0.6456431746482849, -0.09560397267341614, 0.11835131049156189, -0.5148348808288574, 0.12450212985277176, 0.06600815057754517, 0.7166139483451843, 0.40095779299736023, -0.23330748081207275, -0.11003118008375168, -0.7988904118537903, 0.8823545575141907, -0.5382564663887024, 0.5937241315841675, 0.4016842842102051, 0.45254167914390564, -0.30742907524108887, -0.6182783842086792, -0.3766351044178009, 0.125721737742424, -0.15585145354270935, 0.22797179222106934, 0.030652351677417755, 0.20314975082874298, 0.13779598474502563, 0.5170128345489502, -0.5333881378173828, 0.35358938574790955, 0.4180918037891388, -0.25175943970680237, 0.24067215621471405, 0.3066450357437134, 0.14105428755283356, 0.15785446763038635, -0.2862224876880646, 0.1525123566389084, -0.5050148963928223, 0.4168572425842285, -0.08755896985530853, 0.6351332068443298, 0.17751875519752502, 0.07430870085954666, -0.33822840452194214, 0.4618833661079407, 0.13102184236049652, -0.22129860520362854, -0.16738849878311157, -0.2623821794986725, -0.4416666626930237, -0.008495215326547623, 0.4217853248119354, -0.31547072529792786, 0.17351393401622772, -0.06110262870788574, -0.49238187074661255, -0.035421159118413925, 0.07242666929960251, -0.681082010269165, -0.06988120824098587, 0.3244324326515198, -0.46444183588027954, -0.23954249918460846, -0.5965712070465088, -0.1400301456451416, -0.21433773636817932, -0.2759894132614136, 0.49908286333084106, -0.17211534082889557, -0.29279202222824097, -0.028272470459342003, 0.09657546877861023, 0.1620437502861023, 0.26020970940589905, -0.9654355645179749, 0.4560711681842804, 0.6701185703277588, 0.7978219985961914, 0.24193643033504486, -0.18271444737911224, -0.9192605018615723, 0.4088224768638611, -0.5491624474525452, 0.5214441418647766, -0.3380665183067322, -0.37092679738998413, 0.041425079107284546, -0.2176085114479065, -0.10175906121730804, -0.6688957810401917, 0.4164167046546936, -0.8015586137771606, -0.07836783677339554, -0.20517264306545258, -0.4360584616661072, 0.03472120687365532, 0.1769241988658905, -0.7694170475006104, 1.3697339296340942, 0.035441264510154724, -0.9673385620117188, 0.42802903056144714, -0.2844862639904022, -0.6089655756950378, 0.14735358953475952, -0.022750698029994965, -0.49240565299987793, 0.03554769232869148, 0.4239709973335266, 0.39896389842033386, -0.13595691323280334, 0.25224578380584717, -0.1808226853609085, -0.15912380814552307, -0.15863680839538574, -0.1961948573589325, 0.8525757789611816, 0.3191874325275421, -0.26348236203193665, -0.14238712191581726, -0.696316123008728, 0.04374275356531143, -0.2438899129629135, -0.6412257552146912, -0.5555437803268433, 0.12485039979219437, -0.10965284705162048, 0.3673882484436035, 0.10833895206451416, -0.19129678606987, 0.3238307535648346, -0.38312894105911255, -0.021280014887452126, 0.649820864200592, -0.15253712236881256, 0.5403356552124023, -0.13100066781044006, 0.5916091203689575, 0.19809727370738983, 0.6608135104179382, 0.12522882223129272, -0.2233273684978485, -1.2523388862609863, -0.4661177396774292, 0.18803179264068604, 0.6117212176322937, -1.1650975942611694, 0.05311101675033569, -0.32075849175453186, -0.38065305352211, -0.4680449962615967, 0.291439414024353, 0.47625795006752014, 0.4272073209285736, 0.39188042283058167, -0.26898229122161865, -0.5386648178100586, -0.872627854347229, -0.4644048511981964, -0.10208088904619217, 0.21274586021900177, 0.20206214487552643, 0.39847004413604736, -0.059209976345300674, 1.1521600484848022, -0.3245463967323303, -0.4986095130443573, -0.5035853981971741, 0.21888071298599243, 0.1513068974018097, 0.5323779582977295, 0.2919420599937439, -0.542921781539917, -0.6656537652015686, 0.0627208799123764, -0.512954831123352, -0.08197461068630219, -0.26886746287345886, -0.2548622190952301, 0.32060763239860535, 0.45294028520584106, -0.4748886823654175, 0.25081005692481995, 0.6321294903755188, 0.42666223645210266, 0.4744311571121216, -0.16933900117874146, -0.29207542538642883, -1.0071552991867065, 0.014491874724626541, -0.11987145990133286, -0.38967403769493103, -0.8599575757980347, -0.18220598995685577, 0.09480424225330353, -0.04251087084412575, -0.43810543417930603, 0.5611712336540222, -0.6962910890579224, -0.3244723081588745, -0.15679891407489777, -0.11997220665216446, -0.15111036598682404, 0.6279703378677368, 0.45646998286247253, 0.7725759744644165, 0.7435439825057983, -0.9105672836303711, -0.33757728338241577, -0.06683126837015152, -0.2791592478752136, 0.6218996644020081, -0.3068106472492218, -0.11573931574821472, 0.06413814425468445, 0.6035553216934204, -0.5037550926208496, 0.09078236669301987, -0.047349363565444946, -0.2132960706949234, 0.19042286276817322, -0.2893140912055969, -0.33339551091194153, -0.42600685358047485, -0.10112878680229187, 0.40874412655830383, 0.4275399446487427, -0.8024225831031799, 0.6162695288658142, 0.3401534855365753, 0.15640074014663696, -1.0382473468780518, -0.9722687005996704, -0.07741988450288773, -0.0009205566602759063, -0.30676671862602234, -0.05038256198167801, 0.243162140250206, 0.2834443747997284, -0.23008833825588226, -0.22755712270736694, -0.3299406170845032, 0.18770912289619446, 0.09828269481658936, -0.15248386561870575, -0.26157346367836, 0.2281305342912674, 0.06609588116407394, -0.31416964530944824, -0.2945616543292999, -0.7591143846511841, 0.44752955436706543, 0.04700961709022522, -0.3311920762062073, -0.7989837527275085, 0.11349919438362122, 0.21939809620380402, -0.44654667377471924, 1.012850046157837, 0.6495462656021118, -0.5401022434234619, -0.7385529279708862, -0.3883664309978485, -0.20035290718078613, -0.46812760829925537, 0.11744089424610138, -0.4068707823753357, -0.7773873209953308, 0.6267217397689819, -0.08865410834550858, 0.03675329312682152, 0.13706906139850616, 0.3529919683933258, 0.13467444479465485, 1.2667334079742432, 0.7246951460838318, -0.4499836266040802, 0.7533648014068604, -0.3539443612098694, 0.4469643831253052, -0.8005889654159546, -0.17172951996326447, -0.6544040441513062, -0.014594088308513165, -0.4410025179386139, -0.5291047096252441, 0.22603608667850494, 0.36181753873825073, -0.3867412209510803, 0.28766068816185, -0.10047496110200882, 0.39212125539779663, 0.4092883765697479, 0.0017533458303660154, 0.48976626992225647, -0.045292969793081284, -0.19915887713432312, 0.16875958442687988, -1.1189134120941162, -0.26340845227241516, 0.5016114711761475, 0.36601686477661133, 0.9856288433074951, 0.1727539598941803, 0.36354413628578186, 0.2603726387023926, 0.47934380173683167, -0.7974156737327576, 0.4553270936012268, -0.11478959023952484, -0.7473641037940979, -0.24126780033111572, -0.707754373550415, -0.7029953598976135, 0.2797500491142273, 0.182953342795372, -0.6707473397254944, 0.21713939309120178, 0.5770428776741028, -0.38157373666763306, 0.49671241641044617, -0.3858887255191803, 0.604228675365448, -0.020223991945385933, -0.27802976965904236, -0.32512393593788147, -0.5072070956230164, 0.33177894353866577, -0.13304081559181213, 0.4146575629711151, 0.003376526292413473, 0.050078921020030975, 0.4174230694770813, -0.7507908940315247, 0.8673251867294312, -0.18495580554008484, -0.24303296208381653, 0.2323920726776123, 0.3635271191596985, 0.7296480536460876, -0.06384371966123581, -0.03482283279299736, -0.040635302662849426, -0.24029873311519623, -0.5039984583854675, -0.4831452965736389, 0.6397247910499573, -0.48268941044807434, -0.36987873911857605, -0.3212052583694458, -0.5009742975234985, -0.46742692589759827, 0.030830930918455124, 0.021135207265615463, 0.6275546550750732, 0.03979194909334183, -0.0687924176454544, 0.6681071519851685, -0.11851714551448822, 0.8636038899421692, 0.4733823239803314, -0.440777450799942, -0.1841113418340683, 0.758186399936676, 0.20770123600959778, 0.6549099683761597, 0.8096123337745667, 0.15003186464309692, -0.2636987566947937, -0.21553035080432892, -0.3100166320800781, -0.07389922440052032, -0.7597988843917847, -0.160154789686203, -0.5922420024871826, -0.2697603106498718, -0.03488605469465256, -0.14197216928005219, -0.7841163873672485, -0.35971763730049133, -0.21019397675991058, 0.18538057804107666, 0.026849927380681038, 0.4015358090400696, -0.1841849833726883, 0.6647772789001465, -0.5832696557044983, -0.2210380584001541, 0.4122369885444641, 0.5433974266052246, 0.6338154077529907, -0.49104803800582886, -0.8342934250831604, 0.11572501063346863, -0.16815845668315887, -0.1644418090581894, 0.20178547501564026, 0.5896084904670715, 0.6460432410240173, 0.5343016386032104, -0.08750618994235992, 0.740297257900238, -0.4325956106185913, 0.922265887260437, 0.10896903276443481, -1.2024145126342773, 0.7247567176818848, -0.19361618161201477, 0.23689374327659607, 0.4940873980522156, 0.6301482915878296, -0.6444212794303894, -0.39537709951400757, -0.37465840578079224, -0.5177920460700989, 0.7906692624092102, 0.2015819400548935, 0.005596166010946035, -0.11074243485927582, 0.21958526968955994, -0.05802951380610466, 0.10482481867074966, -0.7421740889549255, -0.13617345690727234, 0.1327800154685974, -0.010784921236336231, 0.06910048425197601, 0.0801563635468483, 0.2591261565685272, -0.28633037209510803, 1.0102022886276245, -0.29789701104164124, -0.24710047245025635, 0.026278331875801086, -0.4440268576145172, 0.13952794671058655, -0.038502808660268784, 0.3096572756767273, 0.41980722546577454, -0.009197049774229527, 0.32292887568473816, 0.4405461549758911, -0.5241617560386658, 0.17568868398666382, -0.7150723934173584, 0.05203920975327492, -0.09017011523246765, 0.2847435772418976, 0.7426577806472778, 0.1206098273396492, -0.49098145961761475, 0.38484495878219604, -0.12789374589920044, 0.3618904948234558, 0.059661101549863815, 0.06955966353416443, 0.15676076710224152, 0.16969533264636993, 0.21957755088806152, -0.03541329875588417, 0.11511801928281784, -0.24507679045200348, 0.11387061327695847, 0.5160273909568787, -0.6709524989128113, -0.17471230030059814, 0.49409472942352295, 0.15912747383117676, -0.30059531331062317, 0.41216304898262024, -0.005294427741318941, -0.5385607481002808, 0.4000336527824402, 0.5049606561660767, 0.8320324420928955, -0.5885404944419861, 0.18299497663974762, 0.1671813279390335, 0.33291810750961304, -0.2614128887653351, 0.1761656403541565, -0.04655655100941658, -0.6697306036949158, -0.47393494844436646, -0.7404120564460754, -0.3891181945800781, 0.17507332563400269, -0.8681328892707825, 0.2939351499080658, -0.4802625775337219, -0.37792012095451355, -0.21282242238521576, -0.25213053822517395, -0.5749944448471069, 0.48267507553100586, -0.03973182663321495, 1.1691628694534302, -0.7799702286720276, 0.7847235798835754, 0.35889366269111633, -0.5768451690673828, -0.9116511940956116, -0.010930805467069149, -0.31557953357696533, -0.7323572039604187, 0.799409806728363, -0.018190855160355568, -0.5861273407936096, 0.19526000320911407, -0.2571943998336792, -0.5786134004592896, 0.8555651903152466, 0.351818323135376, -0.5852465033531189, 0.3182472586631775, 0.2641165852546692, 0.629212498664856, -0.4653970003128052, 0.44066518545150757, 0.5207443833351135, -0.10247962921857834, -0.08877886831760406, -0.9780289530754089, -0.2141336053609848, 0.13252109289169312, 0.5598806738853455, 0.1698092669248581, -0.7761399745941162, 0.7467759251594543, 0.050624143332242966, -0.2715262472629547, -0.09586881846189499, 0.6425443291664124, -0.04122460260987282, 0.07860660552978516, 0.6212781071662903, 0.6616214513778687, 0.7849252223968506, 0.10385545343160629, 1.1016125679016113, -0.4148918092250824, 0.7440788149833679, 1.2942954301834106, -0.19371585547924042, 1.1506530046463013, 0.45138299465179443, -0.12641845643520355, 0.43734753131866455, 1.0702807903289795, 0.6345674991607666, 0.6041251420974731, 0.27500060200691223, -0.5420892238616943, -0.5157356858253479, -0.4247312843799591, -0.46954256296157837, 0.16769443452358246, 0.24136488139629364, -0.15734651684761047, -0.3238475024700165, 0.11911554634571075, 0.1951388418674469, -0.34647804498672485, -0.5962820649147034, 0.851772665977478, 0.24449846148490906, -0.5175462365150452, 0.7638692259788513, -0.30910420417785645, 0.4367978870868683, -0.4332678020000458, 0.40506792068481445, -0.6959819197654724, 0.5241215229034424, -0.3301878273487091, -0.4202759265899658, 0.13981416821479797, -0.15018156170845032, -0.30803632736206055, -0.20232808589935303, 0.4819484353065491, -0.42109280824661255, -0.30352866649627686, 0.4162231981754303, 0.41260308027267456, 0.1582658290863037, -0.23682789504528046, -0.4739331901073456, -0.15318171679973602, -0.3429339826107025, -0.13738463819026947, 0.29094672203063965, 0.34330055117607117, -0.3473558723926544, 1.0940254926681519, 0.5356027483940125, 0.06827683746814728, 0.09600242227315903, 0.6473012566566467, 0.7290348410606384, -0.25993049144744873, -0.7492038011550903, -0.6546221971511841, 0.46905258297920227, 0.06046338006854057, -0.10337921977043152, 0.4474101662635803, 0.6819546818733215, 0.8066522479057312, -0.09329618513584137, 0.8144587874412537, 0.39675819873809814, 0.2980855405330658, -0.4987362325191498, 0.7182722091674805, -0.6915568709373474, 0.46904751658439636, -0.17142906785011292, -0.9015820622444153, -0.1757904291152954, 0.3322070837020874, -0.27298906445503235, 0.10395637154579163, 0.6494094133377075, 0.9815816283226013, -0.26821744441986084, 0.24334733188152313, 0.2091389149427414, -0.06818267703056335, 0.49776190519332886, 0.6250914335250854, 0.907069206237793, -0.2980239987373352, 0.4310101270675659, -0.2374597191810608, -0.3186993896961212, -0.37870779633522034, -1.0169827938079834, -0.8173314332962036, -0.3992607593536377, -0.34436118602752686, -0.13929295539855957, -0.0048541538417339325, 0.6498124599456787, 0.9104281067848206, -0.8316017985343933, -0.4800879657268524, -0.32642990350723267, 0.10686145722866058, -0.5423346161842346, -0.1670180708169937, 0.25549203157424927, -0.7701419591903687, -0.3656860291957855, 0.048821546137332916, 0.33043062686920166, 0.0430314764380455, -0.43064701557159424, -0.09149719029664993, -0.37883588671684265, 0.4495300352573395, 0.7083746790885925, 0.2722877860069275, -0.5240892767906189, -0.39529719948768616, -0.11973871290683746, -0.27776002883911133, 0.028191063553094864, 0.9161622524261475, -0.7159960269927979, 0.2793223261833191, 0.38720420002937317, 0.8678227066993713, 0.4758766293525696, -0.10880392044782639, 0.318783700466156, -0.9894977807998657, 0.22938965260982513, -0.0007404883508570492, 0.025080474093556404, 0.3485147953033447, -0.38673681020736694, 0.46441298723220825, 0.20229044556617737, -0.4293971657752991, -0.7898105382919312, 0.28410884737968445, -0.6858224272727966, -0.060634225606918335, 0.771763265132904, -0.1700114607810974, -0.07359858602285385, -0.22299183905124664, -0.021259848028421402, 0.2976289689540863, -0.061177778989076614, 0.46464475989341736, 0.5383263826370239, -0.3661966919898987, -0.017477376386523247, -0.6021410822868347, 0.831576943397522, 0.7160751223564148, -0.9087411761283875, 0.10753533244132996, -0.05461948737502098, 0.19873830676078796, 0.05521683767437935, 0.7570449113845825, 0.369733601808548, 0.024542275816202164, 0.10837344825267792, 0.3149765133857727, 0.4002135097980499, -0.4878323972225189, -0.35793110728263855, -0.12292420864105225, 0.1386999636888504, -0.3190566599369049 ]
http://arxiv.org/abs/2405.19550v1
http://arxiv.org/pdf/2405.19550v1
Stress-Testing Capability Elicitation With Password-Locked Models
2024-05-29T22:26:26
2024-05-29T22:26:26
Ryan Greenblatt, Fabien Roger, Dmitrii Krasheninnikov, David Krueger
cs.LG
cs.LG, cs.CL
To determine the safety of large language models (LLMs), AI developers must be able to assess their dangerous capabilities. But simple prompting strategies often fail to elicit an LLM's full capabilities. One way to elicit capabilities more robustly is to fine-tune the LLM to complete the task. In this paper, we investigate the conditions under which fine-tuning-based elicitation suffices to elicit capabilities. To do this, we introduce password-locked models, LLMs fine-tuned such that some of their capabilities are deliberately hidden. Specifically, these LLMs are trained to exhibit these capabilities only when a password is present in the prompt, and to imitate a much weaker LLM otherwise. Password-locked models enable a novel method of evaluating capabilities elicitation methods, by testing whether these password-locked capabilities can be elicited without using the password. We find that a few high-quality demonstrations are often sufficient to fully elicit password-locked capabilities. More surprisingly, fine-tuning can elicit other capabilities that have been locked using the same password, or even different passwords. Furthermore, when only evaluations, and not demonstrations, are available, approaches like reinforcement learning are still often able to elicit capabilities. Overall, our findings suggest that fine-tuning is an effective method of eliciting hidden capabilities of current models, but may be unreliable when high-quality demonstrations are not available, e.g. as may be the case when models' (hidden) capabilities exceed those of human demonstrators.
[ -0.5304758548736572, -0.9043112993240356, 0.30667388439178467, -0.11857341974973679, -0.17246566712856293, 0.29458433389663696, -0.3661653995513916, -0.3771451711654663, -0.6037455797195435, 0.4322969317436218, -0.586885929107666, -0.14479072391986847, -0.6727086305618286, 0.24176891148090363, -0.33364471793174744, 0.8952320218086243, -0.14157646894454956, -0.19932681322097778, -0.09632144868373871, -0.028316963464021683, -0.5699496269226074, -0.44458118081092834, -0.7046220302581787, -0.4522112309932709, 0.12342813611030579, 0.5001512169837952, 0.6966969966888428, 0.5121747851371765, 0.40278100967407227, 0.3093092739582062, -0.3497813940048218, 0.3398665189743042, -0.3242672383785248, 0.11558564007282257, -0.12055506557226181, -0.47459569573402405, -0.27312538027763367, 0.18783074617385864, 0.48570799827575684, 0.41027700901031494, -0.03414477780461311, 0.36265599727630615, 0.5034620761871338, 0.3058488368988037, -0.6432183980941772, 0.17685405910015106, -1.0695738792419434, -0.1608385592699051, 0.10365571081638336, -0.1634293496608734, -0.2674420177936554, -0.2634476125240326, -0.035328976809978485, -0.3823862671852112, 0.11438573151826859, 0.5079357624053955, 0.9474741220474243, 0.5156312584877014, -0.17649583518505096, -0.33130311965942383, -0.7306624054908752, 0.7977792620658875, -0.6311911344528198, 0.11537222564220428, 0.7815772294998169, 0.22532430291175842, 0.0202897060662508, -0.3703973889350891, -0.44245120882987976, -0.7808300852775574, 0.02770235762000084, -0.11814417690038681, -0.00075272232061252, 0.3250589966773987, 0.7433047890663147, 0.4786624312400818, -0.44108617305755615, 0.6266773343086243, -0.6405578851699829, -0.14139077067375183, 0.5073152184486389, 0.19659698009490967, 0.36581137776374817, -0.0048687332309782505, -0.25126662850379944, -0.33307865262031555, -0.4965188503265381, 0.2791055738925934, 0.3648287355899811, 0.5969381332397461, -0.11408627778291702, 0.5872913002967834, -0.2864617109298706, 0.635932981967926, 0.08430874347686768, -0.027477337047457695, 0.12864096462726593, 0.0698372945189476, -0.5063523650169373, -0.23891271650791168, 0.5493140816688538, 0.26518693566322327, 0.3854351043701172, -0.19541063904762268, -0.5436961054801941, -0.09470518678426743, 0.29981088638305664, -0.8235371112823486, 0.12909573316574097, 0.4682588279247284, -0.5158239006996155, -0.5244925618171692, -0.09504173696041107, -0.7402932047843933, -0.5107473134994507, -0.0163510050624609, 0.5585967302322388, -0.6293492913246155, -0.28843069076538086, 0.0001286306360270828, -0.3038202226161957, 0.3477648198604584, -0.0439564473927021, -1.195428729057312, 0.5004144310951233, 0.7203783392906189, 0.8150416016578674, -0.19761578738689423, -0.4397987723350525, -0.6315186619758606, -0.19638538360595703, -0.34767308831214905, 0.26914212107658386, -0.3952900171279907, -0.23834693431854248, 0.2780274748802185, -0.010402115061879158, 0.01405637338757515, -0.9350758790969849, 0.535126805305481, -0.5397763848304749, -0.515519917011261, -0.28124669194221497, -0.5979722142219543, 0.23214195668697357, 0.26983270049095154, -0.60895174741745, 0.8630916476249695, 0.14090725779533386, -0.2812354564666748, 0.45007357001304626, -0.6023198962211609, -0.33096206188201904, 0.009880476631224155, -0.06010210141539574, -0.5362622737884521, 0.29674768447875977, 0.36133459210395813, 0.47588589787483215, -0.15433993935585022, 0.05849471315741539, -0.5034257173538208, -0.4302605390548706, 0.5141583681106567, -0.45810142159461975, 0.538534939289093, 0.453334242105484, -0.3359275162220001, -0.08849534392356873, -0.4560967981815338, 0.24071930348873138, 0.21664489805698395, -0.15027283132076263, -0.1653132140636444, -0.17221924662590027, -0.2844196856021881, 0.046697914600372314, 0.23183166980743408, -0.270846426486969, 0.0799349993467331, -0.49926984310150146, 0.48870012164115906, 0.7681691646575928, -0.06649839133024216, 0.48988667130470276, -0.7205533385276794, 0.6802749633789062, -0.25005286931991577, 0.36800938844680786, -0.16978181898593903, -0.2545008957386017, -0.41329655051231384, -0.33046576380729675, 0.2790292799472809, 0.6918796896934509, -0.5494391918182373, 0.2503032088279724, 0.22599752247333527, -0.3581756055355072, -0.4436945915222168, 0.37338006496429443, 0.6091872453689575, 0.08586563915014267, 0.303322434425354, -0.19781331717967987, 0.052659325301647186, -0.7907983660697937, -0.5239725708961487, -0.280456006526947, -0.22828325629234314, 0.5288281440734863, 0.564393162727356, 0.35325193405151367, 0.2645353078842163, -0.31062108278274536, -0.16450542211532593, -0.3255307078361511, 0.36133873462677, 0.02893419750034809, 0.6783626675605774, 0.46802306175231934, -0.7590562701225281, 0.04468674957752228, -0.2081184834241867, -0.624077320098877, -0.1346425712108612, -0.3329871594905853, 0.41757723689079285, -0.08359059691429138, 0.8609941005706787, -0.6260396838188171, 0.5177470445632935, 0.3117181658744812, -0.22500833868980408, 0.6478032469749451, -0.48178932070732117, 0.15409965813159943, -0.6611157655715942, 0.14721301198005676, -0.3728497326374054, 0.0026465682312846184, -0.36829546093940735, 0.7052600979804993, 0.36984652280807495, -0.46974071860313416, -0.369687020778656, 0.603605329990387, -0.7283182144165039, -0.03904066979885101, -0.44322502613067627, -0.06801288574934006, -0.22110989689826965, 0.475933313369751, -0.46547186374664307, 0.9661402106285095, 0.7808977365493774, -0.8282040953636169, 0.22198042273521423, 0.08576858043670654, -0.6182494759559631, 0.5114087462425232, -0.7288503050804138, 0.1039951741695404, 0.15831077098846436, -0.26677316427230835, -0.7468725442886353, -0.4772273302078247, -0.18019957840442657, -0.30616021156311035, 0.4235653877258301, -0.24553735554218292, -0.7163248062133789, -0.6056874990463257, -0.2512214481830597, 0.3732808232307434, 0.7334670424461365, -0.34671542048454285, 0.34790149331092834, 0.22536668181419373, -0.1306390017271042, -0.3821760416030884, -0.6596430540084839, -0.21901056170463562, -0.3980756998062134, -0.26355135440826416, 0.3553049862384796, -0.3028371334075928, -0.15842683613300323, -0.19435575604438782, -0.14429448544979095, -0.27251914143562317, 0.8251450657844543, 0.6001173853874207, 0.19856418669223785, 0.12133952230215073, 0.19458913803100586, 0.4029463827610016, 0.10765083879232407, 0.006618387997150421, -0.2201329618692398, 0.3984386622905731, -0.2666548192501068, -0.6163843274116516, -0.37606412172317505, 0.3431544303894043, 0.7456772327423096, -0.5291863083839417, 0.7911356687545776, 0.5143477320671082, -0.5422481894493103, -0.5332149267196655, -0.49455875158309937, -0.6386703848838806, -0.586591899394989, 0.3324873447418213, -0.21318286657333374, -1.2850327491760254, 0.7945883274078369, -0.6496875882148743, 0.13670721650123596, -0.1723940372467041, 0.520876407623291, 0.025341076776385307, 1.0087615251541138, 0.723551869392395, -0.006952841766178608, 0.5487512946128845, -0.14038249850273132, 0.26753461360931396, -0.7076624631881714, -0.17617130279541016, -0.630114734172821, -0.48479488492012024, -0.43525397777557373, 0.08472760766744614, 0.40661075711250305, 0.44928956031799316, -0.29076868295669556, 0.05261616408824921, -0.4131642282009125, 0.7965071201324463, 0.6816207766532898, 0.26201993227005005, -0.010981392115354538, -0.16074465215206146, -0.5613588094711304, 0.20719274878501892, -0.42370930314064026, -0.384873628616333, 0.9106405377388, 0.19274243712425232, 0.7655367851257324, -0.2035883218050003, 0.4063333570957184, 0.18861708045005798, -0.07991059124469757, -0.5993274450302124, 0.5450671315193176, 0.12329752743244171, -0.7503650188446045, -0.48192256689071655, -0.31900399923324585, -0.9724132418632507, -0.19014202058315277, -0.4092428684234619, -1.057570219039917, -0.0784228965640068, 0.3431103825569153, -0.9666079878807068, 0.4670586884021759, -0.6534417271614075, 0.7636523842811584, -0.3079964220523834, -0.16556015610694885, -0.2991413474082947, -0.28195488452911377, 0.4773411750793457, -0.26018333435058594, 0.15131953358650208, -0.2798450291156769, 0.21799518167972565, 0.4157766103744507, -0.25384166836738586, 0.8952550888061523, -0.011111285537481308, 0.05709739029407501, 0.02478884719312191, 0.37320688366889954, 0.6007720232009888, 0.25557395815849304, -0.24175287783145905, -0.29226988554000854, -0.03614206984639168, -0.3759468197822571, -0.7744641304016113, 0.634203314781189, -0.8267309665679932, -0.9512991309165955, -0.0301518552005291, -0.6453741788864136, -0.4334016740322113, 0.2307533621788025, 0.23575568199157715, 0.28697705268859863, -0.01131368987262249, 0.12944002449512482, 0.7435926198959351, -0.45385900139808655, 0.43618109822273254, 0.43407732248306274, -0.24947905540466309, -0.005967637058347464, 0.6871799826622009, 0.254257470369339, 0.5094845294952393, -0.10178466141223907, 0.08065283298492432, 0.11549845337867737, -0.8607466220855713, -0.31023144721984863, -0.12335680425167084, -0.28590255975723267, -0.5139071345329285, -0.15565355122089386, -0.5109919309616089, -0.20499287545681, -0.25114232301712036, -0.3855122923851013, -0.19958288967609406, -0.26894909143447876, -0.47079896926879883, 0.3881992697715759, 0.42323529720306396, -0.33547350764274597, 0.2198294699192047, -0.4768403172492981, 0.4745761454105377, 0.5459379553794861, 0.534186840057373, 0.13178953528404236, -0.659691333770752, -0.3945595920085907, -0.21083177626132965, -0.45990365743637085, -0.7472460865974426, 0.392963171005249, 0.2511464059352875, 0.43862950801849365, 0.3599080443382263, 0.5087626576423645, 0.30630549788475037, -0.30154290795326233, 0.8409894704818726, -0.26708734035491943, -1.0354806184768677, 0.7750467658042908, -0.3570293188095093, 0.2529386281967163, 0.5813137888908386, 0.21422900259494781, -0.10953104496002197, -0.7527044415473938, -0.6214095950126648, -0.9079291224479675, 0.5707038044929504, 0.14597377181053162, 0.41522762179374695, 0.09621679782867432, 0.7220503091812134, 0.04491318017244339, 0.15318717062473297, -0.3577094078063965, -0.18753331899642944, 0.012546812184154987, 0.13981123268604279, 0.21163885295391083, -0.2675602436065674, -0.27364853024482727, -0.16196873784065247, 0.22601334750652313, -0.13431565463542938, 0.16099044680595398, -0.03449464589357376, 0.021844105795025826, -0.1830296367406845, 0.4908226728439331, 0.532982349395752, 0.5894814729690552, -0.21898595988750458, 0.17305327951908112, 0.7911569476127625, -0.27834102511405945, 0.02917909063398838, 0.14036649465560913, -0.29638776183128357, -0.5250506401062012, 0.2504619359970093, 1.0010809898376465, 0.21865667402744293, -0.8150210380554199, 0.36933112144470215, -0.008963963016867638, -0.33065468072891235, -0.11425742506980896, 0.5191411375999451, -0.2775351405143738, 0.5673644542694092, 0.502562940120697, 0.0424271821975708, -0.11015050858259201, -0.3553711473941803, 0.36926984786987305, 0.7175216674804688, -0.3469206690788269, -0.23276154696941376, 0.7561780214309692, 0.00041445871465839446, -0.40569445490837097, 0.7998773455619812, -0.31624263525009155, -0.48743852972984314, 0.757665753364563, 0.5789613127708435, 0.8165610432624817, -0.21035902202129364, 0.1571688950061798, 0.31653735041618347, 0.7805449366569519, -0.1903391182422638, 0.39943620562553406, -0.025401458144187927, -0.673986554145813, -0.189064159989357, -0.47167396545410156, -0.5177097916603088, 0.4196958839893341, -1.0033563375473022, 0.010299951769411564, -0.7787784934043884, -0.2824106812477112, -0.41831812262535095, 0.17210468649864197, -0.7121741771697998, 0.14128156006336212, 0.22998884320259094, 1.1161731481552124, -0.8115315437316895, 0.6716894507408142, 0.16308742761611938, -0.1712585985660553, -1.158274531364441, 0.12514282763004303, 0.06806070357561111, -0.9780791401863098, 0.4525316655635834, 0.1334274858236313, 0.09618998318910599, -0.08174026757478714, -0.9269852042198181, -0.5900373458862305, 1.157436728477478, 0.7001267075538635, -0.36718809604644775, 0.002889468567445874, 0.17305327951908112, 0.29799187183380127, -0.0692128911614418, 0.14719191193580627, 0.5854853987693787, 0.5141362547874451, -0.35378238558769226, -1.2891443967819214, 0.2429157793521881, -0.1661558598279953, -0.14537055790424347, -0.1623246669769287, -0.6606416702270508, 0.8205813765525818, -0.44006797671318054, -0.29563868045806885, 0.37266018986701965, 0.5930973291397095, 0.4053272604942322, 0.13632242381572723, 0.5389510989189148, 0.5069841146469116, 1.182019591331482, -0.00851610116660595, 1.0789011716842651, -0.5242965221405029, 0.1757173240184784, 0.8194026350975037, -0.24690651893615723, 0.9774783849716187, 0.3542739450931549, 0.3326428234577179, 0.17804445326328278, 0.5594415664672852, -0.13324983417987823, 0.49245819449424744, 0.4169980585575104, -0.05343647673726082, -0.5688837170600891, -0.33417975902557373, -0.2284887582063675, 0.2878500819206238, 0.36428940296173096, -0.3220643401145935, 0.015579371713101864, 0.2687961757183075, -0.028744040057063103, -0.016697736456990242, -0.4486677944660187, 0.6456255912780762, 0.4311380088329315, -0.7136942148208618, 0.8985835909843445, 0.005534243304282427, 0.5349901914596558, -0.5281806588172913, 0.25105926394462585, -0.30838361382484436, -0.01798599772155285, 0.08764638006687164, -0.6146109700202942, 0.16614766418933868, 0.22758691012859344, 0.13842462003231049, -0.3370581269264221, 0.8496761918067932, -0.06109297648072243, -0.2915774881839752, 0.3936615586280823, 0.5947659015655518, -0.01756974682211876, -0.15296119451522827, -0.728010892868042, 0.16289947926998138, -0.43468600511550903, -0.16199436783790588, 0.5818231701850891, 0.575756847858429, 0.030752994120121002, 0.924676775932312, 0.49976491928100586, 0.2340567708015442, -0.018661553040146828, -0.049256157130002975, 0.8512122631072998, -0.4906379282474518, -0.3329457640647888, -1.046696662902832, 0.21456685662269592, -0.04127464070916176, -0.48723331093788147, 0.6220943331718445, 0.18799063563346863, 0.8231144547462463, -0.041814174503088, 0.8041890859603882, 0.2160016894340515, 0.14803250133991241, -0.7229764461517334, 1.027090311050415, -0.6728453040122986, 0.2024756819009781, -0.14047828316688538, -0.2649274170398712, -0.13380739092826843, 0.14417824149131775, -0.17686380445957184, 0.12399343401193619, 0.5818558931350708, 1.0097301006317139, -0.18598008155822754, -0.14405782520771027, 0.7139868140220642, 0.20367299020290375, 0.0033804206177592278, 0.6453027129173279, 0.9924638271331787, -0.18252675235271454, 0.6742485761642456, -0.02135075442492962, -0.43325093388557434, -0.10293065011501312, -0.677159309387207, -1.3054689168930054, -0.6723384261131287, -0.11877273768186569, -0.33267149329185486, 0.21826328337192535, 0.8627604246139526, 0.7218503952026367, -0.7729679942131042, -0.0021704058162868023, -0.03943298012018204, 0.2644296884536743, -0.592521071434021, -0.08353409171104431, 0.09540370106697083, -0.5515829920768738, -0.49118682742118835, 0.4453392028808594, 0.20994600653648376, 0.181013286113739, -0.27509281039237976, -0.0052681127563118935, 0.5090386867523193, 0.4500359296798706, 0.030215246602892876, 0.5387006402015686, -0.585042417049408, -0.4292820394039154, 0.06808848679065704, 0.01481105387210846, -0.3487909138202667, 0.8812116384506226, -0.6370288133621216, 0.056186821311712265, 0.2737564742565155, 0.8122478723526001, 0.27074018120765686, -0.25775644183158875, 0.6940219402313232, -0.7093786597251892, 0.06765399128198624, 0.1628568023443222, 0.20974618196487427, 0.023866083472967148, -0.18795622885227203, 0.06372379511594772, -0.22402925789356232, -0.7362313866615295, -1.125085711479187, 0.366647869348526, -0.6557366251945496, -0.46458593010902405, 0.9894808530807495, -0.322313129901886, -0.09098149836063385, -0.16764745116233826, -0.1221485286951065, 0.24447771906852722, -0.2647858262062073, 1.1779944896697998, 0.6640806198120117, 0.22156283259391785, -0.3261786997318268, -0.6736538410186768, 1.0306000709533691, 0.5799335241317749, -0.7908089756965637, 0.4861319065093994, -0.08916031569242477, -0.0336402989923954, -0.04401274025440216, 0.22510917484760284, 0.036541007459163666, 0.37270331382751465, -0.15119075775146484, -0.45267337560653687, -0.4819013476371765, -0.368949830532074, -0.40653350949287415, 0.4459143280982971, 0.5147128105163574, 0.10811088234186172 ]
http://arxiv.org/abs/2405.19544v1
http://arxiv.org/pdf/2405.19544v1
One-Shot Safety Alignment for Large Language Models via Optimal Dualization
2024-05-29T22:12:52
2024-05-29T22:12:52
Xinmeng Huang, Shuo Li, Edgar Dobriban, Osbert Bastani, Hamed Hassani, Dongsheng Ding
cs.AI
cs.AI, cs.CL, cs.LG, math.OC, stat.ML
The growing safety concerns surrounding Large Language Models (LLMs) raise an urgent need to align them with diverse human preferences to simultaneously enhance their helpfulness and safety. A promising approach is to enforce safety constraints through Reinforcement Learning from Human Feedback (RLHF). For such constrained RLHF, common Lagrangian-based primal-dual policy optimization methods are computationally expensive and often unstable. This paper presents a dualization perspective that reduces constrained alignment to an equivalent unconstrained alignment problem. We do so by pre-optimizing a smooth and convex dual function that has a closed form. This shortcut eliminates the need for cumbersome primal-dual policy iterations, thus greatly reducing the computational burden and improving training stability. Our strategy leads to two practical algorithms in model-based and preference-based scenarios (MoCAN and PeCAN, respectively). A broad range of experiments demonstrate the effectiveness of our methods.
[ 0.04300044849514961, -0.6143264770507812, 0.43002641201019287, -0.0983552485704422, -0.275043249130249, 0.1810230165719986, -0.5793390870094299, -0.053345419466495514, -0.17082998156547546, 0.6677897572517395, -0.6958498954772949, -0.4462873637676239, -0.2724843919277191, -0.30040064454078674, 0.27314621210098267, 1.2040163278579712, -0.3553239703178406, -0.06096666306257248, -0.10202304273843765, -0.15532845258712769, -0.11729676276445389, -0.7040448784828186, -0.6577603816986084, -0.3884584307670593, 0.7276838421821594, 0.3556060492992401, 0.9644266963005066, 0.5549077391624451, 0.42927074432373047, 0.2452731430530548, 0.045141786336898804, 0.17612488567829132, -0.538396418094635, 0.09268826991319656, -0.19241735339164734, -0.2391582429409027, -0.3589419424533844, -0.07110932469367981, 0.8487828373908997, 0.6210903525352478, -0.49030911922454834, -0.3255436420440674, 0.21108882129192352, 0.6277097463607788, -0.7260932326316833, -0.10592237859964371, -0.3168962895870209, 0.11824381351470947, -0.08078648149967194, -0.08354811370372772, -0.24575702846050262, -0.6875144243240356, 0.17324231564998627, -0.5963369011878967, -0.23589462041854858, -0.13067121803760529, 0.7523106336593628, 0.5284406542778015, -0.693804144859314, 0.0941217765212059, -0.7692784070968628, 1.085597276687622, -0.7249976396560669, 0.2359422892332077, 0.24365569651126862, 0.17646802961826324, -0.3899514377117157, -0.010421879589557648, -0.4507018029689789, -0.3546346127986908, -0.08764249831438065, -0.1017947718501091, 0.30124345421791077, 0.5123374462127686, 0.03255273774266243, -0.034442078322172165, -0.6660526990890503, 0.6087563633918762, -0.31114643812179565, -0.46201398968696594, 0.8038053512573242, 0.12214801460504532, 0.14046259224414825, 0.28984639048576355, -0.44732406735420227, -0.4819108545780182, -0.8378146886825562, 0.4133114218711853, 0.7823647856712341, 0.5513038635253906, -0.22668331861495972, 0.29474854469299316, -0.06975974887609482, 0.47634610533714294, 0.12757208943367004, -0.5642638802528381, 0.20004427433013916, -0.24057471752166748, -0.01777423545718193, 0.1419209986925125, 0.9441157579421997, 0.40030527114868164, 0.2951542139053345, -0.23248593509197235, -0.2656653821468353, 0.23280808329582214, 0.25218841433525085, -0.5979877710342407, 0.17411623895168304, 0.26252156496047974, -0.09526874125003815, -0.5273318290710449, -0.048357825726270676, -0.8092890977859497, -0.4898863732814789, -0.2761949598789215, 0.256509929895401, -0.03557998687028885, -0.3183182179927826, 0.34067779779434204, 0.5214995741844177, 0.19940683245658875, 0.08860909938812256, -1.106521487236023, 0.2642629146575928, 0.8341281414031982, 0.6628265380859375, -0.14510132372379303, -0.139889657497406, -0.830223023891449, 0.29763129353523254, -0.15458199381828308, 0.4062803089618683, -0.36867591738700867, -0.4472634196281433, 0.29003193974494934, -0.07361418753862381, -0.13788022100925446, -0.3431064784526825, 0.774084210395813, -0.31155794858932495, 0.22042128443717957, -0.14685405790805817, -0.2020414024591446, -0.16034597158432007, 0.18434733152389526, -0.39249494671821594, 0.8304605484008789, -0.18206201493740082, -0.69434654712677, 0.26899290084838867, -0.5609181523323059, -0.6076654195785522, -0.45252230763435364, -0.3690871596336365, -0.754096508026123, -0.056531310081481934, 0.17825280129909515, 0.12330292165279388, -0.1059250608086586, 0.5801081657409668, -0.6041268706321716, -0.1327475905418396, 0.1381017565727234, -0.2960342764854431, 0.5621084570884705, 0.032905109226703644, -0.1825120598077774, 0.5378156900405884, -0.4244070053100586, 0.09626466035842896, 0.25682181119918823, -0.5046281814575195, -0.22769084572792053, 0.13977640867233276, -0.08951117098331451, 0.212892085313797, 0.28113633394241333, -0.46103665232658386, 0.5170192718505859, -0.7200762033462524, 0.2238152027130127, 0.9746704697608948, -0.15735501050949097, 0.7259673476219177, -0.24039208889007568, 0.6888465881347656, -0.1485709249973297, 0.3482668995857239, 0.4066581130027771, 0.16193996369838715, -0.5182548761367798, -0.12368816137313843, 0.3067288100719452, 0.7463273406028748, -0.3811832666397095, 0.680012047290802, -0.25161054730415344, 0.04729533568024635, -0.4154016971588135, 0.1459185779094696, 0.7169139385223389, 0.48620501160621643, 0.07614094763994217, -0.3435014486312866, -0.3141784965991974, -1.0762001276016235, -0.03361866995692253, -0.1990462988615036, 0.13749642670154572, -0.010554898530244827, 0.11749231815338135, -0.04693862795829773, 0.8143045902252197, -0.47727206349372864, -0.12514162063598633, -0.012854495085775852, 0.03240416198968887, 0.1415262371301651, 0.6482434272766113, 0.6105903387069702, -0.6918523907661438, -0.4371124804019928, 0.11980076879262924, -0.5224165916442871, 0.017074206843972206, -0.06793657690286636, -0.20215418934822083, 0.5262452960014343, 0.29948607087135315, -0.36927667260169983, 0.4068533480167389, 0.6651327610015869, -0.08674988895654678, 0.42133066058158875, -0.3120512068271637, -0.018208224326372147, -0.8042076826095581, 0.10906115919351578, -0.12835541367530823, -0.34115299582481384, -0.6945245265960693, 0.011197892017662525, 0.03696594014763832, -0.04857533052563667, -0.3549792766571045, 0.493665874004364, -0.3325935900211334, 0.17145825922489166, -0.3359483778476715, 0.05836512893438339, -0.23576578497886658, 0.7196156978607178, 0.31746456027030945, 0.7198154330253601, 0.47382593154907227, -0.3178686499595642, 0.11201400309801102, 0.0360758900642395, -0.09905095398426056, 0.35083040595054626, -0.6310611367225647, 0.4032295346260071, -0.1857432872056961, 0.4102118909358978, -0.6042391061782837, -0.16014854609966278, 0.48901382088661194, 0.09042701870203018, 0.6231718063354492, -0.36190342903137207, -0.22454477846622467, -0.23492494225502014, -0.5223895311355591, 0.5419688820838928, 0.4605933427810669, -0.4538467228412628, 0.41492322087287903, 0.6480018496513367, -0.2223636656999588, -1.0421358346939087, -0.32090574502944946, -0.24298135936260223, -0.3881669342517853, -0.6473252773284912, 0.16661565005779266, -0.1544179469347, -0.21529707312583923, -0.27150580286979675, -0.36188066005706787, 0.035382818430662155, 0.1391943097114563, 0.34920114278793335, 0.5517535209655762, -0.008598977699875832, 0.11773522198200226, 0.28533050417900085, -0.307266503572464, -0.24789975583553314, -0.35737425088882446, 0.39295724034309387, -0.2689193785190582, -0.20522440969944, -0.569056510925293, 0.5382794737815857, 0.46845483779907227, -0.19385793805122375, 0.7750287652015686, 0.19023770093917847, -0.2624678909778595, -0.09143132716417313, -0.4501218795776367, -0.2681944966316223, -0.5007228851318359, 0.41328704357147217, -0.24443332850933075, -0.9409314393997192, 0.1652212142944336, 0.017505988478660583, 0.3814372420310974, 0.016267435625195503, 0.45954105257987976, -0.011614318005740643, 1.0151537656784058, 0.6478087902069092, -0.1979217231273651, 0.4226774573326111, 0.0741477832198143, 0.40238457918167114, -0.47643446922302246, -0.023778634145855904, -0.48682230710983276, -0.2940273880958557, -0.38646793365478516, -0.27154603600502014, 0.6498966217041016, 0.23021532595157623, -0.393978476524353, 0.27970728278160095, -0.4694889187812805, 0.60035640001297, 0.5019415616989136, 0.23007233440876007, 0.15128883719444275, -0.053152039647102356, -0.39307141304016113, -0.037345901131629944, -0.5432547926902771, -0.5853129625320435, 1.1073541641235352, 0.37577369809150696, 1.028043508529663, 0.21645337343215942, 0.8328079581260681, -0.10631109774112701, 0.216718852519989, -0.7285500764846802, 0.4813692271709442, -0.24396507441997528, -0.38707783818244934, -0.504845380783081, -0.4860917925834656, -0.7827914357185364, 0.3668043315410614, -0.45757532119750977, -0.8074168562889099, -0.08868584036827087, 0.6005671620368958, -0.7614933252334595, 0.25525227189064026, -0.5695239305496216, 0.9733082056045532, -0.8340322375297546, -0.5161459445953369, -0.34880271553993225, -0.8588628172874451, 0.4075203835964203, -0.020159564912319183, 0.1701378971338272, -0.3297525644302368, -0.2051624357700348, 0.5680218935012817, -0.44898390769958496, 0.9414951205253601, -0.2590232789516449, -0.34172266721725464, -0.02200663834810257, -0.05847439169883728, 0.7462166547775269, -0.05611156299710274, 0.11626805365085602, -0.14252786338329315, 0.14211471378803253, -0.34578731656074524, -0.5298438668251038, 0.7607406377792358, -0.7924069166183472, -0.7542428970336914, -0.5494736433029175, -0.6237108707427979, -0.5858690142631531, 0.20271070301532745, 0.06469472497701645, 0.28401267528533936, -0.34352907538414, -0.06866413354873657, 0.6953328251838684, -0.2466997504234314, 0.4739990532398224, 0.3587897717952728, -0.31356891989707947, -0.46469175815582275, 0.5524951219558716, -0.13678091764450073, 0.49636110663414, 0.35104334354400635, 0.3512091040611267, -0.47552818059921265, -0.4973979592323303, -0.31344571709632874, 0.4234510660171509, -0.4459175765514374, -0.11767815798521042, -0.4107723832130432, -0.1338479071855545, -0.43760383129119873, -0.43815505504608154, -0.5691637992858887, -0.5761325359344482, -0.09473951905965805, -0.10400636494159698, -0.07048948109149933, 0.28917911648750305, -0.31565648317337036, 0.13533276319503784, -0.6670867800712585, -0.07059450447559357, 0.39316684007644653, 0.4037422835826874, -0.29489192366600037, -0.34825319051742554, -0.08470699936151505, 0.011598682962357998, -0.3093658685684204, -0.5558091402053833, 0.06333260238170624, 0.04079132154583931, 0.4233444631099701, 0.6587417721748352, 0.3244346082210541, 0.43094727396965027, -0.4447226822376251, 0.24708904325962067, 0.7011717557907104, -0.5744932889938354, 0.4350982904434204, -0.413165807723999, 0.08362627029418945, 0.8459774255752563, 0.33696258068084717, -0.6070200204849243, 0.1296965628862381, -0.04940469190478325, -0.5710000395774841, 0.6464758515357971, -0.08025701344013214, 0.0313974991440773, 0.36096319556236267, 0.25950387120246887, 0.09788695722818375, 0.010988175868988037, -0.7671300172805786, -0.08384937047958374, 0.06975501775741577, -0.2654050588607788, 0.0002891833137255162, -0.22427381575107574, -0.5667046308517456, -0.017800047993659973, 0.8736008405685425, -0.3667101263999939, -0.25177496671676636, -0.27733078598976135, 0.05234542861580849, -0.30540788173675537, 0.485835999250412, 0.8835113644599915, 0.3754730224609375, -0.29948732256889343, 0.05131341889500618, -0.04542100057005882, -0.272920161485672, 0.4426407516002655, 0.10899589210748672, -0.27003857493400574, -0.5106646418571472, -0.07969627529382706, 0.789121150970459, 0.4831721782684326, -0.7882121205329895, 0.5997858643531799, 0.11487220972776413, -0.1374831348657608, -0.18508599698543549, 0.19913797080516815, -0.09587903320789337, 0.1921200156211853, -0.04839489609003067, -0.11189461499452591, -0.3243127763271332, -0.37209662795066833, 0.051880113780498505, 0.7796980142593384, -0.35865455865859985, -0.3693505525588989, 0.4684397280216217, 0.45564204454421997, -0.2965547740459442, 0.36801567673683167, -0.025577407330274582, -0.6006612181663513, 0.336405485868454, 0.3564562499523163, 1.030968427658081, -0.11256283521652222, 0.19833464920520782, 0.5283380150794983, 0.3858303725719452, -0.29955756664276123, -0.02000480890274048, 0.030849456787109375, -0.9464564919471741, -0.30611738562583923, -0.5907227396965027, -0.4396747946739197, -0.1721530556678772, -0.5563125610351562, 0.17198358476161957, -0.6671390533447266, -0.34159398078918457, -0.23047326505184174, -0.0012379937106743455, -0.26867538690567017, -0.2263438105583191, 0.2550557255744934, 0.2777392268180847, -0.7506577372550964, 1.1095528602600098, 0.48580101132392883, -0.36998069286346436, -0.6933966279029846, 0.08990895748138428, 0.36142221093177795, -0.6524645686149597, 0.23567456007003784, 0.05133773386478424, -0.3385770618915558, -0.3677598834037781, -0.4688164293766022, -0.854011058807373, 0.8228662014007568, 0.5973271131515503, -0.944015383720398, -0.40861716866493225, 0.09084350615739822, 0.2511162757873535, -0.163489431142807, -0.2562375068664551, 0.6585096716880798, 0.5302907228469849, 0.06146402284502983, -1.2328486442565918, -0.015082678757607937, 0.2581157982349396, 0.004888450261205435, 0.7109153866767883, -0.9252801537513733, 0.23805664479732513, -0.41856759786605835, -0.43132704496383667, 0.05158060044050217, 0.5747568607330322, 0.2877601683139801, 0.025048259645700455, 0.7633621096611023, 0.7364854216575623, 0.7536567449569702, 0.11937915533781052, 0.8122312426567078, 0.019534239545464516, 0.5313512086868286, 1.4081463813781738, -0.4704054594039917, 0.7574335336685181, 0.7127267122268677, -0.3904186487197876, 0.32620954513549805, 0.4698662757873535, 0.46903231739997864, 0.7486080527305603, 0.19464915990829468, -0.5176613926887512, -0.48098188638687134, -0.1576562076807022, -0.2157975733280182, 0.2280038595199585, 0.1428554356098175, 0.01968873105943203, -0.2812982499599457, -0.13569900393486023, 0.3985917568206787, 0.3069685101509094, -0.09627241641283035, 0.6533151268959045, 0.0703037679195404, -0.9482571482658386, 0.6761162877082825, -0.08292889595031738, 0.852914571762085, -0.7537209987640381, 0.25697463750839233, -0.10491928458213806, 0.25949227809906006, -0.07208305597305298, -0.57025545835495, 0.22329644858837128, -0.1367797702550888, -0.09823682904243469, -0.27741730213165283, 0.44613271951675415, -0.7747833132743835, -0.2391948103904724, 0.29410749673843384, -0.032329291105270386, -0.2867855131626129, 0.27883651852607727, -0.7475418448448181, 0.10497546195983887, 0.09074810892343521, -0.13806907832622528, 0.5405613780021667, -0.238624706864357, -0.12848718464374542, 0.4865703582763672, 0.5307143926620483, -0.03173479437828064, 0.014748374931514263, -0.1933550238609314, 0.7116910219192505, -0.4242008328437805, -0.5726730227470398, -0.5826961398124695, 0.4973287582397461, 0.016703244298696518, -0.18618416786193848, 0.12281342595815659, 0.29524242877960205, 0.7034080028533936, 0.09174762666225433, 0.823456346988678, 0.11699745059013367, 0.3080821931362152, -0.7741339206695557, 0.5479050278663635, -0.5303259491920471, 0.10974615067243576, 0.06958885490894318, -0.7982705235481262, -0.5508042573928833, 0.5751275420188904, -0.46293410658836365, -0.1297043263912201, 0.6347485780715942, 1.2504515647888184, -0.12543317675590515, -0.4216204285621643, 0.38565006852149963, -0.06813278794288635, 0.24938717484474182, 0.9020529985427856, 0.6419968008995056, 0.02046651393175125, 0.5378494262695312, -0.5417100191116333, -0.4012185335159302, -0.087944895029068, -1.0483648777008057, -0.9509342908859253, -0.3940119743347168, -0.5033559799194336, -0.4307200014591217, 0.1613909900188446, 1.40053129196167, 0.8928253650665283, -0.9455426931381226, -0.240357905626297, 0.19913427531719208, 0.052248645573854446, 0.055631984025239944, -0.14349453151226044, 0.4610403776168823, -0.25896814465522766, -0.6628697514533997, 0.5688179135322571, 0.6464234590530396, 0.12024886161088943, -0.2674691081047058, -0.38662365078926086, -0.2394525408744812, 0.16567695140838623, 0.023209575563669205, 0.8973758816719055, -0.8530032634735107, -0.576505720615387, -0.45054391026496887, -0.26397037506103516, 0.16139018535614014, 0.9461420178413391, -0.3294813334941864, 0.5098168849945068, 0.24584706127643585, 0.7573283910751343, 0.329433411359787, 0.19523809850215912, 0.7549018859863281, -0.6616239547729492, 0.4932154417037964, 0.2985604405403137, 0.32213807106018066, 0.25194215774536133, -0.37617582082748413, 0.5516293048858643, 0.002098522149026394, -0.740383505821228, -0.8266915082931519, 0.4743002951145172, -1.0542851686477661, -0.012875441461801529, 1.1020468473434448, -0.1157955527305603, -0.08065890520811081, 0.01453697495162487, -0.21178507804870605, 0.11721403151750565, -0.48458778858184814, 0.6551467776298523, 0.3661673069000244, -0.05931074544787407, -0.09019457548856735, -0.0668434128165245, 0.6173922419548035, 0.6377251744270325, -0.7797978520393372, 0.02788008563220501, 0.6232872009277344, 0.23881909251213074, -0.1010841429233551, 0.5637751221656799, 0.003545910818502307, 0.28544917702674866, -0.41710200905799866, 0.08760548382997513, 0.15912115573883057, -0.3192107677459717, -0.6026387214660645, 0.05853390693664551, 0.14080259203910828, -0.23187923431396484 ]
http://arxiv.org/abs/2405.19538v2
http://arxiv.org/pdf/2405.19538v2
CheXpert Plus: Augmenting a Large Chest X-ray Dataset with Text Radiology Reports, Patient Demographics and Additional Image Formats
2024-05-29T21:48:56
2024-06-03T19:14:12
Pierre Chambon, Jean-Benoit Delbrouck, Thomas Sounack, Shih-Cheng Huang, Zhihong Chen, Maya Varma, Steven QH Truong, Chu The Chuong, Curtis P. Langlotz
cs.CL
cs.CL, cs.AI, cs.CV, cs.LG
Since the release of the original CheXpert paper five years ago, CheXpert has become one of the most widely used and cited clinical AI datasets. The emergence of vision language models has sparked an increase in demands for sharing reports linked to CheXpert images, along with a growing interest among AI fairness researchers in obtaining demographic data. To address this, CheXpert Plus serves as a new collection of radiology data sources, made publicly available to enhance the scaling, performance, robustness, and fairness of models for all subsequent machine learning tasks in the field of radiology. CheXpert Plus is the largest text dataset publicly released in radiology, with a total of 36 million text tokens, including 13 million impression tokens. To the best of our knowledge, it represents the largest text de-identification effort in radiology, with almost 1 million PHI spans anonymized. It is only the second time that a large-scale English paired dataset has been released in radiology, thereby enabling, for the first time, cross-institution training at scale. All reports are paired with high-quality images in DICOM format, along with numerous image and patient metadata covering various clinical and socio-economic groups, as well as many pathology labels and RadGraph annotations. We hope this dataset will boost research for AI models that can further assist radiologists and help improve medical care. Data is available at the following URL: https://stanfordaimi.azurewebsites.net/datasets/5158c524-d3ab-4e02-96e9-6ee9efc110a1 Models are available at the following URL: https://github.com/Stanford-AIMI/chexpert-plus
[ -0.18888133764266968, 0.0009665442630648613, 0.750584602355957, 0.055287063121795654, -0.029938960447907448, -0.07970262318849564, 0.18742305040359497, -0.8173916935920715, 0.07768000662326813, 0.6973113417625427, -0.4284772574901581, -0.35159674286842346, -0.8554146885871887, -0.052785564213991165, -0.6176487803459167, 1.0546808242797852, 0.2735617458820343, 0.3646855354309082, -0.32193723320961, -0.12586398422718048, -0.39712390303611755, -0.7373939156532288, -0.9558844566345215, -0.3813178539276123, 0.60277259349823, 0.20638000965118408, 1.3081921339035034, 0.9700042605400085, 0.6180884838104248, 0.24197661876678467, 0.2880486845970154, -0.15886983275413513, -0.03281272575259209, -0.06238337233662605, -0.14444316923618317, -0.3002362847328186, -0.7657395005226135, -0.03755848482251167, 0.5027406215667725, 0.7875427007675171, 0.1279774159193039, -0.3708990812301636, -0.3868390619754791, 0.6688575148582458, -0.4605300724506378, 0.22571498155593872, -0.065414197742939, 0.0710529088973999, -0.2579021155834198, -0.1242295429110527, -0.22810596227645874, -0.2678092122077942, 0.49699416756629944, -0.5887783765792847, 0.12431947141885757, -0.16411460936069489, 0.6374921798706055, 0.07795312255620956, -0.6896356344223022, -0.4511306881904602, -0.3485158383846283, 0.6592699885368347, -0.17279896140098572, 0.6510287523269653, 0.30012306571006775, 0.39506828784942627, 0.33133694529533386, -1.0764713287353516, -0.200896218419075, -0.4677639305591583, -0.43641653656959534, 0.3439807593822479, -0.19297538697719574, -0.09966853260993958, 0.061080917716026306, 0.44405925273895264, -0.9115058779716492, -0.0009403123403899372, -0.32410264015197754, -0.1948566436767578, 0.839707612991333, 0.1993233561515808, 0.3588193953037262, -0.068728506565094, -0.5731378197669983, -0.5750336050987244, -0.4041077792644501, -0.5052725672721863, -0.19071198999881744, 0.11639604717493057, -0.17204558849334717, 0.3406916856765747, -0.2556077241897583, 0.664150059223175, -0.2039787769317627, 0.3403760492801666, 0.6905350685119629, -0.23290789127349854, -0.19603893160820007, 0.5834057331085205, 0.5615101456642151, 0.032200075685977936, -0.062070440500974655, 0.17557819187641144, 0.08028846979141235, 0.25501975417137146, 0.014778031967580318, -0.6626851558685303, -0.44244563579559326, 0.49421074986457825, -0.5013485550880432, -0.4100806415081024, 0.28038260340690613, -0.6838255524635315, -0.8323670029640198, -0.5634500980377197, 0.29735806584358215, -0.553900420665741, -0.3036046624183655, 0.5649435520172119, -0.22506345808506012, -0.039871539920568466, 0.561830461025238, -0.15194439888000488, 0.5758283138275146, 0.6542590856552124, 0.6071199178695679, -0.035390306264162064, -0.23799388110637665, -0.7998305559158325, 0.04909559339284897, -0.13457201421260834, 0.6962313055992126, -0.8271329402923584, -0.37236225605010986, -0.16078245639801025, 0.14465707540512085, 0.06452775746583939, -0.5750498175621033, 0.4672833979129791, -0.313419908285141, 0.3568384051322937, -0.2771465480327606, -0.2489878386259079, -0.15501224994659424, 0.2262350469827652, -0.9103232026100159, 0.9055398106575012, 0.27013862133026123, -0.5648959875106812, 0.2343437671661377, -0.7561326026916504, -0.2807876765727997, 0.3550278842449188, -0.33158400654792786, -0.3625398278236389, 0.043920546770095825, 0.2958742678165436, 0.5139356851577759, -0.5704538822174072, 0.2905515730381012, 0.0005986830801703036, -0.03403659537434578, 0.5283119082450867, -0.30678561329841614, 1.0775246620178223, 0.3261796832084656, -0.0473441556096077, -0.07508835196495056, -0.972718358039856, 0.12121019512414932, -0.022131536155939102, 0.05261971428990364, -0.38212376832962036, -0.2631959319114685, 0.3541613519191742, 0.574059009552002, 0.17132742702960968, -0.6872255206108093, -0.06837992370128632, 0.1223590224981308, 0.2156286984682083, 0.47291961312294006, -0.09252955764532089, -0.03203717991709709, -0.6689189672470093, 0.5156956911087036, 0.05126045644283295, 0.5253874063491821, -0.4311513602733612, -0.41237738728523254, -0.46996909379959106, -0.8141523599624634, 0.138586163520813, 0.5984746217727661, -0.414418488740921, 0.03419416397809982, -0.3753603398799896, -0.5701314806938171, -0.5703816413879395, -0.3473750352859497, 0.4162738621234894, 0.30328404903411865, 0.34998852014541626, -0.5018545985221863, -0.608248233795166, -0.9016380310058594, 0.13044126331806183, 0.1732502430677414, -0.2637309730052948, 0.4918922781944275, 0.3137601613998413, -0.5132469534873962, 0.5257220268249512, -0.8237254023551941, -0.32048699259757996, -0.07966239750385284, 0.13028329610824585, 0.04656723514199257, 0.448088139295578, 0.3832017481327057, -1.011836290359497, -0.6663273572921753, 0.3878747522830963, -0.8122779726982117, 0.05854159593582153, -0.2428436279296875, -0.12029097229242325, -0.06047677993774414, 0.44566628336906433, -0.14367830753326416, 0.2517978549003601, 0.730413019657135, -0.3692881762981415, 0.16349317133426666, -0.2361902892589569, 0.3285752534866333, -0.9683294296264648, 0.257351815700531, 0.28934797644615173, -0.6928815841674805, -0.49364838004112244, 0.162149578332901, 0.2785550653934479, -0.6201712489128113, -0.5232030153274536, 0.4330708980560303, -0.42929449677467346, 0.2624265253543854, -0.04717746376991272, -0.1907636672258377, 0.12967364490032196, 0.049472685903310776, 0.6155645251274109, 0.25412261486053467, 0.8803470730781555, -0.29713618755340576, 0.5362665057182312, 0.2428465485572815, -0.16265127062797546, 0.6234725117683411, -0.7050572037696838, 0.2207663506269455, -0.2777553200721741, 0.549370527267456, -0.46199241280555725, -0.40733450651168823, 0.02084205485880375, -0.3304045498371124, 0.3527293801307678, 0.23589859902858734, -0.3904981315135956, -0.0978384017944336, -0.5173516273498535, 0.5672935247421265, 0.291325181722641, -0.5309708714485168, 0.3266288638114929, 0.46369844675064087, -0.3154151737689972, -0.3725987672805786, -0.6897429823875427, 0.3341939449310303, 0.2843451499938965, -0.5190951824188232, 0.37199267745018005, -0.13596946001052856, -0.14899830520153046, 0.23251476883888245, 0.26493901014328003, -0.5106997489929199, -0.3955005705356598, 0.2990535795688629, 0.3739016056060791, 0.0935804545879364, 0.20389138162136078, -0.2242979109287262, -0.5640662908554077, -0.027362577617168427, -0.30626004934310913, 0.6666789054870605, 0.03715319558978081, -0.2706407904624939, -0.6045717597007751, 0.6377566456794739, 0.6026249527931213, -0.09644056111574173, 0.49012041091918945, 0.35491418838500977, -0.3625156879425049, 0.22585254907608032, -0.4805231988430023, -0.06797514110803604, -0.35181373357772827, 0.6302919387817383, -0.08434311300516129, -0.748827338218689, 0.2194433957338333, 0.07130002975463867, -0.2249690741300583, 0.438109427690506, 0.4004737138748169, 0.19515971839427948, 1.0571560859680176, 0.5469975471496582, -0.17189356684684753, 0.16488976776599884, -0.12157896161079407, -0.17475304007530212, -0.4660947024822235, -0.5442919731140137, -0.610124409198761, -0.046167947351932526, -0.7191867232322693, -0.2629072666168213, 0.49980828166007996, -0.9805867671966553, -0.17928101122379303, 0.16054394841194153, -0.757722020149231, 0.4834635257720947, 0.5392722487449646, 0.5620237588882446, 0.5098916888237, -0.011835395358502865, 0.6162582039833069, -0.11571992933750153, -0.48959067463874817, 0.12137878686189651, 1.231358289718628, 0.17989620566368103, 0.6725919842720032, -0.08760136365890503, 0.5727543830871582, 0.46780896186828613, 0.05417811498045921, -0.5470932126045227, 0.288053959608078, -0.5963985323905945, -0.8188261389732361, 0.12451189011335373, -0.411981463432312, -1.014127492904663, -0.34758949279785156, -0.18664124608039856, -0.2839919924736023, 0.5861198306083679, 0.007477287203073502, -0.33234450221061707, 0.007032548543065786, -0.4524767994880676, 0.5969642996788025, -0.3262830972671509, -0.37077751755714417, -0.18897995352745056, -0.8781886100769043, 0.2397993803024292, -0.4692646861076355, 0.1856805831193924, 0.20322364568710327, -0.29456827044487, 0.4040689766407013, -0.6868350505828857, 0.6276841759681702, 0.13114839792251587, 0.008160329423844814, -0.010806780308485031, -0.16598454117774963, 0.29364776611328125, 0.17778946459293365, -0.16525232791900635, 0.4518488347530365, 0.2359415888786316, -0.45563769340515137, -0.48276594281196594, 0.941462516784668, -1.0475969314575195, -0.04292774572968483, -0.9824708104133606, -0.7940765619277954, 0.13183170557022095, -0.028969455510377884, 0.2856931686401367, 0.9997299909591675, 0.20625615119934082, 0.3257308602333069, 0.6874911189079285, -0.5073298811912537, -0.24467022716999054, 0.33977341651916504, 0.02950180694460869, -0.5763952732086182, 1.2302472591400146, 0.3353780508041382, 0.15226875245571136, 0.6660452485084534, 0.15751847624778748, -0.2387435883283615, -0.11834980547428131, 0.20459656417369843, 0.20213381946086884, -0.5976428389549255, -0.18489284813404083, -0.711240291595459, -0.5627599358558655, -0.40774005651474, -0.4130841791629791, -0.41219884157180786, -0.6003384590148926, 0.18364956974983215, 0.11397174745798111, 0.5181019306182861, 0.7080291509628296, -0.19477339088916779, 0.33268338441848755, -0.8323808312416077, 0.08693323284387589, 0.31519827246665955, 0.23521259427070618, -0.2724311649799347, -0.10552359372377396, -0.2807033061981201, -0.2595340311527252, -0.019041985273361206, -0.7228459119796753, 0.43065449595451355, 0.002458761679008603, 0.19966940581798553, 0.20371530950069427, -0.018139058724045753, 0.5957977771759033, -0.0785834938287735, 0.5411925315856934, 0.29853156208992004, -0.7745504379272461, 0.4353663921356201, -0.3820110261440277, 0.43235471844673157, 0.45049405097961426, 0.6343890428543091, -0.7886484265327454, -0.0918654277920723, -0.830003559589386, -0.9459196925163269, 0.9008340239524841, 0.2509928047657013, 0.1139337345957756, -0.07374445348978043, 0.4619443416595459, 0.42150408029556274, -0.03229394182562828, -0.6166254878044128, -0.2797412574291229, -0.2728903591632843, -0.36728325486183167, -0.13156180083751678, -0.33428898453712463, -0.0940270647406578, -0.22786439955234528, 0.8321266174316406, 0.20846927165985107, 0.26399391889572144, 0.4117638170719147, -0.14391069114208221, 0.23150408267974854, 0.06315730512142181, 0.30270707607269287, 0.5741386413574219, -0.33290866017341614, 0.24007172882556915, -0.17106251418590546, -0.8588350415229797, 0.02129119075834751, 0.4288244843482971, 0.11825456470251083, 0.020776931196451187, 0.38744983077049255, 0.3724139630794525, -0.01244437973946333, -0.8221738934516907, 0.4474411904811859, -0.2805473506450653, -0.27809396386146545, -0.387727290391922, -0.034584417939186096, -0.42968809604644775, 0.22515282034873962, 0.3297877609729767, 0.30751755833625793, 0.4561484754085541, -0.45136523246765137, 0.5358591675758362, 0.14492079615592957, -0.8839725255966187, -0.1481533944606781, 0.638266921043396, 0.148267462849617, 0.18028125166893005, 0.800570011138916, 0.18152539432048798, -0.12467269599437714, 0.6989114880561829, 0.22167213261127472, 0.6490105986595154, -0.2941984236240387, 0.44200754165649414, 0.4809567630290985, 0.2122039794921875, -0.10960929840803146, 0.07306624203920364, 0.20159085094928741, -0.4838406443595886, -0.41668596863746643, -0.004414165858179331, -0.47131773829460144, 0.35836493968963623, -0.8108786940574646, 0.5486846566200256, -0.5285154581069946, 0.014471727423369884, 0.011381901800632477, 0.3575783669948578, -0.673392653465271, 0.6418383717536926, 0.2809039354324341, 0.8520428538322449, -0.9662357568740845, 0.9165174961090088, 0.7555187344551086, -0.2934627830982208, -0.5079805254936218, -0.22781330347061157, 0.2690989077091217, -0.9689750075340271, 0.43956124782562256, 0.12835584580898285, 0.17521721124649048, 0.12271163612604141, -0.4165153205394745, -0.8685516119003296, 1.004880666732788, 0.43740934133529663, -0.5278657078742981, 0.22703829407691956, 0.32100558280944824, 0.17335136234760284, -0.18878290057182312, 0.3942398726940155, 0.5345916152000427, 0.4858444929122925, 0.3530469834804535, -0.6160544157028198, 0.3783130943775177, -0.40350639820098877, -0.14062190055847168, 0.116097591817379, -0.5782729983329773, 0.985382080078125, 0.034738197922706604, -0.055317092686891556, -0.014651908539235592, 0.09574584662914276, 0.15764757990837097, 0.32475370168685913, 0.2871180772781372, 0.6211334466934204, 0.7227815389633179, -0.03995061293244362, 1.5960248708724976, -0.03507662191987038, 0.0719478651881218, 1.174846887588501, -0.41107088327407837, 0.40036559104919434, 0.04167292267084122, -0.0797605887055397, 0.47946009039878845, 0.5287341475486755, -0.14138604700565338, 0.38294854760169983, -0.35980314016342163, -0.4059123694896698, -0.34470343589782715, -0.49260568618774414, -0.7527474761009216, 0.29053887724876404, 0.19741204380989075, -0.49724310636520386, -0.25129517912864685, 0.16449296474456787, 0.3203124701976776, -0.20630742609500885, -0.2706579566001892, 0.731723427772522, -0.14719030261039734, -0.19118763506412506, 0.17479641735553741, -0.2681472897529602, 0.29342082142829895, -1.0499780178070068, -0.04038706421852112, -0.21388883888721466, 0.4110766053199768, -0.6096997261047363, -0.7187892198562622, 0.24590013921260834, -0.11976861208677292, -0.12586095929145813, 0.011941377073526382, 0.5167145729064941, -0.3530096411705017, -0.816864550113678, 0.2507500648498535, 0.3043442964553833, 0.26425182819366455, -0.1888481080532074, -0.6781631112098694, 0.39554640650749207, 0.01961885765194893, 0.03493017330765724, 0.5271599888801575, 0.3859919309616089, -0.2852415442466736, 0.4860823452472687, 0.5370821952819824, 0.15546295046806335, -0.3011670708656311, -0.03638257458806038, 1.0214499235153198, -0.3936660587787628, -0.2349511682987213, -0.7431631684303284, 0.6680154204368591, -0.26409125328063965, -0.19633975625038147, 0.5788902044296265, 0.851804256439209, 0.8130024671554565, 0.20674526691436768, 0.9914679527282715, -0.00020606610632967204, 0.25417977571487427, -0.30060940980911255, 0.6960228085517883, -0.7167353630065918, -0.04123752564191818, -0.311075359582901, -0.6375772356987, -0.817034900188446, 0.36653777956962585, -0.15209917724132538, 0.14809294044971466, 0.830405592918396, 0.7697166204452515, -0.14239513874053955, 0.05581270530819893, 0.38412126898765564, 0.2724921405315399, 0.38306838274002075, 0.5683795213699341, 0.5512545108795166, -0.5576854944229126, 0.648187518119812, -0.3761464059352875, -0.6615797877311707, -0.08795188367366791, -0.7220463752746582, -0.4124908745288849, -0.576568603515625, -0.7978762984275818, -0.2307949960231781, 0.23354683816432953, 0.8874673247337341, 1.0278280973434448, -0.6315644979476929, -0.2492683380842209, 0.11833670735359192, -0.4331062138080597, -0.3852587342262268, -0.20548783242702484, 0.7046884894371033, -0.11556506901979446, -0.7750803828239441, 0.10607446730136871, 0.3184470236301422, -0.14110784232616425, 0.08770909160375595, -0.16305869817733765, 0.0036736982874572277, 0.007012965623289347, 0.6510103344917297, 0.23436254262924194, 0.07204577326774597, -0.05889643728733063, -0.02740577608346939, -0.14391113817691803, 0.2874220907688141, 0.8420895338058472, -0.9911669492721558, 0.7452346086502075, 0.3079817295074463, 0.47201067209243774, 0.5584357976913452, -0.2907472550868988, 0.5175233483314514, -0.6042172312736511, 0.4742375612258911, 0.29357752203941345, 0.21723587810993195, 0.3765157461166382, -0.6869979500770569, 0.512921154499054, 0.10474728792905807, -0.482624888420105, -0.7402727007865906, 0.12744714319705963, -1.160336971282959, -0.4978681802749634, 0.7240127921104431, 0.16454213857650757, -0.04151350259780884, -0.14984674751758575, -0.4530114531517029, 0.09908901154994965, -0.6382713317871094, 0.6116926670074463, 0.2733124792575836, -0.3010668456554413, -0.45723462104797363, -0.483932763338089, 0.3848114013671875, 0.14897550642490387, -1.1113256216049194, -0.09360215812921524, 0.6578351259231567, 0.08206462860107422, 0.08421434462070465, 0.8018651604652405, -0.5830115675926208, 0.6008331179618835, -0.06602630019187927, 0.042553503066301346, -0.3456692397594452, -0.432448148727417, -0.3301599621772766, 0.28697913885116577, -0.1347220242023468, -0.11235691606998444 ]
http://arxiv.org/abs/2405.19534v1
http://arxiv.org/pdf/2405.19534v1
Preference Learning Algorithms Do Not Learn Preference Rankings
2024-05-29T21:29:44
2024-05-29T21:29:44
Angelica Chen, Sadhika Malladi, Lily H. Zhang, Xinyi Chen, Qiuyi Zhang, Rajesh Ranganath, Kyunghyun Cho
cs.LG
cs.LG, cs.AI, cs.CL
Preference learning algorithms (e.g., RLHF and DPO) are frequently used to steer LLMs to produce generations that are more preferred by humans, but our understanding of their inner workings is still limited. In this work, we study the conventional wisdom that preference learning trains models to assign higher likelihoods to more preferred outputs than less preferred outputs, measured via $\textit{ranking accuracy}$. Surprisingly, we find that most state-of-the-art preference-tuned models achieve a ranking accuracy of less than 60% on common preference datasets. We furthermore derive the $\textit{idealized ranking accuracy}$ that a preference-tuned LLM would achieve if it optimized the DPO or RLHF objective perfectly. We demonstrate that existing models exhibit a significant $\textit{alignment gap}$ -- $\textit{i.e.}$, a gap between the observed and idealized ranking accuracies. We attribute this discrepancy to the DPO objective, which is empirically and theoretically ill-suited to fix even mild ranking errors in the reference model, and derive a simple and efficient formula for quantifying the difficulty of learning a given preference datapoint. Finally, we demonstrate that ranking accuracy strongly correlates with the empirically popular win rate metric when the model is close to the reference model used in the objective, shedding further light on the differences between on-policy (e.g., RLHF) and off-policy (e.g., DPO) preference learning algorithms.
[ -0.2772333323955536, -0.2107919156551361, 0.8542746305465698, -0.3779354393482208, -0.2111889272928238, 0.17073048651218414, -0.16609837114810944, -0.4072894752025604, 0.11671427637338638, 0.16293823719024658, -0.5339792966842651, -0.38330793380737305, -0.7758712768554688, 0.006466723512858152, 0.280242383480072, 1.0612902641296387, 0.332057923078537, -0.07883074879646301, -0.3344844579696655, -0.04353451356291771, -0.26401492953300476, -0.54264897108078, -0.37617239356040955, -0.7723302245140076, 0.6286613941192627, 0.7788875699043274, 0.8858503699302673, 0.8365293741226196, 0.5757665038108826, 0.1789788454771042, -0.11295433342456818, 0.48011162877082825, -0.8804079294204712, -0.08990560472011566, 0.0636134222149849, -0.7218722701072693, -0.4880746603012085, 0.5407362580299377, 0.3758924901485443, 0.727317750453949, -0.14075228571891785, -0.02930537611246109, 0.1476329118013382, 1.1526365280151367, -0.7216447591781616, 0.2336524873971939, -1.0019792318344116, 0.21524031460285187, -0.2040143758058548, -0.6048234105110168, -0.5781980156898499, -0.731695294380188, 0.311301589012146, -0.6925637125968933, 0.2225639373064041, 0.38584646582603455, 0.9187511205673218, 0.42031368613243103, -0.45135629177093506, -0.38007351756095886, -0.5162356495857239, 0.9934452772140503, -0.46440771222114563, 0.29035669565200806, 0.5290879607200623, 0.18711049854755402, -0.16659432649612427, -0.17842720448970795, -0.08419778198003769, -0.4338725805282593, 0.19632773101329803, 0.20615848898887634, 0.26327988505363464, 0.16001173853874207, 0.12695452570915222, 0.40591511130332947, -0.2355552613735199, 0.34919220209121704, -0.27306628227233887, 0.13295984268188477, 0.7069564461708069, -0.01875213533639908, -0.4319816827774048, -0.07495462149381638, -0.5022377967834473, -0.1927998811006546, -0.7245607376098633, 0.3880713880062103, 0.5014798045158386, 0.31950920820236206, 0.09391675144433975, 0.4794597029685974, -0.18681882321834564, 0.8386611342430115, 0.6232596635818481, -0.39848092198371887, 0.1847895085811615, 0.3786851465702057, -0.19810102880001068, 0.22940196096897125, 0.5161897540092468, 0.5812343955039978, 0.6126117706298828, -0.3778911232948303, -0.25262734293937683, -0.09540411829948425, 0.3717677593231201, -0.3613014817237854, -0.35766318440437317, 0.008238736540079117, -0.42956602573394775, -0.5383298993110657, 0.2277708649635315, -0.35680755972862244, -0.3603942394256592, -0.3132888078689575, 0.4999593198299408, -0.057304415851831436, 0.14791780710220337, 0.03730513155460358, -0.1670127809047699, 0.3032674789428711, 0.2701583802700043, -1.2247518301010132, 0.0718504786491394, 0.8678441047668457, 0.6892521977424622, -0.5969676971435547, -0.408933162689209, -0.2831615209579468, -0.29049065709114075, -0.6922573447227478, 0.7274945974349976, -0.6394683718681335, -0.5798681974411011, -0.14946086704730988, -0.23350591957569122, -0.2770532965660095, -0.949779748916626, 0.44232988357543945, -0.8968076705932617, -0.04631481319665909, -0.4520338773727417, -0.8956090211868286, -0.04720054194331169, 0.00851193442940712, -0.4060697853565216, 0.7770130038261414, -0.20405392348766327, -0.5430834293365479, 0.9262878894805908, -0.42659807205200195, -0.2032192349433899, -0.4507879614830017, 0.024476082995533943, -0.5479288697242737, 0.3379448354244232, -0.15253956615924835, 0.5221351385116577, 0.004756685346364975, 0.17536719143390656, -0.7759339809417725, -0.6146907806396484, 0.33677059412002563, -0.37650570273399353, 0.48540782928466797, 0.10692489892244339, -0.24658198654651642, 0.06498691439628601, -0.4298042953014374, -0.05273764953017235, 0.224493607878685, -0.4800283908843994, -0.3569599688053131, 0.21315638720989227, -0.48513680696487427, -0.04815615341067314, 0.3106878399848938, -0.520663321018219, 0.46384546160697937, -0.4075030982494354, 0.2991394102573395, 1.1532752513885498, -0.39568600058555603, 0.6988919973373413, -0.7669547200202942, 0.19332118332386017, -0.20194214582443237, 0.0696849450469017, 0.5437610149383545, -0.4850712716579437, -0.8122729659080505, 0.30805230140686035, 0.3776143789291382, 0.39496996998786926, -0.08829768002033234, 0.3865436017513275, -0.4971882402896881, -0.5690668821334839, -0.5414946675300598, 0.20716416835784912, 0.15816697478294373, 0.7848766446113586, 0.2902885675430298, -0.19060032069683075, -0.1673397719860077, -0.7977098822593689, -0.20449192821979523, -0.40995973348617554, 0.39625778794288635, 0.7026612162590027, 0.17232416570186615, 0.39351704716682434, 0.9499409794807434, -0.67843097448349, -0.2028939127922058, -0.07718367129564285, -0.10575727373361588, 0.18644239008426666, 0.1858200877904892, 0.5218812823295593, -0.8185381889343262, -0.4806559979915619, -0.06496919691562653, -0.6424457430839539, 0.09478417783975601, 0.3930288255214691, 0.005072661209851503, 0.12611044943332672, 0.07883232831954956, -0.13479481637477875, 0.11849025636911392, 0.427228182554245, -0.16414283215999603, 0.48919686675071716, -0.2785714268684387, 0.2977059483528137, -0.5254049301147461, -0.17150811851024628, 0.07582280039787292, -0.3297366797924042, -0.34025201201438904, -0.22868043184280396, 0.13615375757217407, 0.21717388927936554, -0.5150875449180603, 0.3797004818916321, -0.03709637373685837, -0.32715871930122375, -0.3642817437648773, 0.024176618084311485, -0.04830457642674446, 0.6679821014404297, 0.4144890308380127, 0.8153038620948792, 0.21762467920780182, -0.9434990882873535, 0.15420477092266083, 0.11003302037715912, -0.21745865046977997, 0.5314605236053467, -0.42648255825042725, 0.17219862341880798, 0.09739667922258377, -0.15793146193027496, -0.7717787623405457, -0.1986425369977951, 0.1968238204717636, -0.44100698828697205, 0.44991475343704224, -0.4389774799346924, 0.1181812658905983, -0.04925868660211563, -0.29446783661842346, 0.23626409471035004, 0.7207427620887756, -0.8386711478233337, -0.27932578325271606, 0.43563058972358704, 0.1486591398715973, -1.005899429321289, -0.18403393030166626, -0.5754794478416443, -0.3604518473148346, -0.264285147190094, 0.46270594000816345, 0.020798584446310997, -0.19428005814552307, -0.16547845304012299, -0.32854175567626953, -0.03698593005537987, 0.3660714030265808, 0.2772926092147827, 0.3860566020011902, -0.03959944099187851, 0.34596678614616394, -0.2316240519285202, -0.28753262758255005, -0.08370546996593475, -0.13676467537879944, 0.16847126185894012, -0.11099933832883835, -0.4874531924724579, -0.30010250210762024, -0.25666552782058716, 0.6727656126022339, 0.03012532740831375, 0.5660523772239685, -0.022815363481640816, 0.06941370666027069, -0.18160979449748993, -0.4364311993122101, -0.3026004135608673, -0.3913894593715668, 0.17374397814273834, -0.43438562750816345, -0.6847509145736694, 0.05495585501194, -0.04774533212184906, 0.2520017921924591, 0.4696163237094879, 0.19780752062797546, -0.4793064296245575, 1.1350733041763306, 0.6441307663917542, -0.20482683181762695, 0.5645745396614075, -0.1432536542415619, -0.2423516809940338, -0.8069486618041992, -0.0618010051548481, -0.36028075218200684, -0.6034213900566101, -0.9349633455276489, 0.03061981499195099, 0.4537932276725769, 0.04418358579277992, -0.34328171610832214, -0.11637631058692932, -0.5738182663917542, 0.4897018074989319, 0.711424708366394, 0.26207634806632996, 0.4287382960319519, 0.2711641192436218, -0.11509967595338821, -0.3233998119831085, -0.9523698687553406, -0.3648536205291748, 1.434556484222412, 0.2685563564300537, 0.8607707023620605, -0.1273767650127411, 0.9399356245994568, 0.5653467178344727, 0.21525613963603973, -1.1537315845489502, 0.09619101136922836, -0.35479119420051575, -0.39531898498535156, -0.37116000056266785, -0.5330456495285034, -0.9095033407211304, 0.3011667728424072, -0.3517182469367981, -0.2915383279323578, 0.4468218684196472, 0.674797773361206, -0.291864275932312, 0.6267377734184265, -0.4613851010799408, 0.6093688607215881, -0.46183353662490845, -0.5592082738876343, -0.14780448377132416, -0.5506215691566467, 0.2847765386104584, 0.1295774281024933, -0.0005558422999456525, -0.5016596913337708, 0.16610783338546753, 0.8846516609191895, -0.26871344447135925, 0.4881376326084137, -0.25896528363227844, 0.13362061977386475, -0.0770760253071785, -0.11458739638328552, 0.36715203523635864, -0.14388111233711243, -0.4571411609649658, 0.1969071626663208, -0.2384594976902008, -0.40600496530532837, -0.3205062747001648, 0.7285442352294922, -0.9716710448265076, -0.6734873652458191, -0.6606084108352661, -0.0701756402850151, -0.38283640146255493, -0.07710496336221695, 0.4941903054714203, 0.2762141823768616, -0.23643642663955688, 0.1943822056055069, 0.9045533537864685, 0.17240296304225922, 0.07156991213560104, 0.3957192897796631, 0.0246469397097826, -0.1811232715845108, 0.9784771203994751, 0.2815074920654297, 0.4967041015625, 0.4587247371673584, 0.3180955648422241, -0.5312752723693848, -0.5343305468559265, -0.4461974501609802, 0.24272486567497253, -0.6615252494812012, 0.04492424800992012, -0.16090816259384155, -0.09729737788438797, -0.15736281871795654, -0.3051151633262634, -0.5847949981689453, -0.3751777112483978, -0.3100001811981201, -0.21075180172920227, 0.3771982491016388, 0.8147438764572144, -0.1809244155883789, 0.09014080464839935, -0.3055068254470825, 0.20343917608261108, 0.5425946116447449, 0.49911585450172424, -0.05178311839699745, -0.8099162578582764, -0.13786305487155914, 0.08879876881837845, -0.481821209192276, -0.7120124697685242, 0.22335360944271088, 0.28655341267585754, 0.6094936728477478, 0.528985321521759, 0.16997019946575165, 0.5673977732658386, -0.2912229001522064, 0.5206133127212524, -0.04407522454857826, -0.5798985958099365, 0.5272448062896729, 0.06833752244710922, -0.035468533635139465, 0.7869791388511658, 0.43667611479759216, -0.24877610802650452, 0.17451423406600952, -0.57835453748703, -0.4322182536125183, 0.8556169271469116, -0.23493725061416626, -0.17153823375701904, 0.04517524689435959, 0.6159115433692932, 0.4279439151287079, 0.40331804752349854, -0.6972786784172058, -0.7746474146842957, -0.12236294150352478, 0.039251092821359634, -0.48727577924728394, -0.3046499788761139, 0.10134933888912201, -0.0936325341463089, 0.9678547978401184, -0.046532753854990005, 0.014783203601837158, 0.20301328599452972, -0.07800369709730148, -0.2533012926578522, 0.40445786714553833, 0.4752192795276642, 0.6888337135314941, -0.7986831068992615, 0.010953258723020554, -0.04653666913509369, -0.16602101922035217, 0.44268473982810974, -0.1449352204799652, -0.4572371244430542, -0.20402324199676514, 0.09062031656503677, 1.0829538106918335, 0.3285987377166748, -0.310073584318161, 0.4574182629585266, 0.029985712841153145, -0.3098222017288208, -0.1313561648130417, 0.28012707829475403, -0.09170396625995636, -0.19055607914924622, 0.385498046875, 0.23170141875743866, 0.0804377868771553, -0.4501172602176666, 0.015344948507845402, 0.7814725637435913, -0.9687323570251465, -0.04389798268675804, 0.706369936466217, 0.4763698875904083, -0.2293280065059662, 0.5585900545120239, -0.1115722805261612, -0.4522831439971924, 0.6285759210586548, 0.2764962315559387, 0.6553258895874023, 0.008683618158102036, 0.29366564750671387, 0.11135666072368622, 0.1133979856967926, -0.2625172734260559, -0.1070789098739624, -0.23300112783908844, -0.8963619470596313, 0.03635095804929733, -0.6922237277030945, -0.7437003254890442, 0.003188889240846038, -0.7857069969177246, 0.03814753517508507, -0.4122892916202545, -0.5060462355613708, -0.042074669152498245, 0.2773889899253845, -0.6833401918411255, 0.2244400680065155, 0.003354055806994438, 0.5787177681922913, -0.7922329306602478, 0.5681657195091248, 0.7944877743721008, 0.007264107931405306, -0.6291260719299316, 0.054161570966243744, -0.08933670073747635, -1.0252803564071655, 0.6297286152839661, 0.04964559152722359, -0.29130494594573975, 0.1959475427865982, -0.44548535346984863, -0.655685544013977, 0.9582224488258362, 0.41353628039360046, -0.476809024810791, -0.04087401181459427, -0.07773587852716446, 0.10659540444612503, -0.43298545479774475, 0.32979920506477356, 0.45446890592575073, 0.4011402726173401, 0.00366000784561038, -1.0972713232040405, -0.5061571598052979, 0.18832677602767944, -0.4197298586368561, 0.12750402092933655, -0.9548043012619019, 0.6785622835159302, -0.49583882093429565, 0.03670750558376312, -0.23069573938846588, 0.297504186630249, 0.37864774465560913, 0.5352464318275452, 0.5772619843482971, 0.5151098370552063, 0.8515377640724182, -0.30483248829841614, 1.072761058807373, -0.15262804925441742, 0.4627115726470947, 1.0460869073867798, -0.4267937242984772, 0.8867286443710327, 0.40562498569488525, -0.40276864171028137, 0.37644490599632263, 1.043304204940796, 0.17298580706119537, 0.8110707998275757, -0.12067542970180511, 0.13300462067127228, -0.7355725765228271, 0.043684206902980804, -0.4052566885948181, 0.5100106000900269, 0.05415084958076477, -0.6248710751533508, 0.13241896033287048, -0.37705257534980774, -0.2568569779396057, 0.22878704965114594, -0.4368727207183838, 1.0534967184066772, 0.13411925733089447, -0.9968780875205994, 0.8077567219734192, -0.1346864551305771, 0.8010234236717224, -0.46826738119125366, 0.028141792863607407, -0.0647362545132637, 0.22337372601032257, -0.17908941209316254, -0.6194354295730591, -0.152950257062912, -0.2765604257583618, -0.5022571682929993, -0.07461606711149216, 0.4951530992984772, -0.10069707781076431, -0.26493820548057556, 0.24620242416858673, 0.61143958568573, 0.1790340095758438, 0.20039398968219757, -0.7232347726821899, -0.1692386418581009, 0.19015009701251984, -0.27019432187080383, 0.4473523497581482, -0.15488791465759277, 0.2744840979576111, 0.8585154414176941, 0.5036810040473938, 0.23679174482822418, -0.08624375611543655, -0.2527351379394531, 0.18600332736968994, -0.5200534462928772, -0.3852282464504242, -0.8389239311218262, -0.025440702214837074, -0.014571395702660084, -0.4080837070941925, 0.47088056802749634, 0.5088443756103516, 0.9644807577133179, -0.07078222185373306, 0.8689351677894592, 0.3724731206893921, 0.5500761866569519, -0.73258376121521, 0.5896996855735779, -0.86557936668396, 0.3427068293094635, 0.2450873702764511, -0.8877163529396057, 0.06310489773750305, 0.6698324084281921, -0.674836277961731, 0.1941526234149933, 0.2631111145019531, 0.5812897086143494, -0.2528996765613556, -0.27574804425239563, 0.53755784034729, -0.018413307145237923, -0.09845787286758423, 0.6523407697677612, 0.7419912815093994, 0.0019930836278945208, 0.3603905737400055, -0.6032029390335083, -0.4246704578399658, -0.7371587753295898, -0.7684054374694824, -0.7322279810905457, -0.18453356623649597, -0.20286042988300323, -0.07070815563201904, 0.4894341230392456, 1.0911954641342163, 0.925165057182312, -0.7638812065124512, -0.3794691562652588, -0.018842507153749466, 0.6041332483291626, -0.40324658155441284, -0.21011210978031158, 0.3991352617740631, -0.323312908411026, -0.8947668671607971, 0.3962879776954651, 0.16981381177902222, -0.008005080744624138, -0.06917338073253632, -0.2976049482822418, 0.02076091803610325, 0.005832312162965536, 0.2701468765735626, 0.4447920024394989, -0.9410195350646973, -0.4373202621936798, 0.10617473721504211, -0.16011527180671692, 0.5805897116661072, 0.5488407015800476, -0.8201367855072021, 0.5711902379989624, 0.2855932414531708, 0.32573992013931274, 0.2582685351371765, 0.2742742598056793, 0.4559729993343353, -0.3666376769542694, -0.2870272099971771, 0.006327166222035885, 0.2743246555328369, 0.3373209834098816, -0.40617847442626953, 0.38566768169403076, 0.40227943658828735, -0.9623598456382751, -0.574948787689209, 0.40199968218803406, -0.7813616394996643, -0.16735990345478058, 0.8940517902374268, 0.03956398367881775, -0.06625714153051376, 0.011956333182752132, -0.13559463620185852, 0.2110743373632431, -0.7187761664390564, 1.1123541593551636, 0.5857665538787842, -0.5597934126853943, 0.2613159716129303, -0.4055897891521454, 0.949336588382721, 0.6100075840950012, -0.2256312221288681, 0.15107131004333496, 0.3129495084285736, 0.5699624419212341, -0.09670005738735199, 0.5896847248077393, 0.18607746064662933, 0.47146639227867126, -0.3736817240715027, -0.25393033027648926, -0.15528778731822968, -0.32167863845825195, -0.4525584876537323, 0.39492231607437134, 0.680018961429596, -0.24341252446174622 ]
http://arxiv.org/abs/2406.00059v2
http://arxiv.org/pdf/2406.00059v2
Conveyor: Efficient Tool-aware LLM Serving with Tool Partial Execution
2024-05-29T21:24:15
2024-06-04T19:00:36
Yechen Xu, Xinhao Kong, Tingjun Chen, Danyang Zhuo
cs.CL
cs.CL, cs.DC, cs.LG
The complexity of large language model (LLM) serving workloads has substantially increased due to the integration with external tool invocations, such as ChatGPT plugins. In this paper, we identify a new opportunity for efficient LLM serving for requests that trigger tools: tool partial execution alongside LLM decoding. To this end, we design Conveyor, an efficient LLM serving system optimized for handling requests involving external tools. We introduce a novel interface for tool developers to expose partial execution opportunities to the LLM serving system and a request scheduler that facilitates partial tool execution. Our results demonstrate that tool partial execution can improve request completion latency by up to 38.8%.
[ -0.17921122908592224, -0.48313334584236145, 0.551550567150116, 0.4661966562271118, -0.08977017551660538, 0.4050201177597046, 0.14472471177577972, -0.6281327605247498, 0.2995898425579071, 0.4908449053764343, -0.609199047088623, -0.22632311284542084, -0.4003363847732544, -0.22437667846679688, -0.603049099445343, 0.6753742098808289, -0.0906371995806694, -0.098429374396801, -0.15145452320575714, 0.017883069813251495, -0.5349846482276917, -0.4627787470817566, -1.1383577585220337, -0.3669271469116211, 0.6971428990364075, 0.40664932131767273, 0.933249294757843, 0.7264240980148315, 0.7726442813873291, 0.34864604473114014, 0.23310434818267822, -0.13539628684520721, -0.47243258357048035, 0.2602548897266388, -0.046704262495040894, -0.8380599021911621, -0.5328885912895203, -0.48418137431144714, 0.4708132743835449, 0.6761058568954468, -0.3631752133369446, 0.12535442411899567, -0.12154281884431839, 0.38730964064598083, -0.5131121873855591, -0.26343658566474915, -0.5818898677825928, 0.20720867812633514, -0.5958942770957947, -0.16690877079963684, -0.4123413860797882, -0.2603239119052887, 0.16853132843971252, -0.565520167350769, 0.14708679914474487, 0.13093610107898712, 0.499604731798172, 0.3370804190635681, -0.30393898487091064, -0.06662880629301071, -0.7181974053382874, 0.38414546847343445, -0.4469884932041168, 0.5059083104133606, 0.07205110043287277, 0.700821042060852, -0.35942959785461426, -1.2326805591583252, -0.5177151560783386, -0.11714265495538712, -0.21138782799243927, 0.023742660880088806, -0.3700706362724304, 0.24523937702178955, 0.49424999952316284, 0.552529513835907, -0.6979381442070007, 0.24310056865215302, -0.03837266191840172, -0.3916659951210022, 0.1807847023010254, 0.2608948349952698, 0.49400219321250916, 0.2837136685848236, -0.36613914370536804, 0.18405525386333466, -0.8459059596061707, -0.12122191488742828, 0.6875869035720825, 0.027832021936774254, -0.050302885472774506, 0.8702514171600342, -0.21090881526470184, 0.8134324550628662, -0.11983591318130493, 0.35027167201042175, -0.0829373225569725, -0.1342398226261139, -0.1886521279811859, -0.07209494709968567, 0.5936007499694824, 0.1417381763458252, -0.3708944320678711, -0.18141037225723267, -0.5623385906219482, -0.08347747474908829, 0.3318459093570709, -0.8426812291145325, -0.3107664883136749, 0.23512627184391022, -0.11085499078035355, -0.03648528829216957, 0.1323900818824768, -0.43842223286628723, -0.7222143411636353, 0.06808698922395706, 0.20220397412776947, -0.23655354976654053, -0.26009154319763184, 0.058589156717061996, -0.31075942516326904, 0.6056510210037231, 0.4880560338497162, -0.33010992407798767, 0.6672688126564026, 0.8604466915130615, 1.3902943134307861, -0.19242554903030396, 0.11553001403808594, -1.2823468446731567, 0.345246821641922, 0.05474282056093216, 1.0417108535766602, -0.5267192721366882, -0.6122245788574219, 0.1434129774570465, 0.37312403321266174, 0.19887743890285492, -0.5497729182243347, 0.6635650992393494, -0.750342607498169, -0.028493953868746758, -0.21071356534957886, -0.5451371669769287, -0.1887676864862442, 0.028168629854917526, -0.9643464684486389, 1.2195314168930054, 0.19407910108566284, -0.8344208002090454, 0.02623668499290943, -0.8569717407226562, -0.7743842005729675, 0.5073898434638977, 0.09501625597476959, 0.001854501198977232, 0.11011061817407608, 0.052546754479408264, 0.3648333251476288, -0.2868671715259552, -0.1474415510892868, -0.20286057889461517, -0.7006716728210449, 0.05969861149787903, -0.2926391065120697, 0.34248045086860657, 0.3180810511112213, -0.31494590640068054, 0.5467118620872498, -0.3193652331829071, -0.23262588679790497, 0.15492023527622223, -0.4273904263973236, 0.007101068738847971, 0.18727245926856995, 0.23718580603599548, -0.06977399438619614, 0.7683989405632019, -0.5852629542350769, 0.37003442645072937, -0.8115458488464355, 0.2390410304069519, 0.923957347869873, -0.4858298599720001, 0.5354190468788147, -0.35566478967666626, 0.8980116248130798, -0.12304425239562988, 0.24842530488967896, -0.06931756436824799, -0.1757601648569107, -1.1549029350280762, -0.13762745261192322, 0.06710556149482727, 0.6414998769760132, -0.9349567294120789, 0.1312239021062851, -0.1853862702846527, -0.6594498753547668, -0.736640214920044, 0.2515103816986084, 0.28510963916778564, 0.12479336559772491, -0.16691410541534424, -0.4892314076423645, -0.5473697185516357, -1.0071698427200317, -0.021907219663262367, 0.15081927180290222, -0.21775013208389282, 0.2622651755809784, 0.03224461153149605, -0.009587489999830723, 0.7154521942138672, -0.5776930451393127, -0.005386977456510067, -0.4878757894039154, -0.34915128350257874, 0.7748780250549316, 0.1779191493988037, 0.5168720483779907, -0.7249069213867188, -0.7860202789306641, 0.36026740074157715, -0.41250717639923096, -0.40195178985595703, -0.009455137886106968, -0.45008817315101624, 0.027531823143363, 0.5066867470741272, -0.5346043109893799, 0.14629004895687103, 0.7131381034851074, -0.1562594175338745, 0.5442659854888916, -0.39658787846565247, -0.15621373057365417, -0.8739281892776489, 0.15413570404052734, -0.2753673791885376, -0.7487781643867493, -0.6670977473258972, 0.14836162328720093, 0.02857510931789875, -0.27865058183670044, -0.7334725856781006, 0.6860541105270386, -0.5262770652770996, -0.3506479859352112, -0.595848023891449, 0.25724369287490845, -0.07494135946035385, 0.1630152314901352, -0.12084177136421204, 1.0620557069778442, 0.721467912197113, -0.4039875864982605, 0.7665225863456726, -0.1671464741230011, -0.10235040634870529, 0.4435313642024994, -1.2273319959640503, 0.5310759544372559, 0.10694638639688492, 0.33553817868232727, -0.8015035390853882, -0.15671946108341217, 0.44004422426223755, 0.17984968423843384, 0.221347376704216, -0.5834199786186218, -0.8328512907028198, -0.6102044582366943, -0.26037362217903137, 0.20981594920158386, 0.4406268894672394, -0.6839702725410461, 0.8029798865318298, 0.23981712758541107, -0.07563858479261398, -0.46084892749786377, -0.43240565061569214, 0.04315243661403656, -0.15322211384773254, -0.8117926120758057, 0.3653526306152344, -0.18437567353248596, 0.08940387517213821, -0.23500408232212067, -0.41472315788269043, 0.04467138275504112, 0.06645258516073227, 0.5047118067741394, 0.1512499749660492, -0.03195662423968315, -0.18286928534507751, 0.034764934331178665, -0.13184693455696106, -0.012239214964210987, -0.4626186788082123, 1.048236608505249, 0.20004495978355408, -0.9167727828025818, -0.5997303128242493, 0.3270481824874878, 0.4547663927078247, -0.14637652039527893, 0.6797201633453369, 0.6261056661605835, -0.12664687633514404, 0.13911882042884827, -0.8116624355316162, -0.008338327519595623, -0.5829625725746155, 0.24171271920204163, -0.7323156595230103, -0.6981896758079529, 0.7069937586784363, -0.15893825888633728, 0.19718211889266968, 0.04556560516357422, 0.48624786734580994, 0.09091861546039581, 0.927541971206665, 0.7429757714271545, -0.31535398960113525, 1.0407198667526245, -0.23975396156311035, -0.03185545653104782, -0.8081495761871338, 0.09725242108106613, -0.36548441648483276, -0.32948392629623413, -0.3341290056705475, -0.6422973871231079, 0.33660921454429626, -0.14937685430049896, 0.03417544066905975, 0.5039306879043579, -0.5166018009185791, 0.6066104173660278, 0.6960737705230713, 0.15342193841934204, 0.2629666328430176, -0.4245002865791321, -0.34470731019973755, 0.4581758975982666, -0.7418559789657593, -0.5593960881233215, 0.6421769261360168, 0.17736724019050598, 0.9239076972007751, 0.2650270462036133, 0.22828172147274017, 0.49916014075279236, -0.016163818538188934, -0.8299905061721802, 0.6122379302978516, 0.12077520787715912, -0.36139586567878723, 0.06465063244104385, -0.1303856521844864, -0.8908368945121765, 0.34642279148101807, 0.28117090463638306, -0.5965131521224976, -0.2265171855688095, -0.0037443116307258606, -0.1281217783689499, 0.37451839447021484, -0.978227436542511, 0.748928427696228, -0.15475863218307495, -0.3850199282169342, -0.2973712682723999, -0.5922730565071106, -0.07861141115427017, 0.08103876560926437, -0.20807959139347076, -0.14193306863307953, -0.12318391352891922, 0.4949360191822052, -0.618919312953949, 0.8322763442993164, -0.5778692960739136, -0.3370782732963562, 0.05092867091298103, 0.4393182694911957, 1.2537438869476318, 0.041760675609111786, -0.3539276123046875, -0.20467671751976013, 0.10601403564214706, -0.4933485686779022, -0.742613673210144, 0.7611146569252014, -0.46299728751182556, -0.8917887210845947, -0.5574483871459961, -0.44093018770217896, 0.25199469923973083, 0.24523544311523438, -0.07224580645561218, 0.30676695704460144, 0.017910482361912727, -0.15919753909111023, 0.31467074155807495, -0.38201311230659485, 0.4399457573890686, 0.5966907739639282, -0.2728786766529083, 0.19791962206363678, 0.7187642455101013, -0.09113378822803497, 0.2646830081939697, 0.5419138669967651, -0.07080543786287308, -0.2602301239967346, -0.7360160946846008, -0.3503396809101105, 0.1743316650390625, -0.6079899072647095, -0.30811062455177307, -0.7338756322860718, -0.37259840965270996, -0.025403207167983055, -0.39727523922920227, -0.43560129404067993, -0.2825649380683899, -0.15114782750606537, 0.14115656912326813, 0.6485019326210022, 0.5919501781463623, 0.12869158387184143, 0.9837562441825867, -0.5897724032402039, 0.12183451652526855, 0.057938504964113235, 0.4897823631763458, 0.012234422378242016, -0.48595505952835083, -0.20191404223442078, -0.03882979601621628, -0.35753050446510315, -0.44589659571647644, 0.185449481010437, 0.005512487608939409, 0.645382285118103, 0.570235013961792, 0.11934862285852432, 0.7040605545043945, -0.7957305908203125, 0.5764154195785522, -0.032609131187200546, -0.8362859487533569, 0.6929142475128174, -0.25912898778915405, 0.5200039148330688, 0.04266353324055672, 0.4691984951496124, -0.8802270889282227, -0.6539920568466187, -0.1628742218017578, -0.8840882778167725, 0.7977961897850037, 0.1258438229560852, 0.2631209194660187, 0.11847925931215286, 0.22142890095710754, 0.3309148848056793, -0.14044485986232758, -0.4137627184391022, -0.01817779429256916, 0.18014705181121826, 0.10933008044958115, 0.30867666006088257, -0.2883055508136749, -0.0927213728427887, 0.07817622274160385, 0.5106995701789856, -0.21135784685611725, 0.5297659635543823, -0.04697558283805847, -0.3237760066986084, 0.18896722793579102, 0.21444644033908844, 0.3546687662601471, 0.5517604351043701, 0.02694215066730976, 0.28003406524658203, 0.37562569975852966, -0.36412766575813293, -0.0008740545599721372, 0.22496823966503143, 0.08766695111989975, -0.17094889283180237, 0.04531010612845421, 0.6013510227203369, 0.10026345402002335, -0.7608638405799866, 0.49684327840805054, -0.30129700899124146, 0.40813809633255005, -0.45723989605903625, 0.24122101068496704, 0.36752673983573914, 0.6219735741615295, 0.11679079383611679, -0.16348004341125488, 0.4392998218536377, -0.09427330642938614, -0.06323571503162384, 0.3917495012283325, -0.4726918339729309, -0.3340815007686615, 0.6029221415519714, 0.2844924330711365, -0.33455830812454224, 0.4020026624202728, -0.13531140983104706, -0.3957778215408325, 0.3231430947780609, 0.6460757851600647, 0.6931069493293762, 0.04385097697377205, -0.03733416274189949, -0.44010987877845764, 0.1758139580488205, 0.08346424996852875, 0.4252316355705261, -0.17746850848197937, -0.46588632464408875, -0.6494032740592957, -0.7367274165153503, -0.5844537019729614, -0.6432220339775085, -0.3377785086631775, 0.5091261863708496, -0.2486741542816162, -0.13386297225952148, -0.24623823165893555, -0.13871929049491882, -0.8203219771385193, -0.5497848391532898, -0.11600274592638016, 1.1587719917297363, -0.1806941032409668, 0.9544515609741211, 0.7844745516777039, -0.1031656414270401, -0.3994806408882141, -0.32952389121055603, 0.08277630060911179, -0.7625874876976013, 0.5903611183166504, 0.057833634316921234, -0.5233755707740784, 0.0008149116765707731, 0.03546285629272461, -0.8117226958274841, 0.8472654223442078, 0.6455608606338501, -0.7841799855232239, -0.04152065888047218, 0.1753121316432953, 0.21889886260032654, 0.11549223959445953, 0.6990078091621399, 0.17021490633487701, 0.5466444492340088, 0.41703763604164124, -1.0515480041503906, 0.3981134593486786, -0.14667908847332, 0.19692964851856232, 0.3584616482257843, -0.7091010808944702, 0.004407609347254038, 0.13512273132801056, -0.4798721671104431, 0.43877512216567993, 0.6367358565330505, -0.0895829051733017, 0.026896996423602104, 0.4598924517631531, 0.2398274540901184, 0.6820217967033386, -0.27717840671539307, 1.244261622428894, -0.08483611792325974, -0.07808995991945267, 1.1399494409561157, -0.6124243140220642, 0.6367278099060059, 0.5366316437721252, -0.23996850848197937, 0.23307421803474426, 0.7685431241989136, 0.12270664423704147, 0.44937950372695923, 0.467017263174057, -0.687079906463623, 0.0866798460483551, -0.4742167890071869, -0.2735035717487335, 0.43864870071411133, 0.059480249881744385, 0.06599488109350204, -0.3081890046596527, 0.24545222520828247, 0.019044864922761917, -0.31419265270233154, -0.11477964371442795, 0.8123033046722412, -0.10332983732223511, -0.2444525808095932, 0.15782372653484344, -0.005070786457508802, 0.9191350936889648, -0.7407276034355164, 0.06769322603940964, -0.21943500638008118, 0.018844686448574066, -0.26082366704940796, -0.6616400480270386, 0.4195398688316345, -0.037297435104846954, -0.1491072028875351, -0.30011290311813354, 0.7339714169502258, -0.0785578265786171, -0.33392682671546936, 0.42531058192253113, 0.42062750458717346, 0.23476989567279816, -0.3083152174949646, -0.4834413528442383, 0.3364621102809906, -0.357554167509079, -0.326723575592041, 0.3720725476741791, 0.6845676302909851, 0.30352357029914856, 1.011696219444275, 0.6376389265060425, 0.1780291497707367, 0.326591432094574, 0.38864511251449585, 1.1763931512832642, -0.6166238784790039, -0.21991613507270813, -0.8321726322174072, 0.45268476009368896, -0.15233013033866882, 0.3741370141506195, 0.7457332611083984, 0.8709594011306763, 0.7892500162124634, 0.00752033619210124, 0.6179535388946533, -0.3863973021507263, 0.2212999314069748, -0.4787449836730957, 0.6262416839599609, -0.3550301790237427, 0.47134119272232056, -0.009634538553655148, -0.8830163478851318, -0.15765824913978577, 0.2695186734199524, -0.23029610514640808, -0.18276561796665192, 0.6137122511863708, 0.9588512182235718, -0.4286583662033081, -0.056824441999197006, 0.47363048791885376, -0.07444844394922256, 0.6300531029701233, 0.5376819372177124, 0.9454540610313416, -0.21727627515792847, 0.6428241729736328, -0.315673291683197, -0.05295253545045853, -0.16142664849758148, -0.720754086971283, -0.6683110594749451, -0.27613139152526855, -0.047525618225336075, -0.06275315582752228, 0.10543317347764969, 0.7816643118858337, 0.8030393719673157, -0.41986754536628723, -0.5515458583831787, 0.004100476391613483, 0.31273147463798523, -0.19846539199352264, -0.2564133405685425, 0.11456499248743057, -0.3517807126045227, -0.8626570701599121, 0.5005770921707153, 0.36040931940078735, -0.06543132662773132, -0.17719729244709015, 0.08734897524118423, -0.2444314807653427, -0.26803314685821533, 0.6879886388778687, 0.0936344787478447, -0.5698288679122925, -0.4423050582408905, 0.045939307659864426, 0.1841212660074234, 0.16843321919441223, 1.0353319644927979, -0.7165883779525757, 0.35549843311309814, 0.3886859118938446, 0.8474745154380798, 0.8175551295280457, -0.38090649247169495, 0.8708258271217346, -1.0123674869537354, 0.32544198632240295, 0.03546701371669769, 0.5993524789810181, 0.1727060228586197, -0.5532019138336182, 0.5814851522445679, 0.008539404720067978, -0.5073678493499756, -0.6866629123687744, 0.411407470703125, -1.130663514137268, 0.12400798499584198, 0.779761791229248, -0.2020096629858017, -0.21606798470020294, -0.22550909221172333, -0.7074621319770813, 0.27776843309402466, -0.615877091884613, 0.19370247423648834, 0.5197353363037109, -0.3189486861228943, -0.29459497332572937, -0.838200032711029, 0.0666186511516571, 0.060550134629011154, -0.8936150670051575, 0.19090910255908966, 0.3930927813053131, 0.2531939744949341, -0.2278764396905899, 0.5667044520378113, 0.01335296593606472, 0.08698240667581558, -0.14396297931671143, 0.03542473539710045, -0.015913521870970726, -0.08973453938961029, 0.0999361202120781, 0.07281685620546341, 0.3329358696937561, -0.1700543463230133 ]
http://arxiv.org/abs/2405.19519v1
http://arxiv.org/pdf/2405.19519v1
Two-layer retrieval augmented generation framework for low-resource medical question-answering: proof of concept using Reddit data
2024-05-29T20:56:52
2024-05-29T20:56:52
Sudeshna Das, Yao Ge, Yuting Guo, Swati Rajwal, JaMor Hairston, Jeanne Powell, Drew Walker, Snigdha Peddireddy, Sahithi Lakamana, Selen Bozkurt, Matthew Reyna, Reza Sameni, Yunyu Xiao, Sangmi Kim, Rasheeta Chandler, Natalie Hernandez, Danielle Mowery, Rachel Wightman, Jennifer Love, Anthony Spadaro, Jeanmarie Perrone, Abeed Sarker
cs.CL
cs.CL, cs.AI
Retrieval augmented generation (RAG) provides the capability to constrain generative model outputs, and mitigate the possibility of hallucination, by providing relevant in-context text. The number of tokens a generative large language model (LLM) can incorporate as context is finite, thus limiting the volume of knowledge from which to generate an answer. We propose a two-layer RAG framework for query-focused answer generation and evaluate a proof-of-concept for this framework in the context of query-focused summary generation from social media forums, focusing on emerging drug-related information. The evaluations demonstrate the effectiveness of the two-layer framework in resource constrained settings to enable researchers in obtaining near real-time data from users.
[ -0.2983052134513855, -1.1576234102249146, 0.7050383687019348, 0.15138082206249237, -0.27936676144599915, 0.2721102833747864, -0.02462848275899887, -0.5360231399536133, 0.6432263255119324, 0.7854260802268982, -0.5060458183288574, -0.2899400591850281, -0.3469052314758301, 0.010581236332654953, -0.4485606849193573, 1.0257925987243652, 0.08667349070310593, 0.17417968809604645, -0.7083436846733093, -0.14159764349460602, -0.30421972274780273, -0.5474277138710022, -0.9226034283638, -0.2140917032957077, 0.709166944026947, 0.5892801284790039, 0.2782134413719177, 0.3584107458591461, 0.8563613295555115, 0.0637727901339531, -0.095734603703022, 0.4517560303211212, -0.4836338758468628, 0.4947606325149536, -0.22784218192100525, -0.31768685579299927, -0.508266270160675, -0.25031420588493347, 0.28776901960372925, 0.6543807983398438, -0.13515034317970276, 0.4820101857185364, -0.17407576739788055, 0.7627048492431641, -0.7780759930610657, -0.4426737427711487, -0.5546382069587708, 0.01653234474360943, -0.029926149174571037, -0.5059459209442139, -0.2506648302078247, -0.2652035653591156, -0.006478641647845507, -0.6553966999053955, 0.39772266149520874, 0.01158119086176157, 0.6832013726234436, 0.32112932205200195, -0.39390048384666443, -0.3991580009460449, -0.7740257382392883, 0.4167627692222595, -0.5784638524055481, 0.03418205305933952, 0.7206074595451355, 0.6301876902580261, 0.12187808007001877, -1.1480098962783813, -0.6244317889213562, -0.01407560147345066, -0.2644640803337097, 0.052067022770643234, 0.21831439435482025, -0.13762637972831726, 0.17648980021476746, 0.3576470911502838, -0.543570876121521, -0.23405124247074127, -0.49302056431770325, -0.02951113134622574, 0.5005085468292236, 0.07267549633979797, 0.26854047179222107, -0.4848881959915161, -0.44363346695899963, 0.2351544350385666, -0.7873502373695374, -0.24263887107372284, -0.18719469010829926, 0.15613991022109985, -0.12780877947807312, 0.8522781729698181, -0.1487646847963333, 0.606664776802063, 0.17568722367286682, -0.20284207165241241, 0.10381441563367844, -0.5639215707778931, 0.0010967337293550372, -0.1421090066432953, 0.519788384437561, 0.6300859451293945, -0.3635255992412567, -0.10535340756177902, -0.16826902329921722, -0.08928944915533066, 0.3951758146286011, -1.1813218593597412, 0.18765360116958618, 0.5906464457511902, -0.7006571292877197, -0.503685474395752, -0.10663549602031708, -0.8699344396591187, -0.6662135720252991, 0.2251034528017044, 0.36054450273513794, -0.05380600690841675, -0.4986526072025299, -0.02316206507384777, -0.2807580530643463, 0.09665873646736145, 0.00204886170104146, -0.5973715782165527, 0.6210502982139587, 0.660868227481842, 0.8483372330665588, -0.16611184179782867, 0.21017183363437653, -0.736376166343689, 0.40305209159851074, -0.20934326946735382, 1.0327250957489014, -0.27505752444267273, -0.46992895007133484, 0.0860593169927597, -0.09292016178369522, 0.17622174322605133, -0.8028281331062317, 0.5741544961929321, -0.750214159488678, 0.33639639616012573, -0.30407533049583435, -0.5145022869110107, 0.1339348405599594, 0.4071817100048065, -0.5710492730140686, 0.9710026383399963, 0.32926300168037415, -0.9508458971977234, 0.16411446034908295, -0.6925523281097412, -0.6327322125434875, 0.32462024688720703, -0.45771676301956177, -0.35652080178260803, 0.11891261488199234, 0.10231734812259674, 0.2452174872159958, -0.6196903586387634, 0.1912006139755249, -0.07982668280601501, -0.26054149866104126, 0.4601508378982544, -0.18534518778324127, 0.5118494033813477, 0.5360211730003357, -0.18530383706092834, -0.025987733155488968, -0.830040454864502, 0.12625738978385925, 0.28382664918899536, -0.5017204880714417, -0.39338600635528564, -0.11404535919427872, 0.1655007153749466, 0.30439236760139465, 0.18096955120563507, -0.7162812352180481, -0.10329803079366684, -0.4287649691104889, 0.5178073644638062, 0.15636904537677765, 0.6363950371742249, 0.2506100535392761, -0.42292216420173645, 0.7549859881401062, -0.08474057167768478, 0.02963068336248398, 0.14181117713451385, -0.3545514643192291, -0.5108632445335388, -0.027880055829882622, 0.413762629032135, 0.5664903521537781, -1.089509129524231, -0.0891726091504097, -0.012371281161904335, -0.03853234648704529, -0.646931529045105, 0.004712781403213739, 0.6248384118080139, 0.9498211741447449, 0.495699405670166, -0.1185772493481636, -0.7288620471954346, -0.9966852068901062, -0.051121193915605545, -0.18030673265457153, -0.2741604745388031, 0.8854058980941772, 0.35517609119415283, -0.4002135992050171, 0.6664464473724365, -0.6282814741134644, -0.16810595989227295, -0.3825884759426117, 0.019076179713010788, -0.04673730209469795, 0.3158344328403473, 0.4392435550689697, -1.0962138175964355, -0.437664270401001, -0.021205395460128784, -0.7096900939941406, -0.16919557750225067, 0.07337933778762817, -0.39338502287864685, 0.11327410489320755, 0.53304523229599, -0.5807667970657349, 0.32584038376808167, 0.3673149645328522, -0.31609299778938293, 0.2198331505060196, -0.25558802485466003, 0.39787420630455017, -1.4654580354690552, 0.3884197473526001, -0.1482628583908081, -0.37132614850997925, -0.7096343040466309, 0.12848033010959625, 0.06058943644165993, -0.26675283908843994, -0.3329586386680603, 0.7412096261978149, -0.1296168565750122, -0.040926314890384674, -0.5159333944320679, 0.28700050711631775, 0.24660390615463257, 0.08375104516744614, -0.06628578901290894, 0.8897603750228882, 0.06677615642547607, -0.5584002733230591, 0.1699966937303543, 0.2215730994939804, -0.1941443681716919, 0.5615192651748657, -0.8349771499633789, 0.09535113722085953, -0.2721145451068878, 0.18084782361984253, -0.847905695438385, -0.9341201186180115, 0.11769092082977295, -0.6919695734977722, 0.2712244391441345, -0.17358960211277008, -0.4398854970932007, -0.577420711517334, -0.2516871690750122, 0.7632219791412354, 0.5278770923614502, -0.31893518567085266, 0.3508545756340027, 0.7926430106163025, -0.31184545159339905, -0.5966581106185913, -0.9281963109970093, 0.09763529896736145, -0.0627550482749939, -0.5061571598052979, 0.4436738193035126, -0.03501202166080475, -0.43574726581573486, 0.21213911473751068, 0.04359063506126404, -0.2853606045246124, 0.009400133043527603, -0.018767230212688446, 0.03397604450583458, -0.021292392164468765, 0.277655690908432, 0.2840363681316376, 0.16665343940258026, 0.17699654400348663, -0.1290813684463501, 0.5698484778404236, 0.32875218987464905, -0.3969791531562805, -0.03687068447470665, 0.7298905253410339, 0.4738590121269226, -0.16023752093315125, 0.625298261642456, 0.39432504773139954, -0.5848971009254456, -0.32882824540138245, -0.48409804701805115, -0.36391955614089966, -0.40869003534317017, 0.34775274991989136, -0.13294263184070587, -0.9506082534790039, 0.520878791809082, -0.0535532683134079, -0.15284065902233124, 0.49272117018699646, 0.8208783864974976, -0.10205523669719696, 0.9689928889274597, 0.3365803360939026, 0.7000411748886108, 0.08445119857788086, -0.21007421612739563, 0.048351138830184937, -0.9502198100090027, -0.4667906165122986, -0.2926236093044281, -0.2174755185842514, -0.4017479121685028, -0.7381898760795593, 0.7203945517539978, 0.2449926733970642, -0.006601877976208925, -0.1782400906085968, -0.7462652325630188, 0.39880824089050293, 0.5198456645011902, 0.4102590084075928, 0.11330962926149368, 0.14040960371494293, -0.09947232902050018, 0.12623246014118195, -0.6885582208633423, -0.38229766488075256, 1.1918392181396484, 0.1772180199623108, 0.4762060344219208, 0.2143862247467041, 0.46945855021476746, 0.36992767453193665, 0.27354902029037476, -0.6436254978179932, 0.5488426089286804, -0.2441796064376831, -1.0097235441207886, -0.04600023850798607, -0.4646178185939789, -0.6085883975028992, -0.04485544189810753, -0.353256493806839, -0.17245392501354218, 0.17222490906715393, 0.1599128395318985, -0.5518304705619812, 0.1556829810142517, -0.5594514608383179, 0.465879887342453, -0.31555336713790894, -0.6283437013626099, -0.02645397186279297, -0.8953707218170166, 0.319330632686615, -0.12313918024301529, 0.16487360000610352, 0.006462896708399057, -0.23720963299274445, 0.7200189232826233, -0.587134838104248, 0.5554885268211365, -0.3590770661830902, 0.03843722492456436, 0.7122567892074585, -0.05009875446557999, 0.24183563888072968, 0.3935605585575104, 0.04639839008450508, -0.45839986205101013, 0.0258416086435318, -0.4974435865879059, -0.690227746963501, 0.7086760401725769, -0.42211636900901794, -0.5248023271560669, 0.06598450988531113, -0.5523319244384766, -0.32480940222740173, 0.19644524157047272, 0.5442573428153992, 0.4327913522720337, 0.03619604557752609, 0.3251689374446869, 0.6288588643074036, -0.3436107337474823, -0.06992632150650024, 0.31429293751716614, -0.3814624845981598, -0.6541467308998108, 0.7726122736930847, 0.06626887619495392, 0.31346866488456726, 0.5159639716148376, 0.21183761954307556, -0.3790881633758545, -0.5345609188079834, -0.5684042572975159, 0.27911609411239624, -0.5285475254058838, -0.36716994643211365, -0.680025041103363, -0.36738020181655884, -0.5425220727920532, 0.02118360437452793, -0.2116343379020691, -0.9421453475952148, -0.02596180886030197, -0.17384253442287445, 0.512085497379303, 0.7407214045524597, -0.058695148676633835, 0.005134532693773508, -0.6872402429580688, 0.7297976613044739, 0.37090247869491577, 0.49058929085731506, -0.14171352982521057, -0.30053940415382385, -0.41811272501945496, 0.1542581170797348, -0.1704120635986328, -0.822719156742096, 0.024362938478589058, 0.05373876541852951, 0.3791368901729584, 0.18811146914958954, 0.2752792537212372, 0.4659753739833832, -0.3672448396682739, 0.8030343651771545, 0.15902593731880188, -0.21951279044151306, 0.8360404372215271, -0.3261586129665375, 0.14190959930419922, 0.72613924741745, 0.08159089833498001, -0.4563729166984558, -0.3524706959724426, -0.4092777967453003, -1.0595108270645142, 0.29859787225723267, 0.19433027505874634, 0.20667612552642822, -0.2891295254230499, 0.7502511739730835, 0.024246763437986374, 0.222665473818779, -0.43010613322257996, -0.37278372049331665, -0.14568409323692322, -0.07746152579784393, 0.356777161359787, -0.8312327861785889, -0.5202945470809937, -0.0938170775771141, 0.4610186517238617, -0.0716758444905281, 0.3631954491138458, 0.5191113948822021, 0.12693332135677338, -0.24663686752319336, 0.3684658110141754, 0.6772871017456055, 0.829919695854187, -0.35738301277160645, 0.22089049220085144, 0.02639482170343399, -0.6104545593261719, 0.05605147406458855, 0.23107056319713593, -0.5545986890792847, -0.1163700520992279, 0.2442881166934967, 0.5429949760437012, -0.20639649033546448, -0.8320773839950562, 0.45500117540359497, -0.20867592096328735, -0.4674140512943268, -0.2008473426103592, -0.08869533985853195, 0.12846870720386505, 0.2353665828704834, 0.5906838178634644, -0.12433422356843948, 0.3442572355270386, -0.305042564868927, 0.46801096200942993, 0.4057803750038147, -0.25449123978614807, -0.009549758397042751, 1.049781322479248, 0.23627270758152008, -0.40682047605514526, 0.19081133604049683, -0.12370975315570831, -0.18724247813224792, 0.5828016400337219, 0.7384812235832214, 0.7477605938911438, 0.231453999876976, 0.3057882487773895, 0.523971438407898, -0.23825472593307495, 0.06170526519417763, 0.5212741494178772, -0.1116802766919136, -0.4309690594673157, -0.44150444865226746, -0.6377103924751282, -0.351982444524765, 0.14199931919574738, -0.8299368023872375, -0.011434370651841164, -0.47564300894737244, -0.5213660001754761, 0.08355852961540222, -0.010227984748780727, -0.11178018897771835, 0.13235501945018768, -0.22529233992099762, 0.7751260995864868, -0.4489068388938904, 0.572426438331604, 1.0910650491714478, -0.5274242758750916, -0.5551648139953613, 0.18488793075084686, -0.3509289026260376, -0.5017798542976379, 0.5528518557548523, -0.11445411294698715, -0.28937092423439026, -0.28336578607559204, -0.592096209526062, -0.526974618434906, 1.1647968292236328, 0.11269309371709824, -0.16873294115066528, -0.23649705946445465, 0.1505570113658905, 0.8616538643836975, -0.501530647277832, -0.20695050060749054, 0.3507328927516937, 0.08839782327413559, 0.4900180697441101, -0.6059337258338928, 0.14439135789871216, -0.5095731019973755, 0.04024004936218262, -0.02603844553232193, -0.3757565915584564, 0.778818666934967, -0.38125842809677124, -0.3303971588611603, 0.2335832566022873, 0.3596256971359253, 0.5895094275474548, 0.572826087474823, 0.29935649037361145, 0.586054801940918, 0.637628436088562, 0.23321235179901123, 1.34735906124115, -0.504814088344574, 0.24856708943843842, 1.0655003786087036, -0.21301475167274475, 0.8771024346351624, 0.6576274633407593, 0.061077333986759186, 0.487604558467865, 0.4056045413017273, 0.3969157338142395, 0.7360869646072388, 0.08488742262125015, -0.6533195376396179, -0.07937711477279663, -0.5987083911895752, -0.5129517316818237, 0.07718475908041, 0.47440385818481445, -0.5052569508552551, 0.033168990164995193, 0.07873544096946716, 0.02682948298752308, 0.28755271434783936, -0.2245139628648758, 1.0545692443847656, 0.13022589683532715, -0.7835731506347656, 0.778310239315033, 0.0185540821403265, 0.26365622878074646, -0.2570357620716095, -0.25541606545448303, -0.4476221203804016, 0.2525956928730011, -0.25280287861824036, -0.7831685543060303, 0.3682660460472107, 0.3160804510116577, -0.4469377398490906, 0.01598145067691803, 1.0604995489120483, -0.42398855090141296, -0.6893700361251831, 0.22283191978931427, 0.7883545160293579, -0.019968358799815178, 0.3420502543449402, -0.6708129048347473, -0.2402346432209015, -0.1928548812866211, -0.26523688435554504, 0.22656920552253723, 0.6087974905967712, 0.0043941461481153965, 0.6026918888092041, 0.5295841693878174, 0.43484818935394287, -0.2434658706188202, 0.12518228590488434, 1.0167758464813232, -0.37941914796829224, -0.21244403719902039, -0.39723116159439087, 0.31090423464775085, -0.347300261259079, -0.05894216522574425, 0.6773019433021545, 0.6993300318717957, 0.621417224407196, 0.14717167615890503, 0.7882131338119507, -0.33773383498191833, 1.259033203125, -0.3394017517566681, 0.9411206841468811, -0.9980741143226624, 0.48854655027389526, 0.0536600798368454, -0.43846094608306885, -0.5207116007804871, 0.3122589588165283, -0.013359291478991508, -0.028555940836668015, 0.5467532873153687, 0.8742001056671143, 0.1311286836862564, -0.37424424290657043, 0.08434702455997467, 0.13424184918403625, 0.15457986295223236, 0.2978544533252716, 0.6537988185882568, -0.3972720503807068, 0.5390027761459351, -0.3812411427497864, -0.09933243691921234, -0.20025773346424103, -0.4224357306957245, -0.7385010719299316, -0.4145565927028656, 0.09611334651708603, -0.8781263828277588, 0.12616018950939178, 0.834837019443512, 0.5435649156570435, -0.7782167792320251, -0.020509686321020126, -0.17923136055469513, 0.09537293016910553, 0.08585700392723083, -0.2737809121608734, 0.5204752087593079, -0.18325600028038025, -0.3640035092830658, 0.17222058773040771, 0.2447032332420349, -0.05239078029990196, -0.3047086298465729, -0.1338859349489212, -0.3860342800617218, 0.07566557079553604, 0.8313354253768921, 0.3143676221370697, -0.5163083076477051, -0.09946250170469284, 0.33191490173339844, -0.41298437118530273, -0.03800760209560394, 1.062022089958191, -0.7489438652992249, 0.3992544710636139, 0.60188889503479, 0.8197466135025024, 0.5815346837043762, 0.5215575098991394, 0.4212469756603241, -1.020344614982605, 0.06003015860915184, 0.5208541750907898, -0.05754968151450157, 0.3226476311683655, -0.4849265217781067, 0.5612236261367798, 0.2006698101758957, -0.6913272738456726, -0.90349280834198, 0.2939557135105133, -0.8313912749290466, -0.5838233828544617, 1.3327407836914062, 0.23967672884464264, -0.050174735486507416, -0.16606180369853973, -0.20882999897003174, 0.1742180585861206, -0.1554669886827469, 0.7396934032440186, 0.27112457156181335, -0.3260916471481323, -0.15037384629249573, -0.8835211992263794, 0.5773887038230896, 0.23944708704948425, -1.0147212743759155, 0.08894991129636765, 0.5619367957115173, 0.14019986987113953, 0.1603725701570511, 1.180652379989624, -0.35704123973846436, 0.3606959581375122, -0.037775106728076935, -0.29934900999069214, -0.005405247677117586, -0.18216054141521454, 0.12341125309467316, 0.43361422419548035, 0.12896543741226196, -0.07069876790046692 ]
http://arxiv.org/abs/2405.19487v1
http://arxiv.org/pdf/2405.19487v1
A Full-duplex Speech Dialogue Scheme Based On Large Language Models
2024-05-29T20:05:46
2024-05-29T20:05:46
Peng Wang, Songshuo Lu, Yaohua Tang, Sijie Yan, Yuanjun Xiong, Wei Xia
cs.CL
cs.CL
We present a generative dialogue system capable of operating in a full-duplex manner, allowing for seamless interaction. It is based on a large language model (LLM) carefully aligned to be aware of a perception module, a motor function module, and the concept of a simple finite state machine (called neural FSM) with two states. The perception and motor function modules operate simultaneously, allowing the system to simultaneously speak and listen to the user. The LLM generates textual tokens for inquiry responses and makes autonomous decisions to start responding to, wait for, or interrupt the user by emitting control tokens to the neural FSM. All these tasks of the LLM are carried out as next token prediction on a serialized view of the dialogue in real-time. In automatic quality evaluations simulating real-life interaction, the proposed system reduces the average conversation response latency by more than 3 folds compared with LLM-based half-duplex dialogue systems while responding within less than 500 milliseconds in more than 50% of evaluated interactions. Running a LLM with only 8 billion parameters, our system exhibits a 8% higher interruption precision rate than the best available commercial LLM for voice-based dialogue.
[ -0.3293502628803253, -0.8637433648109436, 0.8072416186332703, 0.6092603206634521, -0.5185639262199402, 0.29490169882774353, -0.10077555477619171, -0.38832634687423706, 0.5067958235740662, 0.5853094458580017, -0.6205505728721619, -0.4434869885444641, -0.18303340673446655, 0.07828150689601898, -0.4195992350578308, 0.4168345332145691, 0.32367873191833496, 0.3523423969745636, -0.0978618860244751, -0.056403834372758865, -0.3996066749095917, -0.6337118148803711, -1.0114030838012695, -0.5169884562492371, 0.38118574023246765, 0.23561784625053406, 0.9338217377662659, 0.1361772119998932, -0.08467019349336624, 0.4585496485233307, -0.13522614538669586, 0.06643392890691757, -0.24843420088291168, 0.38737523555755615, -0.06690486520528793, -0.18283692002296448, -0.5589593052864075, -0.37940073013305664, 0.7319159507751465, 0.8026227951049805, -0.41466233134269714, -0.2759021818637848, 0.02411895990371704, 0.35107702016830444, -0.31266409158706665, 0.2621448040008545, -0.22979438304901123, 0.34537845849990845, 0.22501544654369354, -0.1911521852016449, -0.29269322752952576, -0.24720904231071472, 0.25588369369506836, -0.661475658416748, -0.25934430956840515, -0.09813991189002991, 0.32457876205444336, 0.2947966158390045, -0.07167376577854156, 0.16069449484348297, -0.8908823132514954, 0.3807445764541626, -0.7389979362487793, 0.3601958155632019, 0.19090543687343597, 0.19812890887260437, -0.12296164035797119, -0.3822026550769806, -1.1374688148498535, -0.35139381885528564, 0.10301079601049423, 0.1764003485441208, -0.19993628561496735, 0.6698119044303894, 0.2764301598072052, 0.5066803693771362, -0.4084036350250244, 0.2929573655128479, 0.01839769072830677, -0.22326843440532684, 0.3801984488964081, 0.5340508818626404, 0.17993034422397614, -0.2510511875152588, -0.30754244327545166, 0.07188460230827332, -0.44151970744132996, -0.1523684561252594, 0.17577436566352844, 0.21112710237503052, -0.4031349718570709, 0.5743892192840576, -0.4405043423175812, 0.8111395239830017, 0.08340352028608322, -0.08107692003250122, 0.16240809857845306, -0.5171902775764465, -0.7142258286476135, 0.055317435413599014, 1.2601665258407593, 0.32735833525657654, 0.08230114728212357, -0.016165120527148247, -0.07159466296434402, 0.06570979207754135, 0.14012981951236725, -0.5179166197776794, 0.26751708984375, 0.4527222216129303, -0.20696699619293213, -0.33692309260368347, -0.25836625695228577, -0.6024408936500549, -0.256592720746994, -0.5247626304626465, 0.6103305816650391, -0.4322596788406372, -0.28214359283447266, 0.28638195991516113, 0.29098260402679443, 0.13045437633991241, 0.5315844416618347, -0.6218286752700806, 0.3194994330406189, 0.5121493935585022, 0.9956449270248413, -0.12338807433843613, -0.22232875227928162, -0.7515376210212708, 0.09583250433206558, -0.2929861843585968, 0.5415017008781433, -0.5154824256896973, -0.8032768964767456, 0.08243751525878906, -0.050040993839502335, 0.047997165471315384, -0.4980395436286926, 0.3327232599258423, -0.3665904104709625, 0.35605186223983765, 0.20548325777053833, -0.26126232743263245, 0.016552846878767014, 0.03739989548921585, -0.7368713021278381, 0.4191149175167084, -0.058372460305690765, -0.5336065888404846, -0.0655432641506195, -0.8751735687255859, -0.6212452054023743, 0.258159339427948, -0.191003680229187, -0.04191584140062332, -0.06563514471054077, -0.034750934690237045, 0.15381281077861786, -0.3230758011341095, 0.3122691810131073, -0.25133898854255676, -0.49464696645736694, 0.33169910311698914, -0.9569891691207886, 0.6791915893554688, 0.268582284450531, -0.2999638617038727, 0.18163685500621796, -0.686342179775238, 0.2734502851963043, 0.00825838465243578, -0.485620379447937, 0.25894832611083984, -0.27068138122558594, -0.14108896255493164, 0.02803139202296734, 0.17845472693443298, -0.7477611303329468, 0.21181778609752655, -0.6990998983383179, 0.3036932945251465, 0.443565309047699, -0.1152685210108757, 0.2989601194858551, -0.19698479771614075, 0.6169141530990601, 0.25511273741722107, 0.006913572549819946, -0.4832552671432495, -0.296911358833313, -1.2545502185821533, -0.18085551261901855, 0.2934947609901428, 0.8835722208023071, -0.8879305124282837, 0.9193989038467407, -0.1689806431531906, 0.1511894315481186, -0.46111729741096497, -0.07750939577817917, 0.6956783533096313, 0.11598189920186996, 0.024863164871931076, -0.3271915018558502, -0.5597555637359619, -0.8569764494895935, 0.34035468101501465, -0.39052480459213257, -0.37596362829208374, 0.05613527446985245, 0.044517021626234055, 0.08334389328956604, 0.8684231638908386, -0.31290310621261597, -0.15697237849235535, -0.25235113501548767, 0.2414134293794632, 0.1781163066625595, 0.2784602642059326, -0.20569665729999542, -0.4686830937862396, -0.288780152797699, -0.03637096285820007, -0.9067394733428955, 0.006644907407462597, 0.00015509310469496995, -0.15344393253326416, 0.6928008794784546, 0.40296995639801025, -1.0222105979919434, 0.6590752005577087, 0.682831883430481, -0.02747279964387417, 0.3145637512207031, -0.2517535090446472, 0.102373868227005, -1.3288978338241577, 0.03179692104458809, -0.22001855075359344, -0.19885170459747314, -0.8453636765480042, -0.4200151264667511, -0.38292810320854187, -0.4236253798007965, -0.41683700680732727, 0.38256171345710754, -0.21955598890781403, -0.33201831579208374, -0.25424158573150635, 0.17994648218154907, 0.1518673449754715, 0.7869032025337219, 0.1923603117465973, 0.9791844487190247, 0.4236762821674347, -0.4329444169998169, 0.6517539024353027, 0.45205068588256836, -0.6109667420387268, 0.8260779976844788, -0.7965705394744873, 0.2638491690158844, -0.039937958121299744, 0.6357787847518921, -1.125564455986023, -0.19661127030849457, 0.1887953132390976, -0.4822756350040436, 0.08059907704591751, 0.018542475998401642, -0.603330671787262, -0.4872305393218994, 0.13657128810882568, 0.26731473207473755, 0.36416926980018616, -0.45849016308784485, 0.7197414040565491, 0.2512058913707733, -0.6778225302696228, -0.27549150586128235, -0.45285743474960327, 0.39430826902389526, 0.19989243149757385, -1.052001714706421, 0.05548829212784767, -0.1529378890991211, -0.09354833513498306, -0.5175283551216125, 0.026005670428276062, -0.06457511335611343, -0.16120700538158417, 0.4876961410045624, 0.3840581774711609, -0.09577444195747375, 0.16355666518211365, 0.09191417694091797, -0.20253324508666992, -0.11520674079656601, -0.44106945395469666, 0.9072414636611938, 0.03099137917160988, -0.657372772693634, -1.2057949304580688, 0.8075395226478577, 1.045830249786377, 0.06985314190387726, 0.40586692094802856, 0.045079316943883896, -0.011956596747040749, 0.09357401728630066, -0.5854329466819763, -0.020350640639662743, -0.4875617027282715, 0.2759934365749359, -0.39313411712646484, -0.9480242133140564, 0.3219899535179138, 0.20387689769268036, 0.05638070032000542, -0.15194955468177795, 0.4865093529224396, -0.09863941371440887, 1.12871515750885, 0.569624662399292, -0.10395779460668564, 0.438797265291214, -0.08217103034257889, 0.45251503586769104, -0.7434958219528198, -0.3311445713043213, -0.30750301480293274, -0.12403558194637299, 0.08668115735054016, -0.6970309019088745, 0.5601987242698669, 0.14761734008789062, -0.5118275284767151, 0.09611273556947708, -0.29382482171058655, 0.22584156692028046, 0.6069306135177612, 0.019005004316568375, 0.6527646780014038, 0.3339684009552002, -0.525301992893219, 0.21705441176891327, -0.4936257302761078, -0.4643712639808655, 0.46512502431869507, 0.39772531390190125, 0.8568944334983826, 0.2064935564994812, 0.33172303438186646, 0.13947196304798126, -0.025176024064421654, -0.9190196394920349, 0.7776861786842346, -0.12732328474521637, -0.22845573723316193, -0.6642042398452759, -0.45900478959083557, -0.6443748474121094, 0.35819655656814575, -0.01987527683377266, -0.9119966626167297, -0.1951865255832672, 0.08932255208492279, -1.0167640447616577, 0.2468935251235962, -0.6635186672210693, 0.33281654119491577, -0.32077208161354065, -0.25761473178863525, -0.20041480660438538, -0.6054769158363342, 0.1565021276473999, 0.04607478901743889, -0.19161134958267212, -0.02322155237197876, 0.3750423491001129, 0.5595451593399048, -0.5021273493766785, 0.9333510994911194, -0.2006395310163498, -0.3747197687625885, 0.16194841265678406, 0.25488483905792236, 0.3990037143230438, -0.03378460183739662, -0.10472656786441803, 0.23212948441505432, -0.20423641800880432, -0.0032939305528998375, -0.7245063781738281, 0.59953373670578, -0.6772540211677551, -0.7797888517379761, -0.12778423726558685, -0.4474153518676758, -0.5955114960670471, 0.05232580006122589, -0.009667755104601383, 0.554366409778595, -0.3495481312274933, 0.19059355556964874, 0.5762845873832703, -0.4695410132408142, 0.5118229389190674, 0.8436665534973145, -0.5238284468650818, -0.7606393694877625, 0.646304726600647, -0.19665248692035675, 0.6840527057647705, 0.44413161277770996, -0.1225333884358406, -0.564126193523407, -0.14094717800617218, -0.744519829750061, 0.20818886160850525, -0.31983885169029236, -0.23157232999801636, -0.8904900550842285, -0.5230063796043396, -0.24806688725948334, 0.04104749485850334, -0.23974046111106873, -0.3450736701488495, -0.09425782412290573, -0.18462912738323212, 0.24109810590744019, 0.6667897701263428, -0.06321633607149124, 0.5475660562515259, -0.8179863095283508, 0.3641889691352844, 0.7355965971946716, 0.729341983795166, 0.1269415020942688, -0.5612697601318359, 0.029088448733091354, 0.2813381254673004, -0.27946820855140686, -0.29236897826194763, 0.30055487155914307, -0.030777446925640106, 0.40360304713249207, 0.45652374625205994, -0.13450823724269867, 0.6902077794075012, -0.5469158887863159, 0.8798309564590454, 0.7988293766975403, -1.0231817960739136, 0.3351472318172455, -0.45992806553840637, 0.5858864188194275, 0.485920786857605, -0.0346497967839241, -0.8771932721138, -0.28586915135383606, -0.13886962831020355, -0.5116884112358093, 1.0135374069213867, 0.19214758276939392, 0.24932421743869781, -0.01297717448323965, -0.10168249160051346, -0.1737627238035202, 0.3279644846916199, -0.3519088923931122, -0.18126274645328522, -0.23263783752918243, -0.1948084682226181, 0.030559318140149117, -0.23227915167808533, -0.39263978600502014, -0.20757025480270386, 0.25133058428764343, -0.2946408689022064, 0.4907178282737732, 0.0616876594722271, 0.2604024112224579, -0.26069197058677673, 0.3703070282936096, 0.8408192992210388, 0.4672006666660309, 0.16341738402843475, -0.18072718381881714, 0.16878728568553925, -0.04157164320349693, 0.3908686637878418, 0.0956549197435379, 0.15898539125919342, 0.11433041095733643, -0.19463688135147095, 1.2280155420303345, 0.35031262040138245, -0.6664472222328186, 0.6451796293258667, -0.11538959294557571, -0.3038753271102905, -0.5809653401374817, -0.09834843128919601, 0.32395654916763306, 0.2892082929611206, 0.2236579805612564, -0.24111221730709076, -0.20889519155025482, -0.5011769533157349, 0.204659104347229, 0.5818509459495544, -0.37861737608909607, -0.1503361165523529, 0.3823750615119934, 0.8726686239242554, -0.692936360836029, 0.5654628872871399, 0.11572980880737305, -0.46556615829467773, 0.43851736187934875, 0.456384539604187, 0.9296316504478455, -0.2882360517978668, 0.5702970027923584, 0.1608259379863739, -0.3137171268463135, -0.16032905876636505, 0.19911740720272064, -0.3405739665031433, -0.7084386348724365, -0.7339748740196228, -1.1349818706512451, -0.6692011952400208, 0.38985732197761536, -0.36253687739372253, -0.0760493278503418, -0.7211646437644958, -0.04394298046827316, 0.2101273387670517, -0.30716726183891296, -0.23831862211227417, 0.06094590947031975, 0.5584848523139954, 0.7565862536430359, -0.4388139545917511, 0.9770674109458923, 0.15927372872829437, -0.40624234080314636, -0.7430657148361206, 0.029576146975159645, 0.05722406134009361, -0.9505347013473511, 0.8441244959831238, 0.11225675046443939, -0.69706791639328, -0.14487247169017792, -0.4124300181865692, -0.6219999194145203, 0.8495619893074036, 0.37740713357925415, -0.928104817867279, -0.19743146002292633, 0.3408047556877136, 0.5201939940452576, -0.35056909918785095, 0.08146045356988907, 0.6504406332969666, 0.25813841819763184, 0.6283455491065979, -1.4760488271713257, -0.15609174966812134, -0.2596032917499542, 0.21635183691978455, 0.2539478838443756, -0.7743375301361084, 0.5233699679374695, -0.09320145845413208, -0.5791493654251099, 0.7798612713813782, 0.3956640064716339, 0.2809998393058777, 0.02974465675652027, 0.740355372428894, 0.7751772403717041, 0.4228218197822571, -0.10134883224964142, 0.8469668030738831, -0.46156787872314453, 0.09607657045125961, 1.2534054517745972, -0.5859794616699219, 0.7911057472229004, 0.3181323707103729, -0.3368757367134094, 0.3709104657173157, -0.017491215839982033, 0.3410572409629822, 0.2430618405342102, 0.4412543773651123, -1.0549709796905518, -0.5638973116874695, -0.23828507959842682, -0.1875849813222885, 0.6368178129196167, 0.5291372537612915, -0.21185149252414703, -0.22075554728507996, 0.2209061235189438, 0.03359702229499817, -0.13850101828575134, -0.002480883616954088, 1.0711838006973267, 0.1455511897802353, -1.01716148853302, 0.7016645073890686, -0.26193052530288696, 0.7507395148277283, -0.769679844379425, -0.10346192121505737, -0.4677550196647644, -0.06647676974534988, -0.12475767731666565, -0.9723982810974121, -0.029027264565229416, -0.027523236349225044, -0.2016465961933136, -0.21078088879585266, 0.15236523747444153, -0.7522667646408081, -0.37755417823791504, 0.3120930790901184, 0.2988015115261078, 0.24030110239982605, -0.022720307111740112, -0.49368083477020264, 0.4294041693210602, 0.14136844873428345, 0.038234032690525055, 0.1047092005610466, 0.36087271571159363, 0.2807260751724243, 0.7811868190765381, 0.6249977350234985, -0.10418080538511276, -0.19093790650367737, 0.47900208830833435, 0.7834190726280212, -0.7621669769287109, -0.6082206964492798, -0.3877609968185425, 0.4343179166316986, -0.36499372124671936, -0.001592795830219984, 0.2625124752521515, 0.315253883600235, 0.40431272983551025, 0.3619750142097473, 1.007326364517212, 0.14940981566905975, 0.6161020398139954, -0.6228315234184265, 0.755425751209259, -0.3585793077945709, 0.15527381002902985, -0.06510267406702042, -0.8033007979393005, -0.127798929810524, 0.6897547841072083, 0.02231254242360592, 0.06401930004358292, 0.6627631783485413, 0.9949294328689575, 0.1802143156528473, 0.387078195810318, 0.9393290281295776, 0.33609700202941895, 0.3224276900291443, 0.4641568958759308, 1.0033820867538452, -0.08038854598999023, 0.6902619004249573, 0.11638031154870987, -0.20022061467170715, -0.19128760695457458, -0.33893126249313354, -0.5568720102310181, -0.45704659819602966, 0.014265174977481365, -0.4115704894065857, 0.1801048219203949, 0.8826854825019836, 0.6994466781616211, -0.6062406301498413, -0.32939136028289795, 0.006265299394726753, -0.26094239950180054, 0.4260682165622711, -0.2548411190509796, -0.14530333876609802, -0.3539555072784424, -0.914800763130188, 0.7159156799316406, 0.768968939781189, 0.1401255875825882, -0.691800594329834, -0.218880757689476, 0.05236957594752312, 0.3215750753879547, 0.8703453540802002, 0.4388190805912018, -0.9807665944099426, -0.45613059401512146, -0.22689960896968842, -0.24751034379005432, 0.14808399975299835, 0.8757926225662231, -0.6558082699775696, 0.71405428647995, 0.2781691551208496, 0.5081075429916382, 0.2697718143463135, 0.004161729943007231, 0.9157305359840393, -0.36106422543525696, 0.262820839881897, 0.22660402953624725, 0.2374318242073059, 0.3470049500465393, -0.21822939813137054, 0.06692816317081451, 0.06195741891860962, -0.48758235573768616, -0.41666609048843384, 0.551701009273529, -1.1702032089233398, -0.008641548454761505, 1.0307235717773438, -0.14444133639335632, 0.028205858543515205, -0.40905526280403137, -0.48690366744995117, 0.05482359230518341, -0.6615918874740601, 0.5129048824310303, 0.4917362630367279, -0.28365662693977356, -0.07599099725484848, -0.2427738755941391, 0.19413040578365326, 0.6433240175247192, -0.6685726642608643, 0.3350656032562256, 0.7740601301193237, 0.26027655601501465, 0.4002667963504791, 0.99521803855896, -0.1994219422340393, 0.23613189160823822, -0.02864045836031437, 0.19111956655979156, 0.05476592108607292, -0.39924028515815735, -0.45848679542541504, 0.266411691904068, -0.24322861433029175, -0.394568532705307 ]
http://arxiv.org/abs/2405.19462v2
http://arxiv.org/pdf/2405.19462v2
Critical Learning Periods: Leveraging Early Training Dynamics for Efficient Data Pruning
2024-05-29T19:21:49
2024-06-21T12:30:36
Everlyn Asiko Chimoto, Jay Gala, Orevaoghene Ahia, Julia Kreutzer, Bruce A. Bassett, Sara Hooker
cs.CL
cs.CL
Neural Machine Translation models are extremely data and compute-hungry. However, not all data points contribute equally to model training and generalization. Data pruning to remove the low-value data points has the benefit of drastically reducing the compute budget without significant drop in model performance. In this paper, we propose a new data pruning technique: Checkpoints Across Time (CAT), that leverages early model training dynamics to identify the most relevant data points for model performance. We benchmark CAT against several data pruning techniques including COMET-QE, LASER and LaBSE. We find that CAT outperforms the benchmarks on Indo-European languages on multiple test sets. When applied to English-German, English-French and English-Swahili translation tasks, CAT achieves comparable performance to using the full dataset, while pruning up to 50% of training data. We inspect the data points that CAT selects and find that it tends to favour longer sentences and sentences with unique or rare words.
[ -0.21808749437332153, -0.588603675365448, 0.47317439317703247, 0.32044559717178345, -0.58318030834198, 0.2045353502035141, -0.20636560022830963, -0.04850864037871361, -0.1321839690208435, 0.07290534675121307, -0.8169112205505371, -0.33009305596351624, -0.3544711172580719, 0.09643452614545822, -0.5086899399757385, 0.9405006170272827, -0.13447406888008118, 0.22368088364601135, 0.18049128353595734, -0.20630045235157013, -0.6215245127677917, -0.5507921576499939, -0.582448422908783, -0.451839417219162, 0.5879114270210266, 0.25448906421661377, 0.5291986465454102, 1.0594844818115234, 0.4730779528617859, 0.19546721875667572, -0.48962661623954773, 0.24017028510570526, -0.4755001962184906, 0.33793947100639343, -0.08585914969444275, -0.7527984380722046, -0.15577872097492218, -0.18176329135894775, 0.9146603345870972, 0.7209157347679138, -0.2865977883338928, 0.07732021063566208, 0.17028187215328217, 0.7996624112129211, -0.5419079065322876, 0.11651518195867538, -0.8458384871482849, 0.4441688358783722, -0.3661075234413147, -0.1856611967086792, -0.42533907294273376, -0.473999947309494, -0.05226050317287445, -0.7417150735855103, 0.21023181080818176, -0.3440251350402832, 1.21466064453125, 0.32508841156959534, -0.48886653780937195, 0.2669565975666046, -0.8040540218353271, 0.9552499651908875, -0.3628389835357666, 0.31859952211380005, 0.12775082886219025, 0.5173346400260925, -0.06348729878664017, -0.6749189496040344, -0.4508557915687561, 0.10476013273000717, 0.22697779536247253, 0.045555002987384796, -0.06165874004364014, -0.1889447271823883, 0.3298864960670471, 0.42305052280426025, -0.38535648584365845, -0.06838717311620712, -0.4314649701118469, -0.1917611062526703, 0.26116201281547546, 0.49916940927505493, 0.14355908334255219, -0.04253913089632988, -0.2682550251483917, -0.5532804131507874, -0.7932139039039612, 0.22249318659305573, 0.12950119376182556, 0.35136088728904724, 0.26841819286346436, 0.4105391502380371, -0.1970309615135193, 0.5111467242240906, -0.3432169556617737, -0.1060326099395752, 0.259610116481781, -0.6052577495574951, 0.026027973741292953, -0.3789030909538269, 0.4878852069377899, 0.41032642126083374, 0.38475364446640015, -0.32291555404663086, -0.2895767092704773, 0.018491359427571297, 0.3476439416408539, -0.8892093300819397, -0.12555040419101715, -0.12255118042230606, -0.39589908719062805, -0.23556916415691376, -0.2828851342201233, -0.6783390641212463, -0.07947061210870743, -0.42856669425964355, 0.0035424435045570135, -0.556331217288971, -0.09765060245990753, -0.10951846092939377, 0.07158972322940826, 0.17845097184181213, 0.3125113248825073, -0.328017920255661, 0.12999169528484344, 0.5931781530380249, 1.2170437574386597, -0.18567728996276855, -0.35687315464019775, -0.6272165179252625, 0.1048288643360138, -0.7121753692626953, 0.2607533633708954, -0.5997626185417175, -0.3790741264820099, -0.02165941335260868, 0.4189598262310028, -0.4142025411128998, -0.6497491598129272, 0.5020852088928223, -0.6114627122879028, -0.19960446655750275, -0.2961781919002533, -0.32462096214294434, -0.42542609572410583, 0.3103354275226593, -0.5790900588035583, 1.0755444765090942, -0.14439283311367035, -0.34061312675476074, 0.6849495768547058, -0.380393385887146, -0.7641297578811646, -0.18984998762607574, 0.11998889595270157, -0.7607038617134094, 0.19857032597064972, 0.2797200083732605, 0.5273496508598328, -0.22762365639209747, 0.5688591003417969, -0.3563537001609802, -0.09243813902139664, 0.12592987716197968, -0.1894834190607071, 0.5569782853126526, 0.5368930697441101, -0.2134118229150772, -0.12148012220859528, -0.7212213277816772, 0.11861785501241684, 0.2869528830051422, -0.4474872648715973, -0.24231931567192078, 0.27636051177978516, -0.0753507912158966, 0.3758888840675354, -0.11159085482358932, -0.34072738885879517, 0.41932469606399536, -0.2732190787792206, 0.784023106098175, 0.5166361927986145, 0.13390828669071198, 0.3068751394748688, -0.6797569394111633, 0.6860126852989197, 0.37853050231933594, 0.12887859344482422, -0.3743380010128021, -0.2783636152744293, -0.748857855796814, -0.02204219251871109, 0.2932206690311432, 0.7460460066795349, -0.8575825095176697, 0.13419730961322784, -0.5943870544433594, -0.42335864901542664, -0.39580851793289185, 0.33285197615623474, 0.4213281273841858, 0.35757970809936523, 0.4548810124397278, -0.4089255928993225, -0.3017174303531647, -0.9142603874206543, -0.20804014801979065, -0.17231567203998566, -0.16682691872119904, 0.188497394323349, 0.5244066119194031, 0.20898988842964172, 0.7002651691436768, -0.3032345473766327, -0.1532273292541504, -0.08301549404859543, 0.22476959228515625, 0.26143166422843933, 0.7201633453369141, 0.28722742199897766, -0.7611638307571411, -0.2475263774394989, -0.0375862754881382, -0.43280404806137085, 0.29996952414512634, -0.4487212300300598, -0.11238449811935425, -0.09392108768224716, 0.47446566820144653, -0.3748058080673218, 0.4370591640472412, 0.2751447558403015, 0.07640370726585388, 0.1106007769703865, 0.009688584133982658, 0.23477934300899506, -0.9546651840209961, 0.38577765226364136, -0.2546917498111725, -0.39329084753990173, -0.6345500946044922, 0.015109625644981861, 0.19545528292655945, -0.2648840546607971, -0.7310628294944763, 0.2699478268623352, -0.5238574743270874, 0.16159825026988983, 0.007015353534370661, -0.12419984489679337, 0.004526451695710421, 0.5330732464790344, 0.18006154894828796, 0.728071391582489, 0.29530802369117737, -0.9664162397384644, -0.23378649353981018, 0.2590610682964325, -0.5136204957962036, 0.04852883517742157, -0.5795266032218933, 0.26352065801620483, 0.10042586922645569, 0.16345851123332977, -0.567722737789154, 0.19228774309158325, -0.011627334170043468, -0.4756227433681488, 0.22245873510837555, -0.3634900152683258, -0.5793577432632446, -0.142684668302536, 0.026031821966171265, 0.5672125220298767, 0.4332104027271271, -0.32073724269866943, 0.30890947580337524, 0.3356923460960388, -0.24046002328395844, -0.33979371190071106, -0.7376131415367126, 0.011515701189637184, -0.5066279768943787, -0.5299441814422607, 0.3505878448486328, 0.0865662470459938, 0.05970664694905281, -0.16330936551094055, -0.06956209242343903, -0.4986019432544708, 0.4503569006919861, 0.10714615136384964, 0.16236215829849243, -0.15889835357666016, 0.16276848316192627, 0.03988353908061981, -0.16393433511257172, -0.2758147716522217, -0.2604300081729889, 0.5573562979698181, -0.07701286673545837, -0.09095311164855957, -0.36164915561676025, 0.007900156080722809, 0.7033745646476746, -0.23131780326366425, 0.8678067326545715, 0.5287297964096069, -0.4342724680900574, -0.24818813800811768, -0.24439606070518494, -0.350469708442688, -0.34127047657966614, 0.3457264304161072, -0.4657898545265198, -0.5591930747032166, 0.5981767773628235, -0.18059445917606354, 0.47028300166130066, 0.23285885155200958, 0.34705716371536255, 0.1353285014629364, 1.27800714969635, 0.6668660044670105, -0.23171080648899078, 0.8511472344398499, -0.32983991503715515, 0.1225864365696907, -0.7931917905807495, -0.05048195272684097, -0.5536922216415405, -0.38892045617103577, -0.1566561758518219, -0.5996693968772888, 0.29885533452033997, 0.4643701910972595, -0.020786035805940628, 0.32460591197013855, -0.4270074665546417, 0.4432384967803955, 0.21639803051948547, 0.25203558802604675, 0.16649073362350464, 0.0892258957028389, -0.2952180802822113, -0.3867682218551636, -0.8842353224754333, -0.49536070227622986, 1.0764297246932983, 0.46439632773399353, 0.22906243801116943, -0.21145206689834595, 0.2018989622592926, -0.11594931781291962, 0.09662702679634094, -0.7421330213546753, 0.44547563791275024, -0.200529545545578, -0.8787981271743774, -0.26086097955703735, -0.6490834951400757, -0.9620916247367859, 0.34569981694221497, 0.011213486082851887, -0.47737357020378113, 0.10902175307273865, 0.1497747004032135, -0.4264512062072754, 0.5152968764305115, -0.3003655970096588, 0.7057920694351196, -0.00927246455103159, -0.4684625566005707, -0.4600633680820465, -0.6791491508483887, 0.38901421427726746, -0.11989987641572952, 0.12522049248218536, -0.23583844304084778, -0.11452177911996841, 0.8015302419662476, -0.5621207356452942, 0.6460768580436707, -0.21617557108402252, 0.44838976860046387, 0.2197115272283554, 0.5065960884094238, 0.49943771958351135, 0.03779561072587967, 0.1533648669719696, 0.13176612555980682, 0.10697363317012787, -0.4793366491794586, -0.3619496524333954, 0.23834484815597534, -0.4241543114185333, -0.09453011304140091, -0.26586905121803284, -0.5029270648956299, -0.2042524367570877, 0.21163037419319153, 0.08953823149204254, 0.3621806800365448, -0.09415194392204285, 0.5315719842910767, 0.4678347408771515, -0.04760213941335678, 0.5569037795066833, 0.6772902011871338, -0.08108721673488617, -0.4321622848510742, 1.0058680772781372, 0.14470577239990234, 0.37454894185066223, 0.327695369720459, -0.014301691204309464, 0.07304946333169937, -0.819456160068512, -0.49079176783561707, 0.10751240700483322, -0.5392845869064331, -0.16428892314434052, -0.6081399917602539, -0.09883996844291687, -0.03500126302242279, -0.20190484821796417, -0.700787365436554, -0.5789890885353088, -0.03544086962938309, 0.04760720953345299, 0.12715975940227509, 0.32940319180488586, -0.11352012306451797, 0.5773014426231384, -1.158979058265686, 0.18465055525302887, -0.09513793885707855, -0.0868123471736908, -0.042850758880376816, -0.39752939343452454, -0.31744688749313354, -0.03301592171192169, -0.47084254026412964, -0.7372269630432129, 0.6364802122116089, 0.32937362790107727, 0.462974488735199, 0.31632721424102783, -0.13317109644412994, 0.9099593162536621, -0.5388648509979248, 0.7325490117073059, 0.08990009129047394, -0.8170768022537231, 0.5821881890296936, -0.20985622704029083, 0.5500926971435547, 0.9947273135185242, 0.4471343159675598, -0.7316023707389832, -0.3975614607334137, -0.4407482445240021, -1.1755075454711914, 0.5898342132568359, 0.32315289974212646, -0.28744232654571533, 0.13637974858283997, 0.42534592747688293, 0.07919011265039444, 0.38300347328186035, -0.5649135708808899, -0.004951538983732462, 0.184872567653656, 0.0646110475063324, -0.21857106685638428, 0.2262500524520874, -0.16013558208942413, -0.4545062482357025, 0.8057370781898499, -0.2124832272529602, -0.11181390285491943, 0.2590835988521576, -0.48492249846458435, 0.06933844089508057, 0.15440498292446136, 0.29057109355926514, 0.6660131812095642, 0.14221765100955963, -0.33196449279785156, 0.34112411737442017, -0.5809871554374695, 0.24002718925476074, -0.1369980126619339, -0.49222996830940247, 0.1265665888786316, 0.3416086733341217, 0.6786936521530151, 0.30591949820518494, -0.4566601812839508, 0.4359496533870697, -0.317879319190979, 0.07167326658964157, -0.07939834892749786, -0.11958809196949005, -0.2795100212097168, 0.06879934668540955, 0.08701431006193161, 0.0231097973883152, -0.17460617423057556, -0.38280680775642395, 0.42706891894340515, 0.057128239423036575, -0.5944725871086121, -0.42794063687324524, 0.5163565874099731, 0.0565013587474823, 0.0404161661863327, 1.0237959623336792, 0.08051631599664688, -0.7634813785552979, 0.6718480587005615, 0.05695372074842453, 0.8724442720413208, -0.24532826244831085, 0.17781603336334229, 0.6399616003036499, 0.5360714197158813, -0.2741349935531616, 0.16594244539737701, -0.40638792514801025, -0.36652758717536926, -0.6594725251197815, -0.7068650722503662, -0.17734257876873016, 0.09833146631717682, -0.9592596888542175, 0.42260581254959106, -0.44799432158470154, -0.21224376559257507, -0.3143625557422638, -0.03824635222554207, -0.7860381007194519, 0.18678471446037292, -0.11660552769899368, 0.9246053099632263, -0.9709959626197815, 1.0572060346603394, 0.6133593916893005, -0.24159035086631775, -0.7864094972610474, -0.17260783910751343, 0.19737856090068817, -0.6958168148994446, 0.642831563949585, 0.157753586769104, 0.19189950823783875, -0.011875919997692108, -0.32016852498054504, -0.5857219099998474, 1.1079694032669067, 0.21175824105739594, -0.9691005945205688, -0.2989025413990021, 0.0017968399915844202, 0.3213055431842804, -0.2047320157289505, 0.3011574447154999, 0.6613865494728088, 0.4469631314277649, 0.06333985924720764, -0.7942582964897156, -0.20328859984874725, -0.4349838197231293, -0.1426103413105011, 0.5104166269302368, -0.6568621397018433, 0.8785431981086731, 0.022882474586367607, -0.7086313962936401, 0.09090324491262436, 0.4437004625797272, 0.11818122863769531, 0.21229462325572968, 0.9488160014152527, 0.6458364129066467, 0.759759247303009, -0.35073012113571167, 0.8191652894020081, -0.6483265161514282, 0.16463612020015717, 0.9188661575317383, -0.09303198009729385, 0.7103669047355652, 0.5497210025787354, -0.13598982989788055, 0.06351635605096817, 0.8301483392715454, 0.038908399641513824, 0.6001319289207458, 0.20333383977413177, 0.04185483604669571, -0.5560525059700012, -0.18920275568962097, -0.4572325348854065, -0.06331270933151245, 0.2569578289985657, -0.17209093272686005, -0.17834769189357758, 0.12496713548898697, 0.3839709460735321, -0.17866721749305725, 0.02467205561697483, 0.8931869864463806, 0.2797447443008423, -0.786344051361084, 0.7415810227394104, -0.16143891215324402, 0.08784794807434082, -0.7470393180847168, 0.04935381934046745, -0.34450748562812805, 0.41108429431915283, 0.17322304844856262, -0.488847017288208, 0.406698077917099, 0.00777819287031889, -0.18510614335536957, -0.6041588187217712, 0.17219670116901398, -0.3181818127632141, -0.35489022731781006, 0.3940789997577667, 0.3281534016132355, 0.24112583696842194, -0.16202808916568756, -0.8040013909339905, 0.07613348215818405, 0.11544281244277954, -0.40593624114990234, 0.23749680817127228, 0.4653225243091583, -0.10850349068641663, 0.8585063219070435, 0.7474883794784546, 0.4035566747188568, 0.3498591482639313, -0.16170313954353333, 1.0320587158203125, -0.8988175988197327, -0.6990254521369934, -0.7403468489646912, 0.7014132738113403, -0.0006849990459159017, -0.7110421061515808, 0.39311349391937256, 0.7763060927391052, 0.8799476027488708, 0.43428969383239746, 0.5556766986846924, 0.1447162926197052, 0.6680646538734436, -0.7473449110984802, 0.4490518271923065, -0.810070812702179, 0.21820874512195587, 0.013733855448663235, -0.9986638426780701, -0.22062060236930847, 0.45734497904777527, -0.2789267599582672, -0.28734296560287476, 1.0953190326690674, 0.7480188608169556, -0.01597857102751732, -0.04839801788330078, 0.1886119246482849, 0.21565347909927368, 0.6341726779937744, 0.8840309381484985, 1.0485363006591797, -0.38227519392967224, 0.8347042202949524, -0.6130796074867249, -0.09362596273422241, -0.06846874952316284, -0.8272925615310669, -0.8009051084518433, -0.708548367023468, -0.29186949133872986, -0.3351714015007019, 0.1558445692062378, 0.34316664934158325, 0.9540258049964905, -0.7477158904075623, -0.10712950676679611, -0.18512089550495148, 0.03327883780002594, -0.3571263551712036, -0.1868489682674408, -0.009111221879720688, -0.5329051613807678, -0.6415806412696838, 0.8011755347251892, 0.08978835493326187, -0.02076071873307228, -0.028738053515553474, 0.007400238886475563, -0.1538495272397995, -0.1466209441423416, 0.04755990579724312, 0.40535369515419006, -0.2452218383550644, 0.026746802031993866, 0.03371816501021385, -0.07144583016633987, 0.21452859044075012, 1.3048150539398193, -0.5729319453239441, 0.4697660505771637, 0.5347298979759216, 0.8555583953857422, 0.8225682973861694, -0.010151061229407787, 0.8713757991790771, -0.49315565824508667, 0.41799548268318176, 0.5426954627037048, 0.2344031184911728, 0.20847469568252563, -0.03645046427845955, 0.5941075086593628, 0.31646308302879333, -0.6209660768508911, -1.15846586227417, 0.10242841392755508, -0.451654314994812, -0.3422029912471771, 0.7616623044013977, -0.32894009351730347, -0.5955427289009094, 0.02021940052509308, 0.22953853011131287, 0.4261142611503601, -0.24171096086502075, 0.6682942509651184, 1.0502201318740845, 0.3431341350078583, 0.255104124546051, -0.9331539273262024, 0.3755541443824768, 0.9671429395675659, -0.5621548891067505, 0.0019725128076970577, 0.3112035095691681, 0.17106305062770844, 0.05517488345503807, 0.2405318170785904, -0.34609413146972656, 0.22579966485500336, -0.05232323333621025, -0.08339221030473709, 0.06384099274873734, -0.9010581374168396, -0.6329128742218018, 0.16350267827510834, -0.14782996475696564, -0.39221853017807007 ]
http://arxiv.org/abs/2406.00057v2
http://arxiv.org/pdf/2406.00057v2
Toward Conversational Agents with Context and Time Sensitive Long-term Memory
2024-05-29T18:19:46
2024-06-04T18:01:03
Nick Alonso, Tomás Figliolia, Anthony Ndirango, Beren Millidge
cs.CL
cs.CL, cs.LG
There has recently been growing interest in conversational agents with long-term memory which has led to the rapid development of language models that use retrieval-augmented generation (RAG). Until recently, most work on RAG has focused on information retrieval from large databases of texts, like Wikipedia, rather than information from long-form conversations. In this paper, we argue that effective retrieval from long-form conversational data faces two unique problems compared to static database retrieval: 1) time/event-based queries, which requires the model to retrieve information about previous conversations based on time or the order of a conversational event (e.g., the third conversation on Tuesday), and 2) ambiguous queries that require surrounding conversational context to understand. To better develop RAG-based agents that can deal with these challenges, we generate a new dataset of ambiguous and time-based questions that build upon a recent dataset of long-form, simulated conversations, and demonstrate that standard RAG based approaches handle such questions poorly. We then develop a novel retrieval model which combines chained-of-table search methods, standard vector-database retrieval, and a prompting method to disambiguate queries, and demonstrate that this approach substantially improves over current methods at solving these tasks. We believe that this new dataset and more advanced RAG agent can act as a key benchmark and stepping stone towards effective memory augmented conversational agents that can be used in a wide variety of AI applications.
[ -0.36806637048721313, -1.1446192264556885, 0.5414127111434937, -0.013384990394115448, -0.06447455286979675, 0.31319212913513184, -0.2981034219264984, -0.8633211851119995, 0.2670620083808899, 0.46771112084388733, -0.2565019726753235, 0.010524425655603409, -0.22712697088718414, -0.0640208050608635, -0.5040910840034485, 0.7941424250602722, 0.04715695232152939, -0.384808748960495, -0.19918349385261536, -0.47232115268707275, -0.6100057363510132, -0.7301951050758362, -0.8644900321960449, -0.5233919620513916, 0.67819744348526, -0.005434701219201088, 0.8556836247444153, 0.32256942987442017, 0.23921248316764832, 0.31182482838630676, -0.2579454183578491, 0.3211754858493805, -0.6594906449317932, 0.5077305436134338, -0.41825246810913086, -0.44033539295196533, -0.44572606682777405, -0.1401251256465912, 0.4376419186592102, 0.7169449329376221, -0.2862032949924469, -0.05906669795513153, -0.16390568017959595, 0.5812326073646545, -0.7494149208068848, 0.13322465121746063, -0.8757705688476562, 0.01344111654907465, -0.10178111493587494, -0.4927656650543213, -0.596563994884491, 0.02078179642558098, 0.17520132660865784, -0.49475035071372986, 0.21084648370742798, -0.05429011210799217, 0.7930507063865662, 0.14498373866081238, -0.7194416522979736, -0.5652826428413391, -1.1478132009506226, 0.7764002680778503, -0.3245753347873688, 0.38066330552101135, 0.5406501889228821, 0.6201991438865662, -0.3839872181415558, -0.7822909355163574, -0.5316686630249023, -0.4671315550804138, -0.021412666887044907, -0.06516112387180328, -0.05977131798863411, -0.33836445212364197, 0.3363455832004547, 0.09532848000526428, -0.337238609790802, -0.13088616728782654, -0.19623297452926636, 0.04651649668812752, 0.5002226829528809, 0.3589743971824646, 0.0786852017045021, -0.33817845582962036, -0.4623323976993561, 0.0895758792757988, -0.3581077754497528, 0.05239566043019295, 0.023737484589219093, 0.3166356086730957, 0.15313613414764404, 0.3658083379268646, -0.2552439272403717, 0.7196207046508789, 0.06171434372663498, 0.05647740140557289, 0.06820334494113922, -0.1400769054889679, 0.22391583025455475, -0.22624534368515015, 0.4469779133796692, 0.24841584265232086, 0.2733001112937927, -0.3866005837917328, -0.13063542544841766, -0.09074349701404572, 0.3471790850162506, -0.6261373162269592, 0.12257236242294312, 0.2434009611606598, -0.22999027371406555, -0.18219061195850372, -0.07916683703660965, -0.7617663741111755, -0.3593803942203522, -0.18812336027622223, 0.359851598739624, -0.29222458600997925, -0.09652242064476013, -0.08591771870851517, -0.11524896323680878, 0.510120689868927, 0.34704071283340454, -0.6484610438346863, 0.27694758772850037, 0.6118326187133789, 0.41683900356292725, -0.41942450404167175, -0.04053446650505066, -0.5682389140129089, 0.4512171149253845, -0.44178506731987, 0.6679745316505432, -0.8501953482627869, -0.6563454270362854, -0.1339215189218521, -0.022647805511951447, 0.1027187928557396, -0.6131861805915833, 0.2853146195411682, -0.9203413128852844, 0.3755359351634979, -0.20077170431613922, -0.2483101338148117, 0.08785504847764969, 0.4575673043727875, -0.6622320413589478, 1.053331971168518, 0.15458831191062927, -0.5233708024024963, 0.16787777841091156, -0.5307242274284363, -0.41664353013038635, 0.07996857166290283, -0.41427645087242126, -0.22151333093643188, -0.2473122477531433, 0.2799105942249298, 0.43181678652763367, -0.3781149387359619, 0.4334840178489685, -0.0533485971391201, -0.4028914272785187, 0.601231575012207, -0.6406923532485962, 0.5311092734336853, 0.3130006492137909, -0.3008817136287689, -0.4702613055706024, -0.6360423564910889, 0.1389014720916748, 0.23390071094036102, -0.43895623087882996, -0.48794639110565186, 0.31220170855522156, -0.25164321064949036, -0.016464753076434135, 0.3446112871170044, -0.36891862750053406, 0.06964696943759918, -0.27884742617607117, 0.2828589677810669, 0.5991199016571045, 0.1833225041627884, 0.5098016262054443, -0.5491753220558167, 0.34227338433265686, 0.15222015976905823, 0.057714588940143585, -0.33628207445144653, -0.1453564316034317, -0.787964403629303, 0.20116272568702698, -0.07729628682136536, 0.5471705794334412, -1.0872461795806885, 0.12047180533409119, -0.2954902648925781, -0.3569090664386749, 0.05673649534583092, -0.150453582406044, 0.3090314269065857, 0.7151846289634705, 0.3671479821205139, -0.2745431661605835, -0.2996772527694702, -0.5917997360229492, -0.19142617285251617, -0.32493409514427185, 0.025511788204312325, 1.0655964612960815, 0.4161434769630432, -0.34578806161880493, 1.132793664932251, -0.4952579438686371, 0.10353900492191315, -0.11015583574771881, 0.17054913938045502, 0.13275077939033508, 0.3127744495868683, 0.4309464395046234, -1.1729472875595093, -0.530267596244812, 0.017175812274217606, -0.6630167961120605, 0.24056103825569153, -0.16482241451740265, 0.005586199928075075, 0.5238496661186218, 0.5206069350242615, -0.8187459111213684, 0.43078428506851196, 0.16166263818740845, -0.3467189073562622, 0.2564009726047516, -0.05603870376944542, 0.23802615702152252, -1.1499384641647339, 0.2932431399822235, -0.5441837906837463, -0.43244796991348267, -0.8137292861938477, -0.2283431738615036, 0.025844160467386246, -0.30055487155914307, -0.5290871262550354, 0.9551637172698975, -0.5412584543228149, 0.027165407314896584, -0.3112882971763611, 0.18836848437786102, 0.030452437698841095, 0.5814905762672424, -0.05709020793437958, 0.8502843976020813, 0.14482370018959045, -0.9856072664260864, 0.36638855934143066, 0.24617141485214233, -0.10700958222150803, 0.6996232867240906, -0.6346141695976257, 0.7602201700210571, -0.4613921344280243, 0.5352871417999268, -0.6014261841773987, -0.22761310636997223, 0.29231417179107666, -0.584094762802124, 0.4983237385749817, -0.017635397613048553, -0.036140166223049164, -0.16503311693668365, 0.0993828997015953, 0.6321992874145508, 0.44086939096450806, -0.5687347054481506, 0.83181232213974, 0.4616362750530243, -0.2252420037984848, -0.9641616940498352, -0.26266512274742126, 0.14680877327919006, -0.3233945667743683, -0.4216999113559723, 0.4304543435573578, -0.08974993228912354, -0.42261552810668945, 0.024876264855265617, -0.14331801235675812, -0.20299339294433594, 0.13307447731494904, 0.08233240246772766, 0.17812739312648773, -0.02266109734773636, 0.36578133702278137, -0.4484463334083557, -0.15111759305000305, -0.1541171371936798, 0.07911796122789383, 0.7420785427093506, -0.018099278211593628, -0.3112485408782959, 0.025910543277859688, 0.552818775177002, 0.3867958188056946, -0.3433379828929901, 0.6043958067893982, 0.5788168907165527, -0.32119476795196533, -0.2242429256439209, -0.7994269132614136, -0.18074093759059906, -0.4798300266265869, 0.3811482787132263, -0.43496620655059814, -0.9113377332687378, 0.7088830471038818, 0.019156869500875473, -0.05485646054148674, 0.24197886884212494, 0.43265485763549805, -0.2762368619441986, 0.9371138215065002, 0.2757818400859833, -0.27964475750923157, 0.6908729672431946, -0.18630032241344452, -0.061329156160354614, -0.7064616084098816, -0.28692150115966797, -0.5942858457565308, -0.153069868683815, -0.4351380169391632, -0.6279311776161194, 0.2605125308036804, -0.10350559651851654, -0.16906994581222534, 0.12781673669815063, -0.24920512735843658, 0.5420829057693481, 0.31005826592445374, 0.12580280005931854, 0.1444980353116989, -0.1868082880973816, 0.4172801077365875, 0.2060551941394806, -0.46096161007881165, -0.48306772112846375, 0.931246817111969, 0.17466604709625244, 0.8843804597854614, 0.1457720398902893, 0.40368181467056274, 0.35122019052505493, -0.0693495124578476, -0.5494019389152527, 0.6203976273536682, 0.19581130146980286, -0.9041441679000854, -0.4528665244579315, -0.6047051548957825, -1.5786768198013306, 0.1411554515361786, -0.043781109154224396, -0.8434371948242188, 0.19419816136360168, -0.06933416426181793, -0.12969760596752167, 0.11263837665319443, -0.45124998688697815, 0.5806425213813782, -0.25727638602256775, -0.4457387626171112, -0.2647477984428406, -0.7812623977661133, -0.10609181970357895, 0.047381751239299774, 0.03922118991613388, -0.36959007382392883, -0.06516888737678528, 0.5798195004463196, -0.20308609306812286, 0.6671918034553528, -0.19897431135177612, 0.12593090534210205, 0.6390315294265747, 0.1162971705198288, 0.7534767389297485, 0.018627237528562546, 0.003025437006726861, -0.18798872828483582, 0.13062606751918793, -0.4103507399559021, -0.9258407354354858, 0.4931669533252716, -0.6135135293006897, -0.7409564852714539, -0.3262350261211395, -0.6839756965637207, -0.2845880687236786, 0.05583120137453079, -0.1930815428495407, 0.569080114364624, -0.4812830984592438, 0.400494247674942, 0.7250106930732727, -0.3145909309387207, 0.4449917674064636, 0.8515377640724182, -0.16242633759975433, 0.01559055782854557, 0.8791061639785767, 0.006208688952028751, 0.251831978559494, 0.5399703979492188, 0.0106439758092165, -0.06405630707740784, -0.12169379740953445, -0.0809096172451973, 0.09650798887014389, -0.4961886703968048, -0.17270562052726746, -0.746211588382721, -0.2825726270675659, -0.25800958275794983, 0.0035870051942765713, -0.30107980966567993, -0.46094343066215515, -0.4947112500667572, 0.18944717943668365, 0.3325103223323822, 0.509960949420929, 0.12550173699855804, 0.017317980527877808, -0.6758753657341003, 0.6542811989784241, 0.4606057107448578, 0.2214120775461197, -0.004015658050775528, -0.25973355770111084, -0.07099449634552002, 0.10826246440410614, -0.26173481345176697, -1.0232696533203125, 0.3217828571796417, 0.1971520185470581, 0.6755454540252686, 0.042084965854883194, 0.11029237508773804, 0.5999258160591125, -0.5522488355636597, 0.7490381002426147, -0.25428590178489685, -0.5364260077476501, 0.6573464274406433, -0.4598889946937561, 0.2237909585237503, 0.3224399983882904, 0.2587471604347229, -0.8096911311149597, -0.2537953853607178, -0.7080768346786499, -0.9765733480453491, 0.6602717638015747, 0.2501752972602844, 0.401905357837677, -0.29033637046813965, 0.5556257963180542, -0.039014339447021484, 0.09541016817092896, -0.282551646232605, -0.1951340138912201, 0.15616068243980408, 0.1543475091457367, -0.3415854871273041, -0.4721285402774811, -0.09595756977796555, 0.07439175993204117, 0.3714314103126526, -0.048574209213256836, 0.4180401563644409, 0.2235174924135208, -0.035525131970644, 0.08898598700761795, 0.5465705394744873, 0.31935399770736694, 0.7588053941726685, -0.3286961317062378, -0.10058824717998505, 0.3914893567562103, -0.2901799976825714, 0.221954345703125, 0.27204757928848267, -0.08096083998680115, 0.12975360453128815, 0.014114107936620712, 0.643630862236023, 0.21186237037181854, -0.6719604134559631, 0.34384745359420776, -0.12256874144077301, 0.32453653216362, -0.6530858278274536, 0.08370888978242874, -0.04652980715036392, 0.4504609704017639, 0.6641711592674255, -0.3974766731262207, 0.17944525182247162, -0.7650935649871826, 0.42720580101013184, 0.5869883298873901, -0.40577375888824463, 0.04967133700847626, 0.6595950722694397, 0.2881729006767273, -0.6087473630905151, 0.672488808631897, -0.13536646962165833, -0.3541426956653595, 0.664345920085907, 0.5845586061477661, 0.5159275531768799, -0.33822596073150635, 0.17819924652576447, 0.08174069225788116, -0.1808553785085678, 0.0973757654428482, 0.401505708694458, -0.30440470576286316, -0.7085599303245544, -0.24769802391529083, -0.3260955512523651, -0.5311270356178284, 0.09681041538715363, -0.705734133720398, 0.007511291652917862, -0.0707971453666687, -0.5365768671035767, -0.2054966241121292, 0.19771182537078857, -0.6488685607910156, 0.0441269613802433, -0.10992641746997833, 0.6971250772476196, -0.21613894402980804, 0.6289893984794617, 0.439738929271698, -0.22481612861156464, -0.5579710006713867, -0.22253459692001343, -0.38257479667663574, -0.6617129445075989, 0.47760695219039917, -0.03620266169309616, -0.09648622572422028, -0.18356502056121826, -0.4586823880672455, -0.9573229551315308, 1.2304699420928955, 0.22848094999790192, -0.2680605947971344, -0.43126288056373596, 0.11484994739294052, 0.6652688384056091, -0.21018752455711365, 0.169306218624115, 0.5607267618179321, 0.12300458550453186, 0.30572694540023804, -1.0261918306350708, -0.11401290446519852, -0.34414049983024597, 0.04643240198493004, 0.47260358929634094, -0.7982665300369263, 0.8245596289634705, -0.004796420689672232, -0.32036083936691284, 0.11280693113803864, 0.8764448761940002, 0.20755435526371002, 0.6618726253509521, 0.4829695224761963, 0.17205505073070526, 0.8479508757591248, 0.00453184125944972, 1.065873146057129, -0.20496264100074768, 0.12605902552604675, 1.4337596893310547, -0.3008076250553131, 0.8362797498703003, 0.48565271496772766, 0.032434605062007904, 0.4235181510448456, 0.18807093799114227, 0.32174888253211975, 0.2174198478460312, -0.08422121405601501, -0.3754429221153259, -0.0937623456120491, -0.33891820907592773, -0.467405766248703, 0.5562780499458313, 0.5815105438232422, -0.2123812586069107, -0.22798694670200348, 0.05413056164979935, 0.028170909732580185, 0.10946357250213623, -0.01779193803668022, 0.8722183108329773, 0.07637960463762283, -0.7800886034965515, 0.47590959072113037, -0.21997925639152527, 0.2957388162612915, -0.48837602138519287, -0.1841132640838623, -0.3347228467464447, 0.13782136142253876, 0.18627189099788666, -0.5890098214149475, 0.17418687045574188, -0.03440697863698006, -0.013041650876402855, -0.06924623250961304, 0.9305693507194519, -0.5211847424507141, -0.028743945062160492, 0.12207912653684616, 0.6945303678512573, 0.3630150556564331, 0.08079475164413452, -0.6558860540390015, 0.0982091948390007, -0.2267771065235138, -0.40981775522232056, 0.11562604457139969, 0.4375920295715332, -0.21199265122413635, 0.8758453130722046, 0.371772438287735, -0.057462044060230255, -0.07372725009918213, -0.03579375147819519, 0.8019187450408936, -0.8803736567497253, -0.4748266637325287, -0.5228761434555054, 0.3622690439224243, -0.14426486194133759, 0.0011064257705584168, 0.3927817642688751, 0.4451112449169159, 0.6029488444328308, 0.2801397442817688, 0.5122661590576172, -0.10770275443792343, 1.0168172121047974, -0.41997072100639343, 0.6395182609558105, -0.4585477411746979, 0.2402709573507309, -0.05397146940231323, -0.8296098709106445, 0.18584048748016357, 0.46204209327697754, -0.18875345587730408, 0.3699212968349457, 0.32582175731658936, 0.815119206905365, 0.0322410874068737, -0.11824925988912582, 0.3563311696052551, 0.14447128772735596, 0.7087198495864868, 0.768311619758606, 1.231536626815796, -0.3042117953300476, 0.7538620233535767, -0.09955230355262756, 0.07917230576276779, -0.32353752851486206, -0.5770791172981262, -0.9104463458061218, -0.9005454778671265, 0.03825098276138306, -0.4020521640777588, 0.4273236095905304, 0.8303923010826111, 0.401723712682724, -0.44373390078544617, -0.11071202903985977, 0.3465394377708435, 0.08401431888341904, 0.18886494636535645, -0.2390870600938797, 0.2857445776462555, -0.4452272951602936, -0.8530816435813904, 0.5818526744842529, 0.07111133635044098, 0.31498685479164124, -0.1367308348417282, -0.08837807923555374, -0.2038029134273529, 0.16335569322109222, 0.6527494192123413, 0.6926312446594238, -0.44663551449775696, -0.5768107771873474, 0.050669748336076736, -0.3793834149837494, 0.12726044654846191, 0.7800440788269043, -1.0852103233337402, 0.5699554085731506, 0.2367701381444931, 0.6648333072662354, 0.9062587022781372, 0.2314721643924713, 0.653828501701355, -0.6608051061630249, 0.356873482465744, 0.6299376487731934, -0.08504367619752884, 0.26590973138809204, -0.4104616343975067, 0.6474390029907227, -0.175457164645195, -0.7071394920349121, -0.8075624704360962, 0.36661478877067566, -0.9018919467926025, -0.3519376218318939, 1.1809232234954834, 0.17608869075775146, -0.28479692339897156, -0.29858624935150146, -0.32220128178596497, 0.33155983686447144, -0.3446424901485443, 0.9212857484817505, 0.5120286345481873, -0.31350404024124146, 0.10759928077459335, -0.5475831627845764, 0.5216935276985168, 0.3786689043045044, -0.6831916570663452, -0.021672962233424187, 0.7072731256484985, -0.013904137536883354, 0.2405669093132019, 1.0138355493545532, -0.15253210067749023, 0.27634909749031067, -0.09493868052959442, -0.36775699257850647, 0.11057326942682266, -0.5720624923706055, -0.027289900928735733, 0.2167224884033203, -0.02879813127219677, -0.0342617928981781 ]
http://arxiv.org/abs/2405.19433v1
http://arxiv.org/pdf/2405.19433v1
Beyond Agreement: Diagnosing the Rationale Alignment of Automated Essay Scoring Methods based on Linguistically-informed Counterfactuals
2024-05-29T18:16:32
2024-05-29T18:16:32
Yupei Wang, Renfen Hu, Zhe Zhao
cs.CL
cs.CL
While current automated essay scoring (AES) methods show high agreement with human raters, their scoring mechanisms are not fully explored. Our proposed method, using counterfactual intervention assisted by Large Language Models (LLMs), reveals that when scoring essays, BERT-like models primarily focus on sentence-level features, while LLMs are attuned to conventions, language complexity, as well as organization, indicating a more comprehensive alignment with scoring rubrics. Moreover, LLMs can discern counterfactual interventions during feedback. Our approach improves understanding of neural AES methods and can also apply to other domains seeking transparency in model-driven decisions. The codes and data will be released at GitHub.
[ -0.45075860619544983, -0.8530689477920532, 1.0025988817214966, 0.16275183856487274, 0.052997998893260956, 0.1326565444469452, -0.1382332295179367, -0.6584442257881165, 0.38551393151283264, 0.4036155343055725, -0.511616587638855, -0.4107542932033539, -0.7719559073448181, -0.028410987928509712, -0.4891524910926819, 0.9630573391914368, -0.4079415500164032, 0.37290653586387634, -0.5663787126541138, -0.1939026564359665, -0.26700273156166077, -0.3612019121646881, -0.8668126463890076, -0.48245733976364136, 0.7061623334884644, 0.25845301151275635, 0.456083208322525, 0.48466935753822327, 0.6822224259376526, 0.44309499859809875, 0.42127689719200134, 0.09170645475387573, -0.20962868630886078, 0.10961960256099701, -0.3015073239803314, -0.6156941056251526, -0.5220207571983337, 0.3354531526565552, 0.4066888391971588, 0.5789861679077148, 0.0004678030963987112, 0.2251318395137787, 0.27354833483695984, 0.29770758748054504, -0.4349507987499237, -0.03492853790521622, -0.46391019225120544, -0.04167195409536362, 0.016660168766975403, 0.09126013517379761, -0.5829590559005737, -0.5645246505737305, 0.3738216459751129, -0.5531162023544312, -0.1333700716495514, -0.08178819715976715, 0.6941474676132202, 0.2818761467933655, -0.3001745641231537, -0.3295830488204956, -0.5281211137771606, 1.1591154336929321, -0.6762586236000061, 0.10750715434551239, 0.193094402551651, 0.024377359077334404, -0.09001784026622772, -0.4916608929634094, -0.7697805166244507, -0.09283222258090973, -0.375733345746994, -0.06346336752176285, -0.42984163761138916, 0.24575841426849365, 0.19451908767223358, 0.025608006864786148, -0.7508622407913208, 0.30185678601264954, -0.028652353212237358, -0.16502745449543, 0.7667913436889648, 0.20698758959770203, 0.33976316452026367, 0.19120195508003235, -0.2588353157043457, 0.22179996967315674, -0.46640917658805847, 0.29073983430862427, 0.3191962242126465, 0.23692776262760162, -0.029319049790501595, 0.6080295443534851, 0.280280202627182, 0.6023677587509155, 0.38184189796447754, 0.16381117701530457, 0.06998220086097717, 0.014258531853556633, -0.2572440505027771, 0.22537000477313995, 0.7402044534683228, 0.7259455919265747, 0.3724214732646942, -0.014279399067163467, -0.29488325119018555, 0.5212438702583313, 0.6073210835456848, -0.5124917030334473, -0.05518854781985283, 0.4025658369064331, -0.4626157581806183, -0.48663008213043213, -0.1463945358991623, -0.7089236974716187, -0.41963791847229004, -0.7909643054008484, 0.758026123046875, -0.22428323328495026, -0.13043974339962006, -0.2685963809490204, -0.12002144753932953, 0.3451489508152008, 0.3788905441761017, -0.6375229954719543, 0.40687569975852966, 0.8099786639213562, 0.855259358882904, -0.06466342508792877, -0.37308886647224426, -0.37929922342300415, -0.11036904901266098, -0.8574551343917847, 1.0935472249984741, -0.8378888368606567, -0.20438912510871887, 0.1918434351682663, -0.1163114532828331, -0.41152864694595337, -0.23921115696430206, 0.5770381689071655, -0.4605921506881714, 0.47596991062164307, -0.6130346655845642, -1.0308693647384644, -0.3868139088153839, 0.5004275441169739, -0.4129771292209625, 0.9242305159568787, -0.24345362186431885, -0.44387051463127136, 0.40002551674842834, -0.8337620496749878, -0.17376530170440674, -0.26087185740470886, -0.3219429552555084, -0.3088075518608093, 0.2207469344139099, 0.1104038655757904, 0.29162269830703735, 0.020535005256533623, 0.44722166657447815, -0.42468002438545227, -0.39740222692489624, 0.35039570927619934, -0.5121928453445435, 0.720130980014801, 0.021753616631031036, -0.388823926448822, 0.2234460860490799, -0.5820642113685608, 0.0673648789525032, -0.16368792951107025, 0.028561275452375412, -0.3500455617904663, -0.03543191775679588, -0.22836744785308838, 0.23085522651672363, 0.5303947329521179, -0.7152371406555176, 0.1913655698299408, -0.36473947763442993, 0.11642547696828842, 0.832421600818634, -0.17151448130607605, 0.2901895344257355, -0.7842401266098022, 0.5826774835586548, -0.22268089652061462, 0.08401570469141006, -0.22401124238967896, -0.4827277958393097, -0.72162926197052, -0.3209206759929657, 0.29060885310173035, 0.6278520226478577, -0.19764487445354462, 0.7634404301643372, -0.12798401713371277, -0.5300724506378174, -0.7441923022270203, -0.04212027043104172, 0.7334590554237366, 0.7860038876533508, 0.5665291547775269, -0.1943744421005249, -0.6812421083450317, -0.8142068386077881, -0.36434221267700195, -0.44524210691452026, 0.07384662330150604, 0.10157361626625061, 0.4351266324520111, -0.14346930384635925, 1.0571188926696777, -0.5075608491897583, -0.2721646726131439, -0.21805782616138458, 0.8023815751075745, 0.05672183632850647, 0.5833234190940857, 0.6960331201553345, -0.33507850766181946, -0.5681060552597046, -0.16439254581928253, -0.7645888328552246, -0.5859905481338501, -0.18845915794372559, -0.021929020062088966, 0.6556905508041382, 0.8696839213371277, -0.7360461354255676, 0.5560760498046875, 0.5259261131286621, -0.2360919713973999, 0.6309365034103394, -0.015683094039559364, 0.5920599102973938, -0.7716303467750549, 0.09485922008752823, 0.19035416841506958, -0.1272004395723343, -0.47898203134536743, -0.031833115965127945, -0.18731757998466492, 0.343086302280426, 0.00267960992641747, 0.4259648025035858, -0.027082569897174835, 0.11083903908729553, -0.3672075569629669, 0.08368726819753647, 0.44313839077949524, 0.4071754515171051, 0.12564009428024292, 0.6931637525558472, 0.33417925238609314, -0.16628220677375793, 0.14977847039699554, 0.1250016689300537, -0.1324191838502884, 0.9209110736846924, -0.6486384868621826, 0.045618847012519836, -0.1646781861782074, 0.38012638688087463, -1.6253694295883179, 0.04438948631286621, 0.1246604472398758, -0.5871716737747192, 0.40906885266304016, -0.1398426741361618, 0.10156553238630295, 0.045407507568597794, -0.6480486392974854, 0.4530473053455353, 0.3151909410953522, -0.5072044730186462, 1.0152535438537598, 0.3604816496372223, -0.42736098170280457, -0.677543044090271, -0.8531211614608765, 0.2970198392868042, -0.28312742710113525, -0.5714872479438782, 0.4494379162788391, -0.1763734370470047, -0.7147449254989624, -0.12759791314601898, 0.04277681186795235, 0.019771991297602654, -0.20485329627990723, 0.12554141879081726, 0.46224451065063477, -0.546544075012207, 0.29192468523979187, 0.16740421950817108, -0.12161357700824738, 0.29127445816993713, -0.2390224188566208, 0.2562510073184967, 0.16174979507923126, -0.4034108817577362, -0.4615744352340698, 0.6380093693733215, 0.7027122378349304, 0.005614734720438719, 0.7789747714996338, 0.31959882378578186, -0.4654378294944763, -0.0003387252800166607, -0.8860144019126892, -0.05312003940343857, -0.44026708602905273, 0.07077737152576447, -0.20217132568359375, -0.5023040175437927, 0.7400546073913574, 0.08747877925634384, 0.36413809657096863, 0.5439000725746155, 0.3015959858894348, -0.5225563645362854, 1.26500403881073, 0.6460550427436829, -0.08880874514579773, 0.3449212610721588, 0.0021508443169295788, 0.43587353825569153, -0.6363470554351807, -0.11284881085157394, -0.7740347385406494, -0.44638749957084656, -0.5106992721557617, -0.0694049596786499, 0.18312007188796997, -0.05044166371226311, -0.2230769246816635, 0.16243086755275726, -0.3346029222011566, 0.6924026608467102, 0.14152881503105164, -0.07603606581687927, 0.021994343027472496, -0.3630596399307251, -0.3871961236000061, -0.353563129901886, -0.33664393424987793, -0.7646220922470093, 1.0917078256607056, 0.4091937243938446, 0.3496254086494446, 0.14155414700508118, 0.5351054072380066, 0.4060971140861511, 0.6766217350959778, -0.7815340161323547, 0.48319604992866516, -0.3616766631603241, -0.5098984837532043, -0.427016943693161, -0.05325368046760559, -0.695165753364563, 0.05355239659547806, -0.3058930039405823, -0.9493062496185303, 0.3104124963283539, 0.11705078929662704, -0.58266282081604, 0.024395866319537163, -0.7779070138931274, 0.985115647315979, -0.18220137059688568, -0.3708132207393646, -0.3281954228878021, -0.5383473038673401, 0.09982072561979294, -0.19469000399112701, 0.26954615116119385, 0.3149090111255646, -0.05546978861093521, 0.9348437190055847, -0.4211902618408203, 1.024960994720459, -0.1556408554315567, -0.5208812952041626, 0.05791928619146347, 0.10374435037374496, 0.4225081205368042, -0.2505491375923157, -0.16403020918369293, 0.3878389596939087, -0.06515073776245117, -0.18814457952976227, -0.7299435138702393, 0.9215531349182129, -0.6142115592956543, -0.6368862986564636, -0.5176066160202026, -0.2760830521583557, -0.36024585366249084, 0.12265312671661377, 0.30620718002319336, 0.468919575214386, -0.341499000787735, -0.10145875066518784, 0.8547024726867676, -0.06480416655540466, 0.5298357605934143, 0.8782026767730713, -0.3416701853275299, -0.23178942501544952, 0.7438672780990601, 0.3699864149093628, -0.1220192089676857, 0.39624685049057007, 0.05562109127640724, -0.4681766629219055, -0.5847999453544617, -0.3294949531555176, 0.09863786399364471, -0.7562715411186218, -0.15208257734775543, -0.6821635961532593, -0.1102513000369072, -0.634239137172699, -0.6524998545646667, -0.2679425776004791, -0.3789290189743042, -0.21447992324829102, -0.4564841389656067, 0.20474134385585785, 0.8781045079231262, -0.20741333067417145, 0.33870115876197815, -0.8727924227714539, 0.17500261962413788, 0.06466393172740936, 0.43334898352622986, -0.05680881813168526, -0.8177743554115295, -0.1261933296918869, -0.06167984381318092, -0.23036925494670868, -0.6913385391235352, 0.0548848882317543, 0.027514338493347168, 0.5736400485038757, 0.55791836977005, -0.17549791932106018, 0.7925568222999573, -0.4167022407054901, 0.9054322242736816, 0.046472687274217606, -1.1585718393325806, 0.30626970529556274, -0.25901198387145996, 0.12287719547748566, 0.7144318222999573, 0.680830717086792, -0.3712764084339142, -0.5200071930885315, -0.3546757400035858, -0.7350666522979736, 0.627439022064209, -0.2791634500026703, 0.04586247354745865, 0.14531250298023224, 0.3348143994808197, 0.2321968525648117, 0.06933590769767761, -0.6473712921142578, 0.061878759413957596, -0.08862169831991196, -0.8703817129135132, -0.22413524985313416, -0.12859384715557098, -0.3469795286655426, -0.2999233305454254, 0.8992416262626648, -0.16219349205493927, -0.05788939818739891, 0.37011000514030457, -0.08301922678947449, -0.6031844019889832, 0.10571898519992828, 0.8484794497489929, 0.7794767022132874, -0.02143583633005619, -0.10341653227806091, 0.14170123636722565, -0.35101309418678284, 0.11390133947134018, 0.33040815591812134, -0.07266455888748169, -0.09645703434944153, 0.8663256168365479, 0.31469109654426575, -0.0070361304096877575, -0.6163663268089294, 0.6595525741577148, -0.303950697183609, -0.2781853973865509, -0.4844795763492584, 0.07304777204990387, -0.11943437904119492, 0.431306928396225, 0.18754681944847107, 0.20621849596500397, 0.1332690566778183, -0.290762722492218, 0.3991449475288391, 0.6962313055992126, -0.6138616800308228, -0.23237039148807526, 0.2352181077003479, 0.24450752139091492, -0.30677640438079834, 0.47928768396377563, 0.0963829904794693, -0.5370913147926331, 0.6508708000183105, 0.07855010777711868, 1.0442289113998413, -0.420640230178833, 0.2640915513038635, 0.22158658504486084, 0.4031819701194763, -0.023510733619332314, 0.3664805591106415, 0.08003072440624237, -0.8180491924285889, -0.7417169213294983, -0.5941376686096191, -0.37722155451774597, 0.22044965624809265, -0.4472476840019226, 0.31611478328704834, -0.35177281498908997, -0.19353105127811432, 0.3470737636089325, -0.016633471474051476, -0.15906205773353577, 0.45714321732521057, 0.17771217226982117, 0.8148249983787537, -1.1318176984786987, 0.6174888014793396, 0.7510403990745544, -0.3286043405532837, -0.8148101568222046, 0.22691887617111206, 0.22567394375801086, -0.628653883934021, 0.36045077443122864, 0.3186965584754944, -0.3306128680706024, -0.28859707713127136, -0.6118001937866211, -0.7351019382476807, 0.5828080177307129, 0.35974013805389404, -0.7782800793647766, 0.071536123752594, 0.1969386786222458, 0.9275493025779724, -0.5487499237060547, 0.7208660244941711, 0.5809401869773865, 0.8239848613739014, -0.14162850379943848, -0.9601207375526428, -0.07692255079746246, -0.32996904850006104, -0.4561578929424286, 0.27576032280921936, -0.3883148729801178, 0.536995530128479, 0.012896710075438023, 0.2227606624364853, 0.1577097475528717, 0.39438435435295105, -0.061683300882577896, 0.6177961826324463, 0.48171645402908325, 0.9101362228393555, 0.5613495111465454, -0.061791542917490005, 0.5955749750137329, -0.26209601759910583, 0.042667925357818604, 0.9297246336936951, -0.5513375997543335, 0.6862233877182007, 0.6314558982849121, -0.16969168186187744, 0.8493303060531616, 0.42794692516326904, 0.11327206343412399, 0.15949255228042603, 0.07704655826091766, -0.11432890594005585, -0.28785058856010437, -0.379213809967041, -0.06894529610872269, 0.7050225138664246, 0.5037870407104492, -0.5539968609809875, -0.10588783770799637, -0.26729705929756165, -0.04583955928683281, 0.37908172607421875, -0.23473261296749115, 1.0502324104309082, 0.01645670458674431, -1.2100776433944702, 0.18619942665100098, -0.11120244115591049, 0.5174168348312378, -0.5751851797103882, -0.4647406041622162, -0.05736511945724487, 0.14191333949565887, -0.33808860182762146, -0.90952068567276, 0.5104262232780457, 0.09855260699987411, -0.4153379201889038, -0.1530529409646988, 0.5014771223068237, -0.4259782135486603, -0.5295888185501099, 0.4646216928958893, 0.27195632457733154, -0.11142181605100632, 0.3193820118904114, -0.6561558246612549, 0.07355453073978424, -0.19005849957466125, -0.29591137170791626, 0.29385998845100403, 0.4174175262451172, -0.10287970304489136, 0.1636916697025299, 0.49219179153442383, -0.08365093916654587, -0.3498091697692871, 0.1905447244644165, 0.47379714250564575, -0.5057209730148315, -0.4612363278865814, -0.9310132265090942, 0.49842017889022827, -0.1352805495262146, -0.3530673086643219, 0.485066682100296, 0.24960695207118988, 0.7656715512275696, 0.3978246748447418, 0.8053739666938782, 0.2365221232175827, 0.7039426565170288, -0.5395393371582031, 0.45861905813217163, -0.5680268406867981, 0.3899323046207428, -0.4754656255245209, -0.7408263683319092, -0.40675896406173706, 0.6647818088531494, -0.660899817943573, 0.051458172500133514, 0.6696905493736267, 0.8642197251319885, 0.09915462881326675, 0.2991485595703125, 0.1331847757101059, 0.3760211169719696, 0.3648291528224945, 0.2731557786464691, 0.9365465641021729, -0.25371089577674866, 0.3534482717514038, 0.07056356221437454, -0.5210137963294983, -0.06114582717418671, -1.045421838760376, -0.7496065497398376, -0.3591826260089874, -0.46259990334510803, -0.06120651960372925, 0.06506600975990295, 1.093624472618103, 0.2174292951822281, -1.0104254484176636, -0.05907266587018967, -0.23232802748680115, -0.010924790985882282, -0.24170821905136108, -0.2966901361942291, 0.2630654275417328, -0.47936680912971497, -0.5427513122558594, 0.20079955458641052, 0.3467518389225006, -0.1686590164899826, -0.18815597891807556, 0.022838478907942772, -0.28303655982017517, 0.8623339533805847, 0.15932044386863708, 0.002482862211763859, -0.6423936486244202, -0.3863297700881958, -0.12052822858095169, -0.22128573060035706, -0.011731889098882675, 0.9381027817726135, -0.5408833026885986, 0.15316876769065857, 0.6134530901908875, 0.5142160058021545, -0.3311920464038849, 0.06432383507490158, 0.8201547861099243, -0.4846876859664917, -0.3476508855819702, 0.30263277888298035, 0.5093491673469543, 0.13011130690574646, -0.5979583263397217, 0.04173916205763817, -0.08393771201372147, -0.7733104825019836, -0.8193356990814209, 0.0852227658033371, -0.6713194847106934, -0.6416283845901489, 0.5898821353912354, -0.5147370100021362, 0.04330010339617729, -0.3990284502506256, -0.18549403548240662, 0.22814063727855682, -0.34746479988098145, 1.2584627866744995, 1.1055513620376587, -0.4144650995731354, 0.08326759189367294, 0.04953544959425926, 0.5799722671508789, 0.8438917398452759, -0.6140530109405518, 0.0156911239027977, 0.6278730034828186, -0.048691071569919586, 0.5931822657585144, 0.6182119846343994, -0.09894611686468124, 0.4021287262439728, -0.15270251035690308, -0.09365354478359222, 0.40855875611305237, -0.5348125100135803, -0.6799019575119019, 0.18936587870121002, 0.02984115295112133, 0.03467341139912605 ]
http://arxiv.org/abs/2405.19426v2
http://arxiv.org/pdf/2405.19426v2
Deep Learning for Assessment of Oral Reading Fluency
2024-05-29T18:09:35
2024-06-01T14:16:42
Mithilesh Vaidya, Binaya Kumar Sahoo, Preeti Rao
cs.CL
cs.CL, cs.SD, eess.AS
Reading fluency assessment is a critical component of literacy programmes, serving to guide and monitor early education interventions. Given the resource intensive nature of the exercise when conducted by teachers, the development of automatic tools that can operate on audio recordings of oral reading is attractive as an objective and highly scalable solution. Multiple complex aspects such as accuracy, rate and expressiveness underlie human judgements of reading fluency. In this work, we investigate end-to-end modeling on a training dataset of children's audio recordings of story texts labeled by human experts. The pre-trained wav2vec2.0 model is adopted due its potential to alleviate the challenges from the limited amount of labeled data. We report the performance of a number of system variations on the relevant measures, and also probe the learned embeddings for lexical and acoustic-prosodic features known to be important to the perception of reading fluency.
[ -0.28263115882873535, -0.7488765120506287, -0.03179384395480156, -0.17209121584892273, -0.2679975926876068, 0.14780846238136292, -0.24730490148067474, -0.6940159797668457, -0.23423950374126434, 0.47805479168891907, -0.494078129529953, -0.38869208097457886, -0.7638654112815857, -0.11147604882717133, -0.4819529950618744, 0.6582299470901489, 0.03446333482861519, 0.03361397981643677, -0.305046409368515, -0.020662138238549232, -0.7120341658592224, -0.04701057821512222, -0.47288498282432556, -0.2326451987028122, 0.3536968231201172, 0.745464563369751, 0.5502927899360657, 0.6011958718299866, 0.22171294689178467, 0.2965069115161896, -0.1403561383485794, 0.08571815490722656, -0.5114283561706543, 0.3761327564716339, -0.09082717448472977, -0.31282562017440796, -0.2301122546195984, 0.07451469451189041, 0.4969217777252197, 0.8959363102912903, -0.08388315141201019, 0.22976970672607422, 0.38117164373397827, 0.5526854395866394, -0.2846440374851227, 0.29771900177001953, -0.20451533794403076, 0.25220629572868347, 0.009911882691085339, -0.06498951464891434, -0.38345667719841003, -0.309918075799942, 0.7478824853897095, -0.7062982320785522, 0.12286710739135742, -0.25525203347206116, 0.5846538543701172, 0.25150439143180847, -0.714389979839325, -0.7052119970321655, -0.7654991149902344, 0.714915931224823, -0.5272510647773743, 0.650599479675293, 0.7904152274131775, 0.13506151735782623, 0.3468383848667145, -0.633051872253418, -0.6241338849067688, -0.17012672126293182, 0.22827260196208954, 0.2868292033672333, 0.013987263664603233, -0.0283647533506155, -0.23243899643421173, 0.26878461241722107, -0.6925930380821228, 0.48617351055145264, -0.24297206103801727, -0.20378854870796204, 0.6351446509361267, 0.10978153347969055, 0.1935807764530182, 0.12872916460037231, -0.30999431014060974, -0.3922843039035797, -0.0560927614569664, 0.487350732088089, 0.4582797586917877, 0.2515096366405487, -0.016638897359371185, 0.3771895468235016, -0.025089062750339508, 0.5080202221870422, -0.21181407570838928, -0.1907990574836731, 0.5611141920089722, -0.31691426038742065, -0.08970489352941513, 0.11890552937984467, 0.503001868724823, 0.2867377996444702, 0.6238240599632263, 0.09878216683864594, -0.39819005131721497, -0.1193278580904007, -0.09898700565099716, -0.7249945402145386, -0.10112331062555313, 0.045556023716926575, -0.3406490981578827, -0.38274508714675903, -0.09310532361268997, -0.49241378903388977, -0.5047144889831543, -0.5613595247268677, 0.5711160898208618, -0.47760215401649475, -0.5217300653457642, 0.42129379510879517, 0.05610280856490135, 0.29959410429000854, 0.1781282126903534, -1.2418053150177002, 0.6138436198234558, 0.6065654158592224, 0.49158138036727905, 0.03521914407610893, -0.16919702291488647, -0.4535168707370758, -0.11795953661203384, -0.4760931432247162, 0.8960214853286743, -0.5530113577842712, -0.4580070972442627, 0.2072087526321411, -0.21275097131729126, -0.16438814997673035, -0.39182478189468384, 0.46294844150543213, -0.3408201336860657, 0.10519623756408691, 0.03670407086610794, -1.0912847518920898, -0.346392959356308, -0.09701225906610489, -0.7119916081428528, 0.9534181356430054, 0.37886515259742737, -0.3695819079875946, 0.6332593560218811, -0.08274733275175095, -0.779880940914154, 0.05057055875658989, -0.09297481179237366, -0.4786122143268585, 0.11017139256000519, 0.2863921821117401, 0.5052551031112671, 0.02757847309112549, 0.2152060568332672, 0.1398998647928238, -0.5885700583457947, 0.4027945101261139, -0.8028011322021484, 0.5669704675674438, -0.01339888945221901, -0.35726338624954224, 0.06327857822179794, -0.7815172076225281, 0.1449825018644333, -0.13390465080738068, -0.24916255474090576, -0.15395455062389374, -0.041780825704336166, 0.2042010873556137, -0.18691648542881012, 0.08485198020935059, -0.4034735858440399, 0.2509709894657135, -0.6696285605430603, 0.35005778074264526, 0.3279345631599426, 0.2405903935432434, 0.11759569495916367, -0.20099227130413055, 0.4621843099594116, -0.20080997049808502, 0.23447637259960175, -0.47666454315185547, -0.6473667621612549, -0.36915668845176697, -0.18821825087070465, 0.7261558175086975, 0.8100578784942627, -0.12546686828136444, 0.6905127763748169, -0.18664371967315674, -0.5930274128913879, -0.7205272316932678, 0.3371429443359375, 0.7533299326896667, 0.5830205678939819, 0.19496870040893555, -0.5184946656227112, -0.21772097051143646, -0.5954589247703552, -0.12050123512744904, -0.16666387021541595, -0.1426123082637787, 0.42468276619911194, 0.23933294415473938, -0.12664584815502167, 0.720305323600769, -0.21951924264431, -0.5737715363502502, -0.0160685945302248, 0.36127352714538574, 0.14527104794979095, 0.3955235183238983, 0.21053053438663483, -0.7680543661117554, -0.40826481580734253, -0.014716751873493195, -0.482990026473999, -0.09618549048900604, -0.22238998115062714, 0.4176299571990967, -0.04755769670009613, 0.5812947154045105, -0.29422885179519653, 0.3609226942062378, 0.25400644540786743, -0.4634365737438202, 0.5752052664756775, -0.22544845938682556, 0.11233802139759064, -0.5831401944160461, -0.13127876818180084, -0.11615558713674545, -0.13545674085617065, -0.6973392367362976, -0.19841064512729645, 0.05835617333650589, 0.2309126853942871, -0.5121778845787048, 0.4631426930427551, -0.4309850335121155, -0.33490321040153503, -0.05292625352740288, 0.0606548897922039, 0.09694292396306992, 0.25271278619766235, 0.1887531727552414, 0.7000296711921692, 0.5480490922927856, -0.574456512928009, 0.23989303410053253, 0.3546378016471863, -0.728849470615387, 0.3677213788032532, -0.5759913921356201, 0.2727927267551422, 0.13708139955997467, 0.004595138132572174, -1.2163130044937134, -0.07453550398349762, -0.1951385736465454, -0.9017467498779297, 0.7789182662963867, 0.1635214239358902, -0.41709136962890625, -0.2054864913225174, -0.007808992173522711, 0.15202490985393524, 0.6077742576599121, -0.4895448684692383, 0.5192704796791077, 0.5063731670379639, -0.4294189512729645, -0.7019821405410767, -0.7704787254333496, -0.06444982439279556, 0.2571175992488861, -0.5255625247955322, 0.07716543972492218, 0.0040445104241371155, -0.13574866950511932, -0.13402830064296722, -0.22724685072898865, -0.3507079780101776, 0.15461629629135132, 0.1399637758731842, 0.011706206016242504, -0.4875445067882538, 0.3743457794189453, 0.40938836336135864, -0.2392730861902237, 0.02765023335814476, -0.1712900698184967, 0.236923947930336, -0.1867971569299698, -0.11446364223957062, -0.7831817269325256, 0.21566446125507355, 0.44358476996421814, -0.3464547097682953, 0.12192345410585403, 0.8013695478439331, -0.4812801480293274, -0.19884051382541656, -0.3139597773551941, -0.08149903267621994, -0.4811496436595917, 0.5803958773612976, -0.2647615373134613, -0.684326171875, 0.3907778263092041, 0.03139703720808029, -0.05856800079345703, 0.27172622084617615, 0.5512639284133911, -0.4951472878456116, 0.9115900993347168, 0.3442499041557312, 0.20247790217399597, 0.4108729660511017, -0.4858350157737732, -0.19884532690048218, -0.579244077205658, -0.5622028112411499, -0.32117635011672974, -0.17100700736045837, -0.12292972207069397, -0.32035622000694275, -0.17630809545516968, 0.1733883172273636, 0.043171610683202744, 0.10693968832492828, -0.5748516917228699, 0.46366891264915466, 0.45567259192466736, 0.08994272351264954, 0.2884187698364258, -0.05761891230940819, -0.3894885182380676, -0.190948024392128, -0.1345493495464325, -0.5202042460441589, 1.0711116790771484, 0.5094180107116699, 0.5026571750640869, 0.12923017144203186, 0.5837460160255432, 0.5845551490783691, 0.08726229518651962, -1.1525062322616577, 0.39265358448028564, -0.0012700719526037574, -0.4547182023525238, -0.9443238973617554, 0.04264827072620392, -1.1705485582351685, 0.30838456749916077, -0.27567002177238464, -0.4558604657649994, 0.520793080329895, -0.11775528639554977, -0.6612803936004639, 0.011583475396037102, -0.9783042073249817, 0.7670539021492004, -0.17601081728935242, -0.155032679438591, -0.15143203735351562, -0.7027848362922668, -0.08217671513557434, -0.08841875940561295, 0.15594513714313507, 0.03916892036795616, -0.32291996479034424, 0.8158320188522339, -0.23251691460609436, 1.0262506008148193, -0.24741028249263763, -0.18851818144321442, 0.6300657391548157, 0.17286501824855804, 0.24776847660541534, 0.03206861764192581, 0.015030037611722946, -0.07026556879281998, 0.04952872544527054, -0.34560444951057434, -0.4323791563510895, 0.2765604257583618, -1.0262372493743896, -0.19337715208530426, -0.5260183215141296, -0.31595277786254883, -0.5396092534065247, 0.35101643204689026, -0.013722311705350876, 0.7960885167121887, -0.4482784569263458, 0.3206346333026886, 1.0910598039627075, -0.0510285422205925, 0.3753729462623596, 0.6479740142822266, 0.03560585528612137, -0.25692546367645264, 1.1904343366622925, 0.3381173312664032, 0.1966249793767929, 0.47587060928344727, 0.28568369150161743, -0.6491891741752625, -1.0131734609603882, -0.3055652379989624, -0.16071277856826782, -0.7415921688079834, 0.1152065321803093, -0.5750120282173157, -0.1997535228729248, -0.603082537651062, -0.18020415306091309, -0.2486868053674698, -0.31665417551994324, -0.8976550102233887, -0.6120256781578064, 0.3404843211174011, 0.8483417630195618, -0.2861681580543518, 0.32394665479660034, -0.6555224061012268, 0.16255609691143036, 0.6280080080032349, 0.324651300907135, 0.05844750255346298, -0.7902330756187439, -0.3567180037498474, -0.2429535835981369, -0.19159092009067535, -0.7224505543708801, 0.5474637746810913, 0.5949380993843079, 0.35092055797576904, 0.5365394949913025, -0.21281206607818604, 0.38125985860824585, -0.2628825902938843, 0.6964922547340393, 0.020026618614792824, -0.9559915065765381, 0.41256678104400635, -0.384585440158844, 0.11543839424848557, 0.710486650466919, 0.2435612678527832, -0.42595168948173523, -0.12429287284612656, -0.42959582805633545, -0.8206016421318054, 0.26461318135261536, -0.10024897009134293, 0.16186261177062988, 0.1958450973033905, 0.16876515746116638, 0.557949960231781, 0.004226833116263151, 0.0027381377294659615, 0.04918498918414116, -0.39261940121650696, -0.4001712501049042, -0.19140438735485077, -0.4289194345474243, 0.24963238835334778, -0.44777506589889526, 0.3709789514541626, -0.04569794982671738, -0.13083098828792572, 0.3036864399909973, -0.503008246421814, 0.037106968462467194, 0.2170555293560028, 0.5698727965354919, 0.4608316123485565, -0.1960678994655609, -0.10222628712654114, 0.02471594326198101, -1.011202335357666, 0.1709960550069809, 0.20516732335090637, 0.036416251212358475, -0.24547912180423737, 0.9235697388648987, 0.8060833215713501, 0.48432350158691406, -0.8748748898506165, 0.8235327005386353, -0.21102729439735413, -0.4893058240413666, -0.5701723694801331, 0.186569482088089, 0.2981263995170593, 0.31919097900390625, 0.44089359045028687, -0.034283511340618134, 0.3827887177467346, -0.3020817041397095, 0.5447677373886108, -0.2577410042285919, -0.8050656914710999, -0.21399523317813873, 0.2817436754703522, 0.323377788066864, -0.4902512729167938, 0.9442119598388672, -0.15566475689411163, -0.22408658266067505, 0.7619556784629822, 0.3539372980594635, 0.6912909150123596, -0.6557755470275879, 0.21301643550395966, 0.2374807447195053, 0.4585843086242676, 0.4245510697364807, 0.48905062675476074, -0.3339037597179413, -0.5561236143112183, -0.16467712819576263, -0.3532116711139679, -0.4968997836112976, 0.1321830153465271, -0.9614039063453674, 0.22271159291267395, -0.2363511025905609, -0.0346817821264267, 0.061286840587854385, 0.37265026569366455, -0.9081217050552368, 0.5662634968757629, 0.5779361724853516, 0.7519908547401428, -0.948497474193573, 0.8087254166603088, 0.019467495381832123, -0.4540545642375946, -0.7540674805641174, -0.23351755738258362, 0.014167754910886288, -0.8201309442520142, 0.3970644772052765, 0.3638724386692047, -0.09852709621191025, 0.2632446885108948, -0.15541601181030273, -0.8063052296638489, 1.0281991958618164, 0.07976410537958145, -0.9927365779876709, 0.04483933001756668, 0.2559661865234375, 0.8017483949661255, -0.3807619512081146, 0.7827001214027405, 0.7557517290115356, 0.5185779929161072, -0.09028886258602142, -1.037427306175232, -0.3907771706581116, -0.14253447949886322, -0.17288543283939362, -0.36175769567489624, -0.32387834787368774, 0.4986102283000946, -0.47424036264419556, -0.15963780879974365, 0.009546499699354172, 0.989495575428009, 0.0003200092469342053, 0.4251614809036255, 0.5998570919036865, 0.34316951036453247, 1.1903176307678223, 0.24515758454799652, 0.9022262692451477, 0.08265604823827744, 0.2070499211549759, 1.0994065999984741, -0.264085978269577, 1.0603090524673462, 0.19535145163536072, -0.13074234127998352, 0.30058446526527405, 1.053939938545227, -0.22143995761871338, 0.5335594415664673, 0.28589197993278503, -0.2743972837924957, -0.13726693391799927, -0.19290561974048615, -0.26479029655456543, 0.4066157042980194, 0.854950487613678, -0.30913111567497253, 0.2751462161540985, 0.36100250482559204, -0.18756844103336334, 0.22170217335224152, -0.31770026683807373, 0.8458297252655029, 0.1649409532546997, -0.5190097689628601, 0.6041345000267029, -0.4236699640750885, 0.5405266880989075, -0.31238430738449097, -0.15950007736682892, -0.02242928370833397, 0.18526145815849304, -0.12478790432214737, -1.1620877981185913, -0.10013624280691147, -0.3348294794559479, -0.13067112863063812, -0.20894883573055267, 0.6688430309295654, -0.6052624583244324, -0.45226314663887024, 0.44847238063812256, 0.45018717646598816, 0.38287943601608276, 0.29510965943336487, -0.7724745869636536, -0.09873949736356735, -0.16150857508182526, -0.8303701877593994, 0.07966899126768112, 0.3233705759048462, 0.23831269145011902, 0.5264530181884766, 0.5906835794448853, -0.05001533031463623, 0.09516619145870209, 0.5989819169044495, 0.3738623261451721, -0.47347286343574524, -0.6234526038169861, -0.42884716391563416, 0.36192479729652405, 0.3061356544494629, -0.8562487363815308, 0.29899731278419495, 0.5199335813522339, 0.7843506932258606, 0.0543077327311039, 0.6867114305496216, 0.5870407223701477, 0.7481648921966553, -0.44212955236434937, 0.8951606154441833, -0.3465442657470703, -0.04719860851764679, -0.08292044699192047, -0.5108628869056702, -0.2261509895324707, 0.6042841076850891, 0.076121486723423, -0.039364658296108246, 0.7113167643547058, 0.5854300856590271, 0.09255840629339218, 0.5212414264678955, 0.3784600794315338, 0.23030048608779907, 0.20432943105697632, 0.49893277883529663, 0.69245445728302, -0.31200355291366577, 0.5776205062866211, -0.05578926205635071, -0.44794440269470215, -0.2577287256717682, -0.4664459526538849, -0.90117347240448, -0.6954465508460999, -0.35015133023262024, -0.20833130180835724, 0.1137102022767067, 0.6600855588912964, 0.47825872898101807, -0.5172706842422485, -0.16001804172992706, 0.020504048094153404, -0.14397548139095306, -0.5919881463050842, -0.1519443392753601, 0.5896681547164917, -0.09457999467849731, -0.5201772451400757, 0.5912356972694397, -0.16709119081497192, 0.10889077931642532, -0.4684092402458191, -0.13768161833286285, -0.006996160838752985, 0.2922421991825104, 0.4317880868911743, 0.3940664231777191, -0.47184115648269653, -0.1317397803068161, 0.14021369814872742, -0.15877829492092133, 0.09851749241352081, 0.5554064512252808, -0.9632101655006409, 0.8271596431732178, 0.48089033365249634, 0.7151586413383484, 0.8060042858123779, -0.34693896770477295, 0.2807026505470276, -0.5234810709953308, -0.13130415976047516, 0.7645641565322876, 0.07320230454206467, 0.2994081676006317, -0.345296710729599, 0.31671157479286194, 0.17538757622241974, -0.4491870105266571, -0.9878390431404114, -0.11987580358982086, -0.8573617339134216, -0.17131070792675018, 0.9384412169456482, -0.20558761060237885, -0.24468016624450684, -0.4075765907764435, -0.1080118715763092, 0.5554159283638, -0.3868895471096039, 0.2760917842388153, 0.7767282128334045, 0.01792280003428459, -0.22148184478282928, -0.6874242424964905, 0.25937408208847046, 0.4556560516357422, -0.3417501449584961, 0.05290398374199867, 0.11753751337528229, 0.3971219062805176, -0.027746567502617836, 0.573938250541687, -0.08948012441396713, 0.3792576193809509, 0.34381240606307983, 0.12606512010097504, -0.29981493949890137, -0.3832778036594391, -0.587020754814148, 0.006214465945959091, -0.14776380360126495, -0.1031632274389267 ]
http://arxiv.org/abs/2405.19425v1
http://arxiv.org/pdf/2405.19425v1
Adaptive In-conversation Team Building for Language Model Agents
2024-05-29T18:08:37
2024-05-29T18:08:37
Linxin Song, Jiale Liu, Jieyu Zhang, Shaokun Zhang, Ao Luo, Shijian Wang, Qingyun Wu, Chi Wang
cs.CL
cs.CL
Leveraging multiple large language model (LLM) agents has shown to be a promising approach for tackling complex tasks, while the effective design of multiple agents for a particular application remains an art. It is thus intriguing to answer a critical question: Given a task, how can we build a team of LLM agents to solve it effectively? Our new adaptive team-building paradigm offers a flexible solution, realized through a novel agent design named Captain Agent. It dynamically forms and manages teams for each step of a task-solving process, utilizing nested group conversations and reflection to ensure diverse expertise and prevent stereotypical outputs. It allows for a flexible yet structured approach to problem-solving and can help reduce redundancy and enhance output diversity. A comprehensive evaluation across six real-world scenarios demonstrates that Captain Agent significantly outperforms existing multi-agent methods with 21.94% improvement in average accuracy, providing outstanding performance without requiring task-specific prompt engineering.
[ -0.38007301092147827, -0.8170161247253418, 0.38089558482170105, 0.4955105185508728, 0.0580071322619915, 1.2193399667739868, -0.12288901954889297, -0.6112843155860901, 0.34763699769973755, 0.35579943656921387, -0.5082828402519226, -0.21899771690368652, -0.517576277256012, 0.28672266006469727, 0.1940077841281891, 0.6815710067749023, 0.09646009653806686, -0.07052550464868546, 0.04112466052174568, -0.2964399456977844, -1.1628248691558838, -0.3664368689060211, -1.1631741523742676, -0.39366623759269714, 0.37420737743377686, 0.9041616320610046, 0.9896031022071838, 0.2280062735080719, 0.3633788526058197, 0.4210056662559509, -0.12016403675079346, 0.5711525678634644, -0.6613091230392456, 0.575046181678772, -0.17755134403705597, -0.5437778234481812, -1.1321786642074585, -0.13524839282035828, 0.562320351600647, 0.5311858654022217, -0.19572575390338898, -0.06222524493932724, 0.08326009660959244, 0.682615339756012, -0.12925902009010315, 0.610910952091217, -1.0483423471450806, -0.1932365447282791, 0.28904297947883606, -0.41153380274772644, -0.5122426152229309, 0.04722990095615387, 0.12642847001552582, -0.6728472113609314, 0.09647027403116226, 0.27000731229782104, 0.3313617408275604, 0.14365322887897491, -0.28290820121765137, -0.3729173243045807, -0.5415461659431458, 0.6887288689613342, -0.6747315526008606, 0.013648413121700287, 0.14071166515350342, 0.46247515082359314, -0.5641644597053528, -0.23281730711460114, -0.3638981878757477, -0.30006706714630127, 0.325377494096756, 0.48399704694747925, -0.11167017370462418, 0.10557294636964798, -0.1457575261592865, 0.04118563234806061, -0.4954359531402588, 0.37009331583976746, -0.24511471390724182, 0.08144016563892365, 0.8619436621665955, 0.29075825214385986, 0.549663782119751, 0.31885525584220886, -0.25577738881111145, 0.1802751123905182, -0.28250670433044434, -0.1213071271777153, 0.2502273917198181, 0.8687869310379028, -0.2084423005580902, 0.11646468192338943, -0.13469554483890533, 0.4004329741001129, 0.3052135407924652, 0.010914566926658154, 0.17493367195129395, -0.11126166582107544, -0.12054275721311569, 0.17175400257110596, 0.3720974624156952, 0.574607253074646, 0.3806043863296509, -0.2967366576194763, -0.1958674192428589, 0.017845522612333298, 0.48485520482063293, -0.49354904890060425, -0.21189169585704803, 0.2630186975002289, -0.22735458612442017, -0.4307554364204407, -0.3096356689929962, -0.39520591497421265, -0.6896241903305054, 0.06228942424058914, 0.16053135693073273, -0.09777383506298065, -0.5323638319969177, -0.05350106209516525, -0.31704261898994446, 0.48251768946647644, 0.5278942584991455, -0.7553181648254395, 0.349909245967865, 0.37279629707336426, 0.802387535572052, -0.33168092370033264, -0.3835981488227844, -0.6403326392173767, 0.28561273217201233, -0.64324951171875, 0.9291552901268005, -0.4920775890350342, -0.564495861530304, -0.10684957355260849, -0.16450180113315582, -0.14312328398227692, -0.6379411816596985, 0.12558750808238983, -0.5085258483886719, -0.05692817643284798, -0.10305255651473999, -0.24148374795913696, -0.06458576768636703, 0.45148032903671265, -0.5242947936058044, 0.8177464604377747, 0.13292904198169708, -0.1845632791519165, 0.28880518674850464, -1.0391249656677246, -0.367331326007843, 0.46573179960250854, 0.126107856631279, -0.22854642570018768, 0.09399688988924026, 0.37942618131637573, 0.49919000267982483, -0.4290812611579895, -0.0215174350887537, -0.2847819924354553, -0.25713682174682617, 0.3166547417640686, 0.1662282794713974, 0.5117858052253723, 0.24850736558437347, 0.10663887113332748, 0.6259169578552246, -0.4504123330116272, -0.026249805465340614, 0.2688885033130646, -0.3869227468967438, -0.14816853404045105, 0.10383166372776031, -0.07182738929986954, 0.12934339046478271, 0.10007186979055405, -0.2838584780693054, 0.3069259822368622, -0.2689611613750458, 0.3145581781864166, 0.9521905779838562, 0.01834952086210251, 0.8752644658088684, -0.8731274604797363, 0.7915538549423218, -0.23514530062675476, 0.24900776147842407, -0.015074396505951881, -0.750914454460144, -0.6861739158630371, -0.46357840299606323, -0.36150062084198, 0.601926863193512, -1.0158454179763794, 0.1234351322054863, -0.07058219611644745, -0.6520628333091736, -0.3166414797306061, 0.2623412013053894, 0.2861922085285187, 0.4118421971797943, 0.26005998253822327, -0.4937750995159149, -0.59331876039505, -0.6408527493476868, -0.3730700612068176, -0.5528566241264343, 0.22780226171016693, 0.27903077006340027, 0.30229443311691284, -0.07425722479820251, 0.8736995458602905, -0.34452345967292786, -0.2474820762872696, -0.9951615929603577, 0.059679657220840454, 0.39818352460861206, 0.282166987657547, 0.6125719547271729, -0.7187623381614685, -1.0693097114562988, 0.07800418883562088, -0.826447606086731, -0.20950396358966827, -0.20287580788135529, -0.15217597782611847, 0.47964754700660706, 0.5023016333580017, -0.5401886701583862, -0.03563382104039192, 0.5966479182243347, -0.3947991728782654, 0.4253922700881958, -0.21940267086029053, -0.05735401064157486, -1.323814034461975, -0.3220083713531494, -0.2649332284927368, -0.31870514154434204, -0.999458909034729, 0.39848536252975464, -0.1636480987071991, -0.145326629281044, -0.4109695255756378, 0.5380121469497681, -0.8530464768409729, 0.06983734667301178, -0.690855085849762, 0.21517328917980194, -0.21977874636650085, 0.6015410423278809, -0.14776363968849182, 0.7883242964744568, 0.5740851759910583, -0.5808744430541992, 0.4077799618244171, 0.3418549597263336, 0.012813210487365723, 0.674787163734436, -0.6788579821586609, 0.6088894009590149, -0.4141305387020111, 0.4122050404548645, -1.163041114807129, -0.1456020325422287, 0.4134054481983185, -0.4234243333339691, 0.38605380058288574, -0.20039251446723938, -0.4904394745826721, -0.2787708640098572, -0.24243955314159393, 0.3327654302120209, 0.335743248462677, -0.2868139147758484, 1.0180705785751343, 0.5824384093284607, -0.5183324813842773, -0.30440598726272583, -0.46281126141548157, 0.4702227711677551, -0.22672154009342194, -0.7954272031784058, 0.40210825204849243, -0.5452796816825867, -0.4665345847606659, -0.1699780523777008, -0.33657604455947876, -0.40359261631965637, 0.34446364641189575, 0.20461206138134003, 0.3121953010559082, -0.06546319276094437, 0.25093626976013184, -0.133178249001503, 0.04624610394239426, -0.24423366785049438, 0.17785605788230896, 0.5838785171508789, -0.3198195695877075, 0.10724734514951706, -0.08457525074481964, 0.6564099192619324, 0.7252140641212463, -0.2581399977207184, 0.8081684708595276, 0.07688287645578384, -0.18106789886951447, -0.5821089744567871, -0.5482569932937622, -0.07818803936243057, -0.5222947597503662, 0.6448504328727722, -0.5602797865867615, -0.749825656414032, 0.9514579176902771, 0.12683817744255066, 0.419478178024292, 0.12803848087787628, 0.6280538439750671, -0.20009048283100128, 0.7269695401191711, 0.8973371982574463, -0.1455487310886383, 0.5133693814277649, 0.15016694366931915, 0.08652760088443756, -0.4571971893310547, -0.06149197742342949, -0.28746291995048523, -0.364621102809906, -0.31225404143333435, -0.49147772789001465, 0.3831443786621094, -0.25650113821029663, -0.1836797297000885, 0.4179311692714691, -0.3987743854522705, 0.5441313982009888, 0.1684867888689041, 0.024326112121343613, 0.44713765382766724, -0.4654925465583801, 0.3948078453540802, 0.4254305958747864, -0.9033494591712952, -0.4523736834526062, 1.0755537748336792, 0.4129367768764496, 0.6034917831420898, 0.4825685918331146, 0.46134012937545776, 0.5391994118690491, 0.4905775189399719, -0.8490728735923767, 0.720184862613678, 0.2666991651058197, -0.7579429745674133, -0.5064629316329956, -0.20363809168338776, -0.8962818384170532, 0.4657004475593567, -0.40661075711250305, -0.3542470633983612, -0.2809019982814789, 0.07942323386669159, -0.23644699156284332, 0.14876022934913635, -0.928929328918457, 0.5796690583229065, -0.0646401196718216, -0.11056048423051834, -0.4630732536315918, -0.47976693511009216, 0.06240202113986015, -0.40548834204673767, 0.2695274353027344, -0.3297802805900574, -0.012967560440301895, 0.44268760085105896, -0.2449985146522522, 0.936557412147522, -0.12678992748260498, -0.04307993873953819, 0.42140665650367737, 0.035003647208213806, 0.5985883474349976, -0.140968456864357, -0.29455694556236267, -0.13032861053943634, -0.521492063999176, -0.6988089084625244, -0.6741036772727966, 0.4010608196258545, -0.7089803218841553, -0.8455684185028076, -0.4032898247241974, -1.3278313875198364, -0.3285299837589264, 0.060280557721853256, -0.26731181144714355, 0.1556471884250641, -0.3515860140323639, -0.019723935052752495, 0.25742441415786743, -0.34639739990234375, 0.8126345872879028, 0.7973374128341675, -0.0716855451464653, -0.27226266264915466, 0.6009054780006409, 0.05488366261124611, 0.7173995971679688, 0.4506876468658447, 0.05432873219251633, -0.015780752524733543, -0.7491756677627563, -0.16744527220726013, 0.07933234423398972, -0.620902955532074, -0.14999492466449738, -0.3893287479877472, -0.12979750335216522, -0.29212743043899536, -0.3597877323627472, -0.466555655002594, -0.23021256923675537, 0.006435940507799387, -0.03902587667107582, 0.23816564679145813, 0.7032812237739563, 0.46495410799980164, 0.5033057332038879, -0.609120786190033, 0.21572062373161316, 0.4843418002128601, 0.06794499605894089, -0.14091847836971283, -0.5529137849807739, -0.24002651870250702, -0.16369092464447021, -0.43400534987449646, -1.0350273847579956, 0.3266637325286865, 0.2695312201976776, 0.9215623736381531, -0.19061799347400665, 0.259213924407959, 0.5194839239120483, -0.36971795558929443, 0.5649601221084595, 0.13156287372112274, -0.7964544296264648, 0.29528865218162537, -0.6387290358543396, 0.4657365679740906, 0.19341111183166504, -0.07146221399307251, -0.3176140785217285, -0.9053848385810852, -0.4924335479736328, -0.7497775554656982, 0.5853053331375122, 0.22819797694683075, 0.08077111840248108, 0.1870536208152771, 0.2524825930595398, -0.019344601780176163, 0.11514341831207275, -0.400974303483963, -0.14845357835292816, -0.04816014692187309, -0.08318071812391281, -0.3423680365085602, -0.23232600092887878, 0.02888096496462822, 0.021790189668536186, 0.6945531964302063, -0.5382600426673889, 0.39780935645103455, 0.019453389570116997, -0.2874659597873688, -0.13146527111530304, 0.37553009390830994, 0.6435417532920837, 0.8823776841163635, -0.32858866453170776, -0.07156041264533997, 0.6596195101737976, -0.24704508483409882, 0.044283464550971985, 0.01799955777823925, 0.40705740451812744, -0.2863137722015381, 0.4104178547859192, 0.49346429109573364, -0.018070567399263382, -0.6022355556488037, 0.1337115615606308, -0.016835682094097137, -0.23232795298099518, -0.17954936623573303, 0.16719460487365723, 0.2721344530582428, 0.6550431847572327, 0.6021955609321594, 0.16003479063510895, -0.20186807215213776, -0.9688565135002136, 0.011651378124952316, 0.48069509863853455, -0.30387571454048157, -0.22549110651016235, 0.599765419960022, 0.5532517433166504, -0.6290507316589355, 0.397529274225235, -0.12695185840129852, -0.5482380986213684, 0.8642654418945312, 0.8001195788383484, 1.0115814208984375, -0.46844789385795593, 0.22108371555805206, -0.15784797072410583, 0.4916955828666687, 0.015106198377907276, 0.5043088793754578, 0.31367817521095276, -1.069703221321106, -0.4706435203552246, -0.06320030987262726, -0.8019177317619324, -0.28766241669654846, -0.15798859298229218, 0.015999604016542435, -0.660467267036438, -0.22187595069408417, -0.11953546851873398, 0.08823972940444946, -0.4044186770915985, -0.07509110867977142, 0.10356830060482025, 0.8274237513542175, -0.7431111335754395, 0.7244834303855896, 0.9456334114074707, -0.49693772196769714, -0.7354604005813599, -0.06381280720233917, -0.029026569798588753, -0.9784363508224487, 0.3975059986114502, 0.04943215101957321, -0.26745545864105225, -0.026697926223278046, -0.5491852760314941, -0.5000255703926086, 1.1607146263122559, 0.40955907106399536, -0.38366517424583435, -0.06460681557655334, -0.0008357237093150616, 0.6049367785453796, -0.783848762512207, 0.3090636134147644, 0.07737407833337784, 0.32331982254981995, 0.1623663455247879, -1.356211543083191, 0.21108105778694153, -0.44318071007728577, -0.02396225742995739, -0.06549163162708282, -1.0198901891708374, 0.6818089485168457, -0.26934245228767395, -0.0035920371301472187, 0.1124725267291069, 0.7800748348236084, 0.4175221621990204, 0.24256421625614166, 0.8497176766395569, -0.19672271609306335, 0.9872533679008484, 0.2377515435218811, 0.636667013168335, -0.30156025290489197, -0.09078337997198105, 1.226939082145691, -0.44008782505989075, 0.4809388220310211, 0.4391185939311981, 0.19202759861946106, 0.44793450832366943, 0.11637499928474426, 0.1459740698337555, 0.14332696795463562, 0.18330766260623932, -0.26269063353538513, -0.4542158842086792, -0.13485360145568848, -0.09686829894781113, 0.6126810908317566, 0.16135771572589874, -0.058016132563352585, 0.022257568314671516, -0.25349387526512146, -0.039019469171762466, 0.3342559039592743, -0.5100398063659668, 0.585493266582489, 0.12254788726568222, -0.6660393476486206, 0.39822742342948914, -0.17415587604045868, 0.4941917955875397, -0.4801596403121948, -0.11139649152755737, -0.3242548108100891, 0.281096488237381, -0.14730873703956604, -0.6487092971801758, 0.24333350360393524, -0.1882527619600296, -0.3500096797943115, -0.5474397540092468, 0.8045732975006104, -0.4243674874305725, -0.21617485582828522, 0.29235193133354187, 0.858802318572998, 0.04850558564066887, -0.29658204317092896, -0.5917519330978394, 0.1254299134016037, -0.27152737975120544, 0.17559248208999634, 0.19830158352851868, 0.1058158129453659, -0.1461813747882843, 1.0338618755340576, 0.4804518520832062, -0.1389450579881668, 0.11989467591047287, 0.08758842200040817, 0.7880111932754517, -0.5294326543807983, -0.6393429040908813, -0.6598499417304993, 0.7246077060699463, -0.23145049810409546, -0.12940570712089539, 0.7267743349075317, 0.543181300163269, 0.47347381711006165, -0.2264796495437622, 0.8547051548957825, 0.1706685870885849, 0.40364018082618713, -0.13782159984111786, 0.8679430484771729, -0.49828752875328064, 0.2996397912502289, -0.6569480299949646, -0.972062349319458, -0.5475576519966125, 0.5555930733680725, 0.2538355886936188, 0.032327309250831604, 0.5784813165664673, 0.8835164904594421, 0.21521618962287903, 0.1530095487833023, 0.2532176077365875, 0.390047550201416, 0.9020799398422241, 0.7697310447692871, 1.0610800981521606, -0.18642351031303406, 0.6701144576072693, 0.4103262424468994, -0.4899219870567322, -0.07701425999403, -0.9544716477394104, -1.3134714365005493, -0.35760822892189026, -0.48836442828178406, -0.15680170059204102, 0.29924172163009644, 1.257757306098938, 0.6221979260444641, -0.5515417456626892, -0.6442410349845886, -0.09242452681064606, 0.2557966709136963, -0.6009838581085205, -0.13128583133220673, -0.047590721398591995, -0.5545305013656616, -0.8232513070106506, 1.013410210609436, 0.2408788651227951, -0.11549769341945648, 0.1117417961359024, -0.48814070224761963, -0.17217327654361725, 0.28339871764183044, 0.6995635032653809, 0.35003653168678284, -0.38247784972190857, -0.44187235832214355, 0.04103785753250122, 0.01036704983562231, 0.18776018917560577, 0.4477806091308594, -0.4683254361152649, 0.6320196986198425, 0.43399977684020996, 0.7058888077735901, 0.2842966616153717, -0.20773805677890778, 1.021490216255188, -0.5544095635414124, 0.06984153389930725, 0.12964753806591034, 0.22833169996738434, 0.187850683927536, -0.15139415860176086, 0.516166627407074, 0.2369084656238556, -0.650023877620697, -0.7818847894668579, 0.28459712862968445, -1.3827468156814575, -0.3394656181335449, 1.0200037956237793, 0.1885530799627304, 0.20307284593582153, -0.4942123293876648, -0.5061601996421814, 0.36923977732658386, -0.8144699335098267, 0.7800944447517395, 0.602371096611023, -0.24971051514148712, -0.23407894372940063, -0.3436732292175293, 0.09415264427661896, 0.42256370186805725, -0.8767476677894592, -0.16074956953525543, 0.2490665465593338, 0.31218963861465454, -0.027069982141256332, 1.0558137893676758, 0.32248347997665405, 0.11624425649642944, -0.01872081123292446, 0.042988020926713943, -0.2993803918361664, -0.5259924530982971, 0.12507934868335724, 0.4236595332622528, 0.46100014448165894, -0.3451932668685913 ]
http://arxiv.org/abs/2405.19335v1
http://arxiv.org/pdf/2405.19335v1
X-VILA: Cross-Modality Alignment for Large Language Model
2024-05-29T17:59:58
2024-05-29T17:59:58
Hanrong Ye, De-An Huang, Yao Lu, Zhiding Yu, Wei Ping, Andrew Tao, Jan Kautz, Song Han, Dan Xu, Pavlo Molchanov, Hongxu Yin
cs.CV
cs.CV, cs.CL, cs.LG
We introduce X-VILA, an omni-modality model designed to extend the capabilities of large language models (LLMs) by incorporating image, video, and audio modalities. By aligning modality-specific encoders with LLM inputs and diffusion decoders with LLM outputs, X-VILA achieves cross-modality understanding, reasoning, and generation. To facilitate this cross-modality alignment, we curate an effective interleaved any-to-any modality instruction-following dataset. Furthermore, we identify a significant problem with the current cross-modality alignment method, which results in visual information loss. To address the issue, we propose a visual alignment mechanism with a visual embedding highway module. We then introduce a resource-efficient recipe for training X-VILA, that exhibits proficiency in any-to-any modality conversation, surpassing previous approaches by large margins. X-VILA also showcases emergent properties across modalities even in the absence of similar training data. The project will be made open-source.
[ -0.3101537227630615, -0.9583143591880798, 0.5291087031364441, -0.17594614624977112, -0.24779750406742096, -0.08732777833938599, -0.3254837095737457, -0.2595667243003845, 0.3971606194972992, 0.5180203914642334, -0.3560327887535095, -0.6114463210105896, -0.4030134677886963, -0.37881702184677124, -0.32822924852371216, 0.6194905638694763, -0.17068439722061157, 0.48100870847702026, -0.15010781586170197, -0.25258395075798035, -0.6202975511550903, -0.18068315088748932, -0.5277742743492126, 0.08788752555847168, 0.616818904876709, 0.28432372212409973, 0.9393506050109863, 1.1162419319152832, 0.24956932663917542, 0.27801910042762756, 0.18034541606903076, 0.09706894308328629, -0.6775377988815308, 0.09131155908107758, -0.25427818298339844, -0.5630054473876953, -0.6419106721878052, -0.3622911870479584, 1.0946627855300903, 0.5681629776954651, 0.03982333466410637, 0.08840145170688629, -0.25816240906715393, 0.31541353464126587, -0.6386092901229858, 0.3030785620212555, -0.5237703323364258, -0.05875822901725769, -0.3965320885181427, -0.41725853085517883, -0.389236181974411, -0.14526233077049255, 0.14445221424102783, -0.5072036981582642, -0.32407233119010925, 0.3042663335800171, 0.7273901104927063, 0.3874974250793457, -0.7357322573661804, -0.038884248584508896, -0.6146154403686523, 0.5961290597915649, -0.23236776888370514, 0.9824098944664001, 0.03018803894519806, 0.42300331592559814, -0.05857235565781593, -0.215852752327919, -0.699044406414032, -0.1021241620182991, 0.25790005922317505, 0.12686672806739807, -0.23729217052459717, 0.06803938746452332, -0.09316735714673996, 0.26936638355255127, -0.8322784304618835, 0.14031797647476196, -0.22943392395973206, 0.261724054813385, 0.3781771659851074, 0.36355361342430115, 0.43797767162323, -0.250868558883667, -0.5024902820587158, -0.05504373088479042, -0.8315005898475647, 0.08680611848831177, 0.36432990431785583, 0.28971636295318604, -0.33065173029899597, 0.8833914995193481, 0.2292020320892334, 0.900994598865509, -0.10209030658006668, -0.3032745122909546, 0.15591594576835632, -0.3630320727825165, -0.47298312187194824, 0.21674035489559174, 0.8011722564697266, 0.20360741019248962, -0.1823846697807312, 0.016689764335751534, -0.014595955610275269, 0.058039627969264984, 0.2481534481048584, -0.3702751100063324, -0.035964421927928925, -0.15680037438869476, -0.36439746618270874, -0.298717200756073, -0.0716470405459404, -0.5566349029541016, -0.23503375053405762, -0.48317867517471313, 0.7815259099006653, -0.40851691365242004, -0.3759762644767761, 0.13942809402942657, 0.18032297492027283, 0.6782948970794678, 0.37837231159210205, -0.8047281503677368, 0.19323760271072388, 0.6108481287956238, 0.612277626991272, -0.2230600267648697, -0.30425944924354553, -0.6958287954330444, 0.43505048751831055, -0.37302908301353455, 0.47182756662368774, -0.8984325528144836, -0.31372368335723877, -0.03631826490163803, -0.006648716516792774, 0.0285606998950243, -0.1094721257686615, 0.45028698444366455, -0.37179410457611084, 0.30122193694114685, -0.3076586127281189, -0.35315003991127014, -0.18370307981967926, 0.3867271840572357, -0.6442355513572693, 0.77878737449646, 0.18948546051979065, -0.5759929418563843, 0.27861863374710083, -0.5654719471931458, -0.16522791981697083, -0.20984181761741638, -0.8327476382255554, -0.41003933548927307, 0.2355453222990036, 0.08768749982118607, 0.2587548494338989, -0.60896235704422, 0.33186450600624084, -0.242916077375412, -0.12221220880746841, 0.2829357981681824, -0.6583366990089417, 0.8301987648010254, -0.13468389213085175, -0.35441580414772034, 0.36848515272140503, -0.826776921749115, -0.040027134120464325, 0.07561950385570526, -0.32790395617485046, -0.44350263476371765, -0.0975714921951294, 0.10874376446008682, 0.2640664279460907, 0.03536849096417427, -0.604195237159729, 0.46767038106918335, -0.0757814273238182, 0.10264033079147339, 0.8382757902145386, -0.4940250813961029, 0.6161656975746155, -0.25085482001304626, 0.8772227168083191, 0.0860288217663765, 0.35324206948280334, -0.31695035099983215, -0.6372646689414978, -0.7243529558181763, -0.6064611673355103, 0.36657625436782837, 0.4018184542655945, -0.9723941087722778, 0.3958551287651062, -0.7454311847686768, -0.2800542414188385, -0.8218362927436829, 0.06491139531135559, 0.7414270639419556, 0.5414532423019409, 0.17066924273967743, -0.49165835976600647, -0.7174890637397766, -0.73487389087677, 0.23533819615840912, -0.14280125498771667, 0.41679877042770386, 0.3511791527271271, 0.2541062831878662, -0.40275460481643677, 0.9479790329933167, -0.3160035312175751, -0.34089377522468567, -0.08793552219867706, -0.034663233906030655, -0.2336246818304062, 0.4207025468349457, 0.6414705514907837, -0.829842746257782, -0.41811272501945496, 0.3664225935935974, -0.6791205406188965, -0.0593678243458271, 0.008302576839923859, -0.4276943504810333, 0.4303107261657715, 0.6885071396827698, -0.3242623805999756, 0.37331119179725647, 1.0339475870132446, -0.4457184374332428, 0.2910887598991394, 0.06872671842575073, 0.2755858302116394, -1.215587854385376, -0.039157528430223465, -0.12659363448619843, -0.6594206690788269, -0.3942674398422241, -0.08303221315145493, -0.09654586017131805, -0.19164031744003296, -0.46112510561943054, 0.639746904373169, -0.7053086757659912, -0.20816220343112946, 0.004683869890868664, 0.3225066661834717, -0.1309673935174942, 0.5714065432548523, 0.32350224256515503, 0.5382166504859924, 0.9370498657226562, 0.020135261118412018, 0.3872775733470917, 0.44054052233695984, -0.2931557595729828, 0.8522617220878601, -0.33344849944114685, -0.2215379774570465, -0.26474452018737793, 0.16968101263046265, -0.9726755619049072, -0.060737982392311096, 0.3860361874103546, -0.44124817848205566, 0.5645877718925476, -0.44566142559051514, -0.13098788261413574, 0.14647004008293152, -0.3614109754562378, 0.6710672378540039, 0.3968369960784912, -0.6094216108322144, 1.0486940145492554, 0.4837760329246521, -0.2008974254131317, -0.5031992793083191, -0.6415055394172668, 0.19861026108264923, -0.01049646083265543, -0.7333006858825684, 0.1446944624185562, -0.1202445849776268, -0.044818464666604996, 0.2556111812591553, 0.06099671497941017, -0.08660636842250824, -0.4831494092941284, 0.37073713541030884, 0.5096819400787354, -0.5183050632476807, 0.11188796162605286, 0.160976380109787, -0.11632273346185684, 0.08677051961421967, -0.336608350276947, 0.45333001017570496, 0.04557862505316734, -0.6827042698860168, -0.07087792456150055, 0.6852065324783325, 0.6715624332427979, -0.30341634154319763, 0.6528169512748718, 0.5849816203117371, -0.13695695996284485, 0.145105242729187, -0.4027731120586395, 0.45032402873039246, -0.3977383077144623, 0.32818612456321716, -0.44194296002388, -1.0430880784988403, 0.12372982501983643, 0.1485711932182312, -0.047230564057826996, -0.09593704342842102, 0.7911539077758789, 0.14111211895942688, 1.4051719903945923, 1.0233383178710938, 0.05385080352425575, 0.8330327868461609, -0.3625496029853821, 0.3222768306732178, -0.8624928593635559, -0.4706326127052307, -0.1204027533531189, -0.3847852051258087, -0.3838588297367096, -0.9163147807121277, 0.45793408155441284, -0.3344687819480896, -0.09582634270191193, 0.30254432559013367, -0.24616014957427979, 0.5418872237205505, 0.5010444521903992, 0.10004016757011414, 0.4487447738647461, -0.15886661410331726, -0.022082263603806496, -0.1362760066986084, -0.8867595791816711, -0.26588040590286255, 0.9721672534942627, 0.25592562556266785, 1.26084566116333, 0.40467846393585205, 0.6201180219650269, -0.040893394500017166, 0.24124982953071594, -0.9470176100730896, 0.5550776720046997, 0.08068552613258362, -0.5378908514976501, -0.31454676389694214, -0.543302059173584, -0.8934025764465332, 0.1521063894033432, -0.4356645941734314, -0.5953271389007568, 0.41491639614105225, 0.15371444821357727, -0.15893031656742096, 0.5059172511100769, -0.5382506847381592, 1.0710170269012451, -0.6541404128074646, -0.28457704186439514, 0.07216670364141464, -0.8590604662895203, 0.6028743982315063, -0.17900115251541138, 0.0659632682800293, 0.16114261746406555, -0.4766441285610199, 0.3484984338283539, -0.2720642685890198, 0.9003899693489075, 0.19388188421726227, -0.5238562822341919, 0.04773271828889847, 0.04446163773536682, 0.13724863529205322, -0.08034340292215347, 0.3630986511707306, 0.061756432056427, -0.21415674686431885, -0.3327001929283142, -0.6895092129707336, 0.8253120183944702, -0.8330599069595337, -0.4528391361236572, -0.1538798063993454, -0.7642768621444702, -0.061353374272584915, 0.045887384563684464, 0.15075187385082245, 0.6326150894165039, -0.4330082833766937, 0.2589031159877777, 0.889838457107544, -0.0752289742231369, 0.03911099582910538, 0.44308143854141235, -0.5834307074546814, -0.7302093505859375, 1.1240253448486328, 0.09401650726795197, 0.5147209763526917, 0.7441146969795227, 0.055619921535253525, -0.16974663734436035, -0.296709269285202, -0.6055011749267578, 0.2875048518180847, -0.7300087809562683, -0.29628902673721313, -0.6936502456665039, 0.05917394906282425, -0.41679272055625916, -0.41061410307884216, -0.46402233839035034, -0.468563437461853, -0.14577031135559082, 0.09596121311187744, 0.1722540706396103, 0.6504927277565002, -0.07897953689098358, 0.30923599004745483, -0.932610034942627, 0.4388892650604248, 0.45459815859794617, 0.31187936663627625, -0.3336293697357178, -0.6032357215881348, -0.32927465438842773, 0.04221644997596741, -0.18992877006530762, -0.8194907903671265, 0.2740493416786194, 0.06960929930210114, 0.5754272937774658, 0.6241408586502075, -0.37615567445755005, 0.8092999458312988, -0.5144530534744263, 0.5855349898338318, 0.5518597364425659, -1.2270798683166504, 0.4156931936740875, -0.5146457552909851, 0.15076413750648499, 0.2790272533893585, 0.6983743906021118, -0.27445414662361145, -0.1368769258260727, -0.46904289722442627, -0.6077175140380859, 0.44797050952911377, -0.028980616480112076, -0.06437595188617706, -0.11015626788139343, -0.0017294681165367365, 0.2423788160085678, 0.1567893773317337, -0.8283727765083313, -0.07775942981243134, -0.11755112558603287, -0.3449711799621582, 0.08303379267454147, -0.08175370842218399, -0.34194135665893555, -0.48316141963005066, 0.6858499646186829, -0.3257230818271637, 0.22405485808849335, -0.026204055175185204, -0.31655508279800415, -0.3316439986228943, 0.14897334575653076, 0.6469612717628479, 0.5569934844970703, 0.20333009958267212, 0.13219259679317474, 0.03669818118214607, -0.1759088784456253, 0.30433332920074463, -0.12476395815610886, 0.003912598825991154, 0.03920656442642212, 0.1718299686908722, 0.9922143220901489, 0.4713820815086365, -0.8440749645233154, 0.818213164806366, -0.19035209715366364, -0.08198204636573792, -0.10248031467199326, -0.05165261775255203, -0.039977069944143295, 0.6476610898971558, -0.2984607517719269, -0.10571958124637604, -0.02694115601480007, -0.9744369387626648, -0.13748662173748016, 0.6120935678482056, -0.627306342124939, -0.34690922498703003, 0.8380946516990662, 0.24760702252388, -0.3054969012737274, 0.3033413887023926, 0.054192833602428436, -0.337212473154068, 0.056859031319618225, 0.3795807361602783, 0.9283167719841003, -0.22209616005420685, 0.056162185966968536, -0.1400403380393982, 0.2627584636211395, 0.0036870723124593496, 0.6913978457450867, -0.25455015897750854, -0.6005159616470337, -0.5852328538894653, -0.3545043170452118, -0.5891905426979065, -0.34164372086524963, -0.6644553542137146, 0.7083995938301086, -0.14390237629413605, -0.18251550197601318, -0.30114689469337463, -0.5017372369766235, -0.5915044546127319, 0.11315248161554337, 0.4416060745716095, 0.8248577117919922, -1.1298068761825562, 1.005804419517517, 0.7691423296928406, -0.6206565499305725, -0.631275475025177, -0.3689877688884735, 0.16830062866210938, -0.9734314680099487, 0.6118711829185486, -0.13974277675151825, -0.34480178356170654, -0.0526776984333992, -0.6528189182281494, -0.9637922644615173, 1.1653691530227661, 0.7723131775856018, -0.6060190200805664, -0.2596147358417511, 0.11121215671300888, 0.24398548901081085, -0.6640204787254333, -0.014437714591622353, 0.5739648938179016, 0.44098961353302, 0.10776834189891815, -0.8785014152526855, -0.027545049786567688, -0.2909505367279053, 0.18249332904815674, 0.6177751421928406, -0.4860595166683197, 0.6842009425163269, -0.1724434494972229, -0.010069438256323338, 0.20108258724212646, 0.7098925113677979, -0.04499179497361183, -0.09258334338665009, 0.4325997829437256, 0.9375379085540771, 0.4094898998737335, -0.09216032177209854, 0.878396213054657, -0.15605072677135468, -0.07283715903759003, 1.326797366142273, -0.1748012751340866, 0.8032196760177612, 0.5938687920570374, 0.2859954237937927, 0.43244436383247375, 0.09383206069469452, 0.23622699081897736, 0.3131210207939148, 0.07762560993432999, -0.23543693125247955, -0.4233059287071228, -0.25319457054138184, -0.3217216730117798, 0.9306129217147827, 0.20666766166687012, -0.46064239740371704, -0.13589929044246674, 0.2870219349861145, 0.04365774244070053, -0.11324290186166763, -0.1912904530763626, 0.71644526720047, -0.13238273561000824, -0.4207458198070526, 0.7049335837364197, -0.38154906034469604, 0.5396376848220825, -0.7499334812164307, -0.18796345591545105, 0.14538682997226715, -0.02140497975051403, -0.18194636702537537, -0.9013647437095642, 0.13956616818904877, -0.19922427833080292, -0.20156817138195038, -0.33913901448249817, 0.36582890152931213, -0.9965434074401855, -0.2939116358757019, 0.33307307958602905, 0.655569314956665, 0.14647342264652252, 0.18520353734493256, -0.4657748341560364, 0.6269171833992004, -0.08555268496274948, -0.10245048999786377, 0.29430657625198364, 0.7624204158782959, -0.2963045537471771, 0.5382986664772034, 0.4281119704246521, 0.13106684386730194, 0.39195898175239563, 0.21085165441036224, 1.153551459312439, -0.6866077184677124, -0.2686897814273834, -0.6371605396270752, 0.6551926136016846, 0.13266855478286743, -0.32369565963745117, 0.6621728539466858, 0.6045907139778137, 0.9662157297134399, 0.09852446615695953, 0.6931838989257812, -0.04441682621836662, -0.13485479354858398, -0.6965689659118652, 0.2797611653804779, -0.7682939171791077, 0.04027789831161499, -0.29826903343200684, -1.0457465648651123, -0.2832023501396179, 0.4419368803501129, -0.056739021092653275, -0.043469835072755814, 0.6276766657829285, 1.0106170177459717, -0.30363795161247253, -0.18723942339420319, 0.7665042877197266, 0.23267485201358795, 0.37258803844451904, 0.47926032543182373, 0.8466507196426392, -0.3695855438709259, 0.9108730554580688, 0.08426473289728165, -0.49555057287216187, -0.21945926547050476, -0.9727863073348999, -0.934581995010376, -0.6299743056297302, -0.3776097595691681, -0.04018300026655197, 0.03797796368598938, 1.0542113780975342, 0.7385358810424805, -0.1340157836675644, -0.38289934396743774, 0.24307863414287567, -0.0238123070448637, 0.06541165709495544, -0.1473725140094757, -0.026921842247247696, 0.01352798379957676, -0.7286840677261353, 0.554328441619873, 0.8085107803344727, 0.16014470160007477, -0.7523282766342163, -0.1645374298095703, -0.2830630838871002, 0.26473110914230347, 0.743337869644165, 0.40083053708076477, -0.7032405138015747, -0.28622034192085266, 0.10752271860837936, -0.12187856435775757, 0.43369680643081665, 0.9819062352180481, -0.7292998433113098, 0.7343336939811707, 0.8149073719978333, 0.7467851042747498, 0.34228891134262085, -0.20115628838539124, 0.8310038447380066, -0.6230900883674622, -0.06417273730039597, -0.020843252539634705, 0.7381481528282166, 0.3945014476776123, -0.048185523599386215, 0.38885393738746643, -0.09187840670347214, -0.5078904032707214, -0.7399581074714661, 0.3242926299571991, -1.4171775579452515, 0.013224146328866482, 1.0095739364624023, 0.1513110101222992, -0.6205848455429077, -0.07630270719528198, -0.656669020652771, 0.2503089904785156, -0.25500407814979553, 0.43417268991470337, 0.2051309496164322, 0.008665256202220917, -0.4335167407989502, -0.4059523642063141, -0.04601177200675011, 0.31133830547332764, -0.9293369054794312, 0.021210720762610435, 0.6478264927864075, 0.1030300036072731, 0.14642921090126038, 0.5926893949508667, -0.38662758469581604, 0.46000558137893677, -0.031059004366397858, 0.22557710111141205, -0.045875269919633865, -0.5428690314292908, -0.6044411063194275, -0.2728407084941864, -0.04929511621594429, -0.21713480353355408 ]
http://arxiv.org/abs/2405.19334v2
http://arxiv.org/pdf/2405.19334v2
LLMs Meet Multimodal Generation and Editing: A Survey
2024-05-29T17:59:20
2024-06-09T11:34:12
Yingqing He, Zhaoyang Liu, Jingye Chen, Zeyue Tian, Hongyu Liu, Xiaowei Chi, Runtao Liu, Ruibin Yuan, Yazhou Xing, Wenhai Wang, Jifeng Dai, Yong Zhang, Wei Xue, Qifeng Liu, Yike Guo, Qifeng Chen
cs.AI
cs.AI, cs.CL, cs.CV, cs.MM, cs.SD
With the recent advancement in large language models (LLMs), there is a growing interest in combining LLMs with multimodal learning. Previous surveys of multimodal large language models (MLLMs) mainly focus on multimodal understanding. This survey elaborates on multimodal generation and editing across various domains, comprising image, video, 3D, and audio. Specifically, we summarize the notable advancements with milestone works in these fields and categorize these studies into LLM-based and CLIP/T5-based methods. Then, we summarize the various roles of LLMs in multimodal generation and exhaustively investigate the critical technical components behind these methods and the multimodal datasets utilized in these studies. Additionally, we dig into tool-augmented multimodal agents that can leverage existing generative models for human-computer interaction. Lastly, we discuss the advancements in the generative AI safety field, investigate emerging applications, and discuss future prospects. Our work provides a systematic and insightful overview of multimodal generation and processing, which is expected to advance the development of Artificial Intelligence for Generative Content (AIGC) and world models. A curated list of all related papers can be found at https://github.com/YingqingHe/Awesome-LLMs-meet-Multimodal-Generation
[ -0.4786319434642792, -0.9186519384384155, 0.6806201934814453, 0.1330449879169464, 0.2862077057361603, 0.3573906421661377, -0.2521519660949707, -0.5072565674781799, 0.08314631134271622, 0.2710080146789551, -0.5128875374794006, -0.5372036695480347, -0.5803226232528687, 0.18796861171722412, -0.21230141818523407, 0.5814357995986938, -0.06918401271104813, 0.18146786093711853, -0.6782614588737488, -0.08664733171463013, -0.46117427945137024, -0.5992433428764343, -0.5339705348014832, -0.11226588487625122, 0.6440942883491516, 0.19695663452148438, 0.5312907695770264, 0.4595417380332947, 0.32847094535827637, 0.4483523964881897, -0.1692776381969452, 0.667691707611084, -0.12027832120656967, 0.4581971764564514, 0.025261640548706055, -0.3078647255897522, -0.8618441820144653, -0.023583117872476578, 0.7425732016563416, 0.4797596335411072, 0.052690837532281876, -0.11757533252239227, -0.10216395556926727, 0.2512328624725342, -0.5823827385902405, 0.01977578178048134, -0.572405219078064, 0.12429527193307877, -0.17712901532649994, -0.294080913066864, -0.38805511593818665, -0.15772083401679993, -0.28164932131767273, -0.47885000705718994, 0.3412455916404724, -0.053376954048871994, 0.2938554286956787, 0.28973838686943054, -0.7879740595817566, -0.3102990984916687, -0.6602758765220642, 0.9029847383499146, -0.3538558781147003, 0.6261504292488098, 0.2653881907463074, 0.1544257402420044, -0.2159186750650406, -0.8489307165145874, -0.7190589904785156, -0.2174437791109085, 0.41257378458976746, 0.15112479031085968, -0.054338615387678146, 0.37381473183631897, 0.25154292583465576, 0.4093705415725708, -0.4034736156463623, 0.33901792764663696, -0.21804820001125336, -0.3648427724838257, 0.7098895311355591, 0.41702425479888916, 0.5480735301971436, -0.16017907857894897, -0.39967527985572815, -0.1630411595106125, -0.8651596307754517, -0.21345846354961395, 0.29219359159469604, -0.13301067054271698, -0.16843482851982117, 0.7766091227531433, -0.01925019547343254, 0.768215537071228, -0.26418688893318176, -0.5166435241699219, 0.17366652190685272, -0.7996766567230225, 0.005593845155090094, -0.30633217096328735, 0.84347003698349, 0.7540820837020874, 0.056406065821647644, 0.00704613933339715, -0.2035870999097824, -0.08811219036579132, 0.09336428344249725, -0.5135924220085144, -0.01790398359298706, 0.049290381371974945, -0.4813181757926941, -0.2805844843387604, -0.11560118943452835, -0.8076400756835938, -0.6388691663742065, -0.4333484470844269, 0.11806395649909973, -0.2822229564189911, -0.2134663611650467, -0.08550545573234558, -0.17134979367256165, 0.1402975618839264, 0.6885209083557129, -0.9764172434806824, -0.23113372921943665, 0.38650065660476685, 0.7456309199333191, -0.06436783820390701, -0.6263754963874817, -0.34430763125419617, 0.4030326306819916, -0.2591848373413086, 0.8017042875289917, -0.4502946138381958, -0.5594899654388428, 0.2310653030872345, -0.2084628790616989, 0.12552042305469513, -0.4119987189769745, 0.26427751779556274, -0.5085870623588562, 0.2083670049905777, -0.02973858267068863, -0.4399249851703644, -0.15392597019672394, 0.6142962574958801, -0.7007712125778198, 0.6955330967903137, -0.28783512115478516, -0.4827955663204193, 0.30841436982154846, -0.6101704835891724, -0.3570106625556946, -0.14692863821983337, -0.09699936956167221, -0.3211914002895355, 0.10478132218122482, 0.3702220022678375, 0.6517661213874817, -0.2746773064136505, 0.1797218918800354, -0.4121992588043213, 0.1889152079820633, 0.6332988142967224, -0.662057101726532, 0.38470813632011414, 0.2505068778991699, 0.19371286034584045, 0.5182022452354431, -0.5777742862701416, 0.015294061973690987, 0.044741515070199966, -0.550500750541687, 0.17345963418483734, 0.15062424540519714, 0.45445266366004944, 0.4322649836540222, 0.36705639958381653, -0.5535404682159424, 0.26389822363853455, 0.342594712972641, 0.6344132423400879, 0.8136624097824097, 0.12163921445608139, 0.2856775224208832, -0.2829732298851013, 0.6102028489112854, -0.008538213558495045, 0.3732835650444031, -0.560828685760498, -0.329828679561615, -0.549521803855896, -0.4070276618003845, 0.2589336633682251, 0.3220162093639374, -1.1380447149276733, -0.05670838803052902, -0.09912221878767014, -0.33536791801452637, -0.4100595712661743, 0.42839697003364563, 0.2617134749889374, 0.013266411609947681, 0.2236657589673996, -0.1887333244085312, -0.6533677577972412, -0.6564888954162598, -0.015371840447187424, -0.08097390085458755, 0.10872982442378998, 0.2483319342136383, 0.15373292565345764, -0.5206507444381714, 0.8819931149482727, -0.3522375226020813, -0.20794281363487244, -0.5732677578926086, 0.032694801688194275, -0.45016875863075256, 0.436277836561203, 0.6713719964027405, -0.8357173800468445, -0.3928288519382477, -0.17121534049510956, -0.9166377782821655, 0.07124720513820648, -0.05786243826150894, 0.22912250459194183, 0.2254491001367569, 0.8772361278533936, -0.8756353855133057, -0.02015506662428379, 0.6702144145965576, -0.08996181190013885, 0.529065728187561, -0.34656980633735657, 0.2509375214576721, -1.2223777770996094, -0.28989166021347046, -0.07745235413312912, -0.4029829204082489, -0.734613835811615, 0.008963181637227535, -0.013044602237641811, -0.07257188111543655, -0.6532279253005981, 0.4058711528778076, -0.712917685508728, -0.19461147487163544, -0.34394508600234985, 0.23135636746883392, 0.025251097977161407, 0.27949443459510803, -0.03213872015476227, 0.8338146209716797, 0.5295050740242004, -0.4083012640476227, 0.6777641773223877, 0.3810197710990906, -0.2967754304409027, 0.44450587034225464, -0.37823793292045593, 0.23136946558952332, -0.16938571631908417, 0.2789245843887329, -0.750358521938324, -0.6048515439033508, 0.0988202691078186, -0.34670037031173706, 0.2705688178539276, 0.09969234466552734, -0.8011685609817505, -0.02532041259109974, -0.5931457281112671, 0.5429534912109375, 0.1458907127380371, -0.4816620647907257, 0.5880637168884277, 0.6305992007255554, -0.4583542048931122, -0.4410187602043152, -0.4813541769981384, 0.4260341227054596, -0.19176219403743744, -0.6844497323036194, 0.3281788229942322, -0.39811304211616516, -0.3539058268070221, -0.18936598300933838, 0.3193436861038208, 0.05267380177974701, -0.0214441679418087, 0.12548133730888367, 0.37785160541534424, -0.11588752269744873, 0.0468628816306591, 0.09824055433273315, 0.08561255782842636, 0.014411174692213535, 0.23260383307933807, 0.4231952428817749, -0.01000831089913845, -0.4387965798377991, -0.3409166634082794, 0.453593373298645, 0.744231641292572, -0.2796766459941864, 0.485258549451828, 0.692510187625885, -0.11635878682136536, 0.03898073360323906, -0.6258752346038818, 0.09688535332679749, -0.44708821177482605, 0.6517282724380493, -0.34021997451782227, -1.120432734489441, 0.11514148861169815, -0.19691017270088196, 0.1725671887397766, 0.254721462726593, 0.8934831023216248, -0.2781442105770111, 1.1672735214233398, 0.8374821543693542, 0.1511387825012207, 0.8051042556762695, -0.06929316371679306, 0.02050386555492878, -0.8259071707725525, -0.34186089038848877, -0.1585829257965088, -0.1942548006772995, -0.669409990310669, -0.5624115467071533, 0.7481920719146729, -0.04396180436015129, 0.30397555232048035, -0.09629182517528534, -0.03898431733250618, 0.42373350262641907, 0.3952014744281769, -0.028177212923765182, 0.475376695394516, -0.0740676075220108, 0.07906051725149155, 0.08197397738695145, -0.7347944378852844, -0.403558611869812, 1.0957856178283691, 0.31328001618385315, 0.9274700880050659, 0.32754752039909363, 0.32840991020202637, 0.4472249746322632, 0.30581238865852356, -0.625862181186676, 0.7181255221366882, -0.015777630731463432, -0.5292136669158936, -0.17641860246658325, -0.17183440923690796, -0.7127257585525513, 0.37572625279426575, -0.3304852545261383, -0.22698363661766052, -0.10098304599523544, 0.3486897051334381, -0.14323176443576813, 0.41490882635116577, -0.6042245030403137, 0.7491974830627441, -0.4612862169742584, -0.34394392371177673, -0.4297225773334503, -0.7193186283111572, 0.5087857842445374, 0.19145409762859344, 0.23613160848617554, -0.0885690376162529, -0.25210750102996826, 0.3986123502254486, 0.009365582838654518, 0.805736780166626, -0.1076599508523941, -0.3796471357345581, 0.32793161273002625, -0.054443567991256714, 0.10008438676595688, 0.08072124421596527, 0.21627745032310486, 0.1911148875951767, -0.042342886328697205, -0.15261583030223846, -0.4338446855545044, 0.6132254600524902, -0.724568247795105, -0.4875948131084442, -0.3157495856285095, -0.9455085396766663, -0.32147666811943054, 0.018768802285194397, 0.06459014862775803, 0.5647502541542053, -0.3029117286205292, 0.2335924655199051, 0.6482544541358948, -0.41742581129074097, 0.7533910870552063, 0.10749118030071259, -0.41506341099739075, -0.6148046255111694, 1.072917103767395, -0.17173536121845245, 0.37743961811065674, 0.46288564801216125, -0.2204608917236328, -0.37478378415107727, -0.6756900548934937, -0.5836536288261414, 0.15151561796665192, -0.850368320941925, -0.14005398750305176, -0.5435185432434082, -0.22415895760059357, -0.4891030788421631, -0.11404553800821304, -0.1355224996805191, -0.34479233622550964, -0.29276561737060547, -0.12049076706171036, 0.23157618939876556, 1.0334497690200806, -0.24728070199489594, 0.12478729337453842, -0.970294177532196, 0.43241697549819946, 0.47748100757598877, 0.10028237849473953, -0.001864283811300993, 0.06397315114736557, -0.259372740983963, -0.11825733631849289, -0.6973849534988403, -0.5260016322135925, 0.19096821546554565, 0.34850555658340454, 0.5075445175170898, 0.35732150077819824, -0.41005563735961914, 0.5758880376815796, -0.4541122317314148, 1.1358096599578857, 0.4262710511684418, -0.7312778830528259, 0.2305118888616562, -0.34382525086402893, 0.2510305941104889, 0.03529966250061989, 0.14825674891471863, -0.8852572441101074, -0.2593308985233307, -0.2590496838092804, -0.6997607350349426, 0.5556972622871399, -0.0582442432641983, 0.25185924768447876, 0.07316283881664276, -0.08814998716115952, 0.17602862417697906, 0.3375163674354553, -0.7300069332122803, -0.09737677127122879, -0.2706185579299927, -0.27865856885910034, -0.1641351729631424, -0.5291188955307007, -0.14027681946754456, -0.018748924136161804, 0.3707634508609772, -0.22293320298194885, 0.27259933948516846, -0.045439835637807846, -0.5069472193717957, 0.12433239817619324, 0.49230214953422546, 1.079383373260498, 0.693063497543335, 0.13944020867347717, 0.2816234827041626, 0.11994112282991409, -0.4359293282032013, 0.16479624807834625, -0.1284797340631485, -0.02903914451599121, -0.0834631696343422, 0.5847581028938293, 0.9016817808151245, 0.0924520343542099, -1.0457513332366943, 0.39582645893096924, -0.19136464595794678, -0.28273430466651917, -0.3134104311466217, 0.08542909473180771, -0.12674367427825928, 0.44620776176452637, 0.15950466692447662, 0.08694693446159363, -0.16753847897052765, -0.49207353591918945, -0.08390704542398453, 0.6641939282417297, -0.02593570202589035, -0.5701977610588074, 0.7986574769020081, 0.4549423158168793, -0.17219530045986176, 0.49508070945739746, 0.023397592827677727, -0.24179066717624664, 0.3420184552669525, 0.3623310923576355, 0.8393256068229675, -0.07832565158605576, 0.018310418352484703, -0.04987252503633499, 0.18993891775608063, 0.368895024061203, 0.23314523696899414, -0.30341753363609314, -0.7898234128952026, -0.5479346513748169, -0.48896288871765137, -0.5722370147705078, 0.20902372896671295, -0.2036094069480896, 0.04981953650712967, -0.3230675756931305, -0.2626456916332245, -0.04259440302848816, -0.4256943464279175, -0.35942256450653076, 0.00009162131755147129, 0.3027644753456116, 0.5973161458969116, -0.48801761865615845, 0.6225301623344421, 0.96164870262146, -0.2771158218383789, -0.1280040144920349, -0.021611984819173813, 0.12916603684425354, -0.5097811222076416, 0.5277692675590515, -0.0945991575717926, -0.1303689181804657, -0.04118733108043671, -0.5358321070671082, -0.6647852063179016, 1.0704243183135986, 0.33444374799728394, -0.27476373314857483, -0.14752188324928284, 0.3568025231361389, 0.3087388277053833, -0.1414755880832672, 0.20897044241428375, 0.281719833612442, 0.3769300878047943, 0.04947330802679062, -0.849026620388031, -0.42459601163864136, -0.26099637150764465, 0.29688698053359985, -0.033912770450115204, -0.8430762887001038, 0.7822816371917725, -0.22740484774112701, 0.09987124055624008, 0.2770095765590668, 0.6800742149353027, 0.2537231147289276, 0.30590397119522095, 0.39406517148017883, 0.3912191092967987, 0.21489553153514862, -0.03434023633599281, 0.9227835536003113, -0.25242021679878235, 0.15997973084449768, 0.7392854690551758, -0.28978246450424194, 0.4881558418273926, 0.6061114072799683, -0.161704421043396, 0.11532318592071533, 0.6307392120361328, 0.05991516262292862, 0.36998823285102844, -0.2448965162038803, -0.6213280558586121, -0.3987693190574646, -0.24787664413452148, -0.2992718815803528, 0.5723000168800354, 0.3781610131263733, -0.15846772491931915, -0.29287561774253845, 0.4243631362915039, 0.0037187549751251936, -0.09950696676969528, -0.32231587171554565, 0.8791722059249878, 0.06266085803508759, -0.5852029919624329, 0.09501760452985764, 0.28722482919692993, 0.7703101634979248, -0.6418067216873169, -0.08598390966653824, -0.1368202418088913, 0.06912021338939667, -0.10380630940198898, -0.9761279225349426, 0.11614365875720978, 0.19179357588291168, -0.47272512316703796, -0.7103242874145508, 0.7051462531089783, -0.6347795128822327, -0.26691943407058716, -0.003992714453488588, 0.6882174611091614, -0.09654033929109573, 0.18950964510440826, -0.4660223424434662, 0.5184157490730286, -0.16065245866775513, -0.08036603033542633, 0.5589185357093811, 0.1986015886068344, -0.1138116866350174, 0.7519707679748535, 0.5742522478103638, -0.06666740030050278, 0.4452160894870758, 0.165165975689888, 0.6975233554840088, -0.6675715446472168, -0.21468329429626465, -0.7485105395317078, 0.551895797252655, 0.10686613619327545, -0.15766683220863342, 0.838567316532135, 0.44971925020217896, 0.9072021245956421, -0.37140920758247375, 0.9411876201629639, -0.3194485902786255, 0.19177548587322235, -0.9082717895507812, 0.6342758536338806, -0.7157508134841919, -0.09612434357404709, -0.3030562698841095, -0.8543475866317749, -0.2575083076953888, 0.12103365361690521, -0.007942105643451214, 0.1875876486301422, 0.4295998215675354, 0.8374393582344055, 0.06681591272354126, -0.08285216987133026, 0.5133165121078491, 0.18970178067684174, 0.5118823051452637, 0.27096229791641235, 1.2980270385742188, -0.13911399245262146, 0.4246577024459839, -0.13298118114471436, 0.03231072053313255, -0.14992888271808624, -0.7897789478302002, -0.7770687937736511, -0.7959880828857422, -0.20848128199577332, 0.11687750369310379, -0.16302432119846344, 0.9537787437438965, 0.5376825928688049, -0.42805883288383484, -0.28646931052207947, 0.18913321197032928, 0.21060214936733246, -0.04733073711395264, -0.1421922743320465, 0.024401795119047165, -0.2674548923969269, -1.0396335124969482, 0.7450116872787476, 0.3693649172782898, 0.15249642729759216, -0.46631553769111633, -0.15423882007598877, -0.28331467509269714, -0.16131386160850525, 1.2340322732925415, 0.2551010251045227, -0.8233942985534668, -0.19244498014450073, -0.05481509119272232, -0.047176457941532135, 0.06886903196573257, 0.9655017852783203, -0.4029069244861603, 0.6043691635131836, 0.5370188355445862, 0.5915049910545349, 0.351052463054657, -0.0556492805480957, 0.47687801718711853, -0.9116284251213074, 0.1278463453054428, -0.004232746548950672, 0.44327953457832336, 0.6150574088096619, -0.08178818225860596, 0.1872023195028305, 0.3194383978843689, -0.539220929145813, -0.8484725952148438, 0.4417780935764313, -1.0088046789169312, -0.11424660682678223, 0.9752647876739502, 0.1314651221036911, 0.11407134681940079, 0.023730643093585968, -0.36653074622154236, 0.22879600524902344, -0.05990421772003174, 0.6094485521316528, 0.6504979729652405, -0.3925243020057678, -0.5486428737640381, -0.5504372119903564, 0.2713524401187897, 0.05040866881608963, -1.0697320699691772, -0.0767374038696289, 0.9702802896499634, 0.07640437036752701, 0.082620769739151, 0.45432883501052856, -0.03935558348894119, 0.39694780111312866, -0.19912514090538025, 0.36919209361076355, -0.2851855456829071, -0.541104793548584, -0.3691352903842926, 0.3574943542480469, 0.27130159735679626, -0.21615754067897797 ]
http://arxiv.org/abs/2405.19327v3
http://arxiv.org/pdf/2405.19327v3
MAP-Neo: Highly Capable and Transparent Bilingual Large Language Model Series
2024-05-29T17:57:16
2024-06-02T06:09:49
Ge Zhang, Scott Qu, Jiaheng Liu, Chenchen Zhang, Chenghua Lin, Chou Leuang Yu, Danny Pan, Esther Cheng, Jie Liu, Qunshu Lin, Raven Yuan, Tuney Zheng, Wei Pang, Xinrun Du, Yiming Liang, Yinghao Ma, Yizhi Li, Ziyang Ma, Bill Lin, Emmanouil Benetos, Huan Yang, Junting Zhou, Kaijing Ma, Minghao Liu, Morry Niu, Noah Wang, Quehry Que, Ruibo Liu, Sine Liu, Shawn Guo, Soren Gao, Wangchunshu Zhou, Xinyue Zhang, Yizhi Zhou, Yubo Wang, Yuelin Bai, Yuhan Zhang, Yuxiang Zhang, Zenith Wang, Zhenzhu Yang, Zijian Zhao, Jiajun Zhang, Wanli Ouyang, Wenhao Huang, Wenhu Chen
cs.CL
cs.CL, cs.AI, cs.LG
Large Language Models (LLMs) have made great strides in recent years to achieve unprecedented performance across different tasks. However, due to commercial interest, the most competitive models like GPT, Gemini, and Claude have been gated behind proprietary interfaces without disclosing the training details. Recently, many institutions have open-sourced several strong LLMs like LLaMA-3, comparable to existing closed-source LLMs. However, only the model's weights are provided with most details (e.g., intermediate checkpoints, pre-training corpus, and training code, etc.) being undisclosed. To improve the transparency of LLMs, the research community has formed to open-source truly open LLMs (e.g., Pythia, Amber, OLMo), where more details (e.g., pre-training corpus and training code) are being provided. These models have greatly advanced the scientific study of these large models including their strengths, weaknesses, biases and risks. However, we observe that the existing truly open LLMs on reasoning, knowledge, and coding tasks are still inferior to existing state-of-the-art LLMs with similar model sizes. To this end, we open-source MAP-Neo, a highly capable and transparent bilingual language model with 7B parameters trained from scratch on 4.5T high-quality tokens. Our MAP-Neo is the first fully open-sourced bilingual LLM with comparable performance compared to existing state-of-the-art LLMs. Moreover, we open-source all details to reproduce our MAP-Neo, where the cleaned pre-training corpus, data cleaning pipeline, checkpoints, and well-optimized training/evaluation framework are provided. Finally, we hope our MAP-Neo will enhance and strengthen the open research community and inspire more innovations and creativities to facilitate the further improvements of LLMs.
[ -0.2599189281463623, -0.5660979747772217, 0.6767401695251465, 0.44674763083457947, -0.17185825109481812, -0.08648526668548584, -0.5374094247817993, -0.49394798278808594, 0.3037068843841553, 0.8356716632843018, -0.2301056832075119, -0.7790871262550354, -0.7022508978843689, 0.21044868230819702, -0.37782207131385803, 0.899125874042511, -0.19822445511817932, 0.2053556740283966, 0.0029565258882939816, -0.1305694580078125, 0.12217756360769272, -0.37167179584503174, -0.45624470710754395, -0.2867791950702667, 0.5825103521347046, 0.35978496074676514, 0.667599618434906, 0.7904046773910522, 0.3891778886318207, 0.296924889087677, -0.11897799372673035, -0.020144596695899963, -0.6789646744728088, 0.042810507118701935, -0.2725314795970917, -0.47060897946357727, -0.9604824185371399, -0.0792846605181694, 0.8309487700462341, 0.5734929442405701, -0.17685213685035706, 0.1253361701965332, 0.01912468671798706, 0.5054140090942383, -0.6051059365272522, 0.3460487127304077, -0.8599848747253418, -0.2715659439563751, -0.40778636932373047, -0.024221820756793022, -0.32553714513778687, -0.4762347638607025, -0.07264846563339233, -0.7805742025375366, 0.013714726082980633, -0.13257043063640594, 0.6372450590133667, -0.041410889476537704, -0.39762386679649353, -0.13079744577407837, -0.8228941559791565, 0.6463737487792969, -0.762941300868988, 0.2726917862892151, 0.3646514117717743, 0.44762924313545227, -0.07941033691167831, -0.6240178942680359, -0.4579201340675354, -0.08426567167043686, 0.42608198523521423, 0.16440555453300476, -0.19521474838256836, -0.03779664263129234, 0.17924374341964722, 0.5101593136787415, -0.4517339766025543, 0.3568655252456665, -0.3444140553474426, -0.27537301182746887, 0.28436508774757385, 0.09310366213321686, 0.13052964210510254, 0.22678349912166595, -0.48509982228279114, 0.05999164655804634, -1.1373038291931152, -0.4187908172607422, 0.6480580568313599, 0.3082912564277649, -0.3659399449825287, 0.6770725250244141, -0.3438878357410431, 0.5710105299949646, -0.5351623892784119, -0.2245195209980011, 0.4543447196483612, -0.4713556468486786, 0.0036407492589205503, -0.09313026815652847, 1.2835248708724976, 0.040015868842601776, 0.5223289132118225, -0.11297311633825302, -0.36812737584114075, -0.15469637513160706, -0.1303635537624359, -0.8962913751602173, 0.15923921763896942, 0.05874501168727875, -0.1784229874610901, -0.05764632672071457, 0.14246539771556854, -0.6217037439346313, -0.2696552276611328, -0.33637890219688416, 0.28726741671562195, -0.28103500604629517, -0.5487980842590332, 0.2009870558977127, 0.19490931928157806, -0.1580091416835785, 0.5347888469696045, -0.7415934205055237, 0.4677579998970032, 0.9604146480560303, 0.8988624811172485, -0.12826547026634216, -0.3968467116355896, -0.45315417647361755, 0.17403370141983032, -0.21791613101959229, 0.3144388496875763, -0.3906605541706085, -0.31781697273254395, 0.0601167194545269, -0.01652832143008709, 0.1079726368188858, -0.656442403793335, 0.46131542325019836, -0.6171355247497559, 0.046893466264009476, -0.17535440623760223, -0.2039213478565216, -0.01652766577899456, 0.45159268379211426, -0.8630546927452087, 0.8882328867912292, 0.18875925242900848, -0.8812610507011414, -0.05232495069503784, -0.6233237385749817, 0.07142457365989685, 0.10442987829446793, -0.15903975069522858, -0.19563449919223785, -0.09786384552717209, 0.2889734208583832, 0.006708168890327215, -0.634779691696167, 0.2791130542755127, -0.41356557607650757, -0.28362876176834106, 0.2875317335128784, -0.28220096230506897, 1.1145824193954468, 0.09125453978776932, -0.414412260055542, 0.4526621997356415, -0.5582277774810791, -0.20651762187480927, 0.16240355372428894, -0.36132028698921204, -0.34527459740638733, -0.3437885344028473, -0.09241703152656555, 0.2023642510175705, 0.5329813361167908, -0.7620829939842224, 0.008278691209852695, -0.48578914999961853, 0.36962631344795227, 0.9612687826156616, -0.5084356665611267, 0.4792921245098114, -0.03233989700675011, 0.8224990963935852, 0.03607665374875069, 0.35830795764923096, -0.3425790071487427, -0.7264348864555359, -0.6561608910560608, -0.7388954162597656, 0.49214062094688416, 0.5134447813034058, -0.533147931098938, 0.3858572542667389, -0.4921029508113861, -0.48331722617149353, -0.6938687562942505, 0.3642450273036957, 0.30272141098976135, 0.5755716562271118, 0.16485096514225006, -0.2346816211938858, -0.5033217668533325, -0.9274272322654724, 0.06152789294719696, -0.07683763653039932, 0.03748517856001854, 0.29916131496429443, 0.678700864315033, -0.41596364974975586, 0.7938183546066284, -0.09495514631271362, -0.1044338196516037, -0.20305418968200684, -0.15187281370162964, 0.4473736882209778, 0.1126355230808258, 0.43604445457458496, -0.295346736907959, -0.4934707581996918, 0.2626332640647888, -0.5291580557823181, -0.20807752013206482, 0.5326331853866577, -0.1802254021167755, 0.24718934297561646, 0.4887303113937378, -0.4235106110572815, 0.09236833453178406, 0.9536396861076355, -0.2843637466430664, 0.4672982394695282, -0.3252986669540405, -0.3431001901626587, -1.171391487121582, 0.3010804057121277, -0.1963130682706833, -0.4192715585231781, -0.23890763521194458, 0.22464905679225922, 0.26925474405288696, 0.006353816948831081, -0.49974119663238525, 0.8127444386482239, -0.373097687959671, -0.28781625628471375, -0.34007275104522705, 0.1945500522851944, -0.201253280043602, 0.15519598126411438, 0.11104612052440643, 0.4943488538265228, 0.8330816626548767, -0.23688532412052155, 0.38069799542427063, -0.03749021142721176, -0.4551059901714325, 0.12044070661067963, -0.649553656578064, 0.05952547863125801, 0.03215434402227402, 0.3370490074157715, -0.5180166959762573, 0.08427660167217255, 0.5019866824150085, -0.18910595774650574, 0.11128372699022293, -0.22760166227817535, -0.8102893233299255, -0.16537952423095703, -0.1906362771987915, 0.5388900637626648, 0.3792015612125397, -0.5568486452102661, 0.3460751175880432, 0.31958287954330444, -0.38493090867996216, -0.7979390025138855, -0.4067637622356415, 0.16029655933380127, -0.018014462664723396, -0.47203654050827026, 0.11428256332874298, -0.061106618493795395, -0.21396182477474213, 0.09231075644493103, 0.06140743941068649, 0.006250033155083656, 0.05892248451709747, 0.28542375564575195, 0.3499777615070343, -0.3999983072280884, -0.21993303298950195, -0.14733493328094482, -0.321358859539032, 0.190482959151268, -0.47037404775619507, 0.6229689717292786, -0.4097433090209961, -0.34019672870635986, -0.26015305519104004, 0.17194539308547974, 0.678774893283844, -0.5314485430717468, 0.7674826383590698, 0.6038964986801147, -0.30820968747138977, -0.26267075538635254, -0.3452112674713135, 0.01555643416941166, -0.4310731291770935, 0.3084663450717926, -0.14582416415214539, -1.3024628162384033, 0.5421265959739685, -0.05663878843188286, -0.0065501537173986435, 0.3422493636608124, 0.7805667519569397, 0.2523443102836609, 0.7053391337394714, 0.6073305010795593, -0.1298130303621292, 0.36947566270828247, -0.15952154994010925, -0.028297295793890953, -0.8171523213386536, -0.45822545886039734, -0.6965941786766052, -0.21227608621120453, -0.6896153688430786, -0.6258097290992737, 0.4688727855682373, 0.002936764620244503, -0.37719860672950745, 0.1696782410144806, -0.15664894878864288, 0.47355154156684875, 0.8117364048957825, -0.07460478693246841, 0.5964968204498291, 0.03505780175328255, -0.298721045255661, 0.10051493346691132, -0.5320557355880737, -0.4736575782299042, 1.5515398979187012, 0.5633987188339233, 0.9410899877548218, 0.10601542145013809, 0.7412827014923096, -0.2466581165790558, 0.4387098252773285, -0.6873216032981873, 0.5862116813659668, 0.15716175734996796, -0.8254980444908142, -0.17086343467235565, -0.7581278085708618, -1.0491551160812378, 0.18075968325138092, -0.23192763328552246, -0.4892483353614807, -0.038097016513347626, -0.03782125934958458, 0.09635959565639496, 0.4091340899467468, -0.3775743544101715, 0.8626558184623718, -0.4853977560997009, -0.34788715839385986, -0.11874861270189285, -0.4747362434864044, 0.5515792965888977, -0.3241906762123108, 0.33571577072143555, -0.1606941819190979, -0.5161900520324707, 0.6004250049591064, -0.5610691905021667, 0.794434666633606, 0.012230640277266502, -0.37463298439979553, 0.16935977339744568, 0.21617627143859863, 0.44127702713012695, 0.2296336442232132, -0.09343863278627396, 0.7231167554855347, -0.3949078917503357, -0.2950586974620819, -0.32977867126464844, 1.0270377397537231, -0.9586547017097473, -0.41854381561279297, -0.49606379866600037, -0.7061718702316284, 0.03444158285856247, 0.5904093384742737, -0.015229322947561741, 0.22639597952365875, -0.2179192453622818, 0.10778787732124329, 0.6285357475280762, -0.35111892223358154, 0.26769959926605225, 0.7638046741485596, -0.6477305889129639, -0.8098866939544678, 0.9847720861434937, -0.2262425273656845, 0.325907826423645, 0.4378633201122284, 0.32228899002075195, -0.32061338424682617, -0.8463610410690308, -0.25100868940353394, 0.7227335572242737, -0.44826555252075195, -0.06170593947172165, -0.36025217175483704, -0.07504153251647949, -0.46561628580093384, 0.1883247196674347, -0.7147571444511414, -0.5772358775138855, -0.1521948277950287, -0.08616961538791656, 0.21750973165035248, 0.8442624807357788, -0.14503972232341766, 0.3109293282032013, -0.5942889451980591, 0.4655171036720276, 0.07728216052055359, 0.5138234496116638, -0.29059016704559326, -0.2601469159126282, -0.24177119135856628, 0.12807674705982208, -0.3329320251941681, -0.6990092396736145, 0.3381000757217407, -0.15249057114124298, 0.4685763418674469, 0.6203377842903137, -0.25052446126937866, 0.23151232302188873, -0.4956032633781433, 0.40811365842819214, 0.306685209274292, -0.847547709941864, 0.38416603207588196, -0.6820234060287476, 0.24769246578216553, 0.33125782012939453, 0.4794323742389679, -0.1977136880159378, -0.4186025559902191, -0.5212055444717407, -0.8467695713043213, 0.9676637053489685, 0.2316845804452896, -0.0962984636425972, 0.042579665780067444, 0.11345604062080383, 0.3590063154697418, 0.3192813992500305, -0.922912061214447, -0.1930941492319107, -0.4367407262325287, -0.21052171289920807, -0.3505740761756897, -0.10207823663949966, -0.2657609283924103, -0.2774144411087036, 0.6352836489677429, -0.05641821026802063, 0.02087453566491604, -0.0833793506026268, -0.021137749776244164, -0.08729124814271927, 0.3115559220314026, 0.533821165561676, 0.8544783592224121, -0.39390236139297485, 0.21597157418727875, -0.16467022895812988, -0.4101230800151825, -0.10183607041835785, 0.18403266370296478, -0.4340047836303711, -0.025468790903687477, 0.34447723627090454, 0.8681986331939697, 0.04998985677957535, -0.8114102482795715, 0.6275365948677063, 0.08553671091794968, -0.22646364569664001, -0.34378713369369507, -0.06653949618339539, 0.4207823872566223, 0.15951447188854218, -0.1552034467458725, -0.0640568882226944, -0.12242470681667328, -0.8274731040000916, -0.3217739462852478, 0.4638363718986511, -0.3549198508262634, -0.4872285723686218, 0.619755744934082, 0.3393946588039398, -0.1520376056432724, 0.781013011932373, 0.06724238395690918, -0.5000186562538147, 0.4193947911262512, 0.6855307221412659, 0.6533023715019226, -0.4072551727294922, 0.23429390788078308, 0.537751317024231, 0.6942881345748901, -0.21919980645179749, 0.4095824360847473, -0.0665268823504448, -0.6685839891433716, -0.4696258008480072, -0.6159026622772217, -0.6103321313858032, 0.2850472331047058, -0.5449726581573486, 0.22694678604602814, -0.49465471506118774, -0.1858474612236023, -0.6573136448860168, -0.17085638642311096, -0.5102733373641968, -0.1037771999835968, 0.3157736659049988, 1.1844640970230103, -0.67884761095047, 0.9799039363861084, 0.5475883483886719, -0.1583351343870163, -0.32238346338272095, -0.39837732911109924, -0.19245916604995728, -0.922850489616394, 0.47832000255584717, 0.05320696532726288, -0.025773435831069946, -0.09744393080472946, -0.37849822640419006, -0.7761794328689575, 0.9894703030586243, 1.0285533666610718, -0.6512529850006104, -0.28252533078193665, 0.5963104367256165, 0.452330082654953, -0.3242974877357483, 0.5441170930862427, 0.14299294352531433, 0.611673891544342, -0.03295925259590149, -1.1319503784179688, 0.08017973601818085, -0.21028035879135132, -0.1585739701986313, 0.2518935799598694, -0.5904732942581177, 0.8403422832489014, -0.19290436804294586, 0.10543344914913177, 0.15350370109081268, 0.45794111490249634, 0.32268983125686646, 0.26291346549987793, 0.36197584867477417, 0.7418811321258545, 0.612878143787384, -0.2217906415462494, 1.0194982290267944, -0.23746071755886078, 0.05668024718761444, 1.2273470163345337, -0.2495385855436325, 0.9051439762115479, 0.3804979622364044, 0.11849479377269745, 0.49723953008651733, 0.23928523063659668, 0.28668099641799927, 0.29061076045036316, 0.1968240886926651, -0.1565791368484497, -0.34769248962402344, -0.10111638158559799, -0.49253711104393005, 0.3087162673473358, 0.41723641753196716, -0.4947890341281891, -0.3637215197086334, -0.4014136791229248, 0.050976384431123734, -0.022704385221004486, -0.29603782296180725, 0.45175763964653015, 0.2857419550418854, -0.5292119383811951, 0.48289036750793457, 0.18748325109481812, 0.5548181533813477, -0.9247917532920837, 0.16763648390769958, -0.2026023268699646, 0.1550842672586441, -0.11982516199350357, -0.664267361164093, -0.004424541722983122, 0.17768873274326324, 0.11649887263774872, -0.42555344104766846, 0.23881268501281738, -0.45181605219841003, -0.38066110014915466, 0.6283113956451416, 0.5791205763816833, 0.17324480414390564, -0.32871875166893005, -0.5988926887512207, 0.3396841585636139, -0.271235853433609, -0.13877175748348236, 0.25461843609809875, 0.5287855863571167, -0.08903881162405014, 0.5983216762542725, 0.7036932110786438, 0.5924176573753357, 0.2651977837085724, 0.12859831750392914, 0.7915849685668945, -0.6669203639030457, -0.3778435289859772, -0.660186231136322, 0.3116625249385834, 0.06165101006627083, -0.3543706238269806, 0.8808282017707825, 0.8601253032684326, 1.0100843906402588, 0.0389118529856205, 0.6873273253440857, 0.41718706488609314, 0.4507628083229065, -0.3428414463996887, 0.6664522290229797, -0.4406386613845825, 0.2857557237148285, -0.15572072565555573, -1.2757186889648438, -0.22993016242980957, 0.17954479157924652, -0.16918092966079712, -0.013486523181200027, 0.6954922080039978, 0.9328625202178955, -0.30367839336395264, -0.08992725610733032, 0.08174791932106018, 0.5901442766189575, 0.29703664779663086, 0.850520133972168, 0.901151716709137, -0.2525411546230316, 0.7438758015632629, -0.25332188606262207, -0.38653677701950073, -0.24846971035003662, -0.8149620890617371, -0.9930614233016968, -0.4425235986709595, -0.26164400577545166, -0.34918153285980225, -0.038282133638858795, 0.5513191223144531, 0.5558013319969177, -0.6094704866409302, -0.5030067563056946, -0.2069782018661499, 0.2629352807998657, 0.06039914861321449, -0.11988288164138794, 0.213614821434021, 0.15709203481674194, -0.948788583278656, 0.6268470883369446, 0.29423120617866516, -0.08400983363389969, -0.3797876834869385, -0.512468159198761, 0.1455596387386322, -0.07157207280397415, 0.40504947304725647, 0.4171276390552521, -0.7237333655357361, 0.3391864001750946, 0.02390017732977867, -0.24140378832817078, 0.06588480621576309, 0.6760284304618835, -0.5858384370803833, 0.62320476770401, 0.6804842948913574, 0.44775131344795227, 0.6422795057296753, -0.3416462540626526, 0.6182742714881897, -0.12764771282672882, 0.13395792245864868, 0.2618381977081299, 0.6238026022911072, 0.37301233410835266, 0.2883106768131256, 0.4140150249004364, 0.2117728590965271, -0.35559508204460144, -0.8143810629844666, 0.2634512782096863, -1.3261845111846924, 0.020353471860289574, 1.322496771812439, -0.15107692778110504, -0.39373865723609924, 0.1734560877084732, -0.14178039133548737, 0.2350836992263794, -0.385323166847229, 0.5416575074195862, 0.4711442291736603, 0.39665499329566956, 0.07677716761827469, -0.4142244756221771, -0.01806592382490635, 0.08836494386196136, -0.8471354246139526, 0.00419209897518158, 0.4869735538959503, 0.4264867305755615, -0.0007229517214000225, 0.7161752581596375, -0.6349035501480103, 0.14921991527080536, -0.13390816748142242, 0.18913757801055908, -0.6076880693435669, -0.6267948150634766, -0.35403043031692505, 0.26521408557891846, 0.3028804659843445, 0.08220033347606659 ]
http://arxiv.org/abs/2405.19325v2
http://arxiv.org/pdf/2405.19325v2
Nearest Neighbor Speculative Decoding for LLM Generation and Attribution
2024-05-29T17:55:03
2024-05-31T01:41:49
Minghan Li, Xilun Chen, Ari Holtzman, Beidi Chen, Jimmy Lin, Wen-tau Yih, Xi Victoria Lin
cs.CL
cs.CL
Large language models (LLMs) often hallucinate and lack the ability to provide attribution for their generations. Semi-parametric LMs, such as kNN-LM, approach these limitations by refining the output of an LM for a given prompt using its nearest neighbor matches in a non-parametric data store. However, these models often exhibit slow inference speeds and produce non-fluent texts. In this paper, we introduce Nearest Neighbor Speculative Decoding (NEST), a novel semi-parametric language modeling approach that is capable of incorporating real-world text spans of arbitrary length into the LM generations and providing attribution to their sources. NEST performs token-level retrieval at each inference step to compute a semi-parametric mixture distribution and identify promising span continuations in a corpus. It then uses an approximate speculative decoding procedure that accepts a prefix of the retrieved span or generates a new token. NEST significantly enhances the generation quality and attribution rate of the base LM across a variety of knowledge-intensive tasks, surpassing the conventional kNN-LM method and performing competitively with in-context retrieval augmentation. In addition, NEST substantially improves the generation speed, achieving a 1.8x speedup in inference time when applied to Llama-2-Chat 70B.
[ 0.0018647480756044388, -0.744807779788971, 0.5367578864097595, 0.1817825436592102, -0.33473822474479675, 0.3438188433647156, -0.3666759133338928, -0.6935205459594727, 0.2727137804031372, 0.41657039523124695, -0.5962581038475037, -0.596383273601532, -0.2956693768501282, 0.2229323387145996, -0.4147960841655731, 0.6266738772392273, 0.25597232580184937, -0.49555540084838867, -0.47798866033554077, 0.5168465375900269, 0.15192607045173645, -0.7215376496315002, -0.6961929202079773, 0.06644819676876068, 0.4353499114513397, 0.5005847215652466, 0.5435788035392761, 0.6854171752929688, 0.0443708635866642, 0.2641408443450928, -0.29366493225097656, 0.2755625545978546, -0.7389864325523376, 0.006776756141334772, 0.23986093699932098, -0.9549678564071655, -0.1541108787059784, -0.3888809382915497, 0.952851414680481, 0.4263502061367035, -0.03257758542895317, 0.13743247091770172, -0.35837212204933167, 0.5832598209381104, -0.6494400501251221, 0.25503870844841003, -0.8769363760948181, 0.12297230213880539, -0.66602623462677, -0.39868152141571045, -0.5215505957603455, -0.593888521194458, -0.050653278827667236, -0.2142096757888794, 0.35987982153892517, 0.44079285860061646, 0.7022494077682495, 0.1291840821504593, -0.22470571100711823, -0.18362413346767426, -0.5271275639533997, 1.0157926082611084, -1.1399753093719482, 0.4083973169326782, 0.762973427772522, 0.19623573124408722, -0.320966511964798, -0.5836914777755737, -0.6772130727767944, -0.27836957573890686, -0.03554748371243477, -0.06841088086366653, -0.3638323247432709, -0.22195452451705933, -0.13356700539588928, 0.3212015628814697, -0.35029807686805725, 0.3836239278316498, -0.3189277648925781, -0.4748307764530182, 0.34850507974624634, 0.454786479473114, -0.059307366609573364, -0.5954551696777344, -0.2920680046081543, 0.024303359910845757, -0.8062633872032166, 0.13971589505672455, 0.7932316064834595, 0.5675950646400452, -0.1697835624217987, 0.4658733010292053, -0.20718002319335938, 0.823088526725769, 0.002141273347660899, -0.2660016119480133, 0.01575412228703499, -0.43954071402549744, 0.20324784517288208, 0.2887134253978729, 0.8903566598892212, 0.40761613845825195, -0.10258039832115173, -0.4823271632194519, -0.06567655503749847, 0.19251970946788788, -0.08944648504257202, -0.6082265377044678, -0.21713756024837494, 0.05022072419524193, -0.6042013168334961, -0.8534833192825317, -0.22567635774612427, -0.8881383538246155, -0.20872372388839722, 0.21966521441936493, -0.2501540184020996, -0.3982082009315491, -0.3660634160041809, 0.12839996814727783, -0.002531137317419052, 0.1591656506061554, -0.2460227757692337, -0.9703936576843262, 0.23071525990962982, 0.5961962342262268, 1.070966362953186, -0.3710063695907593, -0.27203696966171265, -0.4253976047039032, 0.2374400794506073, -0.4791850745677948, 0.9374270439147949, -0.8304059505462646, -0.2936146557331085, 0.08871396631002426, -0.3584328293800354, 0.046988584101200104, -0.6680868268013, 0.4344806969165802, -0.826011598110199, 0.10183358192443848, -0.12954093515872955, -0.553592324256897, 0.24126558005809784, 0.26072344183921814, -0.6771330833435059, 1.1792881488800049, 0.11289830505847931, -0.9825757741928101, 0.28991761803627014, -0.28880923986434937, -0.4460085928440094, -0.08894859999418259, -0.07567835599184036, -0.32716765999794006, 0.16150788962841034, 0.34804627299308777, 0.6169255971908569, -0.31257930397987366, -0.0019197484944015741, -0.324575275182724, -0.413715124130249, 0.16778802871704102, -0.503440797328949, 0.4088934063911438, 0.1983972191810608, -0.07542218267917633, 0.08387221395969391, -0.9249678254127502, -0.15598326921463013, 0.14629249274730682, -0.2968348264694214, -0.40372443199157715, 0.14246399700641632, -0.09881395846605301, 0.09645842015743256, 0.48169881105422974, -0.6041807532310486, -0.04796118289232254, -0.6530494093894958, 0.47459691762924194, 0.6478449702262878, 0.12071296572685242, 0.5478208661079407, -0.349115252494812, 0.5868710279464722, 0.057328734546899796, -0.15081842243671417, 0.03200164809823036, -0.3770255744457245, -0.4432632625102997, -0.2278042882680893, 0.23891784250736237, 0.20435063540935516, -0.8862357139587402, 0.40200257301330566, -0.364707887172699, -0.5294455289840698, -0.4968336522579193, -0.045042965561151505, 0.35532525181770325, 0.730252206325531, 0.06874129921197891, 0.2334943413734436, -0.6725727915763855, -0.7307636141777039, -0.14386512339115143, -0.41988569498062134, 0.12919968366622925, 0.2438715249300003, 0.000548886600881815, -0.12639003992080688, 1.088753581047058, -0.4729297161102295, -0.12614351511001587, -0.38154205679893494, 0.1566305309534073, 0.27729806303977966, 0.08948902040719986, 0.4542585611343384, -0.5882587432861328, -0.46580591797828674, -0.08801686018705368, -0.5941575169563293, -0.17077681422233582, -0.054943401366472244, -0.18761032819747925, 0.29639148712158203, 0.7815802097320557, -0.46747568249702454, 0.07966004312038422, 0.763543426990509, -0.07811099290847778, 0.926876962184906, 0.015248160809278488, -0.04173232987523079, -1.367871642112732, -0.062382228672504425, -0.14756618440151215, -0.359017014503479, -0.4326782524585724, 0.039391517639160156, -0.01422152854502201, 0.1807345747947693, -0.5112966895103455, 0.37010908126831055, -0.6143572330474854, -0.04324018955230713, -0.34249672293663025, 0.10417645424604416, -0.2981192469596863, 0.22029897570610046, 0.18718498945236206, 1.0751522779464722, 0.5328178405761719, -0.47387829422950745, 0.3445794880390167, 0.0809864029288292, -0.46302708983421326, -0.042009077966213226, -0.22828182578086853, 0.2288026660680771, 0.02753949537873268, 0.5027745366096497, -0.6519814133644104, -0.18933998048305511, -0.024522989988327026, -0.35278207063674927, 0.04781944304704666, -0.22998285293579102, -0.9086322784423828, -0.5363559722900391, -0.49103841185569763, 0.6701039671897888, 0.5421151518821716, -0.6310755610466003, 0.3616843819618225, 0.15175098180770874, -0.1071588471531868, -0.5620061755180359, -0.7645048499107361, 0.23772986233234406, -0.46937867999076843, -0.697939932346344, 0.3378804624080658, 0.21782861649990082, -0.08357758074998856, 0.15542054176330566, 0.05263654515147209, 0.09584435075521469, -0.41271862387657166, -0.04987373575568199, 0.17203252017498016, -0.37635862827301025, -0.18382498621940613, 0.21511809527873993, -0.21445289254188538, 0.2636076509952545, -0.3490120768547058, 0.6069661974906921, -0.12809138000011444, -0.125796839594841, -0.3263138234615326, 0.44143927097320557, 0.5705543756484985, -0.03142369166016579, 0.999206006526947, 0.5191879868507385, -0.37198978662490845, -0.528471827507019, -0.5472975373268127, -0.41468408703804016, -0.5210766792297363, 0.4404115676879883, -0.46689853072166443, -1.0782252550125122, 0.8817865252494812, -0.2232382446527481, -0.31021732091903687, 0.2400408685207367, 0.7608780264854431, 0.13024303317070007, 0.6526193022727966, 0.6692925095558167, -0.40884244441986084, 0.3895683288574219, -0.11395058035850525, 0.4335549771785736, -0.6745765209197998, -0.49009644985198975, -0.36876949667930603, -0.19166907668113708, -0.2325025200843811, -0.8018382787704468, 0.20176810026168823, 0.0634499192237854, 0.30879145860671997, 0.2874951660633087, -0.13011525571346283, 0.7001796364784241, 0.5947948694229126, 0.23743030428886414, 0.4443528950214386, 0.20826248824596405, -0.32298654317855835, -0.26718324422836304, -0.9182262420654297, -0.3537900745868683, 0.996357262134552, 0.33386915922164917, 0.7907930612564087, 0.22262655198574066, 0.8302767872810364, 0.4065272808074951, -0.020681433379650116, -0.6564837694168091, 0.6830016374588013, -0.061879754066467285, -0.35859647393226624, -0.05480002611875534, -0.7525619268417358, -0.7456034421920776, -0.3204154968261719, -0.15988579392433167, -0.9647455215454102, -0.11519117653369904, 0.16015884280204773, -0.36248549818992615, 0.7513676285743713, -0.49031856656074524, 0.5163277387619019, 0.18132269382476807, -0.35496050119400024, -0.06053238362073898, -0.6730363368988037, 0.679503858089447, -0.41150519251823425, -0.06844236701726913, 0.050570063292980194, -0.07507681101560593, 0.8448576331138611, -0.41867923736572266, 1.1023917198181152, -0.004989837761968374, -0.2892870008945465, 0.5172330737113953, 0.28397274017333984, 0.9623592495918274, 0.02939828298985958, -0.43035072088241577, -0.0036353024188429117, -0.07913824170827866, -0.3948894143104553, -0.45984917879104614, 0.9235822558403015, -0.6836095452308655, -0.30276405811309814, -0.22670455276966095, -0.7752701044082642, -0.4654267132282257, 0.0914277583360672, 0.57837975025177, 0.2539829611778259, 0.13629503548145294, 0.019058356061577797, 0.48971325159072876, -0.040668755769729614, 0.33538976311683655, 0.338445246219635, -0.13386525213718414, -0.046725936233997345, 1.162294626235962, -0.4013172388076782, 0.364080011844635, 0.5790503025054932, 0.27846214175224304, -0.7768501043319702, -0.8123255372047424, -0.3075723350048065, 0.26564857363700867, -0.6699190139770508, -0.3705386817455292, -0.6471914649009705, -0.11067011952400208, -0.21566124260425568, -0.3061469495296478, -0.5346789360046387, -0.21957997977733612, -0.44793975353240967, -0.17309489846229553, 0.5939841270446777, 0.7094711065292358, -0.07799529284238815, 0.365701824426651, -0.8861780166625977, 0.12703561782836914, -0.06049796938896179, 0.10122969001531601, 0.40277162194252014, -0.6720415353775024, -0.3091224431991577, -0.0868755653500557, 0.3399505019187927, -0.8244702219963074, 0.3675053119659424, -0.030614638701081276, 0.2662332057952881, 0.4391368627548218, 0.33603355288505554, 0.8468561172485352, -0.5623237490653992, 0.9246000647544861, 0.16324959695339203, -0.757724940776825, 0.2879617214202881, -0.5341655611991882, 0.14759929478168488, 0.41887617111206055, 0.2688850164413452, -0.2975021302700043, -0.6110768914222717, -0.44857895374298096, -1.004157543182373, 0.7848464846611023, 0.22957360744476318, 0.24992799758911133, -0.23889896273612976, 0.34014996886253357, 0.20152366161346436, 0.023463286459445953, -0.5675579309463501, -0.17581388354301453, 0.19701746106147766, -0.2836827039718628, -0.022240977734327316, -0.42825445532798767, 0.10214770585298538, -0.07319806516170502, 0.5229457020759583, -0.06295821070671082, 0.5622473955154419, -0.16493569314479828, 0.020318588241934776, -0.2982437312602997, 0.07178657501935959, 0.5481329560279846, 0.21832990646362305, -0.34907400608062744, 0.3942645192146301, 0.33513545989990234, -0.14306624233722687, -0.06989067047834396, -0.04195354878902435, -0.025271277874708176, 0.033735644072294235, 0.5773521661758423, 0.5760265588760376, 0.364818811416626, -0.604390561580658, 0.4318941533565521, -0.0006231120205484331, -0.14731912314891815, -0.11621749401092529, -0.182870015501976, 0.3281887173652649, 0.39707255363464355, 0.5138872265815735, 0.07775778323411942, 0.05385935679078102, -0.42002204060554504, 0.46208131313323975, 0.2641621232032776, -0.025368500500917435, -0.4429693818092346, 0.6796435117721558, -0.06879249215126038, -0.11598215997219086, 0.5922960042953491, -0.43584099411964417, -0.6698760986328125, 0.4851710796356201, 1.2159110307693481, 0.59904944896698, 0.25784412026405334, 0.2348206788301468, 0.29437005519866943, 0.0852067843079567, 0.004453051369637251, 0.0773937851190567, -0.10742287337779999, -0.5992850661277771, -0.5216279625892639, -0.985798180103302, -0.28069499135017395, 0.19171933829784393, -0.4504283368587494, 0.007800542749464512, -0.25146016478538513, -0.0436742827296257, -0.4425746500492096, -0.1743597686290741, -0.18005816638469696, -0.14595292508602142, 0.3544066250324249, 0.8560240864753723, -0.968840479850769, 0.7348413467407227, 0.5345715880393982, 0.012510192580521107, -1.0277336835861206, 0.3950827121734619, -0.040485043078660965, -0.8307909369468689, 0.47979477047920227, -0.050707701593637466, -0.39486968517303467, 0.2019282877445221, -0.3774333894252777, -0.8663427233695984, 0.9609049558639526, 0.4101885259151459, -0.5936089158058167, -0.3892410695552826, 0.2975119650363922, 0.5215179920196533, -0.3339792788028717, 0.08005747199058533, 0.4429965913295746, 0.14677664637565613, 0.20401418209075928, -0.6325454115867615, 0.31516990065574646, -0.20105519890785217, 0.1557176411151886, 0.24462546408176422, -0.6226819157600403, 0.531928300857544, -0.346461683511734, -0.13772724568843842, 0.36769676208496094, 1.0821269750595093, 0.6070649027824402, 0.31039831042289734, 0.37256669998168945, 0.359653115272522, 0.7728000283241272, 0.20267456769943237, 1.0414350032806396, -0.4059528112411499, 0.27811479568481445, 1.0291943550109863, 0.04315552860498428, 1.237485647201538, 0.5911906361579895, -0.31770917773246765, 0.6793525815010071, 0.804799497127533, 0.2213326245546341, 0.6810028553009033, 0.2930881977081299, -0.528706431388855, -0.16402646899223328, -0.10698157548904419, -0.35876449942588806, 0.32736536860466003, 0.34221091866493225, -0.3439594507217407, -0.3852928578853607, -0.11734167486429214, 0.08847847580909729, 0.2858099937438965, -0.07832631468772888, 0.47266891598701477, 0.13179540634155273, -0.34847018122673035, 0.6753952503204346, 0.2727743089199066, 0.9658905863761902, -0.7308028936386108, 0.24371998012065887, -0.18602119386196136, 0.11445381492376328, -0.26219817996025085, -0.4783131778240204, 0.3916749358177185, 0.15454503893852234, -0.37397637963294983, -0.050208818167448044, 0.8311864137649536, -0.5188134908676147, -0.5665636658668518, 0.2596699893474579, 0.3880790174007416, 0.337530255317688, -0.09697028994560242, -0.4949459135532379, 0.24439787864685059, 0.11447809636592865, -0.1276267170906067, 0.18079562485218048, 0.5844101309776306, -0.1865600198507309, 0.6249698996543884, 1.101109266281128, 0.3806506097316742, 0.5759360194206238, 0.04462892934679985, 1.0605617761611938, -0.6721009016036987, -0.6474171280860901, -0.8522533774375916, 0.14435258507728577, 0.1705426424741745, -0.10443766415119171, 0.9054042100906372, 0.6781611442565918, 0.6456273198127747, -0.20535720884799957, 0.584496796131134, -0.023313110694289207, 0.24768401682376862, -0.6592358946800232, 0.6535817384719849, -0.45508071780204773, 0.4408815801143646, -0.24385201930999756, -0.9744894504547119, -0.2482798993587494, 0.36226654052734375, -0.377307653427124, -0.017003703862428665, 0.6974196434020996, 0.9208311438560486, -0.15422658622264862, 0.0535099096596241, 0.3241082727909088, 0.19337524473667145, 0.18834355473518372, 0.706434428691864, 1.0417101383209229, -0.2185276448726654, 0.7105125784873962, -0.3606274425983429, -0.2255740910768509, -0.15131071209907532, -1.0115115642547607, -1.0315351486206055, -0.4430859684944153, -0.010190975852310658, -0.3479340672492981, 0.023828012868762016, 0.6795449256896973, 0.6777600646018982, -0.5876811146736145, -0.03784338757395744, -0.347027063369751, -0.20126424729824066, -0.028194883838295937, -0.3348008692264557, 0.4392554461956024, -0.3920668661594391, -0.6988146305084229, 0.7710760235786438, 0.07034093141555786, -0.17182578146457672, -0.26755020022392273, -0.2561054229736328, -0.1381135880947113, -0.034947797656059265, 0.4941764175891876, 0.17922933399677277, -0.7257936596870422, -0.02869522012770176, 0.17031420767307281, -0.10152309387922287, -0.06994672119617462, 0.7695690989494324, -0.9250017404556274, 0.2943330407142639, 0.46555235981941223, 0.7470776438713074, 0.5617981553077698, 0.16366168856620789, 0.5501936078071594, -1.0970722436904907, 0.29720234870910645, 0.4780026376247406, 0.044186100363731384, 0.2910953760147095, -0.6674621105194092, -0.022189132869243622, 0.3076310455799103, -0.35516929626464844, -1.005009651184082, 0.28087982535362244, -0.9588406085968018, -0.08887853473424911, 1.2882575988769531, -0.07705068588256836, -0.5117035508155823, -0.013075772672891617, 0.035073909908533096, 0.2573734223842621, -0.6245876550674438, 0.7738062739372253, 0.5592018365859985, 0.042096346616744995, -0.18348285555839539, -0.17844383418560028, 0.6102343201637268, 0.6313250660896301, -0.6834635138511658, 0.3297197222709656, 0.32709595561027527, 0.09146720170974731, 0.09603464603424072, 0.5827093720436096, -0.2088814377784729, -0.006771268788725138, 0.34082937240600586, -0.3796047866344452, -0.3326411545276642, -0.3272952139377594, 0.0929151102900505, 0.1705903708934784, 0.09886514395475388, -0.08226968348026276 ]
http://arxiv.org/abs/2405.19323v1
http://arxiv.org/pdf/2405.19323v1
Are Large Language Models Chameleons?
2024-05-29T17:54:22
2024-05-29T17:54:22
Mingmeng Geng, Sihong He, Roberto Trotta
cs.CL
cs.CL, cs.AI, cs.CY, cs.LG
Do large language models (LLMs) have their own worldviews and personality tendencies? Simulations in which an LLM was asked to answer subjective questions were conducted more than 1 million times. Comparison of the responses from different LLMs with real data from the European Social Survey (ESS) suggests that the effect of prompts on bias and variability is fundamental, highlighting major cultural, age, and gender biases. Methods for measuring the difference between LLMs and survey data are discussed, such as calculating weighted means and a new proposed measure inspired by Jaccard similarity. We conclude that it is important to analyze the robustness and variability of prompts before using LLMs to model individual decisions or collective behavior, as their imitation abilities are approximate at best.
[ -0.41841667890548706, -0.919239342212677, 0.6210765838623047, 0.41458430886268616, 0.028936190530657768, -0.0475785955786705, -0.3873055577278137, -0.3916378617286682, 0.44308987259864807, 0.6722282767295837, -0.5963039398193359, -0.2183951437473297, -0.47826680541038513, 0.3106037378311157, -0.35181018710136414, 0.6516819000244141, 0.4550624489784241, 0.23990114033222198, -0.36744335293769836, -0.13529044389724731, -0.12030082195997238, -0.541386067867279, -0.6476222276687622, -0.5237454771995544, 0.8276302814483643, 0.3195018470287323, 0.612360417842865, 0.42388278245925903, 0.29012051224708557, 0.3661949038505554, -0.27894851565361023, -0.055509742349386215, -0.180085688829422, 0.46465128660202026, -0.3153081238269806, -0.7304046154022217, -0.09570915997028351, 0.13067521154880524, 0.47151076793670654, 1.0309371948242188, 0.046272557228803635, 0.33754220604896545, 0.14202746748924255, 0.4762187898159027, -0.23301783204078674, 0.28000763058662415, -0.4214384853839874, 0.04600673168897629, -0.029002999886870384, -0.04812232777476311, -0.35363829135894775, -0.38955894112586975, 0.4392313063144684, -0.09271810948848724, 0.09083447605371475, 0.23509342968463898, 0.25470975041389465, -0.07749386876821518, -0.5838029384613037, -0.531923234462738, -0.6119861602783203, 0.9742966294288635, -0.8428138494491577, -0.041034240275621414, 0.27091991901397705, 0.29846981167793274, -0.38784661889076233, -0.3803856372833252, -0.5800194144248962, -0.6070756316184998, 0.05694039911031723, -0.07107188552618027, -0.199009969830513, -0.166413813829422, 0.5143154263496399, 0.10527094453573227, -0.568080723285675, 0.39375853538513184, -0.2840760350227356, -0.029019493609666824, 0.8928343653678894, 0.49817946553230286, 0.3492063283920288, -0.1242554783821106, -0.15805406868457794, 0.08673025667667389, -0.593252420425415, 0.13473428785800934, 0.6717280149459839, 0.452569842338562, -0.37179529666900635, 0.5481363534927368, -0.08723720163106918, 0.7450093626976013, 0.06626252830028534, -0.31188929080963135, 0.04131326824426651, 0.2254294902086258, -0.10543128103017807, -0.0795527920126915, 0.781022310256958, 0.4623740613460541, 0.7445459365844727, 0.049168456345796585, -0.17134666442871094, 0.043104369193315506, -0.056040581315755844, -0.3828555941581726, -0.023465657606720924, 0.16519537568092346, -0.448224812746048, -0.2744493782520294, -0.21238744258880615, -1.1044487953186035, -0.9090771675109863, -0.4634815454483032, -0.16020087897777557, 0.060318466275930405, -0.11462172120809555, 0.13228590786457062, -0.1028820127248764, 0.47382107377052307, 0.5728567242622375, -0.8151591420173645, 0.4659467935562134, 0.48247861862182617, 0.7922570109367371, -0.43001046776771545, -0.43574321269989014, -0.13208946585655212, -0.26760849356651306, -0.1874629110097885, 0.9068549275398254, -0.7354665398597717, -0.8159655928611755, 0.1559620052576065, 0.03997443988919258, 0.1612769216299057, -0.46865105628967285, 0.224572092294693, -0.44141557812690735, 0.12962035834789276, -0.8733458518981934, -0.5217791795730591, -0.033807024359703064, 0.33846190571784973, -0.5813776850700378, 0.5815165042877197, -0.057228270918130875, -0.67540043592453, 0.05501417815685272, -0.32082128524780273, -0.20669420063495636, -0.07009411603212357, -0.28285595774650574, 0.028204763308167458, 0.09856734424829483, 0.1035461574792862, 0.535245418548584, -0.6603845953941345, 0.14834801852703094, -0.6996490955352783, -0.22779148817062378, 0.761125385761261, -0.3929356634616852, 1.0481040477752686, 0.12905456125736237, -0.180464968085289, -0.024227602407336235, -0.5979966521263123, -0.18376298248767853, 0.22318939864635468, -0.05720619484782219, -0.4365796148777008, 0.15232253074645996, -0.18003778159618378, 0.3770531117916107, 0.12456655502319336, -0.44252070784568787, 0.6158386468887329, -0.12020400166511536, 0.4704521894454956, 0.9295744299888611, 0.18201006948947906, 0.27648553252220154, -0.6318057775497437, 0.5990024209022522, 0.05356535315513611, -0.037794891744852066, -0.14265382289886475, -0.6290183067321777, -0.8459858298301697, -0.04490291699767113, -0.038013506680727005, 0.36750027537345886, -0.19655688107013702, 0.3430553078651428, -0.14320962131023407, -0.874653160572052, 0.06566449254751205, -0.020844999700784683, 0.11435164511203766, 0.20980805158615112, -0.11729133874177933, -0.3666163980960846, -0.45777320861816406, -1.0287562608718872, -0.3938438594341278, -0.3134140968322754, -0.015595359727740288, 0.407991886138916, 0.7887970209121704, -0.11496222019195557, 0.8289942741394043, -0.30255645513534546, 0.2630118429660797, -0.33762070536613464, 0.12185259163379669, 0.16228315234184265, 0.1355137974023819, 0.6423336863517761, -0.4986988306045532, -0.2829607427120209, -0.44375306367874146, -0.7881473302841187, -0.4498594403266907, 0.002487988444045186, 0.30400919914245605, -0.07568249851465225, 0.5250787734985352, -0.49795690178871155, -0.01423771120607853, 0.6589950323104858, -0.2519626319408417, 0.7062295079231262, 0.039497580379247665, 0.06780803203582764, -0.8733325004577637, -0.21099193394184113, 0.5333134531974792, 0.058603573590517044, -0.5354386568069458, 0.013970118016004562, -0.2919301688671112, 0.03954768925905228, -0.6245935559272766, 0.8412054181098938, -0.4801523983478546, -0.40544891357421875, -0.09218084812164307, 0.3980296850204468, -0.21333685517311096, 0.32043278217315674, -0.07921051234006882, 0.7532705068588257, 0.6498948335647583, -0.9064481854438782, 0.7597182989120483, 0.027006620541214943, -0.5022627115249634, 0.7652924060821533, -0.9319176077842712, 0.28817224502563477, -0.5215258598327637, 0.40237852931022644, -1.0410218238830566, -0.3630310595035553, 0.04052184894680977, -0.2131320983171463, -0.0880424901843071, 0.08938797563314438, -0.25886082649230957, -0.6520476937294006, -0.2722582221031189, 0.19584739208221436, 0.5569696426391602, -0.35096219182014465, 0.42815926671028137, 0.4981060326099396, -0.4889872670173645, -0.38142770528793335, -0.8720189929008484, -0.018238991498947144, -0.3736462891101837, -0.47179821133613586, -0.21973969042301178, -0.2987671494483948, -1.0121312141418457, -0.4206415116786957, 0.11868230253458023, 0.10873395204544067, -0.1736457794904709, 0.3189466893672943, 0.1488194465637207, -0.0927782654762268, 0.05334409326314926, -0.3190665543079376, 0.285117506980896, 0.22587434947490692, -0.2307715117931366, 0.7978234887123108, -0.1866263598203659, -0.5631062388420105, -0.22461342811584473, 0.22657254338264465, 0.8477540016174316, -0.11278117448091507, 0.5800458192825317, -0.11192676424980164, -0.0903828889131546, -0.06634725630283356, -0.7287001609802246, -0.11509531736373901, -0.4597347676753998, 0.19401311874389648, -0.16183224320411682, -1.0415695905685425, 0.9951316714286804, 0.06968282163143158, 0.12004134058952332, 0.31304076313972473, 0.8704591393470764, -0.15640154480934143, 1.0003820657730103, 0.24905739724636078, -0.31549715995788574, 0.37414470314979553, 0.11386047303676605, -0.039639219641685486, -0.605839192867279, -0.39266157150268555, -0.9083073139190674, -0.41901543736457825, -0.7096098065376282, -0.2563002407550812, 0.2752598524093628, -0.43038102984428406, -0.4866845905780792, -0.21264450252056122, -0.1260054111480713, 0.5817290544509888, 0.31720706820487976, -0.05093323066830635, 0.06123896315693855, -0.04217145964503288, 0.06520821899175644, -0.1880527287721634, -0.49708613753318787, -0.8354858160018921, 0.9694485068321228, 0.18008747696876526, 1.2449359893798828, 0.033299461007118225, 0.2910715341567993, 0.47837844491004944, 0.2931635081768036, -0.7582773566246033, 0.815675675868988, 0.263084352016449, -0.4717748463153839, -0.34334465861320496, -0.35652101039886475, -1.0902661085128784, 0.35259756445884705, -0.009005916304886341, -1.0063800811767578, 0.19070956110954285, 0.05325543135404587, -0.13813765347003937, 0.3346604108810425, -0.3326815068721771, 0.2266094982624054, -0.22917556762695312, -0.166405588388443, 0.0971449688076973, -0.6645108461380005, 0.5769214630126953, 0.003424924099817872, 0.3529711365699768, -0.25152483582496643, -0.11392027884721756, 0.7480161786079407, -0.12798568606376648, 1.2439382076263428, 0.015534032136201859, -0.3787916302680969, 0.5062069296836853, 0.23668207228183746, 0.514130711555481, 0.042327702045440674, -0.3371046483516693, 0.03705916926264763, -0.06559810787439346, -0.5481042265892029, -0.7356224656105042, 0.9917858839035034, -1.0035043954849243, -0.856006383895874, -0.5522494912147522, -0.6021463871002197, -0.28726905584335327, -0.15647758543491364, 0.1569366157054901, 0.5120947957038879, -0.33025726675987244, 0.2116885483264923, 0.7373780608177185, -0.42228126525878906, 0.551744282245636, 0.6399197578430176, -0.23945407569408417, -0.05213092640042305, 0.27738142013549805, 0.2331375926733017, 0.38965001702308655, 0.17890001833438873, 0.30463266372680664, -0.22484366595745087, -0.11606231331825256, -0.19738297164440155, 0.40935105085372925, -0.717296302318573, 0.19924896955490112, -0.67557293176651, 0.070918969810009, -0.40465858578681946, -0.16023693978786469, -0.04969101399183273, -0.15143081545829773, 0.03916814550757408, 0.012118333950638771, 0.19083763659000397, 1.0007418394088745, 0.2633419632911682, 0.4416763186454773, -0.6940513253211975, -0.18819577991962433, 0.6563087701797485, 0.08256521075963974, 0.1281663030385971, -0.4462801218032837, 0.04846477508544922, 0.14443223178386688, -0.047244224697351456, -1.2182371616363525, 0.2890448272228241, -0.2562158405780792, 0.6812921762466431, 0.31375718116760254, -0.06270423531532288, 0.30365750193595886, -0.2678631842136383, 1.430816411972046, -0.02498774230480194, -0.8715851306915283, 0.34890538454055786, -0.5498741865158081, 0.48275575041770935, 0.22095833718776703, 0.45839130878448486, -0.8721717596054077, -0.4611210823059082, -0.5256099700927734, -0.28741592168807983, 0.4914877414703369, -0.17065119743347168, 0.5470974445343018, -0.136128768324852, 0.48283204436302185, 0.041759371757507324, 0.30630677938461304, -0.8018989562988281, -0.445970356464386, 0.210244283080101, -0.010873458348214626, -0.2421589493751526, -0.4204334318637848, -0.09562849998474121, -0.20006835460662842, 0.38713371753692627, -0.05087916925549507, 0.18672296404838562, 0.06310341507196426, 0.058328963816165924, -0.1931743174791336, 0.3774142563343048, 0.7181705236434937, 0.7257545590400696, 0.32418960332870483, 0.33447349071502686, 0.49916648864746094, -0.2748691737651825, 0.49581095576286316, -0.5989513397216797, -0.08143102377653122, -0.07893787324428558, 0.5961878299713135, 0.6270075440406799, 0.1169758290052414, -0.8087903261184692, 0.4515973925590515, -0.055719055235385895, -0.1866108775138855, -0.36888542771339417, 0.17863546311855316, 0.05640760809183121, 0.39362505078315735, 0.05651029199361801, -0.08310120552778244, -0.07963202148675919, -0.8225375413894653, -0.21049180626869202, 0.40033814311027527, -0.2771986126899719, -0.4945491552352905, 0.387785941362381, 0.22293369472026825, -0.5724806785583496, 0.4497058093547821, -0.05863279849290848, -0.29943570494651794, 0.8446427583694458, 0.5499302744865417, 0.6073012948036194, -0.6496321558952332, 0.19345569610595703, 0.13029435276985168, 0.3734574317932129, -0.3826966881752014, 0.27027422189712524, 0.3256220817565918, -0.8222733736038208, -0.15426181256771088, -0.50284343957901, -0.5590330958366394, 0.37011784315109253, -0.6540297865867615, 0.30752649903297424, -0.34896811842918396, -0.13671262562274933, 0.051766786724328995, -0.04089433699846268, -0.713137686252594, 0.2768934965133667, 0.07774321734905243, 0.9969671368598938, -1.0935564041137695, 0.5059149861335754, 0.8219712376594543, -0.34254202246665955, -0.6423308849334717, 0.13459594547748566, 0.2825605273246765, -0.7415145039558411, 0.5777364373207092, -0.08896961808204651, 0.03509228304028511, -0.2904284596443176, -0.8760945200920105, -0.9456376433372498, 0.7355942130088806, 0.448883980512619, -0.7796421051025391, -0.13652309775352478, 0.14807318150997162, 0.5956721305847168, -0.4952571988105774, 0.368042916059494, 0.6388649940490723, 0.5811249017715454, -0.0862065926194191, -0.700805127620697, -0.21366184949874878, -0.17546948790550232, 0.2306535392999649, -0.08864161372184753, -1.0462688207626343, 1.0105390548706055, -0.18542969226837158, 0.2730821669101715, 0.008087032474577427, 0.5516462922096252, 0.4470503628253937, 0.1203661859035492, 0.5813905000686646, -0.04466141760349274, 0.8460714221000671, -0.02819152921438217, 1.1664360761642456, -0.3610590398311615, 0.27553585171699524, 0.8795127868652344, -0.6928406953811646, 0.3857613205909729, 0.3795756995677948, -0.3828789293766022, 0.6006566882133484, 0.7550650835037231, -0.037984687834978104, 0.09621112793684006, 0.6261652708053589, -0.21708330512046814, -0.23554246127605438, -0.06462573260068893, -0.18071803450584412, 0.5145633220672607, 0.4705086350440979, -0.4917807877063751, -0.06995204091072083, -0.032707713544368744, 0.07427193969488144, 0.1011921614408493, -0.4606837034225464, 0.5337357521057129, 0.307364821434021, -0.8189648389816284, 0.09780863672494888, -0.06059711053967476, 0.626327395439148, -0.5641012191772461, 0.38170167803764343, -0.3976520001888275, -0.23270554840564728, -0.04088025167584419, -0.8219814896583557, -0.02435905486345291, -0.08715138584375381, -0.09718520194292068, 0.04758714884519577, 0.6841841340065002, -0.27248889207839966, -0.3725036680698395, 0.05174897611141205, 0.7938410043716431, 0.2744303047657013, 0.25007036328315735, -0.5081577301025391, 0.0056728171184659, -0.05906295031309128, -0.6113928556442261, 0.270246297121048, 0.377587229013443, -0.1900540292263031, 1.0010709762573242, 0.2277875542640686, 0.20668034255504608, 0.2074340581893921, 0.15985991060733795, 0.5796490907669067, -0.7383077144622803, -0.5046737790107727, -1.1367378234863281, 0.05625922605395317, -0.28696703910827637, -0.3491668999195099, 1.0241150856018066, 0.3040836751461029, 0.5599184632301331, -0.2265641689300537, 1.0508956909179688, 0.26375123858451843, 0.3122422695159912, -0.38439562916755676, 0.26902493834495544, -0.2918437421321869, 0.3256179392337799, -0.4217447340488434, -1.1725308895111084, -0.11198660731315613, 0.5275751352310181, -0.5531623959541321, 0.31834807991981506, 0.4718426764011383, 0.8508700728416443, 0.22274965047836304, 0.3763771951198578, 0.35347068309783936, 0.30256330966949463, 0.3288886547088623, 0.29537808895111084, 1.1028869152069092, 0.27058202028274536, -0.09198099374771118, 0.2787815034389496, -0.06096309795975685, -0.19537626206874847, -0.5194159150123596, -1.1569201946258545, -0.5121448636054993, -0.21699023246765137, -0.27124348282814026, -0.15517519414424896, 1.324676513671875, 0.3829107880592346, -0.5599324703216553, -0.5788876414299011, 0.1736554503440857, 0.05486556887626648, -0.04568459093570709, -0.21844178438186646, 0.0009992843260988593, -0.17340826988220215, -0.8195127844810486, 0.09576176851987839, 0.3617548942565918, 0.348263680934906, -0.8848783373832703, 0.08642078191041946, 0.1291012465953827, 0.6535324454307556, 0.5945780277252197, 0.19711987674236298, -0.9155657291412354, -0.5723397135734558, 0.1269623041152954, -0.30635499954223633, -0.0897437334060669, 1.004944086074829, -0.5395585298538208, 0.32348883152008057, 0.46022066473960876, 0.13282860815525055, 0.14708150923252106, -0.2967510521411896, 0.4746161103248596, -0.714691162109375, 0.37565261125564575, 0.2550888955593109, 0.654871940612793, 0.2762012183666229, -0.10085351765155792, 0.23396272957324982, 0.2587789297103882, -0.7445819973945618, -0.6019913554191589, 0.5533158183097839, -0.9215420484542847, -0.10166799277067184, 1.5884644985198975, -0.03090491332113743, -0.3304600715637207, -0.1351490318775177, -0.34986528754234314, -0.021712295711040497, -0.38502639532089233, 0.7515965104103088, 0.9643966555595398, -0.1788199096918106, -0.25856298208236694, -0.5709848999977112, 0.14492802321910858, 0.07358366250991821, -0.8402741551399231, -0.059577181935310364, 0.6033849716186523, 0.4298824369907379, 0.13898485898971558, 0.6397233009338379, 0.07031706720590591, -0.11001990735530853, 0.05362105369567871, -0.1546168029308319, 0.3124266564846039, -0.02200579084455967, -0.49537888169288635, 0.13540558516979218, 0.19062305986881256, 0.49180546402931213 ]
http://arxiv.org/abs/2405.19316v1
http://arxiv.org/pdf/2405.19316v1
Robust Preference Optimization through Reward Model Distillation
2024-05-29T17:39:48
2024-05-29T17:39:48
Adam Fisch, Jacob Eisenstein, Vicky Zayats, Alekh Agarwal, Ahmad Beirami, Chirag Nagpal, Pete Shaw, Jonathan Berant
cs.LG
cs.LG, cs.CL
Language model (LM) post-training (or alignment) involves maximizing a reward function that is derived from preference annotations. Direct Preference Optimization (DPO) is a popular offline alignment method that trains a policy directly on preference data without the need to train a reward model or apply reinforcement learning. However, typical preference datasets have only a single, or at most a few, annotation per preference pair, which causes DPO to overconfidently assign rewards that trend towards infinite magnitude. This frequently leads to degenerate policies, sometimes causing even the probabilities of the preferred generations to go to zero. In this work, we analyze this phenomenon and propose distillation to get a better proxy for the true preference distribution over generation pairs: we train the LM to produce probabilities that match the distribution induced by a reward model trained on the preference data. Moreover, to account for uncertainty in the reward model we are distilling from, we optimize against a family of reward models that, as a whole, is likely to include at least one reasonable proxy for the preference distribution. Our results show that distilling from such a family of reward models leads to improved robustness to distribution shift in preference annotations, while preserving the simple supervised nature of DPO.
[ -0.3477303981781006, -0.28885379433631897, 0.6829321980476379, -0.010571653954684734, -0.4111368656158447, 0.13563546538352966, -0.3030693829059601, 0.02502584271132946, 0.09741663932800293, 0.25482651591300964, -0.6311476826667786, -0.04581106826663017, -0.770313560962677, 0.0102439746260643, 0.19812944531440735, 1.0701053142547607, 0.005712142679840326, -0.20362308621406555, -0.23833058774471283, -0.024255305528640747, -0.3072517216205597, -0.5907436013221741, -0.4762643277645111, -0.7188922166824341, 0.39671167731285095, 0.3093315064907074, 0.6973761320114136, 0.9157238602638245, 0.28072407841682434, 0.2603285610675812, -0.34131893515586853, 0.14535067975521088, -0.8535158634185791, 0.30323946475982666, -0.03874655067920685, -0.4760321080684662, -0.31859880685806274, 0.14255410432815552, 0.17379555106163025, 0.7223552465438843, -0.17133621871471405, 0.05851806327700615, 0.4222087562084198, 1.0075922012329102, -0.9065561890602112, 0.014759534038603306, -0.9701278805732727, -0.022859899327158928, -0.06943590193986893, -0.38566526770591736, -0.39703568816185, -0.7582041621208191, 0.3692164123058319, -0.5131645202636719, -0.08453213423490524, -0.07262711226940155, 0.9528971314430237, 0.652774453163147, -0.3315831422805786, -0.26244479417800903, -0.7776418924331665, 1.1291307210922241, -0.5141306519508362, 0.050223082304000854, 0.6104860901832581, 0.268016517162323, -0.3153664469718933, -0.40971067547798157, -0.5077895522117615, -0.3250831365585327, 0.03653261810541153, 0.015973800793290138, -0.0670594647526741, 0.13905464112758636, -0.09243421256542206, 0.6281933784484863, -0.14382895827293396, 0.19716303050518036, 0.24691124260425568, 0.1127338632941246, 0.6084501147270203, -0.037956010550260544, -0.06346264481544495, -0.003380984766408801, -0.6160102486610413, -0.47838982939720154, -0.5782611966133118, 0.28506118059158325, 0.7890087366104126, 0.39826762676239014, 0.24687843024730682, 0.37621426582336426, -0.2717300057411194, 0.7863210439682007, 0.558796763420105, -0.4573512375354767, 0.42536410689353943, -0.22664248943328857, 0.02083227038383484, 0.2865080237388611, 0.8076075911521912, 0.5066776871681213, 0.34950441122055054, 0.017751585692167282, -0.28986483812332153, -0.01787790097296238, 0.20744337141513824, -0.5577672123908997, -0.2805722951889038, 0.40494322776794434, -0.5115877389907837, -0.9800004959106445, -0.18564337491989136, -0.7765482664108276, -0.45398226380348206, -0.42703863978385925, 0.21331451833248138, -0.18106435239315033, -0.4476269781589508, 0.30877193808555603, -0.35057926177978516, -0.15315304696559906, 0.03666950762271881, -1.6813980340957642, 0.04282422363758087, 0.6698912382125854, 0.7364616990089417, -0.2671969532966614, -0.10303385555744171, -0.5936277508735657, 0.024787653237581253, -0.08051355183124542, 0.66129469871521, -0.45178812742233276, -0.40356123447418213, 0.09955332428216934, -0.24737054109573364, 0.016471538692712784, -0.6370828747749329, 0.811665952205658, -0.4153406322002411, 0.05923902243375778, -0.2899414300918579, -0.5168718099594116, 0.2101457267999649, 0.3791162669658661, -0.6419316530227661, 0.9762950539588928, 0.1783307045698166, -0.9139375686645508, 0.8341895341873169, -0.44739988446235657, -0.12223678082227707, -0.1974431276321411, 0.08470205962657928, -0.45503246784210205, 0.2567000985145569, 0.19391509890556335, 0.28789910674095154, -0.08933408558368683, 0.5571392178535461, -0.7137302756309509, -0.3082638680934906, 0.21854807436466217, -0.4443841874599457, 0.8125199675559998, 0.45810678601264954, -0.5277361869812012, 0.0839199423789978, -0.7526841759681702, -0.15839530527591705, 0.20740513503551483, -0.2674117684364319, -0.9141802191734314, 0.3056102395057678, -0.3249223232269287, 0.2163754254579544, 0.4009610414505005, -0.4104743003845215, 0.6860244274139404, -0.4533490538597107, 0.536078929901123, 1.1767938137054443, -0.17971044778823853, 0.7447533011436462, -0.17064225673675537, 0.3403858244419098, 0.0630883276462555, 0.4762875735759735, 0.26988399028778076, -0.11835303157567978, -0.5535463094711304, -0.43489688634872437, 0.24611444771289825, 0.31159019470214844, -0.6027977466583252, 0.7908218502998352, -0.31902703642845154, -0.2624610662460327, -0.5894654989242554, 0.1748204380273819, 0.0501922145485878, 0.7025229334831238, 0.2699127793312073, 0.2029779553413391, -0.2181573063135147, -1.0260833501815796, 0.07012065500020981, -0.396404504776001, 0.05806034803390503, 0.0008314519072882831, 0.046714555472135544, 0.02747679501771927, 1.080099105834961, -0.9196255803108215, -0.05993310362100601, -0.35592925548553467, 0.09596060961484909, 0.36784878373146057, 0.2984301745891571, 0.6838686466217041, -1.0155634880065918, -0.5585169792175293, -0.20517678558826447, -0.3325914740562439, -0.19241826236248016, -0.060559168457984924, -0.3597598671913147, 0.0767020657658577, -0.09908407926559448, 0.00829183217138052, 0.057076968252658844, 0.5986142158508301, -0.007056296803057194, 0.1896180659532547, -0.20082150399684906, 0.07676271349191666, -1.2462642192840576, 0.062714584171772, 0.03793264180421829, -0.13367685675621033, -0.5230464339256287, -0.2952745258808136, 0.010648134164512157, 0.24604031443595886, -0.33266711235046387, 0.27628061175346375, -0.31612440943717957, 0.4148830473423004, -0.4884801506996155, -0.16742728650569916, 0.14519785344600677, 0.4680728614330292, 0.3843865692615509, 0.36515551805496216, 0.5979723930358887, -0.5258064270019531, 0.5032796859741211, 0.3220413327217102, -0.086968332529068, 0.47787049412727356, -0.5707235932350159, 0.09199264645576477, -0.21496787667274475, -0.04018465802073479, -1.1117017269134521, 0.013523532077670097, 0.17639166116714478, 0.0011228506918996572, 0.5537921190261841, -0.40167149901390076, -0.1862931102514267, -0.23006629943847656, -0.7437707185745239, 0.17522476613521576, 0.6508554220199585, -0.9869140982627869, -0.03866085782647133, 0.3978789448738098, 0.0005024641868658364, -0.9361316561698914, -0.5022318363189697, -0.3585420846939087, -0.7259247303009033, -0.3538253903388977, 0.44058936834335327, -0.04185476154088974, -0.3376697599887848, -0.12064123898744583, -0.25607118010520935, -0.010029344819486141, 0.29065006971359253, 0.20590531826019287, 0.5930339097976685, 0.2947700023651123, -0.0108504518866539, 0.21435433626174927, -0.3588095009326935, -0.24831315875053406, -0.3011130094528198, 0.6012560725212097, 0.14244979619979858, -0.08636263012886047, -0.1720399409532547, 0.17026710510253906, 0.4680747985839844, -0.048937030136585236, 0.8624929785728455, 0.06385646015405655, 0.07856515794992447, -0.25044354796409607, -0.41473016142845154, -0.19960129261016846, -0.5389613509178162, 0.03636382892727852, -0.4765510559082031, -0.7325524687767029, 0.22579644620418549, -0.22648313641548157, 0.03450183942914009, 0.16085803508758545, 0.4080561697483063, 0.1296963095664978, 1.1141146421432495, 0.6605699062347412, -0.42049410939216614, 0.7122884392738342, -0.051854513585567474, 0.08713099360466003, -0.5636475086212158, -0.14007040858268738, -0.5349502563476562, -0.48669663071632385, -0.7912989854812622, 0.11380424350500107, 0.267917275428772, 0.2586936950683594, -0.03888032212853432, 0.19617363810539246, -0.916716992855072, 0.293236643075943, 0.917172908782959, 0.03601960092782974, 0.28821611404418945, 0.21501515805721283, -0.16082465648651123, -0.08892710506916046, -0.5608567595481873, -0.5928676128387451, 1.1490962505340576, 0.3416915833950043, 0.917327880859375, -0.20709119737148285, 1.2047189474105835, 0.07292705774307251, -0.007685193791985512, -0.7724581360816956, 0.07475120574235916, -0.2601940333843231, -0.37323102355003357, -0.2887406349182129, -0.5652406811714172, -0.9002755284309387, 0.05656362697482109, -0.2429284304380417, -0.8236010670661926, 0.5743303894996643, 0.5978438854217529, -0.40295740962028503, 0.2615903913974762, -0.56556236743927, 1.0281819105148315, -0.4548034071922302, -0.5983622074127197, 0.11393561214208603, -0.7812451124191284, 0.43873679637908936, -0.04722071439027786, -0.03818226233124733, -0.2575785219669342, 0.20730474591255188, 0.23653359711170197, -0.5347129702568054, 0.316177099943161, -0.28503158688545227, -0.12163802236318588, 0.11963178962469101, 0.062434952706098557, 0.6965383291244507, -0.014766214415431023, -0.40264999866485596, -0.033492933958768845, 0.09663590043783188, -0.26890623569488525, -0.5241446495056152, 0.9746721386909485, -0.8999709486961365, -0.5782740712165833, -0.6295292377471924, -0.2770117223262787, -0.293817400932312, -0.11123819649219513, 0.4380117356777191, 0.06422987580299377, -0.09017075598239899, 0.0062625110149383545, 0.6449455618858337, -0.08577673137187958, 0.5662684440612793, 0.044601526111364365, 0.017573736608028412, -0.29633182287216187, 0.8716238141059875, -0.1830863654613495, 0.6808931827545166, 0.4398444890975952, 0.6582760810852051, -0.8565460443496704, -0.5164963006973267, -0.5009466409683228, -0.07763082534074783, -0.4644787311553955, 0.08345779776573181, -0.24274933338165283, 0.28997814655303955, -0.4345059394836426, -0.2506616413593292, -0.6046853065490723, -0.39208072423934937, -0.24068228900432587, -0.21740394830703735, 0.48336076736450195, 0.3544808626174927, -0.09007468819618225, 0.10135260224342346, -0.5756369829177856, 0.25668811798095703, 0.39147090911865234, 0.32777097821235657, -0.3060670495033264, -0.5728121995925903, 0.10747868567705154, 0.36384421586990356, -0.42392101883888245, -0.8631181716918945, 0.4477974474430084, 0.0610739104449749, 0.6087592840194702, 0.6126673817634583, 0.5493435859680176, 0.6648862361907959, -0.34637048840522766, 0.6672455072402954, 0.32349786162376404, -0.7730222344398499, 0.7201498746871948, -0.21415887773036957, 0.05337927117943764, 1.1089816093444824, 0.6697664856910706, -0.2858223021030426, -0.025611620396375656, -0.4268724322319031, -1.016008973121643, 0.7889351844787598, 0.07064913958311081, 0.19811268150806427, -0.03194094076752663, 0.3886766731739044, 0.43150100111961365, 0.3851577937602997, -0.7929584383964539, -0.4777687191963196, -0.5265974402427673, -0.3279557228088379, -0.12104834616184235, -0.4224145710468292, -0.17565961182117462, -0.0252007395029068, 0.6841993927955627, -0.054004717618227005, -0.29294678568840027, -0.12982365489006042, 0.25650855898857117, -0.08655261993408203, 0.288228303194046, 0.4281744956970215, 0.4429272711277008, -0.645018994808197, 0.27765339612960815, -0.42178553342819214, -0.2614921033382416, 0.6779654026031494, 0.13156357407569885, -0.31842145323753357, -0.10666336864233017, -0.257116436958313, 1.0783390998840332, -0.17248541116714478, -0.41210004687309265, 0.5270469784736633, -0.02602764405310154, -0.17084890604019165, -0.11053435504436493, 0.06297007948160172, 0.06456268578767776, -0.10973485559225082, 0.21653874218463898, -0.0946274995803833, 0.34315386414527893, -0.6157629489898682, -0.05772560462355614, 0.5110815167427063, -0.3429083526134491, -0.13133205473423004, 0.7959155440330505, 0.26604077219963074, 0.08862730860710144, 0.44965991377830505, -0.2798159420490265, -0.3206785321235657, 0.19503529369831085, 0.374025821685791, 1.0323500633239746, -0.19418683648109436, 0.34956780076026917, 0.3947141170501709, 0.031274206936359406, -0.55387282371521, -0.15675239264965057, -0.23031996190547943, -0.8940148949623108, -0.19365036487579346, -0.9011844396591187, -0.2440207153558731, 0.169716015458107, -0.9147337675094604, 0.40184757113456726, -0.011471543461084366, -0.32551851868629456, -0.03630570322275162, -0.2705127000808716, -0.36478090286254883, 0.029113134369254112, 0.2211034744977951, 0.31897011399269104, -1.0765882730484009, 1.010922908782959, 0.5915001034736633, -0.3639219105243683, -0.7577471137046814, 0.05446444824337959, 0.04793965816497803, -0.6989089846611023, 0.8317487835884094, -0.12419989705085754, -0.008603991940617561, -0.13410958647727966, -0.22775518894195557, -0.7175005674362183, 0.8066532611846924, 0.6693360209465027, -0.7829471826553345, 0.1535976529121399, 0.3002246618270874, 0.39086219668388367, -0.21219569444656372, 0.1587531864643097, 0.6590767502784729, 0.3654053211212158, 0.38482728600502014, -0.9474945664405823, -0.0023470898158848286, -0.08414454013109207, 0.13444843888282776, 0.5062507390975952, -0.5703267455101013, 0.6249046325683594, 0.10456348955631256, 0.06998402625322342, -0.2207343876361847, 0.03312278911471367, 0.5135766863822937, 0.25496551394462585, 0.8682324886322021, 0.5655364394187927, 0.5216412544250488, -0.19951575994491577, 0.9920773506164551, -0.318976491689682, 0.5086150765419006, 1.1632922887802124, -0.6054667830467224, 0.7392553091049194, 1.0997129678726196, -0.240987628698349, 0.18243396282196045, 0.9169422388076782, 0.24798838794231415, 1.1511000394821167, 0.3421437442302704, -0.33525872230529785, -0.2999878525733948, -0.1651647984981537, -0.3650759160518646, 0.27105432748794556, -0.23267555236816406, -0.517665684223175, -0.10138539224863052, -0.09933741390705109, -0.025649016723036766, 0.3275549113750458, -0.11069285124540329, 0.926927924156189, -0.11464394629001617, -1.0295456647872925, 0.8567782044410706, -0.3579007089138031, 0.848268985748291, -0.7484018206596375, 0.16425691545009613, -0.3976839780807495, 0.4003663659095764, -0.1450791209936142, -0.4837213456630707, 0.16409903764724731, -0.09343424439430237, -0.20712901651859283, -0.5372073650360107, 0.573072075843811, -0.5953347086906433, -0.28604528307914734, 0.2263440042734146, 0.1805957555770874, -0.04851113632321358, -0.12987302243709564, -0.5755977034568787, 0.09620600193738937, 0.22683237493038177, -0.5771010518074036, 0.5749664902687073, 0.28739190101623535, 0.1793246865272522, 0.5437589883804321, 0.5933386087417603, 0.2750621438026428, -0.026646185666322708, 0.02331988327205181, 1.0001814365386963, -0.18180599808692932, -0.5900088548660278, -1.3806227445602417, 0.6202227473258972, -0.3099771738052368, -0.28242227435112, 0.621045708656311, 0.41542312502861023, 0.7724822759628296, -0.1628510057926178, 0.8059816956520081, -0.03171173483133316, 0.2572602927684784, -0.3523706793785095, 0.5113372802734375, -0.7214072346687317, 0.22345487773418427, -0.35445526242256165, -1.2286133766174316, 0.08775170892477036, 0.6004170775413513, -0.35053402185440063, -0.23446762561798096, 0.4320855438709259, 0.5690023303031921, -0.04288768395781517, -0.2609352767467499, 0.2682914733886719, -0.38630256056785583, 0.1960289180278778, 0.6911199688911438, 0.8601387739181519, 0.06795541197061539, 0.3739437162876129, -0.6143860816955566, -0.40659046173095703, -0.29340511560440063, -1.2940949201583862, -0.6583952307701111, -0.48184844851493835, -0.38072526454925537, -0.29083603620529175, 0.00824998039752245, 1.1817373037338257, 0.7345438599586487, -0.7231507301330566, -0.1491011679172516, -0.22438880801200867, -0.020031152293086052, -0.35663512349128723, -0.19537971913814545, 0.259479284286499, -0.4792296588420868, -1.0710291862487793, 0.28172317147254944, 0.3324229419231415, 0.16637754440307617, -0.1727486401796341, -0.15417028963565826, -0.1239432841539383, -0.13939180970191956, 0.26866254210472107, 0.10575845837593079, -0.5286281704902649, -0.3283712863922119, -0.002074054442346096, -0.060514867305755615, 0.20671363174915314, 0.7150521874427795, -0.3769826591014862, 0.8430798053741455, 0.6030917763710022, 0.4699249267578125, 0.5555610060691833, 0.2245205044746399, 0.7824893593788147, -0.7070943117141724, 0.5055907368659973, 0.17023944854736328, 0.410122811794281, 0.2339535802602768, -0.47970134019851685, 0.4144919812679291, 0.08650564402341843, -0.7140181064605713, -1.0661414861679077, 0.3374413251876831, -1.0918018817901611, -0.2543039321899414, 1.2561777830123901, -0.28482767939567566, -0.1156974583864212, 0.06653617322444916, -0.2734515964984894, 0.30658718943595886, -0.5519832968711853, 1.2137812376022339, 0.7516043186187744, -0.13586948812007904, 0.18963590264320374, -0.0877612978219986, 0.9014782905578613, 0.6377961039543152, -0.519598126411438, 0.1493712067604065, 0.39543434977531433, 0.281971275806427, 0.0680553987622261, 0.4524713158607483, 0.1130891889333725, -0.22911880910396576, -0.13343288004398346, 0.0466950424015522, -0.3140292465686798, -0.024102747440338135, -0.5344899892807007, 0.23704414069652557, 0.5861003994941711, -0.6754767298698425 ]
http://arxiv.org/abs/2405.19315v2
http://arxiv.org/pdf/2405.19315v2
Matryoshka Query Transformer for Large Vision-Language Models
2024-05-29T17:39:42
2024-06-07T03:39:04
Wenbo Hu, Zi-Yi Dou, Liunian Harold Li, Amita Kamath, Nanyun Peng, Kai-Wei Chang
cs.CV
cs.CV, cs.CL, cs.LG
Large Vision-Language Models (LVLMs) typically encode an image into a fixed number of visual tokens (e.g., 576) and process these tokens with a language model. Despite their strong performance, LVLMs face challenges in adapting to varying computational constraints. This raises the question: can we achieve flexibility in the number of visual tokens to suit different tasks and computational resources? We answer this with an emphatic yes. Inspired by Matryoshka Representation Learning, we introduce the Matryoshka Query Transformer (MQT), capable of encoding an image into m visual tokens during inference, where m can be any number up to a predefined maximum. This is achieved by employing a query transformer with M latent query tokens to compress the visual embeddings. During each training step, we randomly select m <= M latent query tokens and train the model using only these first m tokens, discarding the rest. Combining MQT with LLaVA, we train a single model once, and flexibly and drastically reduce the number of inference-time visual tokens while maintaining similar or better performance compared to training independent models for each number of tokens. Our model, MQT-LLAVA, matches LLaVA-1.5 performance across 11 benchmarks using a maximum of 256 tokens instead of LLaVA's fixed 576. Reducing to 16 tokens (8x less TFLOPs) only sacrifices the performance by 2.4 points on MMBench. On certain tasks such as ScienceQA and MMMU, we can even go down to only 2 visual tokens with performance drops of just 3% and 6% each. Our exploration of the trade-off between the accuracy and computational cost brought about by the number of visual tokens facilitates future research to achieve the best of both worlds.
[ -0.32015255093574524, -0.33956149220466614, 0.4793194830417633, 0.07952892780303955, -0.5625268816947937, 0.018370674923062325, -0.08423292636871338, -0.3995705544948578, 0.2690567672252655, 0.747855007648468, -0.5633150339126587, -0.22489085793495178, -0.5449339151382446, -0.024320418015122414, -0.3482312560081482, 0.4462030529975891, 0.06956746429204941, 0.22968867421150208, -0.2021181881427765, -0.37249740958213806, -0.5250391364097595, -0.434291809797287, -0.42273321747779846, -0.12811017036437988, 0.5596730709075928, 0.2479635775089264, 0.6828885078430176, 0.19897882640361786, 0.6472757458686829, 0.28649216890335083, 0.08334521949291229, 0.38368064165115356, -0.4201085865497589, 0.24352073669433594, 0.03381672501564026, -0.9385788440704346, -0.09176839143037796, -0.15157568454742432, 0.7805167436599731, 0.5316991806030273, -0.3519749641418457, 0.36876386404037476, -0.19027261435985565, 0.8194172978401184, -0.7499585747718811, 0.21428632736206055, -0.9364162683486938, 0.31066256761550903, -0.20200832188129425, 0.1892779916524887, -0.6246401071548462, 0.13165342807769775, -0.270730197429657, -0.7444194555282593, 0.007163731846958399, 0.3344809412956238, 0.7667573690414429, 0.5224880576133728, -0.4317123591899872, 0.5197862982749939, -0.4962587058544159, 0.8819255828857422, -0.529653012752533, 0.5602895617485046, 0.2731796205043793, 0.7675997018814087, -0.09045712649822235, -0.8963021039962769, -0.5794815421104431, -0.13147391378879547, -0.0723835676908493, 0.18889808654785156, -0.29165586829185486, 0.04488852992653847, 0.5388503074645996, 0.12241819500923157, -0.5124989748001099, 0.08733024448156357, -0.5515619516372681, -0.30861639976501465, 0.4267176389694214, 0.4132590889930725, 0.008853667415678501, -0.2237619161605835, -0.2569608688354492, -0.30992358922958374, -0.6043438911437988, 0.11071998625993729, -0.09611757844686508, 0.11433638632297516, 0.4523322582244873, 0.9154996871948242, -0.43785905838012695, 0.7325679063796997, 0.0509662963449955, -0.21608422696590424, 0.16015544533729553, -0.12707382440567017, -0.35041555762290955, -0.12461180239915848, 0.7174516916275024, 0.35575515031814575, 0.03430547937750816, 0.11339771002531052, -0.2510581612586975, 0.248176708817482, 0.3746277689933777, -1.014892816543579, -0.1086035892367363, -0.01610773615539074, -0.6086204051971436, -0.3697105050086975, -0.15130367875099182, -0.5922677516937256, -0.3707221746444702, -0.1805497407913208, 0.4171600639820099, -0.3336525857448578, -0.08447366207838058, 0.12235609441995621, -0.126266747713089, 0.399077832698822, 0.5703461170196533, -0.988949716091156, 0.29511797428131104, 0.4945661425590515, 0.827666163444519, -0.34951841831207275, -0.24120713770389557, -0.7377145886421204, -0.013193008489906788, -0.493667334318161, 0.4130096137523651, -0.844501256942749, -0.24936963617801666, -0.14221902191638947, 0.12640894949436188, -0.1759653389453888, -0.5115153789520264, 0.1622997671365738, -0.6352019309997559, -0.09683240950107574, -0.11296765506267548, -0.4162662923336029, 0.04622067138552666, 0.27082306146621704, -0.8680108189582825, 1.2024071216583252, 0.07069217413663864, -0.6619818210601807, 0.45087799429893494, -0.429911345243454, -0.1518622785806656, 0.13638877868652344, -0.5067213773727417, -0.3626173734664917, 0.462924987077713, 0.4718923568725586, 0.3545978367328644, -0.4298493564128876, 0.17032165825366974, -0.17610138654708862, -0.47983428835868835, 0.29280945658683777, -0.5119702816009521, 0.6397299766540527, 0.10845694690942764, -0.19699831306934357, 0.24544459581375122, -0.9479360580444336, -0.002900034189224243, 0.260879248380661, -0.4922920763492584, -0.12678684294223785, -0.16220927238464355, -0.010968984104692936, 0.20313282310962677, -0.005124789196997881, -0.6090262532234192, 0.3977249264717102, -0.32430943846702576, 0.6749521493911743, 0.7163346409797668, -0.3425973355770111, 0.451983779668808, -0.05648287385702133, 0.6664738655090332, -0.0701456144452095, 0.34945550560951233, -0.24475587904453278, -0.773108184337616, -0.9583303332328796, -0.326385498046875, 0.22148476541042328, 0.4046300947666168, -1.111223816871643, -0.023572109639644623, -0.3673708438873291, -0.42808234691619873, -0.7181926965713501, -0.1260301172733307, 0.12224601209163666, 0.40228933095932007, 0.22832852602005005, -0.28286662697792053, -0.4229610860347748, -1.0008704662322998, -0.07826218754053116, -0.15841972827911377, -0.14667406678199768, 0.3453330397605896, 0.623932957649231, 0.2032349407672882, 0.7843457460403442, -0.5672800540924072, -0.10463235527276993, 0.006057583726942539, -0.08308571577072144, 0.31339627504348755, 0.390608012676239, 0.5281406044960022, -1.0366694927215576, -0.4464702010154724, 0.0669717937707901, -0.5128264427185059, 0.24434690177440643, -0.039146240800619125, -0.2076759934425354, 0.33471205830574036, 0.5517823100090027, -0.9947945475578308, 0.7176545858383179, 0.5565854907035828, -0.2247479259967804, 0.7337024807929993, 0.062051933258771896, 0.13869710266590118, -1.0034066438674927, -0.040667541325092316, -0.4655657112598419, -0.31111419200897217, -0.4695081412792206, 0.1756075769662857, 0.2977460026741028, -0.4366803467273712, -0.6486924886703491, 0.5241262316703796, -0.2972446084022522, -0.12983453273773193, -0.016960637643933296, -0.12747135758399963, 0.2318759709596634, 0.592850923538208, -0.17723803222179413, 0.9193035364151001, 0.5614230036735535, -0.22527457773685455, 0.5083621740341187, 0.340122789144516, -0.5858006477355957, 0.5386747121810913, -0.559998631477356, 0.011439641006290913, -0.05352845788002014, 0.3430214822292328, -1.0985373258590698, -0.26667341589927673, 0.27922961115837097, -0.2581647038459778, 0.27449777722358704, -0.2530601918697357, -0.6169764995574951, -0.38797181844711304, -0.3420465886592865, 0.48572418093681335, 0.6736536026000977, -0.8101208209991455, 1.015696406364441, 0.04647156596183777, 0.25541505217552185, -0.8696622848510742, -0.9720536470413208, 0.2439904808998108, -0.13104702532291412, -0.8740523457527161, 0.617348313331604, 0.060019318014383316, 0.0974399521946907, 0.020265784114599228, -0.24695900082588196, 0.12203921377658844, -0.21281103789806366, 0.3903175890445709, 0.3788366913795471, -0.37452414631843567, 0.44605401158332825, -0.16407082974910736, -0.10735737532377243, -0.20566654205322266, -0.6324322819709778, 0.5306968688964844, -0.2778869569301605, -0.7484679222106934, -0.2334991842508316, 0.2520747780799866, 0.8506828546524048, -0.6328588128089905, 0.9407012462615967, 0.8024477958679199, -0.2833959758281708, 0.02889970876276493, -0.7412896156311035, -0.16236485540866852, -0.5070391893386841, 0.4926377236843109, -0.7679793238639832, -1.0160894393920898, 0.5683804154396057, -0.007870116271078587, -0.19110465049743652, 0.47042131423950195, 0.41595345735549927, 0.10300751030445099, 1.1522002220153809, 0.6202356219291687, 0.1350509226322174, 0.7015190124511719, -0.17439424991607666, 0.1315867006778717, -0.8751332759857178, -0.29359832406044006, -0.15017756819725037, -0.31630682945251465, -0.6236495971679688, -0.7824652194976807, 0.37242943048477173, -0.17869701981544495, -0.22561924159526825, -0.058961980044841766, -0.6264014840126038, 0.6420639157295227, 0.6338050365447998, 0.297015517950058, 0.05871320143342018, 0.27536267042160034, -0.1845746785402298, -0.16852568089962006, -0.8074994683265686, -0.12390052527189255, 0.9985325932502747, 0.03005117177963257, 0.9391040205955505, 0.13052664697170258, 0.5029738545417786, -0.17544913291931152, -0.04973263293504715, -0.8962239623069763, 0.7342069745063782, -0.3978760540485382, -0.5240237712860107, -0.4702151417732239, -0.28135669231414795, -0.9112953543663025, 0.7179738879203796, -0.42521971464157104, -0.8218079209327698, 0.33017057180404663, 0.012213257141411304, -0.06518437713384628, 0.5537038445472717, -0.5267294645309448, 0.836911141872406, -0.2556169629096985, -0.5165941119194031, -0.3586004674434662, -0.6781550049781799, 0.3446274697780609, -0.13399375975131989, -0.14881247282028198, -0.28718405961990356, -0.23576761782169342, 0.6277397274971008, -0.4210832118988037, 1.0371601581573486, -0.15885698795318604, 0.44832637906074524, 0.19945122301578522, 0.117866151034832, 0.605624794960022, -0.15880340337753296, -0.16258586943149567, -0.02437134087085724, 0.08966697752475739, -0.6470324397087097, -0.7746277451515198, 0.39340850710868835, -0.591659426689148, -0.8058204650878906, -0.27779528498649597, -0.48093611001968384, -0.051233019679784775, 0.34116798639297485, 0.10120020806789398, 0.3535253405570984, -0.02212733030319214, 0.46613994240760803, 0.42981380224227905, -0.2745542526245117, 0.3146950602531433, 0.20180387794971466, -0.4946555495262146, -0.28120338916778564, 0.8757843375205994, 0.21553446352481842, 0.38455337285995483, 0.5013154745101929, 0.29884785413742065, -0.08729282021522522, -0.652625560760498, -0.4857724905014038, 0.14505288004875183, -1.075232744216919, -0.38434848189353943, -0.40565675497055054, -0.1619807332754135, 0.00038778752787038684, 0.07335370033979416, -0.5511261224746704, -0.8527550101280212, -0.21288356184959412, 0.033229049295186996, 0.414175420999527, 0.4537036418914795, 0.2585231363773346, 0.33039623498916626, -0.6493367552757263, 0.1205584704875946, 0.6074643135070801, 0.4690609872341156, 0.007139766588807106, -0.5466082692146301, -0.07152118533849716, -0.30503299832344055, -0.0473150834441185, -0.6611096262931824, 0.40182796120643616, 0.2609263062477112, 0.5499647855758667, 0.1353898048400879, -0.0024664856027811766, 0.746822714805603, -0.6457562446594238, 0.9683524966239929, 0.4415854513645172, -0.7055246829986572, 0.4881036579608917, -0.10182018578052521, 0.44908854365348816, 0.43519529700279236, 0.13728153705596924, -0.4318453073501587, -0.10804706811904907, -0.35122010111808777, -0.7769362330436707, 0.6933680176734924, 0.24618905782699585, 0.1511145532131195, 0.19413676857948303, 0.4038712978363037, 0.08235107362270355, 0.19198213517665863, -0.5344952344894409, -0.03498000279068947, -0.44383448362350464, -0.12676526606082916, 0.19804872572422028, -0.25216302275657654, -0.13474132120609283, -0.418648362159729, 0.41627588868141174, -0.44377604126930237, 0.29859891533851624, -0.020869746804237366, -0.24399027228355408, 0.24366675317287445, 0.026635119691491127, 0.4617882966995239, 0.7188760638237, -0.1912834495306015, 0.38233619928359985, 0.40222468972206116, -0.5487284660339355, 0.04615475982427597, -0.027869921177625656, 0.05833995342254639, -0.05473098158836365, 0.18372271955013275, 1.1359829902648926, 0.0748620480298996, -0.7430899143218994, 0.4750584065914154, -0.3843047022819519, -0.2870349884033203, -0.053778793662786484, 0.05751408636569977, 0.06948313117027283, 0.4665985405445099, 0.3629997968673706, 0.20272813737392426, -0.003175226738676429, -0.25829610228538513, 0.11644349992275238, 0.47327491641044617, -0.19726219773292542, -0.020466849207878113, 0.702364981174469, -0.026054782792925835, -0.14212578535079956, 0.8673252463340759, 0.09065735340118408, -0.46845975518226624, 0.6751677989959717, 0.47520291805267334, 0.5677920579910278, -0.14583155512809753, 0.17388026416301727, 0.2804681956768036, 0.3102850019931793, -0.04974009096622467, 0.057633474469184875, -0.056406326591968536, -0.6842557191848755, -0.5465595126152039, -0.81548672914505, -0.33673807978630066, -0.12120570242404938, -0.5042678713798523, 0.2832317352294922, -0.36927875876426697, -0.19296148419380188, 0.30901026725769043, -0.2473495602607727, -0.8299628496170044, -0.031209906563162804, 0.23163844645023346, 0.8424223065376282, -0.6013425588607788, 0.9715708494186401, 0.6261645555496216, -0.46887508034706116, -0.6005609035491943, -0.4423200488090515, -0.1895292103290558, -1.2977312803268433, 0.7756408452987671, 0.30438193678855896, -0.21887904405593872, -0.31426385045051575, -0.7290734052658081, -1.0006155967712402, 1.344342827796936, 0.5709415078163147, -0.7004783153533936, 0.11178023368120193, 0.2813071012496948, 0.36920732259750366, -0.5826118588447571, 0.06314653903245926, 0.4830430746078491, 0.3256773352622986, 0.4823988080024719, -0.8939405679702759, 0.2346387356519699, -0.23810364305973053, 0.28010693192481995, 0.2701045572757721, -0.8531087040901184, 0.7754706740379333, -0.12913285195827484, -0.0908074826002121, 0.11192067712545395, 0.3176521062850952, 0.153679758310318, 0.04096592962741852, 0.5523801445960999, 0.3767981231212616, 0.9608137011528015, -0.07734861224889755, 1.1435632705688477, -0.12943311035633087, 0.15178392827510834, 0.7876134514808655, 0.04049013927578926, 1.083537220954895, 0.8294822573661804, -0.4180389642715454, 0.15889891982078552, 0.6610584259033203, -0.3050075173377991, 0.5173345804214478, 0.09730570018291473, -0.12871749699115753, -0.5741225481033325, -0.14940936863422394, -0.12751351296901703, 0.525179386138916, 0.3777551054954529, -0.209764301776886, 0.16084939241409302, 0.19879165291786194, -0.34782111644744873, -0.38820046186447144, -0.2290397435426712, 0.4624357521533966, 0.11003854870796204, -0.6157780289649963, 0.8054084777832031, -0.16287747025489807, 0.49896299839019775, -0.5352369546890259, -0.10938826203346252, -0.23602977395057678, 0.010167892090976238, -0.23551560938358307, -0.7453774809837341, 0.1715555042028427, -0.3740617036819458, -0.09303689002990723, 0.021513350307941437, 0.9719294309616089, -0.18719877302646637, -0.8263834714889526, 0.013896170072257519, 0.3418210744857788, 0.14143705368041992, -0.19274140894412994, -0.6581094861030579, 0.25050944089889526, 0.10284677892923355, -0.3685653805732727, 0.46928152441978455, 0.4687119424343109, -0.2133740484714508, 0.7445184588432312, 0.6921901106834412, -0.18496035039424896, 0.3979293406009674, 0.3092920184135437, 1.1628189086914062, -0.6965981721878052, -0.21790896356105804, -0.7466151714324951, 0.5599840879440308, -0.07974457740783691, -0.03429169952869415, 0.3239215314388275, 0.28647661209106445, 0.476877361536026, -0.09009655565023422, 0.5483326315879822, 0.19180485606193542, -0.21221652626991272, -0.7554174065589905, 0.42685988545417786, -0.860490083694458, 0.2751517593860626, 0.17803514003753662, -0.945667564868927, -0.5959984064102173, 0.6844622492790222, -0.15522822737693787, -0.22212904691696167, 0.5849415063858032, 0.7345166802406311, -0.18757058680057526, -0.0654616430401802, 0.6607924699783325, 0.07620549201965332, 0.5452380776405334, 0.511202335357666, 1.020796537399292, -0.3216313123703003, 0.9091768264770508, -0.08738832175731659, -0.06779812276363373, -0.3975377082824707, -0.7823644280433655, -0.9543023109436035, -0.5040477514266968, -0.16061224043369293, -0.1159893348813057, -0.0011763632064685225, 0.6370775103569031, 0.8859252333641052, -0.4788627624511719, 0.03661256283521652, 0.09236318618059158, 0.006190369836986065, -0.14484821259975433, -0.14144901931285858, 0.4687950909137726, -0.3673241138458252, -0.4689069092273712, 0.20933210849761963, 0.3765811026096344, 0.0026771239936351776, -0.30253860354423523, 0.0007046499522402883, 0.017232615500688553, 0.004606807604432106, 0.8924729228019714, 0.025711817666888237, -0.9770777821540833, -0.3750869631767273, 0.27660876512527466, 0.10411274433135986, 0.3834242820739746, 0.6280094981193542, -0.87531977891922, 0.7912206053733826, 0.4335481524467468, 0.8396600484848022, 1.4419605731964111, -0.3606005907058716, 0.3381292521953583, -0.8352744579315186, 0.4115912914276123, 0.19783061742782593, 0.47054392099380493, 0.33964553475379944, -0.13397599756717682, 0.6660420894622803, 0.07481023669242859, -0.4296503961086273, -0.8313687443733215, 0.38562893867492676, -1.1209427118301392, -0.3484634459018707, 0.8553584218025208, 0.1277589052915573, -0.4811229109764099, 0.37684327363967896, -0.4176308214664459, -0.03372026979923248, -0.36658936738967896, 0.47031649947166443, 0.6956570744514465, -0.4469485580921173, -0.4684438705444336, -0.8419488072395325, 0.2716032564640045, 0.6229383945465088, -0.357446551322937, -0.045839421451091766, 0.2964555025100708, 0.15024667978286743, 0.22674447298049927, 0.5019830465316772, -0.09608031064271927, 0.23435910046100616, 0.32708799839019775, -0.07383417338132858, -0.05502089112997055, -0.2344081997871399, -0.16756296157836914, 0.11555827409029007, 0.24444763362407684, -0.46991392970085144 ]
http://arxiv.org/abs/2405.19313v1
http://arxiv.org/pdf/2405.19313v1
Language Models Trained to do Arithmetic Predict Human Risky and Intertemporal Choice
2024-05-29T17:37:14
2024-05-29T17:37:14
Jian-Qiao Zhu, Haijiang Yan, Thomas L. Griffiths
cs.AI
cs.AI, cs.CL, econ.GN, q-fin.EC
The observed similarities in the behavior of humans and Large Language Models (LLMs) have prompted researchers to consider the potential of using LLMs as models of human cognition. However, several significant challenges must be addressed before LLMs can be legitimately regarded as cognitive models. For instance, LLMs are trained on far more data than humans typically encounter, and may have been directly trained on human data in specific cognitive tasks or aligned with human preferences. Consequently, the origins of these behavioral similarities are not well understood. In this paper, we propose a novel way to enhance the utility of LLMs as cognitive models. This approach involves (i) leveraging computationally equivalent tasks that both an LLM and a rational agent need to master for solving a cognitive problem and (ii) examining the specific task distributions required for an LLM to exhibit human-like behaviors. We apply this approach to decision-making -- specifically risky and intertemporal choice -- where the key computationally equivalent task is the arithmetic of expected value calculations. We show that an LLM pretrained on an ecologically valid arithmetic dataset, which we call Arithmetic-GPT, predicts human behavior better than many traditional cognitive models. Pretraining LLMs on ecologically valid arithmetic datasets is sufficient to produce a strong correspondence between these models and human decision-making. Our results also suggest that LLMs used as cognitive models should be carefully investigated via ablation studies of the pretraining data.
[ -0.3984256684780121, -0.8201919794082642, 0.7176375389099121, 0.05952144041657448, -0.10855913907289505, 0.06240690127015114, -0.45398712158203125, -0.5371937155723572, 0.014996347948908806, 0.623565673828125, -0.6191239953041077, -0.20871473848819733, -0.5461453199386597, -0.08125858753919601, -0.0878555178642273, 0.649232029914856, 0.21511568129062653, 0.3018050789833069, -0.46367084980010986, 0.05716332420706749, -0.23697614669799805, -0.8715622425079346, -0.8979162573814392, -0.6318948268890381, 0.41070449352264404, 0.08538636565208435, 0.9159972667694092, 0.38436803221702576, 0.49847379326820374, 0.4261826276779175, 0.2843243181705475, -0.1264154613018036, -0.4465644359588623, -0.2890683114528656, -0.18179701268672943, -0.7127113342285156, -0.33111095428466797, 0.34105491638183594, 0.2581787705421448, 0.8568917512893677, -0.35751843452453613, 0.08621887862682343, -0.07279381155967712, 0.731476366519928, -0.46912992000579834, 0.39419999718666077, -0.79827880859375, -0.07767965644598007, -0.11665146052837372, -0.32310110330581665, -0.42152461409568787, -0.37275993824005127, 0.0012794265057891607, -0.6749497652053833, -0.08034098148345947, 0.11262337118387222, 0.3431906998157501, 0.44626227021217346, -0.44779741764068604, -0.35802724957466125, -0.7393476963043213, 0.7600113749504089, -0.6787458062171936, 0.2389877885580063, 0.6819232702255249, 0.07618694007396698, -0.2569485008716583, -0.31466975808143616, -0.7059083580970764, -0.4651477038860321, -0.12769116461277008, -0.06666810810565948, -0.09636370837688446, 0.3454187214374542, 0.36518192291259766, 0.07803548872470856, -0.2844391465187073, 0.2519747018814087, -0.38116803765296936, -0.19240890443325043, 0.6496939063072205, 0.5114208459854126, 0.47798073291778564, 0.06720167398452759, -0.21168503165245056, -0.15606197714805603, -0.8459555506706238, 0.34857696294784546, 0.5801001787185669, 0.24363762140274048, 0.10243061184883118, 0.7808587551116943, -0.22178345918655396, 0.6270923614501953, -0.09543191641569138, 0.028180832043290138, 0.027755621820688248, 0.012082795612514019, -0.10605516284704208, 0.08426998555660248, 0.5083067417144775, 0.3457035422325134, 0.7109094262123108, 0.09315060079097748, -0.19779974222183228, 0.6163812875747681, 0.4560070335865021, -0.6851527690887451, -0.23945441842079163, 0.03790465369820595, -0.1286173313856125, -0.577975332736969, -0.2716478407382965, -0.36938774585723877, -0.04276174306869507, -0.7679470181465149, 0.5193571448326111, -0.4873706102371216, -0.1869814246892929, 0.3861233592033386, 0.24469177424907684, -0.06906267255544662, 0.2869083285331726, -1.0782417058944702, 0.4498206079006195, 0.9307679533958435, 0.6165751814842224, -0.08184371143579483, -0.33113667368888855, -0.28020957112312317, -0.023621436208486557, -0.5610815286636353, 0.7475631833076477, -0.7616629004478455, -0.4021829664707184, -0.25418809056282043, -0.31709182262420654, -0.005926106590777636, -0.45234283804893494, 0.453389436006546, -0.7587675452232361, 0.05668080598115921, -0.26943713426589966, -0.5340796113014221, -0.4474797248840332, 0.45794132351875305, -0.7021806240081787, 0.8412470817565918, 0.06844762712717056, -0.7229296565055847, 0.2886412441730499, -0.7513797879219055, -0.28908082842826843, 0.06152822822332382, -0.3021697402000427, -0.3467576503753662, 0.11263411492109299, 0.06619604676961899, 0.29043248295783997, -0.3382989764213562, 0.20610181987285614, -0.6744871139526367, -0.12441189587116241, 0.7073599100112915, -0.6390208005905151, 1.0686969757080078, 0.12105672806501389, -0.06851840019226074, -0.0015411467757076025, -0.3672599792480469, 0.1864021122455597, 0.1210719496011734, -0.41938266158103943, -0.6254597306251526, 0.22407807409763336, -0.5781868100166321, 0.41133007407188416, 0.27360808849334717, -0.4717836380004883, -0.014501219615340233, -0.38195911049842834, 0.48504653573036194, 1.0159633159637451, -0.05463332310318947, 0.4123684763908386, -0.7780993580818176, 0.5029194951057434, -0.28842514753341675, 0.07652914524078369, 0.12092775106430054, -0.253172904253006, -0.7074407339096069, -0.2812199592590332, -0.04063737764954567, 0.657432496547699, -0.7901174426078796, 0.27926167845726013, -0.3549613356590271, -0.3290579617023468, -0.2268332690000534, -0.13340942561626434, 0.23344017565250397, 0.48820602893829346, 0.14285166561603546, -0.27805817127227783, -0.3691694140434265, -0.5089960098266602, -0.37359219789505005, -0.4255320727825165, -0.1092919185757637, 0.46840113401412964, 0.24931809306144714, -0.08652603626251221, 0.8882195353507996, -0.5055805444717407, 0.08674133569002151, 0.1430727243423462, 0.25296977162361145, 0.18008935451507568, 0.40102308988571167, 0.28917887806892395, -0.7951578497886658, -0.21187622845172882, -0.18377657234668732, -0.688992440700531, -0.02657376416027546, -0.08884762972593307, -0.1494455486536026, 0.13642393052577972, 0.5339318513870239, -0.748759388923645, 0.2924148440361023, 0.48145434260368347, -0.2854920029640198, 0.5756335854530334, -0.2982412576675415, 0.15498629212379456, -0.5581507682800293, -0.19471091032028198, -0.07760892063379288, -0.11514605581760406, -0.6353582739830017, -0.06109928339719772, -0.01954762451350689, 0.011795789934694767, -0.49892929196357727, 0.4756660461425781, -0.35023266077041626, -0.27047720551490784, -0.16622622311115265, -0.2570033371448517, -0.31845206022262573, 0.6569344997406006, 0.19545906782150269, 0.8355913758277893, 0.37884601950645447, -0.5315847992897034, 0.16880300641059875, -0.002308543771505356, -0.44265562295913696, 0.5190336108207703, -0.45627090334892273, 0.2283979207277298, -0.3429739475250244, 0.1461368203163147, -0.9222519397735596, -0.002202922711148858, 0.009144711308181286, -0.5056142807006836, 0.051721155643463135, -0.006699211895465851, -0.34139811992645264, -0.21044018864631653, -0.26965516805648804, 0.6091927289962769, 0.6238335967063904, -0.31227290630340576, 0.71009361743927, 0.49127042293548584, -0.6293578147888184, -0.3730250597000122, -0.5887988209724426, -0.0614667646586895, -0.46764200925827026, -0.5672586560249329, 0.17035047709941864, -0.30855032801628113, -0.620703399181366, -0.0033795200288295746, 0.08521997183561325, 0.13520662486553192, 0.1758975088596344, 0.4038688540458679, 0.9802294373512268, -0.023686449974775314, 0.14345835149288177, -0.24914643168449402, -0.39104798436164856, 0.43666940927505493, -0.47406768798828125, 0.5046660900115967, -0.1304652988910675, -0.5780650973320007, 0.16210734844207764, 0.025633851066231728, 0.3798222541809082, -0.21258337795734406, 0.448914110660553, 0.2219059318304062, -0.49128201603889465, 0.05310031399130821, -0.5541067719459534, -0.2999429702758789, -0.5440982580184937, 0.32176119089126587, -0.1631755381822586, -0.8417945504188538, 0.022719455882906914, -0.2610679864883423, 0.09048271924257278, 0.1583297997713089, 0.7347906827926636, -0.28958380222320557, 1.0473774671554565, 0.47040992975234985, 0.06685781478881836, 0.6285214424133301, -0.19110310077667236, -0.0586252436041832, -0.7940089702606201, -0.08689618110656738, -0.2568412721157074, -0.1694483458995819, -0.5479201078414917, -0.7511903643608093, 0.5978905558586121, -0.17787091434001923, -0.7198168635368347, -0.12372174113988876, -0.21497803926467896, 0.7795592546463013, 0.3374027907848358, 0.28230226039886475, 0.27605506777763367, 0.12015772610902786, -0.1877356469631195, -0.07058592885732651, -0.43243682384490967, -0.666804313659668, 1.3032307624816895, -0.0802597850561142, 0.7637315392494202, 0.03547774255275726, 0.4585309624671936, 0.3229610025882721, 0.7455180287361145, -0.6516739130020142, 0.7227368354797363, -0.27915236353874207, -0.7316856980323792, -0.6506447196006775, -0.50444495677948, -1.08512544631958, 0.4388628602027893, -0.4940935969352722, -0.8085899353027344, -0.07873795926570892, 0.13530749082565308, -0.44738927483558655, 0.2422676980495453, -0.5195314288139343, 0.5502604842185974, -0.7192579507827759, -0.23385748267173767, -0.7861698865890503, -0.5287741422653198, 0.4800983965396881, -0.2367589920759201, 0.5083420276641846, -0.4629618525505066, -0.3422338664531708, 0.5375604629516602, -0.32734736800193787, 0.9672828316688538, 0.0106055224314332, 0.08951243758201599, 0.27741754055023193, 0.18410584330558777, 0.7355480790138245, -0.013050752691924572, -0.35373619198799133, 0.32212701439857483, -0.19480182230472565, -0.386811763048172, -0.5099602937698364, 0.6613473892211914, -0.9788821935653687, -0.7414864301681519, -0.5553604960441589, -0.5488772988319397, -0.3974732458591461, 0.18700934946537018, 0.06260139495134354, 0.35009586811065674, -0.38939860463142395, -0.11783070862293243, 0.5956007242202759, -0.10145695507526398, 0.3505516052246094, 0.7696767449378967, -0.24471858143806458, -0.3923574388027191, 0.8206687569618225, 0.07719673961400986, 0.5650326013565063, 0.5240454077720642, 0.23376648128032684, -0.44492107629776, -0.5760306119918823, -0.07297216355800629, 0.11018852144479752, -0.662505030632019, -0.035947758704423904, -0.6352311372756958, -0.11125727742910385, 0.11683753877878189, -0.3612452745437622, -0.08529344201087952, -0.40560227632522583, -0.29136088490486145, -0.32753807306289673, 0.3057299852371216, 0.6242018342018127, -0.25322309136390686, 0.11049669235944748, -0.6738157868385315, 0.382683128118515, 0.6745038628578186, 0.16484692692756653, 0.11265616863965988, -0.262665331363678, -0.047917697578668594, 0.5232115387916565, -0.07889251410961151, -0.47807154059410095, 0.5213784575462341, 0.025726012885570526, 0.5445336699485779, 0.20876522362232208, 0.08790834993124008, 0.5244883298873901, -0.49501222372055054, 0.3707883358001709, 0.20992213487625122, -0.7948585152626038, 0.06400720030069351, -0.4189906418323517, -0.12820099294185638, 0.486461341381073, 0.623745858669281, -0.4519091844558716, -0.01424643024802208, -0.6221629977226257, -0.6168188452720642, 0.7481591701507568, 0.20646008849143982, 0.13631340861320496, -0.04343129321932793, 0.25623393058776855, 0.05574767664074898, 0.11887034773826599, -0.6347782611846924, 0.12481000274419785, 0.015796950086951256, -0.09558737277984619, -0.4988114535808563, 0.07695666700601578, -0.10953167825937271, -0.13983824849128723, 0.5712159276008606, -0.1285851150751114, 0.09363986551761627, -0.08544198423624039, -0.1854039430618286, -0.35500022768974304, 0.16001273691654205, 0.26104551553726196, 0.31809669733047485, -0.11793819814920425, 0.3003405034542084, 0.48253124952316284, -0.39188772439956665, 0.4381101131439209, -0.0037904963828623295, 0.0326412208378315, -0.6628021001815796, 0.3046345114707947, 0.6074281334877014, 0.38808539509773254, -0.8860023617744446, 0.34645313024520874, -0.11182884126901627, 0.020772339776158333, -0.6020084619522095, 0.26577314734458923, 0.45484495162963867, 0.21283702552318573, 0.06631521880626678, 0.33355793356895447, 0.1114775612950325, -0.7269558906555176, 0.049569837749004364, 0.6353573203086853, -0.19979976117610931, -0.3707302510738373, 0.4587556719779968, 0.1987169235944748, -0.5309926271438599, 0.9199241995811462, -0.220868781208992, -0.5412819981575012, 0.7380058169364929, 0.4030000567436218, 0.7435727119445801, -0.10361350327730179, 0.042876940220594406, 0.2307083010673523, 0.29649868607521057, -0.13147331774234772, 0.25177109241485596, 0.04877103865146637, -1.048340082168579, -0.5260698199272156, -0.6018567681312561, -0.4808104932308197, -0.15078499913215637, -0.479052871465683, 0.2801680862903595, -0.35507234930992126, -0.29449132084846497, 0.026048168540000916, 0.07247883826494217, -0.7888592481613159, 0.1862570345401764, 0.4630160629749298, 0.5576798915863037, -0.8130368590354919, 0.9026663303375244, 0.6193902492523193, -0.15205024182796478, -0.7713390588760376, -0.15748538076877594, 0.018781084567308426, -1.2624163627624512, 0.5735342502593994, 0.10757530480623245, -0.17938768863677979, 0.11549527198076248, -0.3652588427066803, -0.9523606300354004, 1.1611204147338867, 0.570511519908905, -0.6622823476791382, -0.012990470044314861, 0.4392552971839905, 0.52472984790802, -0.46113288402557373, 0.25219839811325073, 0.6217019557952881, 0.45341742038726807, 0.17785075306892395, -0.5928733348846436, 0.09460614621639252, -0.1703127920627594, -0.027922382578253746, 0.49415022134780884, -0.6252706050872803, 1.19273841381073, -0.6860815286636353, -0.21270467340946198, -0.1758774071931839, 0.34889915585517883, 0.5255019068717957, 0.3046707808971405, 0.8955487608909607, 0.6156266331672668, 0.766315221786499, 0.11216599494218826, 0.9902023077011108, -0.3803350031375885, 0.1783847063779831, 0.939832866191864, -0.3223840594291687, 0.9368054270744324, 0.2643640637397766, -0.6057655811309814, 0.3588998019695282, 0.6766038537025452, 0.5083149075508118, 0.3977556526660919, 0.29923030734062195, -0.5176593661308289, -0.5838578343391418, 0.1429467499256134, 0.047018490731716156, 0.30835384130477905, 0.8922906517982483, 0.12624381482601166, 0.025731569156050682, -0.19199775159358978, -0.0958186611533165, 0.022305035963654518, -0.3606164753437042, 0.9216841459274292, 0.17836466431617737, -0.8531811833381653, 0.3239869773387909, -0.20850419998168945, 0.6898971796035767, -0.6286284923553467, 0.0199781134724617, 0.13819532096385956, 0.04057174175977707, -0.10592460632324219, -0.8247090578079224, 0.2721354365348816, -0.17524217069149017, 0.11064120382070541, -0.14621049165725708, 0.7047261595726013, -0.41944214701652527, -0.7230096459388733, 0.12285628169775009, 0.46992284059524536, 0.10614291578531265, -0.19609740376472473, -0.6227314472198486, -0.23617538809776306, 0.07326628267765045, -0.2195432186126709, 0.4958268105983734, 0.5002280473709106, -0.4160989820957184, 0.8352590799331665, 1.229413390159607, 0.21519578993320465, 0.031004127115011215, -0.2517520487308502, 0.8101817965507507, -0.8899502158164978, -0.7174205183982849, -1.159766674041748, 0.23644420504570007, 0.16499367356300354, 0.11084084212779999, 0.2319873422384262, 0.36974120140075684, 0.8048367500305176, 0.03921441733837128, 0.9649022817611694, 0.21481359004974365, 0.11292823404073715, -0.6927720904350281, 0.29891467094421387, -0.1757650226354599, 0.4180677533149719, 0.10602941364049911, -0.7758920788764954, 0.029248028993606567, 0.5351741313934326, -0.6954799890518188, 0.1325267106294632, 0.6080151200294495, 0.8385453224182129, 0.07222592085599899, 0.24505040049552917, 0.34586745500564575, 0.08056085556745529, 0.3162369430065155, 0.7829729914665222, 1.0569301843643188, 0.28874149918556213, 0.3540976941585541, -0.3792140483856201, -0.3644847869873047, -0.2638148069381714, -1.005208969116211, -0.8519665002822876, -0.4112148880958557, 0.05753369256854057, 0.08832242339849472, -0.009664650075137615, 1.32619309425354, 0.5769957900047302, -0.37844318151474, -0.3181591331958771, -0.20346097648143768, 0.0119828125461936, -0.0876709446310997, -0.1279367357492447, 0.07527823746204376, -0.2448117434978485, -0.5794234275817871, 0.08755654841661453, 0.38094717264175415, 0.4268471300601959, -0.3470652103424072, -0.20442675054073334, 0.051536355167627335, 0.6069932579994202, 0.6856644153594971, 0.17518338561058044, -0.6115794777870178, -0.2154557704925537, -0.13621565699577332, -0.14583031833171844, 0.09823807328939438, 0.9983617067337036, -0.9107367396354675, 0.2748464047908783, 0.373695433139801, 0.4754837155342102, 0.605673611164093, 0.010845753364264965, 0.577114462852478, -0.22334612905979156, 0.28001585602760315, 0.46094363927841187, 0.4676969051361084, 0.39229169487953186, -0.46737855672836304, 0.6254372596740723, -0.08128059655427933, -0.6014171242713928, -0.456586629152298, 0.2893935739994049, -0.745974600315094, -0.2840084433555603, 0.9965528845787048, -0.15902915596961975, -0.18892614543437958, -0.07657866925001144, -0.34167900681495667, 0.03106014057993889, -0.3706091046333313, 1.036004900932312, 0.7125301957130432, -0.27889466285705566, 0.17217648029327393, -0.5459696054458618, 0.3818642795085907, 0.39599400758743286, -0.968928873538971, 0.27676689624786377, 0.44628578424453735, 0.36079728603363037, -0.013602424412965775, 0.8442463874816895, -0.0731123611330986, 0.27957579493522644, 0.07778697460889816, 0.05540573224425316, -0.1534435749053955, 0.017992286011576653, -0.21458855271339417, -0.1780884712934494, 0.3492733836174011, 0.07322312146425247 ]
http://arxiv.org/abs/2405.19299v1
http://arxiv.org/pdf/2405.19299v1
Expert-Guided Extinction of Toxic Tokens for Debiased Generation
2024-05-29T17:26:52
2024-05-29T17:26:52
Xueyao Sun, Kaize Shi, Haoran Tang, Guandong Xu, Qing Li
cs.CL
cs.CL
Large language models (LLMs) can elicit social bias during generations, especially when inference with toxic prompts. Controlling the sensitive attributes in generation encounters challenges in data distribution, generalizability, and efficiency. Specifically, fine-tuning and retrieval demand extensive unbiased corpus, while direct prompting requires meticulously curated instructions for correcting the output in multiple rounds of thoughts but poses challenges on memory and inference latency. In this work, we propose the Expert-Guided Extinction of Toxic Tokens for Debiased Generation (EXPOSED) to eliminate the undesired harmful outputs for LLMs without the aforementioned requirements. EXPOSED constructs a debiasing expert based on the abundant toxic corpus to expose and elicit the potentially dangerous tokens. It then processes the output to the LLMs and constructs a fair distribution by suppressing and attenuating the toxic tokens. EXPOSED is evaluated on fairness benchmarks over three LLM families. Extensive experiments demonstrate that compared with other baselines, the proposed EXPOSED significantly reduces the potential social bias while balancing fairness and generation performance.
[ -0.09984787553548813, -0.9438625574111938, 0.4581829607486725, 0.06049726903438568, -0.2711756229400635, 0.3157234489917755, -0.3743159770965576, -0.342912495136261, -0.14843638241291046, 0.7673331499099731, -0.4880922734737396, -0.4672207236289978, -0.8332723379135132, -0.15649278461933136, -0.2697138786315918, 0.9688608646392822, 0.3311951458454132, -0.3192344009876251, -0.008208917453885078, 0.07613275200128555, -0.47474321722984314, -0.28737759590148926, -1.0515145063400269, -0.21224233508110046, 0.4174146056175232, 0.6388710141181946, 0.7486889958381653, 0.7426764965057373, 0.18902181088924408, 0.28587520122528076, -0.651980996131897, 0.10494887083768845, -1.0237746238708496, 0.25494664907455444, -0.4804104268550873, -0.3916003406047821, -0.4090353548526764, -0.028209872543811798, 0.21853652596473694, 0.7948077917098999, -0.0524410605430603, 0.25362876057624817, 0.3406184911727905, 0.6619219779968262, -0.8603577017784119, -0.05156237259507179, -1.3000849485397339, 0.1098480075597763, -0.06611964106559753, -0.3474813997745514, -0.8200502395629883, -0.4497770369052887, -0.13892370462417603, -0.5433539152145386, 0.20021164417266846, -0.1366322636604309, 0.22214296460151672, 0.48559823632240295, -0.4657188653945923, -0.04188616946339607, -0.8365277647972107, 0.9065483808517456, -0.6466304063796997, -0.21375787258148193, 0.33007195591926575, 0.07577987015247345, -0.4719524383544922, -0.44218239188194275, -0.3956044614315033, 0.07114561647176743, 0.061655085533857346, 0.1688433736562729, -0.4023823142051697, 0.18595285713672638, 0.14130395650863647, 0.010574966669082642, -0.1288045048713684, 0.5183262825012207, -0.2720661461353302, -0.3804183006286621, 0.5470327138900757, 0.10812295973300934, 0.13498374819755554, -0.29778939485549927, -0.37207698822021484, 0.2763703465461731, -1.0235673189163208, -0.5296913385391235, 0.7023417353630066, 0.21024902164936066, 0.07295091450214386, 0.3594617247581482, -0.3149946928024292, 0.2553001344203949, 0.30266454815864563, 0.27720123529434204, 0.2965109944343567, -0.006173774600028992, 0.013740884140133858, 0.14920316636562347, 0.488033264875412, 0.5998256206512451, 0.39733603596687317, -0.12067299336194992, -0.15071813762187958, 0.03357229754328728, -0.01148153468966484, -0.687192440032959, -0.12133163958787918, 0.11890454590320587, -0.5387061834335327, -0.7894788384437561, -0.4725548326969147, -1.056604266166687, -0.8844159245491028, -0.01598656177520752, 0.3401462733745575, -0.16855153441429138, -0.44245344400405884, 0.11201703548431396, -0.3596741855144501, -0.22383207082748413, 0.11720574647188187, -0.9042811989784241, 0.06294404715299606, 0.6455899477005005, 0.4771788418292999, 0.05432615801692009, 0.18397191166877747, -0.8991473913192749, 0.471889853477478, -0.13895083963871002, 0.5708733797073364, -0.8623442053794861, -0.46708062291145325, 0.0589197613298893, -0.25311532616615295, 0.25538092851638794, -0.730621874332428, 0.7424659729003906, -0.5201475024223328, 0.13764461874961853, -0.3665188252925873, -0.28974735736846924, -0.06309347599744797, -0.19133172929286957, -0.21350081264972687, 0.821592390537262, 0.10851862281560898, -0.8362475633621216, 0.4762083888053894, -0.4659280478954315, -0.283552885055542, 0.30564233660697937, -0.03177720680832863, -0.2533957064151764, 0.13283422589302063, 0.3140644133090973, 0.3122408986091614, 0.011672284454107285, 0.45455774664878845, -0.750346839427948, -0.32387781143188477, -0.16426822543144226, -0.9457792639732361, 1.0845026969909668, 0.7147936820983887, -0.8615007996559143, 0.14673878252506256, -0.9399700164794922, -0.17559103667736053, -0.06715250760316849, -0.16337533295154572, -0.6070588827133179, 0.17720142006874084, -0.036314114928245544, 0.15522433817386627, -0.22675298154354095, -0.6736922860145569, -0.18470007181167603, -0.6111882925033569, 0.5483222603797913, 1.4256138801574707, 0.3845137357711792, 0.557003915309906, -0.29714807868003845, 0.42665061354637146, 0.11345166712999344, 0.4912723898887634, 0.299094021320343, -0.2560657560825348, -0.7308530211448669, -0.4101467728614807, -0.05046292766928673, 0.3048080503940582, -0.8503307700157166, 0.6312777400016785, -0.3065408170223236, -0.4485137462615967, -0.44785258173942566, 0.21217580139636993, 0.4392606317996979, 0.8223767280578613, 0.1406545639038086, -0.0004599631065502763, -0.3529469668865204, -1.1120556592941284, -0.46016454696655273, -0.1766076236963272, -0.1601645052433014, 0.23188602924346924, 0.09588592499494553, -0.2719952464103699, 0.8129795789718628, -0.49397581815719604, -0.06729023903608322, -0.08685321360826492, 0.1753997653722763, -0.04901185259222984, 0.46007239818573, 0.5668622255325317, -0.49395865201950073, -0.3262981176376343, -0.29853540658950806, -0.4268253743648529, -0.615250289440155, -0.1927608996629715, -0.478790819644928, 0.1890610307455063, 0.4850701093673706, -0.2843617796897888, 0.45919087529182434, 0.21200621128082275, -0.38604095578193665, 0.35208356380462646, -0.1302838772535324, -0.12523798644542694, -0.9005760550498962, 0.19105856120586395, -0.2770034074783325, -0.3156419098377228, -0.4713124632835388, 0.12333252280950546, -0.18823128938674927, 0.1131771132349968, -0.6259180903434753, 0.6845336556434631, -0.4367823600769043, 0.14706218242645264, -0.20594777166843414, 0.20614609122276306, -0.024004071950912476, 0.24091117084026337, -0.1527508944272995, 0.6025024056434631, 0.38525548577308655, -0.5416525602340698, -0.05511205270886421, 0.4239235818386078, -0.15353122353553772, 0.3986082673072815, -0.37853044271469116, 0.2794826328754425, -0.48961108922958374, 0.1214682087302208, -0.7383571267127991, 0.07185530662536621, 0.4254988729953766, -0.247076153755188, 0.10506929457187653, 0.00024901118013076484, -0.3843311369419098, -0.39387041330337524, -0.5709090828895569, 0.2295086681842804, 0.7008435130119324, -0.5307256579399109, 0.4454832971096039, 0.38455191254615784, -0.3684173822402954, -0.8797301054000854, -0.5205919146537781, 0.20396029949188232, -0.4818449020385742, -0.2769794464111328, 0.1339772641658783, -0.33318743109703064, -0.4540017545223236, 0.12382181733846664, -0.008880553767085075, 0.23208242654800415, 0.3638461232185364, 0.36183393001556396, 0.08271859586238861, 0.09497550874948502, 0.31962183117866516, 0.4756911098957062, -0.17384175956249237, 0.3014698028564453, 0.2176716923713684, 0.41467341780662537, 0.44641736149787903, -0.26239919662475586, 0.07669417560100555, 0.35805368423461914, 0.5985701084136963, -0.13774067163467407, 0.6654050946235657, 0.5136504173278809, -0.3948354721069336, -0.4597483277320862, -0.6733211278915405, -0.1485513150691986, -0.6073154211044312, 0.3605915307998657, -0.009909885935485363, -0.6447285413742065, 0.7445374727249146, -0.05472211539745331, 0.20616742968559265, 0.5643532276153564, 0.6875116229057312, 0.42772871255874634, 1.038089632987976, 0.3900354206562042, -0.22381435334682465, 0.410885751247406, -0.10011105239391327, 0.12360600382089615, -0.7277371883392334, -0.24282118678092957, -0.4206638038158417, -0.2682449519634247, -0.34223857522010803, -0.09886369854211807, 0.3850513696670532, -0.1490923911333084, -0.49096447229385376, -0.26607123017311096, -0.8454650640487671, 0.6155633926391602, 0.6821439266204834, 0.7478824853897095, 0.4095092713832855, 0.002210993552580476, -0.05682102218270302, 0.22074361145496368, -0.5117815136909485, -0.5662024021148682, 1.1137521266937256, 0.4219941198825836, 0.804201602935791, 0.048475231975317, 0.8735456466674805, 0.5056861042976379, 0.6131761074066162, -0.4570980370044708, 0.673220157623291, -0.23393456637859344, -0.9393055438995361, -0.25099438428878784, -0.5602726936340332, -0.6469821929931641, 0.025571389123797417, -0.23799027502536774, -0.589239239692688, 0.33211082220077515, 0.24730917811393738, -0.588263988494873, 0.43912196159362793, -0.8637281656265259, 0.4145341217517853, 0.0420176200568676, -0.750531017780304, -0.5933239459991455, -0.5422041416168213, 0.4552800953388214, -0.44368404150009155, 0.5151556730270386, -0.24880576133728027, -0.044934362173080444, 0.6734408140182495, -0.44153881072998047, 1.1377617120742798, -0.6021917462348938, -0.02612842619419098, 0.4018031656742096, 0.27212804555892944, 0.6862823367118835, 0.08813793957233429, -0.6540868878364563, -0.14471660554409027, -0.43531280755996704, -0.38047221302986145, -0.21795247495174408, 0.8952435851097107, -0.6674139499664307, -0.9920738935470581, -0.06394217163324356, -0.5094174742698669, -0.2510027289390564, 0.44111213088035583, 0.10094166547060013, 0.30077001452445984, -0.09360381215810776, 0.1602659970521927, 0.5702703595161438, -0.7581772804260254, 0.5050086975097656, 0.5193268060684204, 0.19707857072353363, -0.4200684726238251, 0.6726493835449219, 0.019243275746703148, 0.551404595375061, -0.01564858853816986, 0.4664371907711029, -0.3312268555164337, -0.9764195084571838, -0.1841028481721878, -0.07884805649518967, -0.9633235335350037, -0.39671945571899414, -0.8088788986206055, 0.0749647244811058, -0.4128635823726654, -0.15970249474048615, -0.048625729978084564, -0.33919376134872437, -0.6064311265945435, -0.6275339126586914, 0.5413480401039124, 0.7786021828651428, -0.31116220355033875, 0.36886268854141235, -0.6549665927886963, 0.2868415117263794, 0.18885788321495056, 0.5042605400085449, 0.16310636699199677, -0.7975240349769592, 0.3245757818222046, 0.26437970995903015, -0.3546726107597351, -0.6361461877822876, 0.34921202063560486, 0.1081940159201622, 0.733931839466095, 0.682746410369873, 0.6626977920532227, 0.6716302633285522, -0.3570813238620758, 0.5474688410758972, 0.015256407670676708, -0.9666487574577332, 0.3565966784954071, -0.6803322434425354, -0.05617169290781021, 0.6457148790359497, 0.12762729823589325, -0.40700671076774597, -0.922240138053894, -0.5669974088668823, -0.9914843440055847, 0.5578229427337646, 0.001596243353560567, 0.49360135197639465, -0.3883870244026184, 0.577293336391449, 0.5649531483650208, 0.236057847738266, -0.5659605264663696, -0.26903852820396423, 0.0887136161327362, -0.35415729880332947, 0.09226389229297638, -0.6764587759971619, -0.04975521191954613, -0.2433861792087555, 0.6391371488571167, 0.15913699567317963, -0.11344430595636368, 0.0827416479587555, -0.14515715837478638, -0.49142545461654663, 0.3359338641166687, 0.2887558341026306, 0.5140539407730103, -0.1898530274629593, 0.28524208068847656, 0.18040134012699127, -0.3295740485191345, 0.13818545639514923, -0.20636071264743805, -0.5912885665893555, -0.2985091507434845, 0.25287771224975586, 0.46349626779556274, 0.33103570342063904, -0.4720013439655304, 0.45181089639663696, 0.2855278253555298, -0.12018978595733643, -0.2884494662284851, 0.16050900518894196, 0.08987198024988174, 0.0806596428155899, 0.4545000195503235, 0.2256575971841812, 0.2241707295179367, -0.5699957013130188, 0.4350340962409973, 0.516798198223114, -0.14581331610679626, -0.20930927991867065, 1.1023448705673218, 0.5865690112113953, -0.0047733536921441555, 0.4466806948184967, -0.19601181149482727, -0.5487958192825317, 0.5668334364891052, 0.39587298035621643, 0.9712750315666199, -0.18314670026302338, 0.3707598149776459, 0.34417030215263367, 0.32679903507232666, 0.22943347692489624, 0.1844676434993744, 0.37321943044662476, -0.637670636177063, -0.25762566924095154, -0.4875521957874298, -0.16485722362995148, 0.25484636425971985, -0.5057994723320007, 0.205813929438591, -0.44793882966041565, -0.08324608951807022, 0.22677454352378845, -0.17004132270812988, -0.7165177464485168, -0.15406985580921173, 0.15495866537094116, 0.8940297365188599, -1.0448421239852905, 0.37650105357170105, 0.055371157824993134, -0.2768973708152771, -0.6246314644813538, -0.28380101919174194, 0.19917240738868713, -0.9856066107749939, 0.7067893147468567, -0.07137679308652878, -0.11462763696908951, 0.21553903818130493, -0.5413192510604858, -0.6171658635139465, 0.5552677512168884, 0.7863088250160217, -0.493508517742157, 0.16393449902534485, -0.052164606750011444, 0.4395642578601837, 0.012663605622947216, 0.5173428058624268, 0.30423375964164734, 0.7115429639816284, 0.05448140203952789, -0.5724694132804871, 0.3527013957500458, -0.049539387226104736, -0.3138989508152008, -0.08426716923713684, -0.7664754390716553, 0.4921123683452606, -0.28245511651039124, -0.3819233477115631, -0.018638500943779945, 0.18560287356376648, 0.014235065318644047, 0.33281657099723816, 0.7983008623123169, 0.23612798750400543, 0.6215855479240417, 0.33923575282096863, 0.7332252860069275, -0.17957593500614166, -0.03293018788099289, 1.0842697620391846, -0.4696408212184906, 0.6442698836326599, 0.501950740814209, 0.07338125258684158, 0.3381282389163971, 0.5316258668899536, 0.2172730565071106, 0.6354206800460815, 0.49415645003318787, -0.5446122884750366, -0.214471235871315, -0.41856294870376587, -0.20362114906311035, 0.3652312457561493, 0.2581994831562042, -0.6249583959579468, -0.351840615272522, 0.11201850324869156, 0.22781674563884735, 0.37803488969802856, -0.3364031910896301, 0.7386083006858826, -0.1309429407119751, -0.6640543937683105, 0.5884766578674316, -0.2628406584262848, 0.7641257643699646, -0.1861288994550705, 0.034575868397951126, -0.523682177066803, 0.4114927053451538, -0.2842242419719696, -0.5061686038970947, 0.40033361315727234, -0.09570226073265076, -0.10401064157485962, -0.40048277378082275, 0.9144973158836365, -0.24508367478847504, -0.3789386451244354, 0.40699830651283264, 0.4432383179664612, 0.0978231281042099, -0.20355990529060364, -0.48945966362953186, -0.02829688787460327, 0.08480378240346909, -0.6496651768684387, 0.21845419704914093, 0.4812491536140442, -0.012893795035779476, 0.8849794268608093, 0.6043523550033569, 0.2814178764820099, 0.13137885928153992, 0.2272084504365921, 1.2171268463134766, -0.41239798069000244, -0.19135048985481262, -0.9234691262245178, 0.335658460855484, -0.14836660027503967, -0.04279608279466629, 0.745294451713562, 0.5509335398674011, 0.5569950938224792, -0.10841193795204163, 0.8457147479057312, 0.18778468668460846, 0.534026563167572, -0.2604997754096985, 1.0245317220687866, -0.25049322843551636, 0.4192420542240143, -0.4368402659893036, -0.6814936995506287, -0.3423439860343933, 0.13762417435646057, -0.3644492030143738, -0.039661526679992676, 0.3544198274612427, 1.0344489812850952, 0.26775017380714417, -0.31473633646965027, 0.21925842761993408, 0.45203545689582825, 0.5099232196807861, 0.6024982333183289, 0.731229841709137, 0.025099456310272217, 0.8216993808746338, -0.21478167176246643, -0.4935705363750458, -0.1158023402094841, -1.0606772899627686, -0.8437111973762512, -0.1098390743136406, -0.23485322296619415, -0.13978171348571777, 0.42246708273887634, 0.9309079647064209, 0.35105785727500916, -0.6218680143356323, 0.4863414764404297, -0.12340118736028671, 0.3097350001335144, -0.08170908689498901, -0.26123911142349243, 0.3226064443588257, -0.0671626552939415, -0.7878391146659851, 0.19305355846881866, 0.021119020879268646, -0.08397245407104492, -0.26305630803108215, 0.07121672481298447, 0.24567247927188873, 0.04926794394850731, 0.6702679395675659, -0.017063306644558907, -0.5848541259765625, -0.9992474913597107, 0.016681740060448647, 0.03945247456431389, -0.34811556339263916, 0.43584007024765015, -0.9465575218200684, 0.5437687635421753, 0.53242427110672, 0.3642604649066925, -0.06267804652452469, 0.04979288950562477, 0.6621876955032349, -0.8330381512641907, 0.2964295446872711, 0.5249159336090088, 0.238783061504364, 0.03807277977466583, -0.8422282338142395, 0.5014188289642334, 0.19501270353794098, -0.46141359210014343, -1.113517165184021, 0.2639223039150238, -0.7235955595970154, -0.4052430987358093, 1.5453596115112305, 0.10973687469959259, -0.20473892986774445, -0.42518746852874756, -0.3041263818740845, 0.4111514985561371, -0.5400916934013367, 1.1515305042266846, 0.4530473053455353, 0.39572474360466003, -0.037512801587581635, -0.40266796946525574, 0.4310648739337921, 0.6346332430839539, -0.6235485672950745, 0.8553260564804077, 0.7822111248970032, 0.43223506212234497, -0.29972541332244873, 0.7957395911216736, -0.2601848840713501, -0.016516931354999542, 0.10746961832046509, 0.13867004215717316, -0.3531063497066498, -0.04841538146138191, -0.3236522972583771, 0.1105009913444519, 0.25924891233444214, -0.19254030287265778 ]
http://arxiv.org/abs/2405.19290v2
http://arxiv.org/pdf/2405.19290v2
Integrating Multi-scale Contextualized Information for Byte-based Neural Machine Translation
2024-05-29T17:19:04
2024-06-07T08:34:57
Langlin Huang, Yang Feng
cs.CL
cs.CL
Subword tokenization is a common method for vocabulary building in Neural Machine Translation (NMT) models. However, increasingly complex tasks have revealed its disadvantages. First, a vocabulary cannot be modified once it is learned, making it hard to adapt to new words. Second, in multilingual translation, the imbalance in data volumes across different languages spreads to the vocabulary, exacerbating translations involving low-resource languages. While byte-based tokenization addresses these issues, byte-based models struggle with the low information density inherent in UTF-8 byte sequences. Previous works enhance token semantics through local contextualization but fail to select an appropriate contextualizing scope based on the input. Consequently, we propose the Multi-Scale Contextualization (MSC) method, which learns contextualized information of varying scales across different hidden state dimensions. It then leverages the attention module to dynamically integrate the multi-scale contextualized information. Experiments show that MSC significantly outperforms subword-based and other byte-based methods in both multilingual and out-of-domain scenarios. Code can be found in https://github.com/ictnlp/Multiscale-Contextualization.
[ -0.4410785734653473, -0.4739867150783539, 0.21749505400657654, 0.3259887099266052, -0.4929647743701935, 0.03761804476380348, -0.4002058506011963, -0.31166404485702515, 0.4905845820903778, 0.1531439870595932, -0.285286545753479, -0.3917761445045471, -0.6646395325660706, -0.023773042485117912, 0.10865367949008942, 0.8990797400474548, -0.057610832154750824, 0.393367201089859, 0.013269571587443352, -0.4271605610847473, -0.917695164680481, -0.8055927753448486, -0.45948243141174316, -0.16287671029567719, 0.663973331451416, 0.36425331234931946, 0.32915419340133667, 0.7178080677986145, 0.6367105841636658, 0.2659966051578522, -0.27076178789138794, 0.41452351212501526, -0.04209202527999878, 0.03374370560050011, -0.26984816789627075, -0.4465252459049225, -0.527565598487854, -0.18907079100608826, 0.853343665599823, 0.7620056867599487, 0.08833802491426468, 0.26911255717277527, -0.04789390042424202, 0.5232745409011841, -0.6397597193717957, 0.35450080037117004, -0.7479344010353088, 0.2784567177295685, -0.10418648272752762, -0.32142603397369385, -0.4477722942829132, 0.35014331340789795, 0.022128835320472717, -0.5709146857261658, -0.053956713527441025, 0.06655818223953247, 0.36100494861602783, 0.3656885623931885, -0.8101769089698792, -0.09653610736131668, -0.34059837460517883, 0.9271659851074219, -0.6563182473182678, 0.2567165791988373, 0.13262714445590973, 0.22013014554977417, -0.005854821763932705, -0.5883885622024536, -0.1814739853143692, -0.15161855518817902, -0.19125641882419586, 0.16707664728164673, -0.08424397557973862, 0.02306930534541607, 0.05241601541638374, 0.20940756797790527, -0.20965492725372314, 0.02222346141934395, -0.24742494523525238, -0.28963613510131836, 0.04215576872229576, 0.06043289229273796, 0.30797216296195984, -0.30778980255126953, -0.7047817707061768, 0.07733572274446487, -0.45215919613838196, -0.07668549567461014, -0.07600808143615723, 0.7592548727989197, -0.11984638124704361, 0.5939339995384216, -0.16542084515094757, 0.4849260747432709, 0.20971964299678802, 0.006495218724012375, 0.40944868326187134, -0.6140640377998352, -0.04698696732521057, 0.41335514187812805, 0.576356828212738, 0.3972996473312378, -0.15120793879032135, -0.26549339294433594, -0.28463035821914673, -0.3707977831363678, 0.3793542683124542, -0.9066392779350281, 0.42317813634872437, 0.22933122515678406, -0.5563084483146667, -0.06089009717106819, -0.2851741313934326, -0.5337334871292114, -0.3942863941192627, -0.3102911114692688, 0.5129340291023254, -0.5361241698265076, -0.2685528099536896, -0.0942462831735611, -0.11571862548589706, -0.0021262045484036207, 0.09166473150253296, -0.9133145213127136, -0.22730547189712524, 0.24690115451812744, 1.090140461921692, -0.22194194793701172, -0.42752015590667725, -0.5069332718849182, 0.19273462891578674, -0.3551267683506012, 0.31062591075897217, -0.3268192708492279, -0.10968087613582611, -0.1511087268590927, -0.010242263786494732, -0.2637555003166199, -0.522820770740509, 0.1309821754693985, -0.5692629814147949, -0.292987197637558, -0.316956102848053, -0.2894376814365387, -0.1252763420343399, 0.46789786219596863, -0.4555049538612366, 0.8969016075134277, -0.03773381933569908, -0.9501054883003235, 0.4748099148273468, -0.9482271671295166, -0.5723432302474976, 0.14152060449123383, -0.1530168503522873, -0.13105687499046326, 0.46316587924957275, 0.3802661597728729, 0.6420134902000427, 0.003070010570809245, 0.3859091103076935, -0.05959412828087807, -0.2843197286128998, 0.13832888007164001, -0.5241336822509766, 0.39793163537979126, 0.25757572054862976, -0.44150638580322266, 0.22840052843093872, -0.6196746826171875, 0.02807239256799221, -0.27627748250961304, -0.6699392199516296, -0.3756057918071747, -0.20064488053321838, 0.2904651165008545, 0.3375947177410126, 0.5244967937469482, -0.6015537977218628, 0.25725057721138, -0.3559616208076477, 0.635208785533905, 0.376605749130249, -0.12683363258838654, 0.6280829906463623, 0.04694180190563202, 0.3786889314651489, 0.683306872844696, 0.01626896671950817, -0.33148193359375, -0.32721999287605286, -0.6650393605232239, -0.4311099648475647, 0.44207683205604553, 0.5275445580482483, -0.9760328531265259, 0.19081206619739532, -0.5021253824234009, -0.30010923743247986, -0.4235941469669342, -0.19390736520290375, 0.2839715778827667, 0.5417594909667969, 0.8657233715057373, -0.3415413200855255, -0.5278701782226562, -1.0085103511810303, -0.17527899146080017, 0.29111096262931824, 0.03704901039600372, 0.3796934187412262, 0.40469563007354736, -0.3363589942455292, 0.8308477401733398, -0.10719956457614899, -0.534464955329895, -0.2430463284254074, 0.3677681088447571, 0.17469607293605804, 0.8731094002723694, 0.41889140009880066, -0.7960448265075684, -0.3443180024623871, 0.46831879019737244, -0.5620413422584534, 0.2913391590118408, -0.427389919757843, -0.06377541273832321, -0.0891122967004776, 0.6669814586639404, -0.7035890817642212, 0.2724316120147705, 0.3985021412372589, -0.18256399035453796, 0.3452015519142151, -0.5635209083557129, 0.25674930214881897, -1.5725288391113281, 0.21122904121875763, -0.18495294451713562, -0.06740553677082062, -0.6977912187576294, 0.22636909782886505, 0.5369964241981506, 0.13159501552581787, -0.7347461581230164, 0.4284784197807312, -0.6395336985588074, -0.31321534514427185, -0.27714774012565613, 0.09593793749809265, -0.16080491244792938, 0.5823904871940613, 0.006832960061728954, 0.8004488945007324, 0.33312734961509705, -0.43667352199554443, 0.2579154968261719, -0.09475373476743698, -0.22057883441448212, 0.6895793676376343, -0.3217059373855591, -0.1050497367978096, -0.20856721699237823, 0.35413289070129395, -0.8499163389205933, -0.18125441670417786, -0.10796784609556198, -0.5931766629219055, 0.5413193702697754, -0.3356899619102478, -0.5361599922180176, 0.1059626042842865, -0.09016957879066467, 0.7196628451347351, -0.0341595895588398, -0.5307415127754211, 0.728708803653717, 0.3847889006137848, 0.17625193297863007, -0.9773909449577332, -1.1608484983444214, 0.4692782461643219, -0.3193703591823578, -0.28566232323646545, 0.4388967454433441, 0.01010756567120552, 0.25209662318229675, -0.14968572556972504, -0.23027779161930084, -0.15273842215538025, 0.04390571638941765, -0.04092082008719444, 0.12282846868038177, -0.47313594818115234, 0.30984777212142944, 0.33713188767433167, -0.10002893954515457, -0.14246730506420135, -0.8586022257804871, 0.5120134353637695, -0.4201636016368866, -0.19896507263183594, -0.26506713032722473, 0.5193188190460205, 0.9595149755477905, -0.4752950370311737, 1.040013313293457, 1.1425271034240723, -0.5191067457199097, 0.06486155837774277, -0.3399102985858917, -0.12460765987634659, -0.40242505073547363, 0.7563993334770203, -0.6310190558433533, -0.9384838342666626, 0.5882839560508728, -0.26104286313056946, 0.009805209934711456, 0.36564379930496216, 0.6170322895050049, 0.01055064145475626, 1.1251994371414185, 0.6278108358383179, -0.049953822046518326, 0.5287809371948242, -0.16061145067214966, 0.19062161445617676, -1.3266887664794922, -0.11487266421318054, -0.13231545686721802, -0.6987367868423462, -0.6197400689125061, -0.6160361170768738, 0.4098753333091736, 0.21668656170368195, 0.01964528299868107, 0.5764048099517822, -0.48217692971229553, 0.37994441390037537, 0.5370286703109741, 0.05020320788025856, 0.06802059710025787, 0.01689830608665943, -0.683904230594635, -0.12875908613204956, -0.9362897276878357, -0.20588263869285583, 0.9166660308837891, 0.3422825336456299, 0.328533798456192, 0.2542297840118408, 0.421286404132843, 0.10399172455072403, 0.48166391253471375, -1.0194882154464722, 0.2938055098056793, -0.23946963250637054, -0.5870634913444519, -0.2585064172744751, -0.5242246985435486, -0.7786601185798645, 0.8791090250015259, -0.1818958967924118, -0.6890000700950623, 0.31477972865104675, 0.0922175794839859, -0.26785656809806824, 0.3942871391773224, -0.8581702709197998, 0.8624718189239502, 0.024249551817774773, -0.08335372805595398, -0.13788263499736786, -0.893458902835846, 0.04004763811826706, -0.29072749614715576, 0.4417353868484497, 0.19964857399463654, -0.3732709288597107, 0.425947904586792, -0.3122062087059021, 1.0752021074295044, -0.17116476595401764, 0.026802778244018555, 0.034773170948028564, -0.06511630862951279, 0.4250166714191437, 0.2030208557844162, 0.11259367316961288, 0.32147762179374695, 0.06967095285654068, -0.5239220261573792, -0.39999300241470337, 0.7637741565704346, -0.6170474886894226, -0.17637686431407928, -0.11764728277921677, -0.9519745111465454, -0.36284807324409485, 0.5990872383117676, 0.3183031380176544, 0.5271355509757996, 0.24439993500709534, 0.5669741630554199, 0.6344843506813049, -0.32533860206604004, 0.541045606136322, 0.3377092182636261, 0.038277335464954376, -0.5521125197410583, 0.9660253524780273, 0.3982664942741394, 0.2316691279411316, 0.8167923092842102, 0.3003024458885193, -0.15839768946170807, -0.5057758092880249, -0.9020929336547852, -0.12227846682071686, -0.8699764013290405, -0.32784706354141235, -0.7024189829826355, 0.023425603285431862, -0.34568530321121216, -0.1643950641155243, -0.6000182628631592, -0.45130395889282227, -0.2036513090133667, -0.028552215546369553, 0.007363627199083567, 0.2881021797657013, -0.08867184072732925, 0.4535467028617859, -0.8897316455841064, -0.017055876553058624, -0.13658592104911804, 0.1420273333787918, 0.15220561623573303, -0.5294846296310425, -0.727218508720398, -0.08746984601020813, 0.15555623173713684, -0.683146595954895, 0.328195720911026, -0.05671530216932297, 0.41211462020874023, 0.141152486205101, -0.1405571848154068, 0.6940076947212219, -0.673740029335022, 0.6569041013717651, 0.3224530518054962, -0.9315621852874756, 0.30202552676200867, -0.2905779778957367, 0.845792293548584, 0.449500173330307, 0.29389873147010803, -0.8287523984909058, -0.17205172777175903, -0.11143914610147476, -1.2024320363998413, 0.67154860496521, -0.23805080354213715, 0.3971424996852875, -0.21823565661907196, 0.4338061511516571, -0.04537823796272278, 0.4148039221763611, -0.7098978757858276, -0.219256192445755, -0.21541623771190643, -0.3363838493824005, -0.07266835123300552, -0.0723707526922226, 0.22095359861850739, -0.11712285876274109, 0.3157443404197693, -0.4618985056877136, 0.14230328798294067, 0.1909492015838623, -0.391122043132782, 0.18990124762058258, 0.2773935794830322, 0.7996654510498047, 0.3612798750400543, -0.026444759219884872, 0.5765146613121033, 0.5650990009307861, -0.7729027271270752, -0.06316922605037689, -0.22825276851654053, -0.07502859085798264, -0.05187828838825226, 0.3901074528694153, 0.7459357380867004, 0.45668062567710876, -0.3522983491420746, 0.5443792939186096, -0.03691798448562622, -0.07450038194656372, 0.06552191078662872, -0.5113964080810547, 0.33196428418159485, 0.2194375991821289, 0.30903083086013794, 0.41588330268859863, -0.026173310354351997, -0.27510687708854675, 0.23373430967330933, 0.37523069977760315, -0.6510074138641357, -0.14178134500980377, 0.5568925738334656, 0.03757637366652489, 0.04898348078131676, 0.49590933322906494, -0.021437520161271095, -0.4188726842403412, 0.5482879281044006, 0.6972419619560242, 0.7396361827850342, -0.11320454627275467, -0.07882470637559891, 0.3662593364715576, 0.6391248106956482, 0.13371402025222778, 0.08048425614833832, -0.27918681502342224, -0.6120375394821167, -0.7398509383201599, -0.6608322858810425, -0.08570756018161774, 0.0952836126089096, -0.5445298552513123, -0.019717108458280563, -0.3631647825241089, -0.43083521723747253, -0.16953176259994507, -0.26387158036231995, -0.4652564227581024, 0.24510815739631653, -0.023379720747470856, 0.9289700388908386, -0.4702213704586029, 0.95893794298172, 1.0366222858428955, -0.45099788904190063, -0.5704548954963684, -0.10900595039129257, -0.19766530394554138, -0.590981662273407, 0.9130515456199646, 0.40247541666030884, -0.12470826506614685, 0.13041172921657562, -0.10901108384132385, -1.1003245115280151, 1.0791256427764893, 0.22972539067268372, -0.3370553255081177, 0.034599337726831436, 0.31534963846206665, 0.4598191976547241, -0.5439107418060303, 0.1806274652481079, 0.12772713601589203, 0.4473732113838196, 0.08686504513025284, -0.7769629955291748, 0.12184944748878479, -0.02845599129796028, 0.26206785440444946, 0.2666996419429779, -0.6287204027175903, 0.959439754486084, -0.12625500559806824, -0.05793849378824234, -0.24875032901763916, 0.6716060638427734, -0.2519458532333374, -0.10793384164571762, 0.3518438935279846, 0.4023023545742035, 0.523851752281189, 0.1549372673034668, 0.7624117732048035, -0.5496793389320374, 0.3639995753765106, 1.2116519212722778, 0.21041369438171387, 0.8684917092323303, 0.8496230244636536, 0.3812761902809143, -0.07128967344760895, 0.6466838121414185, 0.25456294417381287, 0.5255439281463623, 0.3086613416671753, -0.3562013804912567, -0.16567659378051758, -0.24382458627223969, -0.23579803109169006, 0.47575804591178894, 0.40337833762168884, -0.3398967683315277, -0.28657591342926025, 0.28597840666770935, -0.043290991336107254, -0.3957635462284088, -0.3894204795360565, 0.48081153631210327, 0.11018047481775284, -0.5520350933074951, 0.5255122780799866, 0.46026942133903503, 0.8672768473625183, -0.41220006346702576, 0.09153378754854202, -0.3634415566921234, 0.3748560845851898, -0.13370360434055328, -0.2609735131263733, 0.46426552534103394, -0.10019965469837189, -0.23566804826259613, -0.28638318181037903, 0.5435647964477539, -0.5727676153182983, -0.2484789788722992, 0.20571547746658325, 0.52846360206604, 0.12259700149297714, -0.24339206516742706, -0.5952926278114319, -0.1349879950284958, -0.2876088321208954, -0.343239963054657, 0.6391333937644958, 0.6233206987380981, -0.22084666788578033, 0.4115566313266754, 0.5731772780418396, 0.0038542363326996565, 0.2102741152048111, 0.06551159173250198, 0.6103624105453491, -0.5287676453590393, -0.5583677887916565, -0.804288387298584, 0.48189878463745117, 0.06106572225689888, -0.3839048445224762, 0.6841685771942139, 0.5726308226585388, 0.7697058916091919, -0.2031802535057068, 0.5041162967681885, 0.04554152116179466, -0.10863634943962097, -0.42225292325019836, 0.8879755139350891, -0.7841871380805969, 0.0463453009724617, 0.12515410780906677, -0.7413773536682129, -0.5544449687004089, 0.4650411605834961, -0.055012695491313934, 0.02521842159330845, 0.8779010772705078, 0.5369633436203003, -0.22591429948806763, -0.3455236852169037, 0.5686033368110657, 0.10559079051017761, 0.10375499725341797, 0.4064856767654419, 0.5776703953742981, -0.33712390065193176, 0.5211636424064636, 0.0066379462368786335, -0.4279656708240509, -0.34955376386642456, -1.0501872301101685, -0.8315768241882324, -0.4889466464519501, -0.08334095031023026, -0.026363184675574303, -0.34517231583595276, 1.0033572912216187, 0.9315915107727051, -0.7055601477622986, -0.038710594177246094, -0.07119785249233246, 0.003994133789092302, -0.36748602986335754, -0.17846564948558807, 0.3254585266113281, -0.765421986579895, -0.659517228603363, 0.6674785614013672, 0.5211759805679321, 0.006889674812555313, -0.28434425592422485, 0.27240484952926636, -0.31340062618255615, 0.16045181453227997, 0.8842226266860962, -0.1965053379535675, -0.5926913619041443, -0.40011492371559143, -0.012074684724211693, -0.30373936891555786, 0.19051259756088257, 0.7520710825920105, -0.4098961055278778, 0.4732309579849243, 0.3419854938983917, 1.0562182664871216, 0.5225971937179565, -0.30374079942703247, 0.2704195976257324, -1.205126166343689, 0.14403748512268066, -0.05287359282374382, 0.3831493556499481, 0.32096654176712036, -0.5605849623680115, 0.30737268924713135, 0.24021080136299133, -0.1720457375049591, -0.6161834001541138, 0.2066805511713028, -0.757510781288147, -0.3916949927806854, 0.9152493476867676, -0.2141227126121521, -0.249908447265625, 0.06824926286935806, -0.2261902391910553, 0.3281940519809723, -0.17966420948505402, 0.49111756682395935, 0.8826786279678345, 0.09801111370325089, 0.23263604938983917, -0.7809620499610901, 0.1696465164422989, 0.6385419964790344, -0.5865687727928162, 0.0584653839468956, 0.2603195905685425, 0.1884269267320633, 0.41868001222610474, 0.4575996994972229, -0.18282639980316162, -0.006207890808582306, 0.09611029177904129, 0.19447965919971466, -0.087856724858284, -0.3461461067199707, -0.3858972489833832, 0.297486811876297, -0.20500214397907257, -0.40750962495803833 ]
http://arxiv.org/abs/2405.19285v1
http://arxiv.org/pdf/2405.19285v1
MASSIVE Multilingual Abstract Meaning Representation: A Dataset and Baselines for Hallucination Detection
2024-05-29T17:17:22
2024-05-29T17:17:22
Michael Regan, Shira Wein, George Baker, Emilio Monti
cs.CL
cs.CL
Abstract Meaning Representation (AMR) is a semantic formalism that captures the core meaning of an utterance. There has been substantial work developing AMR corpora in English and more recently across languages, though the limited size of existing datasets and the cost of collecting more annotations are prohibitive. With both engineering and scientific questions in mind, we introduce MASSIVE-AMR, a dataset with more than 84,000 text-to-graph annotations, currently the largest and most diverse of its kind: AMR graphs for 1,685 information-seeking utterances mapped to 50+ typologically diverse languages. We describe how we built our resource and its unique features before reporting on experiments using large language models for multilingual AMR and SPARQL parsing as well as applying AMRs for hallucination detection in the context of knowledge base question answering, with results shedding light on persistent issues using LLMs for structured parsing.
[ -0.6406199336051941, -0.9065845012664795, 0.49735718965530396, 0.14555397629737854, -0.07570096105337143, 0.24567031860351562, -0.23660868406295776, -0.7147104144096375, 0.5473712086677551, 0.4634234309196472, -0.2959822714328766, -0.5332545042037964, -0.6937382221221924, 0.48650649189949036, -0.4227651357650757, 0.7463528513908386, -0.18315206468105316, 0.03159405663609505, -0.09353998303413391, -0.4160890281200409, -0.4029925465583801, -0.8784373998641968, -0.539726197719574, -0.4408470094203949, 0.673879861831665, 0.14035390317440033, 0.8444004654884338, 0.5859591364860535, 0.34625622630119324, 0.29610148072242737, -0.008405731059610844, 0.1499328315258026, -0.23923489451408386, 0.15863704681396484, 0.030461857095360756, -0.25410524010658264, -0.11981294304132462, -0.42239809036254883, 0.6663631200790405, 1.102054238319397, 0.06656917929649353, -0.08178882300853729, -0.23578397929668427, 0.5847147703170776, -0.5632872581481934, 0.3260519802570343, -0.4300738573074341, 0.23427556455135345, -0.0639847069978714, -0.2102792114019394, -0.40202513337135315, -0.2108711451292038, -0.13861188292503357, -0.5074143409729004, 0.0862988829612732, 0.26629403233528137, 0.6543977856636047, 0.1879233866930008, -0.5829985737800598, -0.5638184547424316, -0.6068093776702881, 0.7338125109672546, -0.2352628856897354, 0.6532366871833801, 0.21527738869190216, 0.5256956815719604, -0.03703025355935097, -0.46478405594825745, -0.7415525913238525, -0.0629725530743599, -0.3858779966831207, -0.25648975372314453, -0.37458497285842896, 0.09727810323238373, 0.36383000016212463, 0.5284253358840942, -0.6728163361549377, -0.180986225605011, -0.4686480164527893, -0.4635083079338074, 0.5418919920921326, 0.2088283896446228, 0.3476305902004242, -0.3859189748764038, 0.1310264766216278, -0.014436060562729836, -0.5903948545455933, -0.46760910749435425, 0.26283398270606995, 0.31115955114364624, -0.15149401128292084, 0.9332091808319092, -0.06242917850613594, 0.8419703245162964, -0.4885598123073578, 0.15630316734313965, 0.5239603519439697, -0.30400654673576355, 0.12841656804084778, 0.37281715869903564, 0.7802304625511169, 0.01423377264291048, 0.626950204372406, -0.4494858682155609, -0.2905178964138031, 0.32800784707069397, 0.17464594542980194, -0.5991175770759583, -0.2445029318332672, 0.294002890586853, -0.4428577125072479, 0.030895881354808807, -0.041830454021692276, -0.6326776146888733, -0.537297248840332, -0.5653051733970642, 0.14449143409729004, -0.45407527685165405, -0.3438614010810852, 0.3049176037311554, -0.1855737268924713, 0.2797994315624237, 0.1156095564365387, -0.8079714775085449, 0.3766118884086609, 0.5676940083503723, 1.030197262763977, -0.13253280520439148, -0.2981468439102173, -0.2610151767730713, 0.23572249710559845, -0.30364593863487244, 1.0063066482543945, -0.7238765954971313, -0.38187626004219055, 0.0503370575606823, 0.14932185411453247, -0.04422233626246452, -0.6647215485572815, 0.27323493361473083, -0.5654469728469849, -0.05523530766367912, -0.4891512393951416, -0.4083108603954315, -0.5382234454154968, 0.41368722915649414, -0.8291388154029846, 0.7359187602996826, 0.02373768575489521, -0.6955661177635193, 0.19601257145404816, -0.7039006352424622, -0.5031777620315552, 0.20490847527980804, -0.6798286437988281, 0.15834908187389374, 0.1434909850358963, 0.07577844709157944, 0.37358227372169495, -0.12111476808786392, 0.09441936016082764, -0.0918515995144844, -0.32588937878608704, 0.5017696619033813, -0.1236361712217331, 0.35183432698249817, 0.19996529817581177, -0.19147376716136932, 0.12723061442375183, -0.9586168527603149, -0.12183351814746857, -0.03891808167099953, -0.27278101444244385, -0.47887298464775085, 0.05406533181667328, 0.2612670958042145, 0.31568047404289246, 0.20290018618106842, -0.637723445892334, -0.0797969177365303, -0.3212824761867523, 0.5513449311256409, 0.5092365741729736, 0.1382528841495514, 0.0005229072412475944, -0.22792719304561615, 0.4231882691383362, 0.10170403122901917, -0.4380132257938385, -0.32062458992004395, -0.42282989621162415, -0.7532868385314941, -0.09647055715322495, 0.027237428352236748, 0.5747234225273132, -0.3190695643424988, 0.5479459762573242, -0.3495830297470093, 0.10360774397850037, -0.676263153553009, -0.023075012490153313, 0.3453969359397888, 0.31641849875450134, 0.5002517104148865, -0.0006512056570500135, -0.87102872133255, -1.1349273920059204, 0.04834279045462608, -0.18180261552333832, -0.16323544085025787, 0.2579347491264343, 0.9004348516464233, -0.5322363376617432, 0.7241086959838867, -0.5829553604125977, -0.4766598641872406, -0.1890404373407364, 0.24469707906246185, 0.17994926869869232, 0.21756094694137573, 0.2559298872947693, -0.8421975374221802, -0.1963375210762024, 0.3160584270954132, -1.2862716913223267, 0.07212921231985092, 0.06489858031272888, -0.03348707780241966, 0.18271060287952423, 0.6137359142303467, -0.6004535555839539, 0.051886241883039474, 0.5367714762687683, -0.46165597438812256, 0.6564172506332397, -0.0727887824177742, 0.389250785112381, -1.087408185005188, 0.21621204912662506, -0.26047492027282715, -0.0481262132525444, -0.395088791847229, -0.005415961612015963, -0.01520809717476368, -0.1750006526708603, -0.23222622275352478, 0.5766664147377014, -0.5114828944206238, -0.13051533699035645, -0.38257327675819397, 0.16173440217971802, -0.19069239497184753, 0.2997998893260956, 0.1221790686249733, 0.8573272824287415, 0.3767884075641632, -0.5973397493362427, 0.5015621185302734, 0.48494282364845276, -0.2801479697227478, 0.3599342405796051, -0.7450991272926331, -0.00379191804677248, -0.3887530565261841, -0.005379893351346254, -0.9694226384162903, -0.6073241233825684, 0.19847777485847473, -0.42966559529304504, 0.06153443083167076, 0.029283730313181877, -0.6818620562553406, -0.3054006099700928, 0.020391693338751793, 0.47265055775642395, 0.19030947983264923, -0.4861656129360199, 0.6804079413414001, 0.7150357961654663, -0.06385687738656998, -0.6145323514938354, -0.9106330275535583, 0.3031294047832489, -0.07379308342933655, -0.8481545448303223, 0.11060066521167755, 0.1252022683620453, -0.5969247221946716, 0.24887700378894806, 0.04504073038697243, 0.03781349956989288, -0.15818078815937042, 0.20006829500198364, -0.08634589612483978, -0.33436837792396545, 0.22564460337162018, -0.0474775955080986, -0.3603939414024353, 0.3942950963973999, -0.1852147877216339, 0.8225582242012024, -0.2685912251472473, -0.45724067091941833, 0.09331240504980087, 0.7078956365585327, 0.5954068303108215, 0.035751983523368835, 0.8447480797767639, 0.2798832356929779, -0.8137931823730469, -0.009634156711399555, -0.6227867603302002, -0.09303705394268036, -0.4148201644420624, 0.44467929005622864, -0.6373583674430847, -1.100957989692688, 0.9067068696022034, 0.262055903673172, 0.03725295886397362, 0.369625985622406, 0.6085640788078308, 0.3166075646877289, 1.0963866710662842, 0.32531383633613586, -0.06760746985673904, -0.0177318062633276, -0.1256903111934662, 0.3357069492340088, -0.6344456672668457, -0.4775611162185669, -0.4504648745059967, -0.2893398404121399, -0.44030338525772095, -0.46692898869514465, 0.3915610909461975, -0.3770482838153839, -0.19978022575378418, -0.040729034692049026, -0.5001099109649658, 0.5877507925033569, 0.17415256798267365, -0.07848558574914932, 0.5383071303367615, 0.164636492729187, -0.03396956995129585, -0.16083180904388428, -0.09246920794248581, -0.7157105803489685, 0.762905478477478, 0.1846417486667633, 0.7422044277191162, 0.10640139132738113, 0.2653864920139313, 0.386294960975647, -0.12862324714660645, -1.1412125825881958, 0.6026731729507446, -0.06710012257099152, -0.6748595237731934, -0.15192897617816925, -0.4339010417461395, -0.911812961101532, 0.6420994400978088, -0.19422009587287903, -0.5622371435165405, 0.03469986468553543, 0.08673439174890518, 0.08313421905040741, 0.3052096664905548, -0.5267803072929382, 0.818559467792511, -0.06611506640911102, 0.21674266457557678, -0.23699237406253815, -0.6126375198364258, 0.43548160791397095, -0.18939800560474396, 0.5043245553970337, -0.02077607624232769, -0.03251780942082405, 0.8027037382125854, -0.11922338604927063, 0.664679229259491, -0.1432139277458191, -0.015399044379591942, 0.16632381081581116, -0.029550302773714066, 0.41578051447868347, -0.10068028420209885, -0.027064917609095573, 0.19004839658737183, -0.12412533909082413, -0.37615400552749634, -0.4470560848712921, 0.5754641890525818, -0.6998351216316223, -0.3070211708545685, -0.5220021605491638, -0.6609158515930176, -0.15566611289978027, 0.3104272186756134, 0.3162839710712433, 0.4468492269515991, -0.3128442168235779, 0.29539069533348083, 0.8383095264434814, -0.2801590859889984, 0.04914240539073944, 0.2621760666370392, -0.454087495803833, -0.4635300934314728, 0.8446221947669983, 0.25829073786735535, -0.10432521998882294, 0.546230673789978, -0.049300018697977066, -0.3991987705230713, -0.611716091632843, -0.30684733390808105, 0.5723018050193787, -1.136628270149231, 0.008592500351369381, -1.3087440729141235, -0.308932900428772, -0.3494184613227844, -0.2534927427768707, -0.15150773525238037, -0.4725366532802582, 0.06051681563258171, -0.3720540702342987, 0.48207923769950867, 0.8380026817321777, -0.023051975294947624, 0.1953597217798233, -0.6069267988204956, 0.4052899181842804, -0.024477260187268257, 0.15982912480831146, -0.06771422177553177, -0.21380676329135895, -0.2421409785747528, -0.040934666991233826, 0.022259194403886795, -0.8444393277168274, 0.40024328231811523, 0.16184453666210175, 0.6504844427108765, 0.3667617738246918, -0.012727219611406326, 0.6314898133277893, -0.4944504499435425, 0.638876736164093, 0.11256677657365799, -0.7296327352523804, 0.35648033022880554, -0.19794520735740662, 0.2825852036476135, 0.5146229863166809, 0.6468827724456787, -0.9310286045074463, -0.608526885509491, -0.22304324805736542, -0.9402570724487305, 0.2594456374645233, -0.035275936126708984, 0.2862112522125244, -0.3035835325717926, 0.2482423335313797, 0.22532294690608978, 0.28026071190834045, -0.8285447955131531, -0.4625170826911926, -0.17474855482578278, -0.2920112609863281, -0.18869741261005402, -0.3370181918144226, -0.2041633576154709, 0.0018822040874511003, 0.5037923455238342, -0.09583259373903275, 0.3516673147678375, 0.043181728571653366, -0.3650950789451599, -0.10758670419454575, 0.3963478207588196, 0.25311169028282166, 0.6376074552536011, -0.16212011873722076, 0.7312333583831787, 0.09307199716567993, -0.6845129132270813, 0.180821493268013, 0.17324255406856537, -0.04404749721288681, 0.1618008017539978, 0.3685966432094574, 0.7385131120681763, 0.23143798112869263, -0.9790258407592773, 0.18800756335258484, 0.0921400785446167, -0.32503747940063477, -0.7260298132896423, -0.26484414935112, 0.05170995369553566, 0.013539345003664494, 0.6026091575622559, -0.19557328522205353, 0.4196135699748993, -0.3644309937953949, 0.48705458641052246, 0.35184285044670105, -0.5223648548126221, -0.48698580265045166, 0.6318133473396301, -0.23918889462947845, 0.15023799240589142, 0.7244377136230469, -0.25948959589004517, -0.47027185559272766, 0.2710857689380646, 0.5513566732406616, 0.7013331055641174, 0.08863263577222824, 0.05501546710729599, 0.4380510747432709, 0.45539596676826477, 0.0933518186211586, 0.47939133644104004, 0.21762138605117798, -0.8362911343574524, -0.5693057179450989, -0.8716083765029907, -0.38544100522994995, 0.1766168475151062, -0.49977484345436096, 0.3874325156211853, -0.2719274163246155, 0.13384146988391876, 0.29302701354026794, -0.20036271214485168, -0.2535569667816162, 0.014851436018943787, 0.2725944519042969, 0.7023798227310181, -1.0925737619400024, 0.44527092576026917, 0.9974437355995178, -0.4811967611312866, -0.482374906539917, -0.33997467160224915, 0.16570651531219482, -0.9455472230911255, 0.5935590863227844, 0.366304486989975, -0.10648752748966217, -0.07602281868457794, -0.34671536087989807, -0.8483019471168518, 0.7436448335647583, 0.35513174533843994, -0.27722081542015076, -0.11511602997779846, 0.38633692264556885, 0.5284359455108643, -0.5217127799987793, -0.0548127256333828, 0.5205532312393188, 0.5178349018096924, 0.3885018229484558, -0.41347697377204895, 0.4041233956813812, -0.46438437700271606, -0.18020203709602356, 0.595365047454834, -0.18019160628318787, 0.805250346660614, -0.10297679901123047, -0.3341265022754669, -0.2671663761138916, 0.7168461084365845, 0.5450677871704102, 0.19738169014453888, 0.34931379556655884, 0.44260627031326294, 0.8832418918609619, -0.0985526293516159, 0.9774768948554993, -0.35194307565689087, -0.0048665557987987995, 0.7244399785995483, 0.0009787841700017452, 0.6483405232429504, 0.5934608578681946, -0.04561011493206024, 0.485453337430954, 0.6158686280250549, -0.07770749181509018, 0.32991793751716614, 0.3921433091163635, -0.5064160227775574, -0.1530129462480545, -0.31807228922843933, -0.5320731997489929, 0.12239561229944229, 0.7505022287368774, -0.2869971990585327, -0.2858508825302124, 0.2573678493499756, 0.16614462435245514, 0.018142856657505035, -0.10874094814062119, 0.6706584692001343, 0.17932389676570892, -0.37960395216941833, 0.6886557936668396, -0.272120863199234, 0.593889057636261, -0.5673254132270813, -0.18821702897548676, -0.010852172039449215, 0.1441762000322342, -0.41634583473205566, -0.8324248790740967, 0.6194954514503479, -0.10055050998926163, -0.24674278497695923, 0.05191302299499512, 0.6336939930915833, -0.3723026514053345, -0.5196519494056702, 0.6087303757667542, 0.6069210171699524, 0.5550223588943481, -0.15178672969341278, -0.44777652621269226, 0.23467743396759033, -0.20170839130878448, -0.18288256227970123, 0.1751190721988678, 0.7615789175033569, -0.16043122112751007, 0.6686509847640991, 0.34301647543907166, 0.12659816443920135, 0.3467760384082794, 0.16788959503173828, 0.9246672987937927, -0.9756504893302917, -0.2877388000488281, -0.7405012845993042, 0.43654635548591614, 0.020428011193871498, -0.09776967018842697, 0.7541677355766296, 0.9178667664527893, 0.8637884855270386, -0.060007527470588684, 1.2828959226608276, -0.33698880672454834, 0.38258659839630127, -0.4890749752521515, 0.5074431896209717, -0.3795216977596283, 0.10833016037940979, -0.1969340294599533, -1.0455355644226074, -0.7055507898330688, 0.8732509016990662, -0.14668717980384827, -0.14979925751686096, 0.7522935271263123, 0.7501654028892517, -0.1091977208852768, 0.2515486776828766, 0.3996939957141876, 0.39304831624031067, 0.21621587872505188, 0.3158775269985199, 1.0541349649429321, -0.3061041831970215, 0.6279829740524292, -0.10905345529317856, -0.27358609437942505, 0.03420719504356384, -0.5172342658042908, -0.8500077128410339, -0.6861145496368408, -0.35925549268722534, -0.6031793355941772, -0.06479333341121674, 0.9844072461128235, 0.26443541049957275, -1.171759843826294, -0.508963942527771, -0.0932450070977211, 0.04617366939783096, -0.058467503637075424, -0.2005787044763565, 0.3411342203617096, -0.6662391424179077, -0.5096535682678223, 0.36737799644470215, 0.20062391459941864, 0.16100792586803436, -0.2793865501880646, -0.1670016497373581, -0.09920036792755127, -0.22518187761306763, 0.7974204421043396, 0.29471391439437866, -0.5701333284378052, -0.46219632029533386, 0.20307688415050507, 0.13315646350383759, 0.16522203385829926, 0.8569827079772949, -0.5010385513305664, 0.398684024810791, 0.4246048033237457, 0.612072765827179, 0.4460953176021576, -0.2380760908126831, 0.546593189239502, -0.7581549286842346, 0.1649073362350464, 0.17434652149677277, 0.5300197005271912, 0.4320608377456665, -0.16966605186462402, 0.656396210193634, 0.28829383850097656, -0.4280373752117157, -0.8877810835838318, 0.2541329562664032, -1.0334100723266602, -0.3849906325340271, 1.2239868640899658, 0.2552300691604614, -0.1753084808588028, -0.7478824853897095, -0.145015150308609, 0.09731923788785934, -0.3905608355998993, 0.7946165800094604, 0.9880620837211609, -0.326365202665329, -0.16197924315929413, -0.7231168150901794, 0.2413710653781891, -0.049557410180568695, -0.6514201164245605, 0.36679330468177795, 0.9472338557243347, -0.08369912207126617, 0.6435461044311523, 0.7009221315383911, -0.4277955889701843, -0.03545509651303291, 0.09498118609189987, 0.2332499921321869, 0.06480662524700165, -0.30198580026626587, -0.2926538586616516, 0.41506797075271606, 0.09607569128274918, 0.007272593677043915 ]
http://arxiv.org/abs/2405.19266v2
http://arxiv.org/pdf/2405.19266v2
PediatricsGPT: Large Language Models as Chinese Medical Assistants for Pediatric Applications
2024-05-29T16:59:38
2024-06-03T15:27:10
Dingkang Yang, Jinjie Wei, Dongling Xiao, Shunli Wang, Tong Wu, Gang Li, Mingcheng Li, Shuaibing Wang, Jiawei Chen, Yue Jiang, Qingyao Xu, Ke Li, Peng Zhai, Lihua Zhang
cs.CL
cs.CL
Developing intelligent pediatric consultation systems offers promising prospects for improving diagnostic efficiency, especially in China, where healthcare resources are scarce. Despite recent advances in Large Language Models (LLMs) for Chinese medicine, their performance is sub-optimal in pediatric applications due to inadequate instruction data and vulnerable training procedures. To address the above issues, this paper builds PedCorpus, a high-quality dataset of over 300,000 multi-task instructions from pediatric textbooks, guidelines, and knowledge graph resources to fulfil diverse diagnostic demands. Upon well-designed PedCorpus, we propose PediatricsGPT, the first Chinese pediatric LLM assistant built on a systematic and robust training pipeline. In the continuous pre-training phase, we introduce a hybrid instruction pre-training mechanism to mitigate the internal-injected knowledge inconsistency of LLMs for medical domain adaptation. Immediately, the full-parameter Supervised Fine-Tuning (SFT) is utilized to incorporate the general medical knowledge schema into the models. After that, we devise a direct following preference optimization to enhance the generation of pediatrician-like humanistic responses. In the parameter-efficient secondary SFT phase, a mixture of universal-specific experts strategy is presented to resolve the competency conflict between medical generalist and pediatric expertise mastery. Extensive results based on the metrics, GPT-4, and doctor evaluations on distinct doctor downstream tasks show that PediatricsGPT consistently outperforms previous Chinese medical LLMs. Our model and dataset will be open-source for community development.
[ -0.3104955852031708, -0.265290766954422, 0.39115971326828003, 0.24828007817268372, -0.3173117935657501, 0.00848180241882801, -0.38307711482048035, -0.37069374322891235, -0.09816774725914001, 0.2867576777935028, -0.5126187205314636, -0.18642057478427887, -0.5488768219947815, -0.04301869869232178, 0.07081903517246246, 1.0124422311782837, 0.14173923432826996, 0.29025551676750183, -0.01770710200071335, 0.2878086268901825, 0.1524658501148224, -0.49389657378196716, -1.1370056867599487, -0.29050540924072266, 0.3544212579727173, 0.27279970049858093, 0.46132200956344604, 0.6007474064826965, 0.42377641797065735, 0.15614505112171173, -0.11425059288740158, 0.39612284302711487, -0.35759177803993225, -0.23411057889461517, -0.3234129846096039, 0.04079284518957138, -0.7995969653129578, -0.09101909399032593, 0.3384894132614136, 0.888806164264679, -0.14759355783462524, -0.17973974347114563, 0.30345815420150757, 0.32722100615501404, -0.34025371074676514, 0.2641969621181488, -0.5523320436477661, 0.21295227110385895, -0.031462278217077255, -0.10993175953626633, -0.3001095950603485, -0.11222752928733826, 0.5712754130363464, -0.7270001173019409, 0.3886709213256836, -0.16216826438903809, 0.644521176815033, 0.20078377425670624, -0.36823245882987976, -0.034806862473487854, -0.4220786690711975, 0.7216424345970154, -0.8725218176841736, 0.17704567313194275, 0.20204608142375946, 0.15995045006275177, -0.24919603765010834, -0.8156893253326416, -0.45991119742393494, -0.5273947715759277, -0.005572890862822533, 0.19198638200759888, 0.3531769812107086, 0.4202739894390106, 0.09026504307985306, 0.27396470308303833, -0.7459904551506042, 0.4218617379665375, -0.12484656274318695, -0.2076844573020935, 0.6064656376838684, 0.2638578712940216, 0.5094541311264038, 0.03229077532887459, -0.2712751626968384, 0.1376916766166687, -0.7716278433799744, 0.07724311202764511, -0.1538022756576538, 0.2716841697692871, -0.2030971348285675, 0.2667786478996277, -0.2278415858745575, 0.7412493228912354, 0.3901938199996948, -0.49314606189727783, -0.15283875167369843, -0.4137212038040161, -0.2579494118690491, -0.16330119967460632, 0.8504178524017334, 0.10064618289470673, 0.336274653673172, 0.04612170159816742, -0.13033053278923035, -0.21656708419322968, 0.21806225180625916, -0.4922851622104645, -0.6297898888587952, 0.10382676124572754, -0.555367648601532, -0.3716999292373657, -0.10983899235725403, -0.6231470704078674, -0.6412909626960754, -0.5028654932975769, -0.07617921382188797, -0.4227478802204132, -0.3355311453342438, 0.12756793200969696, 0.49558746814727783, 0.026250500231981277, 0.37229204177856445, -1.4283229112625122, 0.35158854722976685, 0.8316406011581421, 0.47355353832244873, -0.344673752784729, -0.30433061718940735, -0.27278706431388855, 0.26554158329963684, -0.23883408308029175, 0.8662576079368591, -0.3121962249279022, -0.5144867300987244, -0.24337294697761536, 0.12940560281276703, -0.32743120193481445, -0.6991971731185913, 0.58868408203125, -0.04387087747454643, 0.2291254848241806, -0.040586069226264954, -0.28702688217163086, 0.25992316007614136, 0.26760610938072205, -0.1577504277229309, 0.5354737639427185, 0.32847899198532104, -0.6271929740905762, 0.624813973903656, -0.5605974793434143, -0.506558895111084, 0.20252878963947296, -0.0924883484840393, -0.23498915135860443, -0.14126886427402496, 0.7054414749145508, 0.5364713072776794, -0.46380484104156494, 0.3437753915786743, -0.14742514491081238, -0.12308052182197571, -0.41867825388908386, -0.3355754315853119, 0.8978390693664551, -0.05589728802442551, -0.013428471982479095, 0.20042546093463898, -0.47114330530166626, -0.09214824438095093, 0.2817893624305725, -0.39638814330101013, -0.26148170232772827, -0.04551476985216141, -0.14321152865886688, 0.19352088868618011, 0.40762752294540405, -0.34444594383239746, 0.4406594932079315, -0.456694632768631, 0.26490843296051025, 0.7339881658554077, 0.011834069155156612, 0.25034940242767334, -0.3809013366699219, 0.5995087623596191, -0.14658890664577484, 0.6313550472259521, -0.23706892132759094, -0.5833387970924377, -0.5439701676368713, -0.2879180312156677, 0.10721755772829056, 0.3944968581199646, -0.8386279940605164, 0.43699249625205994, -0.18683688342571259, -0.5561141967773438, -0.1981792449951172, -0.07469065487384796, 0.4079654812812805, 1.0382994413375854, 0.2664638161659241, -0.2162502110004425, -0.44660717248916626, -0.7668875455856323, 0.21530736982822418, -0.28412994742393494, -0.27273866534233093, 0.5168458819389343, 0.00789277721196413, -0.08120942860841751, 0.2901237905025482, -0.4034262001514435, -0.2876262068748474, -0.26711106300354004, -0.23697088658809662, 0.49318987131118774, 0.5455974340438843, 0.671792209148407, -0.5733716487884521, -0.7210514545440674, 0.405129611492157, -0.4982103705406189, -0.3009988069534302, -0.13060306012630463, 0.0688176080584526, 0.13250242173671722, 0.12306172400712967, -0.5357753038406372, -0.06400561332702637, 0.7361263632774353, -0.12515825033187866, 0.8676117658615112, -0.3197038769721985, 0.13021278381347656, -0.8222222924232483, 0.23348620533943176, 0.08194006234407425, 0.10407271236181259, -0.5296316742897034, 0.1941666603088379, 0.13459786772727966, -0.14663882553577423, -0.5142742991447449, 0.5624511241912842, -0.28868138790130615, 0.28437310457229614, -0.12117328494787216, -0.041110191494226456, -0.25395825505256653, 0.41502711176872253, 0.3057900667190552, 0.7491428256034851, 0.6407400369644165, -0.6335276365280151, 0.7164362668991089, 0.0704350620508194, 0.1607019305229187, 0.6948989033699036, -0.701442539691925, 0.14380136132240295, 0.25839850306510925, 0.3284625709056854, -0.5606026649475098, -0.3656638264656067, 0.25865790247917175, -0.21325622498989105, 0.532304584980011, -0.29227471351623535, -0.5394318103790283, -0.6834433078765869, -0.08916789293289185, 0.23569715023040771, 0.34795087575912476, -0.7592715620994568, 0.22002939879894257, 0.5102922916412354, -0.6383014917373657, -0.4960004687309265, -0.13488347828388214, 0.040006525814533234, 0.12171915173530579, -0.572009265422821, 0.3877221345901489, 0.10899948328733444, 0.2858083248138428, -0.14310331642627716, -0.15226155519485474, -0.48760315775871277, -0.25549620389938354, -0.21459098160266876, 0.5644895434379578, -0.40343090891838074, 0.046285782009363174, 0.5064253211021423, -0.3488118648529053, -0.11019320040941238, -0.2906304597854614, 0.6911605000495911, 0.1239389181137085, -0.5562016367912292, -0.3061981797218323, -0.04963294044137001, 0.44442427158355713, -0.03844596445560455, 0.28939592838287354, 0.24107018113136292, -0.4825555980205536, -0.22926566004753113, -0.15811927616596222, -0.08375740796327591, -0.47560548782348633, 0.5568093657493591, -0.085792176425457, -0.43522387742996216, 0.11463437974452972, -0.15985268354415894, 0.3093080520629883, 0.2549222409725189, 0.5252599716186523, 0.09919078648090363, 1.156747817993164, 0.35615289211273193, -0.20366445183753967, 0.1332840472459793, -0.02345968224108219, 0.006277394015341997, -0.8500077724456787, -0.2822458744049072, -0.17807117104530334, 0.05419743433594704, -0.06846506893634796, -0.42810067534446716, 0.6001536250114441, -0.32213589549064636, -0.42878153920173645, 0.22649811208248138, -0.9770128130912781, 0.3875223994255066, 0.39977267384529114, 0.1483728587627411, 0.2963763177394867, -0.22635824978351593, -0.2518620491027832, -0.42065486311912537, -0.8442458510398865, -0.3814769685268402, 1.1408029794692993, 0.25388044118881226, 0.9111357927322388, -0.23895561695098877, 0.39294180274009705, -0.21714092791080475, 0.37501946091651917, -0.7581483721733093, 0.5377792716026306, -0.7963853478431702, -0.3631910979747772, -0.12782889604568481, -0.06367143988609314, -0.8417747616767883, 0.33266735076904297, -0.2205512821674347, -0.595763087272644, -0.1459684520959854, 0.2008867710828781, -0.5061107277870178, 0.23103244602680206, -0.6276390552520752, 0.7587304711341858, -0.507352352142334, -0.18127916753292084, -0.09677939116954803, -0.5660319924354553, 0.724853515625, -0.43531692028045654, -0.2869192361831665, 0.1981106698513031, -0.2079545259475708, 0.3333519399166107, -0.36041170358657837, 0.7184461951255798, -0.28575244545936584, -0.13425028324127197, -0.20409072935581207, -0.2325141280889511, 0.3443516194820404, 0.16475030779838562, 0.08633356541395187, -0.1042027696967125, 0.22372408211231232, -0.4040251076221466, -0.3734286427497864, 0.7982164621353149, -0.6982451677322388, -0.6436058878898621, -0.31374189257621765, -0.38454481959342957, -0.5936170220375061, 0.3356497883796692, 0.20281706750392914, 0.24998077750205994, -0.16832102835178375, -0.025406857952475548, 0.7974076271057129, -0.6515765190124512, 0.09494579583406448, 0.3748493790626526, -0.1372578889131546, -0.18797540664672852, 0.8134598731994629, -0.09078274667263031, 0.2137085348367691, 0.20229460299015045, 0.264570951461792, -0.2471523880958557, -0.6518149375915527, -0.5805529356002808, 0.43951547145843506, -0.38317787647247314, 0.08510461449623108, -0.48744887113571167, -0.6121957302093506, -0.6565650105476379, -0.3456933796405792, -0.2916145324707031, -0.16652677953243256, -0.4799674451351166, 0.3049425482749939, -0.2518422603607178, 0.3845822513103485, -0.021370580419898033, 0.21352645754814148, -0.7517053484916687, 0.5379483103752136, 0.5093126893043518, 0.26792171597480774, 0.21369017660617828, -0.560623049736023, -0.20270825922489166, -0.0029838802292943, -0.4215788245201111, -0.35191839933395386, 0.393619179725647, 0.20462216436862946, 0.7701780200004578, 0.8807054758071899, 0.024525878950953484, 0.7884052991867065, -0.4070214331150055, 0.9258006811141968, 0.13673050701618195, -0.6255797147750854, 0.472430020570755, -0.5319725275039673, 0.15880721807479858, 0.10465960204601288, 0.24430707097053528, -0.509992241859436, -0.07788469642400742, -0.5031388998031616, -0.7077361941337585, 0.8176254630088806, -0.5292026996612549, 0.11803139001131058, 0.31865689158439636, 0.2732720971107483, 0.25080615282058716, -0.02740698680281639, -0.31194165349006653, 0.07940363883972168, -0.15803885459899902, -0.3702532649040222, 0.11109054088592529, -0.014635255560278893, -0.25387611985206604, -0.5447273254394531, 0.6012340188026428, -0.2491941601037979, 0.17580711841583252, 0.011036385782063007, 0.3266477882862091, -0.04429781436920166, -0.12339518964290619, 0.5479675531387329, 0.6751489639282227, 0.3017563819885254, -0.18856212496757507, 0.2693508565425873, -0.826675534248352, 0.043033625930547714, 0.38577908277511597, 0.015223593451082706, -0.15586313605308533, 0.5460376143455505, 0.2696811556816101, 0.13955122232437134, -0.8339993357658386, 0.5357012748718262, 0.00019426083599682897, -0.1145496740937233, -0.1976594775915146, 0.2589099407196045, 0.1620275378227234, -0.04475002735853195, 0.3604453504085541, -0.2823455333709717, -0.027824731543660164, -0.11191941797733307, 0.3299086391925812, 0.21412056684494019, -0.1807546317577362, -0.32725638151168823, 0.8123106360435486, 0.3198012411594391, 0.07003103196620941, 0.4479551315307617, 0.14741037786006927, -0.3698851466178894, 0.7602354884147644, 0.4850279986858368, 0.4407816231250763, -0.4320252239704132, 0.3310677409172058, 0.2780480980873108, 0.14436785876750946, -0.16690054535865784, 0.010530900210142136, 0.01308444980531931, -0.5515726804733276, -0.6092548966407776, -0.17896386981010437, -0.6335495114326477, 0.3602334260940552, -0.3570767045021057, 0.426506906747818, -0.9941546320915222, 0.08329586684703827, -0.13205157220363617, 0.1253330409526825, -0.4338000416755676, 0.34446239471435547, 0.22286756336688995, 0.8448623418807983, -0.4112531542778015, 1.0237594842910767, 0.8834816217422485, -0.26888012886047363, -0.9428064227104187, 0.09657038748264313, 0.0003529324021656066, -1.1090973615646362, 0.5095908045768738, -0.36336028575897217, 0.31607624888420105, -0.04012471064925194, -0.5953601598739624, -0.5495352745056152, 0.7944093942642212, 0.3026629686355591, -0.4818408787250519, -0.37928521633148193, 0.023253068327903748, 0.7741867303848267, -0.30337631702423096, -0.025812242180109024, 0.5363684892654419, 0.2553950846195221, 0.09648211300373077, -1.4079188108444214, 0.13930219411849976, -0.14072038233280182, -0.18701860308647156, -0.13746748864650726, -0.723966658115387, 0.8802709579467773, -0.38788050413131714, 0.020072776824235916, 0.26209285855293274, 0.11993288993835449, 0.6210249066352844, 0.18604055047035217, 0.3630722463130951, 0.28351202607154846, 0.5766788721084595, -0.08545713126659393, 0.9514474868774414, -0.5053157806396484, 0.23174519836902618, 0.8686845302581787, -0.16194695234298706, 0.32393306493759155, 0.3768516182899475, -0.46967756748199463, -0.007078163325786591, 0.8699113130569458, -0.007920989766716957, 0.5837095975875854, -0.012938461266458035, -0.545610785484314, -0.12572063505649567, -0.3565290868282318, -0.5073131322860718, 0.015245545655488968, 0.6291354894638062, -0.4566664397716522, -0.03327493369579315, -0.24591335654258728, 0.1010519340634346, -0.05154073238372803, -0.3452600836753845, 0.7518013119697571, 0.233446404337883, -0.6208189129829407, 0.7165181040763855, -0.26462650299072266, 0.7593125104904175, -0.6722038984298706, 0.05393778905272484, -0.14193382859230042, 0.1444723755121231, -0.2504437267780304, -0.6762333512306213, -0.0670202299952507, -0.12493985146284103, 0.09343913942575455, -0.008671271614730358, 0.6495421528816223, -0.31201544404029846, -0.2528388202190399, -0.0915508046746254, 0.3393493592739105, -0.033125173300504684, 0.1709633618593216, -0.9077911972999573, -0.4651053547859192, -0.035177744925022125, -0.1434575766324997, 0.5081912875175476, 0.48516035079956055, -0.008993702940642834, 0.7431140542030334, 0.8877337574958801, 0.7745508551597595, -0.03753923997282982, 0.08756504207849503, 1.0790389776229858, -0.18185478448867798, -0.40052375197410583, -0.4363546073436737, 0.23744960129261017, -0.08713710308074951, -0.4647490382194519, 0.26186496019363403, 0.06175466254353523, 0.5811995267868042, -0.17348149418830872, 0.9745310544967651, -0.04580476135015488, 0.7125402092933655, -0.21703846752643585, 0.8519195914268494, -0.47873997688293457, 0.042316094040870667, -0.3072940409183502, -0.6027204394340515, -0.6243780851364136, 0.571853756904602, -0.31317901611328125, 0.057242512702941895, 0.5042200684547424, 0.5177589654922485, -0.25342994928359985, -0.1719677597284317, 0.3969744145870209, 0.03376222774386406, 0.5969971418380737, 1.0000662803649902, 0.7017949223518372, 0.1105007454752922, 0.4897739887237549, -0.405312180519104, -0.4216535985469818, -0.18692833185195923, -0.5338550209999084, -0.8322359323501587, -0.15748003125190735, 0.06354029476642609, 0.007654848974198103, 0.03973870724439621, 0.9686359763145447, 0.8826132416725159, -0.8186046481132507, 0.1389581710100174, 0.044622693210840225, -0.14942456781864166, -0.2661649286746979, -0.19654743373394012, 0.6734763979911804, -0.22739237546920776, -0.9790797829627991, 0.3253822922706604, 0.2877058684825897, 0.17297780513763428, -0.4507625997066498, -0.026387343183159828, 0.36551201343536377, -0.28066909313201904, 0.4808253049850464, 0.6106210947036743, -0.6656767725944519, -0.11023607105016708, 0.08873658627271652, -0.2491350769996643, -0.09358225017786026, 0.7162673473358154, -0.6120585799217224, 0.566091001033783, 0.3348410129547119, 0.692093551158905, 0.056149717420339584, 0.053746819496154785, 0.7468589544296265, -0.2121257185935974, 0.3678641617298126, 0.5303188562393188, 0.37080445885658264, 0.2956717610359192, -0.47738415002822876, 0.48923230171203613, 0.3281824290752411, -0.6590865254402161, -0.6591429114341736, 0.10439658910036087, -0.6899247765541077, -0.2063210904598236, 1.0078974962234497, -0.4148624837398529, 0.1267075091600418, -0.4549046456813812, -0.7521331310272217, 0.14429320394992828, -0.41025611758232117, 1.0045835971832275, 0.43095627427101135, -0.5361079573631287, -0.2833258807659149, -0.2749916911125183, 0.4403371214866638, 0.34945148229599, -0.8160895109176636, -0.15204378962516785, 0.2715756893157959, 0.18660835921764374, -0.21576817333698273, 0.8280342221260071, -0.23560744524002075, 0.437704473733902, 0.06204245612025261, -0.0632195919752121, -0.09717640280723572, -0.15657776594161987, -0.0935533195734024, -0.09322604537010193, 0.11932430416345596, -0.09538787603378296 ]
http://arxiv.org/abs/2405.19265v1
http://arxiv.org/pdf/2405.19265v1
AlchemistCoder: Harmonizing and Eliciting Code Capability by Hindsight Tuning on Multi-source Data
2024-05-29T16:57:33
2024-05-29T16:57:33
Zifan Song, Yudong Wang, Wenwei Zhang, Kuikun Liu, Chengqi Lyu, Demin Song, Qipeng Guo, Hang Yan, Dahua Lin, Kai Chen, Cairong Zhao
cs.CL
cs.CL
Open-source Large Language Models (LLMs) and their specialized variants, particularly Code LLMs, have recently delivered impressive performance. However, previous Code LLMs are typically fine-tuned on single-source data with limited quality and diversity, which may insufficiently elicit the potential of pre-trained Code LLMs. In this paper, we present AlchemistCoder, a series of Code LLMs with enhanced code generation and generalization capabilities fine-tuned on multi-source data. To achieve this, we pioneer to unveil inherent conflicts among the various styles and qualities in multi-source code corpora and introduce data-specific prompts with hindsight relabeling, termed AlchemistPrompts, to harmonize different data sources and instruction-response pairs. Additionally, we propose incorporating the data construction process into the fine-tuning data as code comprehension tasks, including instruction evolution, data filtering, and code review. Extensive experiments demonstrate that AlchemistCoder holds a clear lead among all models of the same size (6.7B/7B) and rivals or even surpasses larger models (15B/33B/70B), showcasing the efficacy of our method in refining instruction-following capabilities and advancing the boundaries of code intelligence.
[ -0.4497435986995697, -0.5047120451927185, 0.3965693712234497, 0.11571051925420761, -0.19613508880138397, 0.22791890799999237, -0.5747023820877075, -0.1625443696975708, 0.12682890892028809, 0.6055874824523926, -0.5348805785179138, -0.8732326626777649, -0.4471474289894104, 0.15575642883777618, -0.44915926456451416, 1.0296906232833862, -0.1047729104757309, 0.09088734537363052, -0.19436120986938477, -0.2701939344406128, -0.5477307438850403, -0.5301715731620789, -0.13677161931991577, -0.20968998968601227, 0.700188934803009, 0.7574995160102844, 0.9238846898078918, 0.9453776478767395, 0.5199553370475769, 0.2640937864780426, 0.43213364481925964, 0.20973855257034302, -0.24338600039482117, 0.1955578476190567, -0.15333761274814606, -0.49885115027427673, -0.24561943113803864, -0.15221893787384033, 0.3463652729988098, 0.46401911973953247, -0.19604133069515228, 0.2619362771511078, 0.1608385443687439, 0.6696013808250427, -0.7942370176315308, 0.18321308493614197, -0.7343984842300415, 0.020665468648076057, 0.1922379434108734, -0.2796376049518585, -0.42895400524139404, -0.6021535396575928, -0.45142099261283875, -0.5172421932220459, 0.35798996686935425, 0.09460286796092987, 0.4195704758167267, 0.6784847378730774, -0.2505110502243042, -0.580807626247406, -0.6739296317100525, 0.8097562193870544, -0.6295753717422485, 0.5492873787879944, 0.22370223701000214, 0.1845409870147705, 0.15673960745334625, -0.8656731247901917, -0.5486617088317871, -0.025886697694659233, -0.005195810925215483, -0.15371137857437134, -0.12069221585988998, -0.07526855915784836, 0.045733630657196045, 0.43947312235832214, -0.6164308190345764, 0.06821781396865845, -0.634371280670166, -0.26311901211738586, 0.5152413845062256, 0.20557136833667755, 0.08479345589876175, 0.12433885037899017, 0.03310485929250717, -0.14108890295028687, -0.6746389865875244, -0.3256385326385498, 0.3989008963108063, 0.4158089756965637, 0.06777036935091019, 0.5335062146186829, -0.36931857466697693, 0.8016177415847778, -0.2298094928264618, 0.34858956933021545, 0.3120335042476654, -0.43828049302101135, -0.1087123453617096, 0.13772833347320557, 0.7771454453468323, 0.2572619915008545, 0.1464872658252716, -0.1880158632993698, -0.06453345715999603, 0.5022305846214294, 0.41572868824005127, -1.0677449703216553, -0.6363577246665955, 0.5143631100654602, -0.3478882610797882, -0.21466423571109772, -0.12564663589000702, -0.9977160692214966, -0.2717810273170471, -0.6611539721488953, 0.11127588897943497, -0.44227486848831177, 0.12302649766206741, 0.13887320458889008, 0.02108154445886612, 0.17082072794437408, -0.011802630499005318, -0.7603198289871216, -0.1319272816181183, 0.5926654934883118, 0.7631294131278992, -0.13946501910686493, -0.4169573187828064, -0.5395221710205078, -0.04029742255806923, -0.49185848236083984, 0.5315133929252625, -0.6862749457359314, -0.19997970759868622, -0.13107137382030487, -0.18558664619922638, 0.3112722337245941, -0.5850046873092651, 0.6709317564964294, -0.6695475578308105, -0.11248016357421875, 0.028280626982450485, -0.4346419870853424, 0.05379802733659744, 0.0971548929810524, -0.6827362179756165, 0.5784457325935364, -0.010613396763801575, -0.45587852597236633, 0.3015234172344208, -0.30117154121398926, -0.33837905526161194, -0.04730191454291344, -0.491133451461792, -0.3870791792869568, 0.11532916128635406, 0.2990388572216034, 0.2770754396915436, -0.3801797330379486, 0.27360308170318604, -0.2947922646999359, -0.4234035015106201, 0.21577753126621246, -0.30574357509613037, 0.5862777829170227, 0.4810176193714142, 0.013119728304445744, 0.5135136246681213, -0.9470337629318237, 0.4503692090511322, -0.21302048861980438, -0.4164469540119171, -0.14864888787269592, 0.06802736222743988, -0.19153103232383728, 0.3703189790248871, 0.10528929531574249, -0.25092461705207825, 0.18371005356311798, -0.16308224201202393, 0.48375844955444336, 0.7518022060394287, 0.04113655537366867, 0.4071192741394043, -0.30912595987319946, 0.5778602957725525, -0.18815292418003082, 0.27116987109184265, -0.31647688150405884, -0.37958380579948425, -0.9324074983596802, -0.2128589153289795, 0.1977318525314331, 0.6853796243667603, -0.8855313062667847, 0.6093777418136597, -0.23758915066719055, -0.599601149559021, -0.9435043334960938, 0.5039574503898621, 0.4061313271522522, 0.21474012732505798, 0.682030975818634, -0.21121546626091003, -0.5395079255104065, -0.9117000699043274, -0.3770844340324402, 0.11955515295267105, -0.058602817356586456, 0.06643207371234894, 0.3068428039550781, -0.45185208320617676, 0.9376799464225769, -0.6841207146644592, -0.04328042268753052, 0.059446170926094055, 0.0797707587480545, 0.28292351961135864, 0.5624307990074158, 0.10248421132564545, -0.6909613013267517, -0.4342997670173645, 0.008744999766349792, -0.7047883868217468, -0.1300143301486969, 0.15169194340705872, -0.30453166365623474, 0.06857063621282578, 0.8403677344322205, -0.2099420130252838, 0.08830364048480988, 0.8451146483421326, -0.19619224965572357, 0.4966917335987091, -0.09956060349941254, 0.37513020634651184, -0.9444608092308044, 0.020870601758360863, -0.33246082067489624, 0.2969224452972412, -0.6216036081314087, 0.5633419752120972, 0.41134411096572876, -0.2839173972606659, -0.497347891330719, 0.3345414698123932, -0.4738617539405823, 0.14902618527412415, -0.3794034719467163, -0.23079325258731842, -0.025563102215528488, 0.6857041716575623, -0.09731458127498627, 0.8034026622772217, 0.5551308989524841, -0.6730174422264099, 0.6242910623550415, 0.18799500167369843, -0.5074319839477539, 0.3189031481742859, -0.5140074491500854, 0.4328842759132385, 0.006127187982201576, -0.168223038315773, -0.7174711227416992, -0.36857667565345764, 0.1917450875043869, -0.34192875027656555, 0.08189226686954498, -0.1475137323141098, -0.6190569996833801, -0.2277999222278595, -0.24030320346355438, 0.45118772983551025, 0.5051373839378357, -0.6234732270240784, 0.7607530355453491, -0.37920212745666504, -0.31669220328330994, -0.673569917678833, -0.8513576984405518, 0.011019784957170486, -0.13446341454982758, -0.4811451733112335, 0.1975780576467514, -0.5095170736312866, -0.24688297510147095, 0.11792591959238052, -0.044339656829833984, -0.07915172725915909, -0.2019791305065155, 0.26758334040641785, 0.3365475833415985, -0.058468062430620193, 0.09330307692289352, 0.30858471989631653, 0.003136450657621026, 0.005828952416777611, -0.42434924840927124, 0.5498301386833191, 0.005909122060984373, -0.58451908826828, 0.03654512017965317, 0.25746533274650574, 0.41739365458488464, -0.5431845188140869, 0.6472376585006714, 0.44593915343284607, -0.0973598062992096, -0.4154820144176483, -0.4238981604576111, -0.19544735550880432, -0.5503103733062744, 0.4187960624694824, -0.3128761351108551, -0.9963819980621338, 0.6182621121406555, 0.06275911629199982, 0.16594824194908142, 0.06909161806106567, 0.6562802195549011, 0.49063029885292053, 0.8613057732582092, 0.48881497979164124, -0.14520485699176788, 0.39989814162254333, -0.005147852469235659, 0.10825586318969727, -0.5928996205329895, -0.2272975891828537, -0.5999826192855835, -0.2256789654493332, -0.5040112137794495, -0.5058895349502563, 0.2417636215686798, 0.19007937610149384, -0.4032261073589325, 0.1768554002046585, -0.7423366904258728, 0.8897765874862671, 0.6299941539764404, 0.19103461503982544, 0.6214672923088074, 0.04160638526082039, 0.15753430128097534, 0.11030617356300354, -0.675960898399353, -0.2255455106496811, 1.270616054534912, 0.07075519859790802, 1.0131417512893677, 0.11266223341226578, 0.841697096824646, 0.2641189396381378, 0.3751838803291321, -0.7132234573364258, 0.3305705487728119, -0.1701052188873291, -0.5296176671981812, 0.10538050532341003, -0.6853213310241699, -0.7495847940444946, 0.14250785112380981, -0.08500209450721741, -0.17446161806583405, 0.5237123370170593, 0.2104572206735611, -0.36351093649864197, -0.10081682354211807, -0.7776431441307068, 0.9567394256591797, -0.29237043857574463, -0.4494122862815857, -0.2644140422344208, -0.6643727421760559, 0.41548794507980347, -0.3171439468860626, 0.48509928584098816, 0.11333087086677551, -0.17145846784114838, 0.33901485800743103, -0.15414032340049744, 0.6137939095497131, 0.11161366105079651, -0.2535410225391388, 0.3355399966239929, 0.23593321442604065, 0.4454095959663391, -0.07074848562479019, -0.18924164772033691, 0.1896732598543167, -0.4174712002277374, -0.38746845722198486, -0.5509899854660034, 0.8792650699615479, -0.6159844398498535, -0.3603697121143341, -0.060093726962804794, -0.6366866230964661, -0.29132387042045593, 0.28828683495521545, 0.5099504590034485, 0.30352717638015747, -0.08666332811117172, 0.1858895868062973, 0.6481448411941528, -0.3984270989894867, 0.23681379854679108, 0.39021265506744385, -0.16212673485279083, -0.7513465285301208, 1.1138691902160645, -0.33392247557640076, 0.4182300269603729, 0.15514707565307617, -0.22836244106292725, 0.062258873134851456, -0.5088220834732056, -0.39624419808387756, -0.11269887536764145, -0.9768326878547668, -0.6174456477165222, -0.4468810558319092, -0.1244489997625351, -0.15707333385944366, -0.26755020022392273, -0.31714701652526855, -0.15808196365833282, -0.3351883292198181, 0.13067477941513062, 0.49257728457450867, 0.5356460809707642, -0.0016593288164585829, 0.18594415485858917, -0.9881657958030701, 0.32815229892730713, 0.23207694292068481, 0.5743302702903748, -0.11243021488189697, -0.27767109870910645, -0.6955294013023376, -0.017654048278927803, -0.19760403037071228, -0.8413375020027161, 0.2931155264377594, 0.26403746008872986, 0.3649044632911682, 0.10225838422775269, 0.11746273189783096, 0.36769726872444153, -0.5624115467071533, 0.4786643981933594, 0.017267193645238876, -0.9556504487991333, 0.6009426712989807, -0.1491660475730896, 0.27333781123161316, 0.6618322730064392, 0.29323092103004456, -0.32028910517692566, -0.7104266285896301, -0.22831395268440247, -0.871405839920044, 0.6718801259994507, 0.02747746929526329, 0.10702971369028091, 0.06469710171222687, 0.5283118486404419, 0.049438443034887314, 0.4171702265739441, -0.5233526229858398, -0.2822490632534027, -0.5363630652427673, -0.5255498886108398, -0.221781924366951, 0.2465171366930008, -0.2344234436750412, -0.12591668963432312, 0.5410337448120117, -0.29148760437965393, 0.06287898868322372, -0.09100638329982758, -0.18244366347789764, 0.001681690919212997, 0.7225455045700073, 0.1979861557483673, 0.6707553267478943, -0.09117300063371658, 0.0998305231332779, -0.09342941641807556, -0.41322022676467896, 0.3578491806983948, 0.36251166462898254, 0.03865347430109978, -0.3455966114997864, 0.3908446133136749, 0.6573072075843811, -0.22133146226406097, -0.7975307703018188, 0.16079194843769073, 0.05578205734491348, -0.10199140012264252, 0.1399645209312439, 0.5448319315910339, -0.01952434703707695, 0.44396039843559265, 0.2818394899368286, 0.23897278308868408, 0.29483523964881897, -0.6694585680961609, 0.2552650272846222, 0.24126999080181122, -0.06724260002374649, 0.0761294960975647, 0.6000959873199463, 0.08920084685087204, 0.017159011214971542, 0.7992124557495117, -0.42722979187965393, -0.36463525891304016, 0.5615231394767761, 0.29754769802093506, 0.6606274843215942, -0.3823646605014801, -0.18562743067741394, 0.3177814483642578, 0.3666299879550934, -0.02312154695391655, 0.3021727204322815, 0.09139961004257202, -0.7848049402236938, -0.6531118750572205, -0.6206223964691162, -0.3624689280986786, -0.10409489274024963, -0.8623256087303162, 0.3831353187561035, -0.5916577577590942, 0.06622553616762161, -0.20789887011051178, -0.19058077037334442, -0.5711305141448975, 0.03531165421009064, -0.08041749894618988, 0.9089951515197754, -0.7469220161437988, 0.9092862010002136, 0.4832507371902466, -0.435514897108078, -0.7352902889251709, 0.055218812078237534, -0.0856473296880722, -0.6664155721664429, 0.4721433222293854, -0.06762316823005676, -0.129766583442688, 0.14103840291500092, -0.7099554538726807, -0.6387566924095154, 0.9970595836639404, 0.7044320702552795, -0.8176142573356628, 0.09573467075824738, -0.13694129884243011, 0.4436253011226654, -0.2748280465602875, -0.1790061891078949, 0.7311628460884094, 0.2711887061595917, -0.0018590242834761739, -0.47417983412742615, 0.13543860614299774, -0.3596855401992798, -0.14873947203159332, 0.4563726782798767, -0.5601027011871338, 0.988123893737793, -0.3253902494907379, -0.057542577385902405, 0.17520074546337128, 0.6394004225730896, 0.47321468591690063, 0.10602074861526489, 0.030336644500494003, 0.4298471212387085, 0.5354487299919128, -0.08743488788604736, 0.8033706545829773, -0.5976380705833435, 0.18203774094581604, 1.2880034446716309, -0.25096049904823303, 0.7465758323669434, 0.25453296303749084, 0.04079928621649742, 0.7897430062294006, 0.4044026732444763, -0.28883498907089233, 0.7416019439697266, 0.2598887085914612, -0.18076007068157196, -0.13240422308444977, 0.049043040722608566, -0.5822999477386475, 0.2147175818681717, 0.3543473482131958, -0.38160303235054016, 0.11081865429878235, 0.09816192090511322, -0.2170952409505844, 0.12851585447788239, -0.34010201692581177, 0.6959182024002075, -0.1191403791308403, -0.669314980506897, 0.6324111223220825, 0.1841004490852356, 0.8121604323387146, -0.6474758982658386, -0.13450784981250763, -0.38442978262901306, 0.3936454951763153, -0.36376479268074036, -0.8215627074241638, 0.33606183528900146, -0.08299800753593445, -0.32299044728279114, 0.0984470397233963, 0.5042629837989807, -0.6555600166320801, -0.42729654908180237, 0.3957594931125641, 0.4077354669570923, -0.14450980722904205, -0.2195318639278412, -0.5386433005332947, 0.5420988202095032, 0.1676795929670334, 0.14402137696743011, 0.1450963020324707, 0.5853167176246643, 0.21144796907901764, 0.551361083984375, 0.5870168209075928, 0.10868199169635773, 0.13225676119327545, 0.10201223194599152, 1.0748851299285889, -0.5534061193466187, -0.3926677405834198, -0.884751558303833, 0.26401081681251526, 0.33433449268341064, -0.03281991928815842, 0.757063090801239, 0.6896124482154846, 0.9391705393791199, -0.17242687940597534, 0.807731568813324, 0.027217084541916847, 0.2538646161556244, -0.7686779499053955, 0.5277214646339417, -0.42520537972450256, 0.4065535068511963, -0.15210017561912537, -1.1266146898269653, -0.36593782901763916, 0.4135066866874695, 0.03792591765522957, 0.2068663388490677, 0.5484117865562439, 1.0179563760757446, -0.15025688707828522, 0.050707247108221054, -0.14018560945987701, 0.15524128079414368, 0.1485542505979538, 0.760951578617096, 0.8849533796310425, -0.3269438147544861, 0.8619403839111328, -0.09647388011217117, -0.32591187953948975, -0.021010832861065865, -0.6436322927474976, -0.751397430896759, -0.37572115659713745, -0.17391732335090637, -0.3876156508922577, 0.06959432363510132, 1.097457766532898, 0.5702106952667236, -0.8872628808021545, -0.2767368257045746, -0.3152240216732025, 0.05956811457872391, -0.1698506772518158, -0.1754380762577057, 0.2484396994113922, -0.4721878468990326, -0.5891154408454895, 0.3721315562725067, -0.023735135793685913, -0.10974259674549103, -0.2630966305732727, -0.49876540899276733, 0.13517260551452637, 0.12674270570278168, 0.5070359110832214, 0.19041034579277039, -0.3787047564983368, 0.061342254281044006, 0.042239632457494736, -0.015232873149216175, 0.00026385841192677617, 1.0016179084777832, -0.6877688765525818, 0.3698922395706177, 0.18341656029224396, 0.6268766522407532, 0.18227367103099823, -0.03562645986676216, 0.45340895652770996, -1.196789026260376, 0.08798619359731674, 0.25079411268234253, 0.20845425128936768, 0.3689190149307251, -0.3072853088378906, 0.48618048429489136, -0.15440136194229126, -0.7456913590431213, -0.6812229156494141, 0.38575711846351624, -0.43350356817245483, -0.6889760494232178, 1.089268445968628, 0.16229088604450226, 0.20638631284236908, -0.022967493161559105, 0.012439938262104988, 0.27618175745010376, -0.48513251543045044, 0.5642548203468323, 0.6966859102249146, -0.3263419568538666, -0.21081209182739258, -0.4746354818344116, 0.5011376738548279, 0.30410414934158325, -1.0612019300460815, 0.361875057220459, 0.9983508586883545, 0.12359774112701416, 0.37523171305656433, 0.36247819662094116, 0.019546417519450188, 0.24176405370235443, 0.14434634149074554, 0.29421693086624146, -0.2970595061779022, -0.766696035861969, -0.519288957118988, 0.01688215136528015, 0.2995661497116089, -0.030095810070633888 ]
http://arxiv.org/abs/2405.19262v1
http://arxiv.org/pdf/2405.19262v1
Weak-to-Strong Search: Align Large Language Models via Searching over Small Language Models
2024-05-29T16:55:32
2024-05-29T16:55:32
Zhanhui Zhou, Zhixuan Liu, Jie Liu, Zhichen Dong, Chao Yang, Yu Qiao
cs.CL
cs.CL, cs.AI, cs.LG
Large language models are usually fine-tuned to align with human preferences. However, fine-tuning a large language model can be challenging. In this work, we introduce $\textit{weak-to-strong search}$, framing the alignment of a large language model as a test-time greedy search to maximize the log-likelihood difference between small tuned and untuned models while sampling from the frozen large model. This method serves both as (i) a compute-efficient model up-scaling strategy that avoids directly tuning the large model and as (ii) an instance of weak-to-strong generalization that enhances a strong model with weak test-time guidance. Empirically, we demonstrate the flexibility of weak-to-strong search across different tasks. In controlled-sentiment generation and summarization, we use tuned and untuned $\texttt{gpt2}$s to effectively improve the alignment of large models without additional training. Crucially, in a more difficult instruction-following benchmark, AlpacaEval 2.0, we show that reusing off-the-shelf small model pairs (e.g., $\texttt{zephyr-7b-beta}$ and its untuned version) can significantly improve the length-controlled win rates of both white-box and black-box large models against $\texttt{gpt-4-turbo}$ (e.g., $34.4 \rightarrow 37.9$ for $\texttt{Llama-3-70B-Instruct}$ and $16.0 \rightarrow 20.1$ for $\texttt{gpt-3.5-turbo-instruct}$), despite the small models' low win rates $\approx 10.0$.
[ -0.25967657566070557, -0.6250776052474976, 0.5259414315223694, -0.004521682858467102, -0.4900912344455719, -0.07407286763191223, -0.7239980101585388, -0.24931050837039948, 0.15057119727134705, 0.21988339722156525, -0.4058832824230194, -0.23931188881397247, -0.683907151222229, -0.19464245438575745, -0.17475354671478271, 1.2901755571365356, -0.15206530690193176, -0.07980471849441528, 0.2632053792476654, -0.2066202014684677, -0.5550849437713623, -0.14874668419361115, -0.5612319707870483, -0.3654088079929352, 0.7030340433120728, 0.34338152408599854, 1.3238821029663086, 0.7940371632575989, 0.5270256400108337, 0.22362764179706573, -0.3789210021495819, 0.07232114672660828, -0.5984827876091003, 0.2007599025964737, -0.4031560719013214, -0.35703015327453613, -0.5330502986907959, -0.0716593936085701, 0.5966888070106506, 0.5186730623245239, -0.3757138252258301, 0.09792899340391159, 0.2619359791278839, 0.4738221764564514, -0.7118203043937683, 0.04283124953508377, -0.7459893822669983, -0.14136821031570435, -0.44196242094039917, -0.1090361624956131, -0.30175989866256714, -0.1542023867368698, 0.08998499810695648, -0.468885600566864, 0.40435951948165894, -0.04148522764444351, 1.1249580383300781, 0.1877593994140625, -0.5939946174621582, -0.21867269277572632, -0.6524207592010498, 1.0936604738235474, -0.9713259935379028, 0.29792794585227966, 0.07346178591251373, 0.3126113712787628, -0.25165945291519165, -0.41915857791900635, -0.34301692247390747, -0.04125376418232918, 0.0008270437247119844, 0.1929810643196106, -0.24413330852985382, 0.0664273351430893, 0.11874843388795853, 0.5129262804985046, -0.6079230904579163, 0.5066277384757996, -0.35400229692459106, -0.0964847058057785, 0.689146876335144, 0.02901812270283699, 0.006463793106377125, 0.039482347667217255, -0.10085947811603546, -0.2929089367389679, -0.5904030203819275, -0.04831940680742264, 0.45952409505844116, 0.8705534934997559, 0.07397592812776566, 0.996150016784668, -0.1477191001176834, 0.7357732653617859, 0.24036087095737457, -0.12310141324996948, 0.0007627640734426677, -0.3158770203590393, -0.18708574771881104, 0.05688501521945, 0.7126815319061279, 0.390326589345932, 0.12469082325696945, -0.11379267275333405, -0.5932726860046387, 0.318362295627594, 0.23299631476402283, -0.875994086265564, -0.08209934085607529, -0.11602243036031723, -0.49963483214378357, -0.3734985589981079, -0.0074418834410607815, -0.7973292469978333, -0.17190198600292206, -0.26003608107566833, 0.6950842142105103, 0.00115554581861943, -0.04275285452604294, 0.1880665421485901, -0.10439600050449371, 0.5161223411560059, 0.22058230638504028, -0.9714775085449219, 0.2214009314775467, 0.7107748985290527, 0.9040030837059021, -0.10195295512676239, -0.2392338216304779, -0.8527950644493103, -0.04803783819079399, -0.5794029831886292, 0.43998846411705017, -0.44579172134399414, -0.2856278121471405, -0.05965884029865265, 0.004739881493151188, 0.026770800352096558, -0.4142111539840698, 0.4684053659439087, -0.6149201989173889, 0.4558256268501282, -0.35449573397636414, -0.5106590986251831, 0.1471048891544342, 0.1354599893093109, -0.554314374923706, 0.9414193034172058, -0.038015782833099365, -0.5929093956947327, 0.2819191813468933, -0.44175854325294495, -0.6445676684379578, -0.3189006447792053, -0.0609966479241848, -0.8686091303825378, 0.4569252133369446, 0.32277601957321167, 0.41652432084083557, -0.6137776970863342, 0.1831529587507248, -0.6204795241355896, -0.6689972281455994, -0.09896586090326309, -0.3133426606655121, 0.6529954671859741, 0.0568961575627327, -0.8314084410667419, 0.12255557626485825, -0.24502724409103394, 0.201301708817482, 0.4287970960140228, -0.362626850605011, -0.30251532793045044, 0.24986962974071503, -0.26875168085098267, 0.07238411158323288, 0.22447432577610016, -0.1137668788433075, 0.6669260263442993, -0.709864616394043, 0.43069612979888916, 0.7720467448234558, -0.24985644221305847, 0.6538634300231934, -0.26495376229286194, 0.36540457606315613, -0.19310873746871948, 0.1100178137421608, 0.32571160793304443, -0.3782728612422943, -0.6524433493614197, -0.18640248477458954, 0.494501531124115, 0.47190600633621216, -0.41494429111480713, 0.42448821663856506, -0.27680402994155884, -0.38868141174316406, -0.7852723002433777, 0.5641610026359558, 0.3875015676021576, 0.30275100469589233, 0.5453449487686157, -0.3438144028186798, -0.20375651121139526, -0.9793242812156677, -0.14878414571285248, -0.13113833963871002, -0.18511328101158142, 0.3524951934814453, 0.3587464392185211, -0.1369454562664032, 0.5820673704147339, -0.690903902053833, -0.38675999641418457, -0.33227699995040894, 0.13337759673595428, 0.3153207004070282, 0.28007063269615173, 0.46583130955696106, -0.7136444449424744, -0.3115595281124115, 0.06186763569712639, -0.4546685516834259, 0.04470260068774223, 0.26430004835128784, -0.13819046318531036, 0.12906967103481293, 0.414222776889801, -0.8664841055870056, 0.336614191532135, 0.6008788347244263, -0.42837390303611755, 0.31568270921707153, -0.003861734876409173, -0.029204336926341057, -1.1415461301803589, 0.09146430343389511, -0.06764478981494904, 0.01497534941881895, -0.3134872317314148, 0.27606454491615295, 0.17981906235218048, -0.07871516048908234, -0.24739298224449158, 0.5591928958892822, -0.5007491111755371, -0.0010479006450623274, -0.325152724981308, 0.2074650079011917, 0.003911943174898624, 0.45325714349746704, -0.18071715533733368, 0.8269742727279663, 0.38518673181533813, -0.3159295320510864, 0.23208683729171753, 0.09074927121400833, -0.3164069950580597, 0.20444656908512115, -0.8729842901229858, 0.22589430212974548, -0.23244063556194305, 0.19013696908950806, -0.7584865689277649, -0.16088269650936127, -0.061017487198114395, -0.2727448046207428, 0.5331166982650757, -0.2993563413619995, -0.445842981338501, -0.2703419029712677, -0.4684406816959381, 0.6126033663749695, 0.6213191747665405, -0.6313861012458801, 0.5048646330833435, 0.08890290558338165, -0.23360349237918854, -0.7041561603546143, -0.47388195991516113, -0.11514085531234741, -0.3537128269672394, -0.4212907552719116, 0.3962422311306, 0.026391368359327316, -0.24115516245365143, -0.10591171681880951, -0.16580812633037567, 0.27736911177635193, 0.07018551230430603, -0.12078994512557983, 0.43973392248153687, -0.4132698178291321, 0.21142570674419403, 0.06069064140319824, 0.060533445328474045, -0.37084484100341797, -0.4409806430339813, 0.48059019446372986, -0.316496878862381, -0.329841285943985, 0.03888331353664398, 0.3625795245170593, 0.5889032483100891, -0.38688555359840393, 0.6480972766876221, 0.4734902083873749, -0.2677157521247864, -0.23755167424678802, -0.5348157286643982, -0.3633364140987396, -0.4810839295387268, 0.3397615849971771, -0.16399097442626953, -1.0835061073303223, 0.4809178411960602, 0.28723740577697754, -0.023130783811211586, 0.7201583981513977, 0.7261115908622742, -0.04004408419132233, 1.6586997509002686, 0.6911393404006958, -0.5186097025871277, 0.3632569909095764, -0.10913287848234177, 0.21786579489707947, -0.6237958669662476, 0.14961162209510803, -0.5697047114372253, -0.6145758032798767, -0.7626752257347107, -0.2101709097623825, 0.2559601366519928, 0.32348671555519104, -0.33139029145240784, 0.3053778111934662, -0.4816746115684509, 0.5803781747817993, 0.49271389842033386, 0.2142743468284607, 0.04165317118167877, -0.231874480843544, -0.05360265076160431, -0.19318091869354248, -0.7776695489883423, -0.015235747210681438, 1.0045158863067627, 0.2618641257286072, 1.0599822998046875, 0.4797911047935486, 0.6135038733482361, -0.020131373777985573, 0.2811982035636902, -1.1310675144195557, 0.39847999811172485, -0.40982624888420105, -0.6662749648094177, -0.37024644017219543, -0.6423898935317993, -0.9933295845985413, 0.14490434527397156, -0.08786503970623016, -0.5589733123779297, 0.09558390825986862, 0.3851403295993805, -0.3726409673690796, 0.32443591952323914, -0.775574803352356, 1.0879181623458862, -0.5211000442504883, -0.5445646047592163, -0.23157575726509094, -0.5743522644042969, 0.3199694752693176, -0.004007244482636452, -0.07217667996883392, 0.010941803455352783, -0.0745043158531189, 0.6046053767204285, -0.43108057975769043, 0.7356463670730591, -0.14236538112163544, -0.1693100482225418, 0.13237068057060242, 0.16437210142612457, 1.0486645698547363, -0.04953129589557648, 0.051268432289361954, -0.2431563138961792, -0.3516629636287689, -0.7133978009223938, -0.6161595582962036, 0.7062933444976807, -0.7752001285552979, -0.6194968819618225, -0.4016110897064209, -0.3827489912509918, -0.19049306213855743, 0.4247767925262451, 0.4505575895309448, 0.36143267154693604, -0.044929686933755875, 0.36942872405052185, 0.7115424871444702, 0.025366634130477905, 0.15082332491874695, 0.34444576501846313, -0.06344354897737503, -0.172217458486557, 0.815414309501648, 0.005236774682998657, 0.35036954283714294, 0.42515429854393005, 0.43981215357780457, -0.41365817189216614, -0.5216424465179443, -0.2697504460811615, 0.296012282371521, -0.45559969544410706, -0.5805578827857971, -0.13422782719135284, -0.102536141872406, -0.21947835385799408, -0.3022148311138153, -0.6945095062255859, -0.2596072852611542, -0.28686797618865967, 0.13717201352119446, 0.1058296412229538, 0.49905887246131897, 0.18364329636096954, 0.33301404118537903, -0.4601863920688629, 0.12099258601665497, 0.6455696821212769, 0.5539438128471375, -0.053085487335920334, -0.6808977723121643, -0.20263414084911346, 0.020225152373313904, -0.356768935918808, -0.8358043432235718, 0.15183104574680328, 0.24903371930122375, 0.18208612501621246, 0.342801034450531, 0.028892550617456436, 0.705471932888031, -0.2553469240665436, 0.6168055534362793, 0.23958651721477509, -0.9129855632781982, 0.5956372618675232, -0.5539520978927612, 0.5585657954216003, 0.6732050776481628, 0.1840536892414093, -0.22548896074295044, -0.4191931188106537, -0.6268674731254578, -1.0189629793167114, 0.4653346836566925, 0.17780908942222595, -0.04206477850675583, 0.11545349657535553, 0.21343547105789185, -0.2778337597846985, 0.23680289089679718, -0.5865771174430847, 0.14609703421592712, -0.11745660752058029, -0.36203816533088684, -0.40642181038856506, -0.14119747281074524, -0.32128390669822693, -0.1669030338525772, 0.872238278388977, -0.4314453601837158, 0.18912295997142792, -0.12096299976110458, -0.03037821128964424, -0.3219389021396637, 0.518348217010498, 0.44314906001091003, 0.40307310223579407, -0.33511820435523987, 0.22571119666099548, 0.25410470366477966, -0.08605270087718964, 0.05982419103384018, 0.5052927732467651, -0.14267012476921082, -0.23984286189079285, 0.2588581442832947, 0.7948035001754761, 0.526938796043396, -0.5681068301200867, 0.7513997554779053, -0.02012302726507187, -0.15097284317016602, 0.23963840305805206, -0.005328360944986343, -0.004825476557016373, 0.4506796598434448, 0.09836024045944214, -0.11801595985889435, -0.07945121824741364, -0.6076332330703735, -0.04634886980056763, 0.8696036338806152, -0.27724745869636536, -0.28956109285354614, 0.7712886333465576, -0.05456358939409256, 0.06023848429322243, 0.7297912836074829, -0.4323071241378784, -0.6450323462486267, 0.40151092410087585, 0.5737088322639465, 0.7292584180831909, -0.18263618648052216, -0.04413939639925957, 0.2161283642053604, 0.3016349673271179, -0.7100358009338379, 0.14448848366737366, 0.06918809562921524, -0.6831896305084229, -0.6243241429328918, -0.47282928228378296, -0.33708325028419495, 0.316461980342865, -0.6923678517341614, 0.42784184217453003, -0.32295045256614685, -0.24895718693733215, 0.16018328070640564, 0.308027446269989, -0.7057384252548218, 0.05532625690102577, -0.0455382764339447, 0.6639972925186157, -0.7929359078407288, 0.6976593732833862, 0.6428586840629578, -0.19786863029003143, -1.1342018842697144, 0.027714785188436508, 0.2536355257034302, -0.7352904677391052, 0.16445191204547882, -0.11158208549022675, -0.04881991073489189, -0.11358580738306046, -0.5593385696411133, -0.8815245628356934, 1.0743684768676758, 0.4041621685028076, -0.7150372862815857, -0.3069848120212555, -0.3889778256416321, 0.47740691900253296, -0.15359307825565338, 0.01947743631899357, 0.5243493318557739, 0.31548264622688293, 0.08224642276763916, -1.012941837310791, 0.16509079933166504, -0.220480814576149, -0.01356388721615076, 0.7577266097068787, -1.0022367238998413, 0.8109008073806763, -0.2998802363872528, -0.15817174315452576, 0.13305890560150146, 0.6866927742958069, 0.23084856569766998, 0.07274061441421509, 0.6339869499206543, 0.7104417085647583, 0.6961595416069031, -0.14266738295555115, 0.8121851682662964, 0.015521368943154812, 0.5303402543067932, 1.0912529230117798, -0.1779891401529312, 0.9501768350601196, 0.4368632733821869, 0.03695833310484886, 0.1284688115119934, 0.4265076816082001, -0.18251675367355347, 0.48232346773147583, 0.04711069539189339, -0.032570794224739075, -0.3883853852748871, 0.10500740259885788, -0.373324453830719, 0.6356095671653748, 0.051419150084257126, -0.35343512892723083, -0.2525705099105835, -0.3861262798309326, 0.19037944078445435, -0.034115370362997055, -0.37227264046669006, 0.7427895665168762, 0.021136507391929626, -0.9440054893493652, 0.6550858616828918, 0.16779732704162598, 0.768347978591919, -0.7846294045448303, 0.2880130708217621, -0.2251671850681305, 0.4989459216594696, -0.03242788463830948, -0.6456547379493713, 0.03410639241337776, -0.01717507466673851, -0.16346041858196259, -0.0461360439658165, 0.861065149307251, -0.5695602297782898, -0.47380945086479187, 0.3710431754589081, 0.43527013063430786, -0.31646209955215454, 0.05212107673287392, -0.6639997959136963, 0.24842016398906708, 0.027534063905477524, -0.5268405079841614, 0.5986816883087158, 0.15408317744731903, -0.1670428216457367, 0.2737235426902771, 0.43260011076927185, 0.33204716444015503, -0.34922170639038086, 0.032522737979888916, 0.8873164653778076, -0.673821210861206, -0.540712296962738, -0.8424199819564819, 0.2920806109905243, 0.07717333734035492, -0.3655008375644684, 0.5668607354164124, 0.660872220993042, 0.8029772043228149, 0.24051958322525024, 0.6364530920982361, -0.1541697084903717, 0.30752402544021606, -0.6284832954406738, 0.5107541084289551, -0.9530401229858398, 0.14126454293727875, -0.175572469830513, -1.1179407835006714, -0.15216656029224396, 0.4335184097290039, -0.2899594306945801, 0.11186118423938751, 0.3143058717250824, 0.9756619334220886, -0.4785180985927582, -0.25492358207702637, -0.0811455175280571, 0.2669305205345154, 0.35464397072792053, 0.6393999457359314, 0.5726321339607239, -0.37957334518432617, 0.7581241130828857, -0.14727570116519928, -0.3087524175643921, -0.4146571457386017, -0.8846696019172668, -0.793804407119751, -0.30537155270576477, -0.06309759616851807, -0.678073525428772, 0.198203444480896, 0.9578517079353333, 0.617216169834137, -0.64631587266922, -0.22891442477703094, 0.16300946474075317, 0.06921061128377914, -0.4813913404941559, -0.22485558688640594, 0.46682071685791016, -0.32605695724487305, -0.539287269115448, 0.49536317586898804, -0.020352786406874657, 0.2793895900249481, 0.025547543540596962, -0.18213993310928345, 0.05103322118520737, 0.11572500318288803, 0.420610249042511, 0.5512027740478516, -0.39221909642219543, -0.40049004554748535, 0.1016482412815094, -0.1384303718805313, -0.13551555573940277, 0.8605825304985046, -0.3332381844520569, 0.4134228527545929, 0.33314332365989685, 0.6536586880683899, 0.7581324577331543, 0.13396340608596802, 0.6772956252098083, -0.9701352715492249, 0.11930634081363678, 0.41122210025787354, 0.26316529512405396, 0.3516593873500824, -0.157064750790596, 0.3560386300086975, 0.0679735615849495, -0.68780118227005, -0.89197838306427, 0.18814675509929657, -0.9865201711654663, -0.26566722989082336, 1.2041467428207397, 0.3495155870914459, -0.0543089434504509, 0.526597261428833, -0.11817687004804611, 0.40213754773139954, -0.3877628743648529, 0.9794749617576599, 0.6972994208335876, 0.044721923768520355, 0.060041334480047226, -0.5031769275665283, 0.5619920492172241, 0.826317548751831, -0.3760111629962921, 0.13689610362052917, 0.2618795931339264, 0.10443290323019028, -0.0016749091446399689, 0.41382238268852234, -0.12493696808815002, 0.22077111899852753, -0.28401365876197815, -0.38995862007141113, 0.11498861014842987, -0.26322972774505615, -0.4054626226425171, 0.12599320709705353, 0.3160251975059509, 0.07816622406244278 ]
http://arxiv.org/abs/2405.19261v1
http://arxiv.org/pdf/2405.19261v1
Faster Cascades via Speculative Decoding
2024-05-29T16:55:08
2024-05-29T16:55:08
Harikrishna Narasimhan, Wittawat Jitkrittum, Ankit Singh Rawat, Seungyeon Kim, Neha Gupta, Aditya Krishna Menon, Sanjiv Kumar
cs.CL
cs.CL, cs.AI, cs.LG
Cascades and speculative decoding are two common approaches to improving language models' inference efficiency. Both approaches involve interleaving models of different sizes, but via fundamentally distinct mechanisms: cascades employ a deferral rule that invokes the larger model only for "hard" inputs, while speculative decoding uses speculative execution to primarily invoke the larger model in parallel verification mode. These mechanisms offer different benefits: empirically, cascades are often capable of yielding better quality than even the larger model, while theoretically, speculative decoding offers a guarantee of quality-neutrality. In this paper, we leverage the best of both these approaches by designing new speculative cascading techniques that implement their deferral rule through speculative execution. We characterize the optimal deferral rule for our speculative cascades, and employ a plug-in approximation to the optimal rule. Through experiments with T5 models on benchmark language tasks, we show that the proposed approach yields better cost-quality trade-offs than cascading and speculative decoding baselines.
[ -0.20533205568790436, -0.39020615816116333, 0.5448824167251587, 0.49954649806022644, -0.18164919316768646, 0.3527921140193939, -0.2497432380914688, -0.45820334553718567, 0.16052351891994476, 0.296490341424942, -0.5833826661109924, -0.2232261449098587, -0.4787698984146118, 0.03634156659245491, -0.5770735740661621, 0.775985598564148, -0.06433143466711044, -0.12806415557861328, -0.07164104282855988, 0.46893006563186646, -0.06920081377029419, -0.41756436228752136, -0.4858907163143158, -0.1261371523141861, 0.33705732226371765, 0.1442408263683319, 0.644827663898468, 0.6098547577857971, 0.4086623191833496, 0.24451203644275665, -0.012269189581274986, 0.05330151692032814, -0.5040811896324158, 0.042027585208415985, -0.14777381718158722, -0.5772049427032471, -0.24228574335575104, -0.19942006468772888, 0.4268087148666382, 0.7368048429489136, -0.1445750594139099, 0.015871914103627205, -0.16466741263866425, 0.3442251682281494, -1.2070071697235107, 0.39985373616218567, -0.494577556848526, -0.06779243797063828, -0.3341834545135498, -0.4240671396255493, -0.8285835981369019, -0.4440903663635254, -0.09051131457090378, -0.5387346148490906, 0.34164828062057495, 0.018199292942881584, 0.7712525725364685, 0.1671309769153595, -0.10314878076314926, -0.08142809569835663, -1.0236899852752686, 0.8699268698692322, -0.9234235882759094, 0.6078739762306213, 0.5194557905197144, 0.19085150957107544, -0.12234455347061157, -1.0635170936584473, -0.5748502612113953, -0.23737232387065887, -0.03816615417599678, 0.1697184443473816, -0.3951146602630615, 0.2365129292011261, 0.37161338329315186, 0.47246769070625305, -0.2101178616285324, 0.2140301764011383, -0.19527480006217957, -0.4640383720397949, 0.3426859378814697, 0.2989186644554138, -0.03275981917977333, 0.046320315450429916, -0.016793586313724518, -0.1042349636554718, -0.4464018940925598, 0.2106429487466812, 0.3875885307788849, 0.3017602860927582, -0.031181009486317635, 0.026766031980514526, -0.5630296468734741, 0.4775809645652771, 0.3819933235645294, -0.2235659807920456, -0.1601189225912094, -0.5540403127670288, -0.012129421345889568, -0.009735300205647945, 0.5014535784721375, 0.1838519126176834, -0.14623983204364777, -0.661530077457428, -0.281703382730484, 0.4416503608226776, 0.14823873341083527, -0.9490783214569092, -0.3624759614467621, 0.3764387369155884, -0.6429427862167358, -0.32762396335601807, -0.15420067310333252, -0.4913519322872162, 0.20729681849479675, -0.1298590451478958, 0.3609132468700409, -0.46957388520240784, -0.2795420289039612, 0.32589539885520935, -0.2571665942668915, 0.0841301828622818, 0.35379278659820557, -1.3092195987701416, 0.7948214411735535, 0.8879854083061218, 0.8578692078590393, 0.06393551081418991, -0.074891097843647, -0.7493484616279602, 0.06811801344156265, -0.7051134705543518, 0.8634834289550781, -0.6446222066879272, -0.2082274854183197, -0.11747772246599197, -0.34041324257850647, 0.18601754307746887, -0.08603775501251221, 1.0086300373077393, -0.9873980283737183, -0.010177762247622013, -0.8835753798484802, -0.40904489159584045, -0.16387467086315155, -0.2363528460264206, -0.6782664656639099, 0.6554242372512817, -0.010513167828321457, -1.0896916389465332, 0.6645947098731995, -0.1905645728111267, -0.6522873640060425, -0.05043178051710129, 0.12632688879966736, 0.11536988615989685, 0.3614308536052704, 0.35990282893180847, 0.31468746066093445, -0.5340593457221985, 0.011844025924801826, -0.39475199580192566, -0.7397902607917786, 0.028688745573163033, -0.7619904279708862, 0.4713435471057892, 0.3164743483066559, -0.2649524509906769, -0.15900284051895142, -0.3485395014286041, 0.043128617107868195, -0.23521539568901062, -0.29429346323013306, -0.35322320461273193, 0.3626458942890167, -0.01509009301662445, 0.07740409672260284, -0.179710254073143, -0.35696619749069214, 0.21284694969654083, -0.4846344590187073, 0.44250527024269104, 0.7206106781959534, -0.17238254845142365, 0.4854923486709595, -0.3385457396507263, 0.40467938780784607, 0.18507631123065948, 0.19084729254245758, -0.2869981527328491, -0.08283442258834839, -0.8001943826675415, -0.36911705136299133, 0.6708001494407654, 0.23706065118312836, -0.9870919585227966, 0.0693448856472969, -0.24946317076683044, -0.2409699708223343, -0.7636625170707703, -0.3968642055988312, 0.3891332745552063, 0.47832348942756653, 0.5175348520278931, -0.3241497278213501, -0.38065651059150696, -0.6640889048576355, -0.48958057165145874, -0.33003512024879456, 0.2976008653640747, -0.3275790810585022, 0.21318310499191284, 0.17417548596858978, 0.6842599511146545, -0.465423583984375, 0.3082176148891449, -0.2425631731748581, 0.21528226137161255, 0.34637919068336487, 0.3873671889305115, 0.692797839641571, -0.389232337474823, -0.37320011854171753, -0.1829323023557663, -0.43334317207336426, -0.014250042848289013, -0.17973041534423828, -0.13533024489879608, 0.4818247854709625, 0.44409921765327454, -0.6225683689117432, 0.3969833254814148, 0.38746607303619385, -0.01724199950695038, 0.798531711101532, -0.056942399591207504, 0.5287125110626221, -0.8708940744400024, -0.09531507641077042, -0.29723817110061646, -0.14954517781734467, -0.9100391864776611, 0.21673402190208435, 0.2431049644947052, 0.5469425320625305, -0.2556138038635254, 0.13313999772071838, -0.6577346920967102, 0.1430889070034027, -0.35757094621658325, -0.3004799485206604, -0.05833662301301956, 0.2410200536251068, 0.19775234162807465, 0.8343161344528198, 0.7312925457954407, -0.6753882169723511, -0.07718156278133392, -0.24203555285930634, -0.5005952715873718, -0.05918048694729805, -0.5592052936553955, 0.13448527455329895, -0.20435595512390137, 0.7780613303184509, -0.8903415203094482, -0.14911417663097382, 0.07377945631742477, -0.22804886102676392, 0.40067410469055176, -0.23820488154888153, -0.4339870810508728, -0.7203466892242432, -0.5545486807823181, 0.7590402364730835, 0.8118669390678406, -0.7568752765655518, 0.3917406499385834, -0.059312604367733, 0.28499364852905273, -1.2231134176254272, -1.1359124183654785, 0.062495242804288864, -0.034287307411432266, -0.5302940607070923, 0.6886180639266968, 0.11254756897687912, -0.24759192764759064, 0.10632272809743881, -0.2815859615802765, 0.037519171833992004, -0.06741144508123398, -0.1715347319841385, 0.05351410433650017, -0.36268290877342224, -0.25803467631340027, 0.5244400501251221, -0.4380396008491516, -0.0006075082928873599, -0.846278965473175, 0.5053220391273499, 0.1518898904323578, -0.23645912110805511, -0.9857520461082458, 0.4623359441757202, 0.6029884219169617, 0.029835030436515808, 0.8680558204650879, 0.44153961539268494, -0.29189977049827576, -0.4565110206604004, -0.928207516670227, -0.5446191430091858, -0.5450708866119385, -0.026873769238591194, -0.6942389011383057, -0.7823120951652527, 0.6127141714096069, -0.10303477197885513, 0.18101873993873596, 0.34933021664619446, 0.5778377056121826, 0.2777303457260132, 0.7882343530654907, 0.5946660041809082, -0.34644436836242676, 0.12906955182552338, -0.2582864761352539, 0.5569450855255127, -0.5325098037719727, -0.09031675010919571, -0.681871235370636, -0.1390407532453537, -0.4829038679599762, -0.8228872418403625, -0.011086021549999714, 0.3057948648929596, 0.16213145852088928, 0.3730590045452118, -0.19138923287391663, 0.5651023983955383, 0.5225732326507568, 0.0853457897901535, 0.5086246728897095, 0.16305339336395264, -0.3671010732650757, -0.08922851085662842, -1.0236616134643555, -0.2260947972536087, 0.7928261756896973, 0.1804480403661728, 1.0002862215042114, 0.25214260816574097, 0.5841938257217407, 0.267139196395874, 0.20080803334712982, -0.7041019201278687, 0.3949795663356781, -0.3494109511375427, -0.33348655700683594, 0.13773496448993683, -0.5482999682426453, -0.5656794309616089, 0.1910669356584549, -0.1806749850511551, -0.7250098586082458, 0.39798182249069214, 0.3498033285140991, -0.48229852318763733, 0.611086368560791, -0.6382061839103699, 0.37083542346954346, 0.4304760694503784, -0.5824215412139893, -0.4987923502922058, -0.4010370671749115, 0.7754144072532654, -0.039941076189279556, 0.04863033816218376, 0.21845506131649017, -0.025433534756302834, 0.3623364567756653, -0.6485634446144104, 0.6784216165542603, 0.05552477389574051, -0.06697306782007217, 0.3080330789089203, 0.4689071774482727, 0.6281221508979797, 0.09552664309740067, -0.49161574244499207, 0.10836134105920792, 0.23715654015541077, -0.5853846669197083, -0.6094475388526917, 0.7871230840682983, -0.6191771626472473, -0.6483686566352844, -0.2945382595062256, -0.5481603145599365, -0.13331076502799988, -0.06507926434278488, 0.5258915424346924, 0.6769324541091919, -0.025020411238074303, -0.2123957872390747, 0.3399975299835205, 0.023619582876563072, 0.9199541807174683, 0.4008563756942749, 0.22517943382263184, 0.01481382641941309, 0.7321428060531616, 0.07609065622091293, 0.5642169713973999, 0.7622228860855103, 0.04058939591050148, -0.4629115164279938, -0.75413978099823, -0.13791121542453766, 0.13778960704803467, -0.7249460816383362, -0.15170767903327942, -0.8334042429924011, -0.13258416950702667, -0.6407134532928467, -0.2512168288230896, -0.3365114629268646, -0.7280972599983215, -0.022405169904232025, 0.040347978472709656, 0.4792616665363312, 0.4510800540447235, -0.3224727213382721, -0.038966454565525055, -0.5649110674858093, 0.20434452593326569, 0.040371090173721313, 0.28195926547050476, 0.625592827796936, -0.5689124464988708, -0.06216900423169136, -0.1195235401391983, 0.007369021885097027, -0.5828636884689331, 0.1912720799446106, -0.07121700048446655, 0.3981160521507263, 0.6942546963691711, 0.5211262702941895, 1.0709633827209473, -0.6226648092269897, 0.6688461899757385, 0.1310293823480606, -1.2756075859069824, 0.20103570818901062, -0.22773443162441254, 0.2241658866405487, 0.5804383158683777, 0.48831894993782043, -0.5734218955039978, -0.47150400280952454, -0.4111037254333496, -0.7305046916007996, 1.0346156358718872, 0.3364281952381134, 0.20388469099998474, -0.2715059518814087, 0.43446406722068787, 0.3783091604709625, -0.028486983850598335, -0.11510246992111206, 0.01844710484147072, -0.02202633209526539, 0.0510457418859005, 0.07214391231536865, -0.24330830574035645, 0.07910652458667755, -0.1814027577638626, 0.4430080056190491, -0.06354350596666336, 0.3102368116378784, 0.08972654491662979, 0.10209455341100693, -0.07310169190168381, 0.08438589423894882, 0.507285475730896, 0.3757546842098236, -0.05268922448158264, 0.4169108271598816, 0.36197271943092346, -0.4979339838027954, 0.006123540457338095, -0.24038374423980713, -0.2566039264202118, -0.07685089111328125, 0.7105317115783691, 0.7901356816291809, 0.05144665762782097, -0.24998188018798828, 0.28659918904304504, -0.26482880115509033, -0.2883032560348511, 0.2779819071292877, 0.10396146029233932, 0.043176766484975815, 0.22570036351680756, 0.3229793906211853, 0.31997010111808777, 0.42298123240470886, -0.5723236203193665, 0.28904637694358826, 0.21544760465621948, 0.07129424810409546, -0.6172162294387817, 0.7141265273094177, 0.05318468436598778, -0.070506751537323, 0.6301765441894531, -0.18788550794124603, -0.407545268535614, 0.4741261899471283, 0.7080341577529907, 0.9689375162124634, -0.11275593191385269, 0.18697303533554077, 0.3710482716560364, 0.2661837339401245, -0.506919264793396, 0.3097076117992401, -0.4102015495300293, -0.45919269323349, -0.9678972959518433, -0.714633584022522, -0.4654894471168518, -0.19024629890918732, -0.5892897844314575, 0.15567107498645782, -0.5234360694885254, -0.1865113228559494, -0.11278030276298523, -0.1405305117368698, -0.4810468256473541, 0.0051574683748185635, -0.019760053604841232, 1.1115314960479736, -0.5667218565940857, 0.7743229269981384, 0.07380887120962143, -0.2645626664161682, -1.0833905935287476, 0.6339529156684875, -0.08772923797369003, -0.35991930961608887, 0.6875290870666504, -0.06692670285701752, -0.4887596368789673, -0.028262633830308914, -0.1571216881275177, -0.9916656613349915, 0.9351110458374023, 0.41886410117149353, -0.6716185212135315, -0.03899075463414192, -0.12174422293901443, 0.49178555607795715, -0.10081576555967331, 0.8067614436149597, 0.7730262279510498, 0.20831820368766785, 0.4350847005844116, -0.8212445378303528, 0.46037551760673523, -0.027044299989938736, 0.17537403106689453, 0.2733033001422882, -0.8462653160095215, 0.7758988738059998, -0.37012985348701477, -0.3899180293083191, 0.18771161139011383, 1.006306767463684, 0.029504191130399704, 0.1403808295726776, 0.38359859585762024, 0.494937002658844, 0.7336273789405823, -0.27476292848587036, 1.3735522031784058, -0.5249720215797424, 0.32478734850883484, 0.7412711381912231, -0.13072748482227325, 0.9443984031677246, 0.23098886013031006, -0.3704136908054352, 0.7992511987686157, 0.7534506320953369, 0.5549545884132385, 0.6772845983505249, 0.1904824823141098, -0.4696040451526642, -0.34283557534217834, -0.21163079142570496, -0.34098532795906067, 0.11607961356639862, 0.2898100018501282, 0.044725529849529266, -0.25990086793899536, -0.40265849232673645, 0.10281667113304138, -0.18198461830615997, -0.14351724088191986, 0.35561123490333557, 0.06915612518787384, -0.8794211149215698, 0.8831800222396851, 0.2341638058423996, 0.8743672370910645, -0.447769433259964, 0.2764681875705719, -0.4014929234981537, 0.3322998881340027, -0.270091712474823, -0.40665504336357117, 0.2961801290512085, -0.16087613999843597, -0.43628987669944763, -0.09171774238348007, 0.5586345195770264, -0.2918570637702942, -0.3886772096157074, 0.3683605194091797, 0.04427487775683403, 0.043900005519390106, 0.2579207718372345, -0.3221774697303772, 0.334603488445282, -0.42873188853263855, -0.022084765136241913, 0.05387828126549721, 0.33146199584007263, -0.3691559433937073, 0.6028339266777039, 0.8596009016036987, 0.14101742208003998, 0.0589149072766304, 0.49673616886138916, 1.0975970029830933, -0.46682077646255493, -0.8048816919326782, -0.9336584210395813, 0.3591446578502655, 0.07044550031423569, 0.010405858978629112, 0.7065547108650208, 0.2909974753856659, 0.7334264516830444, -0.13921037316322327, 0.6906731128692627, 0.018382921814918518, 0.006821559742093086, -0.7118372917175293, 0.4963548481464386, -0.37435486912727356, 0.42710861563682556, -0.6314804553985596, -0.711700439453125, -0.3031052052974701, 0.2316727489233017, -0.31203943490982056, 0.17210887372493744, 0.9485096335411072, 0.8573445677757263, -0.31969553232192993, 0.2588813602924347, 0.1557433009147644, 0.324820876121521, 0.2612881362438202, 0.7758510708808899, 0.935152530670166, -0.5012593269348145, 0.1585371047258377, -0.40452414751052856, -0.408403217792511, -0.11379963159561157, -0.8716307282447815, -0.9505686163902283, -0.4392162263393402, -0.23453938961029053, -0.592731773853302, 0.15602687001228333, 0.6549504399299622, 1.093071460723877, -0.8508210778236389, -0.17182114720344543, -0.3397945165634155, 0.0010532772867009044, -0.515927791595459, -0.2416345775127411, 0.3777099549770355, -0.6519126296043396, -0.7313869595527649, 0.4608478248119354, 0.3626157343387604, -0.16771546006202698, -0.09469486027956009, -0.018106907606124878, 0.030969224870204926, 0.6435431838035583, 0.6633351445198059, 0.19957442581653595, -0.8556212186813354, -0.10725487768650055, 0.035427071154117584, 0.14653758704662323, -0.3856331706047058, 1.182356834411621, -0.9539076089859009, 0.23721295595169067, 0.9520151019096375, 0.7004135251045227, 0.6583147048950195, 0.11494534462690353, 0.5828490257263184, -0.27422669529914856, 0.49116238951683044, 0.29066377878189087, -0.027689645066857338, -0.10633472353219986, -0.4734749495983124, 0.08611585199832916, 0.3203146457672119, -0.28543445467948914, -0.9737163186073303, 0.18303407728672028, -0.9460234045982361, -0.4088278114795685, 0.8449922204017639, -0.08673650771379471, -0.2057560682296753, -0.08532383292913437, 0.20490498840808868, 0.06699184328317642, -0.4898950457572937, 0.9142258167266846, 0.7181220054626465, -0.08695061504840851, -0.06690189242362976, -0.29367128014564514, 0.7310596108436584, 0.6382943987846375, -0.5492929816246033, 0.19683481752872467, 0.17473283410072327, 0.11656489223241806, 0.0496937595307827, 0.7686785459518433, -0.06711655855178833, 0.45390960574150085, 0.34194403886795044, -0.2927612066268921, 0.3438226878643036, -0.5246423482894897, -0.18684400618076324, 0.2517695426940918, 0.07972382009029388, 0.12774492800235748 ]
http://arxiv.org/abs/2405.19222v2
http://arxiv.org/pdf/2405.19222v2
Lower Bounds on the Expressivity of Recurrent Neural Language Models
2024-05-29T16:02:09
2024-06-18T15:42:32
Anej Svete, Franz Nowak, Anisha Mohamed Sahabdeen, Ryan Cotterell
cs.CL
cs.CL
The recent successes and spread of large neural language models (LMs) call for a thorough understanding of their computational ability. Describing their computational abilities through LMs' \emph{representational capacity} is a lively area of research. However, investigation into the representational capacity of neural LMs has predominantly focused on their ability to \emph{recognize} formal languages. For example, recurrent neural networks (RNNs) with Heaviside activations are tightly linked to regular languages, i.e., languages defined by finite-state automata (FSAs). Such results, however, fall short of describing the capabilities of RNN \emph{language models} (LMs), which are definitionally \emph{distributions} over strings. We take a fresh look at the representational capacity of RNN LMs by connecting them to \emph{probabilistic} FSAs and demonstrate that RNN LMs with linearly bounded precision can express arbitrary regular LMs.
[ -0.30767059326171875, -0.1287897378206253, 0.706812858581543, 0.12546366453170776, -0.19000999629497528, 0.13747385144233704, -0.5630335807800293, -0.6364654302597046, 0.3232351839542389, 0.25904420018196106, -0.15665088593959808, -0.03248213604092598, -0.6336023211479187, 0.33260318636894226, -0.4534318745136261, 0.5437765717506409, -0.19082103669643402, -0.13924258947372437, -0.15075120329856873, -0.23630255460739136, -0.022788118571043015, -0.5629560351371765, -0.3421558141708374, -0.4974238872528076, 0.6548607349395752, -0.1678444892168045, 0.763251781463623, 0.4858466684818268, 0.45398733019828796, 0.3399905860424042, -0.12176232039928436, -0.18170365691184998, -0.22301150858402252, 0.2171473354101181, 0.05856010317802429, -0.6061021089553833, -0.28084027767181396, -0.03919189050793648, 0.9461420774459839, 0.774050772190094, -0.21712812781333923, 0.01289299689233303, -0.1981174796819687, 0.5515349507331848, -0.32953470945358276, 0.24625305831432343, -0.7475288510322571, 0.18957635760307312, -0.27132609486579895, 0.043963052332401276, -0.6297897100448608, -0.40116646885871887, 0.15558747947216034, -0.4679124653339386, 0.1478424370288849, -0.17545486986637115, 1.0012235641479492, 0.06876734644174576, -0.034180834889411926, 0.10649612545967102, -0.8630697727203369, 0.7246424555778503, -0.8967328071594238, 0.5409877896308899, 0.27533966302871704, 0.3789791464805603, -0.19407205283641815, -0.6063803434371948, -0.4410180151462555, -0.5432865619659424, -0.21054582297801971, -0.5630051493644714, -0.3572451174259186, 0.4217287003993988, 0.5759831070899963, 0.6827819347381592, -0.4312010407447815, 0.1580263376235962, -0.2995428144931793, -0.23690858483314514, 0.6986699104309082, 0.25397682189941406, 0.07658302783966064, 0.006169239990413189, -0.29594698548316956, 0.25514745712280273, -0.533290445804596, 0.16593581438064575, 0.15379472076892853, 0.29592153429985046, 0.1658696085214615, 0.5983704328536987, 0.030059028416872025, 1.004889726638794, 0.056797415018081665, 0.29242339730262756, 0.03440741077065468, -0.12990553677082062, -0.36755818128585815, -0.3138287663459778, 0.8545225858688354, -0.3550213873386383, 0.6290736794471741, -0.19158977270126343, -0.4195796847343445, 0.01630503125488758, 0.35095271468162537, -0.5335927605628967, 0.06903331726789474, -0.18596196174621582, -0.6151227951049805, 0.18257774412631989, -0.05847182869911194, -0.2938067317008972, -0.29519927501678467, -0.30092817544937134, 0.45616596937179565, -0.39763137698173523, -0.39102262258529663, 0.33977633714675903, -0.009288243018090725, -0.09123563766479492, -0.09114164113998413, -0.9125340580940247, 0.6542624831199646, 0.4508500099182129, 0.7081323862075806, 0.19050085544586182, 0.02885640598833561, 0.11672459542751312, -0.2768552303314209, -0.44406449794769287, 0.22610507905483246, -0.6479792594909668, 0.2188696265220642, 0.14356322586536407, -0.14909550547599792, -0.13875068724155426, -0.38181552290916443, 0.26085364818573, -0.940605878829956, -0.23639850318431854, -0.2878907322883606, -0.8106552958488464, -0.3106842637062073, -0.19765768945217133, -0.7511982321739197, 0.37909916043281555, 0.20507992804050446, -0.3509267568588257, -0.04417061060667038, -0.02403101697564125, -0.4886251986026764, -0.17982293665409088, -0.5172120928764343, -0.23119063675403595, 0.7084921002388, -0.35455453395843506, 0.5935972332954407, -0.3664133548736572, 0.2746371924877167, -0.3171897828578949, -0.44952288269996643, 0.6152539849281311, -0.5433412790298462, 0.5281044840812683, 0.4003639817237854, -0.2442837655544281, -0.030584070831537247, -0.6693968772888184, 0.0000027201392640563427, 0.07776744663715363, -0.525003969669342, -0.43938976526260376, -0.09968408942222595, -0.2553950846195221, 0.26785483956336975, 0.49607259035110474, -0.5851855874061584, 0.2862444818019867, -0.6993523836135864, 0.7916966080665588, 0.6862372159957886, -0.4881046712398529, 0.6217879056930542, -0.15104494988918304, 0.600899875164032, -0.1145273968577385, -0.23200182616710663, -0.06531669944524765, -0.4454696774482727, -0.6846000552177429, -0.27711018919944763, 0.5974162817001343, 0.2926540970802307, -0.411274254322052, 0.5951992869377136, -0.19979368150234222, -0.38147634267807007, -0.4250938296318054, -0.11651597172021866, 0.25325629115104675, -0.07704152911901474, 0.15376080572605133, -0.5009990930557251, -0.6946043372154236, -1.2613282203674316, -0.2418878972530365, 0.010781173594295979, -0.06260833144187927, 0.2064010053873062, 0.38213831186294556, 0.02476217970252037, 0.8340001702308655, -0.1564987152814865, -0.2791282534599304, -0.33861228823661804, 0.0065178945660591125, 0.6491259336471558, 0.26917344331741333, 0.4875166416168213, -0.48849326372146606, -0.37018147110939026, -0.1426720768213272, -0.6621857285499573, 0.10632715374231339, -0.21785439550876617, 0.2869336009025574, 0.3344716727733612, 0.18350668251514435, -0.8472916483879089, 0.6160635352134705, 0.4977312684059143, -0.3034559488296509, 0.17888768017292023, -0.36167436838150024, -0.1013067215681076, -0.4957837164402008, -0.03905101865530014, -0.03605721518397331, -0.38172125816345215, -0.732873797416687, -0.14507393538951874, 0.04576704651117325, -0.06668241322040558, 0.0812649130821228, 0.49749985337257385, -0.7076603174209595, -0.7515438199043274, -0.07990560680627823, 0.15261711180210114, -0.35161861777305603, 0.4830661714076996, 0.3889223337173462, 0.38465526700019836, 0.5037607550621033, -0.6263316869735718, 0.08496671169996262, -0.17719915509223938, -0.3865847587585449, 0.10061368346214294, -0.775297224521637, -0.2637241780757904, 0.06932911276817322, 0.33885568380355835, -0.9257799983024597, -0.09438706934452057, 0.017005084082484245, -0.5174773335456848, 0.40155619382858276, -0.06880125403404236, -0.32092636823654175, -0.23278141021728516, -0.0016478430479764938, 0.665427565574646, 0.7465752363204956, -0.2386815994977951, 0.6056910157203674, 0.2760697603225708, 0.3119281828403473, -0.6002368330955505, -0.8587125539779663, -0.005572637543082237, 0.1332036405801773, -0.4964764416217804, 0.2974141240119934, 0.29012641310691833, -0.3294372260570526, -0.01411935593932867, 0.014899840578436852, -0.015561257489025593, 0.06557748466730118, 0.059930428862571716, -0.17807705700397491, -0.44942834973335266, 0.1444321870803833, -0.1073179692029953, -0.1713096797466278, 0.007567392662167549, -0.37286677956581116, 0.6897649765014648, -0.42622628808021545, -0.31658533215522766, -0.7283095121383667, 0.16948707401752472, 0.4977092146873474, -0.240964874625206, 0.6593613624572754, 0.1990477442741394, -0.8903730511665344, 0.09937616437673569, -0.22187310457229614, -0.4458492398262024, -0.4632350206375122, 0.14142760634422302, -0.4399406313896179, -0.8802753686904907, 0.5995986461639404, 0.5537014007568359, 0.1794564574956894, 0.49206098914146423, 0.38736891746520996, 0.15690068900585175, 0.8664863705635071, 0.19604504108428955, -0.024896960705518723, 0.5001146197319031, -0.20662368834018707, 0.2293664962053299, -0.777119517326355, 0.053011514246463776, -0.38548654317855835, -0.5512427091598511, -0.7206664085388184, -0.6190053224563599, -0.2134929597377777, 0.042098239064216614, -0.5060591101646423, 0.47407102584838867, -0.353345662355423, 0.33332324028015137, 0.40813466906547546, 0.0009358189417980611, 0.1695007085800171, 0.3538137376308441, -0.16665607690811157, -0.508265495300293, -0.8274199962615967, -0.3493451774120331, 0.7691146731376648, 1.0416780710220337, 0.9145105481147766, 0.12437345832586288, 0.7075418829917908, 0.2659878432750702, 0.28224340081214905, -0.697828471660614, 0.7100807428359985, -0.5164082050323486, -0.6865683794021606, -0.08781249821186066, -0.6157594919204712, -0.9743586182594299, -0.09829060733318329, -0.13149261474609375, -0.7289109826087952, 0.3959769308567047, 0.11138048768043518, -0.4707181453704834, 0.6375665664672852, -0.08919158577919006, 0.2989603579044342, -0.04822583496570587, -0.2586416006088257, -0.20539863407611847, -0.2853194773197174, 0.2697630524635315, 0.5973519682884216, -0.08588571846485138, -0.004580828361213207, -0.1909961700439453, 0.6720315217971802, -0.35049304366111755, 0.955691933631897, -0.28834062814712524, -0.3211933374404907, 0.36272573471069336, 0.43877893686294556, 0.42797642946243286, 0.09043464809656143, -0.05490536987781525, 0.44917401671409607, -0.21898318827152252, -0.3982950448989868, -0.4937524199485779, 0.7122846245765686, -0.5254688858985901, -0.44141846895217896, -0.7009718418121338, -0.5657690167427063, -0.2125861644744873, 0.08811261504888535, 0.20907069742679596, 0.5693027377128601, 0.05276405066251755, 0.18659251928329468, 0.967374861240387, -0.17558036744594574, 0.3774193823337555, 0.23809970915317535, -0.3523077666759491, -0.48151180148124695, 0.9117917418479919, 0.5237157940864563, 0.5020714402198792, 0.4662054181098938, 0.09494058787822723, -0.37974485754966736, -0.7228379249572754, -0.4756934344768524, 0.2763310968875885, -0.5023190975189209, -0.018112005665898323, -0.2849563658237457, -0.46413522958755493, -0.18678376078605652, -0.06921284645795822, -0.4421817660331726, -0.943125307559967, -0.33047211170196533, 0.0035372977145016193, 0.49911782145500183, 0.9068306684494019, -0.33811742067337036, 0.050366003066301346, -0.6669557094573975, 0.2965683341026306, 0.25620582699775696, 0.6519868969917297, 0.2754333019256592, -0.7841388583183289, -0.1489613652229309, -0.02920892834663391, 0.3635299801826477, -0.9330443143844604, 0.2694617211818695, 0.20751623809337616, 0.6185814738273621, 0.4456908404827118, -0.2485310435295105, 0.32316702604293823, -0.527493417263031, 0.697787880897522, 0.13352839648723602, -0.8723130226135254, -0.015037329867482185, -0.5370941758155823, 0.08627250790596008, 0.25193387269973755, 0.5810078978538513, -0.4266544282436371, -0.42528632283210754, -0.6844390034675598, -0.6032845377922058, 0.33956000208854675, 0.34671205282211304, 0.32597586512565613, -0.14634709060192108, 0.838316023349762, -0.11449673026800156, 0.3623068928718567, -0.7695037722587585, -0.3430105149745941, 0.027964072301983833, -0.5439975261688232, -0.1254541426897049, -0.4244726002216339, 0.25957927107810974, -0.14742755889892578, 0.4808794856071472, 0.08103716373443604, 0.7413005232810974, 0.2892712354660034, 0.06310908496379852, 0.024820601567626, 0.14426256716251373, 0.879061758518219, 0.5344725251197815, -0.051801204681396484, 0.4048248529434204, 0.028272293508052826, -0.41465845704078674, 0.38121476769447327, 0.24257755279541016, -0.22452321648597717, 0.1605420559644699, 0.4259701669216156, 0.7327520847320557, 0.33537283539772034, -0.44376641511917114, 0.08755915611982346, -0.23836274445056915, -0.012215444818139076, -0.49742695689201355, 0.098782479763031, 0.18240979313850403, 0.19077323377132416, 0.30819737911224365, 0.1670784205198288, -0.13043586909770966, -0.35791656374931335, 0.35683828592300415, 0.5043021440505981, -0.556690514087677, -0.3922187387943268, 0.5741097331047058, 0.05900556966662407, -0.532962441444397, 0.4073970913887024, -0.28605887293815613, -0.5498933792114258, 0.5770696401596069, 0.5672999024391174, 0.7944666147232056, -0.3109535276889801, -0.12731221318244934, 0.8339478969573975, 0.3967910706996918, -0.24542656540870667, 0.48179030418395996, 0.04034813866019249, -0.7806158661842346, -0.3471110165119171, -0.6534509658813477, 0.10482411831617355, 0.21135348081588745, -0.6645231246948242, -0.15035010874271393, -0.9981803297996521, -0.3254781663417816, -0.10919909924268723, -0.09519794583320618, -0.31884679198265076, -0.07318500429391861, 0.274116575717926, 1.162476658821106, -0.6428582072257996, 0.6692547798156738, 0.2741587460041046, -0.41905567049980164, -0.5237802267074585, -0.29793450236320496, -0.389451265335083, -0.5534759759902954, 0.8536443710327148, 0.11563007533550262, -0.15657612681388855, -0.16524571180343628, -0.29663699865341187, -0.9443762898445129, 0.5780928730964661, 0.3884901702404022, -1.0458028316497803, -0.07318152487277985, 0.2558293640613556, 0.8291375041007996, -0.5631034970283508, 0.03252830356359482, 0.4855230152606964, 0.39051350951194763, -0.5240585803985596, -0.9416496753692627, 0.2063886970281601, 0.05356239154934883, 0.2343992441892624, 0.36027902364730835, -0.37792760133743286, 0.9960243105888367, -0.24513600766658783, -0.1885736584663391, 0.46697506308555603, 1.0898635387420654, 0.23261819779872894, 0.093992218375206, 0.5512280464172363, 0.6640005111694336, 0.5857416391372681, -0.2298014909029007, 1.1597224473953247, -0.08639414608478546, 0.2921060025691986, 1.0702903270721436, -0.13391512632369995, 1.0181483030319214, 0.44827374815940857, -0.3286338746547699, 0.6388948559761047, 0.5361264944076538, 0.23660597205162048, 0.15782733261585236, 0.8485819697380066, -0.3387700915336609, -0.6936238408088684, 0.0920662209391594, -0.25510138273239136, 0.059949930757284164, 0.5314615964889526, -0.7654775977134705, 0.03638579323887825, -0.08965912461280823, -0.16569042205810547, 0.627253532409668, -0.3603886663913727, 0.34700673818588257, 0.37043991684913635, -0.4525783061981201, 1.0310148000717163, -0.06515184044837952, 0.7148627638816833, -0.5956777930259705, -0.026995345950126648, -0.021024364978075027, 0.15177761018276215, -0.21268153190612793, -0.9963107705116272, 0.43500852584838867, -0.15527334809303284, -0.3569110929965973, 0.010956590995192528, 0.8638020753860474, -0.5963860750198364, -0.2750493884086609, 0.30304259061813354, 0.03456047549843788, 0.08005275577306747, 0.30295464396476746, -0.44282642006874084, 0.07085771858692169, -0.17477180063724518, -0.19107097387313843, 0.23161037266254425, 0.2198076993227005, -0.015631843358278275, 0.6925367712974548, 0.22747749090194702, 0.30994534492492676, 0.3391852378845215, -0.007546067237854004, 0.36239704489707947, -0.6846299171447754, -0.25698012113571167, -0.7190937995910645, 0.19074775278568268, 0.05720273777842522, -0.09642711281776428, 0.44967028498649597, 0.2726740837097168, 0.5673679113388062, -0.25251275300979614, 0.7228596806526184, -0.30346158146858215, 0.22812804579734802, -0.5431960821151733, 0.6532480120658875, -0.5591084361076355, 0.18923407793045044, 0.18750452995300293, -0.395961731672287, -0.3105340301990509, 1.172688603401184, -0.31834954023361206, 0.19880209863185883, 0.24603663384914398, 0.5275972485542297, -0.10640306770801544, 0.024080704897642136, 0.4642601013183594, 0.45410630106925964, 0.11904919892549515, 1.0108784437179565, 1.0742911100387573, -0.568315327167511, 0.03109513223171234, -0.30859875679016113, -0.1675361692905426, -0.13822226226329803, -0.8497086763381958, -0.8965725302696228, -0.8264032006263733, 0.007937933318316936, -0.42024800181388855, -0.18878480792045593, 0.9837602376937866, 0.6567069292068481, -0.6872555613517761, -0.2906016409397125, -0.40638795495033264, 0.2985803782939911, -0.25556132197380066, -0.2048066109418869, 0.10119540244340897, -0.3675822913646698, -0.5061312913894653, 0.39949145913124084, 0.06363466382026672, 0.13607268035411835, -0.7072776556015015, -0.09813795238733292, -0.24816851317882538, 0.37988823652267456, 0.5379250049591064, 0.6767503619194031, -0.6570155620574951, -0.3597032427787781, 0.29821714758872986, -0.1349223405122757, -0.1398402899503708, 0.9716423749923706, -0.7833040952682495, 0.12088802456855774, 0.9281145334243774, 0.8101497292518616, -0.009432242251932621, -0.5153167247772217, 0.8655452132225037, -0.7914984822273254, 0.09195972979068756, 0.5144504904747009, 0.6304139494895935, 0.16395100951194763, -0.24527013301849365, 0.17026710510253906, 0.11689738929271698, -0.5508458018302917, -0.777855396270752, 0.7701255083084106, -0.7298104763031006, -0.21546238660812378, 1.2524827718734741, -0.20505081117153168, -0.18755178153514862, -0.2099432647228241, 0.13531412184238434, 0.04229924455285072, -0.28445497155189514, 0.5746428370475769, 0.5073359608650208, -0.32062458992004395, 0.040492355823516846, -0.6412022113800049, 0.8114425539970398, 0.5333722829818726, -0.28690627217292786, 0.31416916847229004, 0.3465324640274048, 0.26717597246170044, 0.5638706684112549, 0.6978544592857361, -0.1181337907910347, 0.4034934937953949, -0.3266470730304718, -0.031411610543727875, 0.038558293133974075, -0.47282418608665466, -0.7910326719284058, -0.009339046664536, 0.4048510193824768, -0.020703207701444626 ]
http://arxiv.org/abs/2405.19220v3
http://arxiv.org/pdf/2405.19220v3
WRDScore: New Metric for Evaluation of Natural Language Generation Models
2024-05-29T16:00:46
2024-06-25T10:41:43
Ravil Mussabayev
cs.CL
cs.CL, cs.AI
The problem of natural language generation, and, more specifically, method name prediction, faces significant difficulties when proposed models need to be evaluated on test data. Such a metric would need to consider the versatility with which a single method can be named, with respect to both semantics and syntax. Measuring the direct overlap between the predicted and reference (true) sequences will not be able to capture these subtleties. Other existing embedding based metrics either do not measure precision and recall or impose strict unrealistic assumptions on both sequences. To address these issues, we propose a new metric that, on the one hand, is very simple and lightweight, and, on the other hand, is able to calculate precision and recall without resorting to any assumptions while obtaining good performance with respect to the human judgement.
[ -0.44917774200439453, -0.6779691576957703, 0.2917945384979248, 0.23408137261867523, -0.23166590929031372, 0.15902622044086456, -0.3348996639251709, -0.38301944732666016, -0.0384335070848465, 0.1628951132297516, -0.37226495146751404, -0.6100953221321106, -0.6582851409912109, 0.05706654489040375, -0.5248906016349792, 0.9482178092002869, -0.1731380969285965, -0.18823876976966858, -0.5641801357269287, -0.2664478123188019, -0.19933579862117767, -0.13671770691871643, -0.29945048689842224, -0.31358978152275085, 0.29645490646362305, 0.36826038360595703, 0.688265323638916, 0.751178503036499, 0.6142740249633789, 0.310683012008667, -0.09570467472076416, 0.22986379265785217, -0.17518411576747894, 0.14839720726013184, 0.0023180951829999685, -0.04260594770312309, -0.45770689845085144, 0.21065735816955566, 0.8249956369400024, 0.9343183636665344, -0.1665065735578537, 0.5205676555633545, -0.044193800538778305, 0.6474111676216125, -0.7130436301231384, -0.12960819900035858, -0.5269576907157898, 0.28001415729522705, -0.13294726610183716, -0.24233169853687286, -0.14263665676116943, -0.7084804177284241, 0.3492608368396759, -0.3260703682899475, 0.6263853311538696, 0.20967477560043335, 0.5477197170257568, 0.0790068656206131, -0.15772613883018494, -0.1393047720193863, -0.7894564270973206, 0.9553294777870178, -0.9540727734565735, 0.33502620458602905, 0.10287024825811386, 0.49092844128608704, -0.2220221906900406, -0.5226978659629822, -0.6309993267059326, -0.3503231108188629, 0.2568810284137726, -0.021834643557667732, -0.17169664800167084, -0.047416768968105316, 0.39226028323173523, 0.46298786997795105, -0.48502829670906067, 0.04690047726035118, -0.19861221313476562, -0.30340883135795593, 0.7847324013710022, 0.29059943556785583, 0.08837715536355972, -0.4617871940135956, -0.596393346786499, 0.17067885398864746, -0.34032371640205383, -0.04001207277178764, 0.6269132494926453, 0.5548241138458252, -0.30144551396369934, 0.5975754857063293, -0.44245055317878723, 0.7263697385787964, -0.17207936942577362, -0.33871111273765564, 0.5765656232833862, -0.21079224348068237, -0.1200454905629158, 0.010381561703979969, 0.8969465494155884, 0.29187828302383423, 0.3736933767795563, -0.47762221097946167, -0.17299634218215942, 0.32806453108787537, 0.40676069259643555, -0.6983762979507446, -0.09962942451238632, -0.07263202220201492, -0.41588085889816284, -0.45911601185798645, 0.375620573759079, -0.7900936603546143, -0.18197818100452423, -0.27049338817596436, 0.2530032992362976, -0.5559936761856079, -0.4286653399467468, -0.00801637303084135, -0.6203775405883789, 0.12001562863588333, 0.06959474086761475, -0.5190473198890686, 0.4236668348312378, 0.7453897595405579, 0.7182758450508118, -0.39546653628349304, -0.3967708647251129, -0.42256802320480347, 0.1284281313419342, -0.1385066658258438, 0.8509473204612732, -0.5668714046478271, -0.6535578370094299, -0.10503263771533966, -0.2920398414134979, 0.17430640757083893, -0.39246484637260437, 0.882434606552124, -0.14295773208141327, 0.3071795403957367, -0.12469314783811569, -0.910000741481781, -0.2615339457988739, 0.25734421610832214, -0.4913058578968048, 1.3530551195144653, 0.23208507895469666, -1.0043891668319702, 0.5468194484710693, -0.315343976020813, -0.6921010613441467, 0.06755901128053665, -0.12243965268135071, -0.3343472182750702, 0.5163565278053284, -0.22208227217197418, 0.37671926617622375, -0.725671648979187, 0.5550188422203064, -0.31398895382881165, -0.21829834580421448, -0.021948082372546196, -0.5517929196357727, 0.22297357022762299, 0.09756610542535782, -0.3405144512653351, -0.059989020228385925, -0.9682039618492126, 0.43999919295310974, 0.032315004616975784, -0.21660275757312775, -0.2815185785293579, 0.016905272379517555, -0.11397295445203781, 0.025702286511659622, 0.09224022179841995, -0.8356138467788696, -0.15297473967075348, -0.1669541597366333, 0.17446456849575043, 0.6519132256507874, -0.13376009464263916, 0.48980629444122314, -0.5658755898475647, 0.6966374516487122, -0.15732111036777496, 0.022790856659412384, 0.12267226725816727, -0.6223003268241882, -0.6977807879447937, 0.049097929149866104, 0.6338515281677246, 0.37540149688720703, -0.27710774540901184, 0.7335777878761292, -0.4626004993915558, -1.0791378021240234, -0.32909485697746277, 0.13186180591583252, 0.7035667300224304, 0.666100263595581, 0.22201113402843475, -0.6408458352088928, -0.8479215502738953, -0.9297551512718201, -0.6176121234893799, -0.16967342793941498, 0.05146360024809837, 0.1867588609457016, 0.29352104663848877, 0.002825325122103095, 1.2676657438278198, -0.46743592619895935, -0.06176769360899925, -0.3943357467651367, 0.47347038984298706, 0.058103013783693314, 0.4855659604072571, 0.21842817962169647, -0.57234787940979, -0.3142055571079254, -0.38127967715263367, -0.7536988854408264, -0.06882482022047043, 0.27411705255508423, 0.026749879121780396, -0.030069028958678246, 0.22883209586143494, -0.6261758208274841, 0.27499279379844666, 0.6850931644439697, -0.2856341600418091, 0.9717678427696228, -0.22722028195858002, -0.07118711620569229, -0.9317921996116638, 0.16939868032932281, 0.22838681936264038, 0.007596716284751892, -0.5444658994674683, -0.1335514485836029, 0.13251207768917084, -0.01943831332027912, -0.5031003355979919, 0.8120432496070862, -0.5566392540931702, -0.11538923531770706, 0.09406480938196182, 0.4709368646144867, 0.054694630205631256, -0.007723873481154442, -0.13009729981422424, 0.6678526997566223, 0.4313620328903198, -0.8331800699234009, 0.3044552206993103, 0.21188201010227203, -0.6044055223464966, 0.782233476638794, -0.5716584920883179, 0.22864045202732086, -0.00992810819298029, 0.07674949616193771, -0.6596595048904419, 0.0394446887075901, -0.4673311114311218, -0.8251653909683228, 0.1357782781124115, 0.09246041625738144, -0.6103317737579346, -0.7647958993911743, -0.2678469121456146, 0.3601689338684082, 0.7052903771400452, -0.40794384479522705, 0.32958945631980896, 0.26728975772857666, 0.09776782989501953, -0.38516008853912354, -0.6423283815383911, -0.09634817391633987, -0.3334377110004425, -0.5807014107704163, 0.564291775226593, -0.06220574676990509, -0.25466910004615784, 0.1411239504814148, -0.11677124351263046, 0.12684400379657745, 0.06028943881392479, 0.29146844148635864, 0.23045732080936432, -0.3295038938522339, 0.3200463056564331, -0.13574305176734924, -0.38562870025634766, 0.12970095872879028, -0.029905609786510468, 0.2990626096725464, 0.03241107240319252, -0.29341813921928406, -0.2829611599445343, 0.22844932973384857, 0.39561253786087036, -0.4719647169113159, 0.4385676085948944, 0.5573093891143799, -0.43722420930862427, -0.4974362552165985, -0.6795312762260437, 0.17551462352275848, -0.44451549649238586, 0.2740100920200348, -0.25556185841560364, -0.6146427989006042, 0.3491402566432953, -0.2095860093832016, -0.11549239605665207, 0.4309665858745575, 0.37854593992233276, 0.010351805947721004, 1.1192430257797241, 0.4959435760974884, 0.1477261334657669, 0.11124717444181442, -0.24217861890792847, 0.3300105333328247, -1.1130666732788086, -0.15390044450759888, -0.5940701961517334, -0.5483840703964233, -0.38687464594841003, -0.5512991547584534, -0.1394416093826294, 0.12981392443180084, -0.38114768266677856, 0.49804994463920593, -0.450840562582016, 0.27604055404663086, 0.5415152907371521, -0.48685309290885925, 0.5075260400772095, -0.10550687462091446, -0.4298354387283325, -0.23672519624233246, -0.5014495849609375, -0.7553098201751709, 1.2103934288024902, 0.0844714567065239, 0.5640032291412354, 0.04174017906188965, 0.8331369757652283, 0.31040918827056885, 0.3914337158203125, -0.6126543879508972, 0.6512517333030701, -0.300762802362442, -0.5989498496055603, -0.10310349613428116, -0.6579851508140564, -0.5720471143722534, 0.01973450370132923, -0.2590411901473999, -0.5177688598632812, -0.4101748764514923, -0.0024555406998842955, -0.35974812507629395, 0.616321861743927, -0.6551613211631775, 0.7989085912704468, -0.2065693736076355, -0.2255466878414154, 0.022065438330173492, -0.2134704738855362, 0.38663479685783386, 0.30772486329078674, 0.3648758828639984, -0.712645411491394, 0.028359951451420784, 0.9830121397972107, -0.24884003400802612, 0.5484752058982849, -0.27775484323501587, 0.11432337760925293, 0.4334283769130707, 0.1662876009941101, 0.3068726360797882, -0.13591159880161285, -0.38124674558639526, -0.13687323033809662, -0.21071256697177887, -0.25317367911338806, -0.5079947710037231, 0.8785116076469421, -0.42083626985549927, -0.36561137437820435, -0.24830326437950134, -0.5032265186309814, -0.5220362544059753, 0.212052121758461, 0.3494458496570587, 0.7132720351219177, -0.817939817905426, 0.04865732416510582, 0.25563251972198486, -0.07669257372617722, 0.3856073319911957, 0.5519519448280334, -0.021011540666222572, -0.3497005105018616, 0.8688134551048279, 0.08728119730949402, 0.3997437357902527, 0.1145988404750824, 0.4287892282009125, -0.36484014987945557, -0.6653165817260742, -0.5130779147148132, 0.14213766157627106, -0.4403052031993866, -0.5502409934997559, -0.6850690841674805, -0.1842731535434723, -0.2921135425567627, -0.06740777939558029, -0.5382248759269714, -0.6855005621910095, -0.09231443703174591, -0.36880385875701904, 0.5408215522766113, 0.6990957856178284, 0.03938667103648186, 0.14901702105998993, -0.9554100632667542, 0.29696789383888245, 0.11760228127241135, 0.8431851863861084, 0.15376220643520355, -0.5300756692886353, -0.03217018023133278, -0.06520548462867737, -0.47530877590179443, -0.688751757144928, 0.2585051655769348, 0.36559292674064636, 0.6812440752983093, 0.2765367329120636, 0.2791203260421753, 0.6233169436454773, -0.5561727285385132, 0.6566982865333557, 0.37897828221321106, -1.086662769317627, 0.6160967350006104, -0.10861403495073318, 0.28939783573150635, 0.7311839461326599, 0.08801733702421188, -0.7156911492347717, -0.5651238560676575, -1.0084542036056519, -0.5089380741119385, 0.3742920756340027, 0.06029849871993065, 0.3628244996070862, -0.36108162999153137, -0.007227353751659393, 0.5604124665260315, 0.2652151882648468, -0.06650979071855545, -0.3039880096912384, 0.2207774668931961, -0.19388270378112793, -0.17455458641052246, -0.11315584927797318, 0.05659562349319458, -0.5145650506019592, 0.5146539807319641, -0.020013896748423576, 0.14316008985042572, 0.14539822936058044, -0.06167558208107948, -0.1993086338043213, 0.3267751932144165, 0.25845304131507874, 0.6229051947593689, -0.2190120667219162, 0.29625269770622253, 0.2643633484840393, -0.418995201587677, 0.09172417968511581, 0.06711387634277344, -0.24545840919017792, 0.1918260157108307, 0.5219268202781677, 0.8008021712303162, 0.5767092704772949, -0.8007875084877014, 0.45491573214530945, 0.10538584738969803, -0.32452237606048584, -0.43884867429733276, 0.15983305871486664, 0.07957453280687332, -0.11070213466882706, 0.14950977265834808, 0.41316261887550354, 0.03678295761346817, -0.35668566823005676, 0.3435541093349457, 0.41036203503608704, -0.7612727880477905, -0.4398851692676544, 0.42975834012031555, 0.49018457531929016, -0.6773365139961243, 0.6328062415122986, -0.7531709671020508, -0.5643271803855896, 0.717325747013092, 0.6473029255867004, 1.0739256143569946, -0.20247747004032135, 0.5013964772224426, 0.7289143204689026, 0.027426838874816895, -0.08078831434249878, 0.30569130182266235, 0.1534392237663269, -0.9292585849761963, -0.06047260761260986, -0.8126176595687866, -0.24913834035396576, -0.40477898716926575, -0.7675684094429016, 0.3529611825942993, -0.6200165152549744, -0.49620530009269714, -0.1127403974533081, 0.11557154357433319, -0.882094144821167, 0.19279831647872925, 0.1807652711868286, 1.4536242485046387, -0.7760509848594666, 0.705390214920044, 0.5311828255653381, -0.08908309042453766, -0.6487473249435425, -0.1962360441684723, 0.1390044093132019, -0.38057777285575867, 0.2751513719558716, 0.5343434810638428, -0.148627370595932, 0.11798732727766037, 0.04441632702946663, -0.7879013419151306, 1.1813101768493652, 0.09061284363269806, -0.26720118522644043, -0.10838346183300018, -0.19354070723056793, 0.5220431089401245, -0.4809211790561676, 0.29695403575897217, 0.8945791125297546, 0.698448896408081, -0.05686134099960327, -1.0528063774108887, 0.06852040439844131, -0.315175324678421, 0.16589798033237457, 0.4614747166633606, -0.39041969180107117, 0.6765859127044678, -0.6634008288383484, -0.6302343606948853, 0.28323495388031006, 0.6556867957115173, 0.2637244760990143, 0.2601040303707123, 0.522723376750946, 1.0232434272766113, 0.8246312737464905, -0.2272358536720276, 1.3099048137664795, 0.12770454585552216, 0.506327748298645, 1.197420597076416, -0.2898857295513153, 0.9455024600028992, 0.32389962673187256, -0.6256592869758606, 0.5979667901992798, 0.1704557090997696, -0.08372858166694641, 0.41465476155281067, 0.47166502475738525, -0.10245361179113388, -0.28728336095809937, -0.23234277963638306, -0.4922258257865906, 0.5974063277244568, 0.09316258877515793, -0.36606404185295105, -0.30782613158226013, -0.41628435254096985, -0.0543237067759037, 0.6210194230079651, 0.21337229013442993, 0.6513899564743042, 0.021165048703551292, -0.6842550039291382, 0.46084001660346985, 0.11044411361217499, 0.9862953424453735, -0.5645260810852051, 0.11494109034538269, -0.12378989905118942, 0.20155225694179535, -0.1846638321876526, -0.7099146246910095, 0.36510375142097473, 0.10026821494102478, -0.2362820953130722, -0.02833465486764908, 0.25655362010002136, -0.18458150327205658, -0.8375585079193115, 0.6131299138069153, 0.6241724491119385, -0.19286832213401794, 0.19339340925216675, -0.5633018612861633, -0.06158722937107086, -0.12629257142543793, -0.21650485694408417, 0.04425559192895889, 0.43166112899780273, 0.14059606194496155, 0.7049999833106995, 0.5724181532859802, 0.32481247186660767, 0.2346431165933609, 0.20550374686717987, 0.41009941697120667, -0.9285412430763245, -0.3416866958141327, -0.6901962757110596, 0.379884272813797, -0.23966021835803986, -0.6817015409469604, 0.8257512450218201, 0.7332697510719299, 0.5757347345352173, 0.1408386081457138, 0.9615287184715271, -0.3851858973503113, 0.9097581505775452, -0.28497159481048584, 0.5383588075637817, -0.37805405259132385, -0.018986370414495468, -0.5251162052154541, -1.310185194015503, -0.19668637216091156, 0.20092783868312836, -0.2983129620552063, 0.1672099381685257, 0.814461886882782, 0.5902419090270996, -0.08096183836460114, 0.5132351517677307, 0.12508539855480194, -0.007069790735840797, 0.2031932771205902, 0.578667163848877, 0.8323274254798889, -0.37914392352104187, 0.3924378454685211, -0.541037380695343, -0.3080542981624603, 0.047324907034635544, -1.2506823539733887, -0.6921923756599426, -0.4785139858722687, -0.2974623739719391, 0.015285959467291832, -0.08014147728681564, 0.7667121887207031, 0.695411741733551, -0.7842701077461243, -0.0980079174041748, -0.22210855782032013, 0.08044762164354324, -0.33118703961372375, -0.21138447523117065, 0.16400454938411713, -0.37272942066192627, -0.6987668871879578, 0.2638017535209656, 0.06637826561927795, 0.05376409366726875, -0.5062870979309082, -0.2642730176448822, -0.08578180521726608, -0.0346139520406723, 0.41253453493118286, 0.15395034849643707, -0.7760596871376038, -0.5021064281463623, -0.17448437213897705, -0.014708718284964561, -0.008500118739902973, 0.8993313312530518, -1.0300523042678833, 0.5604450106620789, 0.6501107811927795, 0.46426209807395935, 0.07095802575349808, 0.23349328339099884, 0.8980409502983093, -0.947571337223053, 0.23012061417102814, 0.35267606377601624, 0.18744564056396484, 0.7208452820777893, 0.081847183406353, 0.37689876556396484, 0.31390905380249023, -0.2103881686925888, -0.8364012241363525, 0.38850003480911255, -0.7244876623153687, 0.1469319760799408, 1.0265955924987793, -0.005755870137363672, 0.04634881019592285, 0.05826515331864357, 0.10905864834785461, 0.3367641568183899, -0.40409889817237854, 0.6529470086097717, 0.5097892880439758, 0.09613598138093948, 0.1998424530029297, -0.7990204095840454, 0.5208119750022888, 0.44058868288993835, -0.6006408929824829, 0.17690755426883698, 0.2660571038722992, 0.3014543354511261, 0.2540448009967804, 0.38134053349494934, -0.2871874272823334, 0.09505904465913773, 0.1481720507144928, 0.22372159361839294, -0.16098088026046753, -0.15448014438152313, 0.07632993906736374, 0.0013257738901302218, 0.21771469712257385, -0.06074574962258339 ]
http://arxiv.org/abs/2405.19209v1
http://arxiv.org/pdf/2405.19209v1
VideoTree: Adaptive Tree-based Video Representation for LLM Reasoning on Long Videos
2024-05-29T15:49:09
2024-05-29T15:49:09
Ziyang Wang, Shoubin Yu, Elias Stengel-Eskin, Jaehong Yoon, Feng Cheng, Gedas Bertasius, Mohit Bansal
cs.CV
cs.CV, cs.AI, cs.CL
Video-language understanding tasks have focused on short video clips, often struggling with long-form video understanding tasks. Recently, many long video-language understanding approaches have leveraged the reasoning capabilities of Large Language Models (LLMs) to perform long video QA, transforming videos into densely sampled frame captions, and asking LLMs to respond to text queries over captions. However, the frames used for captioning are often redundant and contain irrelevant information, making dense sampling inefficient, and ignoring the fact that video QA requires varying levels of granularity, with some video segments being highly relevant to the question (needing more fine-grained detail) while others being less relevant. Thus, these LLM-based approaches are prone to missing information and operate on large numbers of irrelevant captions, lowering both performance and efficiency. To address these issues, we introduce VideoTree, a query-adaptive and hierarchical framework for long-video understanding with LLMs. VideoTree dynamically extracts query-related information from a video and builds a tree-based representation for LLM reasoning. First, VideoTree adaptively selects frames for captioning by iteratively clustering frames based on their visual features and scoring clusters using their relevance to the query. Second, it organizes visual clusters into a query-adaptive and hierarchical tree structure; the tree encodes varying levels of granularity, with higher resolution on relevant segments. Finally, VideoTree produces an answer by traversing the tree's keyframes and passing their captions to an LLM answerer. Our method improves both reasoning accuracy and efficiency compared to existing methods: VideoTree achieves a 7.0%, 2.2%, and 2.7% accuracy gain over baselines on the EgoSchema, NExT-QA, and IntentQA benchmarks, respectively, while reducing inference time by 40%.
[ -0.2416970431804657, -0.8579341173171997, 0.7060472369194031, 0.28163591027259827, -0.6003279685974121, 0.34950992465019226, -0.12612028419971466, -0.1033104658126831, 0.10438471287488937, 0.5074237585067749, -0.6331672668457031, -0.5280951857566833, -0.5249201655387878, -0.17608697712421417, -0.44793495535850525, 0.66852867603302, -0.20417410135269165, -0.15563221275806427, -0.48570388555526733, -0.5495634078979492, -0.5200223922729492, -0.2439998835325241, -0.5810838937759399, 0.11821122467517853, 0.2604610323905945, 0.4030781090259552, 0.8181252479553223, 0.8626992106437683, 0.5347360968589783, 0.3698442876338959, -0.15642733871936798, 0.30414876341819763, -0.3997044861316681, 0.2406117469072342, -0.15919245779514313, -0.373627632856369, -0.4077342450618744, -0.5973357558250427, 0.9343937635421753, 0.44489991664886475, -0.09349145740270615, 0.3259267210960388, -0.12933796644210815, 0.8290367126464844, -0.7800995111465454, 0.3961377739906311, -0.8939606547355652, 0.19166988134384155, -0.010493140667676926, -0.7004335522651672, -0.24529682099819183, -0.060832489281892776, -0.08919386565685272, -0.7154468894004822, 0.32329198718070984, 0.07552475482225418, 0.7055768966674805, 0.7285242080688477, -0.26199087500572205, 0.10271218419075012, -0.6473557353019714, 0.45702698826789856, -0.44894537329673767, 0.4516458809375763, 0.505349338054657, 0.6665247678756714, -0.045202840119600296, -0.46067312359809875, -0.3332975506782532, -0.06167310103774071, 0.14630018174648285, 0.253497451543808, -0.31934380531311035, 0.33967384696006775, 0.601347029209137, 0.39211732149124146, -0.6803197264671326, 0.08631310611963272, -0.039720237255096436, -0.12488381564617157, 0.4814554750919342, 0.17152126133441925, 0.2643248438835144, -0.4588126540184021, -0.1295260339975357, -0.1774117350578308, -0.5662204623222351, 0.3216871917247772, -0.05368811637163162, -0.16763484477996826, 0.1470959484577179, 0.5156749486923218, -0.4218306541442871, 0.8445528745651245, 0.14785747230052948, -0.26113417744636536, 0.05992564931511879, -0.27948305010795593, -0.8373739719390869, 0.10480073094367981, 0.577771782875061, 0.6457340121269226, 0.35580509901046753, 0.15527817606925964, -0.0689350813627243, 0.00816793367266655, -0.04571177437901497, -0.9028483033180237, -0.33933502435684204, 0.20655591785907745, -0.3130611181259155, 0.16566245257854462, -0.0663604661822319, -0.7435224056243896, -0.3761015832424164, -0.05047713592648506, 0.26854342222213745, -0.2769981920719147, 0.002077431185171008, 0.0607602596282959, 0.10416998714208603, 0.385547399520874, 0.6841395497322083, -0.8070708513259888, 0.4792638421058655, 0.5044063925743103, 0.7494210004806519, -0.16597767174243927, -0.278516560792923, -1.1763732433319092, 0.4741520583629608, -0.3531334698200226, 0.5645067095756531, -0.4421720802783966, 0.14487025141716003, 0.05275077372789383, 0.3548220098018646, 0.09323803335428238, -0.6267324686050415, 0.08069659769535065, -0.7940271496772766, 0.04210713133215904, 0.02399047464132309, -0.40100279450416565, -0.41750168800354004, 0.4716056287288666, -0.699173629283905, 0.8503759503364563, 0.009088767692446709, -0.5610724091529846, 0.4177412986755371, -0.47497063875198364, -0.279183566570282, -0.016425209119915962, -0.24726153910160065, -0.5290898084640503, -0.05923236161470413, 0.8091863393783569, 0.42907002568244934, -0.05616869404911995, 0.5219092965126038, -0.2805725038051605, -0.2614758312702179, 0.012114294804632664, -0.7360215783119202, 0.28697124123573303, 0.026064421981573105, -0.14634457230567932, 0.37814274430274963, -0.4273715019226074, -0.0830625668168068, -0.037537917494773865, -0.061258476227521896, -0.03245459124445915, 0.3213406801223755, -0.3317842483520508, -0.10051911324262619, -0.08238108456134796, -0.25888070464134216, 0.1331855058670044, -0.1690729558467865, 0.6739530563354492, 0.7863988280296326, 0.0781305730342865, 0.37430909276008606, -0.04071078449487686, 0.7694759368896484, 0.04613349586725235, 0.15809978544712067, -0.5623984336853027, -0.22146618366241455, -0.5120029449462891, 0.015980003401637077, -0.16441679000854492, 0.47127270698547363, -0.8650501370429993, -0.05207806080579758, -0.5578405857086182, 0.04285966232419014, -0.2353804111480713, 0.37475264072418213, 0.19217142462730408, 0.27491042017936707, 0.5023348331451416, -0.4429963529109955, -0.5721632838249207, -0.6892683506011963, -0.0011369333369657397, -0.5308682918548584, 0.05425546318292618, 0.5004838705062866, 0.46102258563041687, 0.0825183242559433, 0.9642719626426697, -0.6591773629188538, -0.30842462182044983, -0.050820667296648026, -0.18603932857513428, 0.34248724579811096, 0.17539812624454498, 0.4888034760951996, -0.8658028244972229, -0.43926629424095154, 0.08592178672552109, -0.6529294848442078, 0.06988178193569183, -0.5389442443847656, 0.01461170893162489, 0.05470934882760048, 0.7440663576126099, -0.8290441632270813, 0.2767042815685272, 0.6091485619544983, -0.17909970879554749, 0.503499448299408, -0.13909685611724854, 0.20010332763195038, -0.9895030856132507, -0.3072102963924408, -0.15354469418525696, -0.7340929508209229, 0.05561777204275131, 0.06558451801538467, -0.16492173075675964, -0.1269138753414154, -0.48659539222717285, 0.3232821524143219, -0.4733976721763611, -0.5979472398757935, -0.08759798109531403, 0.31168094277381897, 0.10736995190382004, 0.6533963680267334, 0.15079344809055328, 0.9504616260528564, 0.8154630661010742, -0.38148656487464905, 0.8483153581619263, 0.08912539482116699, -0.42007753252983093, 0.5577759146690369, -0.3601248860359192, -0.1499919593334198, -0.3503178060054779, 0.3854750096797943, -0.948035717010498, -0.6001988649368286, 0.24011044204235077, -0.5416198968887329, 0.06263178586959839, -0.6509188413619995, -0.2383844554424286, -0.3184075355529785, -0.3539351522922516, 0.6423298716545105, 0.32591259479522705, -0.7383453249931335, 0.7048834562301636, 0.1952427178621292, -0.22568151354789734, -0.5781285166740417, -0.5326948165893555, 0.3394021689891815, -0.4797498285770416, -0.7372996211051941, 0.4801288843154907, -0.028281057253479958, -0.10484049469232559, 0.21241427958011627, -0.5577295422554016, -0.45239248871803284, -0.07306807488203049, 0.3508935570716858, -0.03906702995300293, -0.4507918357849121, 0.36281442642211914, -0.005246636923402548, 0.11217886954545975, 0.27277305722236633, -0.2593013644218445, 0.1875220090150833, -0.13700924813747406, -0.484539270401001, -0.3797268867492676, 0.3424394428730011, 0.787430465221405, -0.26364782452583313, 0.08677268773317337, 0.518519401550293, -0.36134710907936096, -0.23901446163654327, -0.5095899105072021, -0.005594331305474043, -0.45678234100341797, 0.953651487827301, -0.3902771472930908, -1.1022932529449463, 0.3944525122642517, 0.0779251903295517, -0.06700683385133743, 0.009003638289868832, 0.4025777578353882, -0.4178079664707184, 1.1748768091201782, 0.26679328083992004, -0.17022192478179932, 0.8562403321266174, -0.29858508706092834, -0.1542309671640396, -0.5329742431640625, -0.1021774411201477, -0.022365475073456764, -0.11806783080101013, -0.3900223970413208, -0.9399722218513489, 0.29719844460487366, 0.2651861608028412, -0.4500865936279297, 0.13666439056396484, -0.2723882794380188, 0.8934260010719299, 0.16653932631015778, 0.08648085594177246, 0.4490090608596802, 0.23444832861423492, 0.4937077760696411, 0.06080138310790062, -0.7544294595718384, -0.3426726758480072, 0.5382792353630066, 0.5681999325752258, 0.8681429624557495, 0.4122006893157959, 0.327197402715683, 0.3917333781719208, 0.08422628790140152, -1.1556669473648071, 0.7444714307785034, -0.20489037036895752, -0.24503210186958313, -0.31816986203193665, -0.47254472970962524, -0.8363555073738098, 0.243245929479599, 0.08495550602674484, -0.7626098394393921, -0.3259161114692688, 0.36008888483047485, -0.49035438895225525, 0.5179370045661926, -0.5568175315856934, 0.9352376461029053, -0.5039336681365967, -0.5488346815109253, -0.3734883964061737, -0.5625549554824829, 0.3494871258735657, 0.2177726775407791, 0.1998293697834015, 0.011157951317727566, 0.12335905432701111, 0.7731769680976868, -0.3707304298877716, 0.7546730637550354, -0.2581503391265869, 0.26564207673072815, 0.5904003381729126, 0.37720784544944763, 0.5306624174118042, 0.3712288439273834, 0.48849013447761536, -0.5610556602478027, 0.2966148853302002, -0.35980600118637085, -1.1236289739608765, 0.38099321722984314, -0.5967553853988647, -1.0954302549362183, -0.4168979823589325, -0.5397878885269165, -0.1673334240913391, 0.0058877598494291306, -0.4196450412273407, 0.3361737132072449, 0.10035297274589539, 0.5201391577720642, 0.75953209400177, -0.30381327867507935, 0.5377912521362305, 0.21103869378566742, -0.6059842109680176, -0.5710626840591431, 0.7581095695495605, -0.23974207043647766, 0.44051334261894226, 0.6621761918067932, 0.01594468764960766, -0.3079265058040619, -0.8346928358078003, -0.7286072373390198, 0.04649737849831581, -0.820145845413208, -0.4982040822505951, -0.32973775267601013, -0.22315973043441772, -0.05157268047332764, 0.02095833048224449, -0.24620962142944336, -0.2178388386964798, -0.1745033860206604, -0.475515753030777, 0.6700550317764282, 0.3370257616043091, 0.2920859456062317, 0.5499020218849182, -0.9476054906845093, 0.6164964437484741, 0.7161781191825867, 0.5038330554962158, -0.19656838476657867, -0.8038743138313293, -0.11971752345561981, -0.2212974578142166, -0.336402028799057, -0.9700265526771545, 0.22188933193683624, 0.34005728363990784, 0.33446404337882996, 0.32718005776405334, -0.3176751434803009, 1.2169615030288696, -0.32921716570854187, 0.7483198642730713, 0.17999766767024994, -0.8977536559104919, 0.6010445952415466, -0.32753369212150574, 0.2751481533050537, 0.508137583732605, 0.14049458503723145, -0.5288174748420715, 0.05244320631027222, -0.3553440570831299, -0.7694764137268066, 0.6618832349777222, 0.14837540686130524, 0.14211776852607727, 0.32384100556373596, 0.14948473870754242, -0.27637940645217896, -0.1831299066543579, -0.9744200706481934, 0.351296603679657, -0.3532564043998718, -0.0722413957118988, 0.002516733482480049, -0.12061594426631927, -0.053647737950086594, -0.35815438628196716, 0.4712994396686554, -0.6883209347724915, -0.037402596324682236, 0.32599514722824097, -0.4131377637386322, -0.21008960902690887, 0.24183468520641327, 0.19746634364128113, 0.7538537383079529, -0.579495370388031, 0.2648899555206299, 0.47021982073783875, -0.2811424732208252, 0.1496133804321289, -0.0731583908200264, 0.023522188887000084, -0.0017897371435537934, 0.6452838182449341, 0.9754183888435364, 0.07633408904075623, -0.9252968430519104, 0.6491904258728027, 0.22950756549835205, -0.21421214938163757, -0.28121086955070496, -0.09258183091878891, 0.09624150395393372, 0.27608880400657654, 0.1905999481678009, -0.014840207062661648, -0.07075478881597519, -0.6702772974967957, 0.3146404027938843, 0.4755668342113495, -0.4203978478908539, -0.17554903030395508, 0.5654377937316895, 0.10202285647392273, -0.29871976375579834, 0.6301767230033875, -0.11289991438388824, -0.5785831809043884, 0.7370080947875977, 0.25874707102775574, 0.8187288641929626, 0.15561270713806152, 0.4655168056488037, 0.4237712025642395, 0.1124003604054451, -0.08851711452007294, 0.05698981136083603, -0.496093213558197, -0.4997861385345459, -1.0912116765975952, -0.5920838117599487, -0.35665562748908997, 0.06694023311138153, -0.45506051182746887, 0.1373775601387024, -0.3879651129245758, 0.037444308400154114, -0.21698316931724548, -0.24614578485488892, -0.3794512450695038, 0.31762081384658813, 0.20566217601299286, 1.0418955087661743, -0.8400202393531799, 0.8647372722625732, 0.6203551292419434, -0.31316113471984863, -0.784247875213623, -0.08579797297716141, -0.21338452398777008, -0.7245725393295288, 0.49505674839019775, 0.2069987952709198, -0.23737342655658722, -0.23406071960926056, -0.5079481601715088, -0.9631264209747314, 1.2508374452590942, 0.42832234501838684, -0.7036308646202087, -0.1584106683731079, 0.25317850708961487, 0.4486099183559418, -0.33372679352760315, 0.30287307500839233, 0.48809289932250977, 0.32084333896636963, 0.5503115653991699, -0.6528739333152771, -0.13320855796337128, -0.08070827275514603, -0.15721866488456726, 0.10120125859975815, -0.42020565271377563, 0.39940017461776733, -0.27966728806495667, -0.21235644817352295, 0.010187110863626003, 0.7368596792221069, 0.4165683686733246, 0.5950835943222046, 0.7290149331092834, 0.4742405116558075, 0.5606855750083923, 0.07854659855365753, 0.8427711129188538, 0.00598554452881217, 0.3229583501815796, 1.4509944915771484, 0.15381044149398804, 0.7570943236351013, 0.7752326726913452, -0.4913160800933838, 0.4226020276546478, 0.9436065554618835, 0.0920293852686882, 0.25727006793022156, 0.2273234724998474, -0.08903570473194122, -0.7621771097183228, -0.04504648223519325, -0.12054886668920517, 0.5585114359855652, 0.2696398198604584, -0.3665415346622467, -0.3327503800392151, -0.244100421667099, -0.29892870783805847, 0.18641379475593567, -0.5763407945632935, 0.7585877180099487, 0.08774712681770325, -0.9107845425605774, 0.5922415256500244, -0.3433256149291992, 0.2409241646528244, -0.515142023563385, -0.20001618564128876, -0.3086823523044586, 0.009651001542806625, -0.5106927156448364, -1.1482590436935425, 0.4040719270706177, 0.27532294392585754, -0.1827741414308548, -0.2536182105541229, 0.39043065905570984, -0.434844046831131, -0.41388919949531555, 0.23157861828804016, 0.4440169930458069, 0.21332834661006927, -0.3500283360481262, -0.6883687376976013, 0.14608345925807953, 0.070462167263031, -0.0694115161895752, 0.19690059125423431, 0.4764578938484192, -0.4853827953338623, 0.8377293944358826, 0.5187638401985168, -0.010087365284562111, -0.05080462619662285, 0.2916024923324585, 0.90312659740448, -0.7617157101631165, -0.3494083881378174, -1.021401047706604, 0.33851057291030884, -0.007606772240251303, 0.148762047290802, 0.480047345161438, 0.6501761078834534, 0.8067188262939453, 0.05422932282090187, 0.4305803179740906, 0.06091258302330971, -0.15253815054893494, -0.9244492650032043, 0.056998223066329956, -0.70148766040802, 0.4172593355178833, -0.3277566730976105, -1.2270280122756958, -0.5491794347763062, 0.40264612436294556, -0.3062577545642853, -0.08870678395032883, 0.6680965423583984, 0.9438165426254272, -0.38950639963150024, -0.12373215705156326, 0.21888801455497742, 0.48420122265815735, 0.5662786364555359, 0.9392491579055786, 1.1006443500518799, -0.21306270360946655, 0.9128032922744751, -0.08028854429721832, -0.08943696320056915, -0.0872742310166359, -1.0508534908294678, -0.6374074220657349, -0.38077276945114136, -0.439867228269577, -0.15736527740955353, 0.2369694858789444, 0.8619895577430725, 0.8575432896614075, -0.6872312426567078, -0.3977106213569641, -0.17519450187683105, 0.4668182134628296, -0.24891692399978638, -0.2602889835834503, 0.647513747215271, 0.03454959765076637, -0.5015891790390015, 0.3811289966106415, 0.5421063899993896, -0.18832765519618988, -0.24664905667304993, -0.1839754283428192, 0.026871535927057266, -0.24274395406246185, 0.8395400643348694, 0.32898980379104614, -0.8544479012489319, -0.61174476146698, -0.07364736497402191, 0.36445191502571106, 0.594035267829895, 0.7436506748199463, -0.972027063369751, 0.6593417525291443, 0.6628188490867615, 0.7309224009513855, 0.9982261657714844, 0.42754724621772766, 0.14840887486934662, -0.651587188243866, -0.039446230977773666, 0.33806994557380676, 0.3930489420890808, 0.5008933544158936, -0.1456812620162964, 0.4236777424812317, 0.3095735013484955, -0.4185895025730133, -0.8028956651687622, 0.4850725829601288, -1.5421346426010132, -0.2537364661693573, 1.1338438987731934, -0.1479877382516861, -0.4994669258594513, 0.11134945601224899, -0.472417950630188, 0.013815187849104404, -0.3995591998100281, 0.5574710965156555, 0.488311231136322, -0.18593661487102509, -0.8077409863471985, -0.5341702103614807, 0.4298311769962311, 0.6321604251861572, -0.7950299978256226, 0.43602919578552246, 0.6384232640266418, 0.3186579942703247, -0.15256333351135254, 0.7384548187255859, 0.06746445596218109, 0.5848608613014221, -0.3574003577232361, -0.46294888854026794, -0.16397807002067566, -0.49712270498275757, -0.25596439838409424, 0.30925804376602173, 0.224326029419899, -0.29058709740638733 ]
http://arxiv.org/abs/2405.19186v1
http://arxiv.org/pdf/2405.19186v1
MetaToken: Detecting Hallucination in Image Descriptions by Meta Classification
2024-05-29T15:28:42
2024-05-29T15:28:42
Laura Fieback, Jakob Spiegelberg, Hanno Gottschalk
cs.CV
cs.CV, cs.CL, cs.LG, I.4
Large Vision Language Models (LVLMs) have shown remarkable capabilities in multimodal tasks like visual question answering or image captioning. However, inconsistencies between the visual information and the generated text, a phenomenon referred to as hallucinations, remain an unsolved problem with regard to the trustworthiness of LVLMs. To address this problem, recent works proposed to incorporate computationally costly Large (Vision) Language Models in order to detect hallucinations on a sentence- or subsentence-level. In this work, we introduce MetaToken, a lightweight binary classifier to detect hallucinations on the token-level at negligible cost. Based on a statistical analysis, we reveal key factors of hallucinations in LVLMs which have been overseen in previous works. MetaToken can be applied to any open-source LVLM without any knowledge about ground truth data providing a reliable detection of hallucinations. We evaluate our method on four state-of-the-art LVLMs demonstrating the effectiveness of our approach.
[ -0.4896017909049988, -0.679851770401001, 0.5633687376976013, 0.0185611080378294, -0.70115065574646, -0.357881098985672, 0.07651826739311218, -0.6696292757987976, 0.4787875711917877, 0.7971602082252502, -0.3074309229850769, -0.5825637578964233, -0.6314740777015686, 0.12017548829317093, -0.48959049582481384, 0.6745263934135437, 0.1441245675086975, 0.20324526727199554, -0.27460992336273193, -0.27765464782714844, -0.5000129342079163, -0.4678875207901001, -0.41984251141548157, -0.049186963587999344, 0.5998212695121765, 0.08236505836248398, 0.8152158856391907, 0.3723709285259247, 0.7000839114189148, 0.20582866668701172, 0.27836382389068604, 0.3800588548183441, -0.17668774724006653, 0.22298452258110046, -0.037340760231018066, -0.092413529753685, -0.17051559686660767, -0.3992263674736023, 0.27430278062820435, 0.34884071350097656, -0.06987572461366653, 0.18875251710414886, -0.147536501288414, 0.517619252204895, -0.9546224474906921, 0.3300638496875763, -0.7410242557525635, 0.4473867118358612, -0.09335075318813324, -0.33451855182647705, -0.5240780711174011, -0.05463534593582153, 0.012285629287362099, -0.32338276505470276, 0.4239433705806732, 0.37006813287734985, 0.4212411642074585, 0.6209364533424377, -0.05396154522895813, -0.4280770421028137, -0.5231163501739502, 0.47715047001838684, -0.5156336426734924, 0.5693270564079285, 0.35606062412261963, 0.38371962308883667, -0.037549007683992386, -0.8231101036071777, -0.7645230293273926, -0.30750274658203125, -0.449341744184494, -0.22540701925754547, -0.14321410655975342, 0.13692498207092285, 0.3625444173812866, 0.0750143900513649, -0.6898270845413208, -0.1673233062028885, -0.5031939744949341, -0.6434221267700195, 0.2262023538351059, 0.18140341341495514, 0.3861464858055115, -0.5700694918632507, -0.13974198698997498, -0.0010939029743894935, -0.2101864069700241, -0.3017224669456482, 0.07990406453609467, 0.033994611352682114, 0.27902501821517944, 0.8206353187561035, 0.14496280252933502, 0.5787233710289001, -0.09846197813749313, -0.26473161578178406, 0.3233755826950073, -0.07313044369220734, -0.25749635696411133, 0.3581176698207855, 0.7730018496513367, 0.6566222310066223, 0.30738916993141174, -0.3748137652873993, -0.3210199177265167, 0.13089753687381744, 0.32348111271858215, -0.9768614172935486, -0.2749927341938019, 0.1573410928249359, -0.9680278301239014, -0.5810920000076294, 0.2450232207775116, -1.119308352470398, -0.9285038709640503, -0.015423061326146126, 0.5221410989761353, -0.33611056208610535, -0.25541815161705017, 0.06969863921403885, -0.23545806109905243, 0.2993331253528595, 0.018559448421001434, -0.7873665690422058, 0.1180219054222107, 0.5305588245391846, 1.0882562398910522, -0.36391404271125793, -0.42327776551246643, -0.7576858401298523, -0.005178406834602356, -0.4532783329486847, 0.7434293627738953, -0.5499621629714966, -0.21019726991653442, -0.01682140678167343, 0.2643786370754242, 0.19562599062919617, -0.7552978992462158, 0.5459142327308655, -0.09446044266223907, 0.0004776800924446434, -0.20231926441192627, -0.19499646127223969, -0.09277650713920593, 0.24832160770893097, -0.997896134853363, 0.791847825050354, -0.14041411876678467, -1.1348695755004883, 0.4445696771144867, -0.5113500952720642, -0.32269594073295593, 0.3145700693130493, -0.43482330441474915, -0.4793950617313385, 0.5185168981552124, 0.2872174382209778, 0.5143728852272034, 0.11817190796136856, 0.33301299810409546, -0.19163282215595245, -0.7832013964653015, 0.4920288324356079, -0.4321184754371643, 0.32762062549591064, 0.12787452340126038, -0.698937714099884, 0.22004662454128265, -0.813297688961029, -0.23159541189670563, 0.05323231220245361, 0.22927366197109222, -0.4111541509628296, -0.0025824469048529863, 0.011656217277050018, 0.008254623040556908, -0.031253132969141006, -0.36940985918045044, -0.009593216702342033, -0.17985372245311737, 0.23306749761104584, 0.6826707124710083, -0.05797750875353813, 0.2793491780757904, 0.07380545139312744, 0.32569077610969543, 0.30460125207901, 0.4501364827156067, -0.27016422152519226, -0.4724898338317871, -0.8740262389183044, -0.24636685848236084, 0.021467894315719604, 0.33530351519584656, -1.0400298833847046, 0.3532062768936157, -0.15973703563213348, -0.04452110081911087, -0.6483269333839417, -0.06493514776229858, 0.15521042048931122, 0.4076831340789795, 0.4843042492866516, -0.055493537336587906, -0.6052191257476807, -1.07939875125885, -0.15651458501815796, -0.1069110780954361, 0.09051627665758133, 0.42704349756240845, 0.7217451930046082, -0.7342613339424133, 0.49815624952316284, -0.4485260844230652, -0.5912340879440308, 0.3126659095287323, 0.39787372946739197, -0.26897868514060974, 0.3377321660518646, 0.5680945515632629, -0.8267588019371033, -0.13422681391239166, -0.04058617725968361, -0.8667230606079102, -0.10462337732315063, -0.04737022891640663, 0.12168514728546143, 0.5983001589775085, 0.6677047610282898, -0.6696617603302002, 0.7503835558891296, 0.5737208127975464, -0.34200340509414673, 0.587974488735199, -0.19697438180446625, 0.210406094789505, -0.836864173412323, 0.17261934280395508, -0.43144461512565613, -0.18338465690612793, -0.28956618905067444, 0.087178535759449, -0.05567697063088417, -0.20709629356861115, -0.3016729950904846, 0.39212626218795776, -0.3544903099536896, -0.3239179253578186, -0.4627581536769867, -0.05041418597102165, -0.24999894201755524, 0.3882710039615631, 0.3333785831928253, 0.5368658900260925, 0.8102045059204102, -0.15571962296962738, 0.6510099768638611, -0.13521775603294373, -0.3574749231338501, 0.4822966456413269, -0.42128217220306396, 0.2729034423828125, -0.5262143611907959, 0.20721936225891113, -0.9183024168014526, -0.36413609981536865, 0.7424784898757935, -0.38418129086494446, -0.08587850630283356, 0.08213413506746292, -0.6362909078598022, -0.43126752972602844, -0.2854938507080078, 0.5500721335411072, 0.3159634470939636, -0.6685506701469421, 0.9551545977592468, -0.053719330579042435, 0.4789561331272125, -0.8837748765945435, -0.9043839573860168, 0.4254733622074127, 0.05653136223554611, -0.1757834404706955, -0.046334028244018555, -0.008862216025590897, -0.026337623596191406, 0.37991276383399963, -0.05946119874715805, -0.02686431258916855, -0.22979579865932465, 0.6090689301490784, 0.09060826897621155, -0.09803495556116104, 0.47935476899147034, -0.30007225275039673, -0.2897823750972748, 0.16916000843048096, -0.6081498265266418, 0.6120671629905701, -0.16467280685901642, -0.3902546465396881, -0.2791830003261566, 0.26875752210617065, 1.0319688320159912, -0.2430851310491562, 0.9165058135986328, 1.0213992595672607, -0.7173994183540344, -0.25874990224838257, -0.7818107604980469, -0.4199773669242859, -0.4028776288032532, 0.41710060834884644, -0.3538016974925995, -0.5531212091445923, 0.4503617286682129, 0.27569833397865295, -0.3972751200199127, 0.27369415760040283, 0.19561991095542908, 0.11805704981088638, 1.0115582942962646, 0.4514019191265106, 0.17217472195625305, 0.1290905624628067, 0.017638280987739563, 0.3837302029132843, -0.49044620990753174, -0.6478385925292969, -0.07341507822275162, -0.36438652873039246, -0.48063966631889343, -0.6468759179115295, 0.27520957589149475, -0.32153335213661194, 0.14826561510562897, -0.06337383389472961, -0.8318122625350952, 0.8437085151672363, 0.3886691629886627, 0.25044065713882446, 0.28158652782440186, 0.09073005616664886, -0.08037832379341125, -0.17503909766674042, -0.2559719681739807, -0.4061812162399292, 0.8808096647262573, 0.12906470894813538, 0.7356968522071838, -0.234593465924263, 0.5100488662719727, 0.5141934156417847, 0.18959562480449677, -0.8244979381561279, 0.6882561445236206, -0.1857239156961441, -0.5864040851593018, -0.3248457908630371, -0.4908919930458069, -0.5594996809959412, 0.3576454222202301, -0.591733992099762, -0.549984872341156, 0.16801467537879944, 0.16962072253227234, -0.06221131235361099, 0.5241506099700928, -0.24313578009605408, 0.9185320138931274, -0.43420785665512085, -0.039120107889175415, -0.14285168051719666, -0.5604806542396545, 0.609132707118988, -0.212729811668396, 0.17056836187839508, 0.184164360165596, -0.07110555469989777, 0.643571138381958, -0.22488678991794586, 0.8440195322036743, -0.27187201380729675, 0.017265604808926582, 0.26829853653907776, 0.1466449499130249, 0.5000014901161194, -0.055231861770153046, 0.3396766781806946, 0.1925310641527176, 0.019299080595374107, -0.31812408566474915, -0.8629297018051147, 0.6602120995521545, -0.4150386452674866, -0.2128821760416031, -0.424392431974411, -0.37148377299308777, 0.13083593547344208, 0.2235659658908844, 0.651706337928772, 0.36197495460510254, -0.08250628411769867, 0.36268725991249084, 0.8448813557624817, -0.4821786880493164, 0.3300565481185913, -0.0013176327338442206, -0.7023318409919739, -0.87134850025177, 0.789137065410614, 0.05031823739409447, -0.14884352684020996, 0.13692930340766907, 0.2758452892303467, -0.20341359078884125, -0.503689169883728, -0.43443652987480164, 0.30592039227485657, -0.9718661308288574, -0.2472190409898758, -0.9239158034324646, -0.14397138357162476, -0.378582239151001, 0.01482347585260868, -0.20781056582927704, -0.19773288071155548, -0.23175230622291565, -0.2662683427333832, 0.11963722854852676, 0.6273865103721619, 0.021994417533278465, 0.12443872541189194, -0.6027304530143738, 0.642297089099884, 0.48553478717803955, 0.45579278469085693, 0.24971044063568115, -0.14179910719394684, -0.07239203155040741, -0.05729324370622635, 0.06292784214019775, -0.8303738236427307, 0.26026004552841187, -0.04949624836444855, 0.47814902663230896, 0.8630834817886353, 0.19282624125480652, 0.6600143909454346, -0.4255025088787079, 0.840653121471405, 0.4953298568725586, -1.0645272731781006, 0.4472202956676483, 0.32135793566703796, -0.08655193448066711, 0.4512229561805725, 0.2703113555908203, -0.49759751558303833, -0.40506425499916077, -0.38092339038848877, -0.3319505453109741, 0.21943354606628418, 0.11533845961093903, 0.2371860295534134, -0.04240773245692253, 0.5793867707252502, 0.3158097565174103, 0.2958962321281433, -1.1431013345718384, -0.07089381664991379, -0.5866650342941284, -0.37035003304481506, -0.03276593238115311, -0.4442429840564728, 0.004151218105107546, -0.35703322291374207, 0.20816799998283386, -0.3456658720970154, 0.30659863352775574, 0.31913867592811584, -0.35737964510917664, -0.231699138879776, -0.12330120801925659, 0.8928743600845337, 0.541573703289032, -0.30844664573669434, 0.8866913318634033, 0.34668606519699097, -0.6559441089630127, 0.007975306361913681, -0.35644981265068054, -0.16379442811012268, 0.3970798850059509, 0.7188781499862671, 0.8861011266708374, 0.056731484830379486, -0.7731969952583313, 0.8531015515327454, -0.11242656409740448, -0.4791445732116699, -0.25414299964904785, -0.20020340383052826, -0.1437627524137497, 0.33643481135368347, 0.30030080676078796, 0.16576838493347168, 0.34847962856292725, -0.6801414489746094, 0.24216367304325104, 0.5851505398750305, -0.6788294315338135, -0.32016322016716003, 0.5401670932769775, 0.04978909343481064, -0.4107193052768707, 0.580275297164917, -0.12011989951133728, -0.7099623680114746, 0.23970676958560944, 0.47226327657699585, 1.1881084442138672, -0.16900482773780823, 0.30880144238471985, 0.20133677124977112, 0.7216690182685852, -0.14542070031166077, 0.11993855237960815, -0.05734168738126755, -0.5864267945289612, -0.2247982770204544, -0.6284483075141907, -0.1079695001244545, 0.37102723121643066, -0.37409764528274536, 0.3303144574165344, -0.44510284066200256, -0.1573745757341385, -0.17337651550769806, -0.5379394292831421, -0.4161212742328644, 0.05758131667971611, 0.6185771226882935, 0.4897470772266388, -0.9134496450424194, 0.5005521178245544, 0.36911121010780334, -0.3531292974948883, -0.15272381901741028, 0.18495692312717438, -0.4303843677043915, -0.6179642081260681, 0.7761229872703552, 0.6090149283409119, -0.36028364300727844, -0.26401734352111816, -0.8425804972648621, -0.2744724154472351, 0.9536633491516113, 0.2684728503227234, -0.485687255859375, -0.15406304597854614, 0.27958762645721436, 0.49255675077438354, -0.5207090973854065, -0.015617851167917252, 0.2645678222179413, 0.7342126369476318, 0.3586485683917999, -0.5270698666572571, 0.33937937021255493, 0.059252623468637466, -0.2091745287179947, 0.22280295193195343, -0.29281333088874817, 0.6706599593162537, -0.420144647359848, -0.3069257438182831, -0.12131526321172714, 0.3978748321533203, -0.02710568718612194, 0.6698737740516663, 0.7394500970840454, 0.4975491464138031, 0.9425201416015625, 0.040183164179325104, 0.5436291694641113, -0.22172488272190094, 0.21562185883522034, 0.7875165939331055, -0.19054317474365234, 0.7458938956260681, 0.5787481069564819, 0.4367310404777527, 0.545961856842041, 0.3814806342124939, -0.39610451459884644, 0.6419507265090942, 0.27342259883880615, -0.05239379033446312, -0.3439640700817108, 0.045066360384225845, -0.41783416271209717, 0.28709694743156433, 0.09377896040678024, -0.616310715675354, 0.15508513152599335, 0.6760053634643555, -0.4553307294845581, -0.3064112365245819, -0.24932029843330383, 0.851982593536377, 0.14875763654708862, -0.539971113204956, 0.6058611273765564, -0.32098135352134705, 0.6548570990562439, -0.08266529440879822, -0.2738220989704132, -0.09240002185106277, 0.24055135250091553, -0.4546296000480652, -0.42864760756492615, 0.5414730906486511, -0.05054142698645592, -0.13427560031414032, 0.27269160747528076, 0.9807472229003906, -0.3998848497867584, -0.6997713446617126, 0.49313709139823914, 0.23402857780456543, 0.3992513120174408, -0.390279084444046, -0.40050768852233887, 0.26610246300697327, -0.329471617937088, 0.34982505440711975, -0.14527985453605652, 0.6991134285926819, 0.03918171674013138, 0.6220963001251221, 0.5206989645957947, -0.023009587079286575, 0.1576305478811264, 0.07601077854633331, 0.6674614548683167, -0.7818288207054138, -0.28120124340057373, -1.1033742427825928, 0.24756748974323273, -0.1413622349500656, 0.06025351583957672, 0.4999294579029083, 0.6328544020652771, 0.40830546617507935, -0.45794638991355896, 0.6113620400428772, 0.1863050013780594, -0.04053816199302673, -0.4878859221935272, 0.7501511573791504, -0.7270340919494629, -0.061121866106987, -0.31439507007598877, -1.1504242420196533, -0.6209184527397156, 0.7216349244117737, 0.06019273400306702, -0.3015342354774475, 1.0749489068984985, 0.9060693383216858, -0.1386573612689972, -0.060310497879981995, 0.5463737845420837, 0.016622204333543777, 0.049834709614515305, 0.31264594197273254, 1.142410397529602, -0.2746354341506958, 0.8837140798568726, -0.08914583921432495, -0.125296488404274, -0.5548017024993896, -0.9042190313339233, -1.3433202505111694, -0.6916453242301941, -0.34523582458496094, -0.5790870189666748, 0.0707954689860344, 0.6472106575965881, 0.6640482544898987, -0.9044879078865051, 0.15499740839004517, -0.2385367602109909, 0.17895175516605377, -0.0799911692738533, -0.2127312421798706, 0.43911832571029663, -0.2955746054649353, -0.33209124207496643, -0.27911409735679626, 0.4331907629966736, 0.3291025757789612, -0.6405124068260193, -0.139698326587677, 0.4370589852333069, 0.20592842996120453, 0.6453297138214111, -0.2835228443145752, -1.1079494953155518, -0.3698752224445343, 0.2517409920692444, -0.1253349334001541, -0.05012264847755432, 1.0557245016098022, -0.6375725269317627, 0.6124230623245239, 0.4348849654197693, 0.5017282366752625, 0.5198594331741333, -0.14231032133102417, -0.026217734441161156, -0.4500599503517151, 0.20575113594532013, 0.15161915123462677, 0.2787918150424957, 0.355354368686676, -0.4930344521999359, 0.4137951135635376, 0.5058842897415161, -0.3375469446182251, -1.0867339372634888, 0.07041256874799728, -0.8692904710769653, -0.549591600894928, 0.9528108239173889, 0.357364684343338, -0.34190890192985535, 0.03684678301215172, -0.5506336688995361, -0.06689529865980148, 0.09531482309103012, 0.9979265332221985, 0.7830196619033813, 0.26255425810813904, -0.5514237284660339, -0.35861119627952576, 0.6054925918579102, 0.07761017978191376, -0.665799617767334, 0.25825321674346924, 0.5146293640136719, -0.005709200166165829, 0.5770875215530396, 0.4759525954723358, 0.053191669285297394, 0.24777570366859436, 0.18144047260284424, 0.25586649775505066, -0.23634718358516693, -0.5826842784881592, -0.21024923026561737, 0.3471108078956604, -0.2657274305820465, -0.5055589079856873 ]
http://arxiv.org/abs/2405.19139v1
http://arxiv.org/pdf/2405.19139v1
DGRC: An Effective Fine-tuning Framework for Distractor Generation in Chinese Multi-choice Reading Comprehension
2024-05-29T14:47:01
2024-05-29T14:47:01
Runfeng Lin, Dacheng Xu, Huijiang Wang, Zebiao Chen, Yating Wang, Shouqiang Liu
cs.CL
cs.CL, cs.AI
When evaluating a learner's knowledge proficiency, the multiple-choice question is an efficient and widely used format in standardized tests. Nevertheless, generating these questions, particularly plausible distractors (incorrect options), poses a considerable challenge. Generally, the distractor generation can be classified into cloze-style distractor generation (CDG) and natural questions distractor generation (NQDG). In contrast to the CDG, utilizing pre-trained language models (PLMs) for NQDG presents three primary challenges: (1) PLMs are typically trained to generate ``correct'' content, like answers, while rarely trained to generate ``plausible" content, like distractors; (2) PLMs often struggle to produce content that aligns well with specific knowledge and the style of exams; (3) NQDG necessitates the model to produce longer, context-sensitive, and question-relevant distractors. In this study, we introduce a fine-tuning framework named DGRC for NQDG in Chinese multi-choice reading comprehension from authentic examinations. DGRC comprises three major components: hard chain-of-thought, multi-task learning, and generation mask patterns. The experiment results demonstrate that DGRC significantly enhances generation performance, achieving a more than 2.5-fold improvement in BLEU scores.
[ -0.580929696559906, -0.7934475541114807, 0.27441683411598206, -0.10144855827093124, -0.38077837228775024, 0.030096933245658875, -0.2996339499950409, -0.17320585250854492, -0.4116230010986328, 0.5926015973091125, -0.5396415591239929, -0.3427805006504059, -0.2714911699295044, 0.27169060707092285, 0.05773743987083435, 1.1556390523910522, -0.041847724467515945, -0.15331408381462097, -0.14709950983524323, 0.155182883143425, -0.48519396781921387, -0.11714014410972595, -0.9642044901847839, -0.20102182030677795, 0.7416112422943115, 0.3738241195678711, 0.41429492831230164, 0.5486679077148438, 0.4500705301761627, 0.20281121134757996, -0.135311558842659, 0.6681589484214783, -0.4572427570819855, 0.09814000129699707, 0.018013183027505875, -0.3411851227283478, -0.08417335897684097, -0.04831599071621895, 0.6896817684173584, 0.3498690128326416, -0.2886196970939636, -0.048303063958883286, 0.46162620186805725, 0.6953441500663757, -0.6972774863243103, 0.050360653549432755, -0.6977332234382629, -0.11642811447381973, -0.04455487057566643, -0.33173033595085144, -0.44868579506874084, -0.37474820017814636, -0.011541369371116161, -0.5182421803474426, 0.41937342286109924, -0.14113149046897888, 0.9137275218963623, 0.5051366686820984, -0.7500186562538147, -0.43043839931488037, -0.389554888010025, 0.7162744402885437, -0.546561062335968, 0.23826734721660614, 0.38777241110801697, 0.3432713449001312, -0.18066348135471344, -0.5018900632858276, -0.7631636261940002, -0.49944746494293213, -0.16158220171928406, 0.6315277218818665, 0.41620784997940063, 0.3289008140563965, 0.4165768325328827, 0.4360009729862213, -0.6100544929504395, -0.09536082297563553, -0.2768395245075226, -0.0010970610892400146, 0.7742787599563599, 0.22196179628372192, 0.1568540334701538, -0.27760785818099976, -0.5227309465408325, -0.07788171619176865, -0.5026544332504272, 0.07794506102800369, 0.4739089906215668, 0.06661263108253479, 0.384894460439682, 0.005706699099391699, -0.19107657670974731, 1.1771732568740845, 0.4485095143318176, -0.3253253996372223, 0.058216214179992676, -0.5677717328071594, 0.10157521069049835, -0.10940863937139511, 0.4607357680797577, 0.20376071333885193, 0.06744493544101715, 0.11470576375722885, -0.2777162492275238, -0.22617454826831818, 0.4094458520412445, -0.8112508654594421, -0.5594757199287415, 0.3257918059825897, -0.19164232909679413, -0.2905198335647583, 0.10538367182016373, -0.6782301068305969, -0.12453306466341019, -0.39430689811706543, 0.228767991065979, -0.43390604853630066, 0.030406678095459938, 0.19585928320884705, -0.027615630999207497, 0.39663606882095337, 0.2991904318332672, -0.9707943797111511, -0.09032276272773743, 0.23660069704055786, 0.6470855474472046, -0.4340634047985077, -0.32657313346862793, -0.6800373792648315, 0.08653184026479721, -0.2350941151380539, 0.8158938884735107, -0.21023523807525635, -0.23020365834236145, -0.03786681219935417, -0.2218838781118393, -0.4717182219028473, -0.5518855452537537, 0.5966171622276306, -0.5451676249504089, 0.16995377838611603, -0.3311848044395447, -0.5053420662879944, -0.09627856314182281, 0.6396536231040955, -0.6148518919944763, 1.0333644151687622, 0.13917402923107147, -0.7647883296012878, 0.5683229565620422, -0.47598546743392944, -0.3188747465610504, 0.4045243263244629, 0.06500247865915298, -0.2575836777687073, -0.30488166213035583, 0.3233894109725952, 0.2769909203052521, -0.09199745953083038, 0.37616389989852905, 0.137660950422287, -0.38274121284484863, 0.3203716278076172, -0.4570735692977905, 0.6568881273269653, 0.25165221095085144, -0.1324750930070877, 0.08982648700475693, -0.7866489887237549, 0.30648306012153625, -0.17503753304481506, -0.5719160437583923, -0.17039217054843903, 0.13029848039150238, -0.048926789313554764, 0.5128960609436035, 0.06686574220657349, -0.41143712401390076, -0.045413944870233536, -0.18916486203670502, 0.1903913915157318, 0.6291477680206299, 0.2063630223274231, 0.07947402447462082, -0.7323424816131592, 0.3993126451969147, 0.11519523710012436, 0.11215828359127045, -0.3046071529388428, -0.26723745465278625, -0.7001871466636658, -0.31778597831726074, 0.33228740096092224, 0.6086993217468262, -1.1061522960662842, 0.49024441838264465, 0.1286037713289261, -0.6501774787902832, -0.24578505754470825, 0.12408830970525742, 0.3822440207004547, 0.6105149984359741, 0.38968425989151, 0.07160479575395584, 0.07179496437311172, -0.3709482252597809, -0.2969469130039215, 0.0025909910909831524, -0.05201217532157898, 0.4853975772857666, 0.5071910619735718, 0.14687378704547882, 0.4915383458137512, -0.8126252889633179, -0.28493520617485046, -0.281345933675766, 0.018177861347794533, -0.01827884279191494, 0.4807480275630951, 0.37258535623550415, -0.9114218354225159, -0.7689647078514099, 0.07987953722476959, -0.17229004204273224, -0.19360172748565674, -0.48473429679870605, -0.3129565417766571, 0.15011483430862427, 0.459434449672699, -0.30093979835510254, 0.11217724531888962, 0.24796229600906372, -0.19318121671676636, 0.9456427693367004, -0.35491201281547546, 0.1543084979057312, -0.9182747006416321, 0.15756648778915405, -0.11876680701971054, 0.15537387132644653, -0.8561851978302002, 0.35200417041778564, 0.2046210616827011, 0.21755743026733398, -0.4514506459236145, 0.7692133188247681, -0.3352724015712738, 0.7336284518241882, -0.3670884370803833, 0.45815175771713257, 0.20859090983867645, 0.4325295388698578, 0.034295182675123215, 0.5288853049278259, 0.4347361624240875, -0.9326208233833313, 0.13763152062892914, 0.4591341018676758, -0.253721684217453, 0.47488051652908325, -0.37217453122138977, 0.12548483908176422, -0.24034400284290314, 0.128203347325325, -1.1174025535583496, -0.2779615819454193, 0.1925402283668518, -0.21488097310066223, 0.34686434268951416, 0.1673576682806015, -0.38992100954055786, -0.5095296502113342, -0.10248484462499619, 0.3313637673854828, 0.3639155328273773, -0.8088377714157104, 0.3461688756942749, -0.11498080939054489, -0.0936388224363327, -0.6348043084144592, -0.6629476547241211, -0.34724390506744385, -0.13748018443584442, -0.5473591089248657, 0.44849467277526855, -0.42208510637283325, -0.03473681956529617, -0.43246766924858093, -0.2615506947040558, -0.19782249629497528, 0.1334681510925293, -0.2444378137588501, 0.21867693960666656, -0.006307700648903847, 0.24941320717334747, 0.19334781169891357, 0.01584853045642376, -0.04460233077406883, -0.07113669812679291, 0.30322909355163574, 0.3313286304473877, -0.37914279103279114, -0.009849213995039463, 0.15373964607715607, 0.12947402894496918, -0.5456990599632263, 0.45694035291671753, 0.6050244569778442, -0.09472287446260452, -0.665974497795105, -0.5789533853530884, -0.33642393350601196, -0.49281004071235657, 0.310354620218277, -0.3802017867565155, -0.9413787722587585, 0.5995380878448486, 0.1778586059808731, 0.21844486892223358, 0.1550372838973999, 0.4809417724609375, 0.2396400421857834, 0.9898155331611633, 0.09964776039123535, 0.2496543675661087, 0.6460391879081726, 0.163031205534935, 0.06962427496910095, -0.6748965382575989, -0.17867788672447205, -0.22270995378494263, -0.21181465685367584, -0.47189703583717346, -0.4303368031978607, 0.20300117135047913, 0.25703778862953186, -0.08113939315080643, -0.22214026749134064, -0.7176335453987122, 0.6540265083312988, 0.5606348514556885, 0.10507578402757645, 0.29068806767463684, -0.2710111141204834, -0.282783180475235, 0.17235969007015228, -0.7597183585166931, -0.518001914024353, 0.9267060160636902, -0.14720459282398224, 0.5135843753814697, -0.10900675505399704, 0.8775861859321594, -0.32192152738571167, 0.2145870178937912, -0.6758716106414795, 0.367002010345459, -0.24413344264030457, -0.8562937378883362, -0.2768964171409607, -0.5077855587005615, -0.9437819123268127, 0.6236536502838135, 0.08130066096782684, -0.4981173574924469, 0.2259717732667923, 0.22523491084575653, -0.7971258759498596, 0.23641495406627655, -0.4850347936153412, 0.9586830139160156, -0.3691480755805969, -0.40810006856918335, 0.1110134869813919, -0.5016786456108093, 0.582528293132782, -0.118377186357975, -0.30786195397377014, 0.06024285405874252, 0.1798715740442276, 0.35581693053245544, 0.07102706283330917, 0.5102848410606384, -0.1489691287279129, -0.06195473670959473, 0.8452095985412598, 0.1308000534772873, 0.282720148563385, 0.3263061046600342, -0.16046079993247986, -0.1442757099866867, 0.056638918817043304, -0.46111905574798584, -0.40530726313591003, 0.4655408263206482, -0.5064380168914795, -0.7237893342971802, -0.517697811126709, -0.8423402905464172, -0.0928160771727562, 0.3865380585193634, 0.1991681605577469, 0.26477134227752686, -0.3314075171947479, -0.07073311507701874, 0.8262700438499451, -0.21882644295692444, 0.49922993779182434, 0.4758525788784027, 0.13935530185699463, -0.412733256816864, 0.9944884777069092, 0.25910449028015137, 0.5116235613822937, 0.24700956046581268, 0.1361887902021408, -0.2900988459587097, -0.7587360739707947, -0.37616512179374695, 0.1628042459487915, -0.5249015688896179, -0.11943371593952179, -0.4664445221424103, -0.5373730659484863, -0.06995482742786407, -0.10820227861404419, 0.16431422531604767, 0.2291961908340454, -0.5471212863922119, -0.18162868916988373, 0.07880350202322006, 0.5587954521179199, -0.00831849779933691, 0.3479205071926117, -0.8290988802909851, 0.3907302916049957, 0.5022251605987549, 0.20973430573940277, -0.04411613196134567, -0.48078757524490356, -0.2548128664493561, 0.1636640578508377, -0.7897462844848633, -0.6890559196472168, 0.2872401177883148, 0.15217778086662292, 0.5743457674980164, 0.5849018692970276, 0.28337129950523376, 0.5774698853492737, -0.2930370569229126, 0.8906411528587341, -0.18466703593730927, -0.7711166143417358, 0.33564111590385437, -0.5119326710700989, 0.5018903613090515, 0.6681485176086426, 0.12057333439588547, -0.5060397982597351, -0.36379969120025635, -0.4576883316040039, -0.6172649264335632, 0.7934798002243042, 0.11298682540655136, -0.15324462950229645, -0.3622487187385559, 0.5401450991630554, 0.26957476139068604, 0.1927608996629715, -0.677858829498291, -0.15996810793876648, -0.34783047437667847, -0.0616772435605526, -0.20135724544525146, -0.26734837889671326, -0.15879705548286438, -0.11139887571334839, 0.4593800902366638, -0.48388615250587463, -0.17493627965450287, 0.4156506061553955, -0.04325886815786362, 0.13450738787651062, 0.3107762038707733, 0.7413585782051086, 0.5403839349746704, -0.12732462584972382, 0.004141680896282196, 0.2169678807258606, -0.500821590423584, -0.05701718106865883, 0.21560995280742645, -0.38595256209373474, -0.15492787957191467, -0.004794679116457701, 0.6909855008125305, -0.32516223192214966, -0.6548640131950378, 0.22732698917388916, 0.10621173679828644, -0.6170336604118347, -0.12048383802175522, 0.37386807799339294, -0.13686829805374146, -0.0588386170566082, 0.2878628969192505, -0.06223864480853081, -0.017331590875983238, 0.0022780706640332937, 0.46533137559890747, 0.32909929752349854, -0.3561413288116455, -0.0838218629360199, 0.5644856691360474, 0.291095107793808, 0.1440032422542572, 0.5160835981369019, -0.6587091684341431, -0.5456856489181519, 0.7211079001426697, 0.6014288067817688, 0.5971789360046387, -0.3677375316619873, 0.5113858580589294, 0.7013391852378845, 0.33770298957824707, -0.2414661943912506, 0.6691218018531799, -0.125391885638237, -0.8415210247039795, -0.44931259751319885, -0.41223594546318054, -0.2459813952445984, 0.19581060111522675, -0.6952680945396423, 0.15046076476573944, -0.41077208518981934, 0.039765845984220505, -0.29062628746032715, 0.32268890738487244, -0.5093715190887451, 0.3903486728668213, 0.3273266851902008, 0.7599731683731079, -0.5134745836257935, 0.7268865704536438, 0.5745086073875427, -0.4783685505390167, -0.9328854084014893, 0.3923777937889099, -0.33329257369041443, -0.2775265872478485, 0.4665794372558594, 0.27006903290748596, 0.19130846858024597, 0.19990569353103638, -0.20621243119239807, -0.8368126749992371, 1.1081775426864624, 0.1240386962890625, -0.6181691884994507, 0.04626274108886719, 0.1087818294763565, 0.5676783919334412, -0.15512767434120178, 0.4570143222808838, 0.6968245506286621, 0.6754649877548218, 0.1616934835910797, -0.642429769039154, 0.13461615145206451, -0.0018867520848289132, -0.16282501816749573, 0.2699010372161865, -1.0801502466201782, 0.9476401805877686, -0.3062012195587158, -0.3766399323940277, 0.017567342147231102, 0.2755540609359741, 0.5997537970542908, 0.31387218832969666, 0.3963523805141449, 0.37210536003112793, 1.0290906429290771, -0.219892680644989, 0.9384685158729553, -0.4774855971336365, 0.07869885116815567, 1.012625813484192, -0.4013758897781372, 0.5163820385932922, 0.47691822052001953, 0.158232644200325, 0.3765242099761963, 0.6876198053359985, -0.2137403041124344, 0.5068923234939575, 0.4830172061920166, -0.23227834701538086, -0.5107040405273438, -0.0014676930150017142, -0.22172905504703522, 0.4140171408653259, 0.23766767978668213, -0.10155278444290161, -0.18572568893432617, -0.09290976077318192, -0.2878355085849762, 0.10398498922586441, -0.3822600841522217, 0.7784226536750793, 0.11414828151464462, -1.1762704849243164, 0.7559022307395935, -0.26295480132102966, 0.49241045117378235, -0.6119386553764343, 0.04434787109494209, -0.27033475041389465, 0.30597615242004395, -0.16349151730537415, -0.7680166959762573, 0.08749154210090637, -0.2995392680168152, -0.13725745677947998, -0.11584614217281342, 0.7516098022460938, -0.7696006894111633, -0.25972747802734375, 0.08431269973516464, 0.6582192778587341, -0.07590808719396591, -0.23466286063194275, -0.7999516725540161, -0.625730037689209, 0.23925986886024475, -0.36739253997802734, 0.3515393137931824, 0.5980556011199951, 0.21822316944599152, 0.6535357236862183, 0.7058903574943542, 0.05258456617593765, 0.2729809582233429, 0.1958899050951004, 0.6645484566688538, -0.5823753476142883, -0.6238220930099487, -0.6409053802490234, 0.6675059199333191, 0.031095856800675392, -0.6378040313720703, 0.807131826877594, 0.297350138425827, 0.9114809632301331, -0.15299123525619507, 0.7840416431427002, 0.02351418323814869, 0.30934274196624756, -0.3679257333278656, 0.8228248953819275, -0.5329755544662476, -0.13197541236877441, -0.08892223984003067, -0.7865455150604248, -0.4005278944969177, 0.4244256317615509, -0.29879945516586304, 0.21042370796203613, 0.9609745144844055, 0.8847646117210388, 0.13447009027004242, -0.010132108815014362, 0.42142993211746216, -0.22941358387470245, 0.23783719539642334, 0.6716936230659485, 1.0514240264892578, -0.39411279559135437, 0.822525680065155, -0.15540750324726105, -0.0511876605451107, -0.02033579722046852, -0.5977423787117004, -1.290144920349121, -0.48814812302589417, -0.49317917227745056, -0.160925030708313, -0.020276004448533058, 0.5047695636749268, 0.24168741703033447, -0.765696108341217, -0.02844456396996975, -0.24010758101940155, 0.3114210367202759, -0.5769014358520508, -0.2332051694393158, 0.3711635172367096, -0.6656709313392639, -0.7915610074996948, 0.07150628417730331, -0.08626294881105423, 0.03374703973531723, -0.04270167648792267, -0.08031079918146133, -0.32736122608184814, 0.18338188529014587, 0.38565579056739807, -0.013906897976994514, -0.711380660533905, -0.3923037052154541, 0.17100761830806732, -0.15810427069664001, 0.010230167768895626, 0.6799958944320679, -0.5854452252388, 0.6557027697563171, 0.6186003684997559, 0.4863045811653137, 0.1672898530960083, 0.345904678106308, 0.19926717877388, -0.7830324769020081, -0.19458478689193726, 0.39692968130111694, 0.12670937180519104, 0.1182863712310791, -0.4643932282924652, 0.13130848109722137, -0.036992330104112625, -0.8783087730407715, -0.7911943793296814, 0.3488868772983551, -0.7719107866287231, -0.30994856357574463, 1.360588550567627, -0.09921828657388687, -0.13772810995578766, -0.28309234976768494, -0.6258432865142822, 0.35364577174186707, -0.22398093342781067, 0.8772848844528198, 0.7977555394172668, -0.09604443609714508, -0.20107229053974152, -0.5645279884338379, 0.8395870327949524, 0.6193832159042358, -0.7453469634056091, 0.263441801071167, 0.4662832021713257, 0.22320130467414856, 0.17405572533607483, 0.39777886867523193, 0.1741260588169098, 0.49513721466064453, 0.22791309654712677, 0.21164141595363617, -0.23637841641902924, -0.2948261797428131, -0.1976919025182724, 0.19151684641838074, -0.093549944460392, -0.22437557578086853 ]
http://arxiv.org/abs/2405.19109v1
http://arxiv.org/pdf/2405.19109v1
PathReasoner: Modeling Reasoning Path with Equivalent Extension for Logical Question Answering
2024-05-29T14:14:05
2024-05-29T14:14:05
Fangzhi Xu, Qika Lin, Tianzhe Zhao, Jiawei Han, Jun Liu
cs.CL
cs.CL
Logical reasoning task has attracted great interest since it was proposed. Faced with such a task, current competitive models, even large language models (e.g., ChatGPT and PaLM 2), still perform badly. Previous promising LMs struggle in logical consistency modeling and logical structure perception. To this end, we model the logical reasoning task by transforming each logical sample into reasoning paths and propose an architecture \textbf{PathReasoner}. It addresses the task from the views of both data and model. To expand the diversity of the logical samples, we propose an atom extension strategy supported by equivalent logical formulas, to form new reasoning paths. From the model perspective, we design a stack of transformer-style blocks. In particular, we propose a path-attention module to joint model in-atom and cross-atom relations with the high-order diffusion strategy. Experiments show that PathReasoner achieves competitive performances on two logical reasoning benchmarks and great generalization abilities.
[ -0.09562769532203674, -0.9121388792991638, 0.9446632862091064, -0.22740128636360168, -0.018967676907777786, -0.07531902194023132, 0.19188153743743896, -0.33667829632759094, -0.08975547552108765, 0.7591800689697266, -0.7573646903038025, -0.24781526625156403, -0.534070611000061, 0.08760207146406174, -0.26518628001213074, 0.9063192009925842, -0.3358616232872009, -0.006738022901117802, -0.3797091245651245, -0.09572426229715347, -0.6134676337242126, -0.06837859004735947, -0.5530732274055481, -0.39254632592201233, 0.2726137936115265, 0.07796689122915268, 0.8018546104431152, 0.702724814414978, 0.5603247880935669, 0.37025055289268494, -0.27644506096839905, -0.13502170145511627, -0.28554007411003113, 0.46162259578704834, -0.7483295202255249, -0.5562067031860352, -0.47687849402427673, -0.25709789991378784, 0.5482811331748962, 0.7403789162635803, -0.10064571350812912, 0.17438605427742004, -0.40752261877059937, 0.46310439705848694, -0.6002398133277893, -0.1873626410961151, -0.33613115549087524, 0.0896449089050293, 0.11785145103931427, -0.03882938250899315, -0.5191358923912048, -0.37817665934562683, 0.22245724499225616, -0.6279978156089783, 0.11699184030294418, 0.25148600339889526, 0.35030636191368103, 0.22571507096290588, -0.4917348623275757, -0.03918594866991043, -0.9305115342140198, 0.6601444482803345, -0.4502111077308655, 0.6264687180519104, -0.09678393602371216, 0.8556175827980042, -0.021149268373847008, -0.7532230019569397, -0.3429473638534546, -0.008510108105838299, -0.06551543623209, 0.29683035612106323, -0.4565269351005554, 0.11364680528640747, 0.24828290939331055, 0.12245548516511917, -0.83198082447052, -0.5988356471061707, -0.3276527523994446, -0.11516309529542923, 0.4693092405796051, 0.5159946084022522, 0.2561621367931366, -0.034496601670980453, -0.4143177568912506, 0.1968751698732376, -0.4950571060180664, 0.014119797386229038, 0.17411528527736664, -0.07372177392244339, 0.3660498857498169, 0.5361202955245972, -0.5716896057128906, 0.9668370485305786, -0.06918451189994812, 0.15606896579265594, -0.09582918137311935, -0.49349674582481384, -0.18460065126419067, 0.07334059476852417, 0.4536402225494385, 0.12895400822162628, 0.0668826624751091, -0.3018230199813843, -0.19297796487808228, 0.09607387334108353, 0.44532620906829834, -0.9581542015075684, -0.36731910705566406, 0.27728593349456787, -0.5202979445457458, 0.06584008783102036, -0.17564807832241058, -0.647345781326294, -0.3742836117744446, -0.12963908910751343, 0.5443330407142639, -0.5584643483161926, -0.3314579725265503, 0.41601452231407166, -0.4261077344417572, 0.06049536168575287, 0.6101308465003967, -0.39220428466796875, 0.6809200048446655, 0.716184675693512, 0.6156604290008545, -0.09713565558195114, -0.1371876448392868, -0.45128610730171204, 0.35184577107429504, -0.32785603404045105, 1.030344843864441, -0.8038192987442017, -0.2640076279640198, -0.38837704062461853, -0.11303459852933884, -0.09865459054708481, -0.6194779872894287, 0.6738038063049316, -0.787903904914856, 0.15685224533081055, -0.1351405680179596, -0.706515371799469, -0.3672187328338623, 0.5356133580207825, -0.5500473380088806, 0.5421143770217896, 0.2588101029396057, -0.5985596776008606, -0.09168467670679092, -0.9241029024124146, -0.26437705755233765, 0.2715616524219513, 0.03500625863671303, 0.04363550245761871, -0.05986758694052696, 0.11356130987405777, 0.07090965658426285, -0.4245181977748871, 0.24697619676589966, -0.1859493851661682, -0.3335004448890686, 0.13625667989253998, -0.35534265637397766, 0.7722969055175781, 0.10991872102022171, -0.11502040177583694, 0.3943021893501282, -0.7460992336273193, -0.06908994168043137, 0.13795344531536102, -0.18378159403800964, -0.3203746974468231, 0.2007080763578415, -0.04363663122057915, 0.5420661568641663, 0.062119778245687485, -0.6955752372741699, 0.13604538142681122, -0.3694618046283722, 0.33460116386413574, 0.660991907119751, 0.1714245229959488, 0.49997779726982117, -0.3746117353439331, 0.9052932262420654, 0.23093265295028687, 0.2862650752067566, 0.10185261070728302, -0.5127876996994019, -0.6938246488571167, -0.11406617611646652, -0.13105471432209015, 0.5958096385002136, -0.4862677752971649, 0.2746819257736206, -0.4284660816192627, -0.5587134957313538, -0.5798749327659607, -0.08206535130739212, 0.3064804673194885, 0.7621756792068481, 0.610863208770752, 0.24575479328632355, -0.4239512085914612, -0.9140023589134216, -0.5680801272392273, -0.06074965000152588, 0.1479698270559311, 0.2577534019947052, 0.3830960690975189, -0.3653741478919983, 1.0499259233474731, -0.7044184803962708, 0.12423728406429291, -0.6517897844314575, -0.43292272090911865, 0.5524791479110718, 0.315297931432724, 0.004178681876510382, -0.9239798784255981, -0.24166910350322723, -0.01318372692912817, -0.5451900362968445, 0.05150369182229042, 0.10034049302339554, -0.6106487512588501, -0.12302916496992111, 0.4502899646759033, -0.8768293857574463, 0.35699084401130676, 0.11592556536197662, -0.5895358920097351, 0.5484265685081482, 0.30457571148872375, 0.01045084185898304, -1.2620466947555542, 0.04678330942988396, 0.02664128877222538, -0.438918799161911, -0.8850304484367371, 0.08047758042812347, -0.2514106333255768, -0.11166699975728989, -0.6253800988197327, 0.6998409032821655, -0.0709298774600029, 0.10376806557178497, -0.34360823035240173, -0.008045608177781105, 0.20787718892097473, 0.28529220819473267, 0.3360811471939087, 0.29890429973602295, 0.5137742161750793, -0.3605818450450897, 0.716863214969635, 0.3348039388656616, -0.06262369453907013, 0.6286674737930298, -0.9301785826683044, -0.05625801533460617, -0.2600504159927368, 0.6741117835044861, -0.9841415882110596, 0.1606638878583908, 0.43220099806785583, -0.17847996950149536, -0.2294376641511917, -0.20500461757183075, -0.3564033806324005, -0.384223997592926, -0.05774320662021637, 0.8236098289489746, 0.6521571278572083, -0.33052483201026917, 1.1678063869476318, -0.1344243586063385, -0.05753203108906746, -0.1663637012243271, -0.3770684003829956, -0.34598785638809204, -0.29864099621772766, -0.691546618938446, 0.04448176920413971, -0.31263968348503113, -0.4703539311885834, 0.3317493200302124, -0.41551363468170166, -0.05568408593535423, -0.20375698804855347, 0.07095997780561447, 0.40079060196876526, -0.4572578966617584, -0.04278305172920227, 0.007653195410966873, -0.14972372353076935, 0.4574189782142639, -0.5046961307525635, 0.42201218008995056, 0.04340343549847603, -0.3187885284423828, -0.34684163331985474, 0.4250641167163849, 0.41096851229667664, -0.3075546324253082, 0.5525166392326355, 0.13211697340011597, -0.4660733938217163, -0.2841554582118988, -0.28986409306526184, -0.25617358088493347, -0.4481557607650757, 0.4256831407546997, -0.778229296207428, -0.7483016848564148, 0.3420899212360382, -0.16830484569072723, -0.05155114829540253, 0.5091304183006287, 0.3422411382198334, 0.1361255943775177, 1.0913755893707275, 0.38179895281791687, 0.17487147450447083, 0.05563778802752495, -0.13630077242851257, 0.38233885169029236, -0.9156639575958252, -0.2100772112607956, -0.2136448472738266, -0.19680798053741455, -0.14650088548660278, -0.38287389278411865, 0.319291889667511, 0.20576556026935577, -0.3937646448612213, 0.5422137379646301, -0.5011305212974548, 0.5079464912414551, 0.2748987674713135, 0.10521655529737473, 0.36164307594299316, -0.36895090341567993, 0.11011940240859985, 0.3103431165218353, -0.9568992853164673, -0.2516631782054901, 0.7402743101119995, 0.3961837589740753, 0.7302427887916565, 0.31671226024627686, 0.5553557872772217, -0.1791154146194458, 0.05736837163567543, -0.7398635149002075, 0.7007655501365662, 0.2717512547969818, -0.7800632119178772, -0.25693944096565247, -0.6010701060295105, -0.518444836139679, 0.4812326729297638, 0.11013782769441605, -0.7787091732025146, 0.08452368527650833, 0.24952827394008636, -0.37655094265937805, 0.21574513614177704, -0.4624161422252655, 1.2031081914901733, -0.06110672652721405, -0.38352373242378235, -0.288209468126297, -0.7878535389900208, 0.34544846415519714, 0.2803294062614441, -0.007520402316004038, -0.0004587190051097423, 0.06931474059820175, 0.7782159447669983, -0.4955940842628479, 0.35479113459587097, -0.033753376454114914, -0.003850653301924467, 0.41356563568115234, 0.506526529788971, 0.5209950804710388, 0.038627829402685165, -0.1842612624168396, -0.1723153442144394, -0.014093611389398575, -0.33933672308921814, -0.9627848863601685, 0.3383185863494873, -0.4176982641220093, -0.8983147144317627, -0.3960038721561432, -0.9678885340690613, -0.29939666390419006, 0.45616796612739563, 0.18496552109718323, 0.3959188759326935, -0.13285532593727112, -0.17043399810791016, 0.6992087364196777, 0.284226655960083, 0.11637614667415619, 0.39279311895370483, -0.12995369732379913, -0.20148484408855438, 0.7035662531852722, -0.27859461307525635, 0.4540422558784485, 0.8579081296920776, 0.316928505897522, -0.4254077970981598, -0.4124385118484497, -0.33812153339385986, 0.13401013612747192, -0.8491935133934021, -0.08105123788118362, -0.7506580948829651, -0.4627488851547241, -0.38286292552948, -0.10184868425130844, -0.22229938209056854, -0.3977813720703125, 0.00447244243696332, -0.1242230013012886, 0.4844726324081421, 0.7223148941993713, 0.3814569413661957, -0.0031292682979255915, -0.6646706461906433, 0.3977624773979187, 0.24938297271728516, 0.1964559704065323, -0.06546003371477127, -0.4183259904384613, -0.051197052001953125, -0.09118189662694931, -0.3591933846473694, -0.8369624614715576, 0.06309795379638672, -0.18455439805984497, 0.5466318726539612, 0.33011892437934875, -0.04863111674785614, 0.5219833254814148, -0.880200207233429, 0.3509601652622223, 0.018547536805272102, -0.9256102442741394, 0.8558661937713623, -0.4136875867843628, 0.4492131471633911, 0.4425794184207916, 0.4653720557689667, -0.5972163081169128, -0.24474945664405823, -0.6484277248382568, -0.6040545105934143, 0.7379389405250549, 0.2496044933795929, -0.36318519711494446, 0.16858121752738953, 0.08644320070743561, -0.012259525246918201, 0.05860750004649162, -0.462270587682724, 0.01242170948535204, -0.4443484842777252, -0.2709164321422577, -0.025685789063572884, 0.1902250349521637, -0.24122664332389832, -0.3463915288448334, 0.6809742450714111, 0.022996317595243454, 0.11812300235033035, 0.2311454713344574, -0.11441025882959366, 0.0036143693141639233, 0.4081842601299286, 0.18798664212226868, 0.657895565032959, -0.25187477469444275, 0.3753693997859955, 0.0401143878698349, -0.24393032491207123, 0.34048712253570557, 0.22785671055316925, -0.15153999626636505, -0.08783555030822754, 0.4165109097957611, 0.8077737092971802, -0.18232367932796478, -0.8393859267234802, 0.319845587015152, 0.1177380159497261, -0.17468596994876862, 0.059435442090034485, 0.38214656710624695, 0.31934335827827454, 0.49751296639442444, -0.05094544589519501, 0.30925336480140686, 0.6912779211997986, -0.4953991174697876, 0.06447795033454895, 0.2816465198993683, -0.5519963502883911, -0.17238174378871918, 0.6687806248664856, 0.09460364282131195, -0.4174156188964844, 0.5499515533447266, -0.08309747278690338, -0.7043430209159851, 0.6517065763473511, 0.8289777040481567, 0.7211509943008423, -0.1908694952726364, 0.060031723231077194, 0.05287754535675049, 0.22619979083538055, -0.05924079567193985, 0.27824708819389343, -0.15477390587329865, -0.7403454184532166, -0.13657332956790924, -0.5578150153160095, -0.3042139708995819, -0.2786702811717987, -0.41369950771331787, -0.005893347319215536, -0.3413678705692291, 0.2676267623901367, -0.07977868616580963, -0.3126847743988037, -0.41437968611717224, 0.3662569522857666, -0.1581648588180542, 1.17255699634552, -0.7464403510093689, 0.5971242189407349, 0.9435214400291443, -0.25506681203842163, -0.6557422876358032, 0.11848429590463638, -0.13306982815265656, -0.32905563712120056, 0.6373918056488037, 0.14572231471538544, -0.3032114803791046, 0.0721249058842659, 0.051908817142248154, -0.8033671379089355, 1.0544172525405884, 0.27508941292762756, -0.456892192363739, -0.04770905524492264, 0.15203258395195007, 0.3018595278263092, -0.29824256896972656, 0.46323758363723755, 0.4873363971710205, 0.3202659785747528, 0.2524150609970093, -0.24050208926200867, 0.44336050748825073, -0.423679918050766, 0.24514560401439667, 0.41906896233558655, -0.5433420538902283, 0.80088210105896, 0.06752415746450424, 0.08699154108762741, 0.13773152232170105, 0.5791828632354736, 0.5724904537200928, 0.12799549102783203, 0.5692077279090881, 0.7264721989631653, 0.2335328906774521, 0.15377523005008698, 0.9642040133476257, -0.11071053147315979, 0.14760130643844604, 0.8624926805496216, -0.6099219918251038, 0.7463683485984802, 0.3412306308746338, -0.05342969670891762, 0.771100640296936, 0.3713010251522064, 0.14930354058742523, 0.42060452699661255, 0.30488064885139465, -0.2385229468345642, -0.5735860466957092, -0.16115424036979675, -0.11933566629886627, 0.171563521027565, 0.11961933225393295, -0.08448322862386703, -0.41556626558303833, -0.19953468441963196, -0.2844648063182831, 0.032845862209796906, -0.4347621202468872, 0.5875707268714905, -0.03341805562376976, -0.7242640852928162, 0.13952070474624634, -0.070517897605896, 0.23719346523284912, -0.6485540866851807, -0.2802155017852783, -0.11338689923286438, 0.37940773367881775, -0.14273053407669067, -0.7935612797737122, 0.4117966294288635, -0.22973783314228058, -0.4129263162612915, -0.07120061665773392, 0.8032416701316833, -0.30842363834381104, -0.721600353717804, 0.38475877046585083, 0.4111786186695099, 0.03386181220412254, 0.004739235620945692, -0.6141322255134583, -0.040683384984731674, -0.33084413409233093, -0.4166370630264282, -0.09540443867444992, 0.4482079744338989, -0.15976689755916595, 0.7440775632858276, 0.4553516209125519, -0.11836777627468109, -0.05049703270196915, -0.013359246775507927, 0.7510024309158325, -0.6444746851921082, -0.6378207802772522, -0.895275890827179, 0.4382091164588928, -0.06621775031089783, -0.2091187834739685, 0.7525462508201599, 0.7533795833587646, 0.6235190629959106, -0.03531184792518616, 0.7106612920761108, 0.16240528225898743, 0.5790970921516418, -0.5090393424034119, 0.4526742994785309, -0.521716296672821, -0.03296341001987457, -0.22361351549625397, -1.137219786643982, -0.01402245182543993, 0.5472397208213806, -0.3001307249069214, 0.15761463344097137, 1.0011228322982788, 0.6550832390785217, -0.4807197153568268, 0.15587913990020752, 0.0868687778711319, 0.26125168800354004, 0.35756126046180725, 1.1586700677871704, 0.9292355179786682, -0.4019106328487396, 0.4836443364620209, -0.07928460091352463, -0.25214001536369324, 0.04073817655444145, -0.5787400007247925, -0.8407986164093018, -0.2898632287979126, -0.2418646514415741, -0.41586223244667053, 0.339849054813385, 0.7062375545501709, 0.7434123158454895, -0.5970088839530945, -0.280499666929245, -0.7041587233543396, 0.192000612616539, -0.2863096594810486, -0.25448668003082275, 0.15396186709403992, 0.07658836245536804, -0.30444756150245667, 0.45523935556411743, 0.317500501871109, -0.25082242488861084, -0.0974687933921814, -0.10466832667589188, -0.26093918085098267, 0.35548022389411926, 0.504849910736084, 0.09467910975217819, -0.637424111366272, -0.08327054977416992, 0.21608087420463562, 0.14992593228816986, -0.014347098767757416, 0.6664345860481262, -0.8619896769523621, 0.19456425309181213, 0.713245153427124, 0.8774698972702026, 0.39849960803985596, 0.1616523116827011, 0.5702990293502808, -0.08347047120332718, -0.07646065950393677, 0.5428712964057922, 0.4134035110473633, 0.0668427124619484, -0.42645418643951416, 0.38981691002845764, 0.43022018671035767, -0.4904056787490845, -0.4587932825088501, 0.6857811808586121, -0.9179484248161316, -0.611757755279541, 1.143540382385254, 0.1484624296426773, -0.3407187759876251, 0.0674879401922226, -0.13326309621334076, 0.22159092128276825, -0.28664031624794006, 0.2880479395389557, 0.5303060412406921, -0.6368630528450012, -0.23515290021896362, -0.414654403924942, 0.28212645649909973, 0.5728396773338318, -1.0564215183258057, 0.07121779769659042, 0.47740840911865234, 0.39744964241981506, 0.4112367331981659, 0.6520652770996094, 0.09752052277326584, 0.4833287000656128, -0.04097915440797806, -0.26311537623405457, 0.042012304067611694, -0.5451010465621948, -0.2519899904727936, 0.11287501454353333, -0.26506972312927246, -0.13605166971683502 ]
http://arxiv.org/abs/2405.19094v1
http://arxiv.org/pdf/2405.19094v1
Faithful Chart Summarization with ChaTS-Pi
2024-05-29T13:55:06
2024-05-29T13:55:06
Syrine Krichene, Francesco Piccinno, Fangyu Liu, Julian Martin Eisenschlos
cs.CL
cs.CL, cs.AI
Chart-to-summary generation can help explore data, communicate insights, and help the visually impaired people. Multi-modal generative models have been used to produce fluent summaries, but they can suffer from factual and perceptual errors. In this work we present CHATS-CRITIC, a reference-free chart summarization metric for scoring faithfulness. CHATS-CRITIC is composed of an image-to-text model to recover the table from a chart, and a tabular entailment model applied to score the summary sentence by sentence. We find that CHATS-CRITIC evaluates the summary quality according to human ratings better than reference-based metrics, either learned or n-gram based, and can be further used to fix candidate summaries by removing not supported sentences. We then introduce CHATS-PI, a chart-to-summary pipeline that leverages CHATS-CRITIC during inference to fix and rank sampled candidates from any chart-summarization model. We evaluate CHATS-PI and CHATS-CRITIC using human raters, establishing state-of-the-art results on two popular chart-to-summary datasets.
[ -0.32135409116744995, -0.4925420880317688, 0.3373447358608246, 0.39247795939445496, -0.546762228012085, 0.1744900941848755, -0.18564870953559875, -0.44079381227493286, 0.6113271117210388, 0.4155411124229431, -0.20102287828922272, -0.5209871530532837, -0.5798524022102356, 0.06509725749492645, -0.6286329627037048, 1.3442836999893188, 0.09787417203187943, 0.19223591685295105, -0.3027785122394562, -0.1583768129348755, -0.49232974648475647, -0.2420778125524521, -0.33016765117645264, 0.1574932336807251, 0.6327974796295166, 0.8727492690086365, 0.8454306721687317, 0.30178311467170715, 0.9699119925498962, 0.23862038552761078, 0.262619286775589, 0.5303800106048584, -0.9217211008071899, 0.5318682193756104, -0.023707477375864983, -0.41927680373191833, -0.7929027080535889, 0.08798609673976898, 0.594645619392395, 0.6876440048217773, 0.1246100589632988, 0.09394247829914093, 0.2681775391101837, 1.0023294687271118, -0.5995808243751526, 0.734200656414032, -0.4759756624698639, -0.10876121371984482, -0.07251682132482529, -0.4064486026763916, -0.7041526436805725, -0.585112988948822, -0.01982172764837742, -0.8462231755256653, 0.481685996055603, 0.27953386306762695, 1.1020481586456299, 0.3598537743091583, -0.5089558362960815, -0.1666521430015564, -0.7629327774047852, 0.36200568079948425, -0.43901708722114563, 0.4180150330066681, 0.5869153141975403, 0.6021263003349304, 0.06865743547677994, -0.8910748362541199, -0.3394720256328583, -0.38903456926345825, -0.30688345432281494, 0.80443274974823, -0.26673397421836853, -0.0877743810415268, -0.005009972956031561, 0.5666922926902771, -0.39334389567375183, -0.3477362096309662, -0.6993224620819092, -0.30052635073661804, 0.9612572193145752, 0.3286058008670807, 0.012557530775666237, -0.3377677798271179, -0.2872057557106018, -0.37809211015701294, -0.5065024495124817, -0.09913571178913116, 0.3449200689792633, 0.18380185961723328, -0.3109714984893799, 0.838375449180603, -0.3844134211540222, 0.19919073581695557, -0.020584382116794586, 0.11901929974555969, 0.22530534863471985, -0.498174250125885, -0.0032185998279601336, -0.3306545317173004, 1.1290898323059082, 1.040558099746704, 0.740124523639679, -0.3208576738834381, -0.2148844450712204, 0.28032445907592773, 0.37174826860427856, -0.44012248516082764, -0.7371403574943542, -0.007015025708824396, -0.17952357232570648, -0.344929575920105, 0.23028713464736938, -0.7765918374061584, -0.50138920545578, -0.21438010036945343, 0.029841497540473938, -0.7548211216926575, -0.15768085420131683, -0.3453722894191742, -0.5551440715789795, -0.11535743623971939, 0.5906082391738892, -0.4782157838344574, 0.13385999202728271, 0.5090617537498474, 0.9518004059791565, -0.12659774720668793, -0.4007239043712616, -0.7413280606269836, 0.2863352298736572, -0.8615962266921997, 1.1840190887451172, -0.27430346608161926, -0.5964323282241821, -0.3734091818332672, -0.179703488945961, -0.10808469355106354, -0.30476051568984985, 0.6273272633552551, -0.27573123574256897, 0.11706963926553726, -0.191431924700737, -0.7593371272087097, -0.11131159961223602, 0.3408380150794983, -0.696418285369873, 0.7143330574035645, 0.10191749036312103, -0.8144022822380066, 0.4403846859931946, -0.5350580811500549, -0.24032030999660492, 0.19586476683616638, -0.2966445982456207, -0.6411810517311096, 0.2834932506084442, 0.2952244281768799, 0.4783460795879364, 0.15181662142276764, 0.05994240567088127, -0.4591679573059082, -0.4717268943786621, 0.3751637637615204, -0.49748557806015015, 0.25589489936828613, 0.26184478402137756, 0.12880460917949677, 0.4104873538017273, -0.3048993647098541, 0.023304663598537445, 0.08101596683263779, 0.10276465862989426, 0.06890407204627991, 0.26899802684783936, 0.3187604546546936, -0.30601146817207336, -0.12042097747325897, -0.18826420605182648, -0.05947723612189293, -0.2506750226020813, 0.24466200172901154, 0.462075412273407, 0.31610438227653503, 0.12077739089727402, -0.6242671012878418, 0.39804351329803467, 0.0006626212853007019, 0.16432148218154907, -0.5989053845405579, -0.5699052810668945, -0.912180483341217, -0.5142999887466431, 0.34549254179000854, 0.5460296273231506, -0.8543897271156311, 0.4312184154987335, -0.9073252081871033, -0.8534895777702332, -0.18510648608207703, -0.06925814598798752, 0.4140702188014984, 0.4631313979625702, 0.1951780617237091, -0.8460115194320679, -0.12434788048267365, -0.8025147318840027, -0.2778083384037018, -0.46571311354637146, -0.31729844212532043, 0.24385719001293182, 0.2136477530002594, 0.07789560407400131, 0.9437017440795898, -0.6181157231330872, -0.6427595615386963, -0.3388780355453491, 0.15430206060409546, -0.31558874249458313, 0.36968377232551575, 0.7238711714744568, -0.5011358857154846, -0.7363677620887756, -0.23606815934181213, -0.7014626264572144, 0.12853777408599854, -0.2013012170791626, -0.24352845549583435, -0.00590533996000886, 0.591460108757019, -0.3001127541065216, 0.6894454956054688, 0.4035324454307556, -0.7301658987998962, 0.7368854880332947, -0.3023514151573181, 0.44054335355758667, -0.9204413890838623, 0.1284877508878708, 0.11111146956682205, -0.7581573128700256, -0.2420465350151062, 0.1825137734413147, 0.0618993304669857, -0.23077838122844696, 0.00996125303208828, 0.07161006331443787, -0.2406584769487381, 0.008182503283023834, -0.14178389310836792, 0.4599904417991638, 0.22016891837120056, 0.5576878190040588, -0.09404250234365463, 0.6411134600639343, 0.4245944023132324, -0.32860031723976135, 0.6448243856430054, 0.43313896656036377, -0.3213427662849426, 0.7357859015464783, -0.6736252903938293, 0.09191108494997025, -0.25867921113967896, 0.3225352466106415, -1.4289149045944214, -0.3569425046443939, 0.5071308016777039, -0.8298841118812561, 0.30181095004081726, -0.0711539164185524, -0.4395557641983032, -0.026400603353977203, -0.480042964220047, 0.11356323957443237, 0.10944440215826035, -0.06620191037654877, 0.4427066445350647, 0.2306929975748062, -0.20228976011276245, -0.17182990908622742, -0.7236653566360474, 0.34776073694229126, 0.07578238099813461, -0.497063010931015, 0.1139250099658966, -0.12023860961198807, -0.06785951554775238, 0.011105796322226524, -0.04583268612623215, -0.04950987920165062, -0.13088113069534302, 0.32499316334724426, 0.431032657623291, -0.12030728906393051, 0.06847364455461502, -0.20088240504264832, -0.4571354389190674, -0.013868742622435093, 0.36685171723365784, 0.311269611120224, -0.41199368238449097, -0.7277885675430298, -0.626899003982544, 0.32469016313552856, 0.9947925806045532, -0.25885820388793945, 0.23382814228534698, 0.22533303499221802, 0.012730739079415798, 0.41556447744369507, -0.5305411219596863, -0.05873074382543564, -0.40387600660324097, 0.49339208006858826, -0.16182251274585724, -0.3475317358970642, 0.5010958909988403, 0.16518498957157135, 0.3184390664100647, 0.5632339119911194, 0.2145054191350937, -0.6272768974304199, 0.8776428699493408, 0.39918962121009827, -0.07356970757246017, 0.6292592883110046, -0.30776840448379517, 0.14167450368404388, -0.4803408086299896, -0.16041724383831024, -0.3788769841194153, -0.45999476313591003, -0.33811309933662415, -0.3032101094722748, 0.6698125004768372, 0.20165559649467468, -0.015724679455161095, 0.061158012598752975, -0.30441248416900635, 0.5481105446815491, 0.39093852043151855, 0.45816323161125183, 0.6533222794532776, -0.004488623235374689, 0.10691577941179276, -0.25606831908226013, -0.4439147412776947, -0.645963191986084, 1.1800565719604492, 0.2898087203502655, 0.6638266444206238, 0.1646682471036911, 0.2673651874065399, 0.469446063041687, 0.7006186842918396, -0.8916160464286804, 0.344960480928421, -0.12542939186096191, -0.4175414741039276, -0.5088454484939575, -0.653488039970398, -0.6971697807312012, 0.08376754820346832, -0.42002418637275696, -0.4670909643173218, 0.006157295312732458, 0.48651328682899475, -0.13320599496364594, 0.08800867199897766, -1.1439895629882812, 0.9030729532241821, -0.2866603136062622, -0.08004441857337952, -0.4472498893737793, -0.48886385560035706, 0.46800196170806885, 0.16779053211212158, 0.12708717584609985, -0.3453395664691925, 0.00904135126620531, 0.4942989647388458, -0.4736694097518921, 0.8774182796478271, 0.14737312495708466, 0.27076593041419983, 0.24887880682945251, 0.46078401803970337, 0.39404425024986267, 0.31581565737724304, 0.2103627473115921, 0.06385038048028946, 0.09831395000219345, -0.568119466304779, -0.849323570728302, 0.2990413010120392, -0.7199470400810242, -0.27620747685432434, -0.35556989908218384, -0.5029938817024231, -0.43117162585258484, -0.04691820219159126, 0.36533865332603455, 0.5118539929389954, -0.25533223152160645, 0.3342820405960083, 0.04817347228527069, 0.08144645392894745, 0.14231902360916138, 0.2577613592147827, -0.3168734610080719, -0.7547318339347839, 1.0551178455352783, -0.016547255218029022, 0.3868325650691986, 0.11149834841489792, 0.010114501230418682, -0.12085669487714767, -0.3231280446052551, -0.6124573349952698, 0.26034367084503174, -0.6456578969955444, -0.3082832098007202, -0.2065039724111557, -0.19587013125419617, -0.22512151300907135, -0.0879681333899498, -0.5498269200325012, -0.5949432253837585, -0.08028066158294678, -0.19056323170661926, 0.5608626008033752, 0.5796014070510864, 0.12658515572547913, 0.25138354301452637, -0.7810667157173157, 0.40209639072418213, 0.14088371396064758, 0.707443356513977, -0.022498471662402153, -0.37950772047042847, -0.16164149343967438, 0.16122809052467346, -0.7766324877738953, -1.0987155437469482, 0.22518618404865265, 0.35151106119155884, 0.3115183413028717, 0.845487117767334, 0.43203628063201904, 0.8322360515594482, -0.13087479770183563, 0.7154872417449951, 0.6346143484115601, -0.8290356993675232, 0.437812864780426, -0.37810200452804565, 0.15095001459121704, 0.6129843592643738, 0.07051382213830948, -0.8732497096061707, -1.2048022747039795, -0.43937447667121887, -0.8206266760826111, 0.4853202700614929, 0.4364038109779358, 0.19327634572982788, 0.1037520244717598, 0.13518346846103668, 0.06418989598751068, -0.0020279462914913893, -0.688750147819519, -0.31094637513160706, -0.9502691030502319, -0.3387604355812073, -0.4562951326370239, -0.17180073261260986, -0.10035300999879837, -0.3054865300655365, 0.6183428168296814, -0.31709352135658264, -0.022930435836315155, 0.37800073623657227, -0.04838230460882187, -0.10040852427482605, 0.12452740222215652, 0.46487337350845337, 0.8289262056350708, -0.1236235722899437, 0.033745601773262024, 0.11784601211547852, -0.5563924312591553, -0.3850433826446533, -0.155670166015625, -0.17770810425281525, 0.20475620031356812, 0.6976736783981323, 0.7665045261383057, 0.2962355613708496, -0.847488284111023, 0.8055920600891113, -0.30312803387641907, -0.09433724731206894, -0.30367180705070496, 0.08546292781829834, 0.05153529718518257, 0.06444712728261948, 0.39368540048599243, 0.5574449896812439, 0.04905819520354271, -0.5138053894042969, 0.2533096373081207, 0.18778197467327118, -0.77116459608078, -0.28848525881767273, 0.7900086641311646, 0.4358615279197693, -0.17163138091564178, 0.8605850338935852, -0.16204962134361267, -0.3363264799118042, 0.41765671968460083, -0.01595110446214676, 0.8326635956764221, 0.1823665052652359, 0.37532585859298706, 0.4287920296192169, 0.31097614765167236, 0.24788859486579895, 0.23337313532829285, -0.19554482400417328, -0.6608505845069885, -0.49167996644973755, 0.2012699544429779, -0.8295602202415466, -0.38579684495925903, -0.7095937728881836, 0.3176986873149872, -0.21226175129413605, -0.30820953845977783, -0.07386158406734467, -0.29331547021865845, -0.41353192925453186, 0.015948927029967308, -0.09242729097604752, 0.7579749226570129, -0.6890290975570679, 0.315510630607605, 0.3579566478729248, -0.8494409322738647, -0.7538710832595825, 0.08685658127069473, -0.1427105814218521, -0.39399322867393494, 0.09583689272403717, -0.09955034404993057, 0.011065144091844559, -0.2924412488937378, -0.5472477078437805, -0.5640517473220825, 0.9955084919929504, 0.6601283550262451, -0.6006688475608826, 0.011185803450644016, 0.019334401935338974, 0.6392852067947388, 0.057822633534669876, 0.7264617681503296, 0.16982240974903107, 0.3253079950809479, 0.10996183007955551, -1.0952978134155273, -0.3055744767189026, -0.44978007674217224, -0.35248950123786926, -0.0960603579878807, -0.8543223142623901, 0.3710232973098755, -0.32926419377326965, -0.36745184659957886, 0.10248246043920517, 0.727922797203064, 0.2744638919830322, 0.4990236759185791, 0.6003040671348572, 0.30752289295196533, 0.7128486037254333, -0.3631531000137329, 1.0232855081558228, -0.538227915763855, 0.5225666165351868, 1.1040433645248413, 0.05422802269458771, 0.9275786280632019, 0.2658712565898895, -0.08184758573770523, 0.5591040849685669, 0.48781734704971313, -0.03813151642680168, 0.3986264765262604, -0.13361020386219025, 0.22411414980888367, -0.26854416728019714, 0.09370194375514984, -0.34981343150138855, 0.5317683815956116, 0.2933422923088074, -0.34722229838371277, -0.2717646658420563, -0.4639771580696106, -0.23263771831989288, 0.3336215615272522, -0.1520020216703415, 0.8364039659500122, 0.06347419321537018, -0.6290867924690247, 0.43182218074798584, -0.22142501175403595, 0.3219315707683563, -0.5977974534034729, 0.1440577208995819, -0.4420833885669708, 0.07673732191324234, -0.18540377914905548, -0.7739486694335938, 0.6140521764755249, 0.07807248085737228, -0.19470538198947906, -0.2571798264980316, 0.1803457885980606, -0.2806690037250519, -0.7471848726272583, -0.037831563502550125, 0.58808833360672, 0.2770742177963257, -0.1958049237728119, -0.24000118672847748, -0.22988800704479218, -0.18089167773723602, 0.00588691420853138, -0.1242416650056839, 0.5197789669036865, -0.06006140261888504, 0.8587964773178101, 0.44359758496284485, 0.05621988698840141, -0.19394566118717194, 0.3194342851638794, 0.7648661732673645, -0.6293147802352905, -0.9502571821212769, -0.5161998271942139, 0.426636666059494, -0.3319355845451355, -0.5258427858352661, 0.7964657545089722, 1.045067548751831, 0.654743492603302, -0.08810389786958694, 0.6445172429084778, 0.3106509745121002, 0.6451157331466675, -0.287104070186615, 1.1267683506011963, -0.44339585304260254, 0.10013093054294586, -0.6374173164367676, -0.737042248249054, -0.3053230047225952, 0.3715454041957855, -0.24147725105285645, -0.24771931767463684, 0.7287762761116028, 0.7822816967964172, -0.05254038795828819, 0.19891490042209625, 0.15808650851249695, 0.022457940503954887, 0.30550193786621094, 0.5454341769218445, 0.8462569117546082, -0.4522167146205902, 1.1573317050933838, -0.18030746281147003, -0.1631992608308792, -0.23949691653251648, -0.6313186287879944, -0.6250377893447876, -0.6479592323303223, -0.6308007836341858, -0.3422222137451172, -0.21719561517238617, 0.5035459399223328, 0.7610183954238892, -0.886925220489502, -0.2616368532180786, -0.02881670370697975, 0.06965377181768417, -0.5130988359451294, -0.2948685586452484, 0.519788384437561, -0.529664933681488, -0.6538429260253906, 0.10676005482673645, 0.2770107090473175, 0.12490665167570114, -0.20937678217887878, -0.2719855308532715, 0.6013020277023315, -0.08943972736597061, 0.3755280375480652, 0.06601843982934952, -0.6176174879074097, -0.3577736020088196, -0.09267455339431763, -0.209589421749115, 0.21372106671333313, 0.7960138916969299, -0.6392181515693665, 0.7537369132041931, 0.46869853138923645, 0.18448153138160706, 0.7458853125572205, 0.14526143670082092, 0.7069574594497681, -0.7887735366821289, -0.07474423199892044, 0.28639334440231323, 0.5521183609962463, 0.47561660408973694, -0.1356879025697708, 0.6117980480194092, 0.5153704285621643, -0.20765343308448792, -0.772310197353363, 0.15238721668720245, -1.1677135229110718, -0.009231884963810444, 0.7667700052261353, -0.20363204181194305, 0.23151232302188873, -0.09510026127099991, -0.39812514185905457, 0.3474973142147064, -0.49288514256477356, 1.2955341339111328, 0.680342435836792, -0.2683018445968628, -0.17905749380588531, -0.21350719034671783, 0.25824829936027527, 0.3997238576412201, -0.7248033881187439, 0.2256820946931839, 0.8217236399650574, 0.18760862946510315, 0.3247966170310974, 0.6445821523666382, -0.1569879800081253, 0.5964797735214233, 0.2616252601146698, -0.1828661561012268, -0.1966923475265503, -0.18674086034297943, 0.2242748737335205, 0.30675235390663147, 0.13332603871822357, -0.333441823720932 ]
http://arxiv.org/abs/2405.19093v1
http://arxiv.org/pdf/2405.19093v1
Multi-stage Retrieve and Re-rank Model for Automatic Medical Coding Recommendation
2024-05-29T13:54:30
2024-05-29T13:54:30
Xindi Wang, Robert E. Mercer, Frank Rudzicz
cs.CL
cs.CL, cs.IR
The International Classification of Diseases (ICD) serves as a definitive medical classification system encompassing a wide range of diseases and conditions. The primary objective of ICD indexing is to allocate a subset of ICD codes to a medical record, which facilitates standardized documentation and management of various health conditions. Most existing approaches have suffered from selecting the proper label subsets from an extremely large ICD collection with a heavy long-tailed label distribution. In this paper, we leverage a multi-stage ``retrieve and re-rank'' framework as a novel solution to ICD indexing, via a hybrid discrete retrieval method, and re-rank retrieved candidates with contrastive learning that allows the model to make more accurate predictions from a simplified label space. The retrieval model is a hybrid of auxiliary knowledge of the electronic health records (EHR) and a discrete retrieval method (BM25), which efficiently collects high-quality candidates. In the last stage, we propose a label co-occurrence guided contrastive re-ranking model, which re-ranks the candidate labels by pulling together the clinical notes with positive ICD codes. Experimental results show the proposed method achieves state-of-the-art performance on a number of measures on the MIMIC-III benchmark.
[ -0.29507485032081604, -0.24187351763248444, 0.5927690267562866, 0.05929989740252495, -0.5802363157272339, 0.24347896873950958, 0.19288824498653412, -0.6250593066215515, 0.4307563304901123, 0.24734646081924438, -0.2581636905670166, -1.003424048423767, -0.5931503772735596, 0.06292496621608734, -0.3605051338672638, 1.420030117034912, -0.030146999284625053, 0.052523061633110046, -0.15123002231121063, -0.17261925339698792, -0.2508762776851654, -0.7207022905349731, -0.5284334421157837, -0.4998711347579956, 0.7191886901855469, 0.5006267428398132, 0.36297407746315, 0.6006667613983154, 0.7898377180099487, 0.1537257432937622, 0.10096001625061035, 0.21320869028568268, -0.039739806205034256, -0.057076845318078995, -0.08749416470527649, -0.33167558908462524, -0.6652976870536804, -0.011969401501119137, 0.43079453706741333, 0.5137352347373962, -0.344439297914505, 0.0016378453001379967, -0.16261692345142365, 0.37863627076148987, -0.4005711078643799, 0.05544168874621391, -0.23952731490135193, -0.02868146076798439, -0.10679358243942261, -0.4784896969795227, -0.5199507474899292, -0.41096165776252747, 0.0942881777882576, -0.5335443615913391, 0.21823959052562714, 0.1670542061328888, 0.7056934237480164, -0.033472348004579544, -0.6397271156311035, -0.1723005622625351, -0.6272369623184204, 0.5239900946617126, -0.2824375629425049, 0.47584033012390137, 0.574664831161499, 0.38953614234924316, 0.20898036658763885, -0.8389375805854797, -0.09348688274621964, -0.29378044605255127, -0.03319332003593445, 0.12171754986047745, 0.13226723670959473, -0.08772220462560654, 0.05793096497654915, 0.7320029735565186, -0.5564244389533997, 0.10029921680688858, -0.284559041261673, -0.1299290508031845, 0.5850440263748169, 0.07321929186582565, 0.508994460105896, -0.08313393592834473, -0.4051724076271057, -0.10708954930305481, -0.534084677696228, -0.24685989320278168, -0.15496335923671722, 0.05915139615535736, -0.24767586588859558, 0.42286771535873413, -0.27094539999961853, 0.47724616527557373, 0.3157361149787903, -0.33784186840057373, 0.6165611147880554, -0.5076127052307129, 0.15956151485443115, 0.054246269166469574, 0.47912338376045227, 0.3750903904438019, -0.18414296209812164, -0.1797948032617569, -0.35269445180892944, 0.07752714306116104, 0.5316389799118042, -0.5840457677841187, -0.5623528361320496, 0.17007100582122803, -0.850100576877594, -0.2950548529624939, -0.09293407201766968, -0.8851761817932129, -0.2631361782550812, -0.3157249093055725, 0.46604812145233154, -0.4436677098274231, -0.02228270284831524, 0.09769324213266373, 0.039244409650564194, -0.11980722844600677, 0.3601101040840149, -0.8731393814086914, 0.41489657759666443, 0.6621977090835571, 0.6397104263305664, -0.45184338092803955, 0.007411953993141651, -0.5694832801818848, 0.12149210274219513, -0.2640070617198944, 0.9683396816253662, -0.802126407623291, -0.6724637746810913, -0.20774686336517334, -0.08159716427326202, 0.03399955481290817, -0.9600340723991394, 0.9237930774688721, -0.445117712020874, -0.2114609181880951, 0.02989429607987404, -0.26654255390167236, -0.06221702694892883, 0.36553680896759033, -0.7955843806266785, 0.7295321822166443, 0.013561226427555084, -0.747209906578064, 0.5966377258300781, -0.24388021230697632, -0.5033227205276489, 0.2200673222541809, -0.29916301369667053, -0.7448477149009705, -0.07418617606163025, 0.40065446496009827, 0.13222067058086395, -0.6413984298706055, 0.5255208015441895, -0.14403434097766876, -0.41552242636680603, -0.35740047693252563, -0.16970102488994598, 0.2536448538303375, 0.3121963441371918, -0.053560998290777206, 0.28290224075317383, -1.0625375509262085, -0.022083088755607605, -0.19640935957431793, -0.7458323240280151, -0.6261147260665894, 0.007769372314214706, -0.0234344694763422, 0.4980819821357727, 0.010949544608592987, -0.5828841924667358, 0.25112423300743103, -0.047287717461586, 0.07026269286870956, 0.4253508150577545, 0.3782915472984314, 0.10895988345146179, -0.7141980528831482, 0.4916321933269501, 0.32903778553009033, 0.251484751701355, -0.21583621203899384, -0.5803344249725342, -0.6395496129989624, -0.30797362327575684, 0.47035878896713257, 0.48725953698158264, -0.8143306374549866, 0.7174694538116455, -0.33604830503463745, -0.5398616194725037, -0.7448693513870239, -0.1720096319913864, 0.5850033760070801, 0.49100983142852783, 0.6588514447212219, -0.46762192249298096, -0.32360732555389404, -1.045752763748169, 0.2060817927122116, -0.022845527157187462, 0.027164239436388016, 0.5409825444221497, 0.4972602128982544, -0.7298780679702759, 0.4064274728298187, -0.6312171220779419, -0.3613947927951813, -0.13880403339862823, 0.37613746523857117, 0.31035369634628296, 0.7304051518440247, 0.07382214069366455, -0.8656712770462036, -0.45140591263771057, 0.24934838712215424, -0.45877605676651, -0.0907975286245346, 0.06809325516223907, -0.16679149866104126, -0.2426413893699646, 0.33903244137763977, -0.11651113629341125, 0.4826242923736572, 0.2947568893432617, 0.009517045691609383, 0.4062793254852295, -0.8631066679954529, 0.38150280714035034, -0.9906390905380249, 0.3114096224308014, 0.3576977252960205, -0.11695686727762222, -0.24873819947242737, 0.0455147959291935, 0.31034669280052185, -0.27846914529800415, 0.09773904830217361, 0.349257230758667, -0.29580065608024597, -0.0068153743632137775, -0.014638848602771759, -0.08207274228334427, 0.050999533385038376, 0.32172253727912903, 0.14251914620399475, 0.3195391893386841, 0.30749085545539856, -0.5549265742301941, 0.20976470410823822, 0.06363750994205475, -0.4093175232410431, 0.8516103625297546, -0.43874770402908325, 0.045353326946496964, -0.154863178730011, 0.5269952416419983, -0.9120239615440369, 0.2622785270214081, 0.14059500396251678, -0.09592272341251373, 0.4606926739215851, -0.2861383557319641, -0.47917965054512024, -0.6006498336791992, -0.22227180004119873, 0.9670395851135254, 0.3475038707256317, -0.7180492281913757, 0.45409882068634033, 0.5379706621170044, -0.3362167775630951, -0.18506328761577606, -0.25019335746765137, -0.10222789645195007, -0.017625315114855766, -0.31106746196746826, 0.8916187286376953, -0.34250926971435547, 0.12790565192699432, -0.18787997961044312, -0.1822051703929901, -0.03869909420609474, -0.14474566280841827, 0.3099476397037506, 0.23276619613170624, -0.03504229336977005, 0.10426349937915802, 0.058447521179914474, -0.5780920386314392, -0.2148633897304535, -0.28064993023872375, 0.504044234752655, 0.28645458817481995, -0.6015785932540894, -0.5067999362945557, 0.7313992977142334, 0.6612183451652527, -0.4740208387374878, 0.3107471168041229, 0.3837037682533264, -0.7446057796478271, -0.13776224851608276, -0.5991273522377014, -0.08746511489152908, -0.37336263060569763, 0.3319772779941559, -0.3610442578792572, -0.30392950773239136, 0.5003407001495361, -0.251790851354599, -0.12400776147842407, 0.5921176075935364, 0.3333132266998291, 0.07657124102115631, 1.3318678140640259, 0.5933142900466919, -0.2088208943605423, 0.17046549916267395, -0.258081316947937, 0.19820129871368408, -1.1473890542984009, -0.8781895637512207, -0.8997893333435059, -0.26423966884613037, -0.6946280002593994, -0.40687111020088196, 0.7775985598564148, -0.06714804470539093, -0.0013761100126430392, -0.15409329533576965, -0.6297577023506165, 0.0627952590584755, 0.6256983876228333, 0.5843342542648315, 0.5069933533668518, 0.07314738631248474, -0.6807597279548645, -0.0867120698094368, -0.5412444472312927, -0.03433307632803917, 1.1018799543380737, 0.16249984502792358, 0.9247925281524658, 0.0025118649937212467, 1.1093177795410156, 0.4077506959438324, 0.5501043796539307, -0.48719432950019836, 0.17559261620044708, -0.5269031524658203, -0.288907527923584, 0.28130030632019043, -0.18656200170516968, -1.0391302108764648, 0.23673832416534424, -0.34294959902763367, -0.6511461138725281, 0.6648334264755249, 0.0842825323343277, -0.5681785941123962, 0.0968625545501709, -0.4558846950531006, 0.6912980675697327, -0.33945897221565247, -0.12637865543365479, -0.5130816698074341, -0.5648351907730103, 0.33679184317588806, -0.35545459389686584, 0.340394526720047, 0.24111375212669373, -0.025472521781921387, 0.7172019481658936, -0.5237852931022644, 0.48926982283592224, 0.16699928045272827, -0.16230672597885132, -0.24002201855182648, -0.13686060905456543, 0.43049919605255127, 0.16353167593479156, -0.17601950466632843, -0.12229329347610474, 0.05675357207655907, -0.13517844676971436, -0.41709837317466736, 0.9446414709091187, -0.7227166295051575, -0.3162822127342224, -0.567009449005127, -0.17538005113601685, 0.044961389154195786, 0.3208381235599518, 0.2703973650932312, 0.993981659412384, 0.12672971189022064, 0.11645960807800293, 0.4806772768497467, -0.5251013040542603, 0.0286350566893816, 0.5589921474456787, -0.14261265099048615, -0.6377142071723938, 1.3046475648880005, 0.1448356807231903, 0.06601231545209885, 0.60960853099823, -0.04321000725030899, -0.2759189307689667, -0.7188382744789124, -0.167729914188385, 0.33832353353500366, -0.6479182243347168, -0.22444802522659302, -0.7451947927474976, -0.25964245200157166, -0.24459218978881836, -0.13870222866535187, -0.05976036190986633, 0.03764396533370018, -0.180484339594841, 0.05802151560783386, -0.018677102401852608, 0.8808302283287048, -0.166746124625206, -0.21391719579696655, -0.8085756897926331, 0.8660261631011963, 0.07613669335842133, 0.9425605535507202, 0.15904168784618378, -0.23478275537490845, -0.3898904621601105, -0.23731200397014618, -0.3001736104488373, -0.7239128947257996, 0.35848140716552734, -0.05229979753494263, 0.9348855018615723, 0.3239254057407379, 0.281571626663208, 0.6321123838424683, -0.6138776540756226, 0.34585297107696533, 0.19717347621917725, -0.3710550367832184, 0.6536615490913391, -0.16296187043190002, 0.21082746982574463, 0.49202269315719604, 0.5706530213356018, -0.7069318890571594, 0.0061284988187253475, -0.6794549226760864, -1.1516684293746948, 0.6794174313545227, -0.2411670982837677, -0.5363142490386963, -0.37269678711891174, 0.5805522799491882, 0.13131628930568695, 0.09107270836830139, -0.4073934853076935, -0.4476761519908905, 0.24960027635097504, -0.4059131145477295, -0.2473795861005783, -0.4573526680469513, -0.15830744802951813, -0.25646471977233887, 0.5733565092086792, 0.06271792203187943, 0.39054781198501587, 0.4470718204975128, -0.038991935551166534, -0.251791387796402, 0.14809580147266388, 0.37929633259773254, 0.6428983211517334, -0.3412904739379883, 0.12282468378543854, -0.3441392779350281, -0.5846884250640869, 0.18384656310081482, 0.4334550201892853, -0.14694273471832275, -0.15571343898773193, -0.005076048895716667, 0.3548400104045868, 0.5156980156898499, -0.4341180622577667, 0.34079909324645996, -0.04070226848125458, -0.011554941534996033, -0.06284603476524353, -0.1378737837076187, -0.12708602845668793, 0.11913245171308517, 0.5580730438232422, 0.18965665996074677, 0.40500131249427795, -0.5702773332595825, 0.8503992557525635, 0.329097181558609, -0.3610031008720398, -0.1032206118106842, 0.6351521015167236, 0.5173085331916809, -0.5956292152404785, 0.7423725724220276, -0.005831726361066103, -0.2297825962305069, 0.7061804533004761, 0.7970918416976929, 0.5108051300048828, -0.2273096740245819, 0.319918692111969, 0.4163072109222412, -0.005560136865824461, -0.20866891741752625, 0.3844793140888214, -0.043481431901454926, -0.38734734058380127, -0.3119608461856842, -0.36860769987106323, -0.23607267439365387, 0.10952789336442947, -0.930295467376709, 0.4123859703540802, -0.5808086395263672, -0.15152394771575928, 0.008050313219428062, 0.14061051607131958, -0.4294092059135437, 0.5367201566696167, 0.28495004773139954, 0.8341957330703735, -0.5341698527336121, 0.8465712666511536, 0.429002583026886, -0.4123544991016388, -0.6067290306091309, 0.029727598652243614, -0.02681100368499756, -0.45463892817497253, 0.3900703489780426, 0.1481742560863495, 0.028871439397335052, 0.22386682033538818, -0.0005419282824732363, -0.9557583928108215, 0.9961705207824707, -0.06429505348205566, -0.5944314002990723, -0.0864114910364151, -0.4625805616378784, 0.5965084433555603, -0.45753246545791626, 0.37109673023223877, 0.46907687187194824, 0.06125882267951965, 0.19302606582641602, -1.0925813913345337, 0.08951514959335327, -0.647570788860321, -0.18179640173912048, 0.3402571678161621, -0.6367520689964294, 0.7326126098632812, -0.2944575846195221, 0.016637317836284637, 0.22449526190757751, 0.13106931746006012, 0.6428579092025757, 0.46826767921447754, 0.22577910125255585, 0.694979190826416, 0.7011266946792603, -0.005677293986082077, 1.3573825359344482, -0.4667701721191406, 0.2387155145406723, 0.8674798011779785, -0.29625579714775085, 0.8183073401451111, -0.03791778162121773, -0.1065782755613327, 0.7873757481575012, 0.8599750399589539, -0.012163147330284119, 0.7918666005134583, 0.2525659501552582, -0.22132818400859833, -0.2827446162700653, -0.16971661150455475, -0.6867126822471619, -0.1269257515668869, 0.3822905421257019, -0.49316591024398804, -0.28642725944519043, -0.04124860838055611, -0.4391808807849884, -0.09550313651561737, -0.40898841619491577, 0.8793095946311951, 0.06412315368652344, -0.8072956204414368, 0.5224277377128601, 0.27983471751213074, 0.6206759214401245, -0.3973877727985382, -0.6204897165298462, -0.19241183996200562, 0.2454344481229782, -0.1738198697566986, -0.2262493371963501, -0.2084074169397354, -0.40569233894348145, -0.4279063045978546, -0.08770553767681122, 0.4946412444114685, -0.5631727576255798, -0.5916094779968262, 0.35954201221466064, 0.19556252658367157, 0.08277648687362671, 0.33318933844566345, -0.6463912725448608, 0.040109965950250626, -0.14854520559310913, 0.3754218816757202, 0.6474221348762512, 0.21496163308620453, -0.24356326460838318, 0.8652672171592712, 0.6217186450958252, 0.1431805044412613, -0.30526041984558105, 0.2760014235973358, 0.8411876559257507, -0.6168350577354431, -0.8617422580718994, -0.41004690527915955, 0.34811991453170776, 0.08173312991857529, -0.09551938623189926, 0.1500452309846878, 0.6557760834693909, 0.6394187211990356, 0.23232321441173553, 0.6896557211875916, 0.3367152512073517, 0.7297760844230652, -0.3078371286392212, 0.5255358815193176, -0.6121519804000854, 0.47844719886779785, -0.45823243260383606, -0.5904440879821777, -0.6338256001472473, 0.5988078117370605, -0.3157931864261627, 0.24995464086532593, 0.6877717971801758, 0.4376446604728699, -0.030239494517445564, -0.2523294985294342, 0.08381897956132889, 0.09173718094825745, 0.4672567546367645, 0.6535033583641052, 0.40976014733314514, -0.3211265802383423, 0.489936888217926, -0.3492729663848877, -0.16318461298942566, -0.5321438908576965, -0.5493240356445312, -0.248480886220932, -0.5493607521057129, -0.5815075039863586, -0.3410332500934601, 0.1710459142923355, 0.9127628207206726, 0.9411648511886597, -0.7375351190567017, 0.08792445808649063, 0.35927829146385193, 0.2832907438278198, -0.3279433846473694, -0.10879098623991013, 0.6193174719810486, 0.08764688670635223, -0.5790830254554749, 0.25218865275382996, 0.45667627453804016, 0.01103560347110033, 0.24423186480998993, -0.04667004570364952, -0.42363378405570984, -0.5372783541679382, 0.35346823930740356, 0.18081426620483398, -0.552879810333252, -0.12370781600475311, -0.30859214067459106, -0.27570730447769165, 0.27939218282699585, 0.9326861500740051, -0.9997490048408508, 0.5199666619300842, 0.30102211236953735, 0.4731238782405853, 0.5463895797729492, 0.38557153940200806, 0.5527175664901733, -0.3747928738594055, -0.25979968905448914, 0.19900217652320862, 0.25454211235046387, 0.03524807468056679, -0.41260185837745667, 0.20622524619102478, 0.38765695691108704, -0.4489559531211853, -0.7141391038894653, -0.03246171772480011, -0.7670204639434814, -0.06211002543568611, 0.8806487321853638, -0.05383230373263359, 0.2392655611038208, -0.5059206485748291, -0.33030813932418823, 0.18706664443016052, -0.48512402176856995, 0.8825578689575195, 0.20223528146743774, -0.3326205313205719, -0.21335095167160034, -0.18437573313713074, 0.3537726104259491, 0.20319010317325592, -0.7686457633972168, -0.3021395802497864, 0.5848100185394287, 0.4251576364040375, 0.35897091031074524, 0.9685786962509155, -0.41009968519210815, 0.3599155843257904, -0.20800453424453735, 0.05300188064575195, 0.32637953758239746, -0.7195866107940674, -0.41356179118156433, 0.32556483149528503, 0.15278379619121552, -0.2317853569984436 ]
http://arxiv.org/abs/2405.19088v1
http://arxiv.org/pdf/2405.19088v1
Cracking the Code of Juxtaposition: Can AI Models Understand the Humorous Contradictions
2024-05-29T13:51:43
2024-05-29T13:51:43
Zhe Hu, Tuo Liang, Jing Li, Yiren Lu, Yunlai Zhou, Yiran Qiao, Jing Ma, Yu Yin
cs.CL
cs.CL, cs.CV
Recent advancements in large multimodal language models have demonstrated remarkable proficiency across a wide range of tasks. Yet, these models still struggle with understanding the nuances of human humor through juxtaposition, particularly when it involves nonlinear narratives that underpin many jokes and humor cues. This paper investigates this challenge by focusing on comics with contradictory narratives, where each comic consists of two panels that create a humorous contradiction. We introduce the YesBut benchmark, which comprises tasks of varying difficulty aimed at assessing AI's capabilities in recognizing and interpreting these comics, ranging from literal content comprehension to deep narrative reasoning. Through extensive experimentation and analysis of recent commercial or open-sourced large (vision) language models, we assess their capability to comprehend the complex interplay of the narrative humor inherent in these comics. Our results show that even state-of-the-art models still lag behind human performance on this task. Our findings offer insights into the current limitations and potential improvements for AI in understanding human creative expressions.
[ -0.2918170094490051, -0.5452760457992554, 0.6896438002586365, 0.3326438069343567, -0.20019102096557617, 0.15302100777626038, 0.2101156860589981, -0.6654818654060364, -0.18615590035915375, 0.2957633435726166, -0.600612223148346, 0.18319158256053925, -0.3733872175216675, 0.33613353967666626, -0.10483341664075851, 0.9997895359992981, 0.2381412386894226, -0.12120244652032852, -0.4341822862625122, -0.6920881271362305, -0.5732977986335754, -0.09721364080905914, -0.2369711846113205, -0.38429930806159973, 0.43783038854599, 0.16524638235569, 1.0623881816864014, 0.5286131501197815, 0.5488160848617554, 0.40037429332733154, -0.0819951519370079, 0.10155720263719559, -0.20881657302379608, -0.07568670809268951, -0.5444397330284119, -0.8256198167800903, 0.1617254614830017, 0.06020285189151764, 0.5202122926712036, 0.93585205078125, -0.039498910307884216, -0.01767026260495186, -0.2801639437675476, 0.5426441431045532, -0.4169329106807709, 0.07444081455469131, -0.4425049424171448, 0.10338915139436722, -0.06555955111980438, -0.03145552799105644, -0.2526983320713043, -0.4725470542907715, 0.09076029807329178, -0.4788919985294342, 0.15639787912368774, 0.13385982811450958, 0.9274585247039795, 0.5503540635108948, -0.47470003366470337, -0.2701554596424103, -0.6244294047355652, 0.5766783356666565, -0.800402820110321, 0.06603267043828964, -0.11592484265565872, 0.6298202872276306, 0.02048875018954277, -0.8234584927558899, -1.30303955078125, -0.41190826892852783, 0.08407673984766006, 0.13660100102424622, -0.484836220741272, -0.6502089500427246, 0.43659210205078125, 0.3330443501472473, -0.7411092519760132, -0.012470229528844357, -0.1698693037033081, 0.18027999997138977, 0.5225715637207031, 0.3672679662704468, 0.5861107110977173, -0.5170395374298096, -0.7274616360664368, -0.33745822310447693, -0.3264050781726837, 0.1823149472475052, 0.5890284180641174, -0.008291910402476788, -0.20389777421951294, 0.5034091472625732, 0.1684330403804779, 0.1559840738773346, -0.23264577984809875, 0.00922474730759859, 0.45629361271858215, -0.22553375363349915, -0.16780729591846466, -0.23960581421852112, 0.7852854132652283, 0.45347580313682556, 0.2829556465148926, -0.19504134356975555, -0.12128007411956787, 0.2525019943714142, 0.5467641353607178, -0.27235111594200134, -0.4130155146121979, 0.050035782158374786, -0.2350296825170517, -0.1395200788974762, -0.0680491104722023, -0.6344506740570068, -0.986406147480011, 0.020184392109513283, 0.6718875169754028, -0.5844783782958984, -0.3762790560722351, 0.3391929864883423, -0.7291186451911926, 0.11049298942089081, 0.33838459849357605, -0.1426270455121994, 0.24626903235912323, 0.5062839984893799, 0.7411852478981018, 0.17540526390075684, -0.3463155925273895, -0.42974522709846497, -0.0220947302877903, -0.19920873641967773, 0.8786188364028931, -0.5230712294578552, -0.013594142161309719, -0.3990715444087982, -0.26601600646972656, -0.17381609976291656, -0.6943076252937317, 0.7077828645706177, -0.2471887469291687, 0.21889670193195343, -0.10205096751451492, -0.509322464466095, -0.21847666800022125, 0.23188015818595886, -0.8286701440811157, 0.6428154706954956, 0.24765075743198395, -0.9210465550422668, -0.08609656244516373, -0.4541779160499573, -0.5801594853401184, 0.22859658300876617, -0.41342106461524963, -0.36237844824790955, 0.4365478754043579, 0.10303376615047455, 0.14113980531692505, -0.41238728165626526, 0.3957744836807251, -0.22412735223770142, -0.5380987524986267, 0.564721941947937, -0.5202980041503906, 1.1259361505508423, 0.26248830556869507, -0.668369710445404, -0.17271941900253296, -0.7062492966651917, -0.19183143973350525, 0.6487932205200195, 0.152730330824852, -0.29823213815689087, 0.1492731124162674, 0.025910763069987297, 0.4293641448020935, 0.04365157335996628, -0.2658648192882538, 0.2544112205505371, -0.26316821575164795, 0.5494165420532227, 0.7396147847175598, -0.4768396019935608, 0.05678688734769821, -0.47881194949150085, 0.698398232460022, 0.029434962198138237, -0.06277235597372055, -0.3638399541378021, -0.701435923576355, -0.5247711539268494, -0.12031758576631546, -0.0811714380979538, 0.7049145698547363, -1.2596673965454102, 0.15822874009609222, -0.44773557782173157, -0.497967392206192, -0.6132636666297913, -0.08743514865636826, 0.4549494981765747, 0.6003680229187012, 0.4152490198612213, -0.44142717123031616, -0.10259086638689041, -1.0254850387573242, -0.5892795920372009, -0.33156633377075195, -0.09227685630321503, 0.419453501701355, 0.5337479114532471, 0.04221302270889282, 0.7373117804527283, -0.2615962028503418, 0.08043239265680313, -0.4426652491092682, 0.7852235436439514, 0.43890073895454407, 0.22003291547298431, 0.6396721601486206, -1.172386884689331, -0.3442437946796417, -0.11469107121229172, -0.7488576769828796, -0.31076398491859436, -0.5250573754310608, 0.5823579430580139, -0.1552322804927826, 0.39343348145484924, -0.6643994450569153, 0.546953558921814, 0.4524913430213928, -0.29554226994514465, 1.0256754159927368, -0.24794957041740417, 0.1772904247045517, -0.5209916234016418, 0.28445056080818176, 0.0745287761092186, -0.22305560111999512, -0.47257229685783386, 0.45305463671684265, 0.19425338506698608, -0.016184549778699875, -0.5338428020477295, 0.592290461063385, -0.33314597606658936, -0.097683385014534, -0.11018611490726471, 0.291515052318573, 0.15698891878128052, 0.3978964686393738, -0.15047240257263184, 0.8924897313117981, 0.25250643491744995, -0.25185826420783997, 0.3858826458454132, 0.20335893332958221, -0.6919680833816528, 0.8755196332931519, -0.7213443517684937, 0.2729324698448181, -0.2460465431213379, 0.4520702660083771, -1.5770598649978638, -0.1593547910451889, 0.1425653100013733, -0.23591536283493042, 0.19072864949703217, 0.11831320077180862, -0.9774710536003113, -0.6972886919975281, -0.199334055185318, 0.7362435460090637, 0.551071286201477, -0.5813201665878296, 0.4926234185695648, -0.07943190634250641, -0.10564935207366943, -0.6526448726654053, -0.6665520071983337, 0.3544691205024719, -0.2541655898094177, -0.6587789058685303, 0.2357373833656311, -0.2982870042324066, -0.37567538022994995, 0.021733615547418594, -0.32103320956230164, 0.14313086867332458, 0.09167718142271042, 0.13437974452972412, -0.042326200753450394, -0.3770524561405182, -0.054011598229408264, -0.21812984347343445, -0.09019432961940765, -0.1430985927581787, -0.0538349524140358, 0.4268472492694855, -0.18773797154426575, -0.457813560962677, -0.6330068707466125, 0.27948519587516785, 0.4833241403102875, -0.1337200552225113, 0.5845627784729004, 0.6438037753105164, -0.09053613990545273, 0.01406285259872675, -0.6193413138389587, 0.3621142506599426, -0.5244883298873901, 0.24363890290260315, -0.462724894285202, -0.6716753244400024, 0.4258483648300171, -0.06966983526945114, -0.37813299894332886, 0.45892924070358276, 0.32138535380363464, -0.19014914333820343, 1.0770976543426514, 0.6655561327934265, -0.021226786077022552, 0.1126440092921257, 0.08919741958379745, 0.5365734100341797, -0.45198482275009155, -0.044378772377967834, -0.748893141746521, -0.616040825843811, -0.5751244425773621, -0.35178929567337036, 0.47017034888267517, 0.16885356605052948, -0.1796298772096634, 0.5444198250770569, -0.135494664311409, 0.9124502539634705, 0.47808781266212463, -0.17515064775943756, 0.140676811337471, -0.4158024489879608, -0.3022007942199707, 0.1369442641735077, -0.560386061668396, -0.3820422887802124, 0.45571663975715637, 0.2818855047225952, 0.5777721405029297, 0.3943065106868744, 0.35230278968811035, 0.20588859915733337, -0.0050064451061189175, -0.2817354202270508, 0.6326796412467957, -0.3126303553581238, -0.7325403690338135, 0.11260306090116501, -0.5675109624862671, -0.7805889844894409, -0.010618261992931366, 0.05156989395618439, -1.2109854221343994, 0.10953958332538605, -0.20484024286270142, -0.27331972122192383, 0.41717201471328735, -0.9699608087539673, 1.0927748680114746, -0.1731087565422058, -0.45562517642974854, -0.20358623564243317, -1.2262517213821411, 0.30987295508384705, 0.38309457898139954, 0.5039130449295044, 0.02136964350938797, 0.08628141134977341, 0.13138799369335175, 0.017324894666671753, 0.7708343267440796, 0.19619742035865784, -0.030389562249183655, 0.1299266815185547, 0.3934031128883362, 0.2672891616821289, -0.13505879044532776, -0.12435740232467651, 0.10236027836799622, -0.1628687083721161, -0.6622382402420044, -0.7086606025695801, 0.46268072724342346, -0.6653119325637817, -0.6348117589950562, -0.3706510066986084, -0.9685235619544983, -0.19573065638542175, 0.08414825797080994, 0.11755383759737015, 0.3432713747024536, 0.1051425188779831, 0.010962273925542831, 0.1896025538444519, -0.5994083285331726, 0.4461268186569214, -0.010562787763774395, 0.15204176306724548, -0.14540822803974152, 1.1066629886627197, -0.33915233612060547, 0.3841841220855713, 0.3157442510128021, 0.26483482122421265, -0.5492457747459412, -0.393308162689209, -0.43900007009506226, 0.3771974444389343, -0.9163409471511841, -0.08184836059808731, -0.5324326157569885, -0.012454306706786156, -0.26878392696380615, -0.06907591968774796, -0.163909450173378, -0.6640884876251221, -0.041624244302511215, 0.2897289991378784, -0.24716068804264069, 0.910818338394165, 0.031469061970710754, 0.1404397338628769, -0.5745482444763184, 0.6312740445137024, 0.37785547971725464, 0.3278525769710541, 0.11855775862932205, -0.3701644837856293, -0.04996372386813164, -0.25673723220825195, -0.6055378913879395, -0.9284482002258301, 0.1767912656068802, 0.10436688363552094, 0.49750837683677673, 0.3298313021659851, 0.03845032677054405, 0.8096389174461365, -0.7382565140724182, 0.9973967671394348, 0.45352014899253845, -0.9733904004096985, 0.2791392207145691, -0.29610559344291687, 0.47736045718193054, 0.19527457654476166, 0.649898111820221, -0.45262619853019714, -0.5743042826652527, -0.8168272376060486, -0.5649140477180481, 0.7286652326583862, 0.6145343780517578, 0.4910457134246826, -0.24901722371578217, 0.15936680138111115, 0.46437349915504456, 0.4673662781715393, -0.904260516166687, -0.24262650310993195, -0.33378663659095764, -0.18422378599643707, -0.2027072012424469, 0.2346404641866684, -0.14554715156555176, -0.13515079021453857, -0.030507685616612434, -0.2218049317598343, 0.27491405606269836, -0.04448508843779564, -0.1863895058631897, -0.21361975371837616, 0.2522847652435303, 0.728919267654419, 0.8766981959342957, -0.06244944781064987, 0.40088748931884766, -0.3064161539077759, -0.07115144282579422, -0.08789672702550888, 0.2984732985496521, 0.3039940595626831, -0.11120206862688065, 0.8119235038757324, 0.7950021028518677, 0.08524736762046814, -1.111279845237732, 0.775897741317749, -0.08283752202987671, 0.039588961750268936, 0.11701108515262604, 0.3686091899871826, 0.08654854446649551, 0.9337037205696106, 0.47152766585350037, 0.222349151968956, 0.19119569659233093, -1.0929237604141235, 0.2276393175125122, 0.3330858647823334, -0.044766973704099655, -0.30277714133262634, 0.9961734414100647, -0.15576152503490448, -0.562732458114624, 0.6157563924789429, -0.3973802924156189, -0.8187538385391235, 1.03837251663208, 0.660232424736023, 0.7573028802871704, -0.017105549573898315, 0.368039608001709, 0.05740092322230339, 0.23682010173797607, 0.10861428827047348, 0.10828845202922821, 0.07792393118143082, -0.6369089484214783, -0.23314936459064484, -0.24531039595603943, -0.35770007967948914, 0.03734450042247772, -0.4762086570262909, 0.23690159618854523, -0.4225844442844391, 0.17379702627658844, 0.4360291361808777, -0.21986135840415955, -0.9270572662353516, 0.2827584743499756, 0.3179992735385895, 0.7589372396469116, -0.7867794036865234, 0.532161295413971, 0.7179539203643799, -0.8231534361839294, -0.5624966621398926, 0.4040224850177765, 0.20650316774845123, -0.8432005047798157, 0.5819195508956909, 0.5794672966003418, 0.05775438994169235, -0.15924173593521118, -0.8294556736946106, 0.07978606969118118, 0.7760087251663208, 0.4241238832473755, -0.3284108340740204, -0.21776948869228363, 0.15143053233623505, 0.8285131454467773, -0.2973800599575043, 0.5778284668922424, 0.42916563153266907, 0.34127193689346313, 0.03230155259370804, -1.097795009613037, 0.020647479221224785, -0.5357778072357178, -0.10917367786169052, -0.016968345269560814, -0.6780838966369629, 1.0584534406661987, -0.4186970591545105, -0.21071290969848633, 0.3755604922771454, 0.44800785183906555, 0.10639230161905289, 0.7735804319381714, 0.7994836568832397, 0.6636314988136292, 0.43031662702560425, 0.07465289533138275, 1.478935718536377, 0.36975714564323425, 0.21535634994506836, 1.0749505758285522, -0.41025876998901367, 0.7333369851112366, 0.43058204650878906, -0.37115901708602905, 0.8121021389961243, 0.05302547290921211, -0.032343629747629166, 0.4186941087245941, 0.12552399933338165, 0.058463968336582184, -0.4090152382850647, -0.13122186064720154, -0.318747341632843, 0.35536208748817444, 0.08845808357000351, 0.10388035327196121, -0.3320188522338867, -0.04361124709248543, -0.42141854763031006, 0.45123177766799927, 0.06347662210464478, 0.588146984577179, 0.10262960195541382, -0.552277147769928, 0.533405065536499, -0.09543784707784653, 0.2860259711742401, -0.29118382930755615, -0.23990315198898315, -0.24401038885116577, 0.026816777884960175, 0.16886596381664276, -1.1140007972717285, 0.14916211366653442, -0.14373892545700073, 0.2320616990327835, 0.10864055156707764, 0.3344027101993561, 0.007934718392789364, -0.3048957288265228, 0.22260849177837372, 0.4327510893344879, 0.12052438408136368, -0.04462495073676109, -0.9282838702201843, 0.06582768261432648, -0.26661059260368347, 0.11663712561130524, 0.05868793651461601, 0.9031698107719421, 0.014212308451533318, 0.8444831967353821, 0.34348422288894653, -0.3310629725456238, 0.053678806871175766, 0.22658464312553406, 0.8258918523788452, -0.7824642062187195, -0.6882778406143188, -0.7047494649887085, 0.7676227688789368, -0.16008397936820984, -0.513644814491272, 0.5295930504798889, 0.22117678821086884, 0.7969438433647156, -0.14708952605724335, 0.5905957818031311, -0.21689565479755402, 0.19606977701187134, -0.375088632106781, 0.4296138286590576, -1.3530540466308594, 0.26234227418899536, -0.6978310942649841, -0.7723677158355713, -0.36435019969940186, 0.556788980960846, -0.3301565945148468, 0.11047323048114777, 0.8559771776199341, 0.4302321970462799, -0.37538787722587585, 0.4303975999355316, 0.2577672600746155, 0.4040229618549347, 0.30047568678855896, 0.6732407808303833, 1.245448350906372, -0.2665184736251831, 0.6547473669052124, -0.2406061887741089, 0.02405334636569023, -0.34418779611587524, -1.1216033697128296, -1.001380205154419, -0.5461258292198181, -0.4175175428390503, -0.15604563057422638, -0.028991321101784706, 0.6538242697715759, 0.3039703369140625, -0.5975907444953918, -0.04354344308376312, -0.1473490446805954, 0.1995716542005539, -0.5549450516700745, -0.2571512758731842, 0.1670343577861786, -0.1810787469148636, -0.699319064617157, 0.3065071702003479, 0.4932417571544647, -0.16506409645080566, -0.12308020889759064, 0.0459805391728878, -0.4187237620353699, 0.2869894504547119, 0.2301778644323349, 0.3287389874458313, -0.9317396879196167, -0.5460839867591858, -0.17901559174060822, -0.11877892911434174, 0.3226028382778168, 0.7753025889396667, -0.717323362827301, 0.6306005120277405, 0.5064170360565186, 0.9135481715202332, 0.2590726912021637, -0.039542343467473984, 0.2632867395877838, -0.889004111289978, 0.19703231751918793, 0.3459835946559906, 0.224031001329422, 0.41140466928482056, -0.08226696401834488, 0.6278125643730164, 0.5928127765655518, -0.3483524024486542, -0.96719890832901, 0.26316314935684204, -1.1486667394638062, -0.6048940420150757, 0.5995360016822815, -0.2245585173368454, -0.19981703162193298, 0.014041717164218426, -0.25411543250083923, 0.23482418060302734, 0.19644711911678314, 0.9910852313041687, 0.8221714496612549, -0.233145609498024, -0.4475752115249634, -0.8282331824302673, -0.06828735023736954, 0.7378848791122437, -0.6291781663894653, -0.31764504313468933, 0.3648252785205841, 0.09386730939149857, 0.5441997647285461, 0.4338741600513458, 0.07225187122821808, 0.6672176122665405, 0.282020628452301, -0.2546863555908203, 0.13910825550556183, -0.4932551681995392, -0.20803950726985931, 0.26505938172340393, -0.28108349442481995, 0.20243853330612183 ]
http://arxiv.org/abs/2405.19086v2
http://arxiv.org/pdf/2405.19086v2
MEMoE: Enhancing Model Editing with Mixture of Experts Adaptors
2024-05-29T13:49:44
2024-06-02T02:32:31
Renzhi Wang, Piji Li
cs.CL
cs.CL
Model editing aims to efficiently alter the behavior of Large Language Models (LLMs) within a desired scope, while ensuring no adverse impact on other inputs. Recent years have witnessed various model editing methods been proposed. However, these methods either exhibit poor overall performance or struggle to strike a balance between generalization and locality. We propose MEMoE, a model editing adapter utilizing a Mixture of Experts (MoE) architecture with a knowledge anchor routing strategy. MEMoE updates knowledge using a bypass MoE structure, keeping the original parameters unchanged to preserve the general ability of LLMs. And, the knowledge anchor routing ensures that inputs requiring similar knowledge are routed to the same expert, thereby enhancing the generalization of the updated knowledge. Experimental results show the superiority of our approach over both batch editing and sequential batch editing tasks, exhibiting exceptional overall performance alongside outstanding balance between generalization and locality. Our code will be available.
[ -0.17889218032360077, -0.7412346601486206, 0.650985062122345, 0.2690882682800293, -0.1330888420343399, 0.08458752185106277, -0.3215795159339905, -0.1953023374080658, 0.2210388034582138, 0.4803420603275299, -0.34660980105400085, -0.5092659592628479, -0.5376907587051392, -0.25087857246398926, -0.2400362491607666, 0.5834306478500366, 0.0359172560274601, 0.18112006783485413, -0.29979515075683594, -0.27325472235679626, -0.8780542016029358, -0.27818354964256287, -1.0944275856018066, -0.001161288470029831, 0.390914648771286, 0.37636762857437134, 0.5644304156303406, 0.9091659188270569, 0.47827887535095215, 0.49504366517066956, -0.31075361371040344, 0.4029286801815033, -0.5107749104499817, 0.23417875170707703, -0.8685694336891174, -0.7847660779953003, -1.1696749925613403, -0.5545713901519775, 0.5765694975852966, 0.47401708364486694, -0.30357393622398376, -0.05762540549039841, -0.10402664542198181, 0.7849553823471069, -0.6896915435791016, -0.11418069899082184, -0.9937499761581421, -0.38662856817245483, -0.2125345915555954, -0.08674442768096924, -0.3091416656970978, -0.05211102217435837, -0.017193075269460678, -0.6605080366134644, 0.29860061407089233, 0.2137521356344223, 0.3788590431213379, 0.49323126673698425, -0.12565463781356812, -0.10704821348190308, -0.7234532833099365, 0.537194550037384, -0.9150236248970032, 0.3470459282398224, -0.0027186425868421793, 0.33370715379714966, -0.4043126404285431, -0.7382235527038574, -0.5032556653022766, 0.2801075577735901, 0.32370471954345703, 0.16817845404148102, -0.10564009845256805, 0.30308783054351807, 0.07156472653150558, 0.44697996973991394, -0.08682544529438019, 0.10628967732191086, -0.3706589937210083, 0.022149844095110893, 0.6777292490005493, 0.14073535799980164, 0.4398195743560791, 0.08277670294046402, -0.14560116827487946, 0.09827563166618347, -0.48000866174697876, -0.12261655181646347, 0.3075481057167053, -0.2295781672000885, 0.23673322796821594, 0.5188642740249634, -0.33474114537239075, 0.8140022158622742, 0.3582039475440979, -0.19965378940105438, -0.06446138024330139, 0.07870414853096008, -0.40225663781166077, -0.018118083477020264, 0.5943288207054138, 0.6764323115348816, -0.00361003540456295, -0.19135986268520355, -0.4428567886352539, -0.47219735383987427, 0.22282607853412628, -0.5810239315032959, -0.45051971077919006, 0.060077257454395294, -0.3566150665283203, -0.22848382592201233, 0.11029898375272751, -0.8469476103782654, -0.5228936672210693, -0.22003492712974548, 0.3280041515827179, -0.5998393297195435, -0.08310753107070923, 0.2718868553638458, -0.4324427843093872, -0.3571086823940277, 0.6619608402252197, -0.9683688282966614, 0.33942317962646484, 0.6286118030548096, 0.777790904045105, 0.047367773950099945, -0.35118329524993896, -0.3542315661907196, 0.6993703842163086, -0.18598313629627228, 0.960828423500061, -0.7667858004570007, -0.656283974647522, -0.4465533196926117, -0.3741682767868042, -0.40423232316970825, -0.7373949885368347, 0.608643651008606, -0.9490353465080261, 0.01139324065297842, -0.17048685252666473, -0.9528458118438721, -0.45953425765037537, 0.12124524265527725, -0.5371705889701843, 0.9346542954444885, 0.11770106106996536, -0.5295884013175964, 0.12048331648111343, -0.9197498559951782, -0.2305099219083786, -0.3581380844116211, 0.02669229917228222, -0.07974199950695038, 0.3486029803752899, 0.5835707187652588, 0.21707771718502045, -0.08228583633899689, 0.5919596552848816, -0.3730255663394928, -0.18542802333831787, 0.21517981588840485, -0.29427969455718994, 0.45621538162231445, 0.06451951712369919, 0.05166076868772507, 0.5707597732543945, -0.9835401177406311, -0.36157554388046265, -0.19877594709396362, -0.6189420819282532, -0.5473337173461914, 0.24260495603084564, -0.2656584084033966, 0.2619398534297943, 0.2550113797187805, -0.26037004590034485, 0.6807569861412048, -0.12004553526639938, 0.36161279678344727, 1.2158243656158447, 0.31197619438171387, 0.7318582534790039, -0.5752807259559631, 0.4746304750442505, 0.3340776562690735, 0.15827344357967377, -0.2222425788640976, -0.6444593667984009, -1.1455925703048706, -0.4123033583164215, 0.5488641262054443, 0.7047662138938904, -0.6283079981803894, 0.226965993642807, -0.49323853850364685, -0.4527764916419983, -0.8357231020927429, 0.6607028245925903, 0.13750076293945312, 0.6840181350708008, 0.48817938566207886, -0.18503643572330475, -0.5956181287765503, -0.9568281173706055, -0.6500783562660217, 0.07257995009422302, -0.22807498276233673, 0.2972095310688019, 0.14146727323532104, -0.28285348415374756, 1.1570037603378296, -0.5755226016044617, -0.17890778183937073, -0.049449071288108826, -0.11381363123655319, 0.07381629198789597, 0.7314658164978027, 0.5353124141693115, -0.5113508105278015, -0.4052576720714569, 0.064735047519207, -0.5695688724517822, -0.2452981173992157, -0.09448671340942383, -0.5009852051734924, -0.07110681384801865, 0.7251870632171631, -0.4725741744041443, 0.06835874915122986, 0.4747854769229889, -0.0006068966467864811, 0.2380516231060028, -0.27118346095085144, 0.18622390925884247, -1.3390686511993408, -0.18538400530815125, -0.16663500666618347, -0.17139562964439392, -0.6801894307136536, 0.22433261573314667, 0.22147320210933685, 0.1555657684803009, -0.34848275780677795, 0.7247506380081177, -0.369497150182724, 0.16091647744178772, -0.10343069583177567, 0.14344821870326996, 0.034227367490530014, 0.45530810952186584, -0.15868444740772247, 0.8005695939064026, 0.6007200479507446, -0.6131235957145691, 0.22031880915164948, 0.04614688828587532, -0.20487377047538757, 0.6068336963653564, -0.5188777446746826, 0.5852037072181702, -0.14452333748340607, 0.08727461844682693, -0.7207017540931702, -0.313513845205307, 0.1380457878112793, -0.12711362540721893, 0.4008629322052002, -0.2314029484987259, -0.3027634620666504, -0.0675506666302681, -0.3465169668197632, 0.33687624335289, 0.2915324568748474, -0.2911362648010254, 1.1033082008361816, 0.2530273199081421, -0.2689824402332306, -0.3268734812736511, -0.5358716249465942, 0.20358936488628387, -0.1761702299118042, -1.0316147804260254, 0.35884395241737366, -0.2977742552757263, -0.4474049210548401, 0.06359878927469254, -0.1784178912639618, -0.40316325426101685, 0.03497077897191048, -0.03993890807032585, 0.30263403058052063, -0.5388795137405396, 0.07250381261110306, 0.5713039636611938, 0.013411004096269608, -0.14041544497013092, -0.3571082055568695, 0.26748979091644287, 0.23193633556365967, -0.3346404731273651, -0.3167303800582886, 0.15819768607616425, 0.7150315046310425, -0.3199010193347931, 0.7499588131904602, 0.4329826533794403, -0.32607996463775635, -0.2438252866268158, -1.0962719917297363, 0.026751993224024773, -0.5564748048782349, 0.5985127687454224, -0.5213103890419006, -0.7487692832946777, 0.6838410496711731, -0.46832478046417236, 0.013721075840294361, 0.41201314330101013, 0.24256302416324615, -0.03225503861904144, 0.5845034122467041, 0.6767299175262451, -0.33930519223213196, 0.5336272120475769, 0.005549131892621517, 0.231144517660141, -1.307618498802185, -0.13429416716098785, -0.3283978998661041, -0.5044918060302734, -0.12535803020000458, -0.8941736817359924, 0.3493639826774597, 0.6329581141471863, 0.01826523430645466, -0.11386717110872269, -0.11120187491178513, 0.624325156211853, 0.6899937987327576, 0.351209819316864, 0.49427518248558044, -0.21882672607898712, -0.12821348011493683, 0.01771974004805088, -1.1280622482299805, -0.4654044210910797, 1.1553391218185425, 0.16910657286643982, 0.7895883321762085, 0.20919933915138245, 0.42100298404693604, 0.1706162691116333, 0.33885347843170166, -0.5012884736061096, 0.7199003100395203, -0.14469663798809052, -0.5539049506187439, -0.2001127302646637, -0.16211608052253723, -0.1485523283481598, 0.29653292894363403, -0.1348966658115387, -0.6200308203697205, 0.4633972942829132, 0.4656531512737274, -0.22177809476852417, 0.8672301769256592, -0.742704451084137, 0.6714743971824646, 0.1076245903968811, -0.35005030035972595, -0.41743937134742737, -0.43603354692459106, 0.6199158430099487, -0.23502838611602783, 0.42500385642051697, 0.13133221864700317, -0.17333824932575226, 0.6505357027053833, -0.5242258906364441, 0.681351900100708, -0.01408481691032648, 0.14207369089126587, 0.18726305663585663, 0.34158021211624146, 0.7103528380393982, 0.09890729933977127, -0.5311596393585205, -0.007532565854489803, -0.6513577103614807, -0.39986851811408997, -0.9724465012550354, 0.7417885661125183, -0.628592848777771, -0.9439947605133057, 0.25297531485557556, -0.9638269543647766, -0.3368050754070282, 0.1968337595462799, -0.04621274396777153, 0.4303722083568573, -0.0856114849448204, 0.06742221117019653, 0.8159693479537964, -0.12316206842660904, 0.39784133434295654, 0.5954247713088989, -0.18229664862155914, -0.43312323093414307, 0.8567509651184082, 0.022270875051617622, 0.3861270844936371, 0.6172359585762024, 0.13390836119651794, 0.15297769010066986, -0.8353602886199951, -0.622724711894989, -0.05603616312146187, -0.8889515399932861, -0.02609364688396454, -0.8494391441345215, -0.16765332221984863, -0.36370521783828735, -0.5622979402542114, -0.5068555474281311, -0.6192872524261475, -0.27049359679222107, 0.09065904468297958, 0.4184357225894928, 0.6998618245124817, -0.07149990648031235, 0.7133718729019165, -0.8627539277076721, 0.3675236701965332, 0.6237825155258179, 0.30085423588752747, 0.1198495551943779, -0.6305789947509766, -0.2741173207759857, -0.04581538215279579, -0.36993804574012756, -0.791282594203949, 0.020403731614351273, 0.23763109743595123, 0.6230422854423523, 0.6061763167381287, -0.17491023242473602, 1.1481833457946777, -0.616844117641449, 0.504098117351532, -0.1606452763080597, -1.1960045099258423, 0.5533601641654968, -0.5700992941856384, 0.28010839223861694, 0.4969351291656494, -0.1318611204624176, -0.46741753816604614, -0.6238234639167786, -0.39301398396492004, -0.622805655002594, 0.6159191131591797, -0.08464111387729645, -0.01996653899550438, 0.12428653240203857, 0.5034744739532471, -0.15094177424907684, 0.4795234501361847, -0.19887694716453552, -0.23213496804237366, 0.03115362487733364, -0.2196369469165802, 0.2625479996204376, -0.556886613368988, 0.03571641817688942, -0.37453532218933105, 0.8355811834335327, 0.203978031873703, 0.020513972267508507, 0.23962070047855377, -0.3515651524066925, -0.18661275506019592, 0.40393733978271484, 0.9323539137840271, 0.9331803321838379, -0.47510769963264465, -0.1766066998243332, 0.5855988264083862, -0.38808390498161316, -0.15756754577159882, -0.22858016192913055, -0.4556385576725006, -0.0537535659968853, 0.43054649233818054, 1.0639750957489014, 0.6326638460159302, -0.3862251043319702, 0.0979672446846962, 0.13851219415664673, -0.08205969631671906, 0.41798144578933716, 0.644683301448822, 0.34921103715896606, 0.29320982098579407, 0.19448170065879822, 0.9143280386924744, 0.18713724613189697, -0.21584635972976685, -0.11870498955249786, 0.05710067227482796, -0.04525509849190712, -0.25748980045318604, 0.9130334258079529, 0.34951144456863403, -0.632768452167511, 0.4426881968975067, 0.11905812472105026, -0.514110803604126, 0.44436466693878174, 0.4812334179878235, 0.8081662654876709, -0.8158283233642578, -0.2813539505004883, 0.15501472353935242, 0.4408140778541565, -0.017184630036354065, -0.08370159566402435, 0.31686556339263916, -0.7415438890457153, -0.39963385462760925, -0.282381534576416, -0.4273485243320465, -0.06737466156482697, -0.6129883527755737, 0.436149001121521, -0.5519890189170837, 0.09880853444337845, -0.3367443084716797, -0.6869732737541199, -0.5766229629516602, 0.17336885631084442, -0.30983966588974, 1.3213906288146973, -0.4695393741130829, 1.0084431171417236, 1.1243982315063477, -0.010102841071784496, -0.6551284193992615, -0.18683399260044098, 0.037888091057538986, -0.7077047824859619, 0.2324809730052948, -0.32900670170783997, 0.03559005260467529, 0.2291254997253418, -0.157139390707016, -0.6813495755195618, 1.2229321002960205, 0.3730664551258087, -0.8904208540916443, -0.19986023008823395, -0.15519483387470245, 0.3003298044204712, -0.3177832067012787, 0.27028024196624756, 0.4193720817565918, 0.5640010237693787, 0.04556175693869591, -0.7455595135688782, -0.1240769699215889, -0.15386690199375153, 0.28550851345062256, -0.048761505633592606, -0.7147344350814819, 0.88112872838974, 0.014518591575324535, 0.2638663947582245, -0.08721394836902618, 0.8278570771217346, 0.2331700474023819, 0.14934806525707245, 0.5107242465019226, 0.7970351576805115, 1.0473846197128296, 0.36172184348106384, 0.872804582118988, -0.5207095146179199, 0.1039506122469902, 1.5296612977981567, -0.28395065665245056, 0.8319823145866394, 0.40656137466430664, -0.057026684284210205, 0.5394405126571655, 0.3222862482070923, 0.21976801753044128, 0.4519757032394409, -0.05295829474925995, -0.4729497730731964, -0.21694794297218323, 0.32650360465049744, -0.22525879740715027, 0.15336066484451294, 0.29751941561698914, -0.416996031999588, -0.20633675158023834, -0.15514162182807922, 0.23517590761184692, 0.09999648481607437, -0.5922572016716003, 0.7156254053115845, -0.08534756302833557, -0.5114554762840271, -0.04684964194893837, 0.49530887603759766, 0.48264506459236145, -0.5592065453529358, 0.029683463275432587, -0.19229218363761902, 0.2567235827445984, -0.11765075474977493, -0.5342094898223877, 0.21197812259197235, -0.14119552075862885, -0.6536818146705627, 0.06035790964961052, 0.8939770460128784, -0.49018603563308716, -0.744514524936676, 0.1771383136510849, 0.5019729137420654, -0.21396523714065552, -0.22522258758544922, -0.6193236112594604, 0.022969959303736687, 0.03340257704257965, -0.34352120757102966, 0.29192590713500977, 0.6306256055831909, -0.15799427032470703, 0.8818567991256714, 0.7606755495071411, 0.12865513563156128, 0.5230623483657837, -0.11330515891313553, 1.0909312963485718, -0.5432681441307068, -0.3859746754169464, -1.033881425857544, 0.8191198110580444, -0.18616479635238647, -0.25768083333969116, 0.7452704310417175, 0.5892475247383118, 0.6549913883209229, -0.40369346737861633, 0.7927061915397644, 0.15379005670547485, 0.23981112241744995, -0.8157715201377869, 0.6075558662414551, -0.22177088260650635, 0.4657495617866516, -0.2573462724685669, -1.058077096939087, -0.3180338740348816, 0.3503996729850769, -0.44539833068847656, -0.08737251907587051, 0.6476628184318542, 1.0040675401687622, -0.4407135844230652, -0.10436121374368668, 0.2772330939769745, 0.6682106852531433, 0.42059653997421265, 0.3479417860507965, 0.45747387409210205, -0.3454323709011078, 0.09394481778144836, -0.3919946849346161, -0.10089695453643799, -0.23115570843219757, -0.9208822250366211, -1.1972153186798096, -0.12406552582979202, -0.29752421379089355, 0.11902956664562225, 0.28781330585479736, 0.8506205081939697, 0.6965196132659912, -0.6578322052955627, -0.12204242497682571, -0.057839494198560715, 0.42819082736968994, -0.17706584930419922, -0.1976068764925003, 0.4055682420730591, -0.22890223562717438, -0.8645420074462891, 0.7178362011909485, 0.5737830996513367, -0.28939077258110046, 0.09742427617311478, -0.053033195436000824, -0.2650569677352905, 0.32754752039909363, 0.41519302129745483, -0.08186011016368866, -0.63068687915802, -0.020181404426693916, -0.18951216340065002, 0.18092505633831024, 0.18561479449272156, 0.8287556171417236, -0.5225815176963806, 0.7772401571273804, 0.43199893832206726, 0.7557598352432251, 0.03648215904831886, 0.2364511489868164, 0.7959378361701965, -0.5449293255805969, 0.17260628938674927, -0.17598912119865417, 0.6605754494667053, 0.23891091346740723, -0.3703913688659668, 0.2812093496322632, 0.33689799904823303, -0.6046721935272217, -0.529414176940918, -0.21152660250663757, -1.130009412765503, -0.12901057302951813, 0.9397323727607727, -0.21353764832019806, -0.43210479617118835, -0.0019704559817910194, -0.6749723553657532, 0.25705721974372864, -0.4966881573200226, 0.8093832731246948, 0.866914689540863, 0.21441234648227692, -0.20451289415359497, -0.7865949869155884, 0.03756538778543472, 0.34427469968795776, -0.7188621759414673, -0.3573341965675354, 0.4019307494163513, 0.5298537611961365, -0.20774079859256744, 0.6977400183677673, 0.1964699774980545, 0.25789114832878113, -0.16151823103427887, 0.2674558162689209, -0.48572030663490295, -0.225959911942482, -0.3015744984149933, 0.011483404785394669, 0.25470465421676636, -0.08830691128969193 ]
http://arxiv.org/abs/2405.19084v1
http://arxiv.org/pdf/2405.19084v1
Auxiliary Knowledge-Induced Learning for Automatic Multi-Label Medical Document Classification
2024-05-29T13:44:07
2024-05-29T13:44:07
Xindi Wang, Robert E. Mercer, Frank Rudzicz
cs.CL
cs.CL
The International Classification of Diseases (ICD) is an authoritative medical classification system of different diseases and conditions for clinical and management purposes. ICD indexing assigns a subset of ICD codes to a medical record. Since human coding is labour-intensive and error-prone, many studies employ machine learning to automate the coding process. ICD coding is a challenging task, as it needs to assign multiple codes to each medical document from an extremely large hierarchically organized collection. In this paper, we propose a novel approach for ICD indexing that adopts three ideas: (1) we use a multi-level deep dilated residual convolution encoder to aggregate the information from the clinical notes and learn document representations across different lengths of the texts; (2) we formalize the task of ICD classification with auxiliary knowledge of the medical records, which incorporates not only the clinical texts but also different clinical code terminologies and drug prescriptions for better inferring the ICD codes; and (3) we introduce a graph convolutional network to leverage the co-occurrence patterns among ICD codes, aiming to enhance the quality of label representations. Experimental results show the proposed method achieves state-of-the-art performance on a number of measures.
[ -0.2770704925060272, -0.3687862455844879, 0.3550912141799927, -0.09288937598466873, -0.49948298931121826, 0.2212219387292862, -0.07284540683031082, -0.5739098191261292, 0.1737111359834671, 0.2952333092689514, -0.2608374357223511, -1.0621051788330078, -0.6534560918807983, 0.07333852350711823, -0.1775057464838028, 1.2101696729660034, -0.20082363486289978, 0.2925383746623993, -0.3620373010635376, -0.3717106580734253, -0.16511884331703186, -0.8354492783546448, -0.6413655281066895, -0.38333243131637573, 0.5559132695198059, 0.5520384907722473, 0.24425359070301056, 0.5866091251373291, 0.7906168103218079, 0.27180004119873047, 0.34720873832702637, 0.5907410979270935, 0.06422850489616394, -0.13080419600009918, 0.36468973755836487, -0.4014652669429779, -0.3530167043209076, -0.312127023935318, 0.4402337372303009, 0.5477162003517151, -0.10564780235290527, -0.0388885922729969, 0.006882373709231615, 0.5859470367431641, -0.3347035348415375, 0.4206976890563965, -0.1954939365386963, 0.15323428809642792, 0.04845758154988289, -0.44112429022789, -0.4308870732784271, -0.4251630902290344, 0.008803801611065865, -0.6210945844650269, 0.2705481946468353, -0.08119241893291473, 0.8054611086845398, 0.1698363572359085, -0.6015958189964294, -0.652258574962616, -0.37920501828193665, 0.12515024840831757, -0.381147563457489, 0.513250470161438, 0.3222593665122986, 0.19615276157855988, 0.17352023720741272, -0.9910387992858887, -0.3955341875553131, -0.12430941313505173, -0.3714502453804016, 0.3054145574569702, 0.11806794255971909, 0.3058681786060333, 0.13176748156547546, 0.4152967929840088, -0.63181072473526, 0.2726004719734192, -0.4989507496356964, -0.1159004494547844, 0.4849627614021301, 0.06237948313355446, 0.5754734873771667, 0.09442166239023209, -0.31733837723731995, 0.007219108287245035, -0.3056524395942688, -0.07346783578395844, -0.10209839791059494, 0.02420046366751194, -0.34732797741889954, 0.5115401148796082, -0.12236163020133972, 0.4397446811199188, 0.2593718469142914, -0.36536115407943726, 0.842067539691925, -0.19541800022125244, -0.1459285467863083, 0.48030656576156616, 0.7356497645378113, 0.2787207365036011, -0.13838928937911987, -0.209443598985672, -0.07074989378452301, 0.21675781905651093, 0.25893574953079224, -0.6395257711410522, -0.40464821457862854, 0.09225429594516754, -0.5692280530929565, -0.0783623531460762, -0.11577796936035156, -0.5611331462860107, -0.42609500885009766, -0.5735054612159729, 0.2895984351634979, -0.6973687410354614, 0.3625175356864929, 0.036617182195186615, -0.10644814372062683, -0.1501259207725525, 0.3569561243057251, -0.7610782980918884, 0.47632506489753723, 0.5852546691894531, 0.8607279658317566, -0.14342202246189117, -0.11121246218681335, -0.591735303401947, 0.24667870998382568, -0.3581652343273163, 0.7126451134681702, -0.5495352745056152, -0.47318437695503235, -0.09540453553199768, 0.04197877645492554, -0.06063046678900719, -0.5598717331886292, 0.7855622172355652, -0.5670859813690186, -0.24446330964565277, 0.3350771963596344, -0.555694043636322, -0.22572217881679535, 0.3989848792552948, -0.7089819312095642, 0.6305633187294006, 0.2208641767501831, -0.8614274263381958, 0.4559609293937683, -0.4854525625705719, -0.7967037558555603, 0.1748868077993393, -0.5049688220024109, -0.7174526453018188, -0.08041150122880936, 0.5917675495147705, 0.3764398992061615, -0.2487351894378662, 0.3642507791519165, -0.19964058697223663, -0.14706489443778992, 0.0306159146130085, -0.36691901087760925, 0.5010694265365601, 0.14017891883850098, 0.21447211503982544, 0.1114678680896759, -0.979827344417572, -0.08148622512817383, -0.3538491427898407, -0.5601165294647217, -0.5950127243995667, -0.37591463327407837, -0.15550562739372253, 0.22609485685825348, 0.053177610039711, -0.4442406892776489, 0.44938138127326965, -0.43285149335861206, -0.09588897973299026, 0.5287908315658569, 0.5765272378921509, 0.4376242756843567, -0.4477261006832123, 0.3428041338920593, 0.2902975082397461, 0.3456540107727051, -0.27812665700912476, -0.5295847058296204, -0.6813982725143433, -0.31667187809944153, 0.31456539034843445, 0.47705909609794617, -0.7484400868415833, 0.5709207057952881, -0.35274702310562134, -0.47773149609565735, -0.5724218487739563, 0.14679692685604095, 0.3106135427951813, 0.7384418249130249, 0.5688097476959229, -0.4064810872077942, -0.35633546113967896, -0.740649938583374, 0.33056700229644775, 0.03272595256567001, -0.07327143102884293, 0.6503354907035828, 0.29119691252708435, -0.7108152508735657, 0.45905229449272156, -0.7482931017875671, -0.6695448160171509, 0.12058761715888977, 0.44671541452407837, 0.30174413323402405, 0.7429155707359314, 0.38012829422950745, -0.7523432374000549, -0.6630958318710327, 0.6492394804954529, -0.5422189235687256, 0.13954445719718933, -0.1635248064994812, -0.0676349475979805, -0.056003786623477936, 0.5207725763320923, -0.3914128243923187, 0.3151422142982483, 0.1554441899061203, 0.08986447751522064, 0.1891406923532486, -0.8787396550178528, 0.044278211891651154, -0.9836534261703491, 0.01670527085661888, 0.26093199849128723, 0.08350806683301926, -0.5269936323165894, -0.046269167214632034, 0.5331969261169434, -0.19062429666519165, -0.04187970981001854, 0.22611230611801147, -0.5260859727859497, 0.12589341402053833, 0.11392781138420105, -0.15454745292663574, 0.29226183891296387, 0.48370543122291565, -0.04111161082983017, 0.16663208603858948, 0.6007236838340759, -0.909920334815979, 0.46785107254981995, 0.26641637086868286, -0.41018372774124146, 0.41443800926208496, -0.19246560335159302, 0.211119145154953, -0.4561429023742676, 0.39621829986572266, -0.6526713371276855, -0.0794551745057106, 0.22033709287643433, -0.5018496513366699, 0.9337685108184814, -0.38359764218330383, -0.5716900825500488, -0.6008524894714355, 0.02317241206765175, 0.5963714122772217, 0.42995625734329224, -0.7233986854553223, 0.6300826072692871, 0.6323565244674683, 0.0006160755874589086, -0.487973690032959, -0.38282695412635803, -0.13376165926456451, 0.006802834570407867, -0.29199329018592834, 0.5347123742103577, -0.07521019130945206, 0.16552790999412537, 0.017257653176784515, -0.10228987038135529, -0.3441067636013031, 0.00294881546869874, 0.2872491478919983, 0.18376845121383667, -0.12826743721961975, 0.6878237128257751, 0.4260541498661041, -0.24270153045654297, -0.1251319795846939, -0.5018711090087891, 0.46392637491226196, 0.2120285928249359, -0.6666079759597778, -0.47613248229026794, 0.4897174537181854, 0.5815088748931885, -0.46940478682518005, 0.2409633845090866, 0.700708270072937, -0.7037222385406494, -0.22343292832374573, -0.31844648718833923, 0.05777934193611145, -0.4357646107673645, 0.39922329783439636, -0.22311057150363922, -0.440566748380661, 0.512019157409668, -0.34104257822036743, -0.2579539120197296, 0.5723735690116882, 0.25871211290359497, -0.07539884746074677, 1.1226063966751099, 0.6127250790596008, -0.1766156703233719, 0.05463354289531708, -0.6816566586494446, 0.1271250694990158, -1.0275808572769165, -0.7232180833816528, -0.7090373635292053, -0.21864165365695953, -0.5791367888450623, -0.5730621814727783, 0.8716327548027039, 0.11290648579597473, -0.2323535680770874, -0.3061026930809021, -0.7193170189857483, 0.19298027455806732, 0.3625548183917999, 0.6276243925094604, 0.260543555021286, 0.08225516229867935, -0.33870890736579895, 0.27839818596839905, -0.8430677652359009, 0.10600658506155014, 1.182675838470459, 0.3051297664642334, 1.0032947063446045, -0.1396862417459488, 0.9555597305297852, 0.375344455242157, 0.7699787020683289, -0.8589407801628113, -0.06065193936228752, -0.5577073097229004, -0.11054933071136475, -0.0841459259390831, -0.15511758625507355, -0.793332576751709, -0.08133620023727417, -0.059893958270549774, -0.5517536401748657, 0.6825634837150574, -0.011594722978770733, -0.4525676965713501, -0.06701140850782394, -0.8344176411628723, 0.7861747741699219, -0.6096537709236145, 0.08347345888614655, -0.24333368241786957, -0.5682114958763123, 0.1830865889787674, -0.1846889853477478, 0.2787856161594391, 0.1817656308412552, -0.1561768651008606, 0.7511641383171082, -0.49471989274024963, 0.8541797995567322, -0.04357306659221649, -0.009373522363603115, 0.19290292263031006, -0.29776450991630554, 0.7138984799385071, 0.5054196119308472, 0.12103427201509476, 0.07981724292039871, -0.2856072783470154, -0.10967570543289185, -0.6587909460067749, 0.8142063617706299, -0.7931155562400818, -0.22643251717090607, -0.4032190442085266, -0.26866012811660767, -0.19582431018352509, 0.42383643984794617, 0.2946886122226715, 1.038042426109314, 0.06884127110242844, -0.06299637258052826, 0.5943640470504761, -0.32302093505859375, 0.20260755717754364, 0.312111496925354, 0.24242526292800903, -0.5195701718330383, 1.1033949851989746, 0.37769800424575806, -0.08298740535974503, 0.6438506245613098, 0.1709834337234497, -0.3153878152370453, -0.7125144004821777, -0.6004599928855896, 0.1287136971950531, -0.990634560585022, -0.423695832490921, -0.9349721670150757, -0.3512531816959381, -0.43715596199035645, -0.1760360598564148, 0.09935223311185837, -0.00646301731467247, -0.680427074432373, -0.25206488370895386, 0.42501917481422424, 0.6288412809371948, -0.0053329626098275185, -0.018387624993920326, -1.0671241283416748, 0.6831089854240417, 0.25970184803009033, 0.7770839333534241, 0.15015093982219696, -0.23294901847839355, -0.5740657448768616, -0.00737753277644515, -0.1338871270418167, -0.7877036929130554, 0.4156884253025055, 0.28152209520339966, 0.8289399743080139, 0.744476854801178, 0.3611166775226593, 0.6809792518615723, -0.6913072466850281, 0.290822297334671, 0.4041115641593933, -0.5341468453407288, 0.38189443945884705, 0.02524881809949875, 0.0277033019810915, 0.47123783826828003, 0.774456262588501, -0.6761719584465027, -0.11150387674570084, -0.6202762722969055, -0.9686089754104614, 0.679365336894989, -0.4775865077972412, -0.030542900785803795, -0.2730846703052521, 0.40536579489707947, 0.3169746994972229, 0.011461272835731506, -0.2914515733718872, -0.5290661454200745, -0.04248173162341118, -0.6950089931488037, -0.20664678514003754, -0.22909457981586456, -0.26965680718421936, -0.46262890100479126, 0.47050097584724426, -0.40334591269493103, 0.28988298773765564, 0.6378283500671387, -0.22342205047607422, 0.05900414288043976, 0.017766911536455154, 0.5370687246322632, 0.5579189658164978, -0.09793613851070404, 0.30027899146080017, 0.02111615240573883, -0.6251631379127502, 0.23732538521289825, 0.4174092710018158, 0.016534097492694855, 0.07759381085634232, 0.2979033887386322, 0.7567363977432251, -0.033547330647706985, -0.42545226216316223, 0.4553385376930237, -0.14175160229206085, -0.05438391491770744, -0.329128235578537, -0.12696541845798492, -0.1031995415687561, 0.012306654825806618, 0.40381234884262085, 0.3546687066555023, 0.42115938663482666, -0.3673747777938843, 0.6592960357666016, 0.3963381052017212, -0.6984127163887024, -0.014685613103210926, 0.1898626685142517, 0.29502788186073303, -0.3663540482521057, 0.5797457098960876, -0.22090007364749908, -0.42785942554473877, 0.9674170017242432, 0.5441916584968567, 0.7217203378677368, -0.15701234340667725, 0.2535395920276642, 0.31600621342658997, 0.20259350538253784, 0.24692577123641968, 0.03678051382303238, -0.33224302530288696, -0.659379780292511, -0.4210647940635681, -0.3517410159111023, -0.12718512117862701, 0.2524394690990448, -0.5776437520980835, 0.37966468930244446, -0.4396367371082306, 0.06767763942480087, 0.1645861715078354, -0.11417774856090546, -0.777926504611969, 0.31331729888916016, 0.22898834943771362, 0.73467618227005, -0.6817276477813721, 0.8133829832077026, 0.6169341206550598, -0.3168039917945862, -0.6693867444992065, 0.1200815811753273, -0.3647460341453552, -0.5722246766090393, 0.6546735167503357, 0.30253297090530396, 0.2770117521286011, 0.005729512311518192, -0.10779184103012085, -0.8241571187973022, 0.8531190156936646, -0.1031653955578804, -0.5003246665000916, 0.01242094486951828, -0.22069616615772247, 0.6692869663238525, -0.49965646862983704, 0.3044002056121826, 0.3195808231830597, 0.24147899448871613, -0.11723282188177109, -0.8787733912467957, -0.0031465564388781786, -0.5055984854698181, -0.3940403461456299, 0.25490260124206543, -0.5431793332099915, 0.5772516131401062, -0.4729766845703125, -0.20646418631076813, -0.37174302339553833, 0.2791747450828552, -0.12953615188598633, 0.7005472183227539, 0.13707979023456573, 0.5615271329879761, 1.0104007720947266, 0.06273727118968964, 1.1541104316711426, -0.4738720655441284, 0.18058106303215027, 0.99847811460495, -0.24365106225013733, 0.1923653781414032, -0.06002463772892952, -0.12315991520881653, 0.454502135515213, 0.7420021295547485, -0.010954457335174084, 0.5972491502761841, 0.26284554600715637, -0.47161078453063965, -0.05515765771269798, -0.009239070117473602, -0.5886081457138062, 0.11814521253108978, 0.8897726535797119, -0.5494828820228577, -0.284056156873703, 0.37013399600982666, -0.40110018849372864, -0.14578238129615784, -0.4558386206626892, 1.2722750902175903, 0.07974200695753098, -0.518735945224762, 0.5763155221939087, 0.12286166101694107, 0.4331389367580414, -0.469942182302475, -0.4570711553096771, -0.07485266774892807, 0.37175998091697693, -0.22304484248161316, -0.36019179224967957, -0.02378898300230503, -0.49056047201156616, -0.2361237108707428, 0.12765991687774658, 0.6948615908622742, -0.5280227661132812, -0.7568724751472473, 0.21073414385318756, -0.0030458332039415836, -0.12211388349533081, 0.34282755851745605, -0.605180025100708, -0.3241111934185028, -0.20196101069450378, 0.2691764831542969, 0.417141318321228, 0.8473469614982605, -0.20527930557727814, 0.721197247505188, 0.7664986848831177, 0.0009046927443705499, -0.0518985353410244, 0.3852089047431946, 1.148594617843628, -0.16775108873844147, -0.963107705116272, -0.620529294013977, 0.24005235731601715, -0.1574220210313797, -0.028493423014879227, 0.46274900436401367, 0.9714928269386292, 0.664614737033844, -0.02653910033404827, 0.978236734867096, 0.32164907455444336, 0.3712395429611206, -0.5356152057647705, 0.828913688659668, -0.2902649939060211, 0.24443697929382324, -0.25994083285331726, -0.14678695797920227, -0.763134777545929, 0.3510146737098694, 0.021915653720498085, -0.2670489251613617, 0.7142530679702759, 0.4261457324028015, -0.06987883150577545, -0.3124755918979645, -0.0028547754045575857, 0.10689191520214081, 0.39063841104507446, 0.5822637677192688, 0.37580519914627075, -0.37031564116477966, 0.5539479851722717, -0.5938601493835449, -0.21356798708438873, -0.31531062722206116, -0.34084880352020264, -0.6783900260925293, -0.6355432271957397, -0.48041608929634094, -0.2730015218257904, 0.023015456274151802, 0.8454426527023315, 0.6104226112365723, -0.6899967789649963, 0.3415963053703308, -0.1187969446182251, 0.4589887261390686, -0.3516327440738678, -0.10767675936222076, 1.035153865814209, -0.30917009711265564, -0.49919193983078003, 0.15253561735153198, 0.33493518829345703, 0.18536752462387085, 0.2308633178472519, -0.21193429827690125, -0.17199526727199554, -0.5400892496109009, 0.46144992113113403, 0.0926002487540245, -0.22328639030456543, -0.08945086598396301, -0.17853493988513947, -0.0987880602478981, 0.3593396842479706, 0.9555270075798035, -0.8929235339164734, 0.6840875148773193, 0.43367767333984375, 0.6777493953704834, 0.5846236348152161, 0.17194363474845886, 0.07942069321870804, -0.824946403503418, 0.07769230753183365, 0.471792608499527, 0.26127147674560547, 0.09665768593549728, -0.7021923661231995, 0.19071318209171295, 0.2705743908882141, -0.373006135225296, -0.662502646446228, -0.12105323374271393, -0.7684037685394287, -0.1714174598455429, 0.907097339630127, -0.16103778779506683, -0.18065939843654633, -0.5678088665008545, -0.5131875276565552, 0.5036240816116333, -0.426466166973114, 0.7227456569671631, 0.061730701476335526, -0.47113603353500366, -0.13105857372283936, -0.24091693758964539, 0.5614909529685974, -0.3614230751991272, -0.7427316308021545, -0.2587500214576721, 0.48621371388435364, 0.027577443048357964, 0.4933396875858307, 0.862517237663269, -0.19855739176273346, 0.33327507972717285, -0.12631846964359283, 0.1773097813129425, -0.2117440551519394, -0.4352444112300873, -0.2820930480957031, 0.359321266412735, -0.07074286788702011, -0.3773505687713623 ]
http://arxiv.org/abs/2405.19076v2
http://arxiv.org/pdf/2405.19076v2
Cephalo: Multi-Modal Vision-Language Models for Bio-Inspired Materials Analysis and Design
2024-05-29T13:34:32
2024-06-02T15:03:24
Markus J. Buehler
cs.CV
cs.CV, cond-mat.mes-hall, cond-mat.mtrl-sci, cs.CL, cs.LG
We present Cephalo, a series of multimodal vision large language models (V-LLMs) designed for materials science applications, integrating visual and linguistic data for enhanced understanding and interaction within human-AI and multi-agent AI frameworks. A key innovation of Cephalo is its advanced dataset generation method, which employs a sophisticated algorithm to accurately detect and separate images and their corresponding textual descriptions from PDF documents, such as scientific papers. The method includes a careful refinement of image-text pairs through integrated vision and language processing, ensuring high-quality, contextually relevant, and well reasoned training data. Cephalo is trained on integrated image and text data extracted from thousands of scientific papers and science-focused Wikipedia pages demonstrates can interpret complex visual scenes, generate precise language descriptions, and answer queries about images effectively. The combination of a vision encoder with an autoregressive transformer supports complex natural language understanding in an integrated model, which can be coupled with other generative methods to create an image-to-text-to-image or image-to-text-to-3D pipeline. To explore the development of larger models from smaller ones, we report both mixture-of-expert methods and model merging. These hybrid approaches allow us to leverage the domain-specific expertise and general conversational capabilities to harness the strengths of multiple models. We examine the models in diverse use cases that incorporate biological materials, fracture and engineering analysis, protein biophysics, and bio-inspired design based on insect behavior. Generative applications include bio-inspired designs, including pollen-inspired architected materials, as well as the synthesis of bio-inspired material microstructures from a photograph of a solar eclipse.
[ -0.15726499259471893, -0.8416132926940918, 0.7221639752388, -0.04444566369056702, -0.1288696974515915, 0.3242262601852417, -0.09811981767416, -0.8889526128768921, 0.21888189017772675, 0.5197691321372986, -0.2666974365711212, -0.5789419412612915, -0.2165224254131317, 0.2948513329029083, -0.28852736949920654, 0.4987564980983734, -0.032056279480457306, 0.1208619624376297, -0.4220826327800751, -0.010267842561006546, 0.07065363973379135, -0.3305153548717499, -0.2519722878932953, -0.22811003029346466, 0.6072649955749512, 0.14993293583393097, 0.7599083781242371, 0.49039047956466675, 0.35405099391937256, 0.3972295820713043, -0.25526997447013855, 0.66559898853302, 0.03797117620706558, -0.1912045180797577, -0.25684958696365356, -0.3966732323169708, -0.5556312203407288, -0.2682494521141052, 0.47618094086647034, 0.9868742227554321, -0.01802612841129303, 0.011059610173106194, 0.48044610023498535, 0.4067598879337311, -0.6732769012451172, 0.24475333094596863, -0.4882253408432007, 0.2770642638206482, -0.19319184124469757, -0.3775860071182251, -0.4283485412597656, -0.11394334584474564, 0.24231377243995667, -0.7483755350112915, 0.10154429078102112, 0.0641789585351944, 0.6094451546669006, -0.03604276478290558, -0.33720797300338745, -0.36785462498664856, -0.6300624012947083, 0.8610718250274658, -0.587573230266571, 0.6666994690895081, -0.04876816272735596, 0.0675666332244873, -0.15079669654369354, -0.7171670794487, -0.6834181547164917, -0.24880091845989227, 0.08136733621358871, 0.3289625644683838, 0.19867004454135895, 0.29383739829063416, -0.31323572993278503, 0.4797247052192688, -0.7539111971855164, 0.03551601245999336, -0.6699990630149841, -0.3975529968738556, 0.38766688108444214, 0.1655956506729126, 0.3813502788543701, -0.23789502680301666, -0.5301737785339355, -0.14174635708332062, -0.26234546303749084, -0.2523097097873688, 0.11638627201318741, 0.022416790947318077, -0.1087987869977951, 0.7783291935920715, -0.08261242508888245, 0.8487043380737305, -0.2694926857948303, -0.25543975830078125, 0.3574356138706207, -0.454756498336792, -0.32317355275154114, -0.0264773927628994, 0.9625457525253296, 0.34912633895874023, -0.0024143443442881107, -0.23887412250041962, 0.02899847738444805, 0.28998664021492004, 0.07699770480394363, -0.6670821905136108, -0.2503000497817993, 0.3238096237182617, -0.771491289138794, -0.7733701467514038, -0.20421448349952698, -1.2827552556991577, -0.6310607194900513, -0.548283576965332, 0.4172942340373993, -0.37291446328163147, -0.32753652334213257, 0.39230915904045105, -0.09209985285997391, 0.182601660490036, 0.2893960177898407, -0.9559485912322998, 0.1236259713768959, 0.2748410403728485, 0.7523662447929382, -0.16610100865364075, -0.49128541350364685, -0.18155033886432648, 0.3163991868495941, -0.36031854152679443, 0.9666091799736023, -0.6771080493927002, -0.644874095916748, -0.1549336016178131, 0.029343169182538986, -0.04306131973862648, -0.5291363596916199, 0.3704144060611725, -0.28767329454421997, 0.16558386385440826, -0.03183911368250847, -0.0705329030752182, -0.3560827374458313, 0.24094846844673157, -0.7080352306365967, 0.6697145700454712, -0.026534194126725197, -0.6364704370498657, 0.1898069828748703, -0.631892740726471, -0.17030884325504303, 0.2385605424642563, -0.48097094893455505, -0.27882319688796997, 0.2453863024711609, -0.03664026036858559, 0.13445234298706055, -0.6675631999969482, 0.13559922575950623, -0.5359926819801331, 0.2653709948062897, 0.3378329873085022, -0.38623669743537903, 0.48342230916023254, 0.38209760189056396, -0.15411178767681122, 0.021836942061781883, -0.8970032334327698, 0.06173481047153473, 0.08867953717708588, -0.5153250694274902, -0.2708646357059479, 0.24643965065479279, 0.5360270738601685, 0.21537575125694275, 0.45406463742256165, -0.7302747368812561, -0.015741471201181412, -0.5047601461410522, 0.4626684784889221, 0.6364081501960754, -0.16949862241744995, 0.5945612788200378, 0.001599322073161602, 0.28961560130119324, -0.051706504076719284, 0.31562671065330505, -0.5076525807380676, -0.37615257501602173, -0.7284804582595825, -0.1156163364648819, 0.18801842629909515, 0.6538428068161011, -0.8631176948547363, 0.08336210995912552, 0.050214096903800964, -0.45243170857429504, -0.16757915914058685, 0.2684346139431, 0.2995223104953766, 0.632888674736023, 0.29451411962509155, -0.4217545688152313, -0.37195467948913574, -1.1371642351150513, -0.11908403784036636, -0.08380649983882904, -0.007334529887884855, 0.1988210529088974, 0.5128403306007385, -0.4819073975086212, 0.8755589723587036, -0.6037577390670776, 0.037317369133234024, 0.04706141725182533, 0.24447783827781677, 0.1519140601158142, 0.2523094415664673, 0.592383623123169, -1.0770751237869263, -0.3147770166397095, 0.6202827095985413, -1.0834040641784668, 0.0019097046460956335, -0.012069648131728172, 0.01398451067507267, 0.24276800453662872, 0.4906059503555298, -0.4540075361728668, 0.09640857577323914, 0.7677485942840576, -0.24858960509300232, 0.47197937965393066, -0.22346587479114532, 0.32761698961257935, -1.349056601524353, 0.16573645174503326, 0.296470582485199, 0.059159617871046066, -0.6318513751029968, 0.22977972030639648, -0.027302203699946404, -0.47683185338974, -0.8428748250007629, 0.5393948554992676, -0.7048599123954773, -0.06930360198020935, -0.42512303590774536, -0.16981136798858643, 0.32114705443382263, 0.60809326171875, 0.20583772659301758, 0.4632079303264618, 0.6911499500274658, -0.6254903674125671, 0.39399486780166626, 0.13215205073356628, -0.26388639211654663, 0.5250958204269409, -0.815881073474884, 0.132259801030159, -0.18032990396022797, -0.18018950521945953, -0.7349944710731506, -0.32450416684150696, 0.2920680344104767, -0.2307681143283844, 0.2686777412891388, 0.1082809716463089, -0.7677714228630066, -0.5039294958114624, -0.3491639196872711, 0.5538094639778137, 0.012830646708607674, -0.47017702460289, 1.251988410949707, 0.4740196466445923, -0.3649504780769348, -0.14600114524364471, -0.6434206366539001, 0.12975358963012695, -0.057206396013498306, -0.7705339193344116, 0.9258846044540405, -0.5392107367515564, -0.21862611174583435, -0.031075922772288322, -0.09180919826030731, -0.28901374340057373, -0.22498644888401031, 0.07715145498514175, 0.58652663230896, 0.02644137665629387, 0.06981200724840164, 0.19665057957172394, 0.10219879448413849, -0.029315173625946045, -0.3903265595436096, 0.5974349975585938, -0.3105379045009613, -0.34943947196006775, -0.34241122007369995, 0.4654221832752228, 1.1143832206726074, -0.2718987762928009, 0.5197250843048096, 0.4135507643222809, -0.5686493515968323, -0.038226451724767685, -0.42898398637771606, -0.01477438397705555, -0.5973421335220337, 0.4440183639526367, -0.5291866064071655, -0.35677412152290344, 0.4345981180667877, -0.19129285216331482, 0.14127150177955627, 0.34839877486228943, 0.67088383436203, -0.4379776120185852, 0.9075127840042114, 0.8974376916885376, 0.21131451427936554, 0.522686779499054, -0.2610662579536438, -0.0449799969792366, -0.6124932765960693, -0.6701866388320923, -0.19398871064186096, -0.05199055001139641, -0.4369221329689026, -0.5320729613304138, 0.5627844929695129, -0.22951605916023254, 0.12482103705406189, 0.15271198749542236, -0.8982851505279541, 0.5195453763008118, 0.11258972436189651, 0.3939908742904663, 0.27572956681251526, 0.1904115229845047, -0.3402078151702881, 0.13893155753612518, -0.7103029489517212, -0.6138448119163513, 0.908100962638855, 0.31490781903266907, 0.9530837535858154, -0.33437925577163696, 0.27103391289711, 0.3042052388191223, -0.10968061536550522, -0.8816004991531372, 0.5058619976043701, -0.04988889396190643, -0.3605891466140747, 0.07664339244365692, -0.10095077753067017, -0.9281721115112305, 0.4467177391052246, -0.4444821774959564, -0.4905310571193695, 0.7703983783721924, 0.2366018146276474, -0.3334099054336548, 0.42576977610588074, -0.7821492552757263, 0.8139512538909912, -0.6278375387191772, -0.4604349434375763, -0.38572388887405396, -0.3395792543888092, 0.2787795662879944, -0.3450154960155487, 0.6409709453582764, 0.17419905960559845, -0.14410047233104706, 0.4802529513835907, -0.21963518857955933, 1.1292052268981934, 0.27920034527778625, -0.303720623254776, 0.689095139503479, 0.1541632115840912, 0.09799855947494507, -0.06983307003974915, -0.18463146686553955, 0.2974548935890198, 0.09470759332180023, -0.34824666380882263, -0.15142856538295746, 0.5660664439201355, -0.5708789229393005, -0.2190759927034378, -0.21872258186340332, -0.5766351222991943, 0.09582982957363129, 0.2446213662624359, 0.3779502511024475, 0.6175380945205688, -0.17467227578163147, 0.2629554867744446, 0.6998648643493652, -0.5544315576553345, 0.5582011938095093, 0.43825292587280273, -0.07277286797761917, -0.6270419955253601, 1.014392375946045, 0.05033555254340172, 0.2509990334510803, 0.5325703024864197, 0.04888955131173134, -0.1026846393942833, -0.46296530961990356, -0.3597475588321686, 0.22937828302383423, -0.5548933744430542, -0.1377294361591339, -0.6523461937904358, -0.14673542976379395, -0.21500347554683685, -0.40456926822662354, -0.5328689217567444, -0.08005332201719284, -0.2587948739528656, 0.1528140902519226, 0.29663562774658203, 0.5932028293609619, -0.009292691014707088, -0.02046803943812847, -0.9318117499351501, 0.5986326932907104, 0.3962390124797821, 0.2514553964138031, -0.22519636154174805, -0.09219250828027725, -0.4378972351551056, 0.06988094002008438, -0.5873274207115173, -1.2087137699127197, 0.5596750974655151, 0.21032683551311493, 0.6995465755462646, 0.08438762277364731, -0.45527181029319763, 0.2780347168445587, -0.5780006647109985, 0.5816120505332947, 0.4101181924343109, -0.7488159537315369, 0.8093157410621643, -0.6392324566841125, 0.2453790307044983, 0.29614195227622986, 0.15974223613739014, -0.2605018615722656, -0.11546860635280609, -0.27588018774986267, -0.8431566953659058, 0.20854972302913666, 0.06619809567928314, -0.13933275640010834, 0.13657869398593903, 0.2031254917383194, 0.23769772052764893, 0.08425579220056534, -0.9253572821617126, 0.1606866419315338, -0.17360182106494904, -0.447553813457489, 0.37790536880493164, -0.14968037605285645, -0.044836003333330154, -0.03233277052640915, 0.23246997594833374, -0.502836287021637, 0.25723668932914734, 0.21219739317893982, -0.30955252051353455, -0.002126646228134632, 0.22124503552913666, 0.44397202134132385, 0.6509352922439575, 0.05520370602607727, -0.08153189718723297, 0.2511295974254608, -0.43633130192756653, -0.33301088213920593, 0.24424706399440765, 0.026975972577929497, -0.034915439784526825, 0.0698026493191719, 0.32029956579208374, 0.17962951958179474, -0.7183418869972229, 0.0534038320183754, 0.33171626925468445, -0.3985195457935333, -0.33931034803390503, -0.21580445766448975, -0.06791866570711136, 0.4418507516384125, 0.5218782424926758, 0.29947370290756226, 0.5832055807113647, -0.8217086791992188, 0.017758982256054878, 0.35531583428382874, -0.11354776471853256, -0.7004204392433167, 0.8566687107086182, 0.4363875091075897, -0.07480398565530777, 0.26772037148475647, 0.14965756237506866, -0.36169201135635376, 0.7624468803405762, 0.4213978350162506, 0.7386448383331299, -0.2672349810600281, 0.3368958830833435, 0.17365683615207672, 0.12878455221652985, 0.1765371412038803, 0.3386405408382416, -0.18129603564739227, -0.8034232258796692, -0.35731974244117737, -0.8657507300376892, -0.6257621049880981, -0.03974657505750656, -0.24994322657585144, 0.6068637371063232, -0.3658890128135681, -0.04209895059466362, 0.2977506220340729, -0.3257030248641968, -0.5721530914306641, 0.3470255434513092, 0.6776530146598816, 0.5950877666473389, -0.9950574040412903, 0.6844151020050049, 0.7993236780166626, -0.503732442855835, -0.11388366669416428, -0.46732527017593384, 0.23697529733181, -0.5828762054443359, 0.4933004081249237, -0.06593558937311172, -0.4041554033756256, -0.13493770360946655, -0.6085928082466125, -0.8610260486602783, 1.3018521070480347, 0.30204540491104126, -0.5540094971656799, -0.23105736076831818, 0.2797984480857849, 0.5103750824928284, -0.28870889544487, 0.03663919121026993, 0.23909471929073334, 0.36265793442726135, 0.08307599276304245, -0.9821943044662476, -0.3394106924533844, -0.54127436876297, 0.020372940227389336, 0.1411072164773941, -0.9289381504058838, 0.8169782757759094, -0.09723428636789322, -0.2363007664680481, 0.12659403681755066, 0.653003454208374, 0.5294696688652039, 0.43599167466163635, 0.5345559120178223, 0.4030100107192993, 0.5752356648445129, 0.15770120918750763, 1.039473295211792, -0.393541157245636, 0.1860206425189972, 0.6756371855735779, -0.20033404231071472, 0.555268406867981, 0.5326870679855347, 0.15089309215545654, 0.6356847286224365, 0.7017116546630859, -0.21353483200073242, 0.5850361585617065, -0.15473170578479767, -0.3984698951244354, -0.09908782690763474, -0.3738267123699188, -0.3407382667064667, 0.4395635426044464, 0.655521810054779, -0.5008755922317505, 0.024565409868955612, 0.27363499999046326, -0.30424830317497253, 0.23483958840370178, -0.3434513807296753, 0.35100510716438293, 0.23906026780605316, -0.0937509834766388, 0.22872577607631683, -0.0658126026391983, 0.854651153087616, -0.3956226706504822, -0.15721839666366577, 0.08482097089290619, 0.028522489592432976, -0.2538381516933441, -0.9010366797447205, 0.4130230247974396, -0.2098311483860016, -0.3144226372241974, -0.2722364366054535, 0.781043529510498, -0.26882606744766235, -0.7006598114967346, 0.3411077558994293, 0.4735703766345978, 0.07835794240236282, 0.20860977470874786, -0.711430549621582, 0.19143234193325043, -0.1394672989845276, -0.15717394649982452, 0.02421923168003559, 0.38426437973976135, -0.08813650161027908, 0.5046424269676208, 0.6498343348503113, -0.0995493233203888, -0.06688803434371948, -0.02164698764681816, 1.053223967552185, -0.6441069841384888, -0.13540051877498627, -0.6759098768234253, 0.8861559629440308, -0.044046856462955475, -0.09846009314060211, 0.36994582414627075, 0.9236559867858887, 0.6362492442131042, -0.29678598046302795, 0.7203518152236938, -0.00778959272429347, 0.15468694269657135, -0.6287654638290405, 0.5708168745040894, -0.7091633677482605, 0.05065421760082245, -0.35259681940078735, -1.0916868448257446, -0.3149036169052124, 0.4542923867702484, -0.004923692438751459, -0.036224380135536194, 0.7704253792762756, 0.8288862705230713, -0.19453708827495575, -0.18681924045085907, 0.2689710557460785, 0.16823849081993103, 0.25722426176071167, 0.45476600527763367, 0.7585174441337585, -0.3879416584968567, 0.9262579083442688, 0.012036305852234364, -0.23914234340190887, -0.10715056955814362, -0.6640588641166687, -0.7431808710098267, -0.6142505407333374, -0.395993709564209, -0.04361347109079361, -0.20399044454097748, 0.612708568572998, 0.8358078002929688, -0.49915817379951477, -0.19408880174160004, -0.36911994218826294, -0.21685312688350677, 0.24351145327091217, -0.203962042927742, 0.16224709153175354, -0.18761323392391205, -1.0890121459960938, 0.661828339099884, 0.621456503868103, 0.23511990904808044, -0.39053279161453247, 0.1125989705324173, 0.20080730319023132, 0.2079782634973526, 1.1080924272537231, 0.5356702208518982, -0.7468793392181396, 0.03090435266494751, 0.49268001317977905, -0.13914255797863007, 0.0035609968472272158, 0.39541885256767273, -0.8131136298179626, 0.778876006603241, 0.807167112827301, 0.4288131892681122, 0.5792433023452759, -0.4064118266105652, 0.7373886108398438, -0.21287128329277039, 0.1955813318490982, 0.13249140977859497, 0.6388116478919983, 0.3441668152809143, -0.3721061944961548, 0.5304312705993652, 0.2899905741214752, -0.4916226267814636, -0.6110648512840271, 0.3424977660179138, -1.4036632776260376, -0.546925961971283, 1.012661337852478, 0.4994363784790039, -0.6607822775840759, 0.0937347412109375, -0.4237957298755646, 0.10301130264997482, -0.11928360164165497, 0.7896151542663574, 0.5105662941932678, 0.013091758824884892, -0.4150319993495941, -0.6820653080940247, 0.01865077018737793, 0.2851927578449249, -1.094330072402954, -0.19610466063022614, 0.6510863304138184, 0.14899446070194244, 0.5617884397506714, 0.36338427662849426, -0.5392504334449768, 0.335720032453537, 0.04284036159515381, 0.45164617896080017, 0.14399021863937378, -0.5021025538444519, -0.07241372019052505, 0.2842238247394562, 0.019377300515770912, -0.2829332649707794 ]
http://arxiv.org/abs/2405.19041v1
http://arxiv.org/pdf/2405.19041v1
BLSP-KD: Bootstrapping Language-Speech Pre-training via Knowledge Distillation
2024-05-29T12:32:08
2024-05-29T12:32:08
Chen Wang, Minpeng Liao, Zhongqiang Huang, Jiajun Zhang
cs.CL
cs.CL, cs.SD, eess.AS
Recent end-to-end approaches have shown promise in extending large language models (LLMs) to speech inputs, but face limitations in directly assessing and optimizing alignment quality and fail to achieve fine-grained alignment due to speech-text length mismatch. We introduce BLSP-KD, a novel approach for Bootstrapping Language-Speech Pretraining via Knowledge Distillation, which addresses these limitations through two key techniques. First, it optimizes speech-text alignment by minimizing the divergence between the LLM's next-token prediction distributions for speech and text inputs using knowledge distillation. Second, it employs a continuous-integrate-andfire strategy to segment speech into tokens that correspond one-to-one with text tokens, enabling fine-grained alignment. We also introduce Partial LoRA (PLoRA), a new adaptation method supporting LLM finetuning for speech inputs under knowledge distillation. Quantitative evaluation shows that BLSP-KD outperforms previous end-to-end baselines and cascaded systems with comparable scale of parameters, facilitating general instruction-following capabilities for LLMs with speech inputs. This approach provides new possibilities for extending LLMs to spoken language interactions.
[ -0.1369227170944214, -0.6209760904312134, 0.4804813265800476, 0.2335653007030487, -0.45830971002578735, 0.5472429394721985, -0.3929937779903412, -0.14455808699131012, 0.046205565333366394, 0.13160774111747742, -0.562084972858429, -0.4101865887641907, -0.7055777311325073, -0.22023430466651917, -0.4574647843837738, 0.9606447815895081, 0.16439582407474518, 0.30314314365386963, -0.28776323795318604, 0.2348078489303589, -0.3760412335395813, -0.5028321743011475, -0.5220765471458435, -0.5703770518302917, 0.34102344512939453, 0.5003487467765808, 0.4130415618419647, 0.5685178637504578, 0.3269299268722534, 0.20261862874031067, -0.28516560792922974, -0.18186074495315552, -0.5105058550834656, 0.315256267786026, -0.09995071589946747, -0.32719194889068604, -0.17900197207927704, -0.025252915918827057, 0.6385415196418762, 0.9637057185173035, -0.438655823469162, 0.301047682762146, 0.3009437024593353, 0.9091546535491943, -0.9841762781143188, 0.01903853751718998, -0.6435715556144714, 0.056535571813583374, -0.2925359308719635, -0.11957386136054993, -0.4237600862979889, -0.35957592725753784, 0.3839258551597595, -0.4149380326271057, -0.18816572427749634, -0.2077523171901703, 0.7377320528030396, 0.7198535799980164, -0.08926194161176682, -0.4386001229286194, -0.9820521473884583, 0.5842582583427429, -0.7925130724906921, 0.7145800590515137, 0.46401408314704895, 0.4889599084854126, -0.027201803401112556, -0.7835478186607361, -0.7420488595962524, -0.09385810047388077, 0.09966524690389633, -0.13139019906520844, -0.02161152847111225, 0.16045337915420532, 0.14470352232456207, 0.2626037001609802, -0.47886744141578674, 0.3112667500972748, -0.26579511165618896, -0.28587716817855835, 0.361777663230896, -0.2337472289800644, 0.0064134784042835236, 0.2712757885456085, -0.5423925518989563, -0.19913136959075928, -0.6702682971954346, 0.05738291144371033, 0.23567555844783783, 0.38450559973716736, -0.2796823978424072, 0.4141925573348999, -0.4042450487613678, 0.9018206596374512, 0.3635281026363373, -0.49091067910194397, 0.3229007422924042, -0.3173048496246338, -0.4010011553764343, 0.5620936751365662, 0.6821025609970093, 0.24314706027507782, 0.27431178092956543, -0.19920046627521515, 0.004309261217713356, -0.09343422949314117, -0.28875064849853516, -0.8683978915214539, -0.35080471634864807, 0.20673631131649017, -0.11984824389219284, -0.3622555434703827, -0.38256552815437317, -0.7659371495246887, -0.5175408124923706, -0.536431074142456, 0.4923834502696991, -0.42422717809677124, -0.13610748946666718, 0.13721272349357605, -0.1920667588710785, 0.28987303376197815, -0.00899722333997488, -1.1979843378067017, 0.46220266819000244, 0.5829948782920837, 0.8382525444030762, -0.34201034903526306, -0.3160581588745117, -0.7916141748428345, 0.36376121640205383, -0.32831260561943054, 0.4854365587234497, -0.523337721824646, -0.14572690427303314, -0.031526822596788406, -0.24177643656730652, 0.2425161898136139, -0.5609188079833984, 0.39239051938056946, -0.5422065854072571, 0.06599850207567215, -0.2478962540626526, -0.8393433094024658, 0.12337619811296463, 0.07959029823541641, -0.20568154752254486, 0.847674548625946, -0.0028177453204989433, -0.6265299320220947, 0.6009513139724731, -0.35662558674812317, -0.5751082301139832, 0.11812375485897064, -0.23711837828159332, -0.07064129412174225, 0.06290215998888016, 0.12255558371543884, 0.5354992747306824, -0.2633226811885834, 0.3990325629711151, -0.17949305474758148, 0.00044391999836079776, -0.027192480862140656, -0.48165953159332275, 0.6794117093086243, 0.23734253644943237, -0.060874294489622116, 0.03343597427010536, -1.071507215499878, 0.12792742252349854, -0.0740516409277916, -0.39318808913230896, -0.38957422971725464, 0.03131529688835144, 0.030026063323020935, 0.2893317639827728, 0.597706139087677, -0.5759110450744629, 0.025572866201400757, -0.42174506187438965, 0.42649978399276733, 0.7189533114433289, -0.09941264241933823, 0.6111460328102112, -0.11250300705432892, 0.3851458728313446, 0.12605790793895721, 0.051691245287656784, -0.2852068245410919, -0.11428097635507584, -0.5672739148139954, -0.26580968499183655, 0.6984277963638306, 0.6435640454292297, -0.7417013049125671, 0.6470108032226562, -0.13236920535564423, -0.6933556795120239, -0.6401407122612, 0.10430846363306046, 0.6313722729682922, 0.7739632725715637, 0.42634931206703186, -0.21874427795410156, -0.5747062563896179, -0.6975134611129761, -0.00002105005296471063, -0.16594944894313812, -0.007115939166396856, -0.3351582884788513, 0.09769991040229797, 0.0694839209318161, 1.184845209121704, -0.5807937383651733, -0.3316498398780823, -0.1424221396446228, -0.1376086175441742, 0.04786394163966179, 0.5311968326568604, 0.25581616163253784, -0.46339502930641174, -0.7282336354255676, 0.1663666069507599, -0.2683747410774231, -0.3361318111419678, 0.11316170543432236, 0.07535557448863983, 0.2245548665523529, 0.7153363227844238, -0.5607754588127136, 0.14811687171459198, 0.8175578713417053, -0.19827577471733093, 0.6715272068977356, -0.08931595832109451, -0.12038339674472809, -1.1870986223220825, 0.04457296058535576, -0.1726216822862625, -0.3582477867603302, -0.9195160865783691, -0.20504945516586304, -0.04698267951607704, -0.09236044436693192, -0.5259860754013062, 0.4210343658924103, -0.29016393423080444, -0.29790690541267395, -0.3331120014190674, 0.2417764663696289, -0.11944951862096786, 0.4090598523616791, 0.1669977903366089, 0.6175498366355896, 0.7171320915222168, -0.6007956266403198, 0.5973477363586426, 0.14303873479366302, -0.5611225962638855, 0.5458877086639404, -0.4662562608718872, 0.2134157419204712, -0.02139919064939022, 0.16932639479637146, -0.9641587138175964, -0.04465901106595993, 0.03345395252108574, -0.36202895641326904, 0.6653649806976318, -0.34682393074035645, -0.4420694410800934, 0.07514315098524094, -0.0778958722949028, 0.38846200704574585, 0.7443847060203552, -0.5386114716529846, 0.37066176533699036, 0.3967261016368866, -0.5468345284461975, -0.6925423741340637, -0.5978739261627197, -0.032967206090688705, -0.15527601540088654, -0.3924645781517029, 0.41053473949432373, -0.10315567255020142, -0.10266046971082687, -0.22440335154533386, -0.2961633503437042, -0.13933487236499786, -0.04290340840816498, -0.1324635148048401, -0.015817129984498024, -0.16378086805343628, 0.012524508871138096, 0.32858186960220337, -0.19166739284992218, -0.13220925629138947, -0.4646715223789215, 1.078377604484558, 0.24205027520656586, -0.3067290484905243, -0.8503195643424988, -0.014296077191829681, 0.5781087279319763, -0.09432171285152435, 0.5213770866394043, 0.46054887771606445, -0.33926770091056824, -0.03753116726875305, -0.6674523949623108, -0.13507576286792755, -0.45717427134513855, 0.5115992426872253, -0.11604110896587372, -0.7843675017356873, 0.17708095908164978, -0.406149685382843, -0.01168604101985693, -0.08012079447507858, 0.6146605014801025, -0.30246561765670776, 0.5609087347984314, 0.7169703841209412, -0.40271785855293274, 0.4023626148700714, 0.1460743546485901, 0.11446148157119751, -0.5956291556358337, -0.21279729902744293, -0.5728978514671326, -0.5300172567367554, -0.21914643049240112, -0.5009638667106628, -0.06854714453220367, 0.3536219298839569, -0.24359644949436188, 0.07756012678146362, -0.23452037572860718, 0.6612869501113892, 0.4958873391151428, -0.3881353437900543, 0.32496801018714905, 0.07849545031785965, -0.1611017882823944, -0.044186390936374664, -0.632806122303009, -0.2898962199687958, 1.0733619928359985, 0.4431963562965393, 0.8161787986755371, -0.1715901643037796, 0.899783194065094, 0.15222907066345215, -0.1316407024860382, -0.8068169951438904, 0.42662501335144043, -0.20442335307598114, -0.24830372631549835, -0.6068822741508484, -0.23505598306655884, -0.5386132001876831, 0.06739143282175064, -0.12067636102437973, -0.8176438212394714, 0.14963304996490479, 0.34639760851860046, -0.4947272539138794, 0.05144539102911949, -1.0344324111938477, 0.7165507078170776, -0.24667257070541382, 0.0578119233250618, -0.058491725474596024, -0.8682413697242737, 0.2588188946247101, -0.3340601921081543, 0.2778468430042267, 0.04640820994973183, 0.040927864611148834, 0.8524861335754395, -0.6192821264266968, 0.775215208530426, -0.5860024094581604, -0.44711852073669434, 0.03725443780422211, -0.025449318811297417, 0.4628131687641144, -0.3812887370586395, 0.300754189491272, 0.046770527958869934, 0.4050784111022949, -0.30708402395248413, -0.6061481237411499, 0.5218451023101807, -0.6336065530776978, -0.4164004325866699, -0.2515205144882202, -0.5126868486404419, -0.5972529053688049, 0.18536102771759033, 0.20775294303894043, 0.20587828755378723, -0.18512886762619019, 0.30056121945381165, 0.5575724244117737, -0.12926895916461945, 0.5917900204658508, 0.5937169194221497, -0.5026065111160278, -0.45022985339164734, 1.0584338903427124, 0.06784485280513763, 0.6933842301368713, 0.45910027623176575, 0.36400216817855835, -0.534046471118927, -0.7023636102676392, -0.389639675617218, 0.01247578114271164, -0.6274831891059875, -0.15954089164733887, -0.20707687735557556, -0.28607499599456787, -0.5840250849723816, -0.04851752519607544, -0.5925161242485046, -0.4905887246131897, -0.12306088954210281, -0.10110300034284592, 0.14859558641910553, 0.37892061471939087, -0.19322942197322845, 0.6417350172996521, -0.6654193997383118, 0.39062583446502686, 0.3645193576812744, 0.38018107414245605, -0.0694282129406929, -0.6464938521385193, -0.2356879711151123, 0.1392270028591156, -0.2788850963115692, -0.9047217965126038, 0.26867806911468506, 0.44134441018104553, 0.15600958466529846, 0.48420315980911255, 0.00031040646717883646, 0.852203369140625, -0.809409499168396, 0.7590819597244263, 0.6132358312606812, -1.0698094367980957, 0.5896377563476562, 0.04706667736172676, 0.462880402803421, 0.6763978600502014, 0.37578606605529785, -0.6866487264633179, -0.24341599643230438, -0.2593047618865967, -0.7237006425857544, 0.7636138200759888, 0.08637648075819016, -0.0570681095123291, 0.21122489869594574, 0.1684231460094452, 0.20806226134300232, 0.3155152201652527, -0.5359755754470825, -0.40960800647735596, 0.060553643852472305, -0.35903528332710266, -0.24249738454818726, -0.3349299132823944, -0.12964265048503876, -0.29776713252067566, 0.9097931385040283, 0.010883405804634094, -0.33338451385498047, -0.007838408462703228, -0.23320214450359344, -0.02073531411588192, 0.34595754742622375, 0.6682119369506836, 0.6220417618751526, -0.05131492018699646, 0.13031771779060364, 0.159092977643013, -0.7385392189025879, 0.4643045961856842, 0.3007626235485077, -0.10154088586568832, -0.09032293409109116, 0.18367058038711548, 0.7505642175674438, 0.0891997441649437, -0.6855974793434143, 0.5089691877365112, 0.09330692887306213, -0.2821809649467468, -0.12303927540779114, -0.14348144829273224, 0.31829944252967834, 0.4768145680427551, 0.5300257205963135, -0.10211178660392761, -0.1767701655626297, -0.3638773560523987, 0.2687206566333771, 0.34142640233039856, -0.4543611407279968, -0.27694734930992126, 0.30148422718048096, 0.24725675582885742, -0.4875294268131256, 0.17708563804626465, -0.3496285378932953, -0.16818450391292572, 0.214431494474411, 0.5802748799324036, 0.7141565680503845, -0.6412568688392639, 0.17096516489982605, -0.07808686047792435, 0.14782218635082245, -0.09252525866031647, 0.28382372856140137, -0.29144906997680664, -0.747169017791748, -0.7823768854141235, -1.0103890895843506, -0.21917228400707245, 0.41669073700904846, -0.7306461930274963, 0.49123135209083557, -0.5134857892990112, 0.10004471242427826, 0.06433629989624023, -0.1867411732673645, -0.34845802187919617, 0.1447449028491974, 0.3686172664165497, 0.9052619338035583, -0.8654934763908386, 0.9386340975761414, 0.46382689476013184, -0.22152602672576904, -0.7367064356803894, 0.2770569622516632, -0.044574689120054245, -0.8261712193489075, 0.7734416127204895, -0.16536681354045868, -0.06337475776672363, 0.35652467608451843, -0.4734875559806824, -0.9965538382530212, 1.1966956853866577, 0.7664705514907837, -1.1100049018859863, -0.19352707266807556, 0.2966082692146301, 0.39428266882896423, -0.11464583873748779, -0.34909573197364807, 0.9069980978965759, 0.14808455109596252, 0.4325128495693207, -1.2600464820861816, -0.18138304352760315, 0.2645838260650635, -0.13170714676380157, 0.2046118527650833, -0.2786509692668915, 0.26815393567085266, 0.10371724516153336, -0.15257342159748077, -0.09121609479188919, 0.7015708684921265, 0.40163835883140564, 0.3869720697402954, 0.5494199991226196, 0.8092729449272156, 0.8254114389419556, 0.04788113757967949, 0.37168088555336, -0.5148717761039734, 0.25826722383499146, 1.4719748497009277, -0.5641434192657471, 1.0227668285369873, 0.788814127445221, -0.4054931402206421, 0.3037049472332001, 0.4118909537792206, 0.37122347950935364, 0.9469724893569946, 0.3729700446128845, -0.31474587321281433, 0.050980743020772934, 0.01293872855603695, -0.4753433167934418, 0.5057437419891357, 0.4040670692920685, -0.11456204205751419, -0.3932885229587555, 0.05940971150994301, -0.1151990294456482, 0.09354079514741898, -0.22575318813323975, 0.9840588569641113, 0.057421762496232986, -0.5355141162872314, 0.8242264986038208, -0.21487295627593994, 0.752712607383728, -0.6767562031745911, 0.09793957322835922, 0.04354194924235344, -0.03308320418000221, -0.2328215092420578, -0.5290012955665588, 0.1686476320028305, 0.10743261873722076, -0.17237558960914612, -0.32052531838417053, 0.6734722256660461, -0.8327569961547852, -0.27096229791641235, 0.15312214195728302, 0.5033227801322937, 0.20124925673007965, 0.07936074584722519, -0.4953222870826721, 0.1221398413181305, -0.13239064812660217, -0.022395074367523193, 0.6162476539611816, 0.521045446395874, 0.3688220977783203, 0.6027390360832214, 0.5631405115127563, 0.29411864280700684, 0.16818539798259735, 0.2520968019962311, 0.8226340413093567, -0.26601824164390564, -0.5947985649108887, -1.067229986190796, 0.3626994788646698, 0.06196356192231178, -0.1379343569278717, 0.2993294894695282, 0.6928855776786804, 0.9783087968826294, -0.05521019175648689, 0.8772403597831726, 0.016960417851805687, 0.5856257081031799, -0.823283314704895, 0.8909712433815002, -0.16909217834472656, 0.1265626847743988, -0.4813685715198517, -1.0124014616012573, 0.10354957729578018, 0.4706406593322754, -0.13763761520385742, -0.11895977705717087, 0.7010104060173035, 0.5127652287483215, 0.09120766073465347, -0.11477353423833847, 0.48185113072395325, 0.28023943305015564, 0.22068281471729279, 0.34446635842323303, 0.7974001169204712, -0.023407844826579094, 0.5120437741279602, -0.30877211689949036, -0.34459230303764343, 0.13891245424747467, -1.0014595985412598, -0.6558433175086975, -0.9072916507720947, -0.37483087182044983, -0.12261992692947388, 0.07788703590631485, 0.9988011717796326, 0.7841703295707703, -0.6194998621940613, -0.3943769931793213, -0.19758763909339905, -0.155945286154747, -0.09609188884496689, -0.12979406118392944, 0.28751295804977417, -0.7514119148254395, -0.5116117596626282, 0.5364631414413452, 0.4139992296695709, 0.21439091861248016, -0.3609806299209595, -0.255889892578125, -0.33966147899627686, -0.20081062614917755, 0.6633350253105164, 0.304900199174881, -0.698594868183136, -0.14350318908691406, -0.2758307456970215, 0.21949659287929535, -0.16296397149562836, 0.6060545444488525, -0.8721781969070435, 0.2959226369857788, 0.25331729650497437, 0.9492077827453613, 0.5715065002441406, -0.05874225124716759, 0.7085133194923401, -1.2681164741516113, 0.33804601430892944, 0.23002982139587402, 0.03415841981768608, 0.2901826798915863, -0.0003946985525544733, 0.0830526202917099, 0.19608326256275177, -0.4495079517364502, -1.0353248119354248, 0.4698660373687744, -0.8627734184265137, -0.17434373497962952, 1.2230302095413208, -0.0720210149884224, 0.10890893638134003, -0.08622059226036072, -0.2783932685852051, 0.32705527544021606, -0.30186840891838074, 0.7276625037193298, 1.0277138948440552, 0.13067182898521423, -0.179629385471344, -0.36199289560317993, 0.8914366960525513, 0.3707897365093231, -0.7388530373573303, 0.4066535234451294, 0.3745386600494385, 0.28436794877052307, 0.31999459862709045, 0.8073427081108093, 0.03458437696099281, 0.12577122449874878, -0.27393701672554016, 0.011287734843790531, 0.09746559709310532, -0.3258247971534729, -0.41043174266815186, 0.04806146025657654, 0.2696071267127991, -0.4225313365459442 ]
http://arxiv.org/abs/2405.19026v1
http://arxiv.org/pdf/2405.19026v1
DiveR-CT: Diversity-enhanced Red Teaming with Relaxing Constraints
2024-05-29T12:12:09
2024-05-29T12:12:09
Andrew Zhao, Quentin Xu, Matthieu Lin, Shenzhi Wang, Yong-jin Liu, Zilong Zheng, Gao Huang
cs.LG
cs.LG, cs.AI, cs.CL, cs.CR
Recent advances in large language models (LLMs) have made them indispensable, raising significant concerns over managing their safety. Automated red teaming offers a promising alternative to the labor-intensive and error-prone manual probing for vulnerabilities, providing more consistent and scalable safety evaluations. However, existing approaches often compromise diversity by focusing on maximizing attack success rate. Additionally, methods that decrease the cosine similarity from historical embeddings with semantic diversity rewards lead to novelty stagnation as history grows. To address these issues, we introduce DiveR-CT, which relaxes conventional constraints on the objective and semantic reward, granting greater freedom for the policy to enhance diversity. Our experiments demonstrate DiveR-CT's marked superiority over baselines by 1) generating data that perform better in various diversity metrics across different attack success rate levels, 2) better-enhancing resiliency in blue team models through safety tuning based on collected data, 3) allowing dynamic control of objective weights for reliable and controllable attack success rates, and 4) reducing susceptibility to reward overoptimization. Project details and code can be found at https://andrewzh112.github.io/#diverct.
[ -0.5151829719543457, -0.5980395674705505, 0.06540986150503159, 0.3508957624435425, -0.2097158133983612, 0.5676673650741577, -0.37630417943000793, -0.5096827149391174, 0.20041458308696747, 0.23618823289871216, -0.7258873581886292, -0.6611872911453247, -0.6854740381240845, 0.48185136914253235, -0.22848013043403625, 1.2433499097824097, 0.08865182846784592, -0.2311365306377411, 0.1089274063706398, -0.3662804365158081, -0.48552459478378296, -0.4321231544017792, -0.7676300406455994, -0.02672937512397766, 0.6350677609443665, 0.27560168504714966, 0.7146359086036682, 0.6861937642097473, 0.8763309121131897, 0.3094583749771118, -0.3609461784362793, 0.10469550639390945, -0.7926594018936157, 0.4196759760379791, -0.2099982351064682, -0.6384441256523132, -0.19567802548408508, -0.23141519725322723, 0.560401439666748, 0.6313594579696655, -0.29275038838386536, -0.49488118290901184, -0.03411180526018143, 0.6603862643241882, -0.8879210352897644, -0.10656614601612091, -0.7554895281791687, 0.04388493299484253, 0.15311843156814575, -0.22854945063591003, -0.25911945104599, -0.36058011651039124, 0.3582606911659241, -0.4674282968044281, 0.0793272852897644, -0.22630946338176727, 0.6884717345237732, 0.5025400519371033, -0.4964817762374878, -0.014826272614300251, -0.5810985565185547, 1.0196762084960938, -0.2770843803882599, 0.18150676786899567, 0.13926148414611816, 0.3045498728752136, 0.07664071023464203, -0.36607736349105835, -0.14663290977478027, -0.008816605433821678, 0.15547505021095276, 0.5727322101593018, -0.2926969826221466, 0.1609240621328354, -0.13953715562820435, 0.3171437382698059, -0.47057807445526123, 0.3755643665790558, -0.3991968631744385, -0.27537232637405396, 0.9355512261390686, 0.4952106177806854, 0.5013942718505859, 0.42813146114349365, -0.6857292652130127, -0.25494006276130676, -0.6204128265380859, -0.03665207326412201, 0.3823089301586151, 0.46148326992988586, -0.5150191783905029, 0.48126232624053955, -0.5306946635246277, 0.3533214032649994, -0.3497872054576874, 0.1344679296016693, 0.19413605332374573, -0.7115060687065125, -0.13322164118289948, -0.01213875599205494, 0.44843629002571106, 0.4453503489494324, 0.17606844007968903, -0.13516148924827576, -0.4021357297897339, 0.12572264671325684, 0.3195829391479492, -0.5938302278518677, -0.39622390270233154, 0.3148661255836487, -0.2693648338317871, -0.411940336227417, 0.07963673025369644, -0.6495276093482971, -0.31697842478752136, -0.03576478734612465, 0.09184130281209946, -0.48987868428230286, -0.568072497844696, 0.4216274619102478, -0.6917394399642944, 0.17489093542099, 0.3407358229160309, -0.5893614292144775, 0.18124110996723175, 0.6243545413017273, 0.9396588206291199, -0.6601537466049194, -0.3547649383544922, -0.4738735854625702, 0.21708087623119354, -0.01400265097618103, 0.47927719354629517, -0.46989721059799194, -0.7457806468009949, -0.02352607063949108, -0.29139116406440735, 0.1216379702091217, -0.48387908935546875, 0.19615626335144043, -0.49225905537605286, 0.1833549439907074, -0.17475277185440063, -0.5044136643409729, 0.0002603481989353895, 0.5665127038955688, -0.7835292220115662, 0.3526177406311035, 0.0572134293615818, -0.8998883962631226, 0.5077215433120728, -0.85792475938797, -0.3953077793121338, 0.35232919454574585, -0.1288388967514038, -0.48006319999694824, -0.11342775821685791, 0.05770685523748398, -0.03628874197602272, -0.030605219304561615, -0.2872985005378723, -0.3894542455673218, -0.2919531464576721, -0.1022077202796936, -0.1031680628657341, 1.2176213264465332, 0.23167705535888672, -0.30700263381004333, 0.2766853868961334, -0.11721795052289963, 0.057475149631500244, 0.13790568709373474, -0.8011473417282104, -0.3671332895755768, -0.10656433552503586, -0.22864413261413574, -0.28861090540885925, 0.15872812271118164, -0.5182284712791443, 0.21025465428829193, -0.49190670251846313, 0.299576073884964, 0.665992796421051, 0.0805337131023407, 0.6342806220054626, -0.6045650243759155, 0.7097100615501404, -0.11582167446613312, 0.38655152916908264, -0.027069129049777985, -0.3740106523036957, -0.49584153294563293, -1.1035614013671875, 0.24668996036052704, 0.7537329792976379, -0.7152060270309448, 0.5161808133125305, -0.2933303415775299, -0.46214184165000916, -0.3791347146034241, 0.04245749115943909, 0.28290486335754395, 0.13186389207839966, 0.522840142250061, -0.5450623631477356, -0.6713241934776306, -0.914612889289856, -0.12015614658594131, -0.20884311199188232, 0.03703688085079193, 0.3560633361339569, 0.5611327290534973, -0.3988078534603119, 1.1120513677597046, -0.5040180683135986, -0.19726943969726562, -0.6267828345298767, 0.154351145029068, 0.0997103825211525, 0.640013575553894, 0.3955138027667999, -1.0877981185913086, -0.4552931785583496, -0.11569192260503769, -0.5791628956794739, -0.012598192319273949, -0.10739874839782715, -0.016058681532740593, 0.5891223549842834, 0.3159703314304352, -0.4391765892505646, 0.23361027240753174, 0.6852283477783203, -0.39716053009033203, 0.4298330843448639, 0.01653711125254631, 0.08917693793773651, -0.7496559619903564, -0.09121052175760269, -0.2186008095741272, -0.11300969123840332, -0.5551071166992188, 0.4593077301979065, 0.018463661894202232, 0.24365681409835815, -0.6804580092430115, 0.33365964889526367, -0.31100648641586304, 0.17592519521713257, -0.21387390792369843, -0.13664789497852325, -0.20337511599063873, 0.1933838427066803, 0.19291894137859344, 0.4529704451560974, 0.5412702560424805, -0.728672444820404, 0.3407135009765625, 0.056396715342998505, -0.15319626033306122, 0.51518714427948, -0.8456971049308777, -0.11957812309265137, 0.022778429090976715, 0.4291290044784546, -0.640489935874939, -0.1702473759651184, -0.04477425292134285, -0.2936963438987732, 0.4410303235054016, -0.26304540038108826, -0.2559857964515686, -0.12498190999031067, -0.6836166381835938, 0.8509550094604492, 0.6173830032348633, -0.36357587575912476, 0.36054879426956177, 0.5305570363998413, -0.2474175989627838, -0.9029828310012817, -0.7821750640869141, 0.10567156970500946, -0.44222238659858704, -0.6899389028549194, 0.39868584275245667, -0.27919086813926697, -0.45522448420524597, -0.23237666487693787, -0.13041533529758453, -0.24865388870239258, 0.5800655484199524, 0.06535156816244125, 0.43956777453422546, -0.012490320950746536, -0.04390290379524231, 0.0363309346139431, -0.07093579322099686, -0.26507169008255005, -0.4145483076572418, 0.6132814884185791, -0.3205522894859314, -0.40328770875930786, -0.43138548731803894, 0.38164642453193665, 0.39178118109703064, -0.2676301598548889, 0.7818352580070496, 0.3804742097854614, -0.005921666510403156, -0.22022324800491333, -0.4379551112651825, -0.5466806888580322, -0.4890957772731781, 0.4764566421508789, 0.05934283509850502, -1.4216433763504028, 0.40172675251960754, 0.1285906732082367, 0.36417773365974426, 0.17073199152946472, 0.5935714840888977, -0.3490685820579529, 0.6095960736274719, 0.7226786613464355, -0.19743050634860992, 0.5164787173271179, -0.1923874169588089, -0.20995210111141205, -0.3234712481498718, -0.19006088376045227, -0.3134840428829193, -0.462897926568985, -0.6785409450531006, -0.11530813574790955, 0.5390986204147339, -0.11218689382076263, -0.4095144271850586, 0.19041258096694946, -0.6712419986724854, 0.6670548915863037, 0.4191100597381592, 0.0270604956895113, 0.3265702426433563, -0.3318714201450348, 0.12024848163127899, 0.07023244351148605, -0.7859966158866882, 0.08896617591381073, 1.0477193593978882, 0.4687909185886383, 0.8695825338363647, 0.4366706311702728, 1.284285545349121, 0.2953108847141266, 0.04052344709634781, -0.501451849937439, 0.42974090576171875, -0.004671239294111729, -0.6363222599029541, -0.5502943396568298, -0.6823911070823669, -1.2231197357177734, 0.21317538619041443, -0.3356057107448578, -0.3105525076389313, 0.06724841892719269, 0.08449485152959824, -0.4529961943626404, 0.22637267410755157, -0.5676466822624207, 0.3605027496814728, -0.22216282784938812, -0.22095738351345062, -0.36856982111930847, -0.700614333152771, 0.5308140516281128, 0.1079680398106575, -0.06117405742406845, 0.11509877443313599, -0.4629128575325012, 0.39510872960090637, -0.12797455489635468, 1.1308566331863403, 0.029274486005306244, -0.1005500853061676, 0.041310641914606094, 0.34233057498931885, 0.610713541507721, 0.22864383459091187, 0.1038837656378746, 0.29959601163864136, -0.36613190174102783, -0.678898811340332, -0.1689922958612442, 0.5807801485061646, -0.6424955129623413, -0.7709507942199707, -0.20975744724273682, -0.944953203201294, 0.2295769602060318, 0.3132619559764862, 0.17647694051265717, -0.08281073719263077, -0.1014791950583458, 0.5664836168289185, 0.8239655494689941, -0.3730197250843048, 0.7128216624259949, 0.5486612915992737, 0.23770712316036224, -0.6056722402572632, 0.7423896193504333, -0.13818387687206268, 0.6871545314788818, 0.48026037216186523, -0.07319847494363785, -0.28579214215278625, -0.9269835352897644, 0.052639033645391464, 0.04152607545256615, -0.4980475604534149, -0.34651288390159607, -0.6328455209732056, -0.12469211965799332, -0.09351658821105957, -0.5471302270889282, -0.5370168089866638, -0.6297990679740906, 0.05610543116927147, -0.14059731364250183, 0.2896292209625244, 0.47410762310028076, -0.16522808372974396, -0.026758112013339996, -0.7274265289306641, -0.12504321336746216, 0.35871797800064087, 0.2712118923664093, -0.6322501301765442, -0.15569424629211426, -0.16453056037425995, 0.030495597049593925, -0.17912782728672028, -0.5281643867492676, 0.4164345860481262, -0.1472729742527008, 0.6318731904029846, -0.08599326759576797, 0.36697280406951904, 0.06995640695095062, 0.13957065343856812, 0.7680155634880066, 0.3558954894542694, -0.8405539393424988, 0.6027831435203552, -0.6660298109054565, 0.4840221703052521, 0.6281920671463013, 0.1816679984331131, -0.039809755980968475, -0.851162850856781, -0.6477459073066711, -1.0494418144226074, 0.5223819613456726, 0.5125512480735779, -0.09680702537298203, -0.005794959142804146, -0.010693187825381756, -0.11460442841053009, 0.12565279006958008, -0.7971245646476746, -0.1893526017665863, -0.2813469469547272, -0.2550715506076813, 0.2647581398487091, -0.005304417572915554, -0.5312774181365967, 0.20343513786792755, 0.3320285677909851, -0.09404850751161575, -0.07404498010873795, 0.22702957689762115, -0.08791760355234146, 0.23287542164325714, 0.21058447659015656, 0.8918042778968811, 0.27008599042892456, -0.1573461890220642, 0.16157527267932892, 0.7609314918518066, -0.3343830406665802, -0.010700613260269165, -0.09625449031591415, -0.11056853830814362, -0.19897641241550446, 0.6413628458976746, 0.11439736187458038, -0.05600202456116676, -0.6981458067893982, 0.4867684543132782, -0.1252368986606598, -0.3058551251888275, -0.006820965092629194, 0.5520466566085815, 0.00017476170614827424, 0.41942429542541504, 0.1790565550327301, 0.047822125256061554, -0.13245287537574768, -0.2826034724712372, 0.2443818598985672, 0.8384057283401489, -0.27945438027381897, 0.093988336622715, 0.33868294954299927, 0.6953966617584229, -0.2415730506181717, 0.6478671431541443, 0.044385284185409546, -0.6427804827690125, 1.0497500896453857, 0.28098228573799133, 0.7945786714553833, -0.36114487051963806, -0.03901706263422966, 0.3306950628757477, 0.6252604126930237, -0.1373063325881958, 0.3040020167827606, -0.024592522531747818, -0.7642580270767212, -0.24139845371246338, -0.2246496081352234, -0.518910825252533, -0.2512176036834717, -0.6300099492073059, 0.30119356513023376, -0.5290848016738892, -0.14456523954868317, -0.574358344078064, -0.05262499302625656, -0.4849257469177246, 0.10776441544294357, 0.14791953563690186, 1.130074381828308, -0.6163340210914612, 0.6074787974357605, 0.49908947944641113, -0.5477927923202515, -0.15346689522266388, -0.08244521915912628, 0.2890119254589081, -0.6505482792854309, 0.7547297477722168, 0.06105371192097664, -0.26000913977622986, -0.09337250888347626, -0.47793734073638916, -0.7648392915725708, 1.4700433015823364, 0.3381471633911133, -0.6472895741462708, 0.25282755494117737, 0.10901571810245514, 0.3686554431915283, -0.43831419944763184, 0.10716318339109421, 0.45468562841415405, 0.5435148477554321, -0.20851866900920868, -0.8963618874549866, 0.04319773614406586, 0.05926623195409775, -0.21079015731811523, 0.22277194261550903, -0.69954514503479, 0.7931805849075317, -0.4753004014492035, -0.4273068904876709, -0.12242791056632996, 0.480634480714798, 0.5323665738105774, 0.19738613069057465, 0.8059672117233276, 0.5981792211532593, 0.7412135004997253, -0.11611318588256836, 1.2799516916275024, -0.05697997286915779, 0.32344913482666016, 1.0708262920379639, -0.1236467957496643, 0.5721797347068787, 0.437370628118515, -0.04393954947590828, 0.41699275374412537, 0.28878891468048096, -0.2246241718530655, 0.6712311506271362, 0.21340519189834595, -0.3673698902130127, -0.40642428398132324, -0.16990812122821808, -0.37364721298217773, 0.36299610137939453, 0.09629809111356735, -0.26294639706611633, -0.1936899572610855, -0.42268750071525574, -0.05005462467670441, -0.019371753558516502, -0.17473749816417694, 0.8341130614280701, -0.06040351837873459, -0.5177173614501953, 0.6506577134132385, -0.2783350348472595, 1.0594607591629028, -0.6806831955909729, 0.17296051979064941, -0.4436277151107788, 0.03445839509367943, -0.24986830353736877, -0.9526808261871338, 0.4826011657714844, -0.14437487721443176, -0.23632383346557617, -0.12521669268608093, 0.2634129226207733, -0.49501487612724304, 0.02608461305499077, 0.41146308183670044, 0.36724841594696045, -0.26764732599258423, 0.11903510242700577, -0.6040635108947754, 0.34712353348731995, 0.20883862674236298, 0.009619027376174927, 0.26870056986808777, 0.10645971447229385, 0.11852480471134186, 1.0172920227050781, 0.4948953092098236, 0.14790749549865723, -0.06369181722402573, -0.059946756809949875, 0.8582058548927307, -0.6198925375938416, -0.6357225775718689, -1.1953766345977783, 0.743053138256073, -0.3389255404472351, -0.262857049703598, 0.47541099786758423, 0.5903909802436829, 0.9691992402076721, 0.059030450880527496, 0.9373582601547241, 0.20964734256267548, 0.15041492879390717, -0.41925591230392456, 0.849757194519043, -0.49534669518470764, 0.5450261235237122, -0.06836264580488205, -0.5748457312583923, -0.6909992098808289, 0.1765909045934677, 0.09443911164999008, 0.005514232441782951, 0.6563810110092163, 0.8388465642929077, 0.14473067224025726, 0.06598298996686935, 0.2265111654996872, 0.06884113699197769, 0.66506427526474, 0.8016781210899353, 1.0884259939193726, 0.24608446657657623, 1.0190221071243286, -0.09912015497684479, -0.3356635272502899, -0.36529600620269775, -0.8876268267631531, -0.867733359336853, -0.1961740255355835, -0.5563191771507263, -0.15332087874412537, 0.2509676218032837, 0.9075897932052612, 0.7586472630500793, -0.7310738563537598, -0.16230806708335876, -0.4013085663318634, 0.3257538080215454, -0.16628216207027435, -0.20491747558116913, -0.04260769113898277, -0.658574104309082, -0.6810393929481506, 0.5062656998634338, 0.4962782859802246, 0.32579943537712097, -0.022297056391835213, -0.3425522446632385, 0.08609162271022797, 0.005995592102408409, 0.2655949294567108, 0.4889443814754486, -0.5522418022155762, -0.1795927733182907, -0.18176881968975067, -0.27521848678588867, -0.19381730258464813, 0.6162161231040955, -0.5986517071723938, 0.3891362249851227, 0.5860341191291809, 1.055836796760559, 0.15857045352458954, -0.07431329041719437, 0.8978350162506104, -0.64979487657547, 0.033821891993284225, 0.6367014050483704, 0.4686458706855774, 0.26888760924339294, -0.2639691233634949, 0.864816427230835, 0.2856670320034027, -0.34369227290153503, -1.0456111431121826, 0.49570390582084656, -0.9688316583633423, -0.4460023045539856, 1.2585127353668213, -0.24297189712524414, 0.2126408815383911, -0.3916541039943695, -0.0737302377820015, 0.2719096839427948, -0.4350411593914032, 1.070898413658142, 0.35850659012794495, -0.04545477405190468, 0.026183083653450012, 0.11498977243900299, 0.545030951499939, 0.8492093682289124, -0.8812734484672546, 0.009693734347820282, 0.2992745041847229, 0.31111419200897217, 0.08478792756795883, 0.3136780858039856, -0.035598546266555786, 0.5728099942207336, -0.11320484429597855, 0.09734521061182022, -0.24538373947143555, -0.41119813919067383, -0.4797602891921997, 0.4255349934101105, -0.10669303685426712, -0.31122294068336487 ]
http://arxiv.org/abs/2405.19010v1
http://arxiv.org/pdf/2405.19010v1
Evaluating the External and Parametric Knowledge Fusion of Large Language Models
2024-05-29T11:48:27
2024-05-29T11:48:27
Hao Zhang, Yuyang Zhang, Xiaoguang Li, Wenxuan Shi, Haonan Xu, Huanshuo Liu, Yasheng Wang, Lifeng Shang, Qun Liu, Yong Liu, Ruiming Tang
cs.CL
cs.CL, cs.AI, cs.IR
Integrating external knowledge into large language models (LLMs) presents a promising solution to overcome the limitations imposed by their antiquated and static parametric memory. Prior studies, however, have tended to over-reliance on external knowledge, underestimating the valuable contributions of an LLMs' intrinsic parametric knowledge. The efficacy of LLMs in blending external and parametric knowledge remains largely unexplored, especially in cases where external knowledge is incomplete and necessitates supplementation by their parametric knowledge. We propose to deconstruct knowledge fusion into four distinct scenarios, offering the first thorough investigation of LLM behavior across each. We develop a systematic pipeline for data construction and knowledge infusion to simulate these fusion scenarios, facilitating a series of controlled experiments. Our investigation reveals that enhancing parametric knowledge within LLMs can significantly bolster their capability for knowledge integration. Nonetheless, we identify persistent challenges in memorizing and eliciting parametric knowledge, and determining parametric knowledge boundaries. Our findings aim to steer future explorations on harmonizing external and parametric knowledge within LLMs.
[ -0.4704214334487915, -0.44902393221855164, 1.0531541109085083, -0.16416049003601074, -0.034684453159570694, 0.16906800866127014, -0.45806223154067993, -0.45112812519073486, -0.12153134495019913, 0.6928399801254272, -0.2607429027557373, -0.4537079334259033, -0.5013617277145386, -0.19372111558914185, -0.5354459881782532, 0.8360601663589478, -0.2723672091960907, 0.16558341681957245, -0.7127224802970886, -0.28558772802352905, -0.29302099347114563, -0.49694719910621643, -0.24212393164634705, -0.5274088978767395, 0.32455214858055115, 0.22972382605075836, 0.5139734148979187, 0.30430659651756287, 0.34415966272354126, 0.30445557832717896, -0.06936266273260117, 0.42377957701683044, -0.5972275733947754, -0.01660699024796486, -0.46007493138313293, -0.4064335227012634, 0.031229190528392792, -0.20474053919315338, 1.0792162418365479, 0.7894178032875061, -0.1846119463443756, 0.25682082772254944, 0.44046512246131897, 0.4527530074119568, -0.7017332911491394, 0.2962617874145508, -0.771073579788208, -0.21981096267700195, -0.1294865906238556, -0.0038628801703453064, -0.1255146563053131, -0.2858303189277649, 0.28384506702423096, -0.22884617745876312, -0.17269693315029144, -0.019462864845991135, 0.5514723062515259, 0.1585552990436554, -0.5449503064155579, -0.20870907604694366, -1.0329476594924927, 0.6311066746711731, -0.852557897567749, 0.6196203231811523, 0.29048171639442444, 0.3853280246257782, -0.21072116494178772, -0.538739025592804, -0.6184015274047852, -0.1437852829694748, -0.1266905665397644, -0.12195874005556107, -0.1656641662120819, 0.045731641352176666, 0.013166863471269608, 0.3005244731903076, -0.32701048254966736, 0.14561745524406433, -0.5751556158065796, -0.1505679041147232, 0.5181276798248291, 0.4508737325668335, 0.3408137261867523, 0.053728409111499786, -0.34502261877059937, 0.09743388742208481, -0.851227343082428, 0.04106616601347923, 0.3928450345993042, 0.28902748227119446, -0.106473408639431, 0.6720594167709351, -0.2505503296852112, 0.8613699078559875, -0.18767337501049042, -0.2958516776561737, 0.06508485972881317, -0.7165123820304871, -0.06652074307203293, -0.05244281888008118, 0.9029805064201355, 0.14582204818725586, -0.08586632460355759, -0.3033568561077118, -0.1993378847837448, -0.3401181101799011, -0.010104905813932419, -0.28434374928474426, -0.06025854870676994, 0.23485495150089264, -0.17978063225746155, 0.183744415640831, -0.1616823375225067, -0.642153799533844, -0.6575427055358887, -0.5802813172340393, 0.5628893971443176, -0.6451340317726135, -0.29232627153396606, -0.04031474143266678, -0.3140798807144165, 0.43482160568237305, 0.14273402094841003, -0.6767281293869019, 0.15810149908065796, 0.92368084192276, 0.6727094054222107, -0.027125125750899315, -0.5340810418128967, 0.02172023057937622, 0.6614547371864319, -0.14807544648647308, 0.9124698042869568, -0.5891092419624329, -0.38729164004325867, 0.29647135734558105, -0.26995524764060974, -0.0872071161866188, -0.5794553160667419, 0.17828857898712158, -0.4289434850215912, 0.2304491251707077, -0.682360053062439, -0.8172681927680969, -0.19980737566947937, 0.36669212579727173, -0.4631229639053345, 0.8113833665847778, 0.25395703315734863, -0.8011655211448669, 0.2650778889656067, -0.1886107623577118, -0.17852449417114258, 0.09970437735319138, -0.45715489983558655, 0.168425053358078, 0.009175624698400497, 0.039399005472660065, 0.32583552598953247, -0.9381417632102966, 0.4402388632297516, -0.5287834405899048, -0.14950360357761383, 0.20585283637046814, -0.10450693964958191, 0.6726447939872742, -0.12846411764621735, -0.025717243552207947, 0.07119439542293549, -0.6463795304298401, -0.2672741413116455, -0.06612449884414673, -0.17129568755626678, -0.5131016373634338, -0.18755078315734863, -0.4706699550151825, 0.36452311277389526, 0.5712971687316895, -0.5055319666862488, 0.08030977845191956, -0.4403265416622162, 0.2761245369911194, 0.6779643893241882, 0.2518346309661865, 0.6501272916793823, -0.5644776821136475, 0.392605185508728, 0.06078537181019783, 0.06746707856655121, 0.044148560613393784, -0.45876699686050415, -0.8811639547348022, 0.011817925609648228, 0.045854710042476654, 0.3321504592895508, -0.9589114189147949, 0.27499741315841675, -0.32556334137916565, -0.6154179573059082, -0.47366318106651306, 0.6374987959861755, 0.3556669056415558, 0.6674777269363403, 0.36135199666023254, 0.26244139671325684, -0.4815326929092407, -1.1326889991760254, -0.2354922592639923, -0.2798704504966736, -0.1615705043077469, 0.17270663380622864, 0.41240939497947693, -0.18427585065364838, 0.9485607147216797, -0.2854140102863312, -0.3189479410648346, -0.4458552300930023, -0.10762546211481094, 0.04065433889627457, 0.3601560592651367, 0.2697567641735077, -0.32977479696273804, -0.31112605333328247, 0.10076654702425003, -0.8673534393310547, 0.17403258383274078, 0.06577637046575546, -0.043453384190797806, -0.026265040040016174, 0.5731969475746155, -0.6868346333503723, -0.17447686195373535, 0.6699464321136475, -0.05831148847937584, 0.4495418071746826, -0.39266616106033325, 0.09605462849140167, -1.0451748371124268, 0.027002587914466858, 0.22228097915649414, 0.2554318308830261, -0.7146843075752258, 0.07575379312038422, 0.27525946497917175, 0.02588120475411415, -0.5372848510742188, 0.7238602638244629, -0.48246872425079346, -0.015187017619609833, -0.09936776012182236, 0.20111359655857086, -0.2180248647928238, 0.3615947961807251, -0.0039175706915557384, 0.6241692900657654, 0.5661547780036926, -0.5971958041191101, 0.5044718980789185, 0.20682591199874878, -0.7824514508247375, 0.5175685882568359, -0.3133171498775482, 0.01048207189887762, -0.3619561493396759, 0.43285125494003296, -1.133173942565918, -0.3054047226905823, 0.20162108540534973, 0.06669427454471588, 0.20393164455890656, -0.06547784060239792, -0.7535837292671204, -0.23195496201515198, -0.20748452842235565, 0.44109588861465454, 0.7584879398345947, -0.4530864357948303, 0.9478487372398376, 0.6054568886756897, -0.17782044410705566, -0.14766937494277954, -0.42831459641456604, 0.10872279107570648, -0.5576385855674744, -0.7744132280349731, 0.38645634055137634, 0.2428303062915802, -0.5402387380599976, -0.054107725620269775, 0.04537789523601532, -0.021056126803159714, -0.546134352684021, -0.00013085409591440111, 0.15697823464870453, -0.19411543011665344, 0.08138135820627213, 0.107337586581707, 0.0983920693397522, 0.1867556869983673, -0.3448377251625061, 0.5291510224342346, 0.07909427583217621, -0.6383461952209473, -0.4066582918167114, 0.18970397114753723, 0.7434533834457397, -0.13358379900455475, 1.0487840175628662, 0.38331374526023865, -0.510025680065155, -0.19306524097919464, -1.108115792274475, 0.06288065761327744, -0.48249849677085876, 0.12975792586803436, -0.30236274003982544, -0.6464081406593323, 0.7946498990058899, -0.11687792837619781, 0.04493870958685875, 0.4344201385974884, 0.5320585370063782, -0.12764087319374084, 0.8102513551712036, 0.5606600642204285, -0.056954994797706604, 0.20645056664943695, -0.23230452835559845, 0.1843128800392151, -1.1370654106140137, -0.7481858134269714, -0.33054396510124207, -0.3540289103984833, -0.287509948015213, -0.6195581555366516, 0.4892253577709198, -0.17780934274196625, -0.2611757218837738, 0.3407255709171295, 0.2314189225435257, 0.41891777515411377, 0.39134645462036133, 0.3263430595397949, 0.3805314600467682, -0.48393258452415466, -0.11073780059814453, 0.057267941534519196, -0.9555081129074097, -0.18202897906303406, 1.1265780925750732, 0.4905437231063843, 0.865665853023529, -0.024088967591524124, 0.7636821269989014, -0.41599002480506897, 0.2660598158836365, -0.4027268886566162, 0.6575145721435547, -0.0056378645822405815, -0.3097785413265228, -0.2699626088142395, -0.4353982210159302, -0.5093444585800171, 0.18526947498321533, -0.06756589561700821, -0.7964172959327698, 0.20726197957992554, 0.11856620013713837, -0.5126144886016846, 0.3381902277469635, -0.6701000332832336, 0.6135889887809753, -0.25074663758277893, -0.32068002223968506, -0.21900895237922668, -0.5704506635665894, 0.9100845456123352, -0.4194034934043884, 0.44960689544677734, -0.1020231619477272, -0.17830905318260193, 0.692451536655426, -0.23986217379570007, 0.8730311393737793, -0.06474162638187408, -0.6647666692733765, 0.22437845170497894, 0.05820637568831444, 0.6656848192214966, -0.045544058084487915, -0.04211918264627457, 0.1548045426607132, 0.20433688163757324, -0.14933842420578003, -0.7916778922080994, 0.9464618563652039, -0.539483904838562, -0.9314110279083252, -0.01514352485537529, -0.9437267780303955, -0.8784298300743103, -0.17028319835662842, 0.030706629157066345, 0.2402167022228241, -0.0825798511505127, 0.27419814467430115, 0.7290436625480652, -0.33829349279403687, 0.15513311326503754, 0.7270805835723877, -0.1578180491924286, -0.43794965744018555, 1.06143057346344, 0.1963229924440384, 0.3764384686946869, 0.366493821144104, 0.3830663561820984, -0.6305454969406128, -0.6421381831169128, -0.16896478831768036, 0.5306921005249023, -0.9092997908592224, -0.17754243314266205, -0.5954204201698303, -0.31428420543670654, -0.4620703458786011, 0.07627446204423904, -0.23975184559822083, 0.018440289422869682, -0.1833629161119461, 0.17260605096817017, 0.19153422117233276, 0.7210139036178589, 0.006351133342832327, 0.0771327093243599, -1.247222900390625, 0.16639479994773865, 0.26721635460853577, 0.2208143025636673, 0.0772797167301178, -0.6161110401153564, -0.25568780303001404, 0.16558490693569183, 0.0895114317536354, -0.8784127235412598, 0.21921034157276154, 0.06052813306450844, 0.9407190680503845, 0.47306856513023376, -0.008511428721249104, 0.8251193165779114, -0.46578413248062134, 0.7604675889015198, 0.09169916808605194, -0.8782163858413696, 0.25226306915283203, -0.6046445965766907, 0.5084068179130554, 0.6766307353973389, 0.596373438835144, -0.4147375524044037, -0.9286376237869263, -0.6123019456863403, -0.8227636218070984, 0.5323519706726074, -0.05131518095731735, 0.12997698783874512, 0.3077327609062195, 0.2984727621078491, 0.1460695117712021, 0.15207554399967194, -0.4349852204322815, 0.008307363837957382, 0.5334685444831848, -0.40164726972579956, -0.33526137471199036, -0.25885844230651855, -0.37454459071159363, -0.48258569836616516, 0.5896106362342834, 0.2731834352016449, -0.1420801877975464, -0.39906299114227295, -0.18257096409797668, 0.07495766133069992, 0.005388624966144562, 0.4821205139160156, 0.9586530923843384, 0.10302124172449112, 0.25419944524765015, 0.6356600522994995, 0.15638680756092072, 0.03495229035615921, -0.0571579784154892, 0.022074218839406967, -0.2812216281890869, 0.459066241979599, 0.4864977300167084, 0.6242079138755798, -0.8800213932991028, 0.194337859749794, 0.24407559633255005, -0.2265389859676361, -0.21930882334709167, 0.06315522640943527, 0.45752716064453125, 0.6065669655799866, 0.17219185829162598, -0.43604373931884766, -0.04230566695332527, -0.7701004147529602, 0.20802511274814606, 0.7290655374526978, -0.09685200452804565, -0.26662421226501465, 0.23963099718093872, 0.1978544145822525, -0.014597994275391102, 0.42457374930381775, 0.06017521396279335, -0.5550202131271362, 0.2861361801624298, 0.58937668800354, 0.5325559973716736, -0.2711091935634613, 0.002348140813410282, 0.10692458599805832, 0.2732280492782593, -0.22034311294555664, -0.0027352317702025175, -0.14053429663181305, -0.7586849927902222, -0.3398891091346741, -0.6802484393119812, -0.5036219954490662, 0.38679516315460205, -0.38838738203048706, 0.44449853897094727, -0.32847389578819275, 0.22112658619880676, -0.16982772946357727, -0.3034171760082245, -0.7203943133354187, -0.18333818018436432, 0.18742147088050842, 0.8934571146965027, -1.0775187015533447, 1.0170060396194458, 0.5208548307418823, -0.5160859227180481, -0.7020670771598816, 0.3126676082611084, 0.04005485028028488, -1.0711126327514648, 0.7100402116775513, -0.27366891503334045, 0.0035349486861377954, -0.007332277484238148, -0.024674192070961, -1.0594788789749146, 0.9980491995811462, 0.5754539966583252, -0.4122686982154846, -0.25518783926963806, 0.4935055375099182, 0.5669892430305481, -0.1948140263557434, -0.06450235098600388, 1.0067781209945679, 0.604535698890686, 0.34519335627555847, -1.0223443508148193, 0.23662972450256348, 0.1464884877204895, 0.031026631593704224, 0.5221985578536987, -0.5574269890785217, 0.7183132171630859, 0.09778756648302078, -0.21697436273097992, -0.09071342647075653, 0.7111541032791138, 0.04327239841222763, 0.03129652142524719, 0.2729434072971344, 0.6377727389335632, 0.5319820642471313, 0.1963702291250229, 0.7604283094406128, -0.66983562707901, 0.08123978227376938, 1.1759088039398193, -0.472873330116272, 0.8374097943305969, 0.7239210605621338, -0.31782516837120056, 0.4580599069595337, 0.37511298060417175, 0.11237247288227081, 0.4206526577472687, 0.10487522929906845, -0.6085816621780396, -0.2457372546195984, -0.1628885567188263, -0.48174768686294556, 0.5319615602493286, 0.47481203079223633, -0.25119203329086304, -0.5465533137321472, 0.22136512398719788, -0.264405220746994, -0.08657533675432205, -0.12552274763584137, 1.005205750465393, 0.07054027915000916, -0.7955189943313599, 0.43246182799339294, -0.0634763091802597, 0.46578192710876465, -0.81707763671875, 0.0730394721031189, -0.19065845012664795, 0.1580265611410141, -0.06498047709465027, -0.9914408922195435, 0.5389215350151062, -0.20974749326705933, 0.1948268562555313, -0.20831739902496338, 0.6629811525344849, -0.9435782432556152, -0.3692099452018738, 0.23210370540618896, 0.6197806596755981, -0.15087080001831055, -0.08640746772289276, -0.28229522705078125, 0.1747523844242096, 0.010736577212810516, 0.15995214879512787, 0.8207723498344421, 0.4765058755874634, 0.3342241644859314, 0.7243922352790833, 0.5928640961647034, 0.01499070692807436, -0.16751578450202942, -0.12551072239875793, 1.0631951093673706, -0.5135289430618286, -0.3913888931274414, -1.0280542373657227, 0.5662091970443726, 0.11353915184736252, -0.08270100504159927, 1.1097309589385986, 0.4813631474971771, 0.7235872745513916, 0.02889682725071907, 0.7742917537689209, 0.24652531743049622, 0.27788135409355164, -0.7141600251197815, 0.7213106751441956, -0.4840793311595917, 0.3900969922542572, -0.1449888050556183, -0.8873445391654968, 0.0830521509051323, -0.017233267426490784, -0.5182214975357056, -0.17859235405921936, 0.7330741286277771, 0.6123900413513184, -0.051103852689266205, -0.00827579665929079, 0.3092610836029053, -0.00255177216604352, 0.14327684044837952, 0.8107278943061829, 1.1425502300262451, -0.08179928362369537, 0.6593210101127625, -0.36635634303092957, -0.2318722903728485, 0.16410624980926514, -0.6225038170814514, -0.9089447259902954, -0.9731987714767456, -0.07026772946119308, -0.24815885722637177, -0.11476506292819977, 0.792265772819519, 0.20621216297149658, -0.6245667338371277, -0.47026678919792175, -0.11905033886432648, 0.17279039323329926, 0.23617298901081085, -0.17203304171562195, 0.14078646898269653, -0.3801926076412201, -0.6795636415481567, 0.6694192290306091, 0.22503453493118286, 0.17502979934215546, -0.6675933599472046, -0.09056039154529572, -0.13461244106292725, 0.18387503921985626, 0.4675810933113098, 0.36126744747161865, -0.7555456757545471, -0.16997669637203217, -0.22705619037151337, 0.12215971201658249, -0.25378596782684326, 1.000177025794983, -0.8141418695449829, 0.2942776679992676, 0.7863902449607849, 0.8242797255516052, 0.25920796394348145, 0.005247257649898529, 1.0814077854156494, -0.6273372173309326, 0.10444140434265137, 0.19470098614692688, 0.583979070186615, 0.19804103672504425, -0.1577165275812149, -0.07857036590576172, -0.010601409710943699, -0.3522639274597168, -1.0189896821975708, 0.2302277535200119, -0.5402913093566895, -0.341283917427063, 1.62228262424469, -0.01435875240713358, 0.13090598583221436, -0.2377239465713501, 0.03223230317234993, 0.10191124677658081, -0.09483028948307037, 0.7440233826637268, 0.9463996291160583, -0.3028305768966675, -0.1243940219283104, -0.36643558740615845, 0.5866202116012573, 0.1470130831003189, -1.056900143623352, 0.12285324186086655, 0.5182551145553589, 0.31979551911354065, 0.059839390218257904, 0.3131808638572693, 0.0621827132999897, -0.17709362506866455, 0.007735712919384241, -0.4024006128311157, -0.011089812032878399, -0.3386099934577942, -0.4132014811038971, 0.29159820079803467, 0.06410185247659683, 0.1296404004096985 ]
http://arxiv.org/abs/2405.18991v1
http://arxiv.org/pdf/2405.18991v1
EasyAnimate: A High-Performance Long Video Generation Method based on Transformer Architecture
2024-05-29T11:11:07
2024-05-29T11:11:07
Jiaqi Xu, Xinyi Zou, Kunzhe Huang, Yunkuo Chen, Bo Liu, MengLi Cheng, Xing Shi, Jun Huang
cs.CV
cs.CV, cs.CL, cs.MM
This paper presents EasyAnimate, an advanced method for video generation that leverages the power of transformer architecture for high-performance outcomes. We have expanded the DiT framework originally designed for 2D image synthesis to accommodate the complexities of 3D video generation by incorporating a motion module block. It is used to capture temporal dynamics, thereby ensuring the production of consistent frames and seamless motion transitions. The motion module can be adapted to various DiT baseline methods to generate video with different styles. It can also generate videos with different frame rates and resolutions during both training and inference phases, suitable for both images and videos. Moreover, we introduce slice VAE, a novel approach to condense the temporal axis, facilitating the generation of long duration videos. Currently, EasyAnimate exhibits the proficiency to generate videos with 144 frames. We provide a holistic ecosystem for video production based on DiT, encompassing aspects such as data pre-processing, VAE training, DiT models training (both the baseline model and LoRA model), and end-to-end video inference. Code is available at: https://github.com/aigc-apps/EasyAnimate. We are continuously working to enhance the performance of our method.
[ -0.38933321833610535, -0.8087442517280579, 0.3298867642879486, 0.3539615571498871, -0.33099275827407837, -0.18809635937213898, -0.042520921677351, 0.12798598408699036, 0.1479191929101944, 0.19496838748455048, -0.9240783452987671, -0.23272939026355743, -0.6198013424873352, -0.10098627954721451, -0.5408614277839661, 0.7847201228141785, -0.22624947130680084, -0.2204774171113968, 0.04811708629131317, -0.11778358370065689, -0.37606674432754517, -0.05231200531125069, -0.43233123421669006, -0.27159473299980164, 0.11371834576129913, 0.42621901631355286, 0.5516627430915833, 1.2491642236709595, 0.7124546766281128, 0.3764403760433197, 0.06795893609523773, 0.2756645083427429, -0.23277786374092102, 0.14569035172462463, 0.057206444442272186, -0.17501388490200043, -0.8425167798995972, -0.4204324781894684, 0.26742878556251526, 0.26962167024612427, -0.3075583279132843, 0.5327349901199341, -0.003673126455396414, 0.8308889865875244, -0.49156591296195984, 0.12473331391811371, -0.41517695784568787, 0.2681986391544342, -0.4193705916404724, 0.038352951407432556, 0.09187157452106476, -0.21625752747058868, -0.3743940591812134, -0.5757843852043152, 0.3332574963569641, -0.3298690915107727, 0.4252530634403229, 0.9607405066490173, -0.5504058599472046, -0.07603771239519119, -1.1805311441421509, 0.12538841366767883, -0.32647383213043213, 0.18601636588573456, -0.05661797523498535, 0.9736146330833435, -0.06489399820566177, -0.9974277019500732, -0.522186815738678, 0.1879105418920517, 0.26407328248023987, 0.3059031069278717, -0.16684597730636597, 0.2598174810409546, 0.7648289203643799, 0.4037768542766571, -0.5760968923568726, -0.10733197629451752, -0.11411009728908539, 0.2455337792634964, 0.5624949336051941, 0.2632739543914795, 0.1388445794582367, -0.8548611402511597, -0.6651623249053955, -0.24036385118961334, -0.5060882568359375, 0.23429065942764282, 0.5584798455238342, -0.29396289587020874, -0.10064341872930527, 0.49161455035209656, -0.38314011693000793, 0.10643257945775986, 0.2671831250190735, -0.16337135434150696, 0.01836738921701908, -0.3226572275161743, -0.42328470945358276, 0.22355039417743683, 0.5686452984809875, 0.47165724635124207, -0.3466290533542633, 0.5399678945541382, 0.02103905752301216, 0.06329187005758286, -0.02765524759888649, -1.3230314254760742, -0.4117216467857361, 0.10689429193735123, -0.32265785336494446, 0.11283110082149506, -0.008836844936013222, -1.1044902801513672, 0.19102968275547028, -0.3635265827178955, 0.5950736999511719, -0.4031442105770111, -0.4465242028236389, 0.1732877790927887, -0.04695514589548111, 0.3894799053668976, 0.401809424161911, -0.5525332689285278, 0.3485580086708069, 0.4439435601234436, 0.5136010646820068, -0.33422625064849854, -0.3453211784362793, -0.6387089490890503, 0.6589260101318359, -0.10349687933921814, 0.5935443639755249, 0.6884461641311646, -0.04880419000983238, 0.1075640618801117, 0.12204799056053162, 0.4780559539794922, -0.5196011662483215, 0.3325185179710388, -0.22052760422229767, -0.10869333148002625, 0.5254825353622437, -0.24247609078884125, -0.31682395935058594, 0.33253538608551025, -0.8062921166419983, 0.923855721950531, -0.16488675773143768, -0.3372536301612854, 0.248543381690979, -0.8441375494003296, -0.528714120388031, 0.13185466825962067, -0.14280441403388977, -0.6586771607398987, -0.1241602972149849, -0.026251861825585365, 0.3962734341621399, -0.1308383047580719, 0.5603154301643372, 0.2671250104904175, -0.10766346007585526, -0.12897157669067383, -1.0418974161148071, 0.2807686924934387, 0.3052399158477783, -0.7916627526283264, -0.020908214151859283, -1.1982595920562744, -0.07698573172092438, 0.047621261328458786, -0.13162057101726532, 0.20219403505325317, -0.055122435092926025, -0.1368417739868164, 0.23202814161777496, 0.04779177904129028, -0.4482405483722687, -0.010142505168914795, -0.05676138028502464, 0.4471057057380676, 0.651609480381012, -0.1647336483001709, 0.17268086969852448, -0.025775140151381493, 0.5281282067298889, -0.028847938403487206, 0.3842092454433441, -0.6960796117782593, -0.1104326918721199, -0.6569421291351318, -0.41493239998817444, -0.15510934591293335, 0.22427032887935638, -0.9381662011146545, 0.1539369821548462, -0.6603707075119019, -0.4814152419567108, -0.11552809178829193, 0.43337327241897583, 0.18432427942752838, 0.000830260687507689, 0.36547964811325073, -0.20343133807182312, -0.49717453122138977, -0.8680528402328491, 0.26456496119499207, 0.0656902939081192, -0.21921561658382416, 0.055323224514722824, 0.46679675579071045, 0.028530912473797798, 0.8003425002098083, -0.8047360181808472, -0.03584985435009003, -0.09305725991725922, 0.17683933675289154, 0.6744529008865356, 0.28870195150375366, 0.5494152903556824, -0.9590034484863281, -0.5096858739852905, -0.17885349690914154, -0.6125410795211792, 0.4803091585636139, -0.03660322725772858, -0.23727703094482422, -0.2910081446170807, 0.5936968922615051, -1.1816151142120361, 0.5979596972465515, 0.3914225995540619, 0.1227724701166153, 0.2762402892112732, -0.22217682003974915, 0.3854295313358307, -1.312224268913269, 0.023187527433037758, -0.32843318581581116, -0.6791958808898926, -0.3834924101829529, 0.13529010117053986, -0.32827630639076233, -0.6593601107597351, -1.3136954307556152, 0.09835290908813477, -0.17354106903076172, 0.15969069302082062, -0.30212923884391785, -0.2380252629518509, -0.07615971565246582, 0.9376683831214905, -0.13320256769657135, 0.3234770894050598, 0.42060038447380066, -0.9875401258468628, 0.8665292263031006, 0.20576979219913483, -0.49212855100631714, 0.8372644782066345, -0.6268895864486694, -0.1364573836326599, -0.19076621532440186, 0.26176372170448303, -0.873892068862915, -0.9873401522636414, -0.004688989836722612, -0.25259366631507874, 0.09787164628505707, -0.22951552271842957, -0.18055137991905212, -0.5015111565589905, -0.5265437960624695, 0.8040820360183716, 0.5943573117256165, -0.7245814800262451, 0.6660869121551514, -0.02394861914217472, -0.10301844030618668, -0.0481828898191452, -0.9890075922012329, 0.0672743171453476, -0.5465038418769836, -0.7537578344345093, 0.7088731527328491, -0.37770161032676697, 0.09428522735834122, -0.1274254024028778, -0.01065844390541315, -0.11990171670913696, -0.22056591510772705, 0.43520525097846985, 0.004349493887275457, -0.357907235622406, -0.3807304799556732, 0.28691238164901733, -0.27996277809143066, 0.014059918001294136, 0.17137254774570465, 0.36126697063446045, 0.1359350085258484, -0.4922603368759155, -0.6427846550941467, 0.6300577521324158, 0.8270285725593567, 0.2108316421508789, -0.1153322383761406, 0.8772871494293213, -0.570223867893219, -0.24953825771808624, -0.354897141456604, 0.07129210978746414, -0.5475574135780334, 0.7439755201339722, -0.25597208738327026, -0.18329688906669617, 0.173582524061203, -0.4707275331020355, -0.028407122939825058, 0.6198551654815674, 0.710431694984436, -0.3974268138408661, 1.0255547761917114, 0.19283783435821533, 0.6134235858917236, 0.7153996825218201, -0.8344681859016418, -0.0475078821182251, -0.4865308403968811, -0.06485393643379211, -0.037076979875564575, -0.4196259081363678, -0.6955543160438538, -0.4731692671775818, 0.6498266458511353, 0.21889427304267883, -0.7148981094360352, 0.5516188740730286, -0.40425917506217957, 0.4990551471710205, 0.26829421520233154, 0.04368189722299576, 0.3781813979148865, 0.04598703607916832, 0.6596173644065857, -0.09646174311637878, -0.7971308827400208, -0.18288838863372803, 0.6456394791603088, 0.20660114288330078, 0.7645266652107239, 0.51891028881073, 0.42300814390182495, 0.4046097695827484, -0.15196584165096283, -0.663101315498352, 0.795318067073822, -0.3134106993675232, -0.5852906107902527, -0.1517794132232666, -0.20238153636455536, -0.6956011652946472, -0.4787699282169342, 0.07977134734392166, -0.16371898353099823, -0.29005303978919983, 0.20655949413776398, -0.640981137752533, 0.41298800706863403, -0.43622711300849915, 0.5898942351341248, -0.5549262166023254, -0.8026873469352722, -0.06016121059656143, -0.758732795715332, 0.46949777007102966, 0.1832725554704666, 0.05260927230119705, 0.08311526477336884, 0.21714548766613007, 0.5059584379196167, -0.6011304259300232, 0.4542264938354492, -0.0928213894367218, 0.19026115536689758, 1.0348786115646362, 0.22490251064300537, 0.31930607557296753, 0.5040931701660156, 0.1989554464817047, -0.015963641926646233, -0.2996949851512909, -0.2309146523475647, -0.5405740141868591, 0.471212774515152, -0.4536914825439453, -0.5953378081321716, 0.035446543246507645, -0.09535735845565796, 0.44223061203956604, 0.23654817044734955, 0.5364494919776917, 0.41632434725761414, -0.2485007643699646, 0.46678537130355835, 0.4377114772796631, 0.06239135190844536, 1.118090033531189, -0.24028059840202332, -0.25949743390083313, -0.7771523594856262, 0.758588433265686, -0.04671695828437805, 0.3087303042411804, 0.2652412950992584, -0.056715741753578186, 0.08434697985649109, -0.08155648410320282, -0.8665934205055237, -0.4618555009365082, -0.309484601020813, -0.8174389600753784, -0.09770315885543823, -0.5210532546043396, -0.03565669432282448, -0.07308631390333176, -1.0254915952682495, -0.2656797766685486, 0.14589522778987885, -0.3068495988845825, 0.5995123386383057, 0.5536948442459106, -0.13695009052753448, 0.6187968850135803, -0.6881715059280396, 0.8717613816261292, 1.0580801963806152, 0.22379249334335327, -0.15614163875579834, 0.04847385361790657, -0.2890067398548126, -0.05492379888892174, -0.9189110398292542, -0.45119595527648926, 0.05178896710276604, 0.4793446958065033, 0.2857779860496521, 0.15312057733535767, -0.46101367473602295, 0.9058758616447449, -0.5878806710243225, 1.1768475770950317, 0.6649426817893982, -0.7514946460723877, 0.6496315002441406, -0.46248602867126465, 0.39140358567237854, 0.4819225072860718, 0.34080979228019714, -0.04713474214076996, 0.34441617131233215, -0.482494056224823, -1.0776041746139526, 0.4563787579536438, 0.6969853043556213, 0.23922455310821533, 0.0266985222697258, 0.40470021963119507, 0.39134281873703003, 0.2630794048309326, -0.701145589351654, -0.26000598073005676, -0.7594913244247437, -0.03955360874533653, 0.26552310585975647, 0.1411961168050766, 0.08317124843597412, -0.21328891813755035, 0.3795016407966614, -0.26260364055633545, 0.4081994593143463, 0.3737907409667969, -0.12016411870718002, -0.13121812045574188, 0.062364112585783005, 0.29016298055648804, 0.24081771075725555, -0.20937581360340118, -0.07438585162162781, 0.18534627556800842, -0.3273566663265228, 0.5323139429092407, -0.1437535583972931, -0.2493218034505844, 0.29108238220214844, 0.08696216344833374, 0.8717001080513, 0.10532557964324951, -0.2936386466026306, 0.8401671648025513, 0.08053214848041534, -0.36352524161338806, -0.6266338229179382, 0.12371034920215607, -0.08999719470739365, 0.3141925036907196, 0.2902856767177582, 0.25506535172462463, 0.21975214779376984, -0.6597598791122437, 0.45588231086730957, -0.2010042369365692, -0.06080140173435211, -0.5559859275817871, 1.1038062572479248, 0.46934056282043457, -0.766272783279419, 0.4913336932659149, -0.3193546235561371, -0.09047915041446686, 0.8686463236808777, 0.28695666790008545, 0.9197275638580322, -0.2902122437953949, 0.15165792405605316, 0.5863988399505615, -0.1858396977186203, -0.3405723571777344, 0.04646005854010582, -0.2884516716003418, -0.07088814675807953, -0.8167318105697632, -0.4794626235961914, -0.2625715136528015, 0.1474597305059433, -0.7786904573440552, 0.8860977292060852, -0.12330549955368042, -0.15647460520267487, -0.46642059087753296, -0.3510908782482147, -0.9590435028076172, 0.3447480797767639, 0.44662195444107056, 0.9246710538864136, -0.41234511137008667, 0.5597248673439026, 0.3089335262775421, -0.2665623724460602, -0.5519881844520569, -0.2732642889022827, -0.02737056091427803, -0.2338516116142273, 0.4667102098464966, 0.29822295904159546, -0.3790881931781769, -0.040474727749824524, -0.35063692927360535, -0.4856964647769928, 1.5017659664154053, 0.5511074066162109, -0.6819855570793152, -0.4059143364429474, 0.4722384810447693, 0.4884064793586731, -0.3195256292819977, 0.26312121748924255, 0.4263400137424469, 0.3253319263458252, 0.2847982943058014, -0.3320743441581726, -0.5104042291641235, -0.20205172896385193, 0.10132401436567307, 0.2616620361804962, -0.9672435522079468, 0.5270954966545105, 0.00429628137499094, -0.01691395789384842, 0.4927043318748474, 0.7639711499214172, 0.022046757861971855, 0.6977277398109436, 0.5176568627357483, 0.5493651628494263, 0.01682158373296261, 0.019931070506572723, 0.7054858207702637, -0.3310125172138214, 0.3438696265220642, 1.1609996557235718, 0.09406846016645432, 0.3893496096134186, 0.6060636043548584, -0.14322294294834137, 0.44729530811309814, 0.3414437174797058, 0.11007436364889145, 0.6559461951255798, -0.03522632271051407, 0.03767909109592438, -0.30201035737991333, -0.009119315072894096, -0.3067927062511444, 0.9779344201087952, 0.07916714251041412, -0.009409300051629543, -0.2364087700843811, 0.39253097772598267, -0.1353459656238556, 0.057233646512031555, -0.6808130741119385, 0.5440349578857422, -0.08888223767280579, -0.5421001315116882, 0.07369474321603775, -0.16103532910346985, 0.7238801717758179, -0.7069849371910095, -0.25344574451446533, -0.3513040542602539, 0.11123945564031601, -0.29290780425071716, -0.7057871222496033, 0.4714953601360321, 0.33416083455085754, 0.03086080215871334, -0.3451533317565918, 0.4274682104587555, -0.4678172469139099, -0.5110566020011902, 0.014768999069929123, 0.5956506729125977, 0.05662545934319496, -0.012425195425748825, -0.3667401969432831, -0.3199359178543091, -0.054615117609500885, -0.6722221970558167, 0.10206355154514313, 0.4990634620189667, 0.15704306960105896, 0.26853346824645996, 0.3400786519050598, -0.22340774536132812, 0.06953859329223633, -0.2728244662284851, 0.632534384727478, -0.6751167178153992, -0.2334771603345871, -0.9855244755744934, 0.8559677600860596, -0.06352229416370392, -0.35864582657814026, 0.2867383658885956, 0.7089125514030457, 0.6758594512939453, -0.2626214027404785, 0.3811884820461273, -0.2748994827270508, 0.016628453508019447, -0.7192153930664062, 0.33733269572257996, -0.6226863265037537, -0.14158421754837036, -0.18472768366336823, -1.377640962600708, -0.19449596107006073, 0.19227266311645508, 0.29265332221984863, -0.2335960865020752, 0.5890515446662903, 0.5104628801345825, -0.6842946410179138, -0.2578202784061432, 0.4122137129306793, 0.1568419337272644, 0.5668514370918274, 0.63027024269104, 0.508238673210144, -1.0821706056594849, 1.0870883464813232, -0.3781719505786896, 0.06348581612110138, 0.05180618539452553, -1.1225125789642334, -0.3115132749080658, -0.3326402008533478, -0.5422750115394592, 0.03717679902911186, -0.055089958012104034, 0.8635472655296326, 0.7995761632919312, -0.10151881724596024, -0.32592493295669556, -0.12256819009780884, -0.2803897559642792, -0.2548610270023346, -0.2792034447193146, 0.4254150688648224, 0.6165068745613098, -0.9773313403129578, 0.3464517295360565, 0.4110961854457855, -0.04236002266407013, -0.3472273051738739, -0.10082635283470154, 0.03894399106502533, 0.005996759049594402, 0.8426468968391418, 0.24587643146514893, 0.008898074738681316, -0.364774227142334, -0.053112056106328964, 0.018664725124835968, 0.5862695574760437, 0.8654592037200928, -0.45241138339042664, 0.1549828052520752, 0.5095732808113098, 0.3185827434062958, 1.0199154615402222, -0.043508611619472504, 0.4200114607810974, -0.5808907151222229, 0.2725926339626312, 0.001060073496773839, 0.4074014723300934, 0.2792612910270691, -0.21117590367794037, 0.5401314496994019, 0.06237826868891716, -0.4548850953578949, -0.5823007225990295, 0.5840626358985901, -1.173437237739563, 0.15165553987026215, 0.8433846235275269, -0.1835579127073288, -0.5797098875045776, 0.4846345782279968, -0.20931054651737213, 0.7245995998382568, 0.03239184245467186, 0.7025759220123291, 0.1101267859339714, -0.29541149735450745, 0.1915179193019867, -0.5859718322753906, 0.38525161147117615, 0.17244824767112732, -0.816014289855957, -0.1026035025715828, 0.16320161521434784, 0.36302313208580017, 0.3221636712551117, 0.14953725039958954, -0.229746013879776, 0.7455953359603882, 0.08242697268724442, 0.22034217417240143, -0.4547744393348694, -0.48251089453697205, -0.1657462865114212, 0.500648558139801, -0.43399596214294434, -0.36928173899650574 ]
http://arxiv.org/abs/2405.18974v1
http://arxiv.org/pdf/2405.18974v1
Encoding Hierarchical Schema via Concept Flow for Multifaceted Ideology Detection
2024-05-29T10:37:28
2024-05-29T10:37:28
Songtao Liu, Bang Wang, Wei Xiang, Han Xu, Minghua Xu
cs.CL
cs.CL
Multifaceted ideology detection (MID) aims to detect the ideological leanings of texts towards multiple facets. Previous studies on ideology detection mainly focus on one generic facet and ignore label semantics and explanatory descriptions of ideologies, which are a kind of instructive information and reveal the specific concepts of ideologies. In this paper, we develop a novel concept semantics-enhanced framework for the MID task. Specifically, we propose a bidirectional iterative concept flow (BICo) method to encode multifaceted ideologies. BICo enables the concepts to flow across levels of the schema tree and enriches concept representations with multi-granularity semantics. Furthermore, we explore concept attentive matching and concept-guided contrastive learning strategies to guide the model to capture ideology features with the learned concept semantics. Extensive experiments on the benchmark dataset show that our approach achieves state-of-the-art performance in MID, including in the cross-topic scenario.
[ -0.2945146858692169, -0.44991955161094666, 0.39381855726242065, -0.133663147687912, -0.776965856552124, 0.6791878938674927, -0.15678997337818146, -0.08211739361286163, 0.28209707140922546, 0.5136797428131104, -0.7821250557899475, -0.9434470534324646, -0.7439205646514893, -0.09877342730760574, -0.3914133608341217, 1.24506676197052, 0.1884307563304901, -0.1260421872138977, -0.17223970592021942, -0.07273701578378677, 0.0777614489197731, -0.27057909965515137, -0.44526949524879456, -0.35477739572525024, 0.3800104856491089, 0.7041212320327759, 0.5729513764381409, 0.6039541959762573, 0.18712641298770905, 0.2936193645000458, -0.12456765025854111, 0.13149593770503998, -0.24257558584213257, 0.25041988492012024, -0.43452703952789307, -0.31365352869033813, -0.2871815860271454, 0.1188448816537857, 0.6166084408760071, 0.6362683176994324, -0.36915889382362366, 0.015968384221196175, 0.27538248896598816, 0.5850996971130371, -0.8396943211555481, 0.3145524859428406, -1.0841087102890015, -0.36951273679733276, -0.6449768543243408, -0.15563419461250305, -0.3221311569213867, 0.2279064953327179, -0.019730636849999428, -0.5684588551521301, 0.09276986122131348, 0.2149743139743805, 1.0374339818954468, 0.316357284784317, -0.28395408391952515, -0.8705300092697144, -0.5298467874526978, 0.5487643480300903, -0.5128997564315796, 0.28717005252838135, 0.03506927192211151, 0.12306230515241623, 0.23738476634025574, -0.6894754767417908, -1.0556535720825195, 0.14743110537528992, -0.1060558333992958, 0.3251383900642395, -0.05764324590563774, 0.12660685181617737, -0.0733347162604332, 0.20855915546417236, -0.2674103379249573, 0.021518785506486893, -0.03602299466729164, -0.14982390403747559, 0.3198377788066864, 0.09347914159297943, -0.17479641735553741, -0.7744725346565247, -0.6984190344810486, -0.08598991483449936, -0.45889243483543396, 0.04006499797105789, 0.6414117813110352, 0.22655895352363586, -0.24500587582588196, 0.3694518506526947, -0.353842169046402, 0.26060566306114197, 0.26122722029685974, -0.1890179067850113, 0.32498669624328613, -0.84039306640625, 0.0886271521449089, 0.04936843365430832, 0.5147398114204407, 0.007872493006289005, 0.11591645330190659, 0.011975171975791454, -0.0056951455771923065, 0.2997949421405792, 0.12681014835834503, -0.9150051474571228, -0.2008892446756363, 0.35229483246803284, -0.41202154755592346, -0.3417426645755768, -0.052975717931985855, -0.7957830429077148, -0.29914987087249756, -0.22939614951610565, -0.051381755620241165, -0.6423149704933167, -0.3089250326156616, 0.09598149359226227, -0.33476054668426514, 0.49767211079597473, 0.2696622610092163, -0.5406011343002319, -0.04869518056511879, 0.8700940012931824, 0.8523610830307007, 0.11799129843711853, -0.0558246485888958, -0.3108540177345276, 0.6842775940895081, -0.24108938872814178, 1.270721197128296, -0.9377607703208923, -0.1430269479751587, 0.00026501622051000595, -0.27890074253082275, 0.02364223636686802, -0.3600485920906067, 0.6409348249435425, -0.23781877756118774, 0.16444943845272064, -0.10012267529964447, -0.4498335123062134, 0.1355055421590805, 0.29060471057891846, -0.3073033392429352, 0.8997290730476379, -0.030573643743991852, -1.2354556322097778, 0.41726556420326233, -0.7557748556137085, -0.37030842900276184, 0.26924121379852295, -0.3436063826084137, -0.35625749826431274, -0.17223870754241943, 0.05252398923039436, 0.6100012063980103, -0.28672847151756287, 0.06849557906389236, -0.452017605304718, -0.2443433552980423, -0.10288966447114944, -0.17858313024044037, 0.7351523637771606, 0.16558614373207092, -0.05614401027560234, 0.3062048554420471, -0.7531213164329529, -0.2736811339855194, -0.154399111866951, 0.10968321561813354, -0.8891305327415466, 0.31094440817832947, -0.13351599872112274, 0.4121173620223999, 0.08026695251464844, -0.6732261180877686, 0.21330687403678894, -0.2588122487068176, 0.21955329179763794, 0.919364869594574, -0.03079475834965706, 0.47838956117630005, -0.020187128335237503, -0.035954009741544724, 0.5857524275779724, -0.10547952353954315, -0.03769402951002121, -0.294315367937088, -0.8404916524887085, -0.7573932409286499, 0.16667130589485168, 0.7600815296173096, -1.5292195081710815, 0.6458668112754822, -0.3967683017253876, -0.3637799918651581, -0.6221185922622681, 0.05360352620482445, 0.2782842218875885, 0.3597341775894165, 0.2992246150970459, -0.0793919786810875, -0.3080476224422455, -1.158869743347168, -0.2878984808921814, -0.3454208970069885, -0.06852947175502777, 0.03378390893340111, 0.9279540181159973, -0.20621444284915924, 0.528260350227356, -0.4553821086883545, -0.33940282464027405, -0.14361736178398132, 0.6694104075431824, -0.02960282377898693, 0.25614219903945923, 0.2734501361846924, -0.8446066379547119, -0.47582340240478516, 0.1615573763847351, -0.43044015765190125, -0.08142600208520889, -0.18125224113464355, -0.4940190613269806, -0.07716115564107895, 0.4749583303928375, -0.5372719764709473, 0.4027811586856842, 0.15951967239379883, -0.5309119820594788, 0.239259734749794, 0.15777090191841125, -0.02073126845061779, -1.5912331342697144, -0.02849934622645378, -0.06317117065191269, -0.022489888593554497, -0.5683518648147583, 0.0009532307740300894, 0.09521830081939697, 0.19917087256908417, -0.30232349038124084, 0.13297568261623383, -0.3492797017097473, 0.12028778344392776, -0.25679251551628113, 0.16553370654582977, -0.002158182905986905, 0.3435271978378296, 0.2857998013496399, 0.5769768953323364, 0.5850698947906494, -0.22757211327552795, 0.20322611927986145, 0.13516348600387573, -0.10296972095966339, 1.4193336963653564, -0.26050788164138794, 0.3238268196582794, -0.5139247179031372, 0.464690238237381, -0.9615124464035034, 0.024224374443292618, 0.5258956551551819, -0.21958133578300476, 0.434352844953537, -0.22385425865650177, -0.6105531454086304, -0.13061034679412842, -0.5663530230522156, -0.016640905290842056, 0.04540354013442993, -0.20072871446609497, 0.8009849190711975, 0.24311353266239166, -0.10700380802154541, -0.9744980931282043, -0.06874558329582214, 0.014996550045907497, -0.29446226358413696, -0.5020648837089539, 0.8223087787628174, 0.07773445546627045, -0.1361713409423828, 0.19792041182518005, -0.15012986958026886, 0.017736604437232018, -0.2749762535095215, 0.13902238011360168, 0.4016956686973572, 0.12096161395311356, 0.14887671172618866, 0.47319483757019043, -0.1917695850133896, -0.007764718029648066, -0.32366517186164856, 0.5016716122627258, -0.15951471030712128, -0.22402529418468475, -0.4181976616382599, 0.8678654432296753, 0.6362259387969971, -0.33892372250556946, 0.7074810862541199, 0.8092753291130066, -0.5102015137672424, -0.580152153968811, -0.14912298321723938, 0.015437480993568897, -0.4594971835613251, 0.4618282914161682, -0.514596700668335, -0.31622883677482605, 0.5806335806846619, -0.5018760561943054, 0.014148864895105362, 0.43248024582862854, 0.7055371403694153, -0.47096070647239685, 0.6940077543258667, 0.5318465828895569, 0.31698858737945557, 0.4300377666950226, -0.7583935856819153, 0.29108038544654846, -1.0257885456085205, -0.5014532804489136, -0.7679142355918884, -0.2989322543144226, -0.5368585586547852, -0.7187968492507935, 0.40151530504226685, -0.034135837107896805, -0.2132105976343155, 0.017920350655913353, -0.6217448711395264, 0.24835912883281708, 0.13575288653373718, 0.02970939129590988, 0.3985366225242615, -0.007336474023759365, -0.1345389485359192, -0.03812256455421448, -0.49067196249961853, -0.4405212104320526, 0.7970812916755676, 0.12676870822906494, 0.7323012948036194, -0.10448377579450607, 0.6492771506309509, 0.2839706242084503, 0.4262697100639343, -0.8592734336853027, 0.42710018157958984, -0.679160475730896, -0.385635644197464, -0.01386598963290453, -0.27181869745254517, -0.4968562424182892, 0.46257805824279785, -0.26969587802886963, -0.3801743686199188, 0.49461567401885986, -0.32440274953842163, -0.15460409224033356, 0.44614967703819275, -0.2616925835609436, 0.7011149525642395, 0.03148127347230911, -0.32864677906036377, -0.6066486239433289, -0.7898032665252686, 0.15176674723625183, 0.20849686861038208, 0.3157075345516205, -0.19115576148033142, -0.3516333997249603, 0.7351165413856506, -0.012703610584139824, 0.8311325907707214, -0.2479194849729538, 0.07117567211389542, 0.09416034072637558, -0.3627563714981079, 0.3200935423374176, 0.013404094614088535, -0.044998787343502045, 0.4344644844532013, 0.15513744950294495, -0.5373325347900391, -0.48333510756492615, 0.514920711517334, -0.5181389451026917, -0.5086067914962769, -0.6348709464073181, -0.7856405377388, -0.11750847846269608, 0.0597696416079998, 0.41617658734321594, 0.14328238368034363, -0.016715185716748238, 0.4159988760948181, 0.6312801837921143, 0.32483768463134766, 0.29780808091163635, 0.18043863773345947, 0.36779269576072693, -0.13855822384357452, 0.6588819622993469, 0.21088974177837372, 0.2829110026359558, 0.2779293954372406, 0.1341380625963211, -0.401815265417099, -0.7426106929779053, -0.8336786031723022, 0.08727981895208359, -0.882178008556366, -0.4369705617427826, -0.5304192304611206, -0.250161737203598, 0.00016938163025770336, -0.1047082394361496, -0.5247491598129272, -0.04837779700756073, 0.08570596575737, 0.26721006631851196, 0.10243643820285797, 0.5015053749084473, 0.16041460633277893, 0.3917422592639923, -0.1601605862379074, 0.4240491986274719, 0.08749540895223618, 0.17826266586780548, -0.33957988023757935, -0.41657528281211853, -0.1626984179019928, 0.05839085951447487, -0.4146560728549957, -1.1300595998764038, -0.13606448471546173, 0.2987552583217621, 0.4540472626686096, 0.7106302380561829, 0.25146186351776123, 0.7002829909324646, -0.38655224442481995, 0.37047404050827026, 0.051998477429151535, -1.135061502456665, 0.6144176721572876, 0.09357912093400955, 0.10509610176086426, 0.5315062999725342, 0.6252877116203308, -0.453226238489151, -0.41458094120025635, -0.3897901773452759, -0.6608201861381531, 0.4489040672779083, 0.26223045587539673, 0.23962759971618652, 0.10658831894397736, 0.31861335039138794, 0.25345379114151, 0.30968955159187317, -0.32428669929504395, -0.2747354507446289, -0.5448516607284546, -0.3679753839969635, 0.5278096795082092, 0.16388294100761414, -0.3362676203250885, -0.28068646788597107, 0.5437542796134949, -0.6008642911911011, 0.054779741913080215, 0.023830091580748558, 0.17695848643779755, 0.15002277493476868, 0.45775535702705383, -0.014208939857780933, 0.31501397490501404, -0.11152913421392441, 0.19076474010944366, -0.11998733133077621, -0.42455556988716125, -0.10075359791517258, 0.24433721601963043, -0.3976011872291565, 0.11549284309148788, 0.5408286452293396, 0.6629460453987122, 0.12552252411842346, -0.12205594778060913, 0.621431827545166, 0.21897898614406586, -0.008203735575079918, -0.14706091582775116, -0.1370745748281479, 0.3327823281288147, 0.24928918480873108, 0.4473542273044586, 0.24464651942253113, 0.4167352318763733, -1.0966538190841675, 0.25950005650520325, 0.9546830058097839, -0.17947515845298767, -0.21629270911216736, 0.17773601412773132, 0.27491113543510437, 0.0944594070315361, 0.4234260618686676, -0.43410998582839966, -0.8344840407371521, 0.2661777436733246, 0.33676233887672424, 0.7858207821846008, -0.14631476998329163, 0.4140241742134094, 0.26660722494125366, 0.2143244594335556, 0.7844771146774292, 0.38602587580680847, -0.41042402386665344, -0.9135374426841736, -0.2791205644607544, -0.6544297933578491, -0.4221040606498718, -0.11160549521446228, -0.726624608039856, 0.2576260268688202, -0.404427707195282, 0.23222686350345612, 0.358856201171875, 0.14866545796394348, -0.602289080619812, -0.17441235482692719, 0.42300477623939514, 0.6907626390457153, -0.9546324610710144, 1.2405483722686768, 0.689302384853363, -0.19523605704307556, -0.43415120244026184, 0.37699320912361145, 0.01296996884047985, -0.6989201307296753, 0.3315819203853607, 0.0034689055755734444, -0.6743564009666443, -0.16603191196918488, -0.612216591835022, -0.5142229199409485, 1.1991077661514282, -0.01895853690803051, -0.37478107213974, -0.37885597348213196, -0.0632212832570076, 0.3973185122013092, -0.9263001680374146, 0.12104518711566925, 0.5793107748031616, 0.4765467047691345, 0.6395396590232849, -0.5079692602157593, 0.006814895663410425, -0.2002187967300415, -0.016194535419344902, 0.1496269702911377, -0.5198947191238403, 0.9637913107872009, -0.1619182974100113, -0.4989382028579712, -0.17313003540039062, 0.723216712474823, 0.18976664543151855, 0.6536040902137756, 0.7753136157989502, 0.4977705776691437, 0.7170703411102295, -0.15253829956054688, 0.7218952178955078, -0.544495701789856, 0.25903618335723877, 0.8611542582511902, -0.47275295853614807, 0.9688297510147095, 0.6368844509124756, 0.11159771680831909, 1.392837643623352, 0.548710823059082, 0.5029609799385071, 0.7672953009605408, 0.05429760366678238, -0.2598615288734436, -0.3694990277290344, -0.4672397971153259, -0.2240976244211197, 0.8276801705360413, 0.9790001511573792, -0.002038275822997093, -0.4352852404117584, -0.01878698542714119, 0.1876695156097412, 0.21829161047935486, -0.25905680656433105, 0.7899373173713684, -0.16005177795886993, -0.34254127740859985, 0.4259883761405945, 0.025727881118655205, 0.8908977508544922, -0.9138220548629761, -0.31431588530540466, 0.046670638024806976, 0.227174311876297, -0.1388590931892395, -1.094185471534729, 0.5030392408370972, -0.17270278930664062, -0.009662959724664688, -0.23849260807037354, 0.8651881814002991, -0.6848551630973816, -0.44718480110168457, 0.46566957235336304, 0.6044893264770508, -0.21289849281311035, -0.11917855590581894, -0.962594747543335, -0.009106517769396305, -0.23095984756946564, -0.02130621112883091, -0.03506415709853172, 0.8217105269432068, -0.1999552994966507, 0.4888456165790558, 0.8105793595314026, 0.030857013538479805, -0.4313291013240814, -0.11485960334539413, 1.063571572303772, -0.33378535509109497, -0.6193420886993408, -0.7290770411491394, 0.47688207030296326, -0.605370044708252, -0.39921897649765015, 0.3849637806415558, 0.46172067523002625, 1.1402729749679565, 0.27445513010025024, 0.47197359800338745, -0.24156633019447327, 0.4685908555984497, -0.5224000215530396, 0.7177037000656128, -0.42681246995925903, 0.24763518571853638, -0.15101878345012665, -0.5933509469032288, 0.04208269715309143, 0.5953988432884216, -0.15644201636314392, -0.1462058573961258, 0.8317604660987854, 0.6579532027244568, -0.15473401546478271, 0.0809425562620163, 0.08186265081167221, 0.2827019989490509, -0.08952007442712784, 0.5893133878707886, 0.8146559000015259, -0.06058835983276367, 0.4106312692165375, -0.582958996295929, -0.3919525146484375, 0.1180715411901474, -0.7379656434059143, -0.7692407965660095, -0.959354817867279, -0.23710206151008606, -0.3693517744541168, 0.08357851952314377, 0.6953794956207275, 0.9574607014656067, -0.5973176956176758, -0.13928772509098053, 0.3915676176548004, 0.4417227804660797, -0.27298784255981445, -0.20755307376384735, 0.5303592681884766, -0.02501542679965496, -0.841608464717865, -0.2040528506040573, 0.6679826974868774, -0.5814147591590881, -0.45620355010032654, -0.11879836022853851, -0.5777444243431091, 0.5353571176528931, 0.7690188884735107, -0.43156275153160095, -0.7753191590309143, -0.6731293797492981, -0.2815045416355133, -0.0835009217262268, 0.1376289278268814, 0.8699772953987122, -0.6847172379493713, 0.41203755140304565, 0.4863285720348358, 0.3098064661026001, 0.31041857600212097, 0.08971055597066879, -0.2258535474538803, -0.769508957862854, 0.2739141285419464, 0.5214236974716187, 0.44877082109451294, 0.44554951786994934, -0.3794889748096466, 0.3169271647930145, 0.6440358757972717, 0.12083377689123154, -0.6000525951385498, 0.6012589931488037, -0.9867347478866577, -0.4835285246372223, 0.8224946856498718, -0.0815676897764206, -0.19995754957199097, -0.4924941658973694, -0.07621178030967712, 0.3847902715206146, -0.32479000091552734, 0.45904919505119324, 0.76474529504776, -0.15813113749027252, -0.044853270053863525, -0.23105905950069427, 0.39208537340164185, 0.22691044211387634, -0.9150595664978027, 0.18627727031707764, 0.251203328371048, 0.17282694578170776, 0.3619624972343445, 0.5148100852966309, 0.009268304333090782, 0.1586441844701767, 0.30335259437561035, -0.017964597791433334, 0.12981176376342773, -0.5924473404884338, 0.15337103605270386, 0.15281037986278534, -0.42487767338752747, -0.3461955189704895 ]
http://arxiv.org/abs/2405.18952v2
http://arxiv.org/pdf/2405.18952v2
Are You Sure? Rank Them Again: Repeated Ranking For Better Preference Datasets
2024-05-29T10:08:31
2024-06-01T02:18:06
Peter Devine
cs.CL
cs.CL, cs.AI, cs.LG
Training Large Language Models (LLMs) with Reinforcement Learning from AI Feedback (RLAIF) aligns model outputs more closely with human preferences. This involves an evaluator model ranking multiple candidate responses to user prompts. However, the rankings from popular evaluator models such as GPT-4 can be inconsistent. We propose the Repeat Ranking method - where we evaluate the same responses multiple times and train only on those responses which are consistently ranked. Using 2,714 prompts in 62 languages, we generated responses from 7 top multilingual LLMs and had GPT-4 rank them five times each. Evaluating on MT-Bench chat benchmarks in six languages, our method outperformed the standard practice of training on all available prompts. Our work highlights the quality versus quantity trade-off in RLAIF dataset generation and offers a stackable strategy for enhancing dataset and thus model quality.
[ -0.32956576347351074, -0.46386489272117615, 0.4671129286289215, 0.23252877593040466, -0.08514416217803955, 0.32133015990257263, -0.32121190428733826, -0.19063709676265717, 0.08511175215244293, 0.5413438081741333, -0.38274872303009033, -0.5137867331504822, -0.7812893390655518, 0.14628872275352478, -0.13398756086826324, 1.1055561304092407, 0.040533289313316345, 0.2547056972980499, -0.34346503019332886, -0.5527282357215881, -0.6369388699531555, -0.9104962944984436, -0.9772291779518127, -0.49063971638679504, 0.6500261425971985, 0.6251484751701355, 0.778477668762207, 0.393648624420166, 0.40649253129959106, 0.31254157423973083, 0.38956671953201294, 0.45618557929992676, -0.7545860409736633, 0.30110448598861694, 0.1038242056965828, -0.33737316727638245, -0.29677820205688477, 0.31240028142929077, 0.7174445986747742, 0.5335051417350769, -0.3443959653377533, 0.0574120432138443, 0.19226644933223724, 0.6279223561286926, -0.28642183542251587, 0.06310965865850449, -0.4442383348941803, -0.13608181476593018, 0.11978942155838013, -0.37741291522979736, -0.7337899804115295, -0.8923953175544739, 0.045620258897542953, -0.45819559693336487, 0.01222995761781931, 0.20853324234485626, 0.8106269836425781, 0.266506165266037, -0.4067422151565552, 0.022585298866033554, -0.5497596859931946, 0.9894136786460876, -0.6001258492469788, 0.4089429974555969, 0.3528892695903778, 0.3775160312652588, -0.03535528853535652, -0.641055166721344, -0.29205912351608276, -0.7716684341430664, -0.11685121059417725, 0.21911026537418365, 0.15933015942573547, -0.2138512134552002, 0.13774290680885315, 0.10490614175796509, -0.8120352625846863, 0.11737284809350967, -0.09958816319704056, -0.2179999053478241, 0.7236347794532776, 0.18303385376930237, 0.0475149005651474, 0.16833274066448212, -0.35320883989334106, -0.5616891384124756, -0.7899088263511658, 0.3449673354625702, 0.4905674457550049, 0.27049705386161804, 0.22086474299430847, 0.4327697455883026, -0.26575347781181335, 0.7813736200332642, 0.30252861976623535, -0.2439832091331482, 0.62296462059021, -0.10822834074497223, 0.03238363936543465, -0.06955257803201675, 0.9200772047042847, 0.43823114037513733, 0.21905936300754547, -0.1372111588716507, -0.20299777388572693, -0.1158834844827652, 0.40034276247024536, -0.5342326164245605, -0.2266307920217514, 0.2523431181907654, -0.4093184769153595, -0.32731786370277405, 0.046990785747766495, -0.4932120740413666, -0.25457483530044556, -0.27265316247940063, 0.4035138189792633, -0.2054721862077713, -0.2766425311565399, 0.14195717871189117, 0.08785626292228699, 0.041273102164268494, 0.33740752935409546, -0.970094621181488, 0.24567170441150665, 0.7129498720169067, 0.6378661394119263, -0.6014502048492432, -0.870596706867218, -0.8357962965965271, -0.2254205048084259, -0.6255143880844116, 0.9234499335289001, -0.6049942970275879, -0.693091869354248, 0.04172767326235771, -0.12021716684103012, -0.15061421692371368, -0.9021213054656982, 0.5343289375305176, -0.5551707148551941, 0.4882354438304901, -0.4971097409725189, -0.5458441376686096, 0.06816288083791733, 0.46550631523132324, -0.5577396750450134, 1.2676140069961548, 0.06812995672225952, -0.5903430581092834, 0.6700242161750793, -0.3721678853034973, -0.19617566466331482, -0.01384788379073143, -0.20287813246250153, -0.477733314037323, -0.2321404069662094, 0.5243469476699829, 0.336313396692276, -0.04638510197401047, 0.4231612980365753, -0.47981980443000793, -0.31052547693252563, 0.3775407373905182, -0.4398721158504486, 0.2759045958518982, 0.1796533316373825, -0.18186120688915253, 0.5536407828330994, -0.33085647225379944, 0.34453335404396057, 0.012837789952754974, -0.7335296273231506, 0.010142575018107891, -0.2502356469631195, -0.017319247126579285, 0.13710302114486694, 0.2151254415512085, -0.48958173394203186, 0.4380778968334198, -0.23069262504577637, 0.18247272074222565, 0.9122967720031738, 0.11501648277044296, 0.22452415525913239, -0.6435789465904236, 0.651817798614502, -0.014822064898908138, 0.02887704409658909, 0.2589997351169586, -0.46099457144737244, -0.9658170342445374, 0.043724484741687775, 0.20549994707107544, 0.4990432858467102, -0.717659592628479, 0.24404560029506683, -0.48678967356681824, -0.3894186317920685, -0.7620515823364258, 0.09967674314975739, 0.39833205938339233, 0.3460046052932739, 0.27211830019950867, -0.1936613768339157, -0.35850951075553894, -1.030907154083252, -0.2990456521511078, -0.36428961157798767, 0.19788360595703125, 0.6352936029434204, 0.2705727517604828, 0.04317060112953186, 0.89714515209198, -0.38253313302993774, 0.0467306487262249, -0.6331479549407959, 0.32068854570388794, 0.3181150555610657, 0.3104216158390045, 0.5443100333213806, -0.6523477435112, -0.49897512793540955, -0.10463060438632965, -0.7073923945426941, 0.0341472327709198, -0.03634588047862053, -0.06936147809028625, 0.2449168711900711, 0.22413325309753418, -0.15622413158416748, -0.10072693973779678, 0.46340838074684143, 0.07681924104690552, 0.31803756952285767, -0.3064117133617401, 0.774271547794342, -1.0249316692352295, -0.05698256939649582, -0.0888616070151329, -0.5087769031524658, -0.25323912501335144, -0.19549624621868134, -0.07412003725767136, -0.04465566948056221, -0.4152173399925232, 0.7282964587211609, 0.027783768251538277, -0.14701376855373383, -0.25288304686546326, 0.025220515206456184, -0.26863154768943787, 0.6029435992240906, 0.17432720959186554, 1.0581910610198975, 0.37449222803115845, -0.49688106775283813, 0.7202631831169128, 0.34354591369628906, -0.4277474582195282, 0.5886035561561584, -0.7904521822929382, 0.22149670124053955, -0.11800047010183334, 0.4098597764968872, -1.2721679210662842, -0.270053893327713, 0.20990513265132904, -0.5430735945701599, 0.23508374392986298, -0.11291419714689255, -0.3465874195098877, -0.4118773937225342, -0.3211911916732788, 0.2662644684314728, 0.29735156893730164, -0.9658053517341614, 0.23448960483074188, 0.34106341004371643, -0.32057294249534607, -0.9332298040390015, -0.27173352241516113, -0.022203795611858368, -0.3599057197570801, -0.536150336265564, 0.02469399943947792, -0.39616483449935913, 0.0054666888900101185, -0.20921862125396729, 0.020344071090221405, 0.21684998273849487, 0.11916220188140869, 0.3265437185764313, 0.0731734111905098, 0.06712530553340912, 0.0572110116481781, -0.33866605162620544, -0.49308422207832336, -0.2535267770290375, -0.34114453196525574, 0.6975972652435303, -0.35289761424064636, -0.44449371099472046, -0.426967054605484, 0.35149839520454407, 0.4302818179130554, -0.1117381602525711, 0.4536672532558441, 0.5403399467468262, 0.030751781538128853, 0.0008393116877414286, -0.5540091395378113, -0.23398716747760773, -0.4531766474246979, 0.3452591300010681, -0.49131232500076294, -1.1625335216522217, 0.21092598140239716, 0.13280287384986877, 0.5042481422424316, 0.22530458867549896, 0.5754505395889282, -0.02743258886039257, 1.4426770210266113, 0.5214219093322754, -0.5889375805854797, 0.36913904547691345, -0.11070001125335693, 0.1508115828037262, -0.42118456959724426, -0.27513477206230164, -0.5057433843612671, -0.4062545895576477, -0.6742016673088074, 0.2408110648393631, 0.5454329252243042, -0.08163704723119736, -0.27443355321884155, 0.07935132086277008, -0.4168674349784851, 0.46879562735557556, 0.668826699256897, 0.23259441554546356, 0.2629336416721344, 0.10834744572639465, -0.04480050131678581, 0.03697280213236809, -0.6012691259384155, -0.4224441349506378, 1.1577762365341187, 0.2635882794857025, 0.8729841709136963, 0.19672611355781555, 1.0174219608306885, 0.48444801568984985, 0.6226789355278015, -0.69287109375, 0.3854418992996216, 0.07934489101171494, -0.4250943660736084, -0.42002880573272705, -0.6426332592964172, -0.9424163103103638, 0.32764342427253723, 0.004639584571123123, -0.5291950106620789, -0.11943630129098892, 0.3002849519252777, -0.47339361906051636, -0.06019783392548561, -0.5773459076881409, 0.7517049312591553, -0.37983351945877075, -0.28075549006462097, -0.2176510989665985, -0.4176039695739746, 0.3605097532272339, 0.15091527998447418, 0.02812770940363407, -0.10584938526153564, 0.21769003570079803, 0.9378083944320679, -0.4013855755329132, 0.5060745477676392, 0.002928779926151037, 0.16072872281074524, -0.07637124508619308, -0.14349909126758575, 0.4124974310398102, 0.3917355239391327, -0.10944873094558716, -0.024059416726231575, -0.08892256021499634, -0.48755383491516113, -0.658080518245697, 1.1126627922058105, -1.1842361688613892, -0.7679261565208435, -0.5912020206451416, -0.1788775622844696, -0.4464881122112274, 0.06262120604515076, 0.5068128108978271, 0.5232158899307251, -0.13617002964019775, 0.08708860725164413, 0.545079231262207, -0.10769712924957275, 0.16652913391590118, 0.21941354870796204, -0.4255225956439972, -0.7073527574539185, 0.984646201133728, -0.0757891908288002, 0.21828825771808624, 0.3558430075645447, 0.15271396934986115, -0.48202529549598694, -0.3452932834625244, -0.5605891942977905, 0.2423868030309677, -0.7500135898590088, -0.023102624341845512, -0.760114848613739, -0.1992083191871643, -0.5382135510444641, -0.052367135882377625, -0.44790005683898926, -0.34325110912323, 0.22906015813350677, -0.3165774345397949, 0.44461193680763245, 0.9904661178588867, -0.15641695261001587, 0.2704336941242218, -0.5682359933853149, 0.2352961152791977, 0.5286040306091309, 0.3987311124801636, -0.008808962069451809, -0.565328061580658, -0.23596271872520447, -0.08647798746824265, -0.25762656331062317, -0.5511001348495483, 0.4497324526309967, 0.05961054936051369, 0.9131560921669006, 0.0748063251376152, -0.23168180882930756, 0.3721741735935211, -0.37085163593292236, 0.9491193294525146, 0.02925773896276951, -0.4486769139766693, 0.3929816484451294, -0.26094284653663635, 0.19546595215797424, 0.7849559187889099, 0.6854364275932312, -0.7090458869934082, -0.16972124576568604, -0.663193941116333, -0.9427074193954468, 0.8089039921760559, -0.08373367041349411, 0.0073961797170341015, -0.10417713224887848, 0.33041083812713623, 0.2606474757194519, 0.36232990026474, -0.7683442831039429, -0.5889201164245605, -0.3955676555633545, -0.05828613415360451, -0.29520750045776367, -0.3147869110107422, -0.19396482408046722, 0.035806506872177124, 0.8913331031799316, -0.018529081717133522, 0.2370830923318863, -0.24143636226654053, 0.025076553225517273, 0.11124523729085922, 0.3849899172782898, 0.5630173683166504, 0.7675575613975525, -0.3860016167163849, -0.02917522005736828, 0.04195213317871094, -0.2968798875808716, 0.3004271388053894, -0.18083323538303375, 0.0802268236875534, -0.04768219217658043, 0.19675716757774353, 0.861281156539917, 0.1579088568687439, -0.3310208320617676, 0.3674851953983307, -0.3721381425857544, -0.1176835298538208, -0.3568164110183716, 0.1905260533094406, -0.0881781205534935, 0.024344831705093384, 0.14795975387096405, -0.024854034185409546, -0.05513814464211464, -0.5054333806037903, 0.5279061794281006, 0.3363509774208069, -0.3163478970527649, 0.13210877776145935, 0.4257333278656006, 0.36652421951293945, -0.23052053153514862, 0.7590777277946472, -0.025825979188084602, -0.588305652141571, 0.35388460755348206, 0.31633460521698, 0.51609867811203, -0.25233712792396545, 0.4836556017398834, 0.6314399838447571, -0.047069113701581955, -0.6197030544281006, 0.34432223439216614, 0.0993160828948021, -0.8649243116378784, -0.20918098092079163, -0.4072946012020111, -0.6935561895370483, 0.3256148099899292, -0.7909094095230103, 0.13300149142742157, -0.4567236006259918, -0.38617271184921265, -0.07496798038482666, 0.0410274863243103, -0.6811963319778442, 0.07818250358104706, -0.16054588556289673, 0.4574436843395233, -0.8544545769691467, 0.7780530452728271, 0.5936177372932434, -0.5814664959907532, -0.843021035194397, -0.140126571059227, 0.08472392708063126, -0.9912384152412415, 0.7046955823898315, 0.13248002529144287, -0.18757285177707672, 0.22804374992847443, -0.7154659032821655, -1.0035443305969238, 0.8651820421218872, 0.08247044682502747, -0.259927362203598, 0.3382977545261383, 0.021992741152644157, 0.2952459454536438, -0.5971406698226929, 0.6708570718765259, 0.7220787405967712, 0.44425344467163086, -0.01688617467880249, -0.8275313973426819, -0.39618173241615295, -0.24114841222763062, -0.07230255752801895, 0.05350400134921074, -0.774914562702179, 0.5047091841697693, -0.2630995213985443, -0.05392290651798248, 0.34289613366127014, 0.644578754901886, 0.6420372724533081, 0.04620284214615822, 0.4739658832550049, 0.5296695232391357, 0.8127041459083557, -0.23907604813575745, 1.234704852104187, -0.0849079042673111, 0.418997585773468, 1.290040135383606, -0.39642882347106934, 0.9551348090171814, 0.11824259907007217, -0.08370158821344376, 0.3607439398765564, 1.0957614183425903, 0.05919991433620453, 0.7372277975082397, 0.15090972185134888, -0.002458476461470127, -0.7001079320907593, -0.16843672096729279, -0.5280036330223083, 0.16751140356063843, 0.024754343554377556, -0.02959446795284748, -0.1803237348794937, 0.17371536791324615, -0.06103590503334999, 0.060480471700429916, 0.011725782416760921, 0.7783098220825195, -0.11759509891271591, -0.9149994850158691, 0.8869467973709106, -0.08955668658018112, 0.7645001411437988, -0.5038873553276062, -0.07490464299917221, -0.5963366627693176, 0.05200498178601265, -0.07930655777454376, -0.8559287786483765, -0.3674243986606598, -0.19170989096164703, -0.34540030360221863, -0.5545254945755005, 0.1842600554227829, -0.5551787614822388, -0.3969416916370392, 0.0817253440618515, 0.5116326808929443, 0.32130634784698486, 0.27519693970680237, -0.7676843404769897, 0.05252605304121971, 0.1682008057832718, -0.3036319315433502, 0.4152723252773285, -0.04810195043683052, -0.029042355716228485, 0.9664948582649231, 0.6131161451339722, -0.027204003185033798, -0.0719328224658966, 0.43103447556495667, 0.6164217591285706, -0.43955621123313904, -0.4548591077327728, -0.5188487768173218, 0.23812390863895416, -0.2104189395904541, -0.5747898817062378, 0.5596231818199158, 0.4654780328273773, 1.0738811492919922, 0.05677097290754318, 1.0165481567382812, 0.4176985025405884, 0.8697107434272766, -0.5247998833656311, 0.5500612258911133, -0.47674673795700073, 0.33674880862236023, 0.06286691874265671, -0.9908426403999329, -0.07722550630569458, 0.6289253234863281, -0.42288264632225037, 0.4826773703098297, 0.7612557411193848, 0.7041099667549133, 0.09741983562707901, -0.15157397091388702, 0.47475990653038025, 0.09830225259065628, 0.5507838129997253, 0.6199812293052673, 1.0470465421676636, -0.17859043180942535, 0.5275213122367859, -0.014421307481825352, -0.2377920001745224, -0.3319290280342102, -0.6381593346595764, -0.6823768615722656, -0.573861837387085, -0.23198460042476654, -0.4238256514072418, 0.21893736720085144, 1.1912224292755127, 0.7579939365386963, -0.8643209338188171, -0.3862542510032654, 0.48371607065200806, 0.1433607041835785, -0.3737046718597412, -0.20849691331386566, 0.3807167112827301, -0.44181621074676514, -0.643941342830658, 0.5865404009819031, 0.09080133587121964, -0.18561922013759613, -0.24141831696033478, -0.31619539856910706, 0.06823025643825531, -0.2800048887729645, 0.29149118065834045, 0.29249003529548645, -0.7728701829910278, -0.5622476935386658, 0.058115337044000626, -0.35042864084243774, 0.23416846990585327, 0.9632099270820618, -0.9262531995773315, 0.3377154767513275, 0.5185971260070801, 0.7152501344680786, 0.2672572433948517, 0.14920000731945038, 0.761988639831543, -0.6692386865615845, -0.24119685590267181, 0.017667492851614952, 0.42964404821395874, 0.5271583795547485, -0.3105127215385437, 0.49813199043273926, 0.006644136738032103, -0.8696439862251282, -0.4964960515499115, 0.29708680510520935, -0.9648522138595581, -0.0525064617395401, 1.3949480056762695, -0.21502019464969635, 0.2298116534948349, -0.12617582082748413, -0.2213609367609024, -0.1384638398885727, -0.9195882081985474, 0.9397528171539307, 0.8206675052642822, -0.5299482345581055, -0.30297908186912537, -0.522067666053772, 0.6312832832336426, 0.5986423492431641, -0.8634909987449646, 0.17464162409305573, 0.47844386100769043, 0.5047731399536133, -0.010561536066234112, 0.8338273763656616, -0.0061500901356339455, 0.3202230930328369, -0.44604262709617615, -0.2443721741437912, -0.09328819811344147, -0.5636149048805237, -0.45522791147232056, 0.17694222927093506, 0.6935732364654541, -0.0791550725698471 ]
http://arxiv.org/abs/2405.18937v1
http://arxiv.org/pdf/2405.18937v1
Kestrel: Point Grounding Multimodal LLM for Part-Aware 3D Vision-Language Understanding
2024-05-29T09:43:48
2024-05-29T09:43:48
Junjie Fei, Mahmoud Ahmed, Jian Ding, Eslam Mohamed Bakr, Mohamed Elhoseiny
cs.CV
cs.CV, cs.CL
While 3D MLLMs have achieved significant progress, they are restricted to object and scene understanding and struggle to understand 3D spatial structures at the part level. In this paper, we introduce Kestrel, representing a novel approach that empowers 3D MLLMs with part-aware understanding, enabling better interpretation and segmentation grounding of 3D objects at the part level. Despite its significance, the current landscape lacks tasks and datasets that endow and assess this capability. Therefore, we propose two novel tasks: (1) Part-Aware Point Grounding, the model is tasked with directly predicting a part-level segmentation mask based on user instructions, and (2) Part-Aware Point Grounded Captioning, the model provides a detailed caption that includes part-level descriptions and their corresponding masks. To support learning and evaluating for these tasks, we introduce 3DCoMPaT Grounded Instructions Dataset (3DCoMPaT-GRIN). 3DCoMPaT-GRIN Vanilla, comprising 789k part-aware point cloud-instruction-segmentation mask triplets, is used to evaluate MLLMs' ability of part-aware segmentation grounding. 3DCoMPaT-GRIN Grounded Caption, containing 107k part-aware point cloud-instruction-grounded caption triplets, assesses both MLLMs' part-aware language comprehension and segmentation grounding capabilities. Our introduced tasks, dataset, and Kestrel represent a preliminary effort to bridge the gap between human cognition and 3D MLLMs, i.e., the ability to perceive and engage with the environment at both global and part levels. Extensive experiments on the 3DCoMPaT-GRIN show that Kestrel can generate user-specified segmentation masks, a capability not present in any existing 3D MLLM. Kestrel thus established a benchmark for evaluating the part-aware language comprehension and segmentation grounding of 3D objects. Project page at https://feielysia.github.io/Kestrel.github.io/
[ -0.37666788697242737, -0.7428393959999084, 0.757594883441925, 0.5680248737335205, -0.42620500922203064, -0.20543646812438965, 0.287740021944046, -0.49924373626708984, -0.1652616411447525, 0.5869905352592468, -0.5478330850601196, -0.9635806679725647, -0.5632162094116211, -0.1276763528585434, -0.32101622223854065, 0.30449429154396057, 0.15627771615982056, 0.005072153173387051, -0.5683696866035461, -0.2519060969352722, -0.6089807152748108, -0.7853406071662903, -0.8867979049682617, 0.1030152216553688, 0.633918821811676, 0.4654929041862488, 0.5269520282745361, 0.8134753108024597, 0.339443176984787, 0.2606211006641388, -0.44541600346565247, -0.0010087627451866865, -0.1872822791337967, 0.10187137871980667, -0.1157928854227066, -0.48046818375587463, -0.3290405869483948, -0.1634880155324936, 0.5827867388725281, 0.8678308129310608, 0.14506122469902039, -0.12285622954368591, 0.05286791920661926, 0.8421354293823242, -0.8427261114120483, 0.43134477734565735, -0.5291363000869751, 0.4503476321697235, -0.03139956295490265, 0.24048958718776703, -0.19859850406646729, 0.37003517150878906, 0.03706333413720131, -0.9761383533477783, 0.32164570689201355, 0.13377925753593445, 0.5226272940635681, 0.3958539366722107, -0.5090863108634949, 0.012806642800569534, -0.16624516248703003, 0.8200204968452454, -0.6081008315086365, 0.7463738918304443, 0.21692760288715363, 0.5874545574188232, -0.0678560808300972, -0.6037260890007019, -0.702714741230011, -0.26150965690612793, -0.050612568855285645, 0.49852827191352844, 0.1718721240758896, 0.2157929539680481, 0.10067271441221237, 0.33124470710754395, -0.30721721053123474, -0.10677957534790039, -0.42045828700065613, -0.26846668124198914, 0.21413370966911316, -0.08142321556806564, 0.17774321138858795, -0.46833524107933044, -0.577252209186554, -0.25163087248802185, -0.6172302961349487, 0.3978690207004547, 0.13020291924476624, 0.5017530918121338, -0.22106200456619263, 0.7728797197341919, -0.30860626697540283, 1.0894837379455566, 0.1253398358821869, -0.20642463862895966, 0.0290953628718853, 0.06115308776497841, -0.5648379921913147, 0.07620275765657425, 0.3588200807571411, 0.6258201003074646, -0.15160280466079712, 0.14534611999988556, -0.14086398482322693, -0.1133095771074295, 0.22900085151195526, -0.4119691550731659, -0.1479308307170868, 0.34511953592300415, -0.6653974652290344, -0.26251015067100525, 0.11226566135883331, -0.632167398929596, -0.8672740459442139, -0.5453805327415466, 0.47830355167388916, -0.17895279824733734, -0.37830880284309387, 0.30630064010620117, -0.0009719530935399234, 0.2342655509710312, 0.4861028492450714, -0.6014631390571594, -0.026470404118299484, 0.8110865950584412, 0.7689816355705261, -0.07416840642690659, -0.5004997849464417, -0.5634752511978149, 0.24886147677898407, -0.2011277824640274, 0.5636062622070312, -0.5109614729881287, -0.36491551995277405, -0.015052546747028828, 0.2829867899417877, -0.24616800248622894, -0.5010192394256592, 0.5234354138374329, -0.35390204191207886, 0.3440234065055847, -0.3066171109676361, -0.22184287011623383, -0.7144613862037659, 0.7565533518791199, -0.7308401465415955, 0.7616084814071655, -0.03263828158378601, -0.5661097168922424, 0.44322648644447327, -0.6175323724746704, -0.41615983843803406, -0.3266982138156891, -0.25151723623275757, -0.21298962831497192, 0.1121145486831665, 0.6757524609565735, 0.9452754855155945, 0.09426592290401459, -0.07158119231462479, -0.2846580147743225, -0.25134649872779846, -0.2479485273361206, -0.114131398499012, 0.6212201714515686, 0.01969517208635807, -0.3802926540374756, 0.43299365043640137, -0.8888275027275085, -0.3345027267932892, -0.0076031433418393135, -0.10989579558372498, 0.014911023899912834, 0.17443187534809113, -0.16569922864437103, 0.3126365542411804, 0.18497684597969055, -0.5799173712730408, -0.3651350438594818, -0.3081260323524475, 0.08613888174295425, 0.4011662006378174, 0.1760975867509842, 0.47204887866973877, -0.15201297402381897, 0.37233686447143555, 0.3615201413631439, 0.5444912910461426, -0.35808125138282776, -0.5169890522956848, -1.1320292949676514, -0.1996321827173233, -0.41603609919548035, 0.4926685690879822, -0.5437154173851013, 0.15598230063915253, 0.11232221871614456, -0.38927584886550903, -0.1781315952539444, -0.1311352252960205, 0.5417887568473816, 0.8550065755844116, 0.6271640658378601, 0.326332151889801, -0.5890662670135498, -1.1276023387908936, 0.2526709735393524, -0.15398548543453217, -0.30472004413604736, 0.25338804721832275, 0.04538340121507645, 0.1701328158378601, 0.6770457029342651, -0.21780496835708618, -0.6199060082435608, -0.1609797477722168, -0.2868192493915558, 0.2572295367717743, 0.48968589305877686, 0.24148836731910706, -1.145439863204956, -0.4750569760799408, 0.2600177228450775, -0.7868378758430481, 0.07220234721899033, -0.062226708978414536, -0.10574731975793839, -0.015520477667450905, 0.8632401823997498, -0.42883771657943726, 0.24814262986183167, 0.6213659644126892, -0.5058209300041199, 0.25778138637542725, 0.12083227187395096, 0.25953999161720276, -1.066834807395935, 0.07798276841640472, -0.045389749109745026, -0.33622100949287415, -0.5700648427009583, 0.19573262333869934, -0.048575688153505325, -0.24935366213321686, -0.9298766255378723, 0.3881987929344177, -0.6100425720214844, -0.2363579124212265, -0.3451433777809143, 0.24236948788166046, 0.3602503538131714, 0.7092078328132629, 0.3176744878292084, 0.446165531873703, 0.6805599331855774, -0.6141749024391174, 0.08035140484571457, 0.2088407725095749, -0.21733450889587402, 0.7246211767196655, -0.6042488813400269, 0.044065434485673904, -0.21309742331504822, 0.012655786238610744, -0.7405451536178589, -0.16162559390068054, 0.45882147550582886, -0.27923882007598877, -0.07831156253814697, -0.616349995136261, -0.055627211928367615, -0.04995168745517731, 0.1035606786608696, 0.33972206711769104, 0.16739073395729065, -0.5339369773864746, 0.8692452311515808, 0.3630079925060272, 0.08971533924341202, -0.6490857601165771, -0.3641480505466461, 0.016735941171646118, -0.280221551656723, -0.7894908785820007, 0.34370455145835876, 0.09294886142015457, -0.2799528241157532, -0.05334673821926117, -0.45806825160980225, 0.011424843221902847, 0.09859149158000946, 0.6288065314292908, -0.07247713208198547, -0.22427675127983093, -0.24452461302280426, -0.052111778408288956, -0.2788064479827881, 0.11031390726566315, -0.36669597029685974, 0.35055920481681824, -0.3538091778755188, -0.7590100765228271, -0.2519592046737671, 0.3785770833492279, 0.7474353313446045, -0.05990691855549812, 0.49499770998954773, 0.7519649863243103, -0.48217934370040894, 0.18067552149295807, -0.5420132279396057, 0.10389243066310883, -0.4320102632045746, 0.4509357810020447, -0.7386919856071472, -1.0754262208938599, 0.5213625431060791, 0.21749810874462128, 0.17176637053489685, 0.6174403429031372, 0.1962386667728424, -0.5247294306755066, 0.96145099401474, 0.7336882948875427, 0.3278443217277527, 0.1910809725522995, -0.19555683434009552, -0.036198485642671585, -1.0269712209701538, -0.6296257376670837, -0.21937768161296844, -0.3642076551914215, 0.20789676904678345, -0.7913254499435425, 0.4401135742664337, 0.6499543786048889, -0.13436318933963776, -0.029293132945895195, -0.5683503150939941, 0.6917266249656677, 0.5406155586242676, 0.22928735613822937, 0.07747247815132141, -0.04072003811597824, -0.2978905737400055, 0.10798445343971252, -0.47898104786872864, -0.4292055368423462, 0.6446918845176697, 0.426072359085083, 0.12275208532810211, 0.011717835441231728, 0.1149345189332962, 0.4474699795246124, -0.19857370853424072, -0.7518101930618286, 0.759697437286377, -0.18103522062301636, -0.3082049787044525, -0.3283025622367859, -0.01982012763619423, -0.6515452861785889, 0.6468747854232788, -0.1495334655046463, -0.564666748046875, 0.30584999918937683, 0.32101190090179443, -0.40147000551223755, 0.3708323836326599, -0.5563896894454956, 1.0496892929077148, -0.08794491738080978, -0.21353869140148163, -0.18854674696922302, -0.7814030647277832, 0.41891294717788696, 0.12156271934509277, 0.10723747313022614, -0.37445068359375, 0.029230376705527306, 0.7863120436668396, -0.24743831157684326, 1.128894329071045, -0.8515925407409668, -0.152419775724411, 0.22282569110393524, 0.2000851333141327, 0.3133118450641632, 0.21377940475940704, 0.17247214913368225, 0.4146474599838257, 0.156525120139122, -0.47326892614364624, -0.6729898452758789, 0.5937116742134094, -0.6121377348899841, -0.8178672194480896, -0.1552727073431015, -0.3091104328632355, -0.4827903211116791, 0.2578834891319275, -0.08956249803304672, 0.35519900918006897, 0.2044721096754074, 0.40569737553596497, 0.5552210807800293, -0.20094084739685059, 0.28534743189811707, 0.39475181698799133, -0.5066046118736267, -0.5500243902206421, 0.7355607151985168, -0.6499848961830139, 0.09912340342998505, 0.9186708927154541, 0.16817311942577362, -0.4223496615886688, -0.9212270975112915, -0.4402344226837158, -0.1691540777683258, -0.8864337205886841, -0.09686409682035446, -0.7277696132659912, -0.14283350110054016, -0.09965817630290985, -0.5633809566497803, -0.4415724277496338, -0.4786985218524933, -0.17926977574825287, -0.13502545654773712, -0.13470511138439178, 0.7427889704704285, -0.07942184805870056, 0.6087571978569031, -0.7867454886436462, 0.3237212896347046, 0.47477346658706665, -0.0031846254132688046, -0.04115043580532074, -0.2651292085647583, -0.30319109559059143, 0.28882503509521484, 0.1789533644914627, -0.4204779863357544, -0.059124816209077835, -0.1965654045343399, 0.6661487221717834, 0.47007477283477783, -0.30772456526756287, 0.9863685369491577, -0.25968027114868164, 1.0348416566848755, 0.37378135323524475, -1.0725092887878418, 0.5481875538825989, -0.37733346223831177, 0.43021219968795776, 0.528139054775238, -0.11710109561681747, -0.890346884727478, -0.2629503905773163, -0.09240587800741196, -0.717609703540802, 0.6858033537864685, 0.2450827658176422, -0.16330160200595856, 0.06196962669491768, 0.2528434097766876, 0.07763417810201645, -0.011640811339020729, -0.7454074621200562, -0.009126391261816025, -0.607876181602478, -0.12606823444366455, 0.1264687031507492, -0.504934549331665, -0.18782928586006165, -0.04624143987894058, 0.4492505192756653, -0.10753133147954941, 0.2759413719177246, 0.46123677492141724, -0.42320868372917175, 0.24004320800304413, -0.11703778803348541, 0.9439677596092224, 0.7193282246589661, -0.34489017724990845, 0.39798665046691895, 0.1322888433933258, -0.582274854183197, 0.08187313377857208, 0.09334637224674225, 0.06099901720881462, -0.12389722466468811, 0.6724327206611633, 0.7889546155929565, 0.42071735858917236, -0.465310275554657, 0.629884660243988, -0.01507195457816124, -0.2722601294517517, -0.3400557041168213, -0.07693710178136826, 0.021158946678042412, 0.40243101119995117, 0.41131022572517395, 0.1945267766714096, -0.12177874892950058, 0.06690061837434769, 0.17732740938663483, 0.12129789590835571, -0.7090166211128235, -0.3511130213737488, 0.7757061719894409, 0.3396681547164917, 0.0742061510682106, 0.3422554135322571, 0.05511794239282608, -0.5296890735626221, 0.6984682083129883, 0.3901924192905426, 0.7222527265548706, -0.03114984929561615, 0.21857571601867676, 0.4781275987625122, 0.3543936312198639, 0.3398262858390808, 0.3237951397895813, -0.2217315286397934, -0.816655695438385, -0.5278536677360535, -0.6948625445365906, -0.3272452652454376, 0.14895792305469513, -0.448813259601593, 0.14401927590370178, -0.6627236008644104, 0.31043246388435364, -0.36919161677360535, -0.3003677427768707, -0.5975154042243958, 0.5366597771644592, 0.3466947674751282, 1.041555643081665, -0.6323094964027405, 0.45035505294799805, 0.9679017066955566, -0.11026971787214279, -0.5301001071929932, -0.015118461102247238, 0.1030329018831253, -1.0083528757095337, 0.6960081458091736, 0.4698319435119629, -0.24568186700344086, -0.00104719796217978, 0.06096121668815613, -0.8792264461517334, 1.1796979904174805, -0.03094620630145073, -0.5116879343986511, 0.10092845559120178, 0.41521915793418884, -0.06990303099155426, -0.37544363737106323, 0.0362786203622818, 0.10682796686887741, 0.5887869000434875, 0.4241222143173218, -0.6049978733062744, -0.012683193199336529, -0.13247984647750854, -0.12722982466220856, 0.01929202862083912, -0.4491308927536011, 0.7667072415351868, 0.06203411519527435, -0.28224262595176697, -0.15833765268325806, 0.8503917455673218, 0.40375155210494995, 0.43288272619247437, 1.2166163921356201, 0.6181619763374329, 0.5211856961250305, 0.031603168696165085, 0.5666550993919373, -0.27569451928138733, -0.058994557708501816, 1.1514240503311157, -0.20306749641895294, 0.8249915242195129, 0.5947246551513672, 0.00873994454741478, 0.29020440578460693, 0.6220938563346863, 0.32239285111427307, 0.6088351011276245, -0.04139680415391922, -0.47967275977134705, -0.48585444688796997, 0.0674399733543396, -0.17219732701778412, 0.698947012424469, 0.3243727684020996, -0.2187240719795227, -0.3754175901412964, 0.3536904454231262, 0.07979971170425415, 0.016918852925300598, -0.5208926200866699, 0.8052971363067627, -0.0038977162912487984, -0.34885093569755554, 0.33677753806114197, -0.007605839986354113, 0.19517524540424347, -0.6516256332397461, -0.20014286041259766, -0.33796074986457825, 0.0662926435470581, -0.16166308522224426, -0.9468895196914673, 0.4514434337615967, -0.1927032172679901, -0.31239956617355347, -0.20101940631866455, 0.588888943195343, -0.26611435413360596, -0.6208483576774597, 0.16096973419189453, 0.36838608980178833, 0.12970700860023499, -0.7600727677345276, -0.6668391227722168, 0.3881295323371887, 0.24679046869277954, 0.0023646035697311163, 0.05350960046052933, 0.3298940360546112, -0.08630911260843277, 0.5681527256965637, 0.7819521427154541, -0.220870241522789, 0.1586020439863205, 0.28320589661598206, 0.6857995986938477, -0.6668883562088013, -0.402403324842453, -0.6400858759880066, 0.8724477887153625, -0.2457074671983719, -0.0714685320854187, 0.826335072517395, 0.751248836517334, 0.7110191583633423, -0.15692253410816193, 0.5425808429718018, -0.15918733179569244, 0.4116102457046509, -0.9654458165168762, 0.5370250940322876, -0.6095754504203796, 0.09282844513654709, 0.07697484642267227, -1.1998265981674194, -0.747839629650116, 0.6428068280220032, -0.07504060119390488, -0.2948032319545746, 0.6814150214195251, 0.790300726890564, -0.4055013358592987, -0.168476864695549, 0.8149008750915527, 0.10982875525951385, 0.5503762364387512, 0.3713928163051605, 0.998895525932312, -0.10687561333179474, 0.6346815824508667, -0.6459019184112549, -0.14933907985687256, 0.027985677123069763, -1.0429863929748535, -1.0632389783859253, -0.730627715587616, -0.1524190604686737, 0.004115525633096695, -0.06403964012861252, 0.48182374238967896, 1.0649744272232056, -0.8357760906219482, 0.05897645652294159, -0.4298139214515686, 0.014362215064466, -0.33219239115715027, -0.22836919128894806, 0.5965297818183899, -0.23879610002040863, -0.7805719375610352, 0.9982405304908752, 0.5393789410591125, 0.06515432894229889, -0.4050610065460205, -0.04330125451087952, -0.04153485223650932, -0.42683932185173035, 1.0438041687011719, 0.1362103372812271, -1.0273747444152832, -0.4654734432697296, 0.05303555727005005, 0.23997019231319427, -0.04982966557145119, 0.6840562224388123, -0.7368789911270142, 0.6074560880661011, 0.08966682106256485, 0.49391448497772217, 0.4313141107559204, 0.12982751429080963, 0.5331071019172668, -0.9786784052848816, 0.4165589213371277, 0.27530941367149353, 0.6944460272789001, 0.5202667117118835, -0.34743377566337585, 0.4493575990200043, 0.155217245221138, -0.2914089262485504, -0.2788948714733124, 0.20364588499069214, -1.2923660278320312, -0.24156929552555084, 1.0006898641586304, -0.22937434911727905, -0.3218667805194855, -0.18749435245990753, -0.5934627652168274, -0.02074347250163555, 0.0884447768330574, 0.5519902110099792, 0.5115568041801453, 0.054695647209882736, -0.5306363701820374, -0.42435184121131897, 0.30643710494041443, 0.48105141520500183, -0.616301417350769, 0.03380753472447395, 0.6085562705993652, 0.03371141105890274, 0.21374492347240448, 0.2555328607559204, -0.028888892382383347, 0.12122634053230286, 0.0004578557563945651, 0.21795745193958282, -0.6603015661239624, -0.5460349321365356, -0.09063129872083664, 0.5124813914299011, -0.20801346004009247, -0.7827842831611633 ]
http://arxiv.org/abs/2405.18922v1
http://arxiv.org/pdf/2405.18922v1
Understanding and Addressing the Under-Translation Problem from the Perspective of Decoding Objective
2024-05-29T09:25:49
2024-05-29T09:25:49
Chenze Shao, Fandong Meng, Jiali Zeng, Jie Zhou
cs.CL
cs.CL
Neural Machine Translation (NMT) has made remarkable progress over the past years. However, under-translation and over-translation remain two challenging problems in state-of-the-art NMT systems. In this work, we conduct an in-depth analysis on the underlying cause of under-translation in NMT, providing an explanation from the perspective of decoding objective. To optimize the beam search objective, the model tends to overlook words it is less confident about, leading to the under-translation phenomenon. Correspondingly, the model's confidence in predicting the End Of Sentence (EOS) diminishes when under-translation occurs, serving as a mild penalty for under-translated candidates. Building upon this analysis, we propose employing the confidence of predicting EOS as a detector for under-translation, and strengthening the confidence-based penalty to penalize candidates with a high risk of under-translation. Experiments on both synthetic and real-world data show that our method can accurately detect and rectify under-translated outputs, with minor impact on other correct translations.
[ -0.10792214423418045, -0.31318777799606323, 0.9407240748405457, -0.16472682356834412, -0.46768906712532043, 0.18177944421768188, 0.1096741259098053, -0.3643130362033844, 0.06535989791154861, 0.2920936942100525, -0.5198001861572266, -0.2641316056251526, -0.9216334819793701, 0.13671144843101501, -0.6524717807769775, 0.8934560418128967, -0.4599618911743164, -0.039632976055145264, -0.12652580440044403, 0.5281938910484314, -0.7324648499488831, -0.40554702281951904, -0.41496190428733826, -0.7053940892219543, 0.09885069727897644, 0.2626347243785858, 0.5005223751068115, 0.4346771240234375, 0.5709192156791687, 0.2665618062019348, -0.18938565254211426, 0.34398671984672546, -0.5095168352127075, 0.013977576047182083, 0.1357196569442749, -0.5522329807281494, -0.4751313626766205, -0.02454308420419693, 0.4460223615169525, 0.5387298464775085, 0.06210920587182045, -0.24382217228412628, 0.17881827056407928, 0.41631829738616943, -0.7341141104698181, 0.08678288757801056, -0.7548732757568359, 0.20499050617218018, -0.17057441174983978, -0.6318318843841553, -0.29102882742881775, -0.03183767944574356, -0.10039513558149338, -0.5646937489509583, 0.036573052406311035, 0.046863701194524765, 0.7893117070198059, 0.6115313768386841, -0.5723890066146851, -0.15972013771533966, -0.48169374465942383, 0.8921924233436584, -0.6320100426673889, 0.18842604756355286, 0.5070087909698486, 0.09904973953962326, -0.39365842938423157, -0.2644973397254944, -0.23179331421852112, -0.1181107759475708, -0.2956241965293884, 0.2866772413253784, -0.5439271926879883, 0.3854115307331085, -0.056781504303216934, 0.3682570159435272, -0.5024579763412476, -0.2648332118988037, -0.3578604757785797, -0.22079020738601685, 0.39711037278175354, 0.10803122073411942, 0.23112617433071136, -0.3050176799297333, -0.4025757908821106, 0.33492064476013184, -0.6614217758178711, -0.09677408635616302, 0.2279927283525467, 0.35955333709716797, 0.2498708963394165, 0.7323479056358337, -0.4446945786476135, 0.1742413192987442, 0.03229023888707161, 0.5754505395889282, 0.31257161498069763, -0.31105679273605347, -0.24083225429058075, 0.48633208870887756, 0.5368982553482056, 0.6092519164085388, 0.5733987092971802, -0.3382454216480255, -0.7260015606880188, 0.14452719688415527, 0.5035902261734009, -0.7063295245170593, 0.41830694675445557, 0.3547722101211548, -0.30426299571990967, -0.4357419013977051, 0.010390646755695343, -0.14333322644233704, -0.017444249242544174, -0.13659454882144928, 0.5070092678070068, -0.4302919805049896, -0.09767687320709229, 0.6337284445762634, -0.07208454608917236, -0.06905947625637054, 0.13918957114219666, -0.6517260074615479, 0.3312343955039978, 0.7720574736595154, 0.9631834030151367, -0.042429711669683456, -0.15936709940433502, -0.4917317032814026, -0.02276165410876274, -0.58949214220047, 0.4624001085758209, -0.09625428915023804, -0.18611779808998108, -0.18499192595481873, -0.21536602079868317, -0.3253397047519684, -0.12618669867515564, 0.7074192762374878, -0.3588576316833496, 0.10911200195550919, -0.16576944291591644, -0.5911531448364258, 0.024485941976308823, 0.4356261193752289, 0.039677128195762634, 0.6210715174674988, -0.026761842891573906, -0.6001395583152771, 0.16523157060146332, -0.5706591606140137, -0.3925279974937439, -0.07797755300998688, -0.10176453739404678, -0.18369850516319275, 0.8833860754966736, 0.3204076886177063, 0.45096397399902344, -0.3475923538208008, 0.3366883099079132, 0.2418138086795807, -0.9057363867759705, 0.5005100965499878, -0.5037604570388794, 0.5358014106750488, 0.3965904712677002, -0.3282877802848816, -0.16434167325496674, -0.3934553861618042, 0.19466862082481384, 0.023435650393366814, -0.22098882496356964, -0.3797382712364197, 0.013290904462337494, -0.24715855717658997, 0.0029094675555825233, 0.22379951179027557, -1.0232172012329102, 0.10562512278556824, -0.8315420746803284, 0.45184147357940674, 0.5049514174461365, -0.009494041092693806, 0.3854108154773712, 0.10010512173175812, 0.6274144053459167, -0.012759082950651646, 0.16089099645614624, 0.025436855852603912, -0.5346169471740723, -0.5207488536834717, 0.37699341773986816, 0.26732736825942993, 0.7322284579277039, -0.7783243656158447, -0.06661184877157211, -0.4395255148410797, 0.10349329560995102, -0.9811452627182007, -0.04918643832206726, 1.0389679670333862, 0.46011975407600403, 0.8075881600379944, -0.2841426134109497, -0.7718544602394104, -0.9269190430641174, -0.27083155512809753, -0.08355697989463806, -0.14551399648189545, -0.12379457801580429, 0.6767374873161316, -0.3722347319126129, 0.8140583634376526, -0.5294961929321289, -0.5428788661956787, -0.23657479882240295, 0.17687928676605225, 0.37030425667762756, 0.7988108992576599, 0.22835056483745575, -0.9327622652053833, -0.42275479435920715, 0.3905530571937561, -0.6635776162147522, -0.20065075159072876, -0.2680642604827881, 0.05948304757475853, 0.008199069648981094, 0.6964232325553894, -0.9577094316482544, 0.6482699513435364, 0.21889206767082214, -0.04151216894388199, 0.19518007338047028, -0.27710479497909546, 0.3667248785495758, -0.940287172794342, -0.04530498385429382, -0.28085190057754517, -0.04147905483841896, -0.5212811827659607, 0.2813955843448639, 0.17331762611865997, 0.21086972951889038, -0.4760582149028778, 0.10367827862501144, -0.45179155468940735, -0.19826476275920868, -0.5674939155578613, -0.03775864467024803, 0.18011313676834106, 0.3100926876068115, -0.09840698540210724, 0.7392602562904358, 0.026012957096099854, -0.20780564844608307, 0.22357365489006042, 0.17768344283103943, -0.1390651911497116, 0.2492814064025879, -0.8824405670166016, 0.1163182407617569, -0.05170154944062233, 0.041219402104616165, -1.0693747997283936, -0.03558526188135147, 0.46001726388931274, -1.1723577976226807, 0.6325457096099854, -0.4401423931121826, -0.2733714282512665, -0.4014448821544647, -0.17815333604812622, 0.4624093174934387, 0.5478330850601196, 0.05884451046586037, 0.27038559317588806, -0.09199840575456619, 0.34177646040916443, -1.0727781057357788, -1.2984631061553955, 0.18432994186878204, -0.1073572188615799, -0.44195088744163513, 0.7181628942489624, 0.24778367578983307, -0.15133653581142426, 0.1481381207704544, -0.3939843773841858, -0.03201794996857643, 0.3438122868537903, 0.03213074058294296, -0.09153410792350769, -0.5814041495323181, -0.11524618417024612, 0.40577635169029236, -0.6271834373474121, 0.2177496999502182, -0.6034929156303406, 0.31806686520576477, -0.35464805364608765, -0.39904895424842834, -0.431718647480011, 0.36216920614242554, 0.40973418951034546, -0.13836319744586945, 0.6724157929420471, 0.512997567653656, -0.39555463194847107, 0.09118787944316864, -0.16311602294445038, -0.2749313414096832, -0.3987776041030884, 0.5754244923591614, -0.6653673052787781, -0.2704985439777374, 0.518099308013916, 0.14815010130405426, -0.40338873863220215, 0.3502638041973114, 0.18885323405265808, -0.2732410728931427, 1.1705691814422607, 0.6227596402168274, 0.09323281794786453, 0.09170348942279816, -0.19605585932731628, 0.18283423781394958, -1.1324619054794312, -0.1770133376121521, -0.3340036869049072, -0.35479578375816345, -0.33210185170173645, -0.2077862173318863, 0.06333750486373901, 0.23813879489898682, 0.17120254039764404, 0.7270951867103577, -0.5706115961074829, 0.8063450455665588, 0.44877365231513977, 0.10200479626655579, 0.20845700800418854, -0.2864282727241516, -0.25587907433509827, -0.2456476390361786, -0.5606591701507568, -0.25298237800598145, 0.9671487808227539, 0.30696380138397217, 0.6176975965499878, 0.048602014780044556, 0.8671765327453613, 0.23941946029663086, -0.1312410980463028, -0.8843497037887573, 0.2910996973514557, -0.26334047317504883, -0.727450430393219, -0.17535679042339325, -0.5746262669563293, -0.8688557744026184, 0.45749014616012573, 0.05469880625605583, -0.676638662815094, 0.3177064061164856, 0.30441999435424805, -0.4550454020500183, 0.13605089485645294, -0.6334882378578186, 0.9942014813423157, -0.36671096086502075, -0.05435873940587044, -0.025040671229362488, -0.8834927678108215, 0.17514286935329437, -0.10607568919658661, -0.005689762998372316, 0.010664297267794609, -0.058716967701911926, 0.06303562223911285, -0.11603263020515442, 0.7666210532188416, 0.004530776757746935, 0.1302739828824997, -0.06997397541999817, 0.1676526665687561, 0.3789375126361847, -0.23940235376358032, -0.05414937436580658, -0.040344011038541794, -0.19159409403800964, -0.23847420513629913, -0.6435388922691345, 0.3276062607765198, -0.6136996150016785, -0.4312672019004822, -0.5714417695999146, -0.6385393738746643, 0.06723958998918533, 0.3092840611934662, 0.6843269467353821, 0.24494010210037231, -0.03441457077860832, 0.4328068494796753, 0.7164701819419861, -0.1853848695755005, -0.01422110851854086, 0.37336987257003784, -0.1732189804315567, -0.07165328413248062, 0.7804398536682129, 0.17847205698490143, 0.4009062945842743, 0.6767173409461975, 0.355755478143692, -0.3826219141483307, -1.2279361486434937, -0.5368073582649231, -0.0791182592511177, -0.7141018509864807, -0.3981606066226959, -0.5060891509056091, -0.14924252033233643, -0.5474998354911804, -0.3266093134880066, -0.5532284379005432, -0.2224770039319992, -0.3715977370738983, -0.18463054299354553, -0.10744763910770416, 0.5528740286827087, -0.07074268162250519, 0.6692144870758057, -0.7708703875541687, 0.3160341680049896, -0.27106720209121704, 0.12819617986679077, -0.2968883216381073, -0.8412054181098938, -0.34726300835609436, 0.22309570014476776, -0.10387347638607025, -0.8186172246932983, 0.687107503414154, 0.15404419600963593, 0.6543703079223633, 0.1414818912744522, 0.19614024460315704, 0.5914149880409241, -0.46487653255462646, 0.2771787941455841, -0.07839494943618774, -1.1790101528167725, 0.579795241355896, -0.338105708360672, 0.36136704683303833, 0.4848979413509369, 0.42330390214920044, -0.6065269112586975, -0.40941110253334045, -0.3641231656074524, -1.055969476699829, 0.8288204669952393, 0.710734486579895, 0.2690659761428833, -0.11432822793722153, 0.47880446910858154, -0.37033119797706604, 0.49954697489738464, -0.7048231959342957, 0.1292026937007904, -0.2015492469072342, -0.3269973397254944, -0.16932076215744019, -0.3854808509349823, 0.16226908564567566, 0.00036295526660978794, 0.7773647308349609, -0.13813629746437073, 0.13233159482479095, 0.29993993043899536, -0.4037546217441559, -0.46456772089004517, 0.3973778188228607, 0.7618415355682373, 0.12617777287960052, -0.6812647581100464, -0.06733911484479904, 0.16064666211605072, -0.31017592549324036, -0.09867088496685028, 0.04098087549209595, -0.552204430103302, -0.05800243839621544, 0.44977712631225586, 0.7596694231033325, 0.5208427309989929, -0.26093629002571106, 0.7540357112884521, 0.10189393162727356, 0.02046523615717888, -0.27942153811454773, -0.31359055638313293, -0.11962199956178665, 0.24399220943450928, 0.7078583836555481, 0.4445667266845703, 0.5081658363342285, -0.27550607919692993, 0.39197319746017456, 0.4273148477077484, -0.5924357175827026, -0.09800069779157639, 0.6950016021728516, 0.15394453704357147, -0.12238800525665283, 0.5224194526672363, -0.11539251357316971, -1.0448546409606934, 0.7734853625297546, 0.4735336899757385, 0.9758251309394836, -0.236832857131958, -0.07015825808048248, 0.02603320963680744, 0.8262571692466736, -0.19466614723205566, 0.10220643877983093, 0.1060555949807167, -0.8374564051628113, -0.6351650953292847, -0.5606956481933594, -0.019524523988366127, -0.25575050711631775, -0.8421621322631836, 0.1123480349779129, 0.12542608380317688, -0.3249987065792084, -0.29585006833076477, 0.0026834681630134583, -0.0013052027206867933, 0.2882890999317169, 0.3784908950328827, 0.4314841628074646, -0.7355709671974182, 0.9534856081008911, 0.3753724992275238, -0.5810113549232483, -0.4228668212890625, -0.06763233989477158, 0.1884307861328125, -0.9060413241386414, 0.7114539742469788, 0.37860745191574097, -0.6405237913131714, 0.16841009259223938, -0.19126363098621368, -0.8566692471504211, 0.839062511920929, 0.6141722798347473, -0.3186924457550049, -0.3822398781776428, 0.3532765507698059, 0.6807631850242615, -0.3280860483646393, 0.07494977861642838, 0.4616653621196747, 0.4476704001426697, -0.027858583256602287, -1.0241717100143433, 0.018983963876962662, -0.09089557081460953, 0.07498026639223099, 0.44563499093055725, -0.11713529378175735, 1.0454527139663696, -0.16833442449569702, -0.23905429244041443, 0.19193324446678162, 0.3662928342819214, -0.3029005229473114, 0.4000685214996338, 0.11319481581449509, 0.33374443650245667, 0.13365629315376282, -0.1215558871626854, 1.3516854047775269, 0.09117692708969116, 0.48835286498069763, 0.9905787706375122, 0.1649327427148819, 0.6895968914031982, 0.7501499652862549, 0.10212692618370056, -0.058160025626420975, 0.5471872091293335, 0.13637839257717133, 0.689140260219574, 0.2681383788585663, 0.3055762052536011, -0.4215783178806305, -0.1543380618095398, -0.4129774570465088, 0.5083633661270142, 0.4253256320953369, -0.6451191902160645, -0.12553195655345917, -0.025215907022356987, -0.2019515484571457, 0.2817375063896179, -0.39693528413772583, 0.281104177236557, 0.53962242603302, -0.4915192425251007, 0.7169031500816345, -0.014425642788410187, 0.8213689923286438, -0.441033273935318, 0.0018570513930171728, -0.24906191229820251, 0.53244549036026, -0.26302075386047363, -0.789644718170166, 0.5196176171302795, -0.30826154351234436, -0.14255492389202118, -0.6343294382095337, 0.6800687313079834, -0.5359862446784973, -0.3166678547859192, 0.5782565474510193, 0.5954815745353699, 0.4365619421005249, -0.615286111831665, -0.7154298424720764, 0.11033456772565842, 0.24918797612190247, -0.37078648805618286, 0.14214450120925903, 0.6498505473136902, 0.0458623468875885, 0.6927491426467896, 0.28010091185569763, 0.12715524435043335, 0.009442063979804516, -0.22821705043315887, 0.5137314796447754, -0.26958444714546204, -0.24778078496456146, -0.99693763256073, 0.5654099583625793, 0.17792002856731415, -0.5016909837722778, 0.6481838226318359, 0.3441433906555176, 0.9152082204818726, -0.04943155497312546, 0.23168767988681793, 0.16758278012275696, 0.3114633858203888, -0.738091766834259, 0.905569851398468, -1.0125881433486938, 0.2433094084262848, -0.4072369933128357, -0.6924664974212646, -0.4030461609363556, 0.6510289907455444, -0.5187775492668152, -0.2667786478996277, 0.7624287009239197, 0.6217427849769592, -0.2250695824623108, -0.33169448375701904, 0.6701424717903137, 0.1186770647764206, 0.08916391432285309, 1.0469592809677124, 0.8442900776863098, -0.8659055829048157, 0.9365332126617432, -0.17999666929244995, 0.32175084948539734, -0.45229196548461914, -0.7930513620376587, -0.5361011624336243, -0.4224354922771454, -0.17361924052238464, -0.03756771609187126, 0.3400106728076935, 0.7532020807266235, 0.5816529989242554, -0.9479029178619385, 0.04775483161211014, -0.35917580127716064, -0.008917972445487976, -0.11737487465143204, -0.1108103096485138, 0.10102692991495132, -0.30316704511642456, -0.7595561742782593, 0.7576731443405151, -0.06534000486135483, 0.4832974970340729, 0.09311628341674805, -0.2073519378900528, -0.10316941887140274, -0.02236555516719818, 0.324115514755249, 0.12876056134700775, -0.8162536025047302, -0.1943608969449997, 0.07164715230464935, -0.2458319365978241, 0.13380639255046844, 0.7888221144676208, -0.6587695479393005, 0.25102293491363525, 0.36541467905044556, 1.063137412071228, 0.3613830506801605, 0.15740966796875, 1.0081316232681274, -1.2030881643295288, -0.05556294694542885, 0.506102979183197, 0.4013068974018097, 0.26232609152793884, -0.7606794238090515, 0.6340155005455017, 0.22975406050682068, -0.33237382769584656, -1.1614351272583008, 0.28280773758888245, -0.5088474154472351, -0.4851500689983368, 0.7997823357582092, -0.1914266049861908, -0.10971658676862717, -0.2518990635871887, -0.05977741256356239, 0.500801146030426, -0.5397054553031921, 0.5814607739448547, 0.696054220199585, 0.07136707752943039, -0.10542110353708267, -0.7562552690505981, 0.41243767738342285, 0.8893487453460693, -0.20812064409255981, -0.12965072691440582, 0.36935630440711975, -0.1673906147480011, 0.39372846484184265, 0.5002793669700623, 0.06738469004631042, 0.4596846103668213, 0.12337715178728104, -0.0933733806014061, -0.289120614528656, -0.5030556917190552, -0.36924728751182556, 0.06231158226728439, -0.05965646728873253, -0.5064392685890198 ]
http://arxiv.org/abs/2405.18915v1
http://arxiv.org/pdf/2405.18915v1
Towards Faithful Chain-of-Thought: Large Language Models are Bridging Reasoners
2024-05-29T09:17:46
2024-05-29T09:17:46
Jiachun Li, Pengfei Cao, Yubo Chen, Kang Liu, Jun Zhao
cs.CL
cs.CL, cs.AI
Large language models (LLMs) suffer from serious unfaithful chain-of-thought (CoT) issues. Previous work attempts to measure and explain it but lacks in-depth analysis within CoTs and does not consider the interactions among all reasoning components jointly. In this paper, we first study the CoT faithfulness issue at the granularity of CoT steps, identify two reasoning paradigms: centralized reasoning and distributed reasoning, and find their relationship with faithfulness. Subsequently, we conduct a joint analysis of the causal relevance among the context, CoT, and answer during reasoning. The result proves that, when the LLM predicts answers, it can recall correct information missing in the CoT from the context, leading to unfaithfulness issues. Finally, we propose the inferential bridging method to mitigate this issue, in which we use the attribution method to recall information as hints for CoT generation and filter out noisy CoTs based on their semantic consistency and attribution scores. Extensive experiments demonstrate that our approach effectively alleviates the unfaithful CoT problem.
[ -0.42164403200149536, -1.0371875762939453, 0.8453838229179382, 0.1421598196029663, -0.48105302453041077, 0.22615401446819305, -0.25517168641090393, -0.4630662798881531, -0.12415457516908646, 0.8399853706359863, -0.4512895941734314, -0.031043468043208122, -0.4944855570793152, -0.09475962817668915, -0.556430995464325, 0.9126290082931519, -0.4733830392360687, 0.03359748423099518, -0.3668927550315857, -0.06687435507774353, -0.31455227732658386, -0.5963286757469177, -0.5845543146133423, -0.6835443377494812, 0.4764067232608795, 0.22628919780254364, 0.9914997220039368, 0.3943238854408264, 0.45847439765930176, 0.24113115668296814, -0.25450101494789124, 0.5085240602493286, -0.7157784700393677, 0.3565010130405426, -0.7358042001724243, -0.4570119380950928, -0.42946404218673706, -0.13903175294399261, 0.7009494304656982, 0.7439867854118347, -0.1750790923833847, 0.13804082572460175, 0.20888175070285797, 0.7998853921890259, -0.8333480358123779, -0.2689071297645569, -1.0343012809753418, -0.3233751952648163, -0.2446088343858719, -0.18659910559654236, -0.5980768799781799, -0.20656831562519073, -0.09138325601816177, -0.21842530369758606, 0.16599677503108978, 0.17353250086307526, 0.7223489284515381, 0.12770090997219086, -0.604450523853302, -0.4965243339538574, -0.7183908820152283, 0.9187605977058411, -0.7298504710197449, 0.39447203278541565, 0.5871464610099792, -0.07263563573360443, -0.7274419665336609, -0.5238317251205444, -0.609247624874115, -0.0943775326013565, -0.04692816361784935, -0.035841044038534164, -0.060439933091402054, 0.0760946199297905, 0.0013536823680624366, 0.4142737090587616, -0.1559581458568573, -0.3629353642463684, 0.011014504358172417, -0.11346644908189774, 0.6789579391479492, 0.11015856266021729, 0.20482821762561798, 0.24144630134105682, -0.5901510715484619, 0.21115082502365112, -0.8279659152030945, -0.1692042499780655, 0.27759045362472534, 0.034033697098493576, 0.10343953967094421, 0.46741482615470886, 0.4059273898601532, 0.5272610783576965, 0.1482628434896469, -0.03077872097492218, -0.20811976492404938, -0.493873655796051, -0.3213176727294922, 0.24266378581523895, 0.7178985476493835, -0.05791860446333885, 0.40420496463775635, -0.3360835015773773, -0.4335988461971283, 0.09978356957435608, 0.6069956421852112, -0.28590747714042664, 0.04180818423628807, 0.35106387734413147, -0.2683733105659485, -0.21303847432136536, 0.16213494539260864, -0.5360044836997986, -0.11650429666042328, -0.3728344142436981, 0.21250107884407043, -0.2887466549873352, -0.4092528820037842, 0.06839468330144882, -0.06278733909130096, 0.2190837562084198, 0.34102779626846313, -0.6506515741348267, 0.5827652215957642, 0.789330005645752, 0.6454718708992004, -0.012073994614183903, -0.4484865367412567, -0.43873104453086853, 0.5690056085586548, -0.5525853633880615, 0.5742380023002625, -0.589262068271637, -0.19195015728473663, -0.02493269369006157, -0.0046089873649179935, -0.07258933782577515, -0.35044288635253906, 0.5370633006095886, -0.6441739797592163, -0.12238601595163345, -0.6951102614402771, -0.6324477791786194, 0.011089235544204712, 0.44708317518234253, -0.5150102376937866, 0.8015362620353699, -0.15123987197875977, -0.9224184155464172, 0.044391028583049774, -0.13595649600028992, -0.13224036991596222, -0.24062196910381317, -0.31418508291244507, -0.33849838376045227, 0.35976842045783997, 0.05502687394618988, 0.15779225528240204, -0.4539794921875, 0.6378701329231262, -0.47837433218955994, -0.4629290699958801, 0.5772877931594849, -0.7677862644195557, 0.8046595454216003, 0.2907717525959015, -0.2132381796836853, -0.10444636642932892, -0.350166380405426, -0.04055323824286461, 0.10466818511486053, -0.16027405858039856, -0.6141636371612549, 0.031186074018478394, -0.2432432919740677, 0.19533297419548035, 0.14673292636871338, -0.5559978485107422, 0.1111687421798706, -0.29512664675712585, 0.22002843022346497, 1.0022658109664917, 0.20892328023910522, 0.47261762619018555, -0.2819437086582184, 0.11524619907140732, 0.3894369602203369, 0.34232279658317566, 0.24862444400787354, -0.4068382680416107, -0.6679002642631531, -0.07071173191070557, 0.01592501997947693, 0.04702426865696907, -0.6549960374832153, 0.20156487822532654, -0.03888509422540665, -0.20568671822547913, -0.34232035279273987, 0.28904232382774353, 0.890134871006012, 0.1781456023454666, 0.266655296087265, -0.4892750084400177, -0.2790873646736145, -0.6333637833595276, -0.5012115240097046, -0.2873695492744446, 0.09752045571804047, 0.04694218561053276, 0.676150918006897, -0.40428707003593445, 0.9890593886375427, -0.1930280327796936, 0.015609098598361015, -0.1256265789270401, 0.06549835205078125, 0.08253021538257599, 0.38120025396347046, 0.033912304788827896, -0.7479349970817566, -0.09979749470949173, 0.08485099673271179, -0.803145170211792, 0.087158203125, -0.13153211772441864, -0.3873998522758484, 0.2807583212852478, 0.5500943660736084, -0.5767142176628113, 0.37748751044273376, 0.43502429127693176, -0.5551365613937378, 0.6837325692176819, -0.34607043862342834, 0.0458773635327816, -0.9040547609329224, -0.030158672481775284, -0.38554245233535767, -0.30332961678504944, -0.4628097712993622, 0.2786472737789154, 0.00431807292625308, 0.30880457162857056, -0.23514869809150696, 0.3007429838180542, -0.6355134844779968, -0.018480468541383743, -0.24286743998527527, 0.4124792516231537, 0.21447302401065826, 0.39732053875923157, -0.4110810458660126, 0.6035870313644409, 0.3845621347427368, -0.4961622357368469, 0.3677496314048767, 0.39758944511413574, 0.10556553304195404, 0.37404826283454895, -0.44917547702789307, 0.24607239663600922, -0.2333126962184906, 0.5641003847122192, -0.8446953892707825, -0.042408496141433716, 0.020917968824505806, -0.38100171089172363, 0.13837586343288422, -0.1209028959274292, -0.6383437514305115, -0.12704958021640778, -0.2511545717716217, 0.8515300154685974, 0.15442253649234772, -0.6894084811210632, 0.6992199420928955, 0.25420406460762024, 0.21814174950122833, -0.7253575921058655, -0.7497317790985107, -0.08425963670015335, -0.06412214785814285, -0.5903231501579285, 0.2866485118865967, 0.259917289018631, -0.6920257210731506, 0.02274014800786972, -0.44594961404800415, -0.2473350614309311, -0.22570887207984924, 0.18841032683849335, 0.26455774903297424, 0.00280349631793797, 0.2380909025669098, -0.1483410745859146, -0.08505383878946304, 0.5211743116378784, -0.16436293721199036, 0.5701991319656372, -0.4550473392009735, -0.5856870412826538, -0.029477015137672424, 0.4856557548046112, 0.8147346377372742, -0.3349757492542267, 0.882149875164032, 0.2589624226093292, -0.32631489634513855, -0.33635932207107544, -0.8205078840255737, -0.14715348184108734, -0.46442124247550964, -0.21408258378505707, -0.27251243591308594, -0.7480456233024597, 0.8999027609825134, -0.2905516028404236, 0.00007144975825212896, 0.1707543432712555, 0.5543408393859863, -0.0022930356208235025, 0.791059672832489, 0.4307839274406433, -0.20098142325878143, 0.1745542734861374, -0.14179901778697968, 0.5765244960784912, -0.9759963750839233, -0.3386363983154297, -0.2966262996196747, 0.08731954544782639, -0.5858372449874878, -0.36530041694641113, 0.30968335270881653, 0.5596632957458496, -0.5689709186553955, 0.11770438402891159, -0.09810254722833633, 0.49717798829078674, 0.26578569412231445, 0.30753201246261597, 0.5149679780006409, -0.18992440402507782, -0.47503119707107544, 0.40455561876296997, -0.614497184753418, -0.6198756098747253, 0.8139052391052246, 0.38133683800697327, 0.9711306691169739, 0.29290685057640076, 0.5688100457191467, 0.0008871036698110402, -0.0711163803935051, -0.3299083709716797, 0.4452061653137207, 0.070839524269104, -0.7749260663986206, -0.2491452395915985, -0.46587133407592773, -0.7935827970504761, 0.20323342084884644, -0.01114001963287592, -1.0024785995483398, 0.28831300139427185, 0.05813375860452652, -0.019116651266813278, 0.6241934299468994, -0.31418147683143616, 0.4760998785495758, -0.028804060071706772, -0.9173369407653809, -0.30745115876197815, -0.7741220593452454, 0.7192284464836121, -0.1245177835226059, 0.24673615396022797, 0.2142029106616974, 0.21523022651672363, 0.5271576046943665, -0.681029736995697, 0.8168834447860718, 0.34383273124694824, -0.4766979515552521, 0.5549445748329163, 0.3150065839290619, 0.8674011826515198, 0.20217595994472504, 0.059568844735622406, 0.11090589314699173, 0.06221935525536537, -0.6542544364929199, -0.710078239440918, 0.916647732257843, -0.6527658700942993, -0.5759815573692322, -0.4422461986541748, -0.515855610370636, -0.3702399730682373, -0.0006942479521967471, 0.19009888172149658, 0.49631866812705994, 0.03292694315314293, 0.004870570730417967, 1.2133857011795044, 0.1353609263896942, 0.47221311926841736, 0.26154470443725586, -0.3722383379936218, -0.3319106101989746, 0.5201601386070251, -0.08371149003505707, 0.7862153649330139, 0.02378467284142971, 0.14622832834720612, -0.2276168018579483, -0.1830722540616989, -0.33944907784461975, 0.4018609821796417, -0.7974871397018433, -0.2266501784324646, -0.4446735978126526, -0.2450663298368454, 0.04690631851553917, -0.4080607295036316, -0.8699259161949158, 0.20802810788154602, 0.06493085622787476, 0.0496239997446537, 0.28659018874168396, 0.8061068654060364, 0.2761320173740387, -0.0006076900754123926, -0.6953529715538025, 0.37480834126472473, 0.2820875644683838, 0.538709819316864, 0.3929014503955841, -0.30184853076934814, 0.02970152162015438, 0.34860941767692566, -0.478677898645401, -0.7671017646789551, -0.11872322112321854, -0.31431853771209717, 0.5407736301422119, 0.6420390605926514, 0.2984062433242798, 0.9374873638153076, -0.2058107852935791, 0.7457740306854248, 0.33647939562797546, -1.1702940464019775, 0.550900399684906, -0.33644697070121765, 0.19475147128105164, 0.6072738766670227, 0.3131439983844757, -0.28816887736320496, -0.8449938297271729, -0.8712918758392334, -0.9201511144638062, 0.2303360402584076, 0.5199577808380127, -0.01354591641575098, -0.30829983949661255, 0.4971637427806854, 0.06265412271022797, 0.06793100386857986, -0.7096172571182251, -0.1413191258907318, 0.20101824402809143, 0.148723766207695, 0.1651594638824463, -0.2869971990585327, -0.26778534054756165, -0.36907750368118286, 0.7961199283599854, -0.03799092769622803, 0.26825058460235596, 0.588801383972168, -0.0588710643351078, -0.7263191342353821, 0.2972431182861328, 0.43509146571159363, 1.0808254480361938, -0.10015736520290375, 0.630416750907898, 0.3046148717403412, -0.4501224756240845, 0.21140065789222717, -0.7128939628601074, 0.13367648422718048, 0.054391395300626755, 0.7285186052322388, 0.4431062638759613, 0.16899237036705017, -0.5295619964599609, 0.825069785118103, 0.02523702196776867, -0.03665558621287346, -0.5000647306442261, -0.050500378012657166, 0.08442115783691406, 0.2611069083213806, 0.10934966802597046, 0.1965908706188202, -0.13590097427368164, -1.1414726972579956, 0.26461711525917053, 0.8050686120986938, -0.6346186995506287, -0.09901196509599686, 0.3873407542705536, -0.11281921714544296, -0.09920376539230347, 0.8601685166358948, -0.08833836019039154, -0.7159527540206909, 0.36274322867393494, 0.8390834927558899, 0.7265328168869019, -0.18174472451210022, 0.028836481273174286, 0.01698179543018341, 0.35795748233795166, -0.42043933272361755, 0.284039705991745, -0.020461466163396835, -0.870240330696106, -0.5074639320373535, -0.5296712517738342, -0.373085081577301, -0.031421512365341187, -0.8747460246086121, 0.040045686066150665, -0.2787584364414215, -0.0020422048401087523, -0.4421086311340332, 0.02750769443809986, -0.362613707780838, 0.08925573527812958, 0.042967792600393295, 0.809221088886261, -0.8262076377868652, 0.9464632868766785, 0.31246134638786316, -0.5064249634742737, -0.9054694771766663, 0.3475385308265686, -0.13266079127788544, -0.6868932247161865, 0.11369458585977554, -0.15263034403324127, -0.6092855334281921, -0.1835150569677353, -0.6880152225494385, -0.6678353548049927, 1.0556172132492065, 0.4696611762046814, -0.7561767101287842, 0.12407807260751724, 0.2561744451522827, 0.3979819118976593, -0.39134925603866577, 0.2307433933019638, 0.7406675219535828, 0.34665679931640625, 0.27370303869247437, -1.041479229927063, 0.36238205432891846, -0.023949269205331802, -0.0470648854970932, 0.5972711443901062, -0.5899406671524048, 0.7684436440467834, -0.23939712345600128, -0.04757696017622948, -0.2083013653755188, 0.33518216013908386, 0.5351186990737915, 0.466476172208786, 0.4442685544490814, 0.5787906646728516, 0.8132892847061157, 0.07918334752321243, 0.8886294960975647, 0.05589192360639572, 0.4659588634967804, 1.0934711694717407, -0.2682859003543854, 0.8260895609855652, 1.0028735399246216, -0.1326848715543747, 0.6671437621116638, 0.2044672667980194, 0.3302278518676758, 0.5010044574737549, 0.43824076652526855, -0.5356921553611755, -0.44455644488334656, -0.2328033447265625, -0.24976012110710144, 0.39162182807922363, 0.21078471839427948, -0.5689132809638977, -0.3374953866004944, -0.1794208288192749, 0.15731719136238098, 0.2777538001537323, -0.5637872219085693, 0.8981034755706787, 0.379875510931015, -0.6076034903526306, 0.8563352227210999, -0.3097865879535675, 0.24490593373775482, -0.5871104001998901, 0.015095822513103485, -0.16021545231342316, 0.4398137032985687, -0.21049079298973083, -0.8978518843650818, 0.5178486704826355, -0.07584307342767715, -0.17300108075141907, -0.1055448055267334, 0.7552925944328308, -0.42595651745796204, -0.4060559868812561, 0.7030693292617798, 0.6466055512428284, 0.07147581875324249, -0.12722447514533997, -0.363587349653244, 0.2897961437702179, -0.1894964575767517, -0.2285109907388687, 0.2837911546230316, 0.8613631129264832, -0.5057364702224731, 0.8846789002418518, 0.5819752812385559, 0.04055235534906387, -0.06547006219625473, 0.10654135793447495, 1.3410773277282715, -0.6886349320411682, -0.21592625975608826, -1.2666430473327637, 0.4056904911994934, -0.15743792057037354, -0.1744707226753235, 0.6287662982940674, 0.4058024287223816, 0.8416610360145569, 0.19652049243450165, 0.4911944568157196, 0.24385133385658264, -0.09650147706270218, -0.5138163566589355, 0.6129713654518127, -0.3110504448413849, 0.4567578434944153, -0.5515789985656738, -0.9895376563072205, -0.1181044727563858, 0.31916072964668274, -0.2283695638179779, -0.17975279688835144, 1.115383505821228, 0.665736973285675, -0.3117424249649048, 0.3569006621837616, 0.3021584153175354, 0.2940365672111511, 0.2064913809299469, 0.6725735068321228, 0.8966265320777893, -0.49708667397499084, 0.226249560713768, -0.05898892134428024, -0.14868168532848358, 0.0347740612924099, -0.9216926693916321, -0.916049599647522, -0.49988865852355957, -0.09449205547571182, -0.4715428948402405, 0.32060837745666504, 0.8699501752853394, 0.19794823229312897, -0.7218483686447144, -0.21416014432907104, -0.8350023031234741, 0.32340630888938904, -0.4008036255836487, -0.17053131759166718, 0.2424318790435791, -0.45250430703163147, 0.04715285077691078, -0.00581803685054183, 0.20958517491817474, -0.20846879482269287, -0.4804573655128479, -0.2010844498872757, -0.3843148648738861, 0.5158212780952454, 0.5746341943740845, -0.34894704818725586, -1.084191918373108, -0.4671598970890045, -0.4824831783771515, -0.011197231709957123, -0.2131342887878418, 1.0122921466827393, -0.5411609411239624, 0.31856009364128113, 0.3592100441455841, 0.3252840042114258, 0.23406794667243958, 0.23255808651447296, 0.7819274663925171, -0.6431892514228821, -0.08914992213249207, 0.24108746647834778, 0.48947691917419434, 0.0793328806757927, -0.49355071783065796, 0.22517931461334229, 0.01702110655605793, -0.8724431395530701, -0.8504460453987122, 0.5291911363601685, -0.9684698581695557, -0.5111899971961975, 1.1635781526565552, -0.35856500267982483, -0.5119249224662781, -0.4716686010360718, -0.11798928678035736, 0.4664848744869232, -0.12422899901866913, 0.8680204153060913, 0.9662966132164001, 0.018655475229024887, 0.02117099240422249, -0.3577367663383484, 0.43772876262664795, 0.2620275616645813, -0.40791672468185425, 0.6605780720710754, 0.1820278763771057, 0.15472526848316193, 0.2591513395309448, 0.5590003132820129, -0.3115321695804596, 0.06765028089284897, 0.22660599648952484, -0.29848453402519226, 0.12933610379695892, -0.4900069236755371, -0.05971138924360275, 0.012849761173129082, 0.22299949824810028, 0.09291985630989075 ]
http://arxiv.org/abs/2405.18906v1
http://arxiv.org/pdf/2405.18906v1
Language Generation with Strictly Proper Scoring Rules
2024-05-29T09:09:00
2024-05-29T09:09:00
Chenze Shao, Fandong Meng, Yijin Liu, Jie Zhou
cs.CL
cs.CL, cs.LG
Language generation based on maximum likelihood estimation (MLE) has become the fundamental approach for text generation. Maximum likelihood estimation is typically performed by minimizing the log-likelihood loss, also known as the logarithmic score in statistical decision theory. The logarithmic score is strictly proper in the sense that it encourages honest forecasts, where the expected score is maximized only when the model reports true probabilities. Although many strictly proper scoring rules exist, the logarithmic score is the only local scoring rule among them that depends exclusively on the probability of the observed sample, making it capable of handling the exponentially large sample space of natural text. In this work, we propose a straightforward strategy for adapting scoring rules to language generation, allowing for language modeling with any non-local scoring rules. Leveraging this strategy, we train language generation models using two classic strictly proper scoring rules, the Brier score and the Spherical score, as alternatives to the logarithmic score. Experimental results indicate that simply substituting the loss function, without adjusting other hyperparameters, can yield substantial improvements in model's generation capabilities. Moreover, these improvements can scale up to large language models (LLMs) such as LLaMA-7B and LLaMA-13B. Source code: \url{https://github.com/shaochenze/ScoringRulesLM}.
[ -0.13530920445919037, -1.0157668590545654, 0.5955098271369934, 0.48414939641952515, -0.3072977364063263, -0.39419546723365784, -0.417618066072464, -0.3313394784927368, -0.09252641350030899, 0.7882652282714844, -0.2191908061504364, -0.8185161352157593, -0.12005923688411713, 0.01740608736872673, -0.1609196960926056, 1.3209214210510254, 0.15230664610862732, -0.22525432705879211, -0.21414785087108612, -0.0811968445777893, -0.48827385902404785, -0.6003492474555969, -0.6617813110351562, -0.20189566910266876, 0.4826291799545288, 0.39553388953208923, 0.5230845808982849, 0.8481924533843994, 0.39903369545936584, 0.14346209168434143, 0.03893527761101723, 0.213135227560997, -0.6344965696334839, 0.22948533296585083, -0.076595239341259, -0.5176995396614075, -0.48221635818481445, -0.13697564601898193, 0.741644024848938, 0.637000560760498, -0.4799374043941498, 0.32208070158958435, 0.039094142615795135, 0.6161482930183411, -0.40543419122695923, 0.18069157004356384, -0.8413136601448059, 0.16065339744091034, -0.15562087297439575, -0.5767068862915039, -0.8839690685272217, -0.6653652787208557, -0.25777989625930786, -0.35203516483306885, 0.29139044880867004, 0.1608724445104599, 0.8001483678817749, -0.18265648186206818, -0.2970324456691742, -0.1467539668083191, -0.7730948328971863, 1.1032681465148926, -0.7907477021217346, 0.16170813143253326, 0.2513369023799896, 0.24868004024028778, -0.37224510312080383, -0.22510485351085663, -0.22855249047279358, -0.4337424337863922, 0.2059958279132843, -0.036550771445035934, -0.2880384624004364, 0.12110015004873276, 0.25173482298851013, 0.3316028118133545, -0.7020789980888367, 0.1186019703745842, -0.3589320182800293, -0.16480743885040283, 1.1074334383010864, 0.17800761759281158, 0.06367997080087662, -0.19223512709140778, -0.2877987325191498, 0.0559195950627327, -0.8783172965049744, 0.04675945267081261, 0.6295542120933533, 0.6865116357803345, -0.10954277217388153, 0.5450243949890137, -0.11447621136903763, 0.8021891117095947, 0.25242140889167786, -0.3129681646823883, -0.09834571927785873, -0.25164535641670227, -0.3223053216934204, 0.16258904337882996, 0.904758870601654, 0.5970063805580139, 0.4687495827674866, -0.08917946368455887, -0.3965337872505188, 0.012144973501563072, 0.17943920195102692, -0.643259584903717, -0.4669381082057953, -0.11945559084415436, -0.1437946856021881, -0.6772513389587402, -0.2887200117111206, -0.721752405166626, -0.15071217715740204, -0.11688896268606186, 0.3504071831703186, -0.4350794553756714, -0.09002693742513657, -0.09525389969348907, 0.09217900037765503, 0.22713226079940796, 0.10906700044870377, -0.9012872576713562, 0.33750951290130615, 0.20784766972064972, 0.7162396311759949, -0.02922474965453148, -0.005668999627232552, -0.7918573021888733, 0.029154224321246147, -0.8069514036178589, 0.8820047378540039, -0.4636969268321991, -0.48592790961265564, 0.15296272933483124, -0.34457340836524963, -0.13402627408504486, -0.6163684129714966, 0.768237292766571, -0.3646951913833618, 0.5377954840660095, 0.17514647543430328, -0.7826863527297974, -0.2573585510253906, -0.028503263369202614, -0.42842742800712585, 1.2021974325180054, -0.062350764870643616, -0.3982926607131958, 0.46620655059814453, -0.6990242004394531, -0.6420745849609375, 0.04658611863851547, 0.12076598405838013, -0.48647481203079224, 0.3484939634799957, 0.18136915564537048, 0.4741847515106201, -0.24686624109745026, 0.3839404881000519, -0.24445225298404694, -0.15229187905788422, 0.04350496083498001, -0.6844747066497803, 0.5949834585189819, 0.11099308729171753, -0.3074941635131836, -0.068714939057827, -0.8103591799736023, 0.3018867075443268, 0.1235051304101944, -0.7617993354797363, -0.04476868733763695, 0.010377630591392517, 0.34137189388275146, -0.06483419984579086, 0.15457569062709808, -0.30582287907600403, 0.0784691721200943, -0.4667114317417145, -0.15204618871212006, 0.9004641175270081, 0.16304031014442444, 0.6108688116073608, -0.5623143911361694, 0.39066579937934875, -0.21973781287670135, 0.17322008311748505, -0.14497965574264526, -0.6230176687240601, -0.6746892333030701, -0.3240426778793335, 0.434143990278244, 0.6035444736480713, -0.18125547468662262, 0.7950244545936584, -0.19651420414447784, -0.6563225388526917, -0.5727376937866211, 0.5430136322975159, 0.2000323086977005, 0.3774854838848114, 0.22254259884357452, -0.10901932418346405, -0.6843029260635376, -0.6952856779098511, -0.40455541014671326, -0.36856144666671753, 0.07793040573596954, 0.201248899102211, 0.061597906053066254, 0.10304048657417297, 0.9149332046508789, -0.4341578483581543, -0.259127676486969, -0.5671411156654358, -0.12416516244411469, 0.47647202014923096, 0.5033661127090454, 0.3855454623699188, -0.5173003673553467, -0.4714227020740509, 0.14550741016864777, -0.801588773727417, -0.35964950919151306, -0.3098025918006897, -0.10724019259214401, 0.5635198354721069, 0.21469368040561676, -0.533685028553009, 0.3548312187194824, 0.8096559643745422, -0.3605636954307556, 0.743590772151947, -0.32071301341056824, 0.038457997143268585, -0.9781296849250793, 0.060948386788368225, 0.301771342754364, -0.6459928154945374, -0.8614637851715088, 0.1942806839942932, -0.3220817446708679, -0.009624077007174492, -0.2680332064628601, 0.6122693419456482, -0.12314064055681229, 0.2464887797832489, -0.22854167222976685, 0.07584990561008453, 0.20948685705661774, 0.46237367391586304, -0.018696697428822517, 0.3314575254917145, 0.517902135848999, -0.8561000823974609, 0.3312663435935974, -0.31814074516296387, -0.48932886123657227, 0.423929899930954, -0.5473021268844604, 0.18560397624969482, -0.2957209646701813, 0.11514143645763397, -0.7671011686325073, -0.11385611444711685, -0.021165715530514717, -0.35254791378974915, 0.42893096804618835, -0.05190457031130791, -0.40911808609962463, 0.13396991789340973, -0.4246513843536377, 0.22051328420639038, 0.7566083669662476, -0.5690931081771851, 0.5168258547782898, 0.35134080052375793, -0.18325002491474152, -0.164006307721138, -0.5040013194084167, 0.0475681908428669, -0.4116232991218567, -0.5752964615821838, 0.1391737014055252, -0.33705106377601624, -0.28428757190704346, -0.26261529326438904, 0.07839291542768478, 0.11810857802629471, -0.1255677491426468, 0.121071957051754, 0.2750146985054016, -0.6168500781059265, 0.05044851824641228, 0.14443553984165192, 0.025266926735639572, -0.21409332752227783, -0.2376643270254135, 0.4781826138496399, -0.0019746453035622835, -0.048921193927526474, -0.3681299090385437, 0.35568344593048096, 0.4776228666305542, -0.028935378417372704, 0.698580265045166, 0.3688758909702301, -0.37053242325782776, -0.4291127026081085, -0.6587356925010681, -0.1340293288230896, -0.4473206400871277, 0.4330729842185974, -0.490006685256958, -0.6664714813232422, 0.11757136136293411, 0.17021895945072174, 0.3381122052669525, 0.5175638794898987, 0.7994132041931152, -0.20784710347652435, 1.2343777418136597, 0.9060410261154175, -0.09868831187486649, 0.19274699687957764, 0.122443288564682, 0.44311976432800293, -0.47930923104286194, 0.08811298757791519, -0.3835773468017578, 0.18367990851402283, -0.6738515496253967, -0.4017730951309204, 0.27532461285591125, 0.52061527967453, 0.07993607968091965, 0.23341749608516693, -0.243974506855011, 0.7070018649101257, 0.4257011413574219, -0.14742280542850494, 0.22416476905345917, 0.32637107372283936, -0.2824958860874176, -0.07284855842590332, -0.9510260820388794, -0.8577324748039246, 1.0317422151565552, 0.44489312171936035, 0.604656457901001, 0.17696981132030487, 1.0511096715927124, 0.3582174479961395, 0.5111864805221558, -0.6567452549934387, 0.5998331904411316, -0.16549405455589294, -0.6290180683135986, -0.43631869554519653, -0.8632674813270569, -0.7864257097244263, 0.0632283017039299, -0.22814463078975677, -0.734298586845398, -0.2237781584262848, 0.22482481598854065, -0.23826326429843903, 0.2630629241466522, -0.6394780874252319, 0.9728677272796631, -0.0035517311189323664, -0.23561306297779083, -0.0857875719666481, 0.00036102833109907806, 0.5179184675216675, -0.31667840480804443, 0.586262047290802, -0.3672780692577362, 0.23430505394935608, 0.7250407934188843, -0.15540532767772675, 0.8708443641662598, -0.2712459862232208, -0.27318230271339417, 0.5292714834213257, 0.5137968063354492, 0.3857906758785248, 0.061353832483291626, -0.3021649718284607, 0.04133525863289833, 0.03698084503412247, -0.5806477665901184, -0.5618476867675781, 0.8347612619400024, -0.5137195587158203, -0.5227251052856445, -0.20582552254199982, -0.4993419051170349, 0.024707695469260216, 0.025373121723532677, 0.3969779312610626, 0.38290145993232727, -0.3308190107345581, -0.04880215600132942, 0.4923655092716217, -0.14244703948497772, 0.39366698265075684, 0.3450835347175598, -0.41873154044151306, -0.34832894802093506, 1.1141732931137085, -0.1446661502122879, 0.268999308347702, 0.4448215961456299, 0.5015145540237427, -0.45541155338287354, -0.33884406089782715, -0.6189661622047424, 0.26079311966896057, -0.7196943163871765, -0.25053954124450684, -0.12922033667564392, -0.12986397743225098, -0.392213374376297, -0.2159736156463623, -0.13756753504276276, -0.2959851026535034, -0.10984126478433609, -0.29977717995643616, 0.2762909531593323, 0.6396442651748657, -0.21150165796279907, 0.0601232573390007, -0.8629786372184753, 0.0013956333277747035, 0.1320400983095169, 0.26657834649086, -0.2134169340133667, -0.8712369799613953, -0.18602262437343597, -0.039022043347358704, -0.30255600810050964, -0.7158218026161194, 0.27288952469825745, 0.7042732238769531, 0.5456021428108215, 0.33236420154571533, 0.009765933267772198, 0.6422678232192993, -0.7171408534049988, 0.6904198527336121, 0.36044177412986755, -0.8170525431632996, 0.6443586945533752, -0.3106812834739685, 0.36788585782051086, 0.34012359380722046, 0.14996692538261414, -0.5246159434318542, -0.7489620447158813, -0.5361998081207275, -0.5641152858734131, 0.5136767029762268, 0.28398433327674866, 0.6596189737319946, -0.12281504273414612, 0.15295545756816864, 0.28275054693222046, -0.09878593683242798, -1.0767139196395874, -0.04662282019853592, -0.03977302834391594, -0.7784196138381958, -0.2767329514026642, -0.07847755402326584, 0.046865157783031464, -0.039157770574092865, 0.9515900611877441, -0.08815690875053406, 0.027703750878572464, -0.023531176149845123, -0.1577189862728119, -0.47728249430656433, 0.18259873986244202, 0.6363202929496765, 0.4178912341594696, -0.2352227419614792, -0.058045659214258194, 0.3018551468849182, -0.31148800253868103, 0.1599210947751999, -0.2768949568271637, -0.3594712018966675, 0.24233920872211456, 0.6111451387405396, 0.8692131638526917, 0.22699230909347534, -0.734538197517395, 0.42992353439331055, 0.057728249579668045, -0.40419983863830566, -0.1153019443154335, 0.17991648614406586, -0.021575666964054108, 0.042740922421216965, 0.404072105884552, 0.045360833406448364, -0.24765834212303162, -0.5574484467506409, 0.26444727182388306, 0.14189261198043823, -0.4896114766597748, -0.3118121027946472, 0.4343084394931793, -0.0383443720638752, -0.3635258972644806, 0.35690557956695557, -0.3150939345359802, -0.14770568907260895, 0.2949954569339752, 0.7956119179725647, 0.6925115585327148, -0.5069177150726318, 0.5060386061668396, 0.5080657601356506, 0.38224005699157715, 0.03462081775069237, 0.1860600709915161, -0.03655533120036125, -0.6881639361381531, -0.5658001899719238, -1.278099775314331, 0.020980047062039375, -0.038943953812122345, -0.3447084128856659, 0.2738914489746094, -0.7014504671096802, -0.14775192737579346, 0.054276179522275925, -0.09085089713335037, -0.49416303634643555, 0.4997756779193878, 0.3399582803249359, 0.8122474551200867, -0.8005476593971252, 0.7319573760032654, 0.5562783479690552, -0.1960955560207367, -0.715606153011322, -0.1142667904496193, -0.1604580581188202, -0.5554397106170654, 0.44100674986839294, 0.09767762571573257, 0.040296707302331924, 0.07009150087833405, -0.276266485452652, -0.5402382016181946, 0.5774865746498108, 0.3577917218208313, -0.5555611848831177, -0.14304180443286896, 0.2916935384273529, 0.5555260181427002, -0.5202518105506897, 0.12121354788541794, 0.5186659097671509, 0.33494603633880615, -0.09982335567474365, -0.7685531377792358, 0.04447133466601372, -0.00469910679385066, 0.16140857338905334, 0.3445391058921814, -0.2248135209083557, 0.41243600845336914, -0.35683673620224, -0.2735145688056946, 0.29515644907951355, 0.5731492042541504, 0.4614332914352417, 0.2211088389158249, 0.5284135341644287, 0.5022268891334534, 0.8209234476089478, 0.06816963851451874, 1.0461947917938232, -0.21772843599319458, 0.3703175485134125, 0.5985559821128845, -0.17557111382484436, 1.0706425905227661, 0.2712516486644745, -0.19218917191028595, 0.5469257831573486, 0.43042951822280884, 0.06084383651614189, 0.39548781514167786, 0.3447868824005127, -0.36638936400413513, -0.47414055466651917, -0.058736953884363174, 0.11457354575395584, 0.7019588351249695, 0.14958052337169647, -0.3174651563167572, -0.172600656747818, -0.24978595972061157, 0.08756130188703537, 0.41031208634376526, -0.3210128843784332, 0.8329516053199768, 0.14614541828632355, -0.5211820006370544, 0.9283110499382019, 0.4062787592411041, 0.51313316822052, -0.6023826003074646, -0.0066373879089951515, -0.37537485361099243, 0.03755274787545204, -0.24522680044174194, -0.4598888158798218, 0.10203376412391663, 0.33683067560195923, -0.3788767457008362, 0.10191468149423599, 0.41171208024024963, -0.5725229382514954, -1.100927710533142, 0.14777880907058716, 0.20892547070980072, 0.2524610459804535, 0.15477436780929565, -0.4272257089614868, -0.03106928989291191, 0.16976717114448547, -0.2175634652376175, 0.2932431697845459, 0.3830450475215912, -0.15218687057495117, 0.4228210747241974, 0.9523499608039856, 0.25077125430107117, 0.3155739903450012, 0.1454562097787857, 0.26577043533325195, -0.7367079257965088, -0.33939722180366516, -1.0149255990982056, 0.45218876004219055, 0.017781531438231468, -0.35265931487083435, 0.578600287437439, 0.6573866605758667, 0.5424031019210815, -0.20953857898712158, 0.7067238688468933, 0.27218008041381836, 0.2707999348640442, -0.6627062559127808, 0.5769966840744019, -0.4533701539039612, -0.016636086627840996, -0.3317033350467682, -1.4923650026321411, -0.6861490607261658, 0.6033071875572205, -0.22601279616355896, -0.017287470400333405, 0.5326808094978333, 0.9711784720420837, 0.11811615526676178, -0.07455797493457794, 0.7797653079032898, 0.14836888015270233, 0.45025861263275146, 0.6696640849113464, 0.591221272945404, -0.4967668354511261, 0.645151674747467, -0.1284300982952118, -0.4594423472881317, -0.2729315459728241, -0.9658157825469971, -0.8470775485038757, -0.3160162568092346, -0.4235309660434723, -0.09597171097993851, 0.13269124925136566, 0.7889397144317627, 0.6526723504066467, -0.8133972883224487, -0.6043409109115601, -0.0967126116156578, 0.09109621495008469, -0.1460675299167633, -0.3506685495376587, 0.19992171227931976, -0.6731958985328674, -0.5980836153030396, 0.5842095017433167, 0.382886677980423, -0.02285267598927021, -0.051290664821863174, -0.3678661286830902, -0.14185182750225067, 0.4109208881855011, 0.7204572558403015, 0.2272414118051529, -0.5414780974388123, -0.3054370880126953, -0.13807141780853271, -0.15132823586463928, 0.012962204404175282, 0.5177587866783142, -0.5612585544586182, 0.351550817489624, 0.14455164968967438, 0.33981847763061523, 0.2594653367996216, -0.09115297347307205, 0.8498138785362244, -0.9377599358558655, -0.06758345663547516, 0.2733292877674103, 0.23632463812828064, 0.6669532060623169, -0.23015853762626648, 0.10997183620929718, 0.14291715621948242, -0.506394624710083, -1.032089352607727, 0.256667822599411, -0.685498833656311, -0.027458367869257927, 1.0491522550582886, 0.022633826360106468, -0.34175166487693787, 0.1700940728187561, -0.27485543489456177, 0.15271161496639252, -0.2965192198753357, 0.8361642956733704, 0.4630851745605469, 0.09321224689483643, -0.11584582179784775, -0.48665934801101685, 0.5239911079406738, 0.5222665071487427, -0.48278388381004333, 0.1375560462474823, 0.3969450294971466, 0.31985053420066833, 0.15598073601722717, 0.5347530841827393, -0.06847099214792252, 0.44695398211479187, 0.056362953037023544, 0.07303614169359207, 0.32287150621414185, -0.36746883392333984, -0.27247002720832825, 0.24219803512096405, 0.4330771565437317, 0.06295700371265411 ]
http://arxiv.org/abs/2406.16899v1
http://arxiv.org/pdf/2406.16899v1
Prompt-based vs. Fine-tuned LLMs Toward Causal Graph Verification
2024-05-29T09:06:18
2024-05-29T09:06:18
Yuni Susanti, Nina Holsmoelle
cs.CL
cs.CL, cs.AI
This work aims toward an application of natural language processing (NLP) technology for automatic verification of causal graphs using text sources. A causal graph is often derived from unsupervised causal discovery methods and requires manual evaluation from human experts. NLP technologies, i.e., Large Language Models (LLMs) such as BERT and ChatGPT, can potentially be used to verify the resulted causal graph by predicting if causal relation can be observed between node pairs based on the textual context. In this work, we compare the performance of two types of NLP models: (1) Pre-trained language models fine-tuned for causal relation classification task and, (2) prompt-based LLMs. Contrasted to previous studies where prompt-based LLMs work relatively well over a set of diverse tasks, preliminary experiments on biomedical and open-domain datasets suggest that the fine-tuned models far outperform the prompt-based LLMs, up to 20.5 points improvement of F1 score. We shared the code and the pre-processed datasets in our repository.
[ -0.08771680295467377, -1.15179443359375, 0.7895418405532837, 0.4649517834186554, -0.15971367061138153, -0.02914334088563919, -0.2436806708574295, -0.7627328038215637, -0.0029235563706606627, 0.48574888706207275, -0.5746585130691528, -0.5853546261787415, -0.5056291818618774, 0.646236777305603, -0.29591214656829834, 0.8939467668533325, 0.006243647541850805, 0.27693939208984375, -0.4944932758808136, 0.09820988774299622, -0.6782196164131165, -0.37475672364234924, -1.1329361200332642, -0.6502684950828552, 0.8039680123329163, -0.0033494269009679556, 0.5440556406974792, 0.477641224861145, 0.5808941721916199, 0.3227096199989319, -0.20497258007526398, 0.49942025542259216, -0.35482466220855713, 0.09624824672937393, -0.29800426959991455, -0.13307151198387146, -0.3372560441493988, -0.09845336526632309, 0.34664541482925415, 0.8267905116081238, 0.3430474102497101, 0.1701209992170334, 0.3852171003818512, 0.5445030927658081, -0.27812767028808594, 0.4909292161464691, -0.3488312363624573, -0.18463829159736633, 0.08182869106531143, -0.4091779589653015, -0.6717087626457214, -0.6357353925704956, 0.21245244145393372, -0.4663510322570801, 0.21708831191062927, 0.30320775508880615, 0.9031444191932678, 0.4613354504108429, -0.6938812732696533, -0.28098368644714355, -0.6888190507888794, 0.3889583647251129, -0.675982654094696, 0.3433828055858612, 0.34062257409095764, 0.12202693521976471, -0.559196412563324, -1.0612387657165527, -0.320341557264328, -0.5065012574195862, -0.24741365015506744, -0.05983767285943031, -0.28057023882865906, 0.22197675704956055, 0.5511677861213684, 0.026898158714175224, -0.6406728029251099, 0.5847007036209106, -0.0681796595454216, -0.42131805419921875, 0.6182014346122742, 0.29721716046333313, 0.3071848750114441, -0.46220672130584717, -0.32970505952835083, 0.16714657843112946, -0.7885788679122925, 0.0921364426612854, 0.1725907027721405, 0.6760538220405579, -0.07042651623487473, 0.6892341375350952, -0.4025484025478363, 0.9531851410865784, -0.029678842052817345, 0.08192133158445358, 0.015418999828398228, -0.39304792881011963, -0.21442629396915436, -0.015736158937215805, 0.9632852673530579, 0.43604761362075806, 0.4921051263809204, -0.3868192732334137, -0.03515574336051941, -0.019106926396489143, -0.11703725904226303, -0.6905146837234497, -0.13329944014549255, 0.06676744669675827, -0.5080510377883911, 0.08639620244503021, -0.3070736825466156, -0.33921676874160767, -0.551926851272583, -0.6472454071044922, 0.2884896397590637, -0.4711586833000183, 0.2524310052394867, 0.2489900141954422, 0.007246765308082104, 0.07708383351564407, 0.6795529127120972, -0.43025219440460205, 0.11773169040679932, 0.6905168294906616, 1.0284006595611572, -0.26349198818206787, -0.15460561215877533, -0.5664869546890259, -0.1593949794769287, -0.17057400941848755, 0.9941848516464233, -0.2457238733768463, -0.19195742905139923, 0.10944544523954391, 0.18186213076114655, -0.22982822358608246, -0.2161056250333786, 0.855190634727478, -0.753639280796051, 0.23865480720996857, -0.4947957396507263, -0.9630496501922607, -0.031948018819093704, 0.2711926996707916, -0.6663641333580017, 0.8340417146682739, -0.13525374233722687, -0.9361276030540466, 0.5107150673866272, -0.4844929575920105, -0.5625190734863281, 0.12641696631908417, -0.08122912794351578, -0.23988227546215057, -0.2963355481624603, 0.25990593433380127, 0.7123861908912659, -0.5100423097610474, 0.7442731261253357, -0.5675457119941711, -0.18397043645381927, 0.30003026127815247, -0.5340047478675842, 0.8612743020057678, 0.07952851802110672, -0.16715458035469055, 0.3854101300239563, -0.9532385468482971, -0.08948380500078201, 0.011338697746396065, -0.23304113745689392, -0.3149631917476654, 0.26205670833587646, -0.008320908062160015, 0.27291354537010193, 0.2812991142272949, -0.6115333437919617, 0.12196812778711319, -0.46412354707717896, 0.3381367027759552, 0.7622081637382507, 0.2469675987958908, 0.016605684533715248, -0.3134096562862396, 0.20099006593227386, -0.3104817271232605, -0.0009939863812178373, -0.05532826483249664, -0.7808335423469543, -0.5305071473121643, -0.16730041801929474, 0.30387091636657715, 0.6547511219978333, -0.7920486927032471, 0.7797496914863586, -0.084722600877285, -0.5482117533683777, 0.006056535057723522, -0.16552765667438507, 0.2974332571029663, 1.1342195272445679, 0.5201314091682434, 0.011722016148269176, -0.40017756819725037, -0.7084168791770935, -0.4200524389743805, -0.3118210732936859, -0.15082553029060364, 0.4494153559207916, 0.33896130323410034, -0.33458971977233887, 1.1848163604736328, -0.6627256274223328, -0.08005921542644501, -0.09102829545736313, 0.22166435420513153, 0.3670937418937683, 0.5489115715026855, 0.4251266121864319, -0.338115930557251, -0.48479965329170227, -0.1591103971004486, -0.7728067636489868, -0.5279970169067383, -0.07182077318429947, 0.08821766078472137, 0.10682372003793716, 0.865788459777832, -0.5368574857711792, 0.4223984181880951, 0.33021560311317444, -0.7237010598182678, 0.7991253137588501, -0.3929360508918762, 0.30685102939605713, -0.7622309923171997, 0.31080248951911926, 0.1365373432636261, -0.5498817563056946, -0.568583071231842, -0.2732834815979004, 0.048815514892339706, -0.1638387143611908, -0.2683241367340088, 0.7451797723770142, -0.2570728659629822, 0.08224935084581375, -0.2732063829898834, 0.014759323559701443, -0.0871538519859314, 0.45380887389183044, 0.07285194098949432, 0.6180818676948547, 0.4969516694545746, -0.8176882266998291, 0.32139143347740173, 0.20820032060146332, -0.3316393792629242, 0.4163134694099426, -1.1784448623657227, -0.0376102477312088, -0.064218670129776, 0.3394242525100708, -1.1506489515304565, -0.23519271612167358, 0.16865262389183044, -0.27253973484039307, 0.2867775857448578, 0.06964883953332901, -0.9136291146278381, -0.4238864779472351, -0.03842731937766075, 0.1271229088306427, 0.4044475257396698, -0.6000088453292847, 0.1449114829301834, -0.019789500162005424, -0.09005336463451385, -0.31118348240852356, -0.3057190477848053, 0.01440968457609415, -0.026485970243811607, -0.7925458550453186, 0.20488588511943817, 0.021043773740530014, 0.042693305760622025, -0.126159206032753, 0.09939614683389664, -0.07594215869903564, 0.24379251897335052, 0.37276944518089294, 0.18441392481327057, -0.1695757508277893, 0.3879506587982178, 0.05335251986980438, -0.31742119789123535, 0.1730809509754181, -0.06802094727754593, 0.5507068037986755, 0.07036449015140533, -0.5448785424232483, -0.592939555644989, 0.07678258419036865, 0.3199213147163391, -0.1371145099401474, 0.726637065410614, 0.5517266392707825, -0.453485369682312, 0.09474216401576996, -0.4691343307495117, -0.2984165549278259, -0.4414730966091156, 0.1503211259841919, 0.09670911729335785, -1.1681225299835205, 0.7348015308380127, -0.39741525053977966, -0.15506115555763245, 0.6922402381896973, 0.40588662028312683, -0.08383098989725113, 1.0791621208190918, 0.5923475623130798, -0.11086748540401459, 0.3972693979740143, 0.18287290632724762, 0.12730510532855988, -0.49749624729156494, -0.3053717613220215, -0.8837417364120483, -0.045754071325063705, -0.6074782609939575, -0.15800508856773376, 0.3818867802619934, 0.13304093480110168, -0.47746145725250244, 0.09119392186403275, -0.37761908769607544, 0.290473997592926, 0.5867677927017212, 0.4809189736843109, 0.463010311126709, -0.1457832306623459, -0.04475421458482742, 0.068695068359375, -0.7878181338310242, -0.6905868649482727, 0.9457545876502991, 0.2252577394247055, 0.6406312584877014, -0.18751195073127747, 0.41421523690223694, 0.29189011454582214, 0.21146410703659058, -0.5478740930557251, 0.6737831830978394, -0.08411179482936859, -0.4159724712371826, -0.42889583110809326, -0.47118470072746277, -1.3566744327545166, -0.13669680058956146, -0.44592997431755066, -0.8776114583015442, 0.07903561741113663, 0.27493026852607727, -0.31778451800346375, 0.07871318608522415, -0.6714122295379639, 0.8931577205657959, -0.11058753728866577, -0.4314558506011963, -0.07440145313739777, -0.7277252674102783, 0.3210262358188629, -0.0017560167470946908, -0.09263420850038528, -0.26643532514572144, 0.2649451494216919, 0.7415480017662048, -0.5645245909690857, 1.0578577518463135, -0.08579296618700027, -0.07683125883340836, 0.19506023824214935, -0.2307257354259491, 0.6920565366744995, 0.2784401476383209, -0.08894242346286774, 0.2073400467634201, -0.1917220950126648, -0.18226879835128784, -0.5008211135864258, 0.6942322254180908, -0.7051847577095032, -0.5376838445663452, -0.2890286147594452, -0.3355010449886322, -0.38457176089286804, 0.5269328355789185, 0.2962145209312439, 0.5571436285972595, -0.29522284865379333, -0.04287053644657135, 0.5805445313453674, -0.524349570274353, 0.47577062249183655, 0.5709354877471924, -0.17335043847560883, -0.05875277891755104, 0.428845077753067, -0.07458475977182388, 0.03508356958627701, 0.42881736159324646, 0.34454116225242615, -0.3943057954311371, -0.5491963624954224, -0.15135689079761505, 0.34601205587387085, -0.6368559002876282, -0.4124313294887543, -0.7293511629104614, -0.1885058432817459, -0.5655416250228882, -0.14411558210849762, -0.18760095536708832, -0.27171093225479126, -0.6136631369590759, -0.01847216859459877, 0.6645538210868835, 0.6464222073554993, -0.07937832921743393, 0.22663331031799316, -0.7708432674407959, 0.3368072807788849, 0.2844732403755188, 0.5055149793624878, -0.1426866054534912, -0.31927669048309326, -0.1257103830575943, -0.05580848827958107, -0.008566411212086678, -1.0087175369262695, 0.19032806158065796, -0.027020739391446114, 0.4916856288909912, 0.3287416100502014, 0.09435516595840454, 0.621024489402771, -0.7599486112594604, 0.7207691073417664, 0.1733834594488144, -0.7929112911224365, 0.5660056471824646, -0.4568488597869873, 0.2827642560005188, 0.44891050457954407, 0.38730981945991516, -0.4118354916572571, -0.5358091592788696, -0.565333902835846, -0.732086181640625, 0.5060680508613586, 0.05054729804396629, -0.27066028118133545, -0.2326238453388214, 0.5603514313697815, 0.026993118226528168, 0.020519670099020004, -0.5413113832473755, -0.3707928955554962, 0.1667742133140564, -0.1467854380607605, -0.36150506138801575, -0.23945556581020355, 0.053651247173547745, -0.21846413612365723, 0.3586885929107666, -0.13181520998477936, 0.18690066039562225, 0.47772496938705444, -0.04992692917585373, 0.02103891596198082, 0.05131295695900917, 0.5078643560409546, 0.6215233206748962, -0.2604205310344696, 0.10444562882184982, 0.022641753777861595, -0.211800217628479, 0.09222335368394852, 0.3642594814300537, -0.35759320855140686, 0.24730585515499115, 0.9259079694747925, 0.8988214135169983, 0.30825451016426086, -0.5982940793037415, 0.42304280400276184, -0.10965368151664734, 0.11337723582983017, 0.1591954231262207, 0.09960158169269562, 0.08150094002485275, 0.32802677154541016, 0.09816894680261612, 0.09631477296352386, 0.32174399495124817, -0.023815475404262543, 0.20366165041923523, 0.43650174140930176, -0.17328175902366638, -0.2894152104854584, 0.7484647035598755, 0.222881019115448, -0.325724720954895, 0.4979904592037201, -0.09935647994279861, -0.27140146493911743, 0.7307029962539673, 0.5998329520225525, 0.8211260437965393, -0.050825029611587524, 0.1954810917377472, 0.5938487648963928, 0.3105938136577606, -0.14511738717556, 0.15323272347450256, 0.09427354484796524, -0.6605899930000305, -0.7293822765350342, -0.3586002290248871, -0.41241008043289185, -0.013052141293883324, -0.560893714427948, 0.43355903029441833, -0.38455796241760254, -0.3201136589050293, 0.001088342280127108, 0.05327923968434334, -0.9232146143913269, 0.22200480103492737, -0.17917735874652863, 0.9243839979171753, -1.0047811269760132, 0.6478193998336792, 0.641187846660614, -0.2259397804737091, -0.9027308225631714, -0.2775815725326538, -0.2950769066810608, -0.7367193698883057, 0.8243616223335266, 0.2422795593738556, 0.07459475100040436, 0.1786649227142334, -0.5696313381195068, -0.8766505718231201, 0.9593662619590759, 0.6338628530502319, -0.566174328327179, 0.07480835169553757, 0.0071789599023759365, 0.7331050038337708, 0.13066115975379944, 0.29874753952026367, 0.3373129963874817, 0.36624160408973694, -0.08129199594259262, -1.0656707286834717, 0.2231302261352539, 0.18213559687137604, -0.18142126500606537, 0.06776952743530273, -0.26547083258628845, 0.6079686880111694, -0.1473705768585205, -0.35292887687683105, -0.08593523502349854, 0.7505369782447815, 0.44260334968566895, 0.5395260453224182, 0.3100588917732239, 0.18918587267398834, 1.0515652894973755, -0.04375799000263214, 1.163991928100586, -0.4551272392272949, 0.422080397605896, 1.1168745756149292, -0.3408339023590088, 0.4999920129776001, 0.37984344363212585, -0.2770853042602539, 0.4570322334766388, 0.9109516143798828, 0.17056384682655334, 0.35873857140541077, 0.08536510914564133, 0.04086320847272873, -0.23075851798057556, -0.22217996418476105, -0.41386890411376953, 0.14920422434806824, 0.1848527044057846, -0.2625749707221985, -0.37396952509880066, -0.1404479444026947, 0.05047135800123215, 0.11396962404251099, -0.5192334651947021, 0.8001522421836853, 0.10275735706090927, -0.6937196850776672, 0.3864099085330963, 0.10170257836580276, 0.5551319718360901, -0.666348397731781, 0.19301925599575043, -0.03251822292804718, -0.12192542105913162, -0.15511368215084076, -0.6427102088928223, 0.21848994493484497, 0.11123555898666382, -0.1880972683429718, -0.2087290734052658, 1.1761908531188965, -0.2508925199508667, -0.35366129875183105, 0.26083478331565857, 0.6779050827026367, -0.1414407193660736, 0.07075939327478409, -0.6426195502281189, -0.23086413741111755, -0.2146313190460205, -0.3441687524318695, 0.04294257238507271, 0.5474674105644226, -0.20432406663894653, 0.7216954231262207, 0.7476922273635864, 0.10636874288320541, -0.0634305477142334, 0.20058172941207886, 0.7123211026191711, -0.6094993352890015, -0.48948097229003906, -1.1172977685928345, 0.2477058619260788, -0.16441848874092102, -0.33567193150520325, 1.0048730373382568, 0.29445311427116394, 0.4560803472995758, -0.16955804824829102, 0.41364920139312744, 0.23639395833015442, 0.5754462480545044, -0.8697605133056641, 0.5242107510566711, -0.20086556673049927, 0.1296086460351944, -0.5347446203231812, -0.623574435710907, -0.7697497010231018, 0.42659634351730347, -0.41643932461738586, 0.07820264250040054, 0.7764433026313782, 0.5850794315338135, 0.2572562098503113, 0.011297966353595257, 0.01323805283755064, 0.13599596917629242, 0.44280558824539185, 0.4179934859275818, 0.8210241794586182, 0.004143893253058195, -0.07496225833892822, 0.09031756967306137, -0.24051909148693085, -0.25860095024108887, -1.2678816318511963, -1.0655221939086914, -0.4111023545265198, -0.5120919346809387, -0.3190453350543976, -0.130997896194458, 0.8277015686035156, 0.3339262902736664, -0.5697974562644958, -0.003106959629803896, -0.3839109241962433, 0.4426198899745941, -0.16252189874649048, -0.2152508646249771, 0.6935626864433289, -0.6340639591217041, -0.4154123365879059, 0.38971900939941406, 0.3180319666862488, 0.05475533381104469, -0.06695094704627991, 0.05395734682679176, -0.14094284176826477, 0.05925124138593674, 0.7531901001930237, 0.27880603075027466, -0.5016724467277527, -0.4817492663860321, -0.0006561051122844219, -0.2965681254863739, -0.21282188594341278, 0.8537504076957703, -0.856996476650238, 0.28185802698135376, 0.7230706810951233, 0.6865089535713196, 0.16011524200439453, -0.06634499132633209, 0.5725739002227783, -0.6961820125579834, 0.10681648552417755, 0.08662977069616318, 0.6769542098045349, 0.2860567569732666, -0.46340426802635193, 0.5330563187599182, 0.35941657423973083, -0.8468956351280212, -0.8297135233879089, 0.19500555098056793, -1.1127536296844482, -0.34796977043151855, 1.2472765445709229, -0.1885320246219635, 0.03536005690693855, -0.31264734268188477, -0.24432262778282166, 0.5628703832626343, -0.18589171767234802, 0.5932416319847107, 0.4982055127620697, -0.42721739411354065, 0.39291203022003174, -0.2996078431606293, 0.6929014921188354, 0.2544046640396118, -0.948457658290863, -0.059137992560863495, 0.6422571539878845, 0.08570437878370285, -0.020728951320052147, 0.7784250378608704, 0.1503368616104126, 0.14991599321365356, -0.47366926074028015, -0.09190218150615692, -0.19063934683799744, -0.171796515583992, -0.416492760181427, 0.12196783721446991, 0.1008961945772171, 0.09789220988750458 ]
http://arxiv.org/abs/2405.18874v1
http://arxiv.org/pdf/2405.18874v1
Are queries and keys always relevant? A case study on Transformer wave functions
2024-05-29T08:32:37
2024-05-29T08:32:37
Riccardo Rende, Luciano Loris Viteritti
cond-mat.dis-nn
cond-mat.dis-nn, cs.CL, physics.comp-ph
The dot product attention mechanism, originally designed for natural language processing (NLP) tasks, is a cornerstone of modern Transformers. It adeptly captures semantic relationships between word pairs in sentences by computing a similarity overlap between queries and keys. In this work, we explore the suitability of Transformers, focusing on their attention mechanisms, in the specific domain of the parametrization of variational wave functions to approximate ground states of quantum many-body spin Hamiltonians. Specifically, we perform numerical simulations on the two-dimensional $J_1$-$J_2$ Heisenberg model, a common benchmark in the field of quantum-many body systems on lattice. By comparing the performance of standard attention mechanisms with a simplified version that excludes queries and keys, relying solely on positions, we achieve competitive results while reducing computational cost and parameter usage. Furthermore, through the analysis of the attention maps generated by standard attention mechanisms, we show that the attention weights become effectively input-independent at the end of the optimization. We support the numerical results with analytical calculations, providing physical insights of why queries and keys should be, in principle, omitted from the attention mechanism when studying large systems. Interestingly, the same arguments can be extended to the NLP domain, in the limit of long input sentences.
[ -0.6320260763168335, -0.7416985034942627, 0.9189667105674744, 0.1275455802679062, -0.2085263729095459, -0.2694838345050812, -0.23374103009700775, -0.3018955588340759, -0.055514946579933167, 0.5773109197616577, -0.5613715648651123, -0.13732898235321045, -0.3247847557067871, 0.09447135031223297, -0.5451217889785767, 0.6524344086647034, 0.0503682941198349, -0.47168564796447754, -0.2878572642803192, -0.033937349915504456, 0.04510276019573212, -0.35360583662986755, -0.5120664238929749, -0.15277926623821259, 0.669822096824646, -0.31062668561935425, 0.9444360733032227, 0.18840909004211426, 0.9592957496643066, 0.2401396483182907, -0.4232383668422699, -0.10012535005807877, -0.5963102579116821, 0.36523866653442383, -0.4166002571582794, -0.8063523769378662, 0.019960621371865273, -0.2949681282043457, 0.5448228120803833, 0.7574571967124939, -0.002826076466590166, 0.08654480427503586, 0.22047248482704163, 0.9968383312225342, -0.7265627384185791, 0.24122090637683868, -0.584928035736084, 0.423274964094162, -0.0783286765217781, -0.12275227159261703, -0.28725260496139526, -0.2131110429763794, 0.4601811170578003, -0.7135458588600159, 0.4857005476951599, 0.042787641286849976, 0.99554842710495, 0.6138421893119812, -0.3755921423435211, -0.0898069366812706, -0.8061407208442688, 0.7369977831840515, -0.45506608486175537, 0.7174953818321228, 0.32230523228645325, 0.21120354533195496, -0.2683379054069519, -0.5889970064163208, -0.49982011318206787, -0.15561214089393616, -0.23094742000102997, 0.3639702796936035, -0.48171377182006836, 0.2993301451206207, 0.5072962641716003, 0.3807006776332855, -0.4991105794906616, -0.3996621370315552, -0.36405640840530396, 0.1029617041349411, 0.16644547879695892, 0.2028648406267166, -0.019415322691202164, -0.41517865657806396, -0.365481436252594, -0.46528321504592896, -0.6392983794212341, 0.36505788564682007, -0.009377561509609222, 0.13198629021644592, -0.20334483683109283, 0.5319473147392273, -0.3931160569190979, 0.8865780830383301, 0.3298218548297882, 0.26604437828063965, -0.07230829447507858, -0.10311195254325867, -0.09591559320688248, -0.36954134702682495, 0.8723421692848206, 0.37509939074516296, 0.41833746433258057, -0.7385722398757935, 0.08429260551929474, -0.059940800070762634, 0.778645932674408, -0.35123375058174133, 0.09226647764444351, 0.4193685054779053, -0.31904733180999756, -0.14636309444904327, -0.10113345086574554, -0.8757436871528625, -0.054394837468862534, -0.28807976841926575, 0.49084487557411194, -0.21231555938720703, -0.029848795384168625, -0.003532236674800515, -0.24123267829418182, 0.5037916302680969, -0.40228039026260376, -0.8418328166007996, 0.5447800755500793, 0.6761837005615234, 0.45035600662231445, -0.4571731388568878, -0.04487760737538338, -0.1250980645418167, 0.42741286754608154, -0.3793541491031647, 0.6670647263526917, -0.6258000135421753, -0.5473275780677795, 0.0060249133966863155, -0.0773392915725708, -0.16332100331783295, -0.5114261507987976, 0.7839879393577576, -1.1449395418167114, -0.03030179627239704, -0.3788243532180786, -0.4464518129825592, -0.21629981696605682, 0.19196166098117828, -0.7904312014579773, 0.6749122142791748, 0.223067045211792, -0.5942753553390503, -0.07925146073102951, -0.760262131690979, -0.9517865777015686, -0.21493566036224365, -0.0704265683889389, -0.4984116852283478, 0.49162521958351135, 0.23786883056163788, 0.2302510291337967, -0.6243710517883301, -0.005044702906161547, -0.2708016335964203, -0.191472128033638, 0.8056899309158325, -0.32176581025123596, 0.33074280619621277, 0.1703309863805771, -0.42427921295166016, -0.07318577170372009, -0.7817630767822266, 0.3154369294643402, 0.007138272747397423, -0.23372504115104675, 0.00014980408013798296, 0.274810254573822, -0.1631401777267456, 0.1370553970336914, -0.00042663139174692333, -0.1477060317993164, -0.128890261054039, -0.784151017665863, 0.6139042377471924, 0.38155245780944824, 0.47596263885498047, 0.6193642020225525, 0.22429057955741882, 0.7188976407051086, -0.17174813151359558, 0.3156413733959198, -0.20176444947719574, -0.32097122073173523, -0.7232120037078857, -0.1568204164505005, 0.41318947076797485, 0.24493874609470367, -0.5353002548217773, 0.37619858980178833, -0.1963728964328766, -0.23345966637134552, -0.3571549952030182, -0.41279110312461853, 0.2663217782974243, 0.39826416969299316, 0.2786259353160858, 0.19193950295448303, -0.23653800785541534, -1.2275742292404175, -0.5825696587562561, 0.004800749011337757, -0.2652062177658081, 0.44885432720184326, 0.002760096453130245, 0.11165986210107803, 1.067671775817871, -0.7244089841842651, -0.14615793526172638, 0.07611240446567535, -0.22968216240406036, 0.3246302604675293, 0.0574350468814373, 0.36880362033843994, -0.8731680512428284, -0.5616439580917358, 0.05753625929355621, -0.85499507188797, 0.24940894544124603, -0.08092452585697174, -0.2754966616630554, -0.16253480315208435, 0.5365352034568787, -1.134621024131775, 0.3732047975063324, 0.17630885541439056, 0.15194328129291534, -0.17344844341278076, 0.15084421634674072, 0.04783714935183525, -0.7922323346138, 0.14187407493591309, 0.07262671738862991, -0.239035964012146, -0.5437118411064148, 0.7385593056678772, 0.2326141595840454, -0.5463780760765076, -0.2612229883670807, 0.2072625458240509, -0.4801769256591797, -0.10160353034734726, -0.25552093982696533, 0.3620222508907318, 0.02418726123869419, 0.7908584475517273, -0.09754534065723419, 0.5447142124176025, 0.7981706857681274, -0.9933401942253113, 0.1782251000404358, 0.20891126990318298, 0.14554308354854584, 0.6716420650482178, -1.0124876499176025, 0.2177494764328003, -0.14231523871421814, -0.27119749784469604, -1.2060625553131104, 0.011093434877693653, 0.3818758428096771, -0.47057703137397766, 0.3361234664916992, 0.06202280893921852, -0.5258768200874329, -0.6332824230194092, -0.3323359787464142, 0.05143129080533981, 0.6357036232948303, -0.28323894739151, 0.8951076865196228, 0.4123653173446655, 0.1960713118314743, -0.13422513008117676, -0.4076908528804779, -0.18497152626514435, -0.1264181286096573, -0.4729060232639313, 0.13594751060009003, 0.43151772022247314, -0.07119102030992508, 0.2163057029247284, -0.496992290019989, -0.05299924686551094, 0.1491706669330597, 0.23096194863319397, 0.07534623891115189, -0.021564260125160217, 0.27524393796920776, 0.18698342144489288, -0.278058260679245, 0.3010789155960083, -0.1394050270318985, 0.5221145749092102, 0.11569274961948395, -0.40464189648628235, -0.39943042397499084, 0.37377455830574036, 0.6921274662017822, -0.4821726977825165, 0.36514216661453247, 0.35016030073165894, -0.22829754650592804, 0.025617074221372604, -0.4595418870449066, -0.6416055560112, -0.5594542622566223, 0.4908139407634735, -0.6273703575134277, -0.7859635949134827, 0.4320622980594635, 0.16522999107837677, -0.036850228905677795, 0.6016525626182556, 0.4843516945838928, -0.389965683221817, 0.9341808557510376, 0.4668929874897003, 0.044906653463840485, 0.44223570823669434, 0.1475866585969925, 0.6745898723602295, -1.2671693563461304, 0.027690479531884193, -0.5847841501235962, -0.555169403553009, -0.6982864737510681, -0.45684951543807983, 0.713539719581604, -0.05710390582680702, 0.1494971513748169, 0.4291788935661316, -0.6887958645820618, 0.5277720093727112, 0.5306858420372009, 0.10359214246273041, -0.08151306211948395, 0.28168216347694397, 0.06474626064300537, -0.3730860948562622, -0.6331040859222412, 0.06554263085126877, 1.2992944717407227, 0.16851092875003815, 0.7697426676750183, -0.08203023672103882, 0.45911240577697754, 0.039906423538923264, -0.14746150374412537, -0.8210672736167908, 0.5045759677886963, 0.1366758495569229, -0.7384644746780396, -0.4651479423046112, -0.3784330189228058, -1.1652398109436035, 0.5522553324699402, 0.0570935495197773, -0.6628639698028564, 0.3354136645793915, -0.1406409591436386, -0.5292481184005737, -0.20505821704864502, -0.8112462759017944, 0.5484610199928284, 0.16123612225055695, -0.4813641309738159, -0.4845064580440521, -0.8393753170967102, 0.03017731010913849, 0.019717205315828323, 0.04878007993102074, 0.0872906893491745, -0.043474845588207245, 0.6537405252456665, -0.22003032267093658, 0.6925289630889893, 0.10080791264772415, -0.09238961338996887, 0.4215579628944397, 0.009609617292881012, 0.5879016518592834, 0.03371899202466011, 0.3002369999885559, -0.09891306608915329, -0.2018015831708908, -0.027413252741098404, -0.6687412261962891, 0.5535715818405151, -0.6815462708473206, -0.8407559990882874, -0.1015114039182663, -0.5616427063941956, -0.5647403001785278, 0.2434440702199936, 0.1627766191959381, 0.08836429566144943, 0.22351616621017456, 0.4442639946937561, 1.047452449798584, 0.1495540589094162, 0.5725266337394714, 0.6088259220123291, -0.03809010609984398, -0.15931053459644318, 0.7367518544197083, 0.09335341304540634, 0.3226543366909027, 0.8209317922592163, 0.15281669795513153, -0.21365667879581451, 0.010960663668811321, -0.18570151925086975, 0.27377021312713623, -0.6285449266433716, -0.0988537147641182, -0.8224870562553406, -0.16057121753692627, -0.28171923756599426, 0.1888156235218048, -0.3784997761249542, -0.4936140477657318, -0.1341988444328308, 0.1242467388510704, 0.3270640969276428, 0.17831766605377197, 0.09324635565280914, 0.15894469618797302, -0.7795153260231018, 1.1540393829345703, 0.6466492414474487, 0.4793773293495178, 0.3115076422691345, -0.34712913632392883, -0.17608480155467987, -0.2974110543727875, -0.5608915686607361, -1.0100820064544678, -0.22179017961025238, 0.15183760225772858, 0.9046802520751953, 0.3811507225036621, 0.10745863616466522, 0.32130756974220276, -0.600785493850708, 0.543728768825531, 0.17632818222045898, -0.959604799747467, 0.3816814124584198, -0.2581756114959717, 0.592533528804779, 0.39344334602355957, 0.3786008358001709, -0.7320603132247925, -0.6996791958808899, -0.4253263771533966, -0.930453896522522, 0.8545459508895874, 0.5607113838195801, 0.22286881506443024, -0.010022914037108421, 0.6000582575798035, -0.4429702162742615, 0.3612407147884369, -0.5870161056518555, -0.4998995363712311, 0.2154836356639862, -0.20808099210262299, 0.4573703110218048, -0.22325988113880157, -0.25603625178337097, 0.11561878770589828, 0.3392530679702759, 0.03909820690751076, 0.4832495450973511, 0.2672731876373291, -0.1001894474029541, -0.26812249422073364, 0.20248933136463165, 0.43135371804237366, 0.5169454216957092, 0.18856801092624664, -0.08141200989484787, -0.05953451246023178, -0.4415509104728699, -0.08488939702510834, 0.11262114346027374, -0.31175538897514343, 0.04159057140350342, 0.016816338524222374, 0.7137388586997986, 0.5961728692054749, -0.553692638874054, 0.292249858379364, 0.05927241966128349, -0.015081524848937988, 0.151784747838974, 0.018776725977659225, 0.488876610994339, 0.4604121446609497, 0.3738785684108734, 0.06554669886827469, 0.616789698600769, -0.25693994760513306, 0.23517310619354248, 0.5880181193351746, -0.740233838558197, -0.2647590637207031, 0.9256699085235596, -0.062396638095378876, -0.44263970851898193, 0.30603325366973877, -0.09784743934869766, -0.6531338095664978, 0.6503810882568359, 0.24631153047084808, 0.9888370633125305, -0.15803593397140503, -0.02499026246368885, 0.28836044669151306, 0.5113103985786438, 0.15644614398479462, 0.19946818053722382, -0.38947829604148865, -0.3134758770465851, -0.2949952781200409, -0.3841020464897156, -0.36652815341949463, -0.27421531081199646, -0.8802255392074585, 0.17144179344177246, -0.540465772151947, -0.45505765080451965, 0.23535774648189545, -0.5719326734542847, -0.7096908092498779, 0.1782485842704773, 0.19587182998657227, 0.09004588425159454, -0.48516741394996643, 0.28726935386657715, 0.34198519587516785, -0.254290908575058, -0.49168655276298523, 0.32223665714263916, -0.4182578921318054, -0.8396257162094116, 0.43580731749534607, -0.1988392025232315, -0.20711208879947662, -0.07518907636404037, -0.3480560779571533, -1.3525465726852417, 0.3159249424934387, 0.109604112803936, -0.796572208404541, -0.21322177350521088, 0.4967315196990967, 0.6708442568778992, 0.5275593400001526, -0.009768374264240265, 0.5532295107841492, 0.4273066818714142, -0.2796800434589386, -0.6194791793823242, -0.07400363683700562, 0.14043842256069183, 0.30636540055274963, 0.4719817638397217, -0.9143827557563782, 0.7771621942520142, 0.06583810597658157, -0.2831563651561737, -0.3219480812549591, 0.558006227016449, 0.10624690353870392, -0.2318548560142517, 0.36914169788360596, 0.7339107990264893, 0.25462836027145386, -0.30308806896209717, 1.1729086637496948, -0.6541366577148438, 0.7427456974983215, 0.7332317233085632, -0.2741636037826538, 0.7676770091056824, 0.8663640022277832, -0.9408928751945496, -0.10619917511940002, 0.21793600916862488, -0.17272783815860748, 0.8825194239616394, 0.3678050935268402, 0.18953746557235718, -0.13418801128864288, 0.32878223061561584, -0.4259525239467621, 0.07353001087903976, 0.3146921694278717, -0.19662036001682281, -0.3424413204193115, 0.15128488838672638, -0.3616703152656555, -0.02701585739850998, -0.08199860900640488, 0.9403698444366455, 0.26028016209602356, -0.5986726880073547, 0.580889880657196, -0.13148584961891174, 0.2125898003578186, -0.6180351376533508, 0.28773269057273865, 0.04908297210931778, 0.12051793187856674, -0.0032463634852319956, -0.6572856903076172, 0.23341749608516693, -0.34373724460601807, -0.5120933055877686, 0.24014991521835327, 0.5941165089607239, -0.17821630835533142, -0.5067010521888733, 0.07718165963888168, -0.02665625512599945, -0.12497638911008835, -0.5389657616615295, -0.41317886114120483, 0.15867453813552856, -0.043674785643815994, -0.6364244222640991, 0.03869929164648056, 0.47773635387420654, 0.13795505464076996, 0.46680963039398193, 0.5227673053741455, -0.32218679785728455, 0.3855522572994232, -0.014457343146204948, 0.7567707300186157, -0.6563141345977783, -0.7638974189758301, -0.8248004913330078, 0.12185510247945786, -0.061704907566308975, -0.3719053864479065, 0.6531408429145813, 0.5529875159263611, 0.3580579161643982, -0.27726590633392334, 0.6384748220443726, 0.3082026243209839, 0.6826286315917969, -0.49719515442848206, 0.624082624912262, -0.6242010593414307, -0.03485341742634773, -0.17355190217494965, -1.2879592180252075, -0.14963237941265106, 0.532997727394104, -0.1876644492149353, -0.04997041076421738, 0.994175910949707, 0.4627003073692322, 0.08668071776628494, 0.11202698945999146, 0.4074043035507202, 0.05421941354870796, 0.35448214411735535, 0.6452524065971375, 0.6175194382667542, -0.6348686814308167, 0.5653080344200134, -0.1271207481622696, 0.351729154586792, -0.44617804884910583, -0.1295473277568817, -0.8100370168685913, -0.5227781534194946, -0.32456985116004944, -0.019238704815506935, -0.09442538022994995, 0.3404506742954254, 0.5544218420982361, -0.6778705716133118, 0.008398792706429958, -0.19092217087745667, 0.2313542515039444, -0.2629129886627197, -0.26286986470222473, 0.5375155806541443, -0.6455793976783752, -0.7424975633621216, 0.18809738755226135, 0.4661164879798889, -0.02674279175698757, -0.25794607400894165, 0.5580055117607117, 0.14403221011161804, 0.11285413056612015, 0.6650984287261963, 0.21165882050991058, -0.8764560222625732, -0.05255376547574997, 0.48583635687828064, -0.29425257444381714, 0.19175021350383759, 0.8997986316680908, -0.7673768997192383, 0.3877566158771515, 0.42229342460632324, 0.8818649649620056, 0.8824229836463928, -0.4349503815174103, 0.5458309054374695, -0.583462655544281, 0.3166058659553528, 0.32266074419021606, 0.02949352189898491, 0.12146785855293274, -0.3727209270000458, 0.37023892998695374, -0.08847177028656006, -0.29858094453811646, -0.678273618221283, 0.34276077151298523, -1.0685375928878784, -0.16037049889564514, 0.927399218082428, 0.17650026082992554, -0.7093327641487122, 0.18715469539165497, -0.04222297668457031, 0.1795898973941803, -0.3522314131259918, 0.7908169627189636, 0.8683615326881409, -0.052791375666856766, -0.22641123831272125, -0.5717357993125916, 0.42994511127471924, 0.7502361536026001, -0.5320151448249817, 0.10528609156608582, -0.03255376219749451, -0.08012044429779053, 0.6020466089248657, 0.038170188665390015, -0.34643304347991943, 0.539124071598053, -0.015827303752303123, -0.0276435948908329, 0.5393201112747192, -0.0038734236732125282, -0.2560259997844696, 0.6325185894966125, -0.08099941909313202, -0.32264968752861023 ]
http://arxiv.org/abs/2405.18870v2
http://arxiv.org/pdf/2405.18870v2
LLMs achieve adult human performance on higher-order theory of mind tasks
2024-05-29T08:31:16
2024-05-31T12:45:50
Winnie Street, John Oliver Siy, Geoff Keeling, Adrien Baranes, Benjamin Barnett, Michael McKibben, Tatenda Kanyere, Alison Lentz, Blaise Aguera y Arcas, Robin I. M. Dunbar
cs.AI
cs.AI, cs.CL, cs.HC, I.2.7; H.1.2
This paper examines the extent to which large language models (LLMs) have developed higher-order theory of mind (ToM); the human ability to reason about multiple mental and emotional states in a recursive manner (e.g. I think that you believe that she knows). This paper builds on prior work by introducing a handwritten test suite -- Multi-Order Theory of Mind Q&A -- and using it to compare the performance of five LLMs to a newly gathered adult human benchmark. We find that GPT-4 and Flan-PaLM reach adult-level and near adult-level performance on ToM tasks overall, and that GPT-4 exceeds adult performance on 6th order inferences. Our results suggest that there is an interplay between model size and finetuning for the realisation of ToM abilities, and that the best-performing LLMs have developed a generalised capacity for ToM. Given the role that higher-order ToM plays in a wide range of cooperative and competitive human behaviours, these findings have significant implications for user-facing LLM applications.
[ -0.7897511720657349, -0.6777566075325012, 0.7305152416229248, 0.08768370002508163, 0.04510526731610298, 0.042232174426317215, -0.49181655049324036, -0.961366593837738, -0.017345357686281204, 0.43557512760162354, -0.5407841801643372, -0.047970812767744064, -0.6365787982940674, 0.12040223181247711, 0.009274641051888466, 0.5575349926948547, 0.2589232325553894, 0.07067477703094482, -0.12527059018611908, -0.03877813369035721, -0.3108139634132385, -0.9382554292678833, -0.866253137588501, -0.6167559027671814, 0.7971564531326294, 0.10633429884910583, 0.7144209146499634, 0.3922695219516754, 0.6612385511398315, 0.27411139011383057, -0.033098042011260986, 0.24237757921218872, -0.4910537600517273, 0.2649141550064087, -0.3602873682975769, -0.7577788829803467, -0.9758594036102295, 0.3245248794555664, 0.46055570244789124, 0.33441147208213806, -0.2118750810623169, -0.034691475331783295, -0.018364423885941505, 0.7778059244155884, -0.41541174054145813, 0.21077066659927368, -0.4851241111755371, -0.030004365369677544, -0.008658576756715775, -0.22900032997131348, -0.557474672794342, -0.11340787261724472, 0.27357321977615356, -0.3326782286167145, 0.2876264452934265, 0.2999340891838074, 0.6528242230415344, -0.055856507271528244, -0.46178358793258667, -0.1878039836883545, -0.7291511297225952, 0.796649158000946, -0.6356149315834045, 0.5030574798583984, 0.2775772511959076, 0.3373441994190216, -0.2422126978635788, -0.5886038541793823, -0.6959791779518127, -0.3314117193222046, 0.027435751631855965, 0.20946282148361206, 0.12423460185527802, 0.5778444409370422, 0.3835965692996979, 0.7643636465072632, -0.40906405448913574, 0.09812827408313751, -0.3851534426212311, 0.19917725026607513, 0.7726086378097534, 0.23269982635974884, 0.17333896458148956, 0.21894212067127228, -0.27064600586891174, -0.11561304330825806, -0.7216760516166687, -0.03615591302514076, 0.0653098002076149, 0.1707431674003601, -0.005986907985061407, 0.572577714920044, -0.06178814172744751, 0.5001380443572998, 0.16528497636318207, -0.20579618215560913, -0.14286468923091888, -0.323935329914093, -0.3066565990447998, -0.44383105635643005, 0.6229554414749146, 0.27488622069358826, 0.8037480115890503, 0.0716228187084198, -0.35888224840164185, 0.24368475377559662, 0.35094061493873596, -0.5949634313583374, -0.21064624190330505, 0.047371551394462585, -0.37976738810539246, 0.1764349788427353, -0.053944047540426254, -0.6494927406311035, -0.6210450530052185, -0.4315311312675476, 0.43849867582321167, -0.3654842674732208, -0.6383036375045776, 0.34803155064582825, 0.1525566726922989, 0.3532124161720276, 0.48627692461013794, -0.9707053899765015, 0.655052661895752, 0.7537875175476074, 0.5761213898658752, -0.2535937428474426, -0.595429539680481, -0.03295188397169113, 0.013574307784438133, -0.5786966681480408, 0.582227885723114, -0.4275508224964142, -0.17392851412296295, -0.12652188539505005, -0.33400028944015503, -0.22835837304592133, -0.5177826285362244, 0.43720686435699463, -0.6061583161354065, 0.40792256593704224, -0.4473212957382202, -0.567916214466095, -0.4614572525024414, 0.08104946464300156, -0.34235885739326477, 0.7783156037330627, -0.05729131028056145, -0.49433228373527527, 0.3048616945743561, -0.8599364161491394, -0.4366353452205658, 0.044608838856220245, -0.36572641134262085, 0.11414502561092377, 0.2418416291475296, 0.02063101902604103, 0.9128438830375671, -0.7605096101760864, 0.22430741786956787, -0.45865410566329956, -0.2907324731349945, 0.3941088616847992, -0.5910888910293579, 0.5327702164649963, 0.18770234286785126, -0.463401734828949, 0.18958044052124023, -0.3378419578075409, 0.20397737622261047, 0.27954819798469543, -0.5182145833969116, -0.08387826383113861, 0.05810834467411041, -0.3200942873954773, 0.5187453627586365, 0.33116838335990906, -0.40103060007095337, 0.3007782995700836, -0.24456609785556793, 0.5280159115791321, 0.606141984462738, -0.01945849135518074, 0.13098245859146118, -0.5850438475608826, 0.47419196367263794, -0.13489757478237152, 0.09097590297460556, 0.03735765814781189, -0.7986205816268921, -0.8899965286254883, -0.22409269213676453, -0.046761032193899155, 0.38068437576293945, -0.4002096951007843, 0.31675034761428833, -0.4128957688808441, -0.32664746046066284, -0.5140019655227661, 0.04654845595359802, 0.4661281108856201, -0.14008240401744843, 0.26257482171058655, -0.4275164008140564, -0.3407552242279053, -0.9334844946861267, -0.12579454481601715, -0.24735428392887115, -0.23564638197422028, 0.31007784605026245, 0.4847657084465027, -0.13340692222118378, 0.5124073624610901, -0.553250253200531, -0.12138500809669495, -0.39034414291381836, 0.1621434986591339, 0.12374536693096161, 0.33279895782470703, 0.4075593054294586, -0.6254922747612, 0.21257831156253815, 0.07155230641365051, -0.6987508535385132, 0.2867944836616516, 0.07490647584199905, -0.0680263563990593, 0.20446264743804932, 0.12812058627605438, -0.9649999141693115, 0.06685055792331696, 0.34045878052711487, -0.41076353192329407, 0.546455979347229, -0.6558563709259033, 0.18110249936580658, -1.030165672302246, -0.24960114061832428, 0.1638668030500412, -0.14573721587657928, -0.6732122302055359, 0.4889015853404999, -0.055148929357528687, 0.20482586324214935, -0.05768723040819168, 0.3024909496307373, -0.7092528939247131, -0.5460132360458374, -0.11892075091600418, 0.2875518202781677, -0.2955457866191864, 0.746879518032074, -0.07674774527549744, 0.7839834094047546, 0.2101246416568756, -0.6983776092529297, 0.12565399706363678, -0.36040085554122925, -0.39750802516937256, 0.7496892809867859, -0.4845419228076935, 0.27058443427085876, -0.027643512934446335, 0.14101220667362213, -1.3025270700454712, -0.46997156739234924, -0.1935216784477234, -0.4570329487323761, 0.2801969051361084, 0.32353949546813965, -0.5674675703048706, -0.6016623973846436, -0.040647633373737335, 0.26001179218292236, 0.5883771777153015, -0.2796783745288849, 0.6219030022621155, 0.34219953417778015, -0.14573507010936737, -0.27168139815330505, -0.6315575838088989, -0.0037731945049017668, -0.2691534459590912, -0.6424716114997864, 0.3018084168434143, -0.3143278956413269, -0.5528625249862671, -0.46036624908447266, -0.0021397320087999105, -0.29091784358024597, 0.19317936897277832, 0.1699606031179428, 0.030796928331255913, -0.4454190135002136, -0.04475117102265358, -0.338613361120224, 0.21106047928333282, 0.2751224935054779, 0.004459823947399855, 0.586009681224823, -0.4433418810367584, -0.26547446846961975, -0.3524290919303894, 0.06953419744968414, 1.0104155540466309, -0.2155080884695053, 0.4633084237575531, 0.33044135570526123, -0.5071536302566528, -0.12035609781742096, -0.7479392290115356, -0.27203238010406494, -0.467018187046051, 0.21301832795143127, -0.6767453551292419, -0.9910373091697693, 0.381512850522995, 0.24170981347560883, 0.33926600217819214, 0.4349741041660309, 0.7161754369735718, -0.13357675075531006, 1.0081664323806763, 0.5869641900062561, -0.06266634166240692, 0.3119410574436188, -0.281484454870224, 0.058041978627443314, -0.8202961683273315, 0.15684139728546143, -0.039746157824993134, -0.3438560366630554, -0.5803356170654297, -0.4829831123352051, 0.19957152009010315, 0.14551964402198792, -0.5270368456840515, 0.1034955233335495, -0.4179352819919586, 0.536613941192627, 0.5432147979736328, 0.13189497590065002, 0.43621331453323364, -0.20995402336120605, -0.1612030416727066, 0.15773548185825348, -0.5040929317474365, -0.43105247616767883, 0.8224883675575256, 0.6247825026512146, 0.509733259677887, 0.5532786846160889, 0.4394705891609192, 0.3829643130302429, 0.564332127571106, -0.6933984756469727, 0.8254741430282593, -0.06838741898536682, -1.0765039920806885, -0.42994824051856995, -0.14421577751636505, -1.0676275491714478, 0.7097331285476685, -0.12078479677438736, -0.8340145945549011, -0.032809045165777206, 0.017011255025863647, -0.41711220145225525, 0.16317087411880493, -0.9185420274734497, 0.40685757994651794, -0.2637915015220642, -0.2881506383419037, -0.6304101347923279, -0.5836808085441589, 0.7771967649459839, 0.21113434433937073, 0.11656911671161652, -0.2825400233268738, -0.03279149904847145, 0.8655059933662415, 0.01916894130408764, 0.8722670078277588, -0.1470489799976349, -0.47893956303596497, 0.316366046667099, 0.1453302800655365, 0.13584832847118378, -0.22601208090782166, 0.007491530384868383, -0.09744944423437119, 0.05840200558304787, -0.3369504511356354, -0.6147029995918274, 0.669510543346405, -0.8723669052124023, -0.9554216265678406, -0.3653247058391571, -0.5842677354812622, -0.3720218241214752, 0.348204642534256, 0.07719730585813522, 0.3672788739204407, 0.19178469479084015, 0.2771795988082886, 0.6534250974655151, 0.18404224514961243, 0.43751153349876404, 0.4882003962993622, -0.41913971304893494, -0.6534862518310547, 0.6256247162818909, 0.4635668098926544, 0.5104966163635254, 0.4923352301120758, 0.12435344606637955, -0.322794109582901, -0.633146345615387, -0.1559666097164154, 0.4409780204296112, -0.8106233477592468, 0.2074851244688034, -0.3420974016189575, -0.08537221699953079, -0.2647617757320404, -0.08023949712514877, -0.21307826042175293, -0.16966204345226288, 0.1619647890329361, -0.11293220520019531, 0.1824793517589569, 1.3038642406463623, 0.2821880280971527, 0.19131265580654144, -0.2917899787425995, 0.32116279006004333, 0.5558319091796875, 0.38143086433410645, 0.3732644021511078, -0.2924594283103943, -0.01071481965482235, 0.16415926814079285, -0.4685298800468445, -0.6950443387031555, 0.1162378117442131, -0.16462384164333344, 0.6292680501937866, 0.3445037007331848, -0.10322190821170807, 0.8462839722633362, -0.2861655652523041, 0.844673216342926, 0.15267005562782288, -0.6855270266532898, -0.02422407642006874, -0.8533876538276672, 0.1310262829065323, 0.2279028594493866, 0.2185303121805191, -0.45619356632232666, -0.07984960824251175, -0.6057426929473877, -0.613127589225769, 0.4967905879020691, 0.19336353242397308, -0.22409218549728394, 0.008236388675868511, 0.5304825901985168, -0.029576754197478294, 0.24667485058307648, -0.89365553855896, -0.10645909607410431, 0.3158741891384125, -0.18966886401176453, -0.45132046937942505, -0.32021665573120117, -0.025423185899853706, -0.245499387383461, 0.39300820231437683, -0.19463810324668884, 0.7872357368469238, 0.19342109560966492, 0.138362318277359, -0.20823770761489868, 0.40886029601097107, 0.9389909505844116, 0.9566513895988464, -0.19801850616931915, 0.3503651022911072, 0.18199031054973602, -0.3038700222969055, 0.22410377860069275, -0.27662134170532227, 0.46224647760391235, -0.7155289649963379, 0.5712207555770874, 0.5352804064750671, 0.2508179843425751, -0.4548770785331726, 0.3893738389015198, -0.11655355244874954, -0.34933146834373474, -0.36894217133522034, 0.3875741958618164, 0.31487807631492615, 0.465227872133255, 0.43091338872909546, -0.11774031817913055, -0.20311057567596436, -0.7564586997032166, 0.18108849227428436, 0.3179061710834503, 0.016111617907881737, -0.47563594579696655, 0.5849490165710449, 0.18390940129756927, -0.5828816890716553, 0.23866653442382812, -0.09078611433506012, -0.3441227078437805, 0.44525766372680664, 0.5419873595237732, 0.861590564250946, -0.18161650002002716, -0.2942076027393341, -0.03334436193108559, 0.3452342450618744, -0.34595561027526855, 0.7661738395690918, -0.1250872015953064, -0.9786942005157471, -0.6646180748939514, -0.41050973534584045, -0.5390520691871643, 0.4490117132663727, -0.6765447854995728, -0.3025769293308258, -0.6859995126724243, -0.45381876826286316, 0.10741835087537766, 0.18762318789958954, -0.7713934779167175, 0.35475805401802063, 0.09258205443620682, 0.6543068885803223, -0.28085893392562866, 1.0040191411972046, 0.6331896781921387, -0.3694573640823364, -0.6087037920951843, 0.2779274880886078, -0.12729611992835999, -0.815956711769104, 0.7589167356491089, 0.3486321270465851, -0.36728793382644653, 0.20162786543369293, -0.1969185322523117, -1.0348049402236938, 1.1549866199493408, 0.2835465967655182, -0.4181392192840576, -0.3268735408782959, -0.19431664049625397, 0.8112634420394897, -0.5118141770362854, 0.4791974723339081, 0.4953332543373108, 0.39357244968414307, -0.26966384053230286, -1.0375577211380005, 0.014497997239232063, -0.06261765956878662, 0.07931890338659286, 0.19232863187789917, -0.8434379696846008, 0.9375070929527283, -0.3075789213180542, -0.25109797716140747, 0.1863306313753128, 0.8279335498809814, 0.3642324209213257, 0.10894016921520233, 0.485330730676651, 0.32481300830841064, 0.7277987003326416, -0.11445687711238861, 1.1275992393493652, -0.3151165246963501, 0.18805277347564697, 1.0062083005905151, -0.48506617546081543, 1.0537556409835815, 0.2567712366580963, -0.6463310718536377, 0.3662790060043335, 0.6950491070747375, 0.5091314911842346, 0.0502285435795784, 0.3630802631378174, -0.14011822640895844, -0.313014417886734, 0.24917390942573547, -0.114377461373806, 0.2700914144515991, 0.605197012424469, -0.22762061655521393, 0.33322858810424805, -0.09747032076120377, -0.0671122595667839, 0.0062746452167630196, -0.36778679490089417, 0.7220103740692139, 0.21166056394577026, -1.0344445705413818, 0.9455888867378235, 0.009781550616025925, 0.9761205315589905, -0.3290438652038574, 0.23674580454826355, -0.007956190966069698, 0.6020464897155762, 0.17178136110305786, -1.0518935918807983, -0.03547211363911629, -0.2034027874469757, -0.23032188415527344, -0.216863214969635, 0.614585816860199, -0.3305521309375763, 0.018935320898890495, 0.4974513351917267, 0.6956776976585388, 0.21628636121749878, 0.17967554926872253, -0.537813663482666, -0.2883094847202301, -0.25039908289909363, -0.53815096616745, 0.4570198953151703, 0.3811049163341522, -0.05276981741189957, 0.9646080732345581, 0.39943960309028625, 0.02948087826371193, 0.18332701921463013, -0.1558964103460312, 0.2554427683353424, -0.9542042016983032, -0.34533625841140747, -0.9327651858329773, 0.12271113693714142, -0.059482380747795105, -0.4806884527206421, 0.6181308031082153, 0.1775798797607422, 0.9066012501716614, -0.11629907786846161, 0.7147530913352966, 0.08795749396085739, 0.40529903769493103, -0.5081903338432312, 0.4559125006198883, -0.29933828115463257, 0.018423186615109444, -0.2472386509180069, -0.7246235609054565, -0.18565748631954193, 0.561353862285614, -0.584194540977478, 0.43114155530929565, 0.753746747970581, 0.5637492537498474, 0.1423887312412262, 0.34728366136550903, 0.7551964521408081, 0.2826019823551178, 0.5076529383659363, 0.7613733410835266, 0.8451932668685913, 0.023102393373847008, 0.015291495248675346, -0.25927385687828064, -0.09549390524625778, -0.11276686191558838, -0.5670810341835022, -1.1471399068832397, -0.6612005829811096, 0.19181278347969055, -0.0788625106215477, 0.019036658108234406, 1.2739248275756836, 0.7780563831329346, -0.3961524963378906, -0.5580404996871948, -0.26954522728919983, -0.06985323131084442, -0.4007371664047241, -0.23886334896087646, 0.01734054461121559, -0.1014505997300148, -0.5395543575286865, 0.46137934923171997, 0.2118609994649887, 0.23732009530067444, -0.599793553352356, -0.17101971805095673, -0.35502591729164124, 0.32936277985572815, 1.0579851865768433, -0.03477853536605835, -1.2036408185958862, -0.4692527651786804, -0.05786766856908798, -0.03539621829986572, 0.14695128798484802, 0.9599756598472595, -0.41460326313972473, 0.09434492886066437, 0.4764288663864136, 0.6012682318687439, 0.26215100288391113, -0.10213597118854523, 0.7361035346984863, -0.46953463554382324, -0.23275358974933624, -0.0036469376645982265, 0.5333411693572998, 0.17404504120349884, -0.43633657693862915, 0.6815378069877625, 0.33108001947402954, -0.6948302388191223, -0.5749534964561462, 0.4833759665489197, -0.737510621547699, -0.3694405257701874, 1.1154545545578003, -0.18385617434978485, -0.05741337314248085, -0.045593779534101486, -0.3827883005142212, 0.12962689995765686, -0.4019693434238434, 0.7189409732818604, 0.9222262501716614, -0.6014615893363953, -0.38936468958854675, -0.656300961971283, 0.39692196249961853, 0.4836501479148865, -0.8953841328620911, 0.4794231355190277, 0.4748639464378357, 0.16809985041618347, 0.3313428461551666, 0.879120409488678, 0.05064242705702782, 0.22293086349964142, -0.2581712007522583, 0.0427560992538929, 0.17483918368816376, -0.41693583130836487, -0.21224844455718994, 0.5322860479354858, 0.48384642601013184, 0.143319234251976 ]
http://arxiv.org/abs/2405.18845v1
http://arxiv.org/pdf/2405.18845v1
Simulation, Modelling and Classification of Wiki Contributors: Spotting The Good, The Bad, and The Ugly
2024-05-29T07:56:08
2024-05-29T07:56:08
Silvia García Méndez, Fátima Leal, Benedita Malheiro, Juan Carlos Burguillo Rial, Bruno Veloso, Adriana E. Chis, Horacio González Vélez
cs.CL
cs.CL, cs.AI, cs.LG
Data crowdsourcing is a data acquisition process where groups of voluntary contributors feed platforms with highly relevant data ranging from news, comments, and media to knowledge and classifications. It typically processes user-generated data streams to provide and refine popular services such as wikis, collaborative maps, e-commerce sites, and social networks. Nevertheless, this modus operandi raises severe concerns regarding ill-intentioned data manipulation in adversarial environments. This paper presents a simulation, modelling, and classification approach to automatically identify human and non-human (bots) as well as benign and malign contributors by using data fabrication to balance classes within experimental data sets, data stream modelling to build and update contributor profiles and, finally, autonomic data stream classification. By employing WikiVoyage - a free worldwide wiki travel guide open to contribution from the general public - as a testbed, our approach proves to significantly boost the confidence and quality of the classifier by using a class-balanced data stream, comprising both real and synthetic data. Our empirical results show that the proposed method distinguishes between benign and malign bots as well as human contributors with a classification accuracy of up to 92 %.
[ -0.5056555271148682, -0.659148633480072, 0.03930111974477768, -0.14653410017490387, 0.027428986504673958, 0.14803233742713928, -0.08395176380872726, -0.6651021242141724, 0.15042747557163239, 0.5269376635551453, -0.6215658187866211, -0.23751279711723328, -0.44634634256362915, 0.3687288463115692, -0.923369824886322, 1.1231735944747925, 0.16730719804763794, -0.11782336980104446, -0.5104308128356934, 0.05352353677153587, -0.1447051614522934, -0.6262834668159485, -0.4429907202720642, 0.11338935047388077, 0.9037001729011536, 0.42836493253707886, 0.7629836201667786, 0.5128152966499329, 0.1396077424287796, 0.4558038115501404, 0.27614879608154297, 0.34760597348213196, -0.6521339416503906, 0.06708462536334991, -0.7368828058242798, -0.4567135274410248, 0.003691001795232296, 0.40117084980010986, -0.0022919620387256145, 0.5578387379646301, -0.0038671863730996847, 0.5257578492164612, 0.11014092713594437, 0.27135854959487915, -0.7202051281929016, -0.07914433628320694, -0.6555681228637695, -0.235320582985878, -0.4975086450576782, -0.14243414998054504, -0.5131291747093201, -0.39619019627571106, -0.1981230080127716, -1.0025887489318848, 0.8214253187179565, 0.016033530235290527, 0.6022634506225586, 0.18058720231056213, -0.2530592679977417, -0.4950144290924072, -0.7943255305290222, 0.5814875960350037, -0.4340311586856842, -0.007767118513584137, 0.5633606314659119, 0.23086950182914734, -0.464361310005188, -0.4885636568069458, -0.9061658978462219, -0.039174072444438934, -0.014001060277223587, 0.00210852874442935, -0.22769999504089355, -0.2723495066165924, 0.08977417647838593, -0.09580544382333755, -0.6872386336326599, 0.24582068622112274, -0.7627580165863037, -0.3633175194263458, 1.1068062782287598, 0.20840609073638916, 0.43973779678344727, -0.5315617918968201, -0.13636814057826996, 0.013119326904416084, -0.20624852180480957, -0.30868595838546753, 0.9132048487663269, 0.42788854241371155, -0.1321142464876175, 0.7151768803596497, -0.33597779273986816, 0.9132472276687622, 0.15332795679569244, -0.08903420716524124, 0.18170195817947388, 0.06074000895023346, 0.08325038105249405, -0.219020277261734, 0.8405749797821045, 0.302929162979126, 0.4859428405761719, -0.40656182169914246, 0.0896662175655365, 0.1029941588640213, 0.5760207772254944, -0.32204562425613403, -0.6234353184700012, -0.020659280940890312, -0.4520702660083771, -0.9453763961791992, 0.33087366819381714, -0.8477877974510193, -0.942613422870636, -0.49702540040016174, 0.5222832560539246, 0.011068572290241718, -0.657199501991272, -0.34745296835899353, -0.3299091160297394, -0.12741847336292267, 0.727191150188446, -0.4615151882171631, 0.04107171297073364, 0.6013287305831909, 0.6168191432952881, -0.09685995429754257, -0.5073387622833252, -0.3252638578414917, 0.33989766240119934, -0.3433588147163391, 0.9782519340515137, -0.08495443314313889, -0.4188392758369446, -0.09001993387937546, 0.07810038328170776, 0.19211168587207794, -0.2904622256755829, 0.5386930704116821, -0.7073411345481873, 0.28583481907844543, -0.17606842517852783, -0.5269295573234558, -0.17307668924331665, 0.3012235164642334, -0.8499965071678162, 0.6567509174346924, 0.5284354090690613, -0.8874765634536743, 0.4668124318122864, -0.4265826642513275, -0.3271643817424774, 0.24502329528331757, 0.19277337193489075, -0.41289716958999634, 0.005544672720134258, -0.24887746572494507, 0.42635682225227356, -0.031578052788972855, 0.11563611030578613, -0.8062872886657715, -0.09915351122617722, 0.5583992004394531, -0.48675790429115295, 1.0988775491714478, 0.49908602237701416, -0.25280964374542236, -0.1469356268644333, -0.7298254370689392, -0.16728632152080536, -0.07321303337812424, -0.028737755492329597, -0.5885964035987854, 0.10224597901105881, 0.4926162362098694, 0.5518237948417664, -0.10014426708221436, -0.496787965297699, 0.3545311391353607, -0.1356653869152069, 0.09780377149581909, 1.0258036851882935, 0.2125912755727768, 0.34601983428001404, -0.2271638959646225, 0.37418097257614136, 0.04345979169011116, 0.6594243049621582, 0.48516470193862915, -0.6882520914077759, -0.6447699666023254, -0.12444746494293213, 0.5238937139511108, 0.4603727459907532, -0.9915260672569275, 0.4175302982330322, -0.296877384185791, -0.8456944227218628, -0.44246625900268555, 0.2746540307998657, -0.07799305766820908, 0.6745229363441467, 0.09915494918823242, 0.06131233647465706, -0.43398869037628174, -0.6429586410522461, -0.17707793414592743, -0.7541410326957703, -0.20881196856498718, 0.000991597305983305, 0.37146902084350586, -0.3367827236652374, 0.9097394347190857, -0.3055766820907593, -0.09097177535295486, 0.3327673375606537, 0.4010866582393646, -0.2735936641693115, 0.3536902964115143, 0.41922223567962646, -1.2120774984359741, -0.49580857157707214, -0.045670267194509506, -0.6949267983436584, -0.23023927211761475, 0.044937994331121445, -0.33426186442375183, 0.20520205795764923, 0.31300365924835205, -0.48939213156700134, 0.5927481055259705, 0.16869769990444183, -0.49744704365730286, 0.4225108027458191, 0.16898374259471893, 0.36285895109176636, -1.020576000213623, 0.3110087513923645, -0.09214834868907928, -0.3764611780643463, -0.6284310221672058, -0.015736518427729607, 0.09007932990789413, -0.3257289528846741, -0.3582853674888611, 0.44844934344291687, -0.09788024425506592, 0.1593482494354248, -0.4309366047382355, 0.01822400651872158, -0.027371039614081383, 0.21708504855632782, -0.26097461581230164, 0.35679909586906433, 0.26093974709510803, -0.7014836668968201, 0.7989317178726196, -0.09362328052520752, -0.20164571702480316, 0.7571950554847717, -0.20933188498020172, 0.13997717201709747, -0.16521944105625153, 0.16498062014579773, -0.9615417718887329, -0.5819763541221619, 0.6354455947875977, -0.9594817161560059, 0.227720245718956, -0.3180672228336334, -0.8640774488449097, -0.6118686199188232, -0.24515561759471893, 0.16169992089271545, 0.1954638957977295, -0.560778796672821, 0.6091820597648621, 0.6848577857017517, -0.11505496501922607, -0.4059751033782959, -0.3904602527618408, 0.15138310194015503, -0.2820064425468445, -0.44017091393470764, 0.11272668838500977, 0.045139212161302567, -0.23256957530975342, 0.379506379365921, 0.25646939873695374, -0.2427998185157776, 0.3105291426181793, 0.4740059971809387, 0.33019840717315674, 0.4802054166793823, 0.16016867756843567, -0.3316240906715393, -0.19879163801670074, 0.1228800117969513, -0.02252262644469738, 0.14802297949790955, 0.5606241822242737, -0.3412671685218811, -0.5550941824913025, 0.3836269676685333, 0.6505418419837952, 0.01702074147760868, 0.7816259860992432, 0.7724531292915344, -0.438837468624115, -0.3474043607711792, -0.7363449335098267, 0.03747064620256424, -0.4884546995162964, 0.28478920459747314, -0.06272383779287338, -0.15467491745948792, 0.48474207520484924, 0.1432703584432602, 0.19020521640777588, 0.7304809093475342, 0.5892374515533447, -0.38656675815582275, 1.003328561782837, 0.5671276450157166, -0.6202830672264099, 0.2543162405490875, -0.19402289390563965, -0.024462342262268066, -0.03581758961081505, -0.404756098985672, -0.9017165899276733, -0.3753712773323059, -0.8205583095550537, -0.5242988467216492, 0.13771222531795502, 0.007302205543965101, 0.1340855360031128, 0.18657858669757843, -0.6786960959434509, 0.3491206765174866, 0.44226139783859253, 0.0873180627822876, 0.15413551032543182, 0.04757789522409439, 0.5397390127182007, 0.2606748342514038, -0.38657429814338684, -0.5193174481391907, 1.0089222192764282, -0.10688447207212448, 0.8749462962150574, 0.11965065449476242, 0.621006429195404, 0.9811233878135681, 0.9752265214920044, -0.5657337307929993, 0.32813480496406555, -0.04697587713599205, -1.0356850624084473, -0.3211323618888855, -0.6057658195495605, -0.7977001070976257, -0.1795831322669983, -0.2393340766429901, -0.28238824009895325, 0.5362614393234253, 0.22112074494361877, 0.011261360719799995, 0.6921278834342957, -0.7711238861083984, 0.6068655848503113, 0.07888861745595932, -0.37610864639282227, -0.39316558837890625, -0.4824741780757904, 0.26188719272613525, -0.21323321759700775, 0.5733363628387451, -0.07065491378307343, -0.15533199906349182, 0.7749433517456055, -0.4227316677570343, 0.9272842407226562, -0.5516512989997864, -0.09333019703626633, 0.5466042160987854, 0.07502362132072449, 0.4600315988063812, -0.04548090696334839, -0.2470257729291916, 0.19553208351135254, -0.18485192954540253, -0.5687114596366882, -0.6728907227516174, 0.7308074235916138, -1.14410400390625, -0.23327291011810303, -0.33703282475471497, -0.13137900829315186, -0.17292065918445587, 0.1269681453704834, 0.4677070081233978, 0.05609861761331558, -0.2288200408220291, -0.13434027135372162, 0.31889697909355164, 0.08311869204044342, 0.13421116769313812, 0.7023389339447021, 0.053023699671030045, -0.4493734538555145, 1.1718730926513672, 0.40650442242622375, -0.06912453472614288, 0.1303250938653946, -0.144109845161438, -0.21287505328655243, -0.4660691022872925, -0.57393479347229, -0.04230889305472374, -0.5237076282501221, -0.5581762194633484, -0.47614723443984985, -0.21654674410820007, -0.3436445891857147, -0.09479200094938278, -0.14751291275024414, -0.602957010269165, -0.4954797029495239, -0.16134695708751678, 0.4023233652114868, 0.7917219996452332, -0.23808987438678741, -0.07510634511709213, -0.3846488893032074, 0.40698957443237305, 0.40567854046821594, 0.24467170238494873, 0.13628096878528595, -0.279203861951828, -0.47827354073524475, 0.10212849825620651, -0.42770639061927795, -1.1275525093078613, 0.19304035604000092, -0.3025050461292267, 0.6349658370018005, 0.5322738289833069, 0.2865538001060486, 0.7561938762664795, -0.15928973257541656, 0.6925241351127625, 0.09719640761613846, -0.6576595306396484, 0.3847797214984894, -0.36048623919487, -0.4320087432861328, 0.7050418853759766, 0.4534183740615845, -0.7102929949760437, -0.6794609427452087, -0.7452860474586487, -0.554186224937439, 0.7111974358558655, 0.13757823407649994, 0.21896907687187195, 0.0615072175860405, 0.5967475175857544, 0.29131031036376953, 0.06516732275485992, -0.7026950716972351, -0.20221228897571564, -0.5289609432220459, -0.30956101417541504, -0.18132226169109344, 0.12553216516971588, 0.07193038612604141, -0.2451159507036209, 1.0178245306015015, 0.08878333121538162, -0.06177270784974098, 0.10707495361566544, -0.21233628690242767, -0.406382292509079, -0.17914417386054993, 0.16449065506458282, 0.6106442809104919, 0.11182687431573868, 0.1643074005842209, -0.061882033944129944, -0.5584156513214111, 0.36610108613967896, 0.20751650631427765, -0.4244788885116577, 0.24866537749767303, 0.4370393455028534, -0.015233948826789856, -0.11898301541805267, -0.32997530698776245, 0.5079110264778137, -0.0841924324631691, -0.2543124258518219, -0.3463760316371918, 0.32889899611473083, 0.0306070726364851, -0.07320783287286758, 0.46952247619628906, 0.3842039108276367, 0.4640272557735443, -0.3572590947151184, 0.09462980180978775, 0.26684290170669556, -0.06537425518035889, -0.5928025245666504, 0.45308637619018555, 0.541326105594635, -0.525242805480957, 0.712439775466919, -0.3454342484474182, -0.29921090602874756, 0.4856638014316559, -0.08853147178888321, 0.7868068814277649, -0.5836106538772583, 0.36583954095840454, 0.40392228960990906, 0.18526233732700348, 0.364580899477005, -0.09630665928125381, -0.20363733172416687, -0.5030881762504578, -0.10901590436697006, -0.3980286419391632, -0.2710745632648468, 0.2973877787590027, -0.8211216926574707, 0.6047743558883667, -0.10620564967393875, -0.3365412652492523, 0.4869518280029297, 0.23435212671756744, -0.6985828280448914, 0.01581866294145584, 0.24016526341438293, 0.6829348206520081, -1.0779987573623657, 0.6827319264411926, 0.6071427464485168, -0.13147394359111786, -0.517437219619751, 0.1438635289669037, 0.2662128806114197, -0.15840506553649902, 0.29279860854148865, -0.03622981160879135, 0.11997629702091217, -0.028696076944470406, -0.7043012976646423, -0.6244943141937256, 0.6146217584609985, 0.15074005722999573, -0.3655092716217041, -0.16888320446014404, 0.13713113963603973, 0.44884634017944336, 0.33578720688819885, -0.09326136112213135, -0.28516143560409546, 0.4833414852619171, -0.20749405026435852, -0.7152988910675049, -0.3022330701351166, -0.5016279220581055, -0.1498117595911026, 0.1966584175825119, -0.6350647211074829, 0.6669180989265442, 0.06933285295963287, -0.15697884559631348, 0.023336196318268776, 0.5242399573326111, 0.07198676466941833, 0.4499012529850006, 0.8982617259025574, 0.3105711340904236, 0.8832598328590393, 0.12770919501781464, 0.7532647848129272, 0.14468614757061005, 0.37580543756484985, 0.6758472919464111, -0.09762504696846008, 0.4671815037727356, 0.44758355617523193, -0.29793646931648254, 0.5193735361099243, 0.7079376578330994, -0.3660550117492676, 0.6399049162864685, 0.40301671624183655, -0.3132413327693939, 0.03963351249694824, 0.0902273952960968, -0.17723672091960907, 0.4686967730522156, 0.28412726521492004, -0.1288929581642151, -0.15686741471290588, 0.2313915640115738, -0.16945408284664154, 0.0932033583521843, -0.5217391848564148, 0.9406899213790894, -0.33971089124679565, -0.5771385431289673, 0.22576355934143066, 0.48700493574142456, 0.6277515292167664, -0.3491726517677307, 0.08159875869750977, 0.15031874179840088, 0.14124533534049988, -0.4992142915725708, -0.6675347685813904, 0.44065311551094055, 0.3904665410518646, -0.5941516160964966, 0.07949644327163696, 1.0180951356887817, -0.04795315861701965, -0.7153146266937256, 0.17543581128120422, 0.3428310751914978, 0.06579074263572693, 0.013696304522454739, -0.7166770100593567, -0.2733021378517151, -0.0278778038918972, -0.38462987542152405, 0.25092747807502747, 0.6181918978691101, -0.3002837300300598, 0.5367227792739868, 0.8833024501800537, 0.06392449140548706, 0.060047924518585205, 0.12932297587394714, 1.0311009883880615, -0.3484486937522888, -0.6272202134132385, -0.9448790550231934, 0.5138373374938965, -0.45797353982925415, -0.19350233674049377, 0.9769749641418457, 0.8394851088523865, 0.8864107131958008, -0.12372610718011856, 0.7186671495437622, -0.2661638855934143, 0.7514253854751587, 0.12666673958301544, 0.976157546043396, -0.35420170426368713, -0.23566994071006775, -0.438122421503067, -0.2878727912902832, 0.04788072407245636, 0.4526316225528717, -0.03496333956718445, -0.08634758740663528, -0.272524356842041, 0.7749645113945007, -0.19131030142307281, 0.0863165482878685, 0.019557906314730644, 0.022175796329975128, 0.42908406257629395, 0.1582062542438507, 1.0491000413894653, -0.2516530752182007, 0.704124927520752, -0.551316499710083, -0.35543978214263916, -0.31975752115249634, -0.4034929573535919, -0.8969355225563049, -0.7827281951904297, -0.3507120907306671, -0.47501134872436523, -0.09637455642223358, 0.5283973217010498, 1.1112079620361328, -0.6082232594490051, -0.007804257329553366, -0.025713011622428894, 0.4141903817653656, -0.050762541592121124, -0.38653308153152466, 0.059968769550323486, -0.046548474580049515, -0.580560028553009, -0.15313820540905, -0.10740794986486435, 0.08518984913825989, -0.693757951259613, -0.06951835006475449, 0.03603503108024597, -0.013966617174446583, 0.316501647233963, 0.3081303536891937, -0.3739931285381317, 0.09423743188381195, -0.21973729133605957, -0.20664599537849426, -0.48984766006469727, 0.6606749892234802, -0.9286085963249207, 0.45926809310913086, 0.3539264500141144, 0.224852055311203, 0.4083098769187927, 0.18805979192256927, 0.2844576835632324, -0.7085250020027161, 0.1548456847667694, 0.38651835918426514, -0.22388847172260284, 0.30529478192329407, -0.8516817688941956, 0.31969478726387024, 0.47959983348846436, -0.5532882213592529, -1.1166396141052246, -0.15261851251125336, -0.596796452999115, -0.529064953327179, 0.7015525698661804, 0.08844030648469925, -0.23151548206806183, -0.5572522282600403, 0.05601537972688675, 0.5549036264419556, -0.11593466997146606, 1.2747634649276733, 0.7560371160507202, 0.044587112963199615, 0.324739545583725, -0.5256090760231018, 0.4715125858783722, -0.47385117411613464, -1.0358916521072388, 0.2588844299316406, 0.6849216222763062, 0.5508283972740173, 0.5414682030677795, 0.566356360912323, -0.14669528603553772, 0.45365333557128906, -0.09989600628614426, 0.031895264983177185, -0.24714168906211853, -0.24388423562049866, 0.1259332001209259, 0.17905676364898682, -0.17364776134490967, -0.09036925435066223 ]
http://arxiv.org/abs/2405.18822v1
http://arxiv.org/pdf/2405.18822v1
Toxicity Detection for Free
2024-05-29T07:03:31
2024-05-29T07:03:31
Zhanhao Hu, Julien Piet, Geng Zhao, Jiantao Jiao, David Wagner
cs.CL
cs.CL
Current LLMs are generally aligned to follow safety requirements and tend to refuse toxic prompts. However, LLMs can fail to refuse toxic prompts or be overcautious and refuse benign examples. In addition, state-of-the-art toxicity detectors have low TPRs at low FPR, incurring high costs in real-world applications where toxic examples are rare. In this paper, we explore Moderation Using LLM Introspection (MULI), which detects toxic prompts using the information extracted directly from LLMs themselves. We found significant gaps between benign and toxic prompts in the distribution of alternative refusal responses and in the distribution of the first response token's logits. These gaps can be used to detect toxicities: We show that a toy model based on the logits of specific starting tokens gets reliable performance, while requiring no training or additional computational cost. We build a more robust detector using a sparse logistic regression model on the first response token logits, which greatly exceeds SOTA detectors under multiple metrics.
[ -0.15788422524929047, -0.48836106061935425, 0.9263818860054016, -0.12725596129894257, -0.36081066727638245, -0.3532044291496277, 0.3128877282142639, -0.4302733540534973, 0.04214830696582794, 0.3833405077457428, -0.8323104977607727, -0.5002527236938477, -0.3881131112575531, 0.27376577258110046, -0.013617369346320629, 1.1421031951904297, 0.5723843574523926, -0.09720845520496368, -0.15771296620368958, -0.4041832685470581, -0.6155041456222534, -0.27251437306404114, -0.8837122917175293, -0.14878499507904053, 0.9456281661987305, 0.5342881083488464, 0.2825014889240265, 0.22985152900218964, 0.09435471892356873, 0.24758431315422058, -0.5868497490882874, 0.4284144639968872, -0.5519803762435913, 0.34071049094200134, 0.043439723551273346, -0.7112127542495728, -0.3416703939437866, 0.03846460580825806, 0.2789829969406128, 0.002368810586631298, 0.0538330003619194, 0.2937081456184387, 0.14735890924930573, 0.578967273235321, -0.8385210633277893, 0.10248876363039017, -0.7225956320762634, 0.1551874279975891, -0.2306252270936966, -0.349338173866272, -0.738868772983551, -0.06086267903447151, -0.24204431474208832, -0.5317226648330688, -0.23944830894470215, -0.04397675767540932, 0.461379736661911, 0.444286972284317, -0.6955681443214417, -0.49229225516319275, -0.3543046712875366, 0.8882166147232056, -0.6436691880226135, 0.34350690245628357, 0.3004017174243927, 0.15345324575901031, -0.13167598843574524, -0.5225414633750916, -0.172158345580101, -0.44168856739997864, -0.34659141302108765, -0.07614773511886597, -0.23887555301189423, 0.017987769097089767, 0.2887169420719147, 0.060441754758358, -0.6069415807723999, 0.1273926943540573, -0.17033648490905762, -0.5844139456748962, 0.427753746509552, 0.606101930141449, 0.17340297996997833, -0.29065755009651184, -0.8228530883789062, 0.36286142468452454, -1.0010181665420532, 0.2769987881183624, 0.31317830085754395, 0.18569406867027283, -0.08057210594415665, 0.26177531480789185, 0.22483019530773163, 0.3780856430530548, -0.1780153065919876, -0.2502393424510956, 0.02363169752061367, -0.5127795338630676, -0.2203780710697174, -0.21721887588500977, 0.7766094207763672, 0.39270901679992676, -0.1348579078912735, 0.2757644057273865, -0.3031535744667053, -0.09496543556451797, -0.2589423954486847, -0.9900874495506287, -0.3623538017272949, 0.36548662185668945, -0.8049634695053101, -0.6092565059661865, -0.6039872169494629, -0.7052456140518188, -0.8389904499053955, 0.2206130176782608, 0.40973395109176636, -0.34607499837875366, -0.23129567503929138, -0.01474695559591055, -0.022262323647737503, 0.024174712598323822, 0.19324404001235962, -0.7557517290115356, -0.03347067907452583, 0.41009610891342163, 1.0541120767593384, -0.15952298045158386, 0.3166995942592621, -1.0200940370559692, -0.019328350201249123, -0.03135602921247482, 1.0661929845809937, -0.28401246666908264, -0.5978730320930481, -0.5158606767654419, -0.04583742097020149, 0.24410082399845123, -0.9103627800941467, 0.8922386765480042, -0.524671733379364, 0.051197927445173264, -0.38654401898384094, -0.35885414481163025, -0.09460560232400894, 0.3620662987232208, -0.763694703578949, 0.7760886549949646, 0.09242110699415207, -0.9518433809280396, 0.6551086902618408, -0.6258447170257568, -0.06189563125371933, 0.22740037739276886, -0.04322674870491028, -0.4117489159107208, -0.10427740961313248, 0.04469406232237816, 0.29302385449409485, 0.11732623726129532, 0.2802734673023224, -0.5172410011291504, -0.6088680624961853, 0.41631168127059937, -0.6458654999732971, 1.307578682899475, 0.7728245854377747, 0.08844514936208725, 0.6559292674064636, -0.559410810470581, -0.14101164042949677, -0.1571751832962036, -0.5902609825134277, -0.37764790654182434, 0.14258550107479095, 0.009509091265499592, 0.2348065823316574, -0.0942530483007431, -0.6993341445922852, -0.30123600363731384, -0.16752739250659943, 0.37347328662872314, 1.2130976915359497, 0.08154664933681488, 0.10399457067251205, -0.7348561882972717, 0.3251223862171173, 0.26675495505332947, 0.6057233214378357, -0.2313547283411026, -0.5991342067718506, -0.6632017493247986, -0.5742528438568115, -0.17516419291496277, 0.46932947635650635, -0.37108659744262695, 0.5360468029975891, -0.029583511874079704, -0.3507005572319031, -0.11791397631168365, 0.20932435989379883, 0.16453970968723297, 0.5060284733772278, 0.25126150250434875, 0.08433511853218079, -0.39743712544441223, -0.6960391402244568, -0.14258770644664764, -0.3439062237739563, -0.24716290831565857, 0.560199499130249, 0.29486438632011414, -0.013417789712548256, 0.6307981610298157, -0.4582001864910126, -0.502188503742218, 0.12626302242279053, -0.22315910458564758, 0.3222464621067047, 0.3024645149707794, 0.6665288805961609, -0.5559816360473633, -0.3776640295982361, -0.18593284487724304, -0.6587763428688049, -0.21232011914253235, 0.1850070208311081, -0.09139915555715561, -0.06687268614768982, 0.6253077983856201, -0.3049652576446533, 0.17710179090499878, 0.4476882219314575, -0.3101140260696411, 0.4017837941646576, 0.09455535560846329, 0.06647367030382156, -0.5807796120643616, 0.3105737566947937, -0.007455185055732727, -0.45364993810653687, -0.771557629108429, 0.14757031202316284, 0.09302441030740738, -0.06581856310367584, -0.9724891781806946, 0.7273809313774109, -0.1323668360710144, 0.35114532709121704, -0.14438894391059875, -0.15676702558994293, 0.10285528749227524, 0.30808570981025696, -0.2126132845878601, 0.9379419088363647, 0.06260284781455994, -0.7426380515098572, 0.1662486493587494, -0.05896075442433357, -0.19239938259124756, 0.4214250147342682, -0.4952392280101776, -0.05536368116736412, -0.1885828822851181, 0.31864458322525024, -1.307642936706543, -0.1382010281085968, 0.697261393070221, -0.09143242239952087, 0.14940960705280304, -0.2653646171092987, -0.39368733763694763, -0.23494866490364075, -0.6892211437225342, 0.5806058645248413, 0.4757785499095917, -0.4542374014854431, 0.3412541449069977, 0.33435705304145813, -0.0026603678707033396, -0.5020586252212524, -0.7321875691413879, -0.46099600195884705, -0.5972436666488647, -0.40923264622688293, -0.4386463463306427, -0.6688446998596191, -0.12458284944295883, -0.13984942436218262, -0.26465553045272827, -0.12760667502880096, 0.4473683834075928, 0.2402600347995758, 0.3458777964115143, -0.1149192526936531, 0.09660551697015762, 0.10049047321081161, -0.2449609935283661, 0.3169183135032654, 0.1838950216770172, 0.28395935893058777, -0.0005271923146210611, -0.4061635434627533, -0.5776402950286865, 0.24420006573200226, 0.781428337097168, 0.021441953256726265, 0.27061840891838074, 0.35479772090911865, -0.46180281043052673, -0.045694075524806976, -0.4133191406726837, -0.2486112415790558, -0.5863472819328308, -0.047610871493816376, -0.1354544460773468, -0.9592347145080566, 0.539856493473053, 0.02928064949810505, 0.05918765440583229, 0.13902463018894196, 0.4760728180408478, 0.07938957214355469, 1.2624132633209229, 0.2566175162792206, -0.08698873966932297, 0.3332321345806122, 0.055992819368839264, 0.17097772657871246, -0.6111226677894592, -0.3539450764656067, -0.36084097623825073, -0.24237307906150818, -0.40940266847610474, -0.35165131092071533, 0.9655388593673706, -0.3498380482196808, -0.4410308003425598, -0.42020925879478455, -0.5506231784820557, 0.749098539352417, 0.26001641154289246, 0.6797558069229126, 0.606816828250885, -0.06052069738507271, -0.15830817818641663, -0.0528189055621624, -0.4753662943840027, -0.4343041479587555, 0.900326132774353, 0.5124030113220215, 0.914127767086029, 0.15679512917995453, 0.5391008853912354, 0.21387489140033722, 0.8847116231918335, -0.8909714221954346, 0.4778327941894531, -0.08883065730333328, -1.0241758823394775, -0.056092675775289536, -0.36501312255859375, -0.6418247818946838, 0.19901719689369202, -0.10780007392168045, -0.6574557423591614, 0.32036474347114563, 0.012412111274898052, -0.7560038566589355, 0.5897108316421509, -0.6562907099723816, 0.6206196546554565, -0.21016858518123627, -0.5109072327613831, 0.05572141706943512, -0.6137825846672058, 0.9238650798797607, -0.26295390725135803, 0.4504324495792389, -0.5681151747703552, -0.27810075879096985, 0.3493766486644745, -0.21482723951339722, 0.9338827729225159, -0.31463852524757385, -0.1660470813512802, 0.6451502442359924, 0.41806280612945557, 0.2420220524072647, 0.3499378561973572, -0.34885290265083313, -0.15986569225788116, 0.06174442544579506, -0.33281394839286804, -0.11487727612257004, 0.763092577457428, -0.32696911692619324, -0.49659138917922974, -0.3007587790489197, -0.7004609704017639, -0.02482241950929165, 0.3817596733570099, 0.4865942597389221, -0.12307699769735336, 0.08624496310949326, -0.09227945655584335, 0.8967360854148865, -0.43020427227020264, 0.15917393565177917, 0.4981110990047455, -0.29278644919395447, -0.06742590665817261, 0.8452714681625366, -0.19521677494049072, 0.27348020672798157, 0.04182666167616844, 0.5516398549079895, -0.6460440158843994, -0.4880150556564331, -0.45369818806648254, 0.10448885709047318, -0.7820487022399902, -0.7637747526168823, -0.625823438167572, -0.13353806734085083, -0.11608331650495529, 0.21631617844104767, 0.013645022176206112, 0.18553714454174042, -0.6441407799720764, -0.2976503074169159, 0.4238245487213135, 0.7243767380714417, -0.41123220324516296, -0.023597605526447296, -1.0495234727859497, -0.11197137087583542, 0.3628643751144409, 0.34466055035591125, 0.10414174944162369, -0.3844449818134308, 0.3403976857662201, 0.115406334400177, -0.43384459614753723, -0.9502993226051331, 0.17575703561306, 0.005676522850990295, 0.5513767004013062, 0.8336770534515381, 0.26791492104530334, 0.5079564452171326, 0.03177366033196449, 0.7333711385726929, 0.1133190244436264, -0.9269282221794128, 0.6364319920539856, -0.32564565539360046, -0.2823408544063568, 0.5234682559967041, 0.6536963582038879, -0.5493494272232056, -0.5283784866333008, -0.07335799187421799, -0.4203515648841858, 0.707053542137146, -0.03347138315439224, 0.26440268754959106, -0.19866333901882172, 0.3499053716659546, 0.3440414071083069, -0.09703292697668076, -1.1524569988250732, -0.4121120572090149, 0.15348051488399506, -0.04838454723358154, 0.28222131729125977, -0.7723475098609924, -0.21846981346607208, -0.12771975994110107, 0.3406774699687958, 0.05091731622815132, 0.11696141958236694, 0.09527087956666946, -0.058600280433893204, -0.3339826762676239, 0.3846597373485565, 0.4753907024860382, 0.10613033920526505, -0.45283782482147217, 0.36641940474510193, 0.42273780703544617, -0.1362612396478653, 0.7573268413543701, -0.37651190161705017, -0.3506343364715576, -0.11636757850646973, 0.22477412223815918, 0.2754797637462616, 0.2943263649940491, -0.8501789569854736, 0.7568143606185913, -0.0487564317882061, -0.028794316574931145, 0.21490877866744995, 0.22930972278118134, -0.055398546159267426, 0.1877426952123642, 0.0643448755145073, -0.036725353449583054, 0.6751411557197571, -0.5155429244041443, 0.4808700978755951, 0.6199935078620911, -0.6220728754997253, -0.10921993851661682, 0.8554753065109253, 0.26978299021720886, 0.2086750715970993, 0.4403631091117859, -0.5732243061065674, -0.31620100140571594, 0.5123841166496277, 0.45893657207489014, 0.5355592370033264, -0.389652281999588, 0.19758793711662292, 0.4735475778579712, 0.22823578119277954, 0.5752314925193787, 0.45973578095436096, -0.047350212931632996, -0.6599159836769104, -0.29086387157440186, -0.4406096041202545, -0.07616213709115982, 0.6954103708267212, -0.4689873456954956, 0.3771745562553406, -0.7664360404014587, -0.08588384836912155, -0.13087010383605957, -0.1957281529903412, -0.2790427803993225, -0.22099044919013977, 0.28228238224983215, 0.9717366099357605, -1.322826862335205, 0.3007684350013733, 0.43476682901382446, -0.3919585347175598, -0.7450728416442871, -0.28797242045402527, 0.44038569927215576, -0.7366520166397095, 0.5853409171104431, 0.5232850909233093, -0.05727022886276245, -0.22146648168563843, -0.5779275894165039, -0.48271143436431885, 1.0686163902282715, 0.27713319659233093, -0.20520727336406708, -0.07609853893518448, -0.234314426779747, 0.43888452649116516, 0.20922772586345673, 0.538316011428833, 0.5141547322273254, 0.562417209148407, 0.14529095590114594, -0.49121811985969543, 0.4620046615600586, -0.09179919213056564, -0.2887016534805298, 0.22333389520645142, -0.7591671347618103, 1.0297040939331055, -0.1888394057750702, -0.6984682679176331, 0.35805001854896545, 0.2408628612756729, 0.5542060732841492, 0.9413964748382568, 0.890648365020752, 0.29671964049339294, 0.7270704507827759, 0.1787729114294052, 0.5776258111000061, -0.07495363801717758, 0.40193450450897217, 0.7448437809944153, -0.43210655450820923, 0.3632009029388428, 0.3221651017665863, -0.24097837507724762, 0.4895786941051483, 0.9273970127105713, 0.0890076756477356, 0.6638258099555969, 0.2167966067790985, -0.9449132680892944, -0.3144497275352478, -0.6271560192108154, -0.23174013197422028, 0.011138375848531723, 0.6430403590202332, -0.2059713900089264, -0.7136330008506775, 0.15244817733764648, 0.03312739357352257, -0.29557090997695923, -0.34833046793937683, 0.5166788101196289, 0.0409010648727417, -0.47921159863471985, 0.4981369078159332, -0.303618848323822, 1.0892542600631714, -0.5235379934310913, 0.021873129531741142, -0.4751594364643097, 0.010370515286922455, -0.4578508138656616, -0.8772119879722595, 0.32064738869667053, -0.06434140354394913, 0.3104814291000366, -0.04058943688869476, 1.2816778421401978, -0.17939633131027222, 0.03975887969136238, 0.4505535066127777, 0.7026984691619873, 0.23860907554626465, -0.04957365244626999, -0.5580846667289734, -0.04040095582604408, 0.09654613584280014, -0.07181242853403091, 0.2607198655605316, 0.4199643135070801, 0.0030198527965694666, 0.9121474027633667, 0.9236161708831787, -0.07769625633955002, 0.21555297076702118, -0.23642189800739288, 1.0648584365844727, -0.2269536554813385, -0.18506404757499695, -0.8722806572914124, 0.5451229810714722, 0.2889840006828308, -0.047881800681352615, 0.3220350444316864, 0.5597163438796997, 0.6438875794410706, -0.006344834808260202, 0.42833125591278076, 0.28616079688072205, 0.30604952573776245, -0.6378951668739319, 0.7473205924034119, -0.7006727457046509, 0.5305760502815247, 0.22175493836402893, -0.414564311504364, -0.45507922768592834, 0.48030585050582886, 0.28887948393821716, -0.07472030818462372, 0.5806100964546204, 1.1552599668502808, -0.192592591047287, -0.02416195720434189, 0.3578762412071228, 0.12968488037586212, 0.5790702700614929, 0.8844318985939026, 1.1856633424758911, -0.05452857166528702, 0.773228108882904, -0.24501703679561615, -0.3724142611026764, -0.3508409261703491, -0.9828673601150513, -0.8107903003692627, -0.21770933270454407, 0.2018589973449707, -0.5399381518363953, -0.23222772777080536, 0.7475360631942749, 0.6156100630760193, -0.8745623230934143, 0.13520854711532593, 0.00004338144208304584, 0.5697491765022278, 0.10892386734485626, -0.29206159710884094, -0.03658723086118698, -0.3809800446033478, -0.5925465226173401, 0.4413292407989502, 0.3868291676044464, 0.16878551244735718, -0.21472392976284027, -0.037801072001457214, -0.14275223016738892, -0.0169603880494833, 0.7197698354721069, 0.3030211627483368, -0.5652461051940918, -0.6051766872406006, 0.15184442698955536, -0.3252931833267212, 0.06463561952114105, 0.8348178863525391, -0.6497922539710999, 0.3400190472602844, 0.5808168053627014, 0.18975995481014252, 0.14588919281959534, -0.1883285790681839, -0.175670325756073, -0.8464935421943665, 0.34393760561943054, 0.42253777384757996, 0.2530771493911743, -0.009310927242040634, -0.8043150901794434, 0.5209643244743347, 0.3460994064807892, -0.7694944739341736, -0.9232401847839355, 0.5347436666488647, -0.7603960037231445, -0.29024380445480347, 1.0857393741607666, -0.25212526321411133, -0.11596731096506119, -0.4159872233867645, -0.25235792994499207, 0.08449465036392212, -0.3500315546989441, 0.3932364583015442, 0.5777730941772461, -0.6183937191963196, 0.1602896749973297, -0.48822295665740967, 0.4785633683204651, 0.3018772006034851, -0.6845447421073914, 0.07588513940572739, 0.7075982093811035, 0.8389435410499573, 0.15781080722808838, 1.1229686737060547, -0.20250120759010315, 0.2411954402923584, -0.1758972406387329, -0.5549073219299316, -0.07393155992031097, -0.19528570771217346, -0.4578325152397156, -0.22026872634887695, 0.33499979972839355, -0.36468029022216797 ]
http://arxiv.org/abs/2405.18776v1
http://arxiv.org/pdf/2405.18776v1
LMO-DP: Optimizing the Randomization Mechanism for Differentially Private Fine-Tuning (Large) Language Models
2024-05-29T05:32:50
2024-05-29T05:32:50
Qin Yang, Meisam Mohammad, Han Wang, Ali Payani, Ashish Kundu, Kai Shu, Yan Yan, Yuan Hong
cs.CR
cs.CR, cs.CL, cs.LG
Differentially Private Stochastic Gradient Descent (DP-SGD) and its variants have been proposed to ensure rigorous privacy for fine-tuning large-scale pre-trained language models. However, they rely heavily on the Gaussian mechanism, which may overly perturb the gradients and degrade the accuracy, especially in stronger privacy regimes (e.g., the privacy budget $\epsilon < 3$). To address such limitations, we propose a novel Language Model-based Optimal Differential Privacy (LMO-DP) mechanism, which takes the first step to enable the tight composition of accurately fine-tuning (large) language models with a sub-optimal DP mechanism, even in strong privacy regimes (e.g., $0.1\leq \epsilon<3$). Furthermore, we propose a novel offline optimal noise search method to efficiently derive the sub-optimal DP that significantly reduces the noise magnitude. For instance, fine-tuning RoBERTa-large (with 300M parameters) on the SST-2 dataset can achieve an accuracy of 92.20% (given $\epsilon=0.3$, $\delta=10^{-10}$) by drastically outperforming the Gaussian mechanism (e.g., $\sim 50\%$ for small $\epsilon$ and $\delta$). We also draw similar findings on the text generation tasks on GPT-2. Finally, to our best knowledge, LMO-DP is also the first solution to accurately fine-tune Llama-2 with strong differential privacy guarantees. The code will be released soon and available upon request.
[ -0.1755419373512268, -0.6194023489952087, 0.6465309858322144, 0.1682971864938736, -0.4166335165500641, 0.06804732978343964, -0.4164622128009796, -0.1902661770582199, -0.22010403871536255, 0.22499887645244598, -0.8546513319015503, -0.669596254825592, -0.6019861698150635, -0.08226509392261505, -0.1667296439409256, 1.029761791229248, -0.0179958026856184, 0.12726148962974548, 0.3733234107494354, 0.27910467982292175, 0.28274840116500854, -0.3310772180557251, -0.5631346702575684, 0.02070065401494503, 0.6243512630462646, 0.12264806032180786, 0.4737882912158966, 0.9364709258079529, 0.5847980976104736, 0.2901073396205902, -0.17358265817165375, 0.34394022822380066, -0.7538606524467468, 0.1683792918920517, -0.11732546240091324, -0.49136531352996826, -0.5208757519721985, -0.09148555248975754, 0.6596333384513855, 0.37613004446029663, -0.33978286385536194, 0.0989997610449791, 0.18740862607955933, 0.7609665393829346, -0.6576150059700012, 0.310028612613678, -0.5957359075546265, 0.05173506587743759, -0.404559463262558, -0.2861480712890625, -0.09824914485216141, -0.4465304911136627, -0.13931818306446075, -0.4240867495536804, 0.32322683930397034, -0.11122549325227737, 0.6893771886825562, 0.3427008092403412, -0.16220347583293915, -0.2066316157579422, -0.7391597032546997, 0.9675899147987366, -0.7532317638397217, 0.38119301199913025, 0.5280830264091492, 0.07654932886362076, -0.2552756667137146, -0.5281583070755005, -0.5094327330589294, -0.4449527859687805, 0.20570148527622223, -0.025019781664013863, -0.07522044330835342, 0.4412999749183655, 0.25662514567375183, 0.8265753388404846, -0.3127019703388214, 0.5135523676872253, -0.30085623264312744, -0.05465157330036163, 0.8226358294487, 0.1039801761507988, 0.0779748484492302, 0.3816414177417755, -0.08695670962333679, 0.012289282865822315, -0.6519182920455933, -0.151002898812294, 1.0863133668899536, 0.17915837466716766, -0.24758051335811615, 0.39172619581222534, -0.4784207046031952, 0.4948230981826782, 0.15491044521331787, -0.25702720880508423, 0.060535553842782974, -0.2946186661720276, -0.03774534538388252, -0.27504995465278625, 0.8649627566337585, 0.363072007894516, 0.24367250502109528, -0.12851834297180176, -0.3648509085178375, 0.02092340774834156, -0.13154853880405426, -0.8096073865890503, -0.19429263472557068, 0.43146753311157227, -0.2884956896305084, -0.8485216498374939, -0.21021752059459686, -0.8164985179901123, -0.31390318274497986, -0.1926649808883667, 0.24109522998332977, -0.012331873178482056, -0.3130308985710144, 0.3003515303134918, 0.30230823159217834, -0.4083920121192932, 0.0907081812620163, -1.3605663776397705, 0.39805614948272705, 0.8407648205757141, 0.9407882690429688, -0.09541617333889008, -0.09978257119655609, -0.6024125218391418, 0.2425864040851593, -0.2459918111562729, 0.12792181968688965, -0.4294472932815552, -0.2768583297729492, 0.15426236391067505, -0.10140573978424072, 0.18954172730445862, -0.15792231261730194, 0.6128145456314087, -0.5363571047782898, 0.3318565785884857, 0.0381031408905983, -0.525698184967041, -0.08270413428544998, -0.06774169951677322, -0.41002845764160156, 0.7709880471229553, 0.04170292988419533, -0.6468145847320557, 0.2052198350429535, -0.7306246757507324, -0.1833028346300125, -0.3258233368396759, -0.3087279200553894, -0.6460205316543579, 0.17387564480304718, 0.20415273308753967, 0.65626060962677, -0.4038485288619995, 0.3297756016254425, -0.4959861934185028, -0.43218764662742615, 0.02280258759856224, -0.43782946467399597, 0.7244543433189392, 0.3713580071926117, -0.6633263826370239, -0.045535098761320114, -1.0635100603103638, 0.025900015607476234, 0.21845735609531403, -0.4285360872745514, -0.366922527551651, -0.07222763448953629, -0.2837342619895935, -0.010744024999439716, 0.5275521278381348, -0.5620051026344299, 0.23050254583358765, -0.5996468663215637, 0.638437807559967, 1.1482552289962769, -0.16252270340919495, 0.7715699672698975, -0.2743012309074402, 0.5196627378463745, 0.08653263002634048, 0.41290128231048584, -0.05547180026769638, -0.49343299865722656, -0.2656159996986389, -0.6628503203392029, 0.3385719060897827, 0.37888988852500916, -0.041713934391736984, 0.4944845139980316, -0.11483031511306763, -0.41937366127967834, -0.4165008068084717, 0.1770080327987671, 0.5754143595695496, 0.2327301949262619, 0.07443498820066452, -0.21970349550247192, -0.10496126115322113, -0.8935792446136475, -0.05218758061528206, 0.03284367546439171, -0.041453707963228226, 0.5580538511276245, 0.09610443562269211, -0.2859191298484802, 0.4982350170612335, -0.5586299300193787, -0.47838476300239563, 0.032977230846881866, 0.0066886828280985355, 0.28818991780281067, 0.6023184061050415, 0.5329297184944153, -0.5680912733078003, -0.5340358018875122, 0.14307941496372223, -0.2762422561645508, -0.41127800941467285, 0.18855580687522888, -0.019195720553398132, 0.4263339340686798, 0.18940679728984833, -0.498230516910553, 0.25405704975128174, 0.9008182883262634, 0.13747185468673706, 0.14811821281909943, -0.5786057710647583, -0.02425668016076088, -1.0298627614974976, -0.1065303385257721, -0.12841041386127472, -0.10089890658855438, -0.43380090594291687, 0.31902292370796204, 0.11714419722557068, -0.1470358520746231, -0.3239704668521881, 0.3805555999279022, -0.5630622506141663, 0.12651164829730988, -0.2748240530490875, 0.1417774111032486, -0.2937915027141571, 0.643078625202179, -0.11471393704414368, 0.6934916973114014, 0.7202939391136169, -0.6285215616226196, 0.17665128409862518, -0.16313448548316956, -0.4527429938316345, 0.020044216886162758, -0.6086740493774414, 0.41846922039985657, -0.2780087888240814, 0.1700165718793869, -0.7794545292854309, -0.10519219189882278, 0.5037899613380432, -0.07603596895933151, 0.4973815381526947, -0.27422231435775757, -0.47312653064727783, -0.05766892060637474, -0.48293235898017883, 0.30776479840278625, 0.6622039675712585, -0.5452971458435059, 0.13205686211585999, 0.5322726964950562, -0.2477494776248932, -0.8514975309371948, -0.6498982310295105, -0.12448133528232574, -0.1063348576426506, -0.7321114540100098, 0.45982688665390015, -0.17877987027168274, -0.3039872646331787, -0.3552858829498291, -0.19261714816093445, -0.150088831782341, 0.044064100831747055, 0.10634700953960419, -0.17516660690307617, -0.05123308300971985, -0.13026010990142822, 0.4868142902851105, -0.37472328543663025, -0.11432177573442459, -0.4204256534576416, 0.6702516078948975, 0.015184849500656128, -0.25143158435821533, -0.6582456827163696, 0.3983079493045807, 0.3201057016849518, -0.1547694206237793, 0.6781556606292725, 0.3973110616207123, -0.11970937997102737, -0.6041846871376038, -0.48461174964904785, -0.4398423135280609, -0.5488266348838806, 0.5675570368766785, -0.3413778245449066, -1.074275255203247, 0.4656541347503662, -0.10788444429636002, 0.24060438573360443, 0.06494436413049698, 0.7684462070465088, 0.2655397355556488, 1.1241751909255981, 0.8710192441940308, -0.31232738494873047, 0.59061598777771, -0.17397139966487885, 0.4036732017993927, -0.4461064338684082, 0.07931637018918991, -0.5170149803161621, -0.4889500141143799, -1.0276294946670532, -0.4582449197769165, 0.09509783238172531, 0.1038793995976448, -0.05754118040204048, 0.14483019709587097, -0.6807581782341003, 0.6333180665969849, 0.7347102165222168, 0.24910396337509155, 0.4742538034915924, 0.23945003747940063, -0.07036595791578293, -0.08033738285303116, -0.33151882886886597, -0.43383342027664185, 1.2737617492675781, 0.5829048752784729, 1.0859447717666626, 0.13100816309452057, 1.1625720262527466, -0.016664188355207443, -0.026798667386174202, -0.2948373258113861, 0.7012641429901123, -0.39061281085014343, -0.4888695478439331, -0.36067843437194824, -0.5855882167816162, -0.5200681686401367, 0.0620599202811718, 0.18388697504997253, -0.8907652497291565, 0.3310985863208771, 0.18736515939235687, -0.1959996372461319, 0.27887943387031555, -0.5094040632247925, 0.4456746578216553, -0.06372641026973724, -0.6915643811225891, -0.4711695611476898, -0.5784791111946106, 0.46492716670036316, -0.3308347761631012, 0.16761741042137146, -0.24815794825553894, -0.29700544476509094, 0.4260416030883789, -0.4094814956188202, 0.8352819085121155, -0.4740833044052124, -0.6673107743263245, -0.2336803525686264, 0.0658569186925888, 1.068176031112671, 0.5534636974334717, -0.1317610889673233, 0.5232201814651489, -0.12066619843244553, -0.053337518125772476, -0.4405263066291809, 0.9768022894859314, -0.8346883058547974, -0.7068349123001099, -0.36253488063812256, -0.5594127178192139, -0.012895392253994942, 0.16613668203353882, 0.2950890064239502, 0.07756078988313675, 0.13711872696876526, 0.1458720564842224, 0.7467514872550964, -0.3110504448413849, 0.32845231890678406, 0.8676621317863464, -0.2001412957906723, -0.20969712734222412, 0.8124145865440369, -0.013980738818645477, 0.2912227511405945, 0.5450806021690369, 0.39949125051498413, -0.4547569453716278, -0.9339996576309204, -0.37796756625175476, 0.2548050284385681, -0.39780309796333313, -0.01168389618396759, -0.6858581900596619, -0.2267707884311676, -0.166447713971138, 0.09223407506942749, -0.5821617245674133, -0.6574410200119019, -0.3503524363040924, -0.2290986031293869, 0.377838134765625, 0.2678965628147125, -0.6457277536392212, 0.09822767972946167, -0.5263000726699829, 0.4263681471347809, 0.2562335729598999, 0.5506086349487305, -0.2936970293521881, -0.5521697402000427, 0.030908968299627304, 0.37460213899612427, -0.2700522840023041, -0.4750061333179474, 0.2157628834247589, 0.3124200701713562, 0.3117939829826355, 0.46736279129981995, 0.21292197704315186, 0.4342600703239441, -0.672766387462616, 0.6394739151000977, -0.005166659597307444, -0.785874605178833, 0.48143628239631653, -0.7060434222221375, -0.2916260063648224, 0.493203341960907, 0.17206315696239471, -0.0513564758002758, -0.8381514549255371, -0.4141964614391327, -0.8686528205871582, 0.8131775856018066, 0.33201897144317627, 0.4611588418483734, 0.16262994706630707, 0.3030329942703247, 0.3235444724559784, 0.31763607263565063, -0.7429616451263428, -0.3382074236869812, 0.27613186836242676, -0.3215348422527313, -0.03936067596077919, -0.3732236921787262, -0.4878622591495514, -0.0830318033695221, 0.7026527523994446, 0.0023702860344201326, 0.20703420042991638, -0.03978073596954346, 0.3582805097103119, -0.2609905004501343, 0.2602716088294983, 1.1002899408340454, 0.6190332770347595, -0.3271130919456482, -0.10887228697538376, -0.15567636489868164, -0.7736871838569641, 0.2718006372451782, 0.30810627341270447, -0.46427613496780396, 0.008800169453024864, -0.34078553318977356, 0.5694794654846191, 0.006538202054798603, -0.44567862153053284, 0.5973343253135681, -0.1787836104631424, -0.4788069725036621, -0.19914957880973816, 0.29514941573143005, -0.0924830511212349, 0.33318594098091125, 0.17750203609466553, -0.07044193148612976, 0.07985749840736389, -0.038236793130636215, 0.10771893709897995, 0.41851216554641724, -0.14551353454589844, -0.34246987104415894, 1.0449124574661255, 0.27134519815444946, -0.34941571950912476, 0.09176407754421234, -0.2329869419336319, -0.010435671545565128, 0.3216818571090698, 0.3370450437068939, 1.0801987648010254, -0.1178068295121193, 0.30722397565841675, 0.10863064229488373, 0.23137740790843964, -0.4503669738769531, 0.453132688999176, -0.2945038080215454, -0.511098325252533, -0.2271096259355545, -0.7426886558532715, -0.33282822370529175, 0.30381035804748535, -0.46299436688423157, 0.18564826250076294, -0.7777507901191711, 0.03313672915101051, -0.31797802448272705, 0.09900715202093124, -0.30393892526626587, 0.1436825692653656, -0.07761689275503159, 0.4138565957546234, -0.29416215419769287, 1.0234824419021606, 0.18939439952373505, -0.1858341097831726, -0.6066862344741821, 0.1567223221063614, 0.009110729210078716, -1.0664342641830444, 0.6343936920166016, -0.09525495767593384, -0.17238008975982666, 0.3142198324203491, -0.44188275933265686, -0.7243645787239075, 0.8794932961463928, 0.7009779810905457, -1.462810754776001, 0.12557566165924072, 0.39324986934661865, 0.5341949462890625, 0.03394206613302231, -0.17466731369495392, 0.13962659239768982, 0.41022130846977234, -0.40396788716316223, -0.9164165258407593, 0.19637486338615417, 0.03451336547732353, 0.11299355328083038, 0.2756226658821106, -1.0138845443725586, 0.8195796012878418, -0.3267298936843872, -0.30951324105262756, 0.19574248790740967, 0.3866969347000122, 0.21684862673282623, 0.2523747384548187, 0.3224034011363983, 0.5356634855270386, 0.8396960496902466, 0.0342564731836319, 0.8254969716072083, -0.763788640499115, 0.47484639286994934, 0.8373727202415466, -0.2313433289527893, 0.503771960735321, 0.6182062029838562, -0.27437740564346313, 0.061249688267707825, 0.5249279737472534, 0.11456391960382462, 1.157686710357666, 0.6990358233451843, -0.618628203868866, 0.11743581295013428, 0.1522178202867508, -0.6928723454475403, 0.001723061897791922, -0.10404915362596512, -0.7039251923561096, -0.06460250914096832, -0.23445561528205872, 0.092310331761837, 0.1794724315404892, -0.1444934904575348, 0.6977337002754211, 0.19500002264976501, -0.19509409368038177, 0.5185307264328003, 0.4384702742099762, 0.8829711675643921, -0.754538357257843, 0.4017430245876312, -0.42016953229904175, 0.6315016746520996, -0.04404519125819206, -0.3278612494468689, 0.08882676064968109, -0.08825725317001343, -0.22097933292388916, -0.3229263424873352, 0.3814574182033539, -0.5788509249687195, -0.41746455430984497, 0.2552459239959717, 0.1566883623600006, 0.011846693232655525, 0.0037982920184731483, -0.6667728424072266, 0.07402902096509933, 0.02474125660955906, -0.5664999485015869, 0.6865057945251465, 0.5392497777938843, 0.0633602887392044, 0.5241113305091858, 0.8659629225730896, 0.2648743689060211, 0.12797053158283234, 0.3173202574253082, 0.9724136590957642, -0.3507910370826721, -0.8908300399780273, -1.0691840648651123, 0.3310667872428894, 0.007097170222550631, -0.387367308139801, 0.6125571727752686, 0.43453651666641235, 0.9284656643867493, -0.16372835636138916, 0.8930800557136536, 0.12742596864700317, 0.5757028460502625, -0.6874058842658997, 0.9963740706443787, -0.7060689926147461, 0.45707881450653076, -0.37680500745773315, -0.9319490790367126, -0.2225492149591446, 0.640490710735321, -0.1589002162218094, 0.07205398380756378, 0.5911141037940979, 1.3879578113555908, -0.13298581540584564, 0.006083191838115454, 0.28761160373687744, 0.13494917750358582, 0.3537195026874542, 0.5076216459274292, 0.6361890435218811, -0.46724775433540344, 0.5729271769523621, -0.7248638868331909, -0.4270971119403839, 0.026532022282481194, -0.9503293037414551, -0.97803795337677, -0.5897824168205261, -0.36996906995773315, -0.07641124725341797, 0.445546418428421, 0.49671515822410583, 0.7215747237205505, -0.6508587598800659, -0.022531891241669655, -0.5610454082489014, -0.08599308133125305, -0.25229740142822266, -0.12888145446777344, 0.27666598558425903, -0.1804618090391159, -1.1319160461425781, 0.41172710061073303, 0.5258903503417969, 0.0920180231332779, -0.4381228983402252, -0.26101261377334595, 0.3171408176422119, 0.025776226073503494, 0.11442901194095612, 0.14221055805683136, -0.5500065088272095, -0.06380821764469147, -0.1963796764612198, -0.27203282713890076, -0.21583661437034607, 0.7997722625732422, 0.1451030820608139, 0.2201879322528839, 0.5258600115776062, 0.5546525120735168, 0.5529362559318542, -0.10088808834552765, 0.7852798104286194, -0.7773264050483704, 0.6470286250114441, 0.2653779685497284, 0.021711615845561028, -0.09922302514314651, -0.6300674080848694, 0.5059223175048828, 0.2276540994644165, -0.8412457704544067, -1.1872360706329346, 0.2783120572566986, -0.9005001783370972, 0.060459353029727936, 1.2397786378860474, -0.26157739758491516, -0.2419896274805069, 0.07038714736700058, -0.33324283361434937, 0.05026393383741379, -0.6968770623207092, 1.2581325769424438, 0.42572131752967834, 0.17916972935199738, -0.2747620642185211, -0.42298758029937744, 0.8881352543830872, 0.2874758243560791, -0.41320231556892395, 0.37863653898239136, 0.2996481657028198, 0.18606194853782654, -0.1929534673690796, 0.9513369798660278, -0.28155532479286194, 0.008174707181751728, -0.09881056100130081, -0.3638080656528473, -0.5681270360946655, -0.12024600803852081, -0.27229154109954834, 0.17137935757637024, -0.22780561447143555, -0.38041919469833374 ]
http://arxiv.org/abs/2405.18742v1
http://arxiv.org/pdf/2405.18742v1
Musical Phrase Segmentation via Grammatical Induction
2024-05-29T04:04:36
2024-05-29T04:04:36
Reed Perkins, Dan Ventura
cs.AI
cs.AI, cs.CL
We outline a solution to the challenge of musical phrase segmentation that uses grammatical induction algorithms, a class of algorithms which infer a context-free grammar from an input sequence. We analyze the performance of five grammatical induction algorithms on three datasets using various musical viewpoint combinations. Our experiments show that the LONGESTFIRST algorithm achieves the best F1 scores across all three datasets and that input encodings that include the duration viewpoint result in the best performance.
[ -0.42311105132102966, -0.9032158255577087, 0.9037103056907654, 0.8587705492973328, -0.3377440869808197, -0.07104462385177612, -0.32374265789985657, -0.4649123251438141, 0.22762314975261688, 0.1345437616109848, -0.9810650944709778, -0.6023377776145935, -0.3847392499446869, 0.3247602880001068, -0.7174627184867859, 0.3980843126773834, 0.3406849801540375, 0.3146266043186188, -0.6774795651435852, 0.029427967965602875, -0.47994479537010193, -0.26920759677886963, -0.35206103324890137, -0.30807703733444214, 0.3777858018875122, 0.5795522332191467, 0.4926653206348419, 1.1290969848632812, 0.5602594017982483, 0.41068145632743835, -0.22571583092212677, 0.21349647641181946, 0.035289786756038666, 0.291189968585968, -0.15004560351371765, -0.5852305889129639, 0.3717532157897949, 0.2127404361963272, 0.4981159567832947, 0.8151262998580933, -0.13875816762447357, -0.12367658317089081, -0.6171534061431885, 0.6559710502624512, -0.27011382579803467, 0.10157690197229385, -0.6248239874839783, 0.3463889956474304, -0.49464359879493713, -0.4442695081233978, -0.6043038964271545, -0.5975995659828186, 0.05137638375163078, -0.7109022736549377, 0.021140649914741516, -0.08956911414861679, 0.9711374044418335, 0.26624545454978943, -0.024440409615635872, -0.6342859268188477, -0.6324895024299622, 0.5827610492706299, -0.1349438577890396, 0.3145435154438019, 0.25944405794143677, 0.22547726333141327, -0.26097342371940613, -0.42518824338912964, -0.5944564342498779, 0.14250124990940094, -0.037775859236717224, -0.011742977425456047, 0.10504759848117828, 0.1356096863746643, 0.29753369092941284, 0.608593761920929, -0.6573450565338135, -0.03777490183711052, -0.35004541277885437, 0.2688629627227783, 0.7679734826087952, -0.10513252019882202, 0.33435186743736267, -0.49202242493629456, -0.1914146989583969, 0.03387151658535004, -0.6922179460525513, 0.12793543934822083, 0.20955757796764374, 0.2346227467060089, -0.025171343237161636, 0.7693312168121338, 0.017928335815668106, 0.9735768437385559, 0.4524296522140503, -0.3240296244621277, 0.36650407314300537, -0.088254414498806, -0.4504164457321167, 0.17713898420333862, 0.8317269682884216, 0.30109351873397827, 0.3866599500179291, -0.4021456837654114, -0.20046889781951904, 0.38017746806144714, -0.23068396747112274, -0.23122890293598175, 0.0570380724966526, 0.15998798608779907, -0.015268335118889809, -0.29409074783325195, 0.33408087491989136, -0.7948837280273438, -0.2391090840101242, -0.5833339095115662, 0.2893525958061218, -0.6277308464050293, 0.20337502658367157, -0.07541050016880035, -0.39375901222229004, 0.4314670264720917, -0.26955467462539673, -1.1511130332946777, 0.1287798434495926, 0.8792182803153992, 0.9543017148971558, -0.07117347419261932, -0.1235307827591896, -0.7103614211082458, -0.18943406641483307, -0.5390006899833679, 0.9451420903205872, -0.8169589042663574, -0.8564356565475464, 0.016077889129519463, 0.09827544540166855, -0.7011186480522156, -0.8146074414253235, 0.4613268971443176, -0.549461305141449, 0.621614396572113, -0.1288512796163559, -1.0925517082214355, -0.0014963757712394, -0.21558012068271637, -0.5502368807792664, 0.888360321521759, 0.3611859381198883, -0.21656276285648346, 0.6515828371047974, -1.0677469968795776, -0.9778937697410583, -0.24887071549892426, -0.22724291682243347, -0.1043500155210495, 0.5713896155357361, 0.5220925807952881, 0.2318180352449417, 0.05619368702173233, 0.2933844029903412, -0.267192006111145, -0.48979687690734863, 0.4713297188282013, 0.0018687983974814415, 0.8296719789505005, 0.3936599791049957, -0.4198126792907715, 0.38523203134536743, -0.9786238074302673, -0.02613483928143978, 0.20426300168037415, -0.08612754195928574, -0.23786094784736633, 0.08047612756490707, 0.17793701589107513, 0.2845785617828369, -0.29058268666267395, -0.6461520195007324, 0.0879119411110878, -0.8106403946876526, 0.5103756189346313, 0.8434807062149048, 0.14656634628772736, 0.7896339297294617, -0.23171699047088623, 0.5490115284919739, -0.15223467350006104, -0.03767358139157295, -0.3993178606033325, -0.41592368483543396, -0.6963617205619812, -0.11714731156826019, 0.5455986857414246, 0.755438506603241, -0.6397378444671631, 0.7534337043762207, -0.08038611710071564, -0.18677620589733124, -0.3127940893173218, 0.08262208104133606, 0.22355453670024872, 0.31199032068252563, 0.11391768604516983, 0.09735991060733795, -0.6281316876411438, -0.7075702548027039, -0.09779688715934753, -0.04250337556004524, 0.10330794006586075, 0.10048341006040573, 0.2924674451351166, 0.12587325274944305, 0.8673083186149597, -0.5958797335624695, -0.13912950456142426, -0.24074995517730713, -0.018150338903069496, 0.4966859519481659, 0.7125977873802185, 0.9300339818000793, -0.630020797252655, -0.35586562752723694, -0.17888233065605164, -0.9540489912033081, -0.22164665162563324, -0.27806445956230164, -0.30634164810180664, -0.011557242833077908, 0.3955959975719452, -0.5818432569503784, 0.19866131246089935, 0.29541531205177307, -0.45006075501441956, 0.1600377857685089, 0.588930606842041, -0.06335679441690445, -0.8805856704711914, -0.3888668417930603, 0.012669081799685955, -0.32826539874076843, -0.5556737780570984, 0.07259699702262878, -0.07288803160190582, -0.032982245087623596, -0.17592009902000427, 0.033745404332876205, -0.342707097530365, -0.22191882133483887, -0.193192720413208, 0.12925128638744354, 0.06569436192512512, 0.4272489845752716, 0.15700213611125946, 0.8008230328559875, 0.625182569026947, -0.39022645354270935, 0.49580103158950806, 0.2837284505367279, -0.7815903425216675, 0.5549963116645813, -0.27989763021469116, 0.19159696996212006, -0.12053362280130386, -0.3206545412540436, -1.0679281949996948, -0.5988660454750061, -0.03156444802880287, -0.4648018777370453, 0.1810326725244522, 0.03721808269619942, -0.3489331603050232, -0.25405168533325195, 0.08521094173192978, 0.31445345282554626, 0.35169631242752075, -0.7760164141654968, 0.08701585233211517, 0.2025853395462036, -0.11361125111579895, -0.09584951400756836, -0.43047189712524414, -0.08730459213256836, -0.4456028938293457, -1.000340223312378, 0.5035052299499512, 0.05282038822770119, -0.5769482851028442, -0.047937169671058655, -0.12020711600780487, -0.1374269425868988, 0.12818287312984467, 0.3657207787036896, 0.007902524434030056, -0.4741726219654083, 0.28936854004859924, 0.414665549993515, 0.07895568758249283, 0.23348069190979004, -0.4590974450111389, 0.6065142154693604, 0.08155456185340881, -0.22126738727092743, -0.7219006419181824, 0.752807080745697, 0.7348424792289734, -0.21519029140472412, 0.2661086320877075, 0.10471384227275848, -0.2005637139081955, -0.3605085611343384, -0.32352063059806824, 0.33002379536628723, -0.49649956822395325, -0.13139434158802032, -0.3503195345401764, -0.6749564409255981, 0.22645986080169678, 0.0595405250787735, -0.19436243176460266, 0.4922541081905365, 0.10813532024621964, -0.26599177718162537, 0.9473040699958801, 0.4892578125, -0.1648871898651123, 0.8352106809616089, -0.37336358428001404, -0.11215316504240036, -0.3074074685573578, -0.37816986441612244, -0.5810415148735046, -0.3066844940185547, -0.3139687776565552, -0.3668341636657715, 0.4831302762031555, -0.030135827139019966, 0.18250919878482819, -0.15259520709514618, -0.36360594630241394, 0.9951200485229492, 0.9393483996391296, -0.002962338039651513, -0.05962895229458809, 0.2783508002758026, -0.6360952854156494, 0.21491268277168274, -0.36845678091049194, 0.03346734493970871, 0.8494988083839417, -0.03923647850751877, 0.3000732362270355, -0.0651298388838768, 1.0468921661376953, 0.12142589688301086, -0.011610838584601879, -1.1475828886032104, 0.38632696866989136, -0.12299566715955734, -0.6566246747970581, -0.47345149517059326, -0.17640197277069092, -0.35273277759552, 0.1487147957086563, -0.046746473759412766, -0.6307106614112854, 0.32535651326179504, -0.23590709269046783, -0.44933661818504333, -0.2075442373752594, -0.6568803191184998, 0.7956777811050415, -0.30574068427085876, -0.4424758553504944, 0.2891227900981903, -0.5961007475852966, 0.3761701285839081, 0.14213253557682037, 0.35741281509399414, -0.12954169511795044, 0.6111346483230591, 0.7301355004310608, -0.6770361065864563, 0.17866529524326324, -0.6257806420326233, 0.10622145235538483, 0.36374497413635254, -0.18164269626140594, 0.27764540910720825, 0.17945526540279388, -0.0256147850304842, -0.22406740486621857, -0.22747711837291718, -0.16174131631851196, -0.6877564191818237, 0.708495020866394, -0.617258608341217, -0.6162263751029968, -0.3448449373245239, -0.2991414964199066, -0.6951866149902344, 0.21291659772396088, 0.6183234453201294, 0.5646860003471375, -0.16564664244651794, 0.35931751132011414, 0.4684288203716278, 0.09813223779201508, 0.8949270844459534, -0.06426405161619186, -0.30070674419403076, -0.8001256585121155, 0.4321281909942627, -0.18330344557762146, -0.07214760035276413, 0.6225167512893677, 0.23055846989154816, -0.7328585982322693, -0.6074058413505554, -0.8376001119613647, 0.209739550948143, -0.6549679040908813, 0.01652429811656475, -0.17568229138851166, 0.016155187040567398, -0.33577343821525574, -0.46852943301200867, -0.0697302520275116, -0.8037376403808594, -0.29054638743400574, -0.71348637342453, 0.206360325217247, 0.5848056077957153, -0.2615796625614166, 0.7656510472297668, -0.48329782485961914, 0.3028489351272583, 0.14720582962036133, 0.3865741193294525, -0.5974950194358826, -0.05162179097533226, -0.1874319463968277, -0.33980026841163635, -0.2443641722202301, -0.9656174778938293, 0.15307332575321198, 0.5996868014335632, 0.4551237225532532, 1.0639185905456543, -0.5472875237464905, 1.2894350290298462, -0.6699979305267334, 0.7971484661102295, 0.29172220826148987, -1.1385831832885742, 0.8675343990325928, -0.44322142004966736, 0.21932028234004974, 0.7384132146835327, 0.13059671223163605, -0.4664990305900574, -0.28243348002433777, -0.21169520914554596, -0.5354080200195312, 0.775188684463501, 0.25731179118156433, -0.17364346981048584, -0.42878860235214233, 0.3507344722747803, 0.16175593435764313, 0.05686667561531067, -0.4789371192455292, -0.2921209931373596, -0.4182431697845459, -0.5056799054145813, -0.35253962874412537, -0.071241594851017, -0.18675461411476135, -0.44841012358665466, 0.4944279193878174, 0.22393764555454254, 0.35295653343200684, 0.3159627318382263, -0.32791823148727417, -0.3582924008369446, 0.24666182696819305, 0.9295258522033691, 0.8935967087745667, 0.028889819979667664, -0.2061012089252472, -0.47847187519073486, -0.12364156544208527, 0.3410373032093048, 0.1110980436205864, -0.36731764674186707, 0.34006789326667786, 0.617987871170044, 0.6925811767578125, 0.10341081768274307, -0.4780416190624237, 0.5607335567474365, -0.0680902898311615, -0.4918384253978729, -0.6449427008628845, 0.32125189900398254, 0.08457766473293304, 0.15101943910121918, 0.23313333094120026, -0.03538162261247635, 0.2049797624349594, -0.35649076104164124, 0.529723584651947, 0.29877322912216187, -0.4757498502731323, -0.2571348547935486, 0.7073546648025513, 0.060249000787734985, -0.3472557067871094, 0.8133509755134583, 0.05023794621229172, -0.3315538167953491, 0.7437744736671448, 0.5973918437957764, 1.2090619802474976, -0.4623020887374878, 0.17644257843494415, 0.13494093716144562, 0.04618357494473457, 0.2308105230331421, 0.6743948459625244, -0.32317832112312317, -0.4758119285106659, -0.5944150686264038, -0.8919249176979065, 0.08957266062498093, 0.0807034894824028, -0.7522059679031372, -0.03312976658344269, -0.684844970703125, 0.05367720499634743, 0.47096285223960876, -0.46350064873695374, -0.4680373966693878, 0.28131797909736633, 0.30520033836364746, 1.0192879438400269, -0.9345763921737671, 0.7127204537391663, 0.6769648790359497, -0.07418344914913177, -0.6207799315452576, -0.1804431527853012, 0.27786821126937866, -0.6273745894432068, 0.5286582112312317, 0.40634819865226746, -0.13661374151706696, -0.29509472846984863, -0.5988301038742065, -0.6300288438796997, 0.8254251480102539, -0.12580659985542297, -0.43584784865379333, -0.20796652138233185, 0.2873990833759308, 0.31335949897766113, -0.6814443469047546, -0.3449086546897888, 0.8395488858222961, 0.45348992943763733, 0.43257054686546326, -0.5987442135810852, -0.4755737781524658, -0.605031430721283, -0.10164932161569595, 0.21206964552402496, -0.2748388648033142, 0.5893813371658325, 0.13941477239131927, -0.1795203685760498, 0.6117501854896545, 0.823280394077301, 0.025584908202290535, 0.6521592140197754, 0.8811845183372498, 0.6342282295227051, 0.8477594256401062, -0.689075767993927, 0.9170240759849548, -0.3437201678752899, 0.2042231261730194, 0.8269582986831665, -0.25067418813705444, 0.506742537021637, 0.628394603729248, -0.2109328806400299, 0.7506510615348816, 0.9698920249938965, -0.052480533719062805, 0.9241544008255005, 0.25566747784614563, -0.345669686794281, -0.3032519519329071, 0.038055434823036194, -0.2645890712738037, 1.003937840461731, 0.5700775384902954, -0.8095730543136597, 0.27168557047843933, 0.15889005362987518, 0.053282465785741806, 0.2936212122440338, -0.3262355923652649, 1.003578543663025, -0.24617540836334229, -1.1778264045715332, 0.4841821789741516, 0.22424514591693878, 0.11306218802928925, -0.36152350902557373, 0.026415983214974403, -0.6687659621238708, 0.05902915820479393, -0.22252397239208221, -0.137522891163826, 0.2989787757396698, -0.08477794378995895, -0.34806275367736816, 0.024772368371486664, 0.2657407522201538, -0.4042126536369324, -0.8114626407623291, -0.011029890738427639, 0.29946285486221313, -0.30005943775177, -0.03987811505794525, -0.10965867340564728, -0.15511192381381989, -0.10486327856779099, 0.16378459334373474, -0.09417125582695007, 0.5482295751571655, 0.08568818867206573, 0.13374964892864227, 0.4999796450138092, -0.0024572305846959352, 0.6173713803291321, 0.14083027839660645, 0.7195589542388916, -1.1120820045471191, -0.8453258275985718, -0.9247119426727295, 0.3054713308811188, -0.1929820030927658, -0.28440120816230774, 0.6381023526191711, 0.856188178062439, 0.9397789239883423, -0.3709358870983124, 0.8344992995262146, 0.010887076146900654, 0.41893401741981506, -0.9080959558486938, 0.15274016559123993, -0.524925947189331, 0.06434955447912216, -0.6291017532348633, -0.7606809139251709, -0.7722488641738892, 0.7487836480140686, -0.36891594529151917, -0.27256131172180176, 0.9362754821777344, 0.6692050099372864, -0.001277106930501759, 0.6060700416564941, 0.14203791320323944, -0.27757391333580017, 0.19093888998031616, 0.536098301410675, 1.2516207695007324, -0.07525374740362167, 0.07679565995931625, -0.7821434736251831, -0.2407301962375641, -0.25220245122909546, -0.459735244512558, -0.7581722736358643, -0.39790382981300354, -0.014184716157615185, -0.06031005084514618, 0.081734798848629, 1.0731576681137085, 0.7220629453659058, -0.9062451124191284, -0.5366661548614502, -0.22423459589481354, 0.6694350838661194, -0.6752473711967468, -0.3129321336746216, 0.3891640603542328, -0.5855233669281006, -1.0180010795593262, 1.2715590000152588, 0.41173601150512695, -0.2592746615409851, 0.08202113956212997, 0.2357865571975708, -0.30628177523612976, 0.03449540585279465, 0.9057679772377014, 0.06648572534322739, -0.7707985639572144, -0.44427162408828735, 0.30492842197418213, 0.41684165596961975, 0.3880055248737335, 0.9483450055122375, -0.3480767011642456, 0.4845517873764038, 0.34552767872810364, 0.44461968541145325, 0.28882360458374023, 0.4429566264152527, 0.4615851044654846, -0.9670156836509705, 0.10782872140407562, 0.05684589967131615, 0.4905010759830475, 0.18114015460014343, -0.24036642909049988, 0.7201288938522339, 0.720082700252533, -0.21516300737857819, -0.7605642676353455, 0.18893638253211975, -1.0016255378723145, -0.16080741584300995, 1.1249860525131226, -0.04030594229698181, -0.5242118239402771, 0.12610064446926117, 0.14670325815677643, -0.15632688999176025, -0.1758064180612564, 0.4787410795688629, 0.9361190795898438, -0.502856433391571, -0.06188380345702171, -0.0697123259305954, 0.6041485667228699, 0.0995427668094635, -0.5027632117271423, -0.38044214248657227, 1.0126147270202637, 0.30108124017715454, 0.3415393531322479, 0.2819516956806183, -0.4202759563922882, 0.47390106320381165, 0.028277849778532982, -0.35669606924057007, -0.19437643885612488, -0.8484981656074524, -0.47670242190361023, 0.8907182216644287, 0.08696325868368149, -0.6944870352745056 ]
http://arxiv.org/abs/2405.18741v2
http://arxiv.org/pdf/2405.18741v2
Genshin: General Shield for Natural Language Processing with Large Language Models
2024-05-29T04:04:05
2024-06-03T08:35:07
Xiao Peng, Tao Liu, Ying Wang
cs.CL
cs.CL, cs.AI
Large language models (LLMs) like ChatGPT, Gemini, or LLaMA have been trending recently, demonstrating considerable advancement and generalizability power in countless domains. However, LLMs create an even bigger black box exacerbating opacity, with interpretability limited to few approaches. The uncertainty and opacity embedded in LLMs' nature restrict their application in high-stakes domains like financial fraud, phishing, etc. Current approaches mainly rely on traditional textual classification with posterior interpretable algorithms, suffering from attackers who may create versatile adversarial samples to break the system's defense, forcing users to make trade-offs between efficiency and robustness. To address this issue, we propose a novel cascading framework called Genshin (General Shield for Natural Language Processing with Large Language Models), utilizing LLMs as defensive one-time plug-ins. Unlike most applications of LLMs that try to transform text into something new or structural, Genshin uses LLMs to recover text to its original state. Genshin aims to combine the generalizability of the LLM, the discrimination of the median model, and the interpretability of the simple model. Our experiments on the task of sentimental analysis and spam detection have shown fatal flaws of the current median models and exhilarating results on LLMs' recovery ability, demonstrating that Genshin is both effective and efficient. In our ablation study, we unearth several intriguing observations. Utilizing the LLM defender, a tool derived from the 4th paradigm, we have reproduced BERT's 15% optimal mask rate results in the 3rd paradigm of NLP. Additionally, when employing the LLM as a potential adversarial tool, attackers are capable of executing effective attacks that are nearly semantically lossless.
[ -0.268140584230423, -1.0855802297592163, 0.3785165548324585, 0.0889647826552391, -0.2901499569416046, 0.40230023860931396, -0.2109699249267578, -0.5758550763130188, 0.1555182784795761, 0.669029951095581, -0.5330911874771118, -0.8394919633865356, -0.6544011831283569, -0.007153134793043137, -0.7190707921981812, 1.0867398977279663, 0.3014305531978607, -0.25405099987983704, 0.0865977555513382, 0.13199442625045776, -0.19789241254329681, -0.49272021651268005, -0.8953577280044556, -0.3479119837284088, 0.1500060260295868, 0.1982245296239853, 0.7581266164779663, 0.43014615774154663, 0.5709406137466431, 0.3740628957748413, 0.010304934345185757, -0.07422946393489838, -0.315509557723999, 0.430081307888031, -0.18787133693695068, -0.612534761428833, -0.49942341446876526, 0.09543456137180328, 0.5400055646896362, 0.3149612247943878, -0.2457951456308365, -0.25924500823020935, -0.0019779701251536608, 0.4900839924812317, -0.5593089461326599, -0.22813183069229126, -1.0213762521743774, 0.14965307712554932, -0.4647511839866638, -0.017711445689201355, -0.4378277659416199, -0.0875210165977478, 0.07638172060251236, -0.43574169278144836, 0.43578967452049255, 0.19525977969169617, 0.7391626834869385, 0.1330193281173706, 0.04320704564452171, -0.14035747945308685, -0.5634320378303528, 0.7746281027793884, -0.7941456437110901, 0.004161744378507137, 0.4944702088832855, 0.4675414562225342, -0.35243380069732666, -0.6485954523086548, -0.4046791195869446, -0.10244360566139221, 0.022815393283963203, 0.13431692123413086, -0.6926535367965698, 0.35727861523628235, 0.19607701897621155, 0.47691234946250916, -0.6673966646194458, 0.4997294247150421, -0.1276697814464569, -0.4068959057331085, 0.5333574414253235, 0.22999072074890137, 0.6736211180686951, -0.18901371955871582, -0.5411447882652283, 0.14245052635669708, -0.6897420883178711, -0.12542514503002167, 0.5129513144493103, 0.03892313316464424, -0.07424139231443405, 0.33226168155670166, -0.3544960916042328, 0.5756778717041016, -0.017901334911584854, -0.28916871547698975, -0.22424401342868805, -0.1566331833600998, -0.4967942237854004, 0.07477504760026932, 1.026179552078247, 0.15148401260375977, 0.21920065581798553, -0.30168551206588745, -0.00043233236647211015, 0.23971468210220337, 0.3931226432323456, -0.8948702216148376, -0.22960324585437775, 0.10176217555999756, -0.4035946726799011, -0.7473099231719971, 0.03276320919394493, -1.2143135070800781, -0.403065025806427, 0.2198100984096527, 0.16163986921310425, -0.42330697178840637, -0.0435260534286499, 0.348287969827652, -0.02409442886710167, 0.23008176684379578, 0.15430623292922974, -1.0597760677337646, 0.5264763236045837, 0.867792546749115, 1.0602807998657227, -0.02320864051580429, 0.014447839930653572, -0.7138344645500183, 0.05397966504096985, -0.17160551249980927, 0.7900524139404297, -0.6521261930465698, -0.26287761330604553, 0.07155043631792068, -0.2199307382106781, 0.05770152434706688, -0.2658243477344513, 0.6880735754966736, -0.6153118014335632, 0.14724622666835785, 0.3881194293498993, -0.3677257001399994, -0.12923960387706757, 0.19441072642803192, -0.7747164964675903, 0.710562527179718, -0.1431027352809906, -0.8230997920036316, 0.09488032013177872, -0.4464452266693115, -0.5539616346359253, 0.24049212038516998, 0.10405004769563675, -0.6371813416481018, 0.12384027987718582, 0.23232537508010864, 0.6701115965843201, -0.5422883033752441, 0.3145250380039215, -0.5896872282028198, -0.19225546717643738, 0.34079504013061523, -0.7419449090957642, 0.6150594353675842, 0.30708548426628113, -0.36584118008613586, 0.09166658669710159, -0.7378557920455933, -0.30926865339279175, 0.1756511628627777, -0.18378251791000366, -0.4755108654499054, 0.07473883032798767, -0.3369140923023224, 0.010842672549188137, 0.07931830734014511, -0.7238525152206421, 0.07505196332931519, -0.719192385673523, 0.6478274464607239, 0.8406757116317749, -0.1576230525970459, 0.6399939656257629, -0.14072993397712708, 0.6458073854446411, -0.293312132358551, 0.14958937466144562, -0.12715233862400055, -0.5738961100578308, -0.7228299379348755, -0.5809562802314758, 0.034182898700237274, 0.5048372149467468, -0.8213344812393188, 0.5391862392425537, -0.026286248117685318, -0.37221765518188477, -0.7345600724220276, 0.4104558527469635, 0.2639537453651428, 0.42739883065223694, 0.33524012565612793, -0.13301391899585724, -0.550089418888092, -1.014801263809204, -0.24626342952251434, -0.10624697804450989, -0.1738893687725067, -0.2812401056289673, 0.3596694767475128, -0.1955397129058838, 0.9152092933654785, -0.5036373138427734, -0.39421236515045166, -0.5275707244873047, 0.22030504047870636, 0.2393856644630432, 0.21843737363815308, 0.4162066578865051, -0.7021406888961792, -0.3211371600627899, -0.06493350118398666, -0.5908567905426025, -0.4797589182853699, -0.11197008937597275, -0.28043293952941895, 0.14330147206783295, 0.4807097613811493, -0.7134260535240173, 0.448408842086792, 0.5314635634422302, -0.2264440655708313, 0.5767579674720764, 0.016499442979693413, -0.07830040156841278, -1.1409434080123901, 0.13604171574115753, 0.11229878664016724, -0.33826950192451477, -1.149496078491211, 0.09116210788488388, -0.12886525690555573, 0.04238439351320267, -0.15155793726444244, 0.6970161199569702, -0.08072268962860107, 0.1524580717086792, -0.5090957283973694, 0.1794644296169281, 0.1538478434085846, 0.25135013461112976, -0.16204100847244263, 0.5498445630073547, 0.3607902526855469, -0.4211219549179077, 0.5417797565460205, 0.14975668489933014, -0.4240194857120514, 0.9481809735298157, -0.7800409197807312, 0.02093316614627838, -0.11391215026378632, 0.30434146523475647, -0.8584161996841431, -0.35564640164375305, 0.4579063355922699, -0.4263434112071991, 0.41342395544052124, -0.09500496089458466, -0.4446815550327301, -0.40818387269973755, -0.5600066781044006, 0.0348583422601223, 0.522225558757782, -0.6155461072921753, 0.7072301506996155, 0.22752970457077026, -0.35690709948539734, -0.7411978244781494, -0.7097623944282532, 0.35813605785369873, -0.4554450809955597, -0.6460851430892944, 0.5145175457000732, -0.07812326401472092, -0.421394944190979, -0.0576145313680172, -0.05967134237289429, -0.033292338252067566, 0.568990170955658, 0.24218305945396423, 0.6485487818717957, 0.053234897553920746, 0.10403729230165482, -0.09087110310792923, -0.2547803521156311, 0.07853790372610092, -0.2973025441169739, 0.6321110129356384, -0.07296405732631683, -0.3349173069000244, -0.22081907093524933, 0.30638954043388367, 0.44563353061676025, -0.1610315591096878, 0.7652035355567932, 0.7325683832168579, -0.4278765320777893, -0.47110506892204285, -0.7786142826080322, 0.026029596105217934, -0.5125784277915955, 0.3292602598667145, -0.20611588656902313, -1.039568305015564, 0.44648730754852295, 0.3363979458808899, 0.12314052134752274, 0.5364165902137756, 0.46095094084739685, 0.1400103121995926, 1.0024722814559937, 0.5409298539161682, -0.6666269302368164, 0.34706297516822815, -0.0033442280255258083, 0.36588430404663086, -0.8986620306968689, -0.2575840353965759, -0.7184711694717407, -0.20665399730205536, -0.2810567617416382, -0.03673827275633812, 0.07594405114650726, 0.24591344594955444, -0.16718539595603943, 0.346164345741272, -0.48100975155830383, 0.5059503316879272, 0.4460010528564453, -0.052390843629837036, 0.5333752632141113, 0.09198544174432755, -0.065512515604496, 0.09279423207044601, -0.4776827096939087, -0.45573827624320984, 0.9536567330360413, 0.4938230812549591, 1.0518831014633179, 0.08663380891084671, 0.48385968804359436, 0.25628823041915894, 0.5386213660240173, -0.6119163632392883, 0.6601125597953796, -0.4757903218269348, -0.5689670443534851, -0.13907890021800995, -0.5585180521011353, -1.007755160331726, 0.48456302285194397, -0.31087034940719604, -0.9416911005973816, -0.3177635371685028, -0.1697583645582199, -0.3796813189983368, 0.6684900522232056, -0.2742917239665985, 0.5335671305656433, -0.13231639564037323, -0.32752901315689087, -0.18615993857383728, -0.5708988308906555, 0.7647360563278198, -0.22817488014698029, 0.2974533140659332, -0.31509608030319214, 0.07538966089487076, 0.6940006613731384, -0.204070046544075, 1.033972978591919, 0.09761509299278259, -0.05378585681319237, 0.05094305798411369, 0.1955554187297821, 0.4748426079750061, 0.0767284408211708, 0.03308543935418129, 0.08477161824703217, -0.34638452529907227, -0.285124808549881, -0.6504238843917847, 0.7442387938499451, -0.4183676242828369, -0.8458019495010376, -0.436637282371521, -0.4416293501853943, 0.05374010279774666, 0.12969675660133362, 0.2967355251312256, 0.3524550795555115, -0.42191028594970703, 0.272502601146698, 0.8068602085113525, -0.347219318151474, 0.5052979588508606, 0.6350269317626953, -0.21486173570156097, -0.5595946311950684, 0.5642804503440857, -0.3032835125923157, 0.5324190258979797, 0.4030407667160034, 0.12484242022037506, -0.15375012159347534, -0.674484372138977, -0.2141772210597992, 0.13177171349525452, -0.6102132201194763, -0.5515093803405762, -0.7507277727127075, -0.44193026423454285, -0.3659399151802063, -0.4168359339237213, -0.026680471375584602, -0.18209047615528107, -0.27254194021224976, -0.05367908254265785, 0.3433483839035034, 0.5952023863792419, 0.03332594409584999, 0.4587940275669098, -0.54911208152771, 0.4186115264892578, 0.35714852809906006, 0.28298261761665344, -0.03197212144732475, -0.47752147912979126, -0.06624788045883179, -0.010548515245318413, -0.17963899672031403, -0.6689526438713074, 0.6903768181800842, 0.23341546952724457, 0.5334014296531677, 0.5404642820358276, 0.10005780309438705, 0.34989652037620544, -0.32717499136924744, 0.5829011797904968, 0.33750253915786743, -0.8066561818122864, 0.3611987829208374, -0.18735109269618988, 0.27888724207878113, 0.49235397577285767, 0.11198065429925919, -0.5980420112609863, -0.6815661787986755, -0.6439651846885681, -0.6903719305992126, 0.45341670513153076, 0.07172302901744843, 0.13196231424808502, -0.013713294640183449, 0.13424158096313477, 0.0009348357561975718, 0.1998538076877594, -0.6726812124252319, 0.13248731195926666, -0.08016891777515411, -0.4244406819343567, -0.12380097806453705, -0.2682088315486908, -0.13390840590000153, 0.22855234146118164, 0.6756051778793335, -0.15324614942073822, 0.14815771579742432, 0.14277654886245728, -0.19146600365638733, 0.13806042075157166, 0.6355457901954651, 0.32875004410743713, -0.2605861723423004, -0.07910879701375961, 0.48029622435569763, 0.1356457769870758, -0.516501247882843, 0.1598653942346573, 0.1575644165277481, -0.2911110818386078, -0.25886374711990356, 0.554118812084198, 0.6408834457397461, 0.44978687167167664, -0.45637044310569763, 0.5700556635856628, 0.08375802636146545, -0.18338324129581451, -0.09385805577039719, 0.16346050798892975, -0.11035379767417908, 0.14776207506656647, 0.3317989110946655, 0.01663682982325554, 0.12848536670207977, -0.5787547826766968, 0.08829256147146225, 0.9066137671470642, -0.11880311369895935, -0.3570702373981476, 0.7087079286575317, 0.09498520940542221, -0.16800560057163239, 0.550025463104248, -0.021201375871896744, -0.8986297249794006, 0.41787752509117126, 0.6424973011016846, 1.2232996225357056, -0.3764583468437195, 0.40708380937576294, 0.03911541402339935, 0.4572553336620331, -0.1607704609632492, -0.404062956571579, 0.083485446870327, -0.7500120997428894, -0.45783543586730957, -0.9871692657470703, -0.2455923706293106, 0.27256348729133606, -0.37067553400993347, 0.08066006749868393, -0.698102593421936, -0.08793848007917404, 0.06531958281993866, -0.018459666520357132, -0.4840840697288513, -0.10062499344348907, 0.03373999893665314, 0.865994393825531, -0.6928154230117798, 0.7345999479293823, 0.09283794462680817, -0.2176206409931183, -0.23316633701324463, -0.14220969378948212, 0.29139408469200134, -0.7628969550132751, 0.3997810482978821, 0.3291236460208893, -0.13207602500915527, -0.22933264076709747, -0.7219828963279724, -0.6307166218757629, 0.9499072432518005, 0.22204160690307617, -0.4185916781425476, -0.0911218598484993, 0.11844852566719055, 0.6057607531547546, -0.4010707139968872, 0.053131621330976486, 0.895601749420166, 0.46011868119239807, 0.08342894166707993, -0.5619617104530334, 0.1432095617055893, -0.3653120994567871, -0.04512612894177437, 0.32469305396080017, -0.4493219256401062, 0.6493092179298401, 0.15496070683002472, -0.4441896677017212, 0.4566883146762848, 0.4404771625995636, 0.06375004351139069, 0.19287236034870148, 0.1709296703338623, 0.8283261060714722, 0.6181652545928955, -0.25234276056289673, 1.1477899551391602, 0.04582875594496727, -0.018272830173373222, 0.7546440362930298, -0.28092867136001587, 0.6745335459709167, 0.06397214531898499, -0.11000102758407593, 0.5683675408363342, 0.10102012008428574, -0.21373458206653595, 0.39799854159355164, 0.29874125123023987, -0.5034008622169495, -0.14467597007751465, -0.11689174175262451, -0.0053194682113826275, 0.2996457517147064, 0.40887027978897095, -0.18976347148418427, -0.3025895059108734, 0.15583455562591553, 0.48309290409088135, 0.1096348911523819, -0.36029067635536194, 0.7200698256492615, 0.2403992861509323, -0.5115105509757996, 0.21973229944705963, 0.2838112711906433, 1.0424293279647827, -0.9424476623535156, 0.19880086183547974, -0.2020440697669983, 0.1826910674571991, -0.26432275772094727, -0.6489704847335815, 0.2461230307817459, 0.20731611549854279, -0.027606582269072533, -0.03520206734538078, 1.3241629600524902, -0.4330560564994812, -0.3753699064254761, 0.32477253675460815, -0.03467138856649399, -0.19025376439094543, -0.07235103100538254, -0.5217861533164978, 0.15464715659618378, -0.13197308778762817, -0.2572999894618988, 0.52805495262146, -0.02724413387477398, 0.13101142644882202, 0.9419785141944885, 0.8909170627593994, 0.2730065882205963, -0.12127402424812317, 0.05061103403568268, 0.6740553379058838, -0.4426056742668152, -0.42154428362846375, -1.2054206132888794, 0.2302400767803192, -0.4326712191104889, 0.01101989857852459, 0.7973791360855103, 0.2448069304227829, 0.461631178855896, 0.36512747406959534, 0.8903191685676575, 0.21122099459171295, 0.3535216450691223, -0.8538190126419067, 0.7004006505012512, -0.11549024283885956, 0.41887328028678894, -0.4030108153820038, -0.8833585381507874, -0.6298752427101135, 0.5873917937278748, -0.35704442858695984, -0.20089849829673767, 0.6083894968032837, 0.6261389851570129, 0.23467028141021729, 0.27744579315185547, 0.3986247479915619, 0.1962825059890747, 0.626583456993103, 0.7861930131912231, 0.726980447769165, -0.10430743545293808, 0.5099335312843323, -0.09933022409677505, -0.404203325510025, -0.23203125596046448, -0.7610734105110168, -1.1709136962890625, -0.19310809671878815, 0.07892673462629318, -0.287340372800827, 0.15244804322719574, 0.6653516888618469, 0.4823105037212372, -0.5632030963897705, 0.11937858164310455, -0.069659024477005, 0.10658040642738342, 0.16155685484409332, -0.25832608342170715, 0.13510404527187347, -0.4750397503376007, -0.5727383494377136, 0.5848362445831299, 0.6285375952720642, 0.14935548603534698, -0.5028225779533386, 0.07902777194976807, -0.07977534830570221, 0.23009194433689117, 0.5087518095970154, 0.26545771956443787, -0.6439906358718872, -0.2834499478340149, -0.06507101655006409, -0.17510640621185303, -0.15638650953769684, 0.6883317232131958, -0.6279249787330627, 0.4015156924724579, 0.4189262390136719, 0.8995922207832336, 0.29346764087677, 0.03619111701846123, 0.663686215877533, -0.5187707543373108, 0.01352183148264885, 0.1251973658800125, 0.5032557249069214, 0.36262747645378113, -0.30010294914245605, 0.5312331318855286, 0.23140865564346313, -0.5051468014717102, -0.6821616291999817, 0.3664223551750183, -0.6768938899040222, -0.4256835877895355, 1.057584524154663, -0.06418731808662415, -0.219103142619133, -0.21545466780662537, -0.15738236904144287, -0.035712920129299164, -0.3234819769859314, 0.726418673992157, 0.8645321726799011, 0.47673147916793823, 0.026160309091210365, -0.6533992290496826, 0.5390366315841675, 0.38399064540863037, -0.9872656464576721, 0.004495424684137106, 0.33365747332572937, 0.2248186469078064, 0.08103271573781967, 0.5345475077629089, -0.1883085072040558, 0.10411551594734192, -0.1605825126171112, -0.12425412982702255, -0.0761067271232605, -0.42132580280303955, -0.5905369520187378, 0.3466993272304535, -0.21923388540744781, 0.16479778289794922 ]
http://arxiv.org/abs/2405.18740v1
http://arxiv.org/pdf/2405.18740v1
Reverse Image Retrieval Cues Parametric Memory in Multimodal LLMs
2024-05-29T04:00:41
2024-05-29T04:00:41
Jialiang Xu, Michael Moor, Jure Leskovec
cs.CL
cs.CL
Despite impressive advances in recent multimodal large language models (MLLMs), state-of-the-art models such as from the GPT-4 suite still struggle with knowledge-intensive tasks. To address this, we consider Reverse Image Retrieval (RIR) augmented generation, a simple yet effective strategy to augment MLLMs with web-scale reverse image search results. RIR robustly improves knowledge-intensive visual question answering (VQA) of GPT-4V by 37-43%, GPT-4 Turbo by 25-27%, and GPT-4o by 18-20% in terms of open-ended VQA evaluation metrics. To our surprise, we discover that RIR helps the model to better access its own world knowledge. Concretely, our experiments suggest that RIR augmentation helps by providing further visual and textual cues without necessarily containing the direct answer to a query. In addition, we elucidate cases in which RIR can hurt performance and conduct a human evaluation. Finally, we find that the overall advantage of using RIR makes it difficult for an agent that can choose to use RIR to perform better than an approach where RIR is the default setting.
[ -0.5066270232200623, -0.567524254322052, 0.6839194297790527, -0.074137382209301, -0.3972364664077759, -0.1006343811750412, -0.05820579081773758, -0.47562873363494873, -0.19148840010166168, 0.6759652495384216, -0.3987623453140259, -0.29596537351608276, -0.4044593274593353, 0.028679246082901955, -0.18370084464550018, 0.9928500652313232, 0.07634036988019943, 0.23513637483119965, -0.45680123567581177, -0.33621832728385925, -0.49846866726875305, -0.5331993103027344, -0.6821866035461426, -0.22363914549350739, 0.8893079161643982, 0.21815206110477448, 0.9042161107063293, 0.5484218001365662, 0.7972047328948975, 0.3234501779079437, 0.39281854033470154, 0.5244039297103882, -0.6108313202857971, 0.3763362467288971, -0.24616040289402008, -0.5706082582473755, -0.09009122848510742, -0.22154827415943146, 0.5580447316169739, 0.06672809273004532, 0.08274590224027634, 0.2350590080022812, -0.16334277391433716, 0.8639873266220093, -0.8445017337799072, -0.026470914483070374, -0.7884225845336914, -0.021657951176166534, -0.14576715230941772, -0.6887823343276978, -0.2703762650489807, -0.1468370407819748, 0.28372302651405334, -0.6569519639015198, 0.352019339799881, 0.15265047550201416, 0.9653747081756592, 0.29963886737823486, -0.32334238290786743, -0.12524797022342682, -0.7223581075668335, 0.8441261053085327, -0.45692065358161926, 0.7465753555297852, 0.3491857945919037, 0.4531002342700958, -0.02915915660560131, -0.9352408051490784, -0.5570948719978333, -0.2702854573726654, -0.0009220587671734393, 0.12929591536521912, -0.08328918367624283, 0.061215803027153015, 0.30695825815200806, 0.27390536665916443, -0.508920431137085, -0.1311223953962326, -0.4994843602180481, -0.380240797996521, 0.3709641098976135, 0.41286590695381165, 0.4243095815181732, 0.05109180137515068, -0.4639874994754791, -0.23476849496364594, -0.8803645968437195, -0.07242962718009949, 0.25105521082878113, 0.19783340394496918, 0.2987278699874878, 0.8026186227798462, -0.012463290244340897, 0.7977468967437744, 0.04341566190123558, -0.24808433651924133, 0.1178700402379036, -0.49742355942726135, 0.06851447373628616, -0.524329423904419, 0.5550744533538818, 0.7657738327980042, 0.2594781517982483, -0.165787935256958, -0.5573151707649231, -0.16732539236545563, 0.24148981273174286, -0.9212955236434937, -0.23557326197624207, -0.29414060711860657, -0.3643913269042969, 0.1611941158771515, 0.01699562929570675, -0.7679998874664307, -0.4693956673145294, -0.2167302370071411, 0.8137256503105164, -0.4778617024421692, 0.09637763351202011, -0.06091289222240448, -0.4306505620479584, 0.6495151519775391, 0.5337405800819397, -0.4886288642883301, 0.09522391110658646, 0.3123677670955658, 0.6997635364532471, -0.03889043629169464, -0.31815105676651, -0.6525285243988037, 0.06771670281887054, -0.235353022813797, 0.9912362694740295, -0.7814140319824219, -0.3418683409690857, -0.22076034545898438, -0.0275106243789196, 0.06524890661239624, -0.6775937080383301, 0.2509670555591583, -1.0833556652069092, 0.4665279984474182, -0.6368685960769653, -0.059554148465394974, -0.2387465089559555, 0.4553931653499603, -0.8021894693374634, 0.8713980913162231, -0.19495253264904022, -0.9237509369850159, 0.4506432116031647, -0.3738335072994232, -0.1599402129650116, 0.0011331107234582305, -0.4999305307865143, -0.42254170775413513, -0.04380283132195473, 0.7221888303756714, 0.3025822639465332, -0.3790736794471741, -0.05053615942597389, -0.37339064478874207, -0.3870824873447418, 0.41719144582748413, -0.6528222560882568, 0.1697150319814682, 0.22894687950611115, -0.12436852604150772, -0.008248620666563511, -0.41809096932411194, -0.04400249943137169, 0.2927533686161041, -0.47807931900024414, -0.4902217984199524, -0.293910413980484, -0.06820841878652573, 0.19004365801811218, 0.3399902582168579, -0.4727483093738556, -0.0005554631934501231, -0.05171443894505501, 0.18002398312091827, 0.7493888735771179, 0.27513155341148376, 0.48272904753685, -0.44390571117401123, 0.6064230799674988, 0.18306639790534973, -0.010797453112900257, -0.33710137009620667, -0.5095987319946289, -0.71540766954422, -0.42058923840522766, 0.11802370846271515, 0.5269760489463806, -1.2973995208740234, -0.382879376411438, -0.1837388277053833, -0.253511905670166, -0.8448866009712219, 0.3212270736694336, 0.62779700756073, 0.7469445466995239, 0.5150966644287109, -0.2984115779399872, -0.5279768109321594, -1.2319172620773315, -0.4296415448188782, -0.01971074566245079, 0.10250493884086609, 0.6534590721130371, 0.3067625164985657, -0.08726474642753601, 0.8028380274772644, -0.4936065673828125, -0.17726410925388336, -0.16831348836421967, 0.24407605826854706, -0.11531101167201996, 0.1727854609489441, 0.23634712398052216, -1.2032707929611206, -0.3037029206752777, -0.19623367488384247, -0.6987081170082092, 0.1924770623445511, -0.3102169930934906, -0.11248724162578583, 0.23286445438861847, 0.33999061584472656, -0.8540974259376526, 0.45460984110832214, 0.05006099119782448, 0.07496847957372665, 0.469272643327713, -0.48240816593170166, 0.4877651035785675, -0.8077234029769897, 0.013215375132858753, 0.18916897475719452, -0.3297378122806549, -0.3255749046802521, 0.15014886856079102, 0.14984336495399475, -0.021945951506495476, -0.4910529553890228, 0.6924226880073547, -0.7607144713401794, -0.3364531397819519, -0.21598972380161285, 0.2290676385164261, 0.31758829951286316, 0.27727118134498596, 0.1586419939994812, 1.3472076654434204, 0.4328615069389343, -0.5168430209159851, 0.30529308319091797, 0.048190128058195114, -0.19520607590675354, 0.4218757450580597, -0.4628661870956421, 0.4580748379230499, -0.6708003878593445, 0.19997291266918182, -1.2147283554077148, -0.17518854141235352, 0.04999539628624916, -0.49764537811279297, 0.50775146484375, -0.02489793486893177, -0.4806794226169586, -0.36723658442497253, -0.48895522952079773, 0.5505884885787964, 0.4827166795730591, -0.7242620587348938, 0.5985105633735657, 0.2364274114370346, -0.028674833476543427, -0.91539466381073, -0.6686042547225952, 0.21651627123355865, -0.42498984932899475, -0.48116791248321533, 0.170429527759552, 0.0918935239315033, -0.17122288048267365, 0.15569397807121277, 0.009520131163299084, -0.11082721501588821, -0.3234623968601227, 0.04862115532159805, 0.3858039081096649, -0.29242464900016785, 0.18375836312770844, -0.24361221492290497, 0.08393032103776932, -0.0762205570936203, -0.09306145459413528, 0.38010749220848083, -0.3799995481967926, -0.48400160670280457, -0.37392401695251465, 0.16557620465755463, 0.6336222887039185, -0.39873749017715454, 0.5327715277671814, 0.9652144312858582, -0.12399747967720032, 0.19074110686779022, -0.87394779920578, -0.36870276927948, -0.4902702867984772, 0.4291021525859833, -0.5322290062904358, -0.7767127752304077, 0.4752956032752991, 0.10524669289588928, -0.2520380914211273, 0.13167552649974823, 0.53465336561203, -0.22993884980678558, 1.1807082891464233, 0.4040529131889343, 0.10926372557878494, 0.5071911811828613, -0.23481853306293488, -0.005511701572686434, -1.045885443687439, -0.36763787269592285, -0.10894783586263657, -0.35807839035987854, -0.5293112993240356, -0.5532624125480652, 0.6409252882003784, -0.0027943800669163465, -0.13134846091270447, 0.14952869713306427, -0.2976055145263672, 0.5913611650466919, 0.7280637621879578, 0.6418443322181702, 0.3471713960170746, 0.04726308584213257, -0.07639393955469131, -0.316162109375, -0.7054238319396973, -0.3131275177001953, 1.1687084436416626, 0.22595565021038055, 1.20051908493042, 0.06794535368680954, 0.7193658947944641, -0.04328529164195061, 0.3351164758205414, -0.5693755149841309, 0.7350602149963379, 0.08853158354759216, -0.6949793100357056, -0.3007696866989136, -0.29054006934165955, -0.9127179980278015, 0.3235810101032257, -0.1701073795557022, -0.3474290072917938, 0.1366487443447113, 0.3305278718471527, -0.39571624994277954, 0.25326111912727356, -0.6342935562133789, 0.43836459517478943, -0.5163174271583557, -0.7051646709442139, -0.12684446573257446, -0.7800617218017578, 0.3767404854297638, -0.01652589440345764, 0.029306253418326378, 0.32047170400619507, -0.5018189549446106, 0.3912622928619385, -0.0031501681078225374, 0.8459495306015015, -0.45169758796691895, 0.1313319355249405, 0.36096253991127014, -0.06504683196544647, 0.6304267644882202, 0.004754174500703812, 0.1537918746471405, -0.2182723879814148, -0.17008918523788452, -0.2640221118927002, -1.0133850574493408, 0.8337622880935669, -0.7795906066894531, -0.9904962778091431, -0.013782846741378307, -0.7476035356521606, -0.28011196851730347, 0.055220555514097214, 0.39954036474227905, 0.4860319495201111, 0.16956232488155365, 0.34419944882392883, 0.864371120929718, -0.5642763376235962, 0.2183556854724884, 0.41258376836776733, -0.3060525357723236, -0.6852477192878723, 1.0041574239730835, 0.13769428431987762, 0.31564444303512573, 0.6118186116218567, 0.10273723304271698, -0.7232136130332947, -0.494957834482193, -0.6458144783973694, 0.3356594145298004, -0.8941004872322083, -0.4182695746421814, -0.6814948916435242, 0.07029543071985245, -0.2551719844341278, 0.1291113793849945, -0.1741083860397339, -0.3970116674900055, -0.37487128376960754, -0.1338190883398056, 0.40416422486305237, 0.4018520414829254, -0.18883246183395386, 0.006703447550535202, -0.8538209795951843, 0.5764641761779785, 0.6078108549118042, 0.112395279109478, -0.03547748178243637, -0.5962497591972351, -0.05853074789047241, 0.003638534341007471, -0.3655535578727722, -0.7486218810081482, 0.45830589532852173, 0.31298187375068665, 0.7328106164932251, 0.17842918634414673, -0.07734569907188416, 1.1818240880966187, -0.5766763091087341, 0.7643373608589172, 0.08592244982719421, -0.22914192080497742, 0.35912030935287476, -0.30937981605529785, 0.2112204134464264, 0.5117273926734924, 0.5021810531616211, -0.12033399194478989, -0.2789696455001831, -0.27963125705718994, -0.9535306692123413, 0.22547350823879242, -0.1734657883644104, 0.44827285408973694, -0.16119346022605896, 0.41517817974090576, 0.13085994124412537, 0.1649521291255951, -0.9347728490829468, -0.06984281539916992, -0.287657231092453, 0.05999969318509102, 0.1473555564880371, -0.26318949460983276, -0.17637039721012115, -0.1984751969575882, 0.5071384906768799, 0.01648504100739956, 0.3460494875907898, 0.6018373370170593, -0.332095205783844, -0.10373598337173462, 0.3105379641056061, 0.6135908961296082, 0.5854053497314453, -0.29219236969947815, 0.4001678228378296, 0.1376534402370453, -0.32999807596206665, -0.006284360773861408, 0.027731746435165405, -0.05978894606232643, -0.24814562499523163, 0.3691079318523407, 0.769116997718811, 0.017539000138640404, -0.8551750183105469, 0.5339189767837524, -0.08168380707502365, -0.06482750177383423, -0.13943924009799957, -0.07637211680412292, -0.010687551461160183, 0.5727572441101074, 0.6601030826568604, -0.012660440057516098, 0.34931260347366333, -0.44386523962020874, 0.3761923313140869, 0.8112298846244812, -0.381440669298172, -0.25381091237068176, 0.5834701061248779, -0.11732464283704758, -0.08129224926233292, 0.7793280482292175, -0.018884778022766113, -0.3666619658470154, 0.39314955472946167, 0.8207769393920898, 0.6687835454940796, 0.05708694085478783, -0.003911627922207117, 0.1477881222963333, 0.35994401574134827, 0.0013677786337211728, 0.4676392376422882, -0.06075518578290939, -0.880958080291748, -0.4851531386375427, -0.3397461175918579, -0.19122733175754547, 0.3808172345161438, -0.6179542541503906, 0.04872094839811325, -0.3022817373275757, -0.30667421221733093, -0.3617478311061859, -0.39394885301589966, -0.8942375183105469, 0.2058587223291397, 0.23533318936824799, 0.7008844017982483, -0.5735803246498108, 0.7990515828132629, 0.9067394733428955, -0.6386408805847168, -0.6204251050949097, -0.010433739051222801, -0.15064296126365662, -1.1240451335906982, 1.169355869293213, 0.15047596395015717, -0.382323682308197, 0.1800452470779419, -0.6278574466705322, -0.7697238922119141, 1.3370829820632935, 0.3868732154369354, -0.35134410858154297, -0.15894077718257904, 0.051015112549066544, 0.6025192737579346, -0.35645991563796997, 0.33305931091308594, 0.11303205788135529, 0.5155861973762512, 0.2240118533372879, -0.7166965007781982, 0.12711866199970245, -0.11861559748649597, 0.24513694643974304, 0.22832313179969788, -0.4179714322090149, 0.8811523914337158, -0.7540574669837952, -0.3982831537723541, 0.2680959403514862, 0.5498329401016235, 0.5011618733406067, 0.4870375394821167, 0.433145672082901, 0.7924622297286987, 0.35448017716407776, 0.33171597123146057, 1.1667629480361938, -0.13141751289367676, 0.01767425239086151, 1.1443278789520264, -0.15782712399959564, 0.784676194190979, 0.8752118945121765, 0.07343217730522156, 0.26613178849220276, 0.5075849294662476, 0.16503214836120605, 0.879240870475769, -0.13221102952957153, -0.3307877779006958, -0.49436554312705994, -0.11672939360141754, -0.4231794476509094, 0.2452651560306549, 0.37132102251052856, -0.5057589411735535, -0.5270078778266907, 0.2560969889163971, -0.2903088629245758, 0.1659397929906845, -0.31358885765075684, 0.7852132320404053, 0.11306200921535492, -0.5283483862876892, 0.5677299499511719, -0.3509737551212311, 0.6107364892959595, -0.2894233763217926, -0.3743228018283844, -0.33692467212677, 0.15536704659461975, -0.09479255229234695, -0.8408946394920349, 0.07506042718887329, -0.18812216818332672, -0.1260204315185547, -0.005171879660338163, 1.0909466743469238, -0.42572447657585144, -0.39738669991493225, 0.18848523497581482, 0.7291375398635864, 0.1014740914106369, -0.19226200878620148, -0.8634255528450012, -0.10668240487575531, 0.010051804594695568, -0.4048061966896057, 0.5461174249649048, 0.5522346496582031, -0.2432185858488083, 1.0058504343032837, 0.7429980039596558, -0.03429543226957321, 0.18283122777938843, -0.030094655230641365, 1.2026920318603516, -0.7803288698196411, 0.1281799077987671, -0.816292405128479, 0.39109835028648376, 0.09617656469345093, 0.01557026244699955, 0.8580719828605652, 0.6003071665763855, 0.7355478405952454, -0.2508430480957031, 0.8285351395606995, 0.23370693624019623, 0.3553939163684845, -0.6167823076248169, 0.32567399740219116, -0.6854158639907837, 0.3855918049812317, -0.14691978693008423, -0.8224115967750549, -0.3574551045894623, 0.3352457582950592, -0.7681657671928406, -0.021382061764597893, 0.3055381774902344, 1.36208975315094, -0.15077590942382812, -0.33969923853874207, 0.5632665753364563, -0.09551072865724564, 0.19161145389080048, 0.33612847328186035, 1.3806122541427612, -0.31511130928993225, 0.8552477955818176, -0.1504875123500824, -0.038179583847522736, 0.0034298261161893606, -0.7441314458847046, -0.7398970127105713, -0.5648513436317444, -0.018188832327723503, -0.2348516881465912, 0.23107385635375977, 0.6805830597877502, 0.5766662359237671, -0.36151883006095886, 0.09223005175590515, 0.12411133199930191, -0.11983675509691238, 0.057473741471767426, -0.24317923188209534, 0.0951775312423706, -0.49118462204933167, -0.460541695356369, 0.3559297025203705, 0.36015504598617554, 0.018484191969037056, -0.302077054977417, -0.17832383513450623, -0.26088905334472656, -0.09602176398038864, 0.5531737804412842, 0.3416483402252197, -0.7692810893058777, -0.4075469672679901, 0.18583932518959045, -0.12466912716627121, 0.2051074206829071, 0.7909228801727295, -0.9939677119255066, 0.481380432844162, 0.558655321598053, 0.8067268133163452, 0.6927231550216675, 0.32871660590171814, 0.5776870250701904, -0.5526659488677979, 0.0891367495059967, 0.27960580587387085, 0.27863264083862305, 0.6096763610839844, -0.5412933230400085, 0.2076406329870224, 0.1644604653120041, -0.6639500856399536, -0.6234410405158997, 0.322172075510025, -0.7092507481575012, -0.2531622350215912, 1.1417614221572876, -0.13606107234954834, -0.23632492125034332, -0.11170949786901474, -0.43895307183265686, 0.028599360957741737, -0.39531224966049194, 0.5795508027076721, 0.40605607628822327, -0.4517192840576172, -0.7754943370819092, -0.5846208930015564, 0.22601567208766937, 0.17793017625808716, -0.4270554184913635, -0.2932487726211548, 0.7648288011550903, 0.4144780933856964, 0.1921485811471939, 0.6553188562393188, -0.4240151345729828, 0.2357102930545807, -0.15642625093460083, 0.03978283703327179, -0.2649863362312317, -0.37556183338165283, -0.21185804903507233, 0.08768049627542496, 0.32299500703811646, -0.3072071075439453 ]
http://arxiv.org/abs/2405.18727v1
http://arxiv.org/pdf/2405.18727v1
CtrlA: Adaptive Retrieval-Augmented Generation via Probe-Guided Control
2024-05-29T03:17:16
2024-05-29T03:17:16
Huanshuo Liu, Hao Zhang, Zhijiang Guo, Kuicai Dong, Xiangyang Li, Yi Quan Lee, Cong Zhang, Yong Liu
cs.CL
cs.CL, cs.AI, cs.IR
Retrieval-augmented generation (RAG) has emerged as a promising solution for mitigating hallucinations of large language models (LLMs) with retrieved external knowledge. Adaptive RAG enhances this approach by dynamically assessing the retrieval necessity, aiming to balance external and internal knowledge usage. However, existing adaptive RAG methods primarily realize retrieval on demand by relying on superficially verbalize-based or probability-based feedback of LLMs, or directly fine-tuning LLMs via carefully crafted datasets, resulting in unreliable retrieval necessity decisions, heavy extra costs, and sub-optimal response generation. We present the first attempts to delve into the internal states of LLMs to mitigate such issues by introducing an effective probe-guided adaptive RAG framework, termed CtrlA. Specifically, CtrlA employs an honesty probe to regulate the LLM's behavior by manipulating its representations for increased honesty, and a confidence probe to monitor the internal states of LLM and assess confidence levels, determining the retrieval necessity during generation. Experiments show that CtrlA is superior to existing adaptive RAG methods on a diverse set of tasks, the honesty control can effectively make LLMs more honest and confidence monitoring is proven to be a promising indicator of retrieval trigger. Our codes are available at https://github.com/HSLiu-Initial/CtrlA.git.
[ -0.2975596487522125, -0.816973090171814, 0.4025459289550781, 0.049169089645147324, -0.19999660551548004, 0.40229475498199463, -0.32918843626976013, -0.2962767779827118, 0.23330260813236237, 0.4659785032272339, -0.37666693329811096, -0.26317739486694336, -0.4716394245624542, -0.031476933509111404, -0.1755947321653366, 0.9147764444351196, 0.2067553848028183, -0.0046512531116604805, 0.17201346158981323, -0.002491692081093788, -0.754338800907135, -0.21694408357143402, -0.8048248887062073, -0.3533971607685089, 0.6629244685173035, 0.46842458844184875, 0.5070871710777283, 0.3015857934951782, 0.4087464213371277, 0.25708475708961487, -0.32518449425697327, 0.743747353553772, -0.9157532453536987, 0.5147307515144348, -0.3706205189228058, -0.5686487555503845, -0.26786842942237854, -0.13849370181560516, 0.5714256763458252, 0.17465786635875702, -0.2900678515434265, 0.21152283251285553, 0.2884638011455536, 0.8738517165184021, -0.9877331852912903, -0.124483622610569, -1.1035516262054443, -0.1743098795413971, -0.10086401551961899, -0.7510896921157837, -0.5479373931884766, -0.5043870806694031, 0.005118540022522211, -0.5156891345977783, 0.04012907296419144, 0.09179127961397171, 0.7391573190689087, 0.3822590112686157, -0.39649492502212524, -0.8301960825920105, -0.7726902961730957, 0.7478132843971252, -0.41097816824913025, 0.4193669855594635, 0.3195464015007019, 0.2711860239505768, -0.5177106857299805, -0.6540700197219849, -0.40355515480041504, -0.5137254595756531, -0.07362920045852661, 0.2396651804447174, -0.046755820512771606, -0.13513138890266418, 0.02004130557179451, 0.3044412136077881, -0.48407402634620667, 0.08898881822824478, -0.333686888217926, -0.0636235922574997, 0.26159703731536865, 0.14909595251083374, 0.035577286034822464, -0.257738322019577, -0.2707343101501465, -0.224212646484375, -0.8143951892852783, 0.03830614686012268, 0.359973669052124, 0.35932475328445435, 0.05486617609858513, 0.48877304792404175, 0.003227206878364086, 0.502040445804596, 0.5024479031562805, 0.029040224850177765, -0.055638525635004044, -0.08895429223775864, -0.13208629190921783, 0.09925539791584015, 0.5572260022163391, 0.04016895219683647, 0.09550751745700836, 0.04444292560219765, -0.31070590019226074, 0.048987869173288345, 0.6621651649475098, -0.6051703095436096, -0.07127492129802704, 0.2575978934764862, -0.19391237199306488, -0.5677255392074585, -0.1418858766555786, -0.8664606809616089, -0.6728003621101379, -0.23842833936214447, 0.6195593476295471, -0.4252219796180725, -0.24489565193653107, -0.05821347236633301, 0.09187676012516022, 0.4829680323600769, 0.29255449771881104, -0.4855758845806122, 0.30522602796554565, 0.7412234544754028, 0.8198986053466797, -0.30083873867988586, 0.12602773308753967, -0.8434168100357056, 0.08691493421792984, -0.6152039766311646, 0.6992092728614807, -0.408728688955307, -0.5440332889556885, 0.05561629310250282, -0.17698214948177338, 0.024001067504286766, -0.5001784563064575, 0.6730215549468994, -0.8640074729919434, 0.35847169160842896, -0.2103293389081955, -0.4498816430568695, -0.20861762762069702, 0.4741048812866211, -0.5991148948669434, 0.9624631404876709, 0.058825161308050156, -0.775507390499115, 0.05905577540397644, -0.6031339764595032, -0.14560997486114502, -0.020425818860530853, -0.04768474027514458, -0.3088122606277466, 0.3646968901157379, 0.18443462252616882, 0.23146657645702362, -0.22232811152935028, 0.20987766981124878, -0.10286302119493484, -0.3588024973869324, 0.45018744468688965, -0.27250444889068604, 0.770588219165802, 0.3139053285121918, -0.15333934128284454, 0.2035646140575409, -0.5123018622398376, 0.16310155391693115, 0.021205445751547813, -0.27471113204956055, -0.4269059896469116, -0.005763044115155935, -0.18595708906650543, -0.0799906849861145, 0.37554800510406494, -0.27242177724838257, 0.14360029995441437, -0.5797135233879089, -0.12220517545938492, 1.0730663537979126, 0.1904391050338745, 0.5302864909172058, -0.5849967002868652, 0.6267000436782837, -0.09112593531608582, 0.10280730575323105, 0.014669167809188366, -0.10558687150478363, -0.7633851170539856, -0.057089049369096756, 0.23395755887031555, 0.48502907156944275, -0.8799260258674622, 0.18455150723457336, -0.06505083292722702, -0.6091196537017822, -0.6150606274604797, 0.07114017754793167, 0.6303446292877197, 0.5651977062225342, 0.33032649755477905, -0.19290824234485626, -0.5897387862205505, -0.6604463458061218, -0.36127781867980957, 0.018310757353901863, 0.06037113815546036, 0.40191853046417236, 0.2756597697734833, 0.08743184804916382, 0.6595190763473511, -0.44114166498184204, -0.6336610913276672, -0.15169592201709747, 0.12968868017196655, 0.30571475625038147, 0.4034970998764038, 0.34804800152778625, -0.946726381778717, -0.5571203827857971, 0.22792795300483704, -0.3721756041049957, -0.18321210145950317, -0.07508351653814316, -0.12841184437274933, 0.4612562656402588, 0.3402329385280609, -0.4879993498325348, 0.28835591673851013, 0.8591729402542114, -0.3089764416217804, 0.76259446144104, -0.3688511848449707, 0.19977109134197235, -1.2265722751617432, 0.24266120791435242, -0.2929743230342865, -0.24693512916564941, -0.5466744899749756, 0.43238747119903564, 0.13478411734104156, 0.35271909832954407, -0.3282848298549652, 0.8231900930404663, -0.6249893307685852, 0.02647564373910427, -0.7462698817253113, 0.21609799563884735, -0.17514903843402863, 0.39334818720817566, -0.3093833029270172, 1.0086696147918701, 0.25443175435066223, -0.8482185006141663, 0.08004958182573318, 0.176898792386055, -0.13694560527801514, 0.43131953477859497, -0.4043112099170685, 0.5537410378456116, -0.14983069896697998, 0.21093831956386566, -0.6364617347717285, -0.22354409098625183, 0.28624463081359863, -0.7601948380470276, 0.5236947536468506, -0.0117118451744318, -0.2451150119304657, -0.11692123115062714, -0.47251686453819275, 0.1589101403951645, 0.7366032004356384, -0.6323144435882568, 1.1185756921768188, 0.34951189160346985, 0.02335389330983162, -0.7966944575309753, -0.29372844099998474, 0.015876730903983116, -0.19429367780685425, -0.13070912659168243, 0.30950409173965454, -0.2734415829181671, -0.38879919052124023, -0.15823379158973694, -0.15611861646175385, 0.031850747764110565, 0.13647544384002686, 0.20722408592700958, 0.2011614590883255, -0.03524297848343849, 0.04216182231903076, 0.2173103541135788, 0.014219585806131363, 0.03666429966688156, -0.08880661427974701, 0.7154452204704285, 0.011878125369548798, -0.11285606026649475, -0.3533114790916443, 0.04607880488038063, 0.26170140504837036, -0.3304700255393982, 0.45301902294158936, 0.5647732019424438, -0.19676701724529266, -0.614251434803009, -0.6912896037101746, -0.4459981918334961, -0.5580173134803772, 0.2167959362268448, -0.4452556073665619, -0.9946565628051758, 0.573499858379364, -0.13827742636203766, -0.02254456654191017, 0.136834979057312, 0.7956384420394897, -0.1744483858346939, 0.717326819896698, 0.6395175457000732, -0.06683722883462906, 0.40691643953323364, 0.026246637105941772, 0.01918415166437626, -1.0476832389831543, 0.004443387035280466, -0.8667837977409363, -0.24077972769737244, -0.9015324711799622, -0.535385251045227, 0.724577009677887, 0.15960507094860077, -0.18210159242153168, -0.07635322213172913, -0.5802238583564758, 0.4676201045513153, 0.52798992395401, 0.4273216724395752, 0.46823886036872864, -0.28740230202674866, 0.019802100956439972, 0.001142293680459261, -0.6065340042114258, -0.3240775465965271, 1.1059236526489258, 0.14365284144878387, 0.8603195548057556, 0.11613386869430542, 0.6020511984825134, 0.23642709851264954, 0.4083830714225769, -0.8154813647270203, 0.46642741560935974, -0.2671423852443695, -0.5319586396217346, -0.09743797034025192, -0.44853174686431885, -0.9158732295036316, 0.2387072592973709, -0.1884760707616806, -0.5425162315368652, 0.17845769226551056, 0.4656997621059418, -0.24791014194488525, 0.20952335000038147, -0.42489922046661377, 0.15599845349788666, -0.13729402422904968, -0.47201940417289734, -0.44830673933029175, -0.4453873634338379, 0.5234406590461731, -0.3377099633216858, 0.06364600360393524, 0.20285582542419434, -0.04887499287724495, 0.4956701695919037, 0.11127933114767075, 0.8777367472648621, -0.34263575077056885, -0.335042804479599, 0.29431042075157166, 0.6732891798019409, 0.9929500222206116, -0.0013262545689940453, -0.16681019961833954, -0.3223813772201538, -0.017441516742110252, -0.12861980497837067, -0.6484941244125366, 0.7953397631645203, -0.3549269735813141, -0.6841698288917542, -0.4671779274940491, -0.7386814951896667, -0.33121028542518616, 0.2677956223487854, 0.015727881342172623, 0.22697600722312927, -0.1546265333890915, 0.3942088782787323, 0.9353104829788208, -0.42939072847366333, 0.17333413660526276, 0.6599100232124329, -0.513548731803894, -0.40809357166290283, 0.8676666021347046, -0.12649977207183838, 0.23848624527454376, 0.44039469957351685, 0.5382973551750183, -0.28349560499191284, -0.6760838627815247, -0.11809955537319183, 0.236263707280159, -0.45091137290000916, -0.5561742782592773, -0.4345957934856415, -0.13276876509189606, -0.2755122184753418, -0.09580735117197037, -0.4015931785106659, -0.10329295694828033, -0.4411090016365051, 0.0954311341047287, 0.4491775929927826, 0.7368574738502502, -0.15640944242477417, 0.17732298374176025, -0.6281224489212036, 0.5270848870277405, 0.10333184152841568, 0.18068276345729828, -0.1740894317626953, -0.8040773868560791, -0.06298963725566864, 0.050094861537218094, -0.39101704955101013, -0.8399690389633179, 0.5543784499168396, 0.10324600338935852, 0.21040557324886322, 0.09927236288785934, 0.18187806010246277, 0.5857719779014587, -0.3428894877433777, 0.6268077492713928, -0.2719566822052002, -0.94329833984375, 0.5335716009140015, -0.5020565986633301, 0.25245651602745056, 0.3371129035949707, 0.23017340898513794, -0.29440316557884216, -0.6437704563140869, -0.19939984381198883, -0.5545610189437866, 0.4935934543609619, -0.07418155670166016, 0.24250082671642303, 0.20941756665706635, 0.4925704002380371, 0.07899799197912216, 0.01138158980756998, -0.49236834049224854, 0.03407766669988632, 0.08564265072345734, -0.2889161705970764, 0.2087303251028061, -0.37639740109443665, -0.29376986622810364, 0.19201789796352386, 0.9042215943336487, -0.48136571049690247, 0.07431557029485703, 0.2710012197494507, -0.05729687586426735, -0.27483728528022766, 0.31217122077941895, 0.6460508108139038, 0.7094663381576538, -0.2397468090057373, -0.01454955991357565, 0.2464490532875061, -0.6065999269485474, -0.004628489725291729, -0.1561194807291031, -0.3820098042488098, -0.12409236282110214, 0.05431089922785759, 0.5687024593353271, 0.1430424302816391, -0.5835871696472168, 0.33757343888282776, 0.06191154569387436, -0.10580972582101822, -0.40034863352775574, 0.3001079261302948, -0.038424961268901825, 0.39993906021118164, 0.5439366698265076, -0.17827630043029785, 0.03118971921503544, -0.28981322050094604, 0.2331233024597168, 0.6432599425315857, -0.39425426721572876, -0.27226722240448, 0.42812982201576233, -0.10299843549728394, -0.31697961688041687, 0.2813399136066437, -0.2806091010570526, -0.4947465658187866, 0.4478089213371277, 0.6407723426818848, 0.9429131746292114, -0.6111113429069519, 0.2272820770740509, 0.4062674939632416, 0.44413211941719055, -0.024141332134604454, 0.6209033131599426, 0.2595565915107727, -0.766692042350769, -0.5568580031394958, -0.6518959999084473, -0.5397566556930542, 0.1913030594587326, -0.820643424987793, 0.16328804194927216, -0.41692525148391724, 0.006299685686826706, -0.5892696976661682, 0.1371384859085083, -0.46501773595809937, 0.12097575515508652, -0.3149133324623108, 1.0698472261428833, -0.2210569828748703, 1.0073974132537842, 0.37964800000190735, -0.11742996424436569, -0.9250293374061584, 0.05775360018014908, -0.02287028729915619, -0.8039246797561646, 0.5921046733856201, -0.24852749705314636, -0.6387727856636047, 0.10803135484457016, -0.6442925333976746, -0.9033893942832947, 1.0507268905639648, 0.2120833843946457, -0.4972533583641052, -0.0585273914039135, -0.30835095047950745, 0.6904392838478088, -0.16195139288902283, 0.005233218427747488, 0.4418589174747467, 0.5811583995819092, -0.005145526956766844, -1.049627661705017, 0.13946688175201416, 0.13534867763519287, -0.0023306177463382483, 0.23392993211746216, -0.6044756770133972, 0.7108510136604309, -0.26408374309539795, -0.30295664072036743, 0.35167360305786133, 0.7657699584960938, 0.5598359107971191, 0.16614259779453278, 0.5459175705909729, 0.34019801020622253, 0.7016097903251648, 0.030748920515179634, 0.7765406370162964, -0.3110004961490631, 0.19506174325942993, 1.5407700538635254, -0.3537035286426544, 0.9277727603912354, 0.5910274386405945, 0.12890435755252838, 0.4315333664417267, 0.12219519168138504, 0.28258657455444336, 0.42108261585235596, 0.1297541707754135, -0.13023845851421356, 0.13014034926891327, -0.3743942081928253, -0.21600674092769623, 0.7363730669021606, 0.6369595527648926, -0.28476080298423767, -0.04544626921415329, 0.08859369903802872, -0.016032081097364426, 0.3683359920978546, -0.3294076919555664, 0.8833897113800049, 0.06775353103876114, -0.7611541152000427, 0.6763426661491394, -0.2196275293827057, 0.6996268033981323, -0.7165151238441467, -0.19243189692497253, -0.3905878961086273, 0.18252500891685486, 0.031896576285362244, -0.7145622968673706, 0.1688278615474701, -0.008495953865349293, -0.00012634535960387439, -0.09687250107526779, 0.9435086846351624, -0.398445725440979, -0.15618427097797394, 0.3946361541748047, 0.5352001190185547, -0.23067733645439148, -0.12045609205961227, -0.5729106664657593, 0.3307808041572571, 0.11134221404790878, -0.531741201877594, 0.19952602684497833, 0.44819411635398865, -0.06892847269773483, 0.788078248500824, 0.6857165694236755, 0.3208799362182617, 0.1566758006811142, -0.10172443091869354, 0.9976018071174622, -0.6121312379837036, -0.45625293254852295, -0.3427482545375824, 0.23597711324691772, 0.16072049736976624, -0.11888148635625839, 0.670370876789093, 0.334066778421402, 0.7556684613227844, -0.08133814483880997, 0.544452965259552, -0.09410220384597778, 1.013033390045166, -0.7522367238998413, 0.8313884139060974, -0.62404465675354, 0.10463178157806396, -0.030337903648614883, -0.8035624027252197, -0.22484436631202698, 0.2730585038661957, -0.02090981975197792, 0.13053098320960999, 0.7269077897071838, 1.3382400274276733, 0.03886286914348602, -0.12635716795921326, 0.2175704687833786, 0.665875256061554, 0.439342737197876, 0.4962794780731201, 0.874803900718689, -0.21162725985050201, 0.5197252035140991, -0.2567054033279419, -0.14907389879226685, -0.10708741098642349, -0.8883981704711914, -0.6064619421958923, -0.63017737865448, 0.16245074570178986, -0.5715163350105286, 0.29785749316215515, 0.9465904831886292, 0.367703378200531, -0.8138447403907776, -0.3232203722000122, -0.01079896092414856, 0.03738478198647499, -0.16557568311691284, -0.2968103587627411, 0.5100842118263245, -0.638187825679779, -0.8071401119232178, 0.7028388977050781, 0.061982788145542145, -0.09139541536569595, -0.5003035068511963, -0.2202780544757843, -0.2326057404279709, 0.086993008852005, 0.43141213059425354, 0.3476495146751404, -0.7391208410263062, -0.25656160712242126, 0.04064895585179329, -0.2225230634212494, -0.03344276174902916, 0.8767496943473816, -0.9594526290893555, 0.5657450556755066, 0.5392889380455017, 0.7799893617630005, 0.294915109872818, 0.02372107468545437, 0.5229794979095459, -0.6557185053825378, -0.06157989054918289, 0.5353555083274841, 0.004309046547859907, 0.14838995039463043, -0.5653963088989258, 0.49278315901756287, -0.3235076069831848, -0.687516987323761, -1.0635581016540527, 0.1771574765443802, -1.0987948179244995, -0.3873748481273651, 1.0496703386306763, 0.15661145746707916, -0.4105151295661926, 0.004171841777861118, -0.525877833366394, 0.3091038763523102, -0.3699623942375183, 1.1937068700790405, 0.38217419385910034, 0.048011235892772675, -0.06736094504594803, -0.4951865077018738, 0.7682667970657349, 0.5666625499725342, -0.9097892045974731, 0.1258302479982376, 0.5682840347290039, 0.09095313400030136, 0.1478884071111679, 0.6476269364356995, -0.1979912966489792, 0.3469732701778412, -0.40861502289772034, -0.12123730778694153, -0.04117141664028168, -0.4918924570083618, -0.4090602993965149, 0.3708069920539856, 0.14380624890327454, -0.03743726760149002 ]
http://arxiv.org/abs/2405.18721v2
http://arxiv.org/pdf/2405.18721v2
Correctable Landmark Discovery via Large Models for Vision-Language Navigation
2024-05-29T03:05:59
2024-06-05T09:59:21
Bingqian Lin, Yunshuang Nie, Ziming Wei, Yi Zhu, Hang Xu, Shikui Ma, Jianzhuang Liu, Xiaodan Liang
cs.CV
cs.CV, cs.AI, cs.CL
Vision-Language Navigation (VLN) requires the agent to follow language instructions to reach a target position. A key factor for successful navigation is to align the landmarks implied in the instruction with diverse visual observations. However, previous VLN agents fail to perform accurate modality alignment especially in unexplored scenes, since they learn from limited navigation data and lack sufficient open-world alignment knowledge. In this work, we propose a new VLN paradigm, called COrrectable LaNdmark DiScOvery via Large ModEls (CONSOLE). In CONSOLE, we cast VLN as an open-world sequential landmark discovery problem, by introducing a novel correctable landmark discovery scheme based on two large models ChatGPT and CLIP. Specifically, we use ChatGPT to provide rich open-world landmark cooccurrence commonsense, and conduct CLIP-driven landmark discovery based on these commonsense priors. To mitigate the noise in the priors due to the lack of visual constraints, we introduce a learnable cooccurrence scoring module, which corrects the importance of each cooccurrence according to actual observations for accurate landmark discovery. We further design an observation enhancement strategy for an elegant combination of our framework with different VLN agents, where we utilize the corrected landmark features to obtain enhanced observation features for action decision. Extensive experimental results on multiple popular VLN benchmarks (R2R, REVERIE, R4R, RxR) show the significant superiority of CONSOLE over strong baselines. Especially, our CONSOLE establishes the new state-of-the-art results on R2R and R4R in unseen scenarios. Code is available at https://github.com/expectorlin/CONSOLE.
[ -0.11732352524995804, -0.5883182883262634, 0.6355645656585693, -0.053896818310022354, -0.0984206348657608, -0.18962809443473816, -0.38743582367897034, -0.5719544291496277, 0.15767604112625122, 0.6425924301147461, -0.3050042986869812, -0.7081477642059326, -0.3318893015384674, -0.3615568280220032, -0.045349881052970886, 0.6742650866508484, -0.04533190280199051, 0.030433153733611107, -0.03761838376522064, -0.44815412163734436, -0.5862129330635071, -0.6905094981193542, -0.585616409778595, -0.11716271191835403, 0.35323408246040344, 0.3972921669483185, 0.8821796178817749, 0.5388180017471313, 0.7076780796051025, 0.2653941810131073, -0.21711233258247375, 0.6956790685653687, -0.7392804622650146, -0.19925327599048615, -0.5055722594261169, -0.3653669059276581, -0.7968701720237732, -0.5176547765731812, 0.3956640660762787, 0.4904782176017761, 0.31680652499198914, -0.22639954090118408, -0.11032824963331223, 0.5188393592834473, -0.5952621698379517, 0.6535339951515198, -0.40658119320869446, 0.15358951687812805, -0.11968237161636353, -0.16999074816703796, -0.5428470373153687, -0.3132520616054535, 0.5074673891067505, -0.9070407748222351, 0.3682572543621063, 0.20632365345954895, 0.9399884343147278, 0.43575793504714966, -0.4156288504600525, -0.10727962106466293, -0.5804773569107056, 0.7208585739135742, -0.45726653933525085, 0.6026181578636169, -0.036467574536800385, 0.4621516764163971, -0.19395025074481964, -0.5551100373268127, -0.2681121230125427, -0.3506743013858795, -0.1380750983953476, 0.13727834820747375, -0.2131904661655426, 0.1840442568063736, 0.5033568739891052, 0.08555663377046585, -0.6658827066421509, 0.20773130655288696, -0.14496909081935883, -0.5038458704948425, 0.34445834159851074, 0.13041943311691284, 0.10361237078905106, -0.21934737265110016, -0.5808895826339722, -0.29214179515838623, -0.8304560780525208, 0.11280500143766403, -0.07713686674833298, 0.6914548277854919, -0.16833940148353577, 0.5438244342803955, -0.20118556916713715, 0.7612969279289246, 0.21216973662376404, 0.013773093931376934, 0.27077949047088623, -0.3246774971485138, -0.02987806499004364, 0.12060514092445374, 0.3461708426475525, 0.7217373251914978, 0.4266461133956909, -0.038632746785879135, -0.0898924171924591, -0.0036629103124141693, 0.3067275881767273, -0.5692662000656128, -0.585104763507843, -0.0014482414117082953, 0.017675722017884254, 0.10974229872226715, 0.13018770515918732, -0.4767427444458008, -0.4078201651573181, -0.42835062742233276, 0.5794763565063477, -0.3287665843963623, -0.26826363801956177, 0.15025173127651215, -0.001318907830864191, 0.2682630121707916, 0.8912301063537598, -0.43205970525741577, -0.2654026448726654, 0.8184824585914612, 0.7571280598640442, -0.14448383450508118, -0.18742185831069946, -0.8111172914505005, 0.1892317682504654, -0.42306041717529297, 0.3603179156780243, -0.45037588477134705, -0.12964904308319092, 0.026233751326799393, 0.17427517473697662, 0.06128641590476036, -0.48996174335479736, 0.4740925133228302, -0.5067468285560608, -0.12886279821395874, -0.5592277646064758, -0.2895331084728241, -0.41641631722450256, 0.6389384269714355, -0.8656834363937378, 0.8640004992485046, -0.11887947469949722, -0.4020712375640869, 0.5257596373558044, -0.5128222703933716, -0.0964280217885971, -0.16499526798725128, -0.15609008073806763, -0.501581609249115, 0.04256327822804451, 0.5845766067504883, 0.19675099849700928, 0.257528156042099, 0.48338040709495544, -0.049723293632268906, -0.2284655123949051, -0.031241275370121002, -0.38235220313072205, 0.42107388377189636, -0.11107715219259262, -0.6133715510368347, 0.2946237623691559, -0.53135746717453, -0.05668681114912033, -0.19865569472312927, -0.03885890543460846, -0.416996568441391, -0.007311929017305374, 0.0996515154838562, 0.10126789659261703, 0.3846627473831177, -0.247142031788826, 0.3657245934009552, -0.2303118258714676, 0.11937420815229416, 0.6928110122680664, -0.04088838770985603, 0.5206440687179565, 0.0032681673765182495, 0.13015715777873993, 0.19026009738445282, 0.35989758372306824, -0.2092188149690628, -0.5062128305435181, -0.8676757216453552, -0.34414470195770264, -0.007601433899253607, 0.3432707190513611, -0.7411037683486938, 0.32547762989997864, -0.6139645576477051, -0.2107275277376175, -0.025210514664649963, -0.31504860520362854, 0.8005057573318481, 0.5338388681411743, 0.5612172484397888, -0.5034875273704529, -0.6549782156944275, -0.6426780223846436, 0.08368459343910217, -0.3308347463607788, 0.3000616729259491, 0.5201586484909058, 0.3039287030696869, -0.0886734277009964, 0.8846508264541626, -0.5662150382995605, -0.3357980251312256, 0.10531509667634964, -0.1345205456018448, 0.016115257516503334, 0.5109473466873169, 0.31489717960357666, -0.9903225302696228, -0.09342043846845627, 0.23304811120033264, -0.7501501441001892, 0.17643171548843384, 0.03432747721672058, -0.25583091378211975, 0.1590060442686081, 0.7648369669914246, -0.25721368193626404, 0.5788098573684692, 0.41620683670043945, -0.2816024422645569, 0.1847502589225769, -0.22770720720291138, 0.26457688212394714, -0.877900242805481, 0.04301837086677551, -0.10948328673839569, -0.47826525568962097, -0.5565310120582581, 0.3199189305305481, 0.1986365169286728, -0.024692313745617867, -0.3907615840435028, 0.5723391771316528, -0.53359055519104, -0.21073795855045319, -0.12414584308862686, 0.429444283246994, -0.0006086259963922203, 0.7213759422302246, 0.40942707657814026, 0.3287472724914551, 0.4318469166755676, -0.3904888927936554, 0.007864650338888168, 0.4432968199253082, -0.2284211665391922, 0.5415424108505249, -0.3773532211780548, 0.00038840476190671325, -0.09563867747783661, 0.2710241973400116, -1.1403720378875732, -0.15695080161094666, 0.22652699053287506, -0.3998139798641205, 0.20587116479873657, -0.47101226449012756, -0.02354857139289379, -0.18641552329063416, 0.1298016756772995, 0.6409188508987427, 0.23903019726276398, -0.8498557209968567, 0.4546845853328705, 0.1214996874332428, 0.2586474120616913, -0.8428608775138855, -0.4086589515209198, 0.10138526558876038, 0.15626725554466248, -0.5966842174530029, 0.09007390588521957, 0.10879742354154587, -0.05267062038183212, -0.12845315039157867, -0.27148130536079407, 0.17753957211971283, -0.17249028384685516, 0.5675656795501709, 0.47935688495635986, -0.3722009062767029, 0.18507486581802368, -0.46436113119125366, -0.23876270651817322, -0.41574788093566895, -0.44383636116981506, 0.4960233271121979, -0.3742952346801758, -0.7493410110473633, -0.24485403299331665, -0.025544187054038048, 0.7459673881530762, -0.48318156599998474, 0.15796029567718506, 0.5023494958877563, -0.3020353317260742, 0.00853518396615982, -0.5167344808578491, -0.14712651073932648, -0.3415972888469696, 0.5841091871261597, -0.2934122681617737, -1.1300312280654907, 0.4254917502403259, -0.24813033640384674, 0.14080967009067535, 0.2006327211856842, 0.33739757537841797, 0.38618409633636475, 0.8251144886016846, 0.676826536655426, -0.009280003607273102, 0.49337220191955566, -0.39374908804893494, 0.5079224109649658, -0.7922578454017639, -0.2958146929740906, -0.2344958633184433, -0.38399332761764526, -0.45719605684280396, -1.0554568767547607, 0.6968339681625366, 0.03839274123311043, -0.1860581487417221, 0.41716423630714417, -0.3570442795753479, 0.4395478069782257, 0.4746328890323639, 0.4154060184955597, 0.5131160616874695, -0.17831556499004364, -0.1967364102602005, -0.1876959651708603, -0.5697470903396606, -0.28714948892593384, 0.8282631039619446, 0.08723076432943344, 0.7571996450424194, 0.1990332454442978, 0.6172791719436646, 0.04137864336371422, -0.03401466831564903, -0.8916939496994019, 0.5965153574943542, -0.05366836115717888, -0.5586263537406921, -0.5290552377700806, -0.19230510294437408, -0.6916442513465881, 0.26981985569000244, -0.2011336088180542, -0.7409847378730774, 0.4123358130455017, 0.47580310702323914, -0.32325661182403564, 0.3576420247554779, -0.539283275604248, 1.085655689239502, -0.44151273369789124, -0.5745430588722229, -0.11358805000782013, -0.6774204969406128, 0.2446131557226181, 0.13306285440921783, -0.18420502543449402, 0.12545527517795563, -0.024693328887224197, 0.09513023495674133, -0.49353650212287903, 0.9489237070083618, -0.3750136196613312, -0.14589107036590576, 0.10027438402175903, 0.05170179158449173, 0.8534699082374573, -0.02159384824335575, 0.2071780264377594, 0.19920171797275543, -0.5121526718139648, -0.23524649441242218, -0.5454806685447693, 0.7173647284507751, -0.614691436290741, -0.5748671889305115, -0.2750305235385895, -0.6224250793457031, -0.1631292998790741, 0.10701769590377808, 0.10012715309858322, 0.848089873790741, -0.4449496269226074, 0.0661563128232956, 0.7023717761039734, -0.11984480917453766, 0.3472866117954254, 0.6547237634658813, -0.4006027281284332, -0.1306937038898468, 0.8773669004440308, 0.04846767708659172, 0.34482261538505554, 0.8473061323165894, 0.05331062152981758, -0.4070436358451843, -0.7160012125968933, -0.3983115553855896, 0.06018894165754318, -0.5922120809555054, -0.10758879780769348, -0.4307040274143219, -0.0805179551243782, -0.12277084589004517, -0.5694966912269592, -0.6407313346862793, -0.3838791847229004, 0.17611566185951233, -0.059095125645399094, 0.3019104301929474, 0.3810984492301941, -0.2507256865501404, 0.1267838180065155, -0.54997318983078, 0.23530243337154388, 0.2938399910926819, 0.05567076802253723, 0.0011012883624061942, -0.3178127110004425, -0.24973857402801514, -0.004942991770803928, 0.027557894587516785, -0.12883292138576508, 0.19840803742408752, -0.03975817561149597, 0.40868425369262695, 0.4258406460285187, 0.09982797503471375, 1.0735163688659668, -0.4833252727985382, 0.7067660093307495, 0.25986239314079285, -0.8261265158653259, 0.5797349214553833, -0.2793942987918854, 0.5099918842315674, 0.3690420389175415, 0.16676999628543854, -0.46010923385620117, -0.4477232098579407, -0.5191861987113953, -0.8847487568855286, 0.4691154956817627, 0.03803541511297226, -0.47194573283195496, 0.10876766592264175, 0.14344702661037445, -0.055020201951265335, -0.01434476301074028, -0.4715002775192261, 0.05496935918927193, -0.14438477158546448, -0.07319317013025284, -0.37833407521247864, 0.13456033170223236, -0.24748504161834717, 0.00013486061652656645, 0.4349476993083954, -0.34710824489593506, 0.0038617330137640238, 0.551002025604248, -0.4067573845386505, -0.1414991319179535, -0.052088722586631775, 0.5894155502319336, 0.8803153038024902, -0.2527720034122467, 0.031113501638174057, -0.026924513280391693, -0.49889621138572693, -0.07174381613731384, -0.11215237528085709, -0.26682722568511963, 0.10541529953479767, 0.4032869338989258, 0.9974874258041382, 0.6741260290145874, -0.691951334476471, 0.7952662706375122, -0.007641426287591457, 0.12194589525461197, -0.3436306416988373, 0.06133927404880524, -0.17810939252376556, 0.8272698521614075, 0.15827295184135437, 0.47629740834236145, -0.02314462885260582, -0.46370241045951843, 0.29833292961120605, 0.5443206429481506, -0.7545828819274902, -0.2217848151922226, 0.6493902206420898, 0.20216529071331024, -0.16000370681285858, 0.5713294148445129, -0.02895793318748474, -0.6249245405197144, 0.6118246912956238, 0.10854998975992203, 0.8111612796783447, -0.07554202526807785, 0.15974237024784088, 0.6958746910095215, 0.31950655579566956, -0.3584752380847931, 0.014880085363984108, -0.12424229085445404, -0.6959458589553833, -0.47582265734672546, -0.28564879298210144, -0.6931600570678711, -0.1349717080593109, -0.6900733113288879, 0.4375143349170685, -0.33779314160346985, -0.05409746989607811, -0.26394662261009216, -0.2347731590270996, -0.7156727910041809, 0.23393896222114563, 0.11744236946105957, 0.5583919286727905, -0.6712695956230164, 0.7610321044921875, 0.5778168439865112, -0.18728739023208618, -0.9498586654663086, 0.11316654831171036, 0.2925128936767578, -1.0651370286941528, 0.5821657776832581, 0.18435251712799072, -0.13316994905471802, -0.17409448325634003, -0.4543471932411194, -0.8892136216163635, 1.069126009941101, 0.19044600427150726, -0.9497835040092468, -0.1827639639377594, -0.010950944386422634, 0.5719406604766846, -0.20329202711582184, 0.20072351396083832, 0.1661960482597351, 0.5050514340400696, 0.5519992709159851, -1.1827055215835571, 0.08756957203149796, 0.13125179708003998, -0.08206922560930252, 0.6060134172439575, -0.7703816890716553, 0.6782563924789429, -0.7033534646034241, 0.036676328629255295, 0.289131760597229, 0.605476438999176, 0.23011378943920135, 0.37336209416389465, 0.5514883995056152, 0.7701224088668823, 0.967871904373169, -0.2993136942386627, 0.6679233908653259, -0.07850716263055801, 0.40421074628829956, 1.2566877603530884, -0.25376272201538086, 0.9027696251869202, 0.4738146662712097, 0.29557156562805176, 0.167707622051239, 0.3235025405883789, 0.06898759305477142, 0.49086233973503113, 0.07992301881313324, -0.07902093976736069, -0.5226598978042603, 0.010986306704580784, -0.30537843704223633, 0.7226302623748779, 0.21490636467933655, -0.2922634780406952, -0.3684546947479248, 0.08830910176038742, 0.11256931722164154, -0.03494429588317871, -0.5777591466903687, 0.603251576423645, -0.2512029707431793, -0.7589285969734192, 0.6567874550819397, -0.5048959851264954, 0.3845493495464325, -0.6199580430984497, -0.2743348181247711, -0.1656501591205597, 0.5723632574081421, -0.14709293842315674, -0.6257140636444092, -0.11347373574972153, -0.24047540128231049, -0.15497533977031708, 0.09177492558956146, 0.3818942606449127, -0.6133187413215637, -0.1841399222612381, 0.12625037133693695, 0.504612386226654, 0.14743950963020325, -0.14549966156482697, -0.1721547544002533, 0.23801305890083313, 0.2306547611951828, 0.14597196877002716, 0.13353800773620605, 0.49758201837539673, -0.5364335775375366, 0.4287720024585724, 0.36935585737228394, -0.10403330624103546, 0.047863081097602844, 0.09702406078577042, 0.7275964021682739, -0.7315832376480103, -0.48466330766677856, -0.47094443440437317, 0.6245882511138916, -0.2296718955039978, -0.3221158981323242, 0.7532135248184204, 0.7310483455657959, 1.0089144706726074, -0.1470189392566681, 0.5455225110054016, 0.04859749227762222, 0.17979836463928223, -0.7741963267326355, 0.2110411524772644, -0.42537739872932434, 0.13434386253356934, -0.4256749451160431, -0.9161781668663025, -0.4314527213573456, 0.44584184885025024, -0.5003560781478882, -0.2582395076751709, 0.7203987836837769, 1.310548186302185, -0.2503663897514343, -0.07933112978935242, 0.5594256520271301, 0.39290952682495117, 0.49379903078079224, 0.9398722648620605, 0.71799635887146, -0.4508272111415863, 0.6619806289672852, -0.005576790310442448, -0.3232453465461731, -0.5771929025650024, -0.8422157764434814, -0.8390395641326904, -0.7035782337188721, -0.49948611855506897, -0.2325020283460617, 0.3808847963809967, 0.7665757536888123, 0.7760650515556335, -0.7976659536361694, -0.052822865545749664, -0.041153136640787125, 0.13920310139656067, -0.3859924077987671, -0.1801130324602127, 0.5808711647987366, -0.18759959936141968, -0.955205500125885, 0.3894886076450348, 0.6135815382003784, -0.14818696677684784, -0.13158950209617615, -0.23068073391914368, -0.08644324541091919, -0.42552581429481506, 0.6522496938705444, 0.6409009099006653, -0.8980119228363037, -0.8063716292381287, -0.031262483447790146, -0.07726781815290451, 0.2761090099811554, 1.019417405128479, -0.6992623805999756, 0.887996256351471, 0.36194631457328796, 0.5517644882202148, 0.6179041862487793, 0.00478751864284277, 0.5112696886062622, -0.6567215919494629, 0.20528766512870789, 0.21885249018669128, 0.4864913821220398, 0.4576100707054138, -0.3001005947589874, 0.5957122445106506, 0.14580801129341125, -0.5859345197677612, -0.5110666751861572, 0.32506605982780457, -1.5278689861297607, 0.04969891905784607, 0.9795789122581482, -0.1437739133834839, -0.20479024946689606, -0.17321579158306122, -0.6651560068130493, 0.09417854994535446, -0.4004242718219757, 0.5717886686325073, 0.41623491048812866, -0.1500220149755478, 0.0009765124414116144, -0.3125661313533783, 0.5913541316986084, 0.2565346956253052, -0.3410830497741699, 0.07454041391611099, 0.9502400159835815, -0.08050447702407837, 0.4652864933013916, 0.2567528784275055, -0.2957610785961151, 0.5056928992271423, -0.13589462637901306, -0.026755470782518387, -0.13946731388568878, -0.5849117636680603, -0.1988859474658966, 0.23991866409778595, 0.08958417177200317, -0.2697179913520813 ]
http://arxiv.org/abs/2405.18719v2
http://arxiv.org/pdf/2405.18719v2
Contextual Position Encoding: Learning to Count What's Important
2024-05-29T02:57:15
2024-05-30T17:51:53
Olga Golovneva, Tianlu Wang, Jason Weston, Sainbayar Sukhbaatar
cs.CL
cs.CL, cs.AI
The attention mechanism is a critical component of Large Language Models (LLMs) that allows tokens in a sequence to interact with each other, but is order-invariant. Incorporating position encoding (PE) makes it possible to address by position, such as attending to the i-th token. However, current PE methods use token counts to derive position, and thus cannot generalize to higher levels of abstraction, such as attending to the i-th sentence. In this paper, we propose a new position encoding method, Contextual Position Encoding (CoPE), that allows positions to be conditioned on context by incrementing position only on certain tokens determined by the model. This allows more general position addressing such as attending to the $i$-th particular word, noun, or sentence. We show that CoPE can solve the selective copy, counting and Flip-Flop tasks where popular position embeddings fail, and improves perplexity on language modeling and coding tasks.
[ -0.16124308109283447, -0.5123049020767212, 0.7019022107124329, 0.6352753639221191, -0.24606961011886597, -0.20910634100437164, -0.11053703725337982, -0.23415584862232208, 0.2678138315677643, 0.274980753660202, -0.3734590411186218, -0.5838443040847778, -0.8818767666816711, 0.170696422457695, -0.40192312002182007, 0.5863099694252014, -0.022279974073171616, 0.030998477712273598, -0.38682734966278076, 0.0038508407305926085, -0.48260676860809326, -1.2314271926879883, -0.5022653937339783, 0.13027377426624298, 0.5398829579353333, 0.6064281463623047, 0.33254238963127136, 0.6196597218513489, 0.42202427983283997, 0.3245237171649933, 0.041102588176727295, -0.024685630574822426, -0.5898463726043701, -0.02623557299375534, -0.14730601012706757, -0.8069528341293335, -0.16188420355319977, -0.03798237442970276, 0.7930106520652771, 0.9116175770759583, 0.18384668231010437, -0.24340353906154633, -0.02315010316669941, 0.4043477773666382, -0.827532947063446, 0.06220138072967529, -0.5963168740272522, 0.028166184201836586, -0.414509654045105, -0.6026150584220886, -0.7817383408546448, 0.24549797177314758, -0.13936609029769897, -0.4708540141582489, -0.0442163422703743, -0.15369296073913574, 0.409511923789978, 0.28914955258369446, -0.5693406462669373, -0.12662243843078613, -0.311204195022583, 0.8947305083274841, -0.6547362804412842, 0.5838243961334229, 0.543181300163269, -0.2668123245239258, -0.230020210146904, -0.5700966119766235, -0.4362718462944031, 0.08267785608768463, -0.07426005601882935, 0.1833995133638382, 0.3401621878147125, -0.11587830632925034, 0.3382090628147125, 0.09008095413446426, -0.18942344188690186, 0.0623115710914135, -0.08293997496366501, 0.0009938415605574846, 0.4309556782245636, 0.09316237270832062, 0.42623087763786316, 0.08571226894855499, -0.7772980332374573, -0.18639381229877472, -0.6519351601600647, 0.3622759282588959, 0.050794005393981934, 0.23715218901634216, -0.3484863042831421, 0.44037866592407227, -0.10981324315071106, 0.873153030872345, 0.5167540311813354, -0.19285576045513153, 0.1864471286535263, 0.08748535811901093, -0.2922561466693878, 0.25787264108657837, 0.3899690806865692, 0.30336707830429077, 0.03586999699473381, -0.21870681643486023, -0.08268512785434723, 0.0597289502620697, 0.3849075734615326, -0.5625849962234497, -0.01299476157873869, 0.24658244848251343, -0.061604008078575134, -0.17474505305290222, 0.4498964250087738, -0.183515727519989, -0.12009569257497787, -0.2735958695411682, 0.03151986375451088, -0.7488685250282288, 0.18973281979560852, 0.29823723435401917, 0.09285289794206619, 0.6188535690307617, 0.2919335961341858, -1.1768004894256592, 0.24215911328792572, 1.056472659111023, 0.7036533355712891, -0.3395500183105469, -0.6175815463066101, -0.9077562093734741, 0.351092666387558, -0.42178282141685486, 0.8163654804229736, -0.9035829901695251, -0.523212194442749, 0.04116872325539589, 0.18910576403141022, -0.49720463156700134, -0.21243485808372498, 0.3710883855819702, -0.5053466558456421, 0.10651098191738129, -0.4528723955154419, -0.983193039894104, -0.022561587393283844, 0.30979350209236145, -0.468973845243454, 0.8103177547454834, 0.044749658554792404, -0.8266315460205078, 0.20630709826946259, -0.5718551874160767, -0.6769582033157349, 0.12634709477424622, -0.3473532497882843, 0.1342909187078476, 0.4433765709400177, 0.33031076192855835, 0.43962693214416504, 0.30407798290252686, 0.21402068436145782, -0.007523806300014257, -0.5825745463371277, 0.6438317894935608, -0.2545846998691559, 0.6539939045906067, 0.06221146881580353, -0.013760902918875217, 0.16134551167488098, -0.2234133929014206, -0.3195568919181824, -0.012758184224367142, -0.6146592497825623, -0.5003661513328552, -0.08864601701498032, -0.09644076228141785, 0.10042174160480499, 0.4065004289150238, -0.28921207785606384, 0.37317726016044617, -0.34439003467559814, 0.29439449310302734, 0.47347503900527954, 0.2740997076034546, 0.7314692735671997, -0.1422736793756485, 0.575360119342804, 0.2387176752090454, -0.05118151754140854, -0.5166801810264587, -0.5389245748519897, -0.5037209391593933, -0.22492648661136627, 0.40050363540649414, 0.7164144515991211, -0.8655394911766052, 0.4732113480567932, -0.35564306378364563, 0.09859776496887207, -0.11505239456892014, -0.018269667401909828, 0.5594845414161682, 0.5076434016227722, 0.10687416791915894, -0.4360709488391876, -0.46566686034202576, -0.5233664512634277, -0.28002679347991943, -0.045743294060230255, -0.026846252381801605, 0.12003307044506073, 0.18436481058597565, -0.08375172317028046, 0.8401346802711487, -0.37234586477279663, -0.1709977686405182, -0.07888341695070267, 0.15559343993663788, 0.1167105957865715, 0.5773570537567139, 0.6988338828086853, -0.9596207141876221, -0.43887773156166077, -0.41207021474838257, -0.648751974105835, 0.06997866928577423, -0.21870838105678558, -0.19592484831809998, 0.2801104784011841, 0.9168647527694702, -0.5058039426803589, 0.274694561958313, 0.6520604491233826, -0.6220000982284546, 0.13831007480621338, -0.13762275874614716, 0.118585504591465, -0.948305606842041, 0.12903662025928497, -0.23563998937606812, -0.5004760026931763, -0.7885666489601135, 0.24007870256900787, 0.2759764492511749, -0.23799258470535278, -0.8238900899887085, 0.699153482913971, -0.477955162525177, -0.028263233602046967, -0.18624389171600342, 0.03399232402443886, -0.09905815124511719, 0.8142276406288147, 0.3533080816268921, 0.5491066575050354, 0.4187888503074646, -0.7377570867538452, -0.09160756319761276, 0.3334916830062866, -0.5780670642852783, 0.8548899292945862, -0.11804252117872238, 0.3868560194969177, -0.05335802957415581, 0.19474203884601593, -1.057977557182312, -0.4425138235092163, 0.1747576892375946, -0.5127066373825073, 0.5993807315826416, -0.06464458256959915, -0.1720454841852188, -0.22107428312301636, -0.21258144080638885, 0.7635956406593323, -0.049709927290678024, -0.4478989839553833, 0.048065993934869766, 0.4826093316078186, -0.14134491980075836, -0.9000574946403503, -0.6713594198226929, 0.15907247364521027, -0.13006746768951416, -0.18185599148273468, 0.553939938545227, -0.10416474938392639, -0.1344725638628006, -0.08564750105142593, -0.2706318795681, 0.13023141026496887, 0.24511733651161194, 0.0033219291362911463, -0.03184074908494949, 0.11264132708311081, 0.25615644454956055, -0.14306452870368958, -0.329293817281723, -0.06561595946550369, -0.6073264479637146, 0.7563652396202087, 0.15742693841457367, -0.4254802167415619, -0.3246036767959595, 0.6201215386390686, 0.7362154722213745, -0.03244885802268982, 0.7422180771827698, 0.35860544443130493, -0.6280674338340759, 0.13165095448493958, -0.37015512585639954, -0.08990204334259033, -0.4444139897823334, 0.44025641679763794, -0.6516690850257874, -0.8856747150421143, 0.3635958433151245, 0.08187170326709747, -0.013134039007127285, 0.10802723467350006, 0.3332219421863556, -0.1388721764087677, 0.9172539710998535, 1.054867148399353, -0.34223803877830505, 0.7369819283485413, -0.07109370827674866, 0.19122137129306793, -0.9253212213516235, -0.11822579801082611, -0.2533136010169983, -0.6998575329780579, -0.180545836687088, -0.6962388753890991, 0.2724241316318512, 0.2363966554403305, -0.17682591080665588, 0.33391833305358887, -0.4152752757072449, 0.5153675079345703, 0.5535670518875122, 0.2580828070640564, 0.1006736010313034, -0.0022860378958284855, -0.34420761466026306, -0.13059814274311066, -0.7610079050064087, -0.21246111392974854, 0.770002543926239, 0.20852844417095184, 0.5758718848228455, 0.0340244397521019, 0.8452842235565186, 0.19790318608283997, 0.37949705123901367, -1.1239144802093506, 0.5628825426101685, -0.45662039518356323, -0.3260229527950287, -0.44695615768432617, -0.00697297090664506, -0.7964363694190979, -0.06700340658426285, 0.20730194449424744, -1.0240942239761353, 0.7965125441551208, 0.09218604862689972, -0.32659319043159485, 0.12134920060634613, -0.5882459282875061, 1.0044152736663818, -0.45777034759521484, -0.3839096426963806, 0.04660499095916748, -0.6352114677429199, 0.23337486386299133, 0.1879587024450302, 0.21107952296733856, 0.07393446564674377, -0.3936195373535156, 0.8915655016899109, -0.5174813866615295, 1.2193630933761597, -0.3683274984359741, -0.4552280008792877, 0.18875467777252197, 0.16430844366550446, 0.6129985451698303, -0.11836081743240356, -0.055486056953668594, 0.019993584603071213, -0.015709785744547844, -0.5548151731491089, -0.4120205342769623, 0.8668376207351685, -0.6043521165847778, -0.7083321809768677, -0.36544397473335266, -0.8198696374893188, -0.35783588886260986, 0.18928170204162598, 0.6568426489830017, 0.4371832609176636, -0.1678389608860016, 0.3320845067501068, 0.47472989559173584, -0.08005236834287643, 0.5978620648384094, 0.2533879280090332, -0.0819125846028328, -0.44125935435295105, 0.7367697358131409, 0.06106295809149742, 0.099149689078331, 1.0568673610687256, -0.15083613991737366, -0.4022747874259949, -0.2550983428955078, 0.13134020566940308, 0.17637552320957184, -0.9358300566673279, -0.0484389029443264, -0.7346069812774658, -0.06154369190335274, -0.48620742559432983, -0.6898236274719238, -0.21806927025318146, -0.4426495432853699, -0.07448764145374298, -0.12033089995384216, 0.1629958152770996, 0.3090682029724121, -0.02393081784248352, 0.5404878854751587, -0.5858132839202881, 0.38545742630958557, 0.3746052384376526, 0.40474599599838257, -0.11738971620798111, -0.5415520668029785, -0.37078818678855896, -0.14594274759292603, -0.1753387451171875, -0.8859362006187439, 0.6654942035675049, -0.05548238754272461, 0.6468738317489624, 0.5424394607543945, 0.10166208446025848, 0.8415930867195129, -0.5061954855918884, 0.6659627556800842, 0.3232499957084656, -1.129555344581604, 0.34369659423828125, -0.1584218144416809, 0.6930310726165771, 0.5288017988204956, 0.40298160910606384, -0.7392096519470215, -0.18984273076057434, -0.6079873442649841, -0.9692060351371765, 0.8929343223571777, -0.0033104028552770615, 0.1412396878004074, -0.6113114356994629, 0.384161114692688, -0.06594211608171463, 0.02113165333867073, -0.612121045589447, 0.04430375248193741, -0.07001202553510666, -0.41189044713974, -0.2355491816997528, -0.7289425730705261, -0.2609456479549408, -0.05175071954727173, 0.3856567144393921, -0.20834532380104065, 0.6799030900001526, 0.4301896095275879, -0.5428254008293152, -0.0026588805485516787, 0.07953958958387375, 0.8175732493400574, 0.6163365840911865, -0.016453208401799202, 0.40660133957862854, 0.15986064076423645, -0.4366475045681, 0.14677761495113373, -0.26147422194480896, -0.21090558171272278, 0.0745457112789154, 0.4725048542022705, 0.840257465839386, 0.9082252979278564, -0.34257301688194275, 0.5628706812858582, 0.18577459454536438, -0.05047149583697319, -0.255257248878479, -0.03464173898100853, 0.2459835559129715, -0.016187163069844246, 0.21332475543022156, -0.15354768931865692, 0.038886215537786484, -0.7026001811027527, 0.4135032296180725, 0.2383551448583603, -0.627680242061615, -0.22401820123195648, 0.7363847494125366, 0.3390927016735077, -0.6424186825752258, 0.5488864779472351, 0.11957840621471405, -0.4635486900806427, 0.7216574549674988, 0.9414036273956299, 0.8556491732597351, -0.5865996479988098, -0.03474634140729904, 0.43730390071868896, -0.11315727233886719, -0.19460858404636383, 0.45666199922561646, -0.44787079095840454, -0.8841978311538696, -0.41486668586730957, -0.5505766272544861, -0.5889316201210022, 0.012772518210113049, -0.7884722948074341, 0.2251667082309723, -0.43702131509780884, -0.2088911086320877, -0.26966312527656555, -0.43365511298179626, -0.7738180160522461, 0.22558601200580597, 0.5158231258392334, 0.9757872223854065, -0.6150240898132324, 0.9875353574752808, 0.9679380655288696, 0.09518387168645859, -0.43394091725349426, 0.20111152529716492, -0.115897998213768, -0.783885657787323, 0.4635487496852875, 0.5486518740653992, -0.09758467227220535, 0.08587765693664551, -0.9089451432228088, -1.027137279510498, 1.0087999105453491, 0.4278166592121124, -0.8000401854515076, 0.062460195273160934, -0.06700989603996277, 0.22307293117046356, -0.6584863662719727, -0.19911260902881622, 0.4430956244468689, 0.29143157601356506, -0.00617980444803834, -0.6006346344947815, 0.007905476726591587, -0.29531240463256836, 0.1516025960445404, -0.140178382396698, -0.6396945714950562, 0.597551167011261, -0.2711436152458191, -0.3191809058189392, 0.10209967941045761, 0.40536272525787354, 0.3794171214103699, 0.08561336249113083, 0.5077046155929565, 0.49215251207351685, 0.8679169416427612, 0.002453569555655122, 1.474873423576355, -0.5892533659934998, 0.1761564314365387, 1.4549453258514404, -0.33944669365882874, 0.992958128452301, 0.6692999005317688, 0.0032850007992237806, 0.5058118104934692, 0.5224885940551758, 0.3664033114910126, 0.7132967114448547, -0.15861395001411438, -0.2180262804031372, -0.4706689715385437, 0.0776018425822258, -0.09362909197807312, 0.44204631447792053, 0.7306580543518066, -0.37726885080337524, 0.18717370927333832, 0.12001331150531769, 0.08286144584417343, 0.17690938711166382, -0.26846787333488464, 0.8218510150909424, 0.4471002221107483, -0.8900988698005676, 0.6546661853790283, 0.1186317428946495, 0.510918915271759, -0.5716434717178345, 0.06439109891653061, -0.3410707414150238, 0.16295532882213593, 0.017024261876940727, -0.7585711479187012, 0.17636312544345856, -0.1797049343585968, -0.2712714672088623, -0.4137827157974243, 0.41804438829421997, -0.4155793786048889, -0.546980619430542, 0.34081804752349854, 0.12233863770961761, 0.29843226075172424, 0.010980361141264439, -0.30931517481803894, 0.1122196838259697, -0.15151992440223694, -0.3631749153137207, 0.3862003982067108, 0.6860852241516113, -0.36467042565345764, 0.5762124061584473, 0.5116099119186401, -0.34840211272239685, 0.032524801790714264, 0.2681635618209839, 0.47075754404067993, -1.0479463338851929, -1.0114784240722656, -0.8734776973724365, 0.42932260036468506, 0.0077311270870268345, -0.14197924733161926, 0.4081948399543762, 0.323603093624115, 0.8970133662223816, -0.4817334711551666, 0.6815944314002991, 0.01716010272502899, 0.1479119509458542, -0.5764639377593994, 0.3238278329372406, -0.26762479543685913, 0.29868555068969727, -0.09416218847036362, -0.9066694974899292, -0.7402507066726685, 0.7524227499961853, -0.6358527541160583, -0.39289596676826477, 0.7937991619110107, 0.4753417372703552, -0.08101186901330948, -0.5239462852478027, 0.6779314279556274, 0.2868500351905823, 0.06900878250598907, 1.019108772277832, 0.6298456192016602, -0.3961735963821411, 0.36420297622680664, -0.32490965723991394, -0.2098412960767746, -0.41655123233795166, -0.9884805083274841, -0.6599413752555847, -0.5175610780715942, -0.3356480300426483, 0.12248644232749939, -0.17465052008628845, 0.681106686592102, 0.7734093070030212, -1.0093308687210083, -0.2160964012145996, -0.048043761402368546, 0.2235361784696579, -0.5663144588470459, -0.20084454119205475, 0.3817889988422394, -0.6273170113563538, -1.0592823028564453, 0.5203700065612793, 0.528104841709137, -0.08012554794549942, 0.20132635533809662, -0.16480858623981476, -0.5659748315811157, 0.13635273277759552, 0.7129693627357483, 0.5014941692352295, -0.7302535772323608, -0.5130645632743835, 0.19864390790462494, -0.3021649122238159, 0.29135891795158386, 0.9583542346954346, -0.7516838312149048, 0.399685263633728, 0.6259738206863403, 0.49934887886047363, 0.4418658912181854, 0.42295196652412415, 0.8113105297088623, -1.059077262878418, 0.6324037313461304, -0.01425357349216938, 0.6910443902015686, 0.5097894668579102, -0.7490034103393555, 0.5061440467834473, 0.2552702724933624, -0.08727174252271652, -0.5675215125083923, 0.32800114154815674, -1.267425298690796, -0.26528915762901306, 1.0585179328918457, -0.354326993227005, -0.3684486746788025, -0.1056811735033989, -0.34557658433914185, 0.17667697370052338, -0.14072200655937195, 0.7619852423667908, 0.6221138834953308, -0.10757982730865479, -0.3732520639896393, 0.012568929232656956, 0.2920795679092407, 0.5724868178367615, -0.3863605260848999, -0.04194919764995575, 0.1822095811367035, 0.35259392857551575, 0.31200337409973145, 0.8753312826156616, -0.3545248806476593, 0.18439477682113647, -0.03484407439827919, 0.012433440424501896, 0.099034383893013, -0.48540833592414856, -0.3951595723628998, 0.2973562479019165, 0.028707420453429222, -0.6174355149269104 ]
http://arxiv.org/abs/2405.18718v1
http://arxiv.org/pdf/2405.18718v1
Efficient Model-agnostic Alignment via Bayesian Persuasion
2024-05-29T02:57:07
2024-05-29T02:57:07
Fengshuo Bai, Mingzhi Wang, Zhaowei Zhang, Boyuan Chen, Yinda Xu, Ying Wen, Yaodong Yang
cs.CL
cs.CL
With recent advancements in large language models (LLMs), alignment has emerged as an effective technique for keeping LLMs consensus with human intent. Current methods primarily involve direct training through Supervised Fine-tuning (SFT) or Reinforcement Learning from Human Feedback (RLHF), both of which require substantial computational resources and extensive ground truth data. This paper explores an efficient method for aligning black-box large models using smaller models, introducing a model-agnostic and lightweight Bayesian Persuasion Alignment framework. We formalize this problem as an optimization of the signaling strategy from the small model's perspective. In the persuasion process, the small model (Advisor) observes the information item (i.e., state) and persuades large models (Receiver) to elicit improved responses. The Receiver then generates a response based on the input, the signal from the Advisor, and its updated belief about the information item. Through training using our framework, we demonstrate that the Advisor can significantly enhance the performance of various Receivers across a range of tasks. We theoretically analyze our persuasion framework and provide an upper bound on the Advisor's regret, confirming its effectiveness in learning the optimal signaling strategy. Our Empirical results demonstrates that GPT-2 can significantly improve the performance of various models, achieving an average enhancement of 16.1% in mathematical reasoning ability and 13.7% in code generation. We hope our work can provide an initial step toward rethinking the alignment framework from the Bayesian Persuasion perspective.
[ -0.16642391681671143, -0.6960487961769104, 0.751912534236908, -0.2569044828414917, -0.22411420941352844, -0.14478467404842377, -0.33426886796951294, -0.03632276505231857, -0.00569985993206501, 0.22175362706184387, -0.7184227705001831, -0.46989357471466064, -0.5923270583152771, -0.3867879807949066, 0.0023239741567522287, 0.7746014595031738, 0.257791668176651, 0.016202254220843315, 0.14207938313484192, 0.11428621411323547, -0.6324337720870972, -0.04390237480401993, -0.8119626641273499, -0.5860840082168579, 0.44438573718070984, 0.5245603919029236, 0.9185321927070618, 0.9779068231582642, 0.48186227679252625, 0.20653866231441498, 0.09157370030879974, 0.13673608005046844, -0.6380576491355896, 0.01581309176981449, -0.6152915954589844, -0.47160470485687256, -0.4126147925853729, -0.0549706295132637, 0.4657396972179413, 0.5752418637275696, -0.4957202672958374, 0.15144653618335724, 0.12114975601434708, 0.697414219379425, -0.7105696797370911, 0.06105276569724083, -1.0084360837936401, -0.17837029695510864, -0.02855740115046501, -0.026310455054044724, -0.7255272269248962, -0.2787506580352783, 0.21048860251903534, -0.7720857858657837, -0.08374619483947754, 0.15191936492919922, 0.7773442268371582, 0.39122697710990906, -0.5819267630577087, -0.25163453817367554, -0.7626839280128479, 0.8155654072761536, -0.7739294767379761, 0.38480862975120544, 0.05638498067855835, 0.5041846036911011, -0.43367764353752136, -0.09111441671848297, -0.46953484416007996, -0.0762796476483345, 0.06526413559913635, 0.3029255270957947, -0.5708878040313721, 0.17427152395248413, 0.3535342216491699, -0.12949497997760773, -0.5103023052215576, 0.3500003516674042, -0.14930209517478943, -0.23722228407859802, 0.5958533883094788, -0.03443492203950882, -0.13745999336242676, 0.0671597272157669, -0.2809656262397766, -0.22466856241226196, -0.7491891384124756, -0.13150067627429962, 0.5568698644638062, 0.41874369978904724, -0.028774088248610497, 0.6906222701072693, -0.14387457072734833, 0.8582978844642639, 0.7246055006980896, -0.1275286078453064, -0.3594357371330261, -0.07433965802192688, -0.0685109794139862, 0.2881324887275696, 0.7900190353393555, 0.4591918885707855, 0.021548276767134666, 0.05094945430755615, -0.11184225231409073, 0.5444252490997314, 0.5227510929107666, -0.768476665019989, -0.3117576837539673, 0.1029454693198204, -0.5152062177658081, -0.1734803169965744, 0.04699666425585747, -0.7634612321853638, -0.4576604962348938, -0.4770614802837372, 0.7934683561325073, -0.49679139256477356, -0.28580984473228455, 0.27712559700012207, 0.08722894638776779, 0.4430200457572937, 0.41935011744499207, -1.2737724781036377, 0.17732183635234833, 1.1194753646850586, 0.7668494582176208, 0.1501348465681076, 0.14781644940376282, -0.8392623662948608, 0.604957103729248, -0.5769075751304626, 0.6683467030525208, -0.531535267829895, -0.22998349368572235, -0.18201933801174164, -0.3953024744987488, -0.07916359603404999, -0.21881359815597534, 0.5165804624557495, -0.3629058301448822, 0.12675908207893372, -0.3375263512134552, -0.7131534814834595, -0.10258878767490387, 0.09969287365674973, -0.2275395542383194, 0.5727941989898682, -0.09279751777648926, -0.5450512170791626, 0.3816012144088745, -0.5511465668678284, -0.2582515478134155, -0.3275969922542572, -0.3565754294395447, -0.5282340049743652, 0.22982332110404968, 0.4501868784427643, 0.43211138248443604, -0.20892176032066345, 0.25679007172584534, -0.5375518798828125, -0.3285890519618988, 0.11557605117559433, -0.34847787022590637, 0.33206993341445923, 0.32058942317962646, -0.5991824269294739, 0.2719899117946625, -0.6461480855941772, -0.019718455150723457, -0.037540484219789505, -0.08809392154216766, -0.33565446734428406, 0.3171859085559845, -0.7329633235931396, 0.04914333298802376, 0.20704111456871033, -0.5807231664657593, 0.5922577381134033, -0.4745124876499176, 0.46014463901519775, 0.9147170186042786, -0.1082877367734909, 0.8470979928970337, -0.4106433689594269, 0.32754936814308167, -0.1489909589290619, 0.1411001980304718, 0.155563086271286, -0.6148816347122192, -0.4125150144100189, -0.28654590249061584, 0.32465821504592896, 0.40218183398246765, -0.4895657002925873, 0.4431903660297394, -0.6470372676849365, -0.5753212571144104, -0.9074916243553162, 0.1329542100429535, 0.4308042526245117, 0.6562296748161316, 0.24946683645248413, -0.005730725824832916, -0.18237993121147156, -1.1749244928359985, -0.3156922459602356, -0.4260806143283844, 0.007320031523704529, -0.04906962439417839, 0.2261214554309845, -0.2025739997625351, 0.8970258235931396, -0.5644283294677734, -0.04631967842578888, -0.09249495714902878, 0.14152447879314423, 0.36055877804756165, 0.5595661997795105, 0.32010596990585327, -0.4181215465068817, -0.44698095321655273, 0.44878238439559937, -0.3148469030857086, -0.2067299485206604, -0.27365371584892273, -0.5298140048980713, 0.0827021449804306, 0.07485150545835495, -0.789074182510376, 0.5889353156089783, 0.5015363097190857, -0.1990194171667099, 0.36197471618652344, -0.12368079274892807, 0.0706920474767685, -0.9458304047584534, -0.08705436438322067, 0.2232883721590042, -0.18362602591514587, -0.6838611364364624, -0.23385170102119446, 0.19615846872329712, 0.037630073726177216, 0.20558232069015503, 0.6054140329360962, -0.6199544668197632, 0.029205504804849625, -0.5273173451423645, 0.27048152685165405, -0.3131013810634613, 0.412416011095047, 0.29289892315864563, 0.6250683665275574, 0.23343196511268616, -0.34912821650505066, 0.0887172743678093, 0.5038431286811829, -0.2535989284515381, 0.9050602316856384, -0.4827837347984314, 0.23142486810684204, -0.060215894132852554, 0.17267359793186188, -1.154450535774231, -0.1748824417591095, 0.5840176939964294, -0.4905221462249756, 0.3977525532245636, -0.5571651458740234, -0.12043903768062592, -0.18389838933944702, -0.0806003287434578, -0.02484009973704815, 0.5996747016906738, -0.6395220160484314, 0.6476758122444153, 0.1375766396522522, -0.2527249753475189, -0.6543282270431519, -0.45655450224876404, -0.08817338943481445, -0.29997408390045166, -0.6045502424240112, 0.4127856492996216, 0.11063659936189651, -0.13351523876190186, -0.24388960003852844, -0.4474058151245117, 0.5412161946296692, -0.1366012543439865, 0.20169031620025635, 0.34188026189804077, -0.19709452986717224, 0.04328523203730583, 0.3580315411090851, -0.2905355393886566, -0.03602820262312889, -0.5421733260154724, 0.21245667338371277, 0.014888753183186054, -0.7900146245956421, -0.552057147026062, 0.3500142991542816, 0.18833854794502258, 0.170279860496521, 0.6281786561012268, 0.5432453751564026, -0.2696349024772644, -0.12969328463077545, -0.766535758972168, -0.5165714025497437, -0.45549723505973816, 0.29892978072166443, -0.3441883325576782, -0.7556037902832031, 0.1231328547000885, -0.22815944254398346, 0.16449695825576782, 0.1594744771718979, 0.586799681186676, 0.2410937398672104, 1.5900074243545532, 0.6020258665084839, -0.25985103845596313, 0.4007938802242279, 0.10001940280199051, 0.3970519006252289, -0.6792799830436707, -0.00617287028580904, -0.447630375623703, -0.5356683731079102, -0.34142687916755676, -0.2610046863555908, 0.2627456784248352, 0.2630522847175598, -0.6233351230621338, 0.4156339466571808, -0.8480949401855469, 0.2124757319688797, 0.6737425923347473, 0.2620226740837097, 0.25073057413101196, 0.1915428638458252, -0.0841991975903511, -0.16591280698776245, -0.8242150545120239, -0.727338433265686, 1.172128677368164, 0.4346454441547394, 1.053553819656372, 0.48877495527267456, 0.5649094581604004, 0.0309113971889019, 0.43243470788002014, -0.8456500172615051, 0.6203942894935608, 0.19327931106090546, -0.47760194540023804, -0.27043741941452026, -0.5784288048744202, -0.7241780161857605, 0.3171718418598175, -0.5242422223091125, -1.056277871131897, 0.4234016537666321, 0.4711320102214813, -0.37308746576309204, 0.1575031876564026, -0.8668939471244812, 1.0281111001968384, -0.34166064858436584, -0.5054531693458557, -0.4958527088165283, -0.7371998429298401, 0.19029435515403748, -0.06326593458652496, 0.03047751821577549, -0.10554482787847519, -0.17832958698272705, 0.7041434049606323, -0.3773735463619232, 0.941641092300415, -0.3819224536418915, -0.35164228081703186, -0.05839274451136589, 0.17818143963813782, 0.9315764904022217, 0.018330981954932213, -0.1190604642033577, -0.22122715413570404, 0.019900565966963768, -0.3541061580181122, -0.7949237823486328, 0.4577052891254425, -0.7755764722824097, -0.8529706001281738, -0.32544055581092834, -0.47409188747406006, -0.3645634353160858, 0.17296092212200165, 0.20279721915721893, 0.14286187291145325, -0.0760430172085762, 0.035047631710767746, 0.5687553882598877, 0.18183276057243347, -0.04174229875206947, 0.6367264986038208, -0.19833099842071533, -0.5919924974441528, 0.8968036770820618, -0.10253725945949554, 0.4687124490737915, 0.6009349226951599, 0.2405412644147873, -0.4102739095687866, -0.7890859842300415, -0.4223702549934387, 0.3740854561328888, -0.5876157879829407, -0.232847660779953, -0.3340439200401306, 0.09295867383480072, -0.39240339398384094, -0.2569763660430908, -0.334823340177536, -0.43497905135154724, -0.0760759562253952, -0.052485886961221695, 0.06991147249937057, 0.5352656245231628, -0.23112614452838898, 0.9738005995750427, -0.4249403178691864, 0.10911499708890915, 0.3626162111759186, 0.024469738826155663, -0.09371272474527359, -0.6393017172813416, -0.05208258703351021, 0.4321894645690918, -0.6685792207717896, -1.0140949487686157, -0.019764317199587822, 0.1273442804813385, 0.6809396743774414, 0.8724038004875183, 0.016148481518030167, 0.86833256483078, -0.3048085570335388, 0.32091835141181946, 0.4152786135673523, -0.9778298139572144, 0.723716676235199, -0.5715876221656799, 0.193120539188385, 0.5117624998092651, 0.33106282353401184, -0.23531241714954376, -0.2075236439704895, -0.5578544735908508, -0.3189462423324585, 0.6395746469497681, 0.11397761851549149, -0.23625360429286957, 0.1518479883670807, 0.6016591191291809, 0.13533928990364075, 0.38023266196250916, -0.6375924944877625, 0.11665663868188858, -0.040106359869241714, -0.6531764268875122, -0.025632046163082123, -0.09546632319688797, -0.4374037981033325, -0.16572311520576477, 1.042358636856079, -0.5122575759887695, 0.3406248390674591, -0.16662725806236267, 0.06598524004220963, -0.22831684350967407, 0.3504408299922943, 0.6135833263397217, 0.7741115093231201, -0.25485959649086, -0.0765472799539566, -0.15173880755901337, -0.2695017457008362, 0.4174962043762207, 0.3397422134876251, -0.37112587690353394, -0.29275816679000854, 0.2237931489944458, 0.7820712327957153, 0.21816110610961914, -0.1718325912952423, 0.6084800362586975, 0.17384371161460876, -0.36227530241012573, 0.21358022093772888, 0.16685861349105835, 0.17586557567119598, 0.5094971060752869, 0.25381794571876526, 0.11495079100131989, -0.06306217610836029, -0.37165290117263794, -0.02941926382482052, 1.0071024894714355, -0.3633306920528412, -0.27786052227020264, 0.8197401165962219, 0.01577894762158394, -0.1681925505399704, 0.35017064213752747, -0.10304442793130875, -0.2789560854434967, 0.1086094081401825, 0.6488105654716492, 0.6077167987823486, -0.27468180656433105, 0.4103853702545166, 0.30617478489875793, 0.3451073467731476, -0.5020372271537781, -0.031110433861613274, -0.10736703127622604, -0.8216422200202942, -0.5129595994949341, -0.4328027665615082, -0.5640392899513245, -0.1897583305835724, -0.6989637613296509, 0.3480352461338043, -0.441011518239975, -0.5298270583152771, 0.16799257695674896, 0.108045294880867, -0.2771643400192261, -0.08896072208881378, 0.0660514310002327, 0.727179229259491, -0.6373936533927917, 0.7181373238563538, 0.733024537563324, 0.009325215592980385, -0.9688692688941956, -0.04703748598694801, 0.3458661139011383, -0.9346624612808228, 0.16856679320335388, 0.16695444285869598, -0.20672835409641266, 0.17226456105709076, -0.5620286464691162, -0.720000147819519, 1.0251657962799072, 0.7026052474975586, -1.12282133102417, -0.03836951032280922, -0.1362031251192093, 0.31799033284187317, -0.6583566069602966, 0.23906053602695465, 0.5106685757637024, 0.5136449933052063, 0.20955492556095123, -0.6000766158103943, 0.2421301007270813, -0.04430932551622391, 0.04311063513159752, 0.4346105754375458, -0.5916104912757874, 0.25043800473213196, -0.39382171630859375, -0.22121308743953705, 0.25231343507766724, 0.9732441306114197, 0.46862268447875977, 0.19562123715877533, 0.5484090447425842, 0.5757251977920532, 0.8332850933074951, -0.20065315067768097, 0.4895623028278351, -0.2826341390609741, 0.19456151127815247, 1.058706521987915, -0.2887105345726013, 0.8728721141815186, 0.5704814791679382, -0.11710049211978912, 0.4591499865055084, 0.6025866270065308, 0.02577292174100876, 0.6683997511863708, 0.21688373386859894, -0.11881110817193985, -0.4808853268623352, 0.33438777923583984, -0.2792419195175171, 0.15982647240161896, 0.3175342381000519, -0.02919495664536953, -0.11640192568302155, -0.14724397659301758, 0.06230294331908226, 0.2973370850086212, -0.30928781628608704, 0.9135914444923401, 0.13069450855255127, -1.0109221935272217, 0.3196466565132141, -0.036497678607702255, 0.5760005712509155, -0.8011473417282104, 0.03141608089208603, 0.1663541942834854, 0.5029737949371338, -0.06655213236808777, -0.5879031419754028, 0.04570385068655014, -0.3034907579421997, -0.23247751593589783, 0.092252217233181, 0.7281696796417236, -0.5953554511070251, -0.4111977815628052, 0.19939996302127838, 0.29446524381637573, -0.22495247423648834, -0.062197837978601456, -0.8117159605026245, 0.10656850039958954, 0.10877151787281036, -0.10659287124872208, 0.4166967570781708, 0.3326684236526489, 0.021411433815956116, 0.7137171626091003, 0.6593517661094666, 0.3620387613773346, -0.2396102249622345, -0.18671679496765137, 0.6121665239334106, -0.41569602489471436, -0.6173619627952576, -0.9419478178024292, 0.2975882887840271, -0.3096027970314026, 0.06700695306062698, 0.6390443444252014, 0.32239124178886414, 0.602250337600708, 0.10982710868120193, 0.8151169419288635, 0.19399099051952362, 0.5048168301582336, -0.6018723845481873, 0.26414403319358826, -0.3762809634208679, 0.5046631097793579, -0.3859558701515198, -1.0849512815475464, 0.04200476408004761, 0.8495756387710571, -0.8461892008781433, 0.0011589110363274813, 0.3090532720088959, 1.0972949266433716, -0.2066446989774704, 0.21375781297683716, 0.034502483904361725, 0.11016581952571869, 0.4420666992664337, 0.8438407778739929, 0.8275776505470276, -0.1547757238149643, 0.6565870642662048, -0.15178242325782776, -0.5064471364021301, -0.2849477529525757, -0.9965981245040894, -0.8567286133766174, -0.30979982018470764, -0.4810161888599396, -0.4365800619125366, 0.35788917541503906, 1.0371817350387573, 0.741152822971344, -0.5572068095207214, -0.19943897426128387, -0.02436591312289238, -0.02600785531103611, -0.46859580278396606, -0.14406947791576385, 0.3435545265674591, -0.015055613592267036, -0.41417691111564636, 0.28055891394615173, 0.40523770451545715, 0.16786448657512665, 0.057222213596105576, -0.25813546776771545, -0.12515830993652344, 0.14534872770309448, 0.30734607577323914, 0.3644666373729706, -0.8217074871063232, -0.6498146057128906, -0.25694364309310913, -0.10810507088899612, -0.013611411675810814, 0.5455362796783447, -0.47747090458869934, 0.30304986238479614, 0.13412068784236908, 0.704490065574646, 0.36349523067474365, 0.6002532839775085, 0.9110406041145325, -0.3099839985370636, -0.12389036267995834, -0.03244428709149361, 0.20311333239078522, 0.2510424256324768, -0.3902599811553955, 0.4200224280357361, -0.020484160631895065, -0.7464746832847595, -0.6382243633270264, 0.3749730587005615, -1.2897846698760986, -0.17061731219291687, 1.1249306201934814, 0.1842310130596161, -0.19930732250213623, 0.21653205156326294, -0.43074068427085876, 0.1351449340581894, -0.6784253120422363, 0.7202190160751343, 0.6532835960388184, -0.07004270702600479, -0.12868890166282654, -0.37093695998191833, 0.46976497769355774, 0.6918310523033142, -0.45091307163238525, 0.05255495756864548, 0.6391245722770691, 0.2529875934123993, 0.08735723793506622, 0.7063146829605103, 0.18361790478229523, 0.2613961100578308, -0.0624544732272625, -0.24912820756435394, 0.09350914508104324, -0.11372939497232437, -0.30291128158569336, 0.006293823476880789, 0.0736357793211937, -0.08270982652902603 ]
http://arxiv.org/abs/2405.18711v1
http://arxiv.org/pdf/2405.18711v1
Calibrating Reasoning in Language Models with Internal Consistency
2024-05-29T02:44:12
2024-05-29T02:44:12
Zhihui Xie, Jizhou Guo, Tong Yu, Shuai Li
cs.AI
cs.AI, cs.CL
Large language models (LLMs) have demonstrated impressive capabilities in various reasoning tasks, aided by techniques like chain-of-thought (CoT) prompting that elicits verbalized reasoning. However, LLMs often generate text with obvious mistakes and contradictions, raising doubts about their ability to robustly process and utilize generated rationales. In this work, we investigate CoT reasoning in LLMs through the lens of internal representations, focusing on how these representations are influenced by generated rationales. Our preliminary analysis reveals that while generated rationales improve answer accuracy, inconsistencies emerge between the model's internal representations in middle layers and those in final layers, potentially undermining the reliability of their reasoning processes. To address this, we propose internal consistency as a measure of the model's confidence by examining the agreement of latent predictions decoded from intermediate layers. Extensive empirical studies across different models and datasets demonstrate that internal consistency effectively distinguishes between correct and incorrect reasoning paths. Motivated by this, we propose a new approach to calibrate CoT reasoning by up-weighting reasoning paths with high internal consistency, resulting in a significant boost in reasoning performance. Further analysis uncovers distinct patterns in attention and feed-forward modules across layers, providing insights into the emergence of internal inconsistency. In summary, our results demonstrate the potential of using internal representations for self-evaluation of LLMs.
[ -0.054138340055942535, -0.4491210877895355, 1.005791187286377, 0.14585675299167633, 0.054187461733818054, 0.1887064427137375, -0.48721861839294434, -0.233375683426857, -0.22193469107151031, 0.5885841846466064, -0.25158002972602844, -0.24840869009494781, -0.4929310977458954, 0.15952233970165253, -0.1111927330493927, 0.629391074180603, -0.505649983882904, 0.2648334801197052, -0.4650888741016388, -0.07380220293998718, -0.7208685874938965, -0.6870318055152893, -0.5650207996368408, -0.705080509185791, 0.3962237536907196, 0.33918309211730957, 0.710406482219696, 0.4908345937728882, 0.2076992392539978, 0.2859441041946411, -0.02551852911710739, 0.6775773167610168, -0.31467336416244507, 0.3605181574821472, -0.38011887669563293, -0.6312918663024902, -0.195672869682312, -0.1778610497713089, 0.787470281124115, 0.40463680028915405, -0.059216681867837906, -0.07929304242134094, 0.35939887166023254, 0.6428087949752808, -0.7033814191818237, 0.1549341082572937, -0.9959816932678223, -0.19406118988990784, -0.03778338432312012, -0.24865879118442535, -0.7431632876396179, -0.22997111082077026, -0.09404569864273071, -0.27324673533439636, 0.0014760142657905817, -0.07633674144744873, 0.5708715319633484, 0.16494672000408173, -0.4561060965061188, -0.4742954671382904, -0.7097979187965393, 0.6390665173530579, -1.0737783908843994, 0.3544587194919586, 0.515874981880188, 0.3161773085594177, -0.5312654972076416, -0.44432663917541504, -0.5378268361091614, -0.6026594638824463, -0.11479058861732483, -0.07887420058250427, 0.15375588834285736, -0.09387919306755066, 0.1741691529750824, 0.08631421625614166, -0.2892656922340393, -0.07349125295877457, 0.07077790051698685, -0.23790040612220764, 0.4490529000759125, 0.08394704014062881, 0.20642653107643127, 0.1486855447292328, -0.3234352171421051, -0.16821953654289246, -0.9903771281242371, 0.1449197679758072, 0.49589887261390686, 0.3242493271827698, 0.08996804058551788, 0.879980206489563, -0.044714782387018204, 0.5083732604980469, 0.3788969814777374, -0.19231200218200684, 0.04570823162794113, -0.3653499186038971, -0.27742958068847656, 0.2909546196460724, 0.5161606073379517, 0.1935243457555771, 0.5453628897666931, -0.09990538656711578, -0.4258730113506317, 0.1341576874256134, 0.4416920840740204, -0.4132220447063446, -0.25362905859947205, 0.3508625030517578, -0.046997640281915665, -0.10902508348226547, 0.16021296381950378, -0.15102185308933258, -0.43621739745140076, -0.5094165205955505, 0.5202571153640747, -0.4413681626319885, -0.21135249733924866, 0.1739806979894638, 0.19928471744060516, 0.12675368785858154, 0.5832121968269348, -0.6205675005912781, 0.22422200441360474, 0.6311787366867065, 0.5701133012771606, 0.08980110287666321, -0.21809159219264984, -0.3650701344013214, 0.5509042143821716, -0.6567153334617615, 0.9488472938537598, -0.413814902305603, -0.003190587740391493, -0.1668778508901596, -0.07782991230487823, -0.11574426293373108, -0.6611295342445374, 0.5030112862586975, -0.22135454416275024, -0.0002988209598697722, -0.55805504322052, -0.7874953150749207, -0.010559558868408203, 0.5161468386650085, -0.33035847544670105, 1.1234203577041626, -0.03592919558286667, -0.7682952284812927, 0.15660148859024048, 0.015201757661998272, 0.1531306803226471, -0.15826928615570068, -0.6175987124443054, -0.08977073431015015, 0.24293798208236694, 0.3063870668411255, 0.18383927643299103, -0.3376356065273285, 0.34692737460136414, -0.39297667145729065, -0.3324810564517975, 0.6630944609642029, -0.6607558131217957, 0.6536084413528442, -0.016028806567192078, -0.4514828622341156, 0.1909886747598648, -0.4922409653663635, 0.3843792676925659, 0.021221468225121498, -0.07641680538654327, -0.20184819400310516, 0.11271428316831589, -0.662212610244751, 0.23140695691108704, 0.23238500952720642, -0.5228256583213806, 0.23615649342536926, -0.27218151092529297, 0.29149386286735535, 1.0764670372009277, 0.027862289920449257, 0.4044536054134369, -0.45155999064445496, 0.2033967822790146, 0.4326176047325134, -0.17582111060619354, -0.4679948091506958, -0.4757913649082184, -0.7537608742713928, 0.08309203386306763, 0.07547128945589066, 0.230085089802742, -0.40910249948501587, 0.33335790038108826, -0.09176839888095856, -0.39266425371170044, -0.48894771933555603, 0.2516523003578186, 0.413259357213974, 0.56646329164505, 0.2337215095758438, -0.035791877657175064, -0.3859200179576874, -0.771670401096344, -0.3950642943382263, -0.3487519323825836, 0.05298741161823273, 0.11496337503194809, 0.360411673784256, -0.2807782292366028, 0.8403225541114807, -0.07487956434488297, -0.11794960498809814, -0.056460797786712646, 0.0919710099697113, 0.00019851776596624404, 0.5919392108917236, 0.2507118880748749, -0.23813503980636597, -0.4928833842277527, 0.10171480476856232, -0.8044936060905457, -0.2002825140953064, -0.24530988931655884, -0.4419316351413727, 0.2446245402097702, 0.4394553601741791, -0.5512112379074097, 0.4253751337528229, 0.49419403076171875, -0.2740781009197235, 0.7250843048095703, -0.5042230486869812, 0.16617923974990845, -0.6963108777999878, -0.2046518176794052, -0.01738365925848484, -0.28808045387268066, -0.21782438457012177, -0.00048194764531217515, 0.30033591389656067, 0.5224694013595581, -0.03863741457462311, 0.6533870697021484, -0.6111370921134949, -0.04576682671904564, -0.3332577049732208, 0.26779043674468994, 0.40558040142059326, 0.32188743352890015, -0.14477954804897308, 0.9386793375015259, 0.3711662292480469, -0.43039023876190186, 0.1744782030582428, -0.14753001928329468, -0.3390876054763794, 0.6614882349967957, -0.5860708951950073, 0.4222748577594757, -0.2069554477930069, 0.5971941947937012, -1.0962483882904053, -0.15267407894134521, 0.10217840224504471, -0.27455493807792664, 0.2244008481502533, -0.15959987044334412, -0.8422646522521973, -0.1370415836572647, -0.1765664517879486, 0.5289985537528992, 0.23327983915805817, -0.5430921316146851, 0.6907333135604858, 0.2058468610048294, 0.28901416063308716, -0.6308061480522156, -0.7377788424491882, -0.20987091958522797, 0.15332257747650146, -0.7024585604667664, 0.1701587587594986, -0.31555864214897156, -0.5001481175422668, -0.05790560320019722, -0.40618833899497986, 0.010787407867610455, -0.33080345392227173, 0.1894945651292801, 0.10082904994487762, -0.40151187777519226, 0.25823473930358887, -0.14792802929878235, 0.2300487607717514, 0.1828090399503708, -0.37747758626937866, 0.5065184831619263, -0.3073560297489166, -0.64178466796875, -0.4166988730430603, 0.0922735258936882, 0.5846927762031555, 0.016885749995708466, 0.7028920650482178, 0.13573668897151947, -0.476580947637558, -0.3440488874912262, -0.8134254217147827, -0.14806117117404938, -0.4687117040157318, -0.2248021960258484, -0.5464376211166382, -0.3425642251968384, 0.8470130562782288, 0.078339122235775, -0.05357613414525986, 0.460872083902359, 0.5550605058670044, -0.17882733047008514, 1.2720149755477905, 0.2461574524641037, 0.34157437086105347, 0.017059139907360077, -0.1754785180091858, 0.11406003683805466, -1.2492893934249878, -0.5576234459877014, -0.38726097345352173, -0.030260294675827026, -0.3835192918777466, -0.565119206905365, 0.20154155790805817, 0.3058032989501953, -0.7365559935569763, 0.1741553246974945, -0.4531668424606323, 0.7257899641990662, 0.2833150327205658, 0.22702810168266296, 0.37697404623031616, -0.06617140769958496, -0.732951283454895, 0.009124025702476501, -0.5504683256149292, -0.8735003471374512, 0.9710062146186829, 0.3731253147125244, 1.0535740852355957, 0.02021527662873268, 0.5405639410018921, 0.0686861127614975, 0.4459308385848999, -0.29772788286209106, 0.3523452877998352, 0.03919060528278351, -0.44283702969551086, 0.023478161543607712, -0.5801575183868408, -0.5677618980407715, 0.3102579116821289, -0.01606440357863903, -0.8936354517936707, 0.21901017427444458, 0.3064703643321991, -0.09625297039747238, 0.579795777797699, -0.6842196583747864, 0.7082135081291199, -0.5536550283432007, -0.47725558280944824, -0.07839278876781464, -0.39675799012184143, 0.3716391623020172, 0.019503649324178696, 0.016483047977089882, -0.3333148658275604, 0.1533731371164322, 0.1298031210899353, -0.49218928813934326, 0.8602969646453857, 0.0917530432343483, -0.5940864086151123, 0.5753791332244873, 0.4481576383113861, 0.7228298187255859, 0.09428027272224426, -0.3827533423900604, 0.20591573417186737, 0.07114285975694656, -0.3204905092716217, -0.7938438653945923, 0.9205036163330078, -0.7459366917610168, -0.6968365907669067, -0.5195934176445007, -0.5663425922393799, -0.4301624596118927, 0.029368465766310692, 0.1369277387857437, 0.5255701541900635, 0.184616357088089, 0.08105005323886871, 0.5811734199523926, 0.04403115063905716, 0.08247052133083344, 0.20450825989246368, -0.29754361510276794, -0.3973241448402405, 0.3838256299495697, 0.23591354489326477, 0.610176146030426, 0.2749329209327698, 0.2112177163362503, -0.47323372960090637, -0.26186254620552063, -0.6885396838188171, 0.2910001873970032, -1.0907902717590332, -0.4690989553928375, -0.33727747201919556, -0.4448642432689667, -0.3120090663433075, -0.1921514868736267, -0.5426949858665466, -0.11870023608207703, -0.2107769399881363, 0.07731364667415619, 0.029452592134475708, 0.9720450639724731, 0.18857744336128235, 0.12023434787988663, -0.5452313423156738, 0.016156204044818878, 0.04721640795469284, 0.43560582399368286, 0.3792441785335541, -0.6747576594352722, -0.22729690372943878, 0.5980839133262634, -0.3701394498348236, -0.8473161458969116, 0.09928594529628754, -0.10913371294736862, 0.7591585516929626, 0.23006460070610046, -0.07541138678789139, 0.8936833143234253, -0.4779694974422455, 0.6832506656646729, 0.13026368618011475, -1.0809855461120605, 0.5182281136512756, -0.17914597690105438, 0.6377822756767273, 0.5266708731651306, 0.04526200890541077, -0.1583993136882782, -0.72475266456604, -0.5650606751441956, -0.6173540949821472, 0.36353087425231934, 0.20906786620616913, 0.07909815013408661, -0.14372451603412628, 0.5377541780471802, 0.08959831297397614, 0.015081490390002728, -0.786141037940979, 0.07846389710903168, -0.13893771171569824, -0.36472922563552856, 0.2056373506784439, -0.28199538588523865, -0.12401875108480453, -0.15092593431472778, 0.6475743055343628, -0.39213424921035767, 0.1211823895573616, 0.39186444878578186, -0.08242015540599823, -0.47213274240493774, 0.11758773028850555, 0.6365699172019958, 1.0696338415145874, -0.2402692288160324, 0.6091863512992859, 0.13923540711402893, -0.14274422824382782, 0.31487128138542175, -0.4336620271205902, -0.040403809398412704, -0.10597406327724457, 0.39217492938041687, 0.48295265436172485, 0.3834303915500641, -0.7106822729110718, 0.44968467950820923, -0.027943316847085953, 0.23195107281208038, -0.607137143611908, 0.07829310745000839, 0.061211101710796356, 0.3237573802471161, 0.26136040687561035, 0.2604033350944519, -0.40144601464271545, -0.8066559433937073, 0.06500866264104843, 0.5695485472679138, -0.15666629374027252, -0.19173772633075714, 0.48316192626953125, -0.2201506793498993, -0.08552173525094986, 0.6838712096214294, -0.015408718027174473, -0.3947194218635559, 0.5750365853309631, 0.7430191040039062, 0.9230572581291199, -0.19205407798290253, 0.020347751677036285, 0.3609769344329834, 0.5435827374458313, -0.536435604095459, 0.21298110485076904, 0.053466301411390305, -1.0753055810928345, -0.5846357941627502, -0.489810049533844, -0.5565417408943176, 0.029897408559918404, -0.36430713534355164, 0.24648600816726685, -0.4966638684272766, -0.1575508415699005, -0.3063826858997345, -0.20577508211135864, -0.551200270652771, 0.21310918033123016, 0.3567633330821991, 0.8032661080360413, -0.416587769985199, 1.099664330482483, 0.47380712628364563, -0.5118052363395691, -1.0900682210922241, 0.3240543007850647, -0.14677853882312775, -0.690304696559906, 0.6084590554237366, 0.3146224915981293, -0.5913853049278259, -0.3844996690750122, -0.5738744735717773, -1.1299216747283936, 0.9944272041320801, 0.8143994808197021, -0.6008370518684387, -0.12910762429237366, 0.10917928814888, 0.6053469777107239, -0.8602010607719421, 0.5553733706474304, 0.10029606521129608, 0.4277288615703583, 0.17284171283245087, -0.9278901815414429, 0.26567786931991577, 0.09453105926513672, 0.14014677703380585, -0.06017189100384712, -0.3491145968437195, 0.9885737895965576, -0.42662540078163147, -0.3080391585826874, 0.05210128426551819, 0.5923948287963867, 0.66780024766922, 0.15918314456939697, 0.32826489210128784, 0.500571608543396, 0.9036620855331421, -0.11889107525348663, 1.143974781036377, -0.3892863690853119, 0.11133904755115509, 1.5432066917419434, -0.5769351124763489, 0.9789286851882935, 0.3669596016407013, 0.12633028626441956, 1.0690900087356567, 0.38384488224983215, 0.2615583837032318, 0.2692285180091858, 0.2108858972787857, -0.17322297394275665, -0.2847403287887573, 0.09388168156147003, -0.2185298204421997, 0.35132864117622375, 0.37033581733703613, -0.4482405185699463, -0.1608339101076126, -0.3690301477909088, -0.08055770397186279, 0.2501541078090668, -0.35438990592956543, 0.6699917316436768, 0.15990377962589264, -0.9015510082244873, 0.7156009674072266, -0.10331559181213379, 0.25118380784988403, -0.5858557820320129, -0.22729413211345673, -0.08003199845552444, 0.5186662077903748, -0.16135622560977936, -1.1644231081008911, 0.24418123066425323, -0.10881923139095306, -0.11791934818029404, -0.2581818997859955, 0.7005598545074463, -0.625184178352356, -0.4421979784965515, 0.40113967657089233, 0.44576749205589294, 0.039153050631284714, -0.1840139627456665, -0.5334885716438293, 0.3473249673843384, -0.10550830513238907, -0.07681174576282501, 0.22851954400539398, 0.8211307525634766, -0.0913579910993576, 0.7257578372955322, 0.5242037773132324, 0.18831227719783783, 0.13004867732524872, 0.19138383865356445, 0.738646924495697, -0.544838011264801, -0.22314034402370453, -0.9950131177902222, 0.5615163445472717, -0.11275458335876465, -0.279890239238739, 0.8245388865470886, 0.3789147436618805, 0.968390703201294, 0.18566158413887024, 0.5328483581542969, 0.44122257828712463, 0.13691118359565735, -0.6512385010719299, 0.3815653622150421, -0.3503462076187134, 0.6574202179908752, 0.025935333222150803, -0.8982945084571838, 0.013684602454304695, 0.8667736649513245, -0.3144168555736542, 0.1320773810148239, 0.8576102256774902, 0.7031476497650146, -0.09320807456970215, -0.013513335026800632, 0.2574368417263031, 0.5039168000221252, 0.21254712343215942, 0.4762565493583679, 0.9142168760299683, -0.2976360321044922, 0.20279347896575928, -0.3562725782394409, -0.06487416476011276, 0.03849465399980545, -1.0644190311431885, -0.7237686514854431, -0.4679163992404938, -0.23244448006153107, -0.6984122395515442, 0.018524937331676483, 1.065578579902649, 0.5787217617034912, -0.84724360704422, -0.5202630162239075, -0.47960710525512695, 0.16281162202358246, -0.18166063725948334, -0.256439208984375, 0.1598305106163025, -0.5921609997749329, -0.3057838976383209, 0.394290030002594, 0.400320440530777, 0.010042198933660984, -0.718903660774231, -0.11513694375753403, -0.1695995330810547, 0.6021252274513245, 0.5202621817588806, -0.02340579591691494, -1.22919499874115, -0.5169365406036377, -0.14450614154338837, -0.3833649456501007, 0.32476305961608887, 0.9095442295074463, -0.9468798637390137, 0.5821371674537659, 0.5351521968841553, 0.36838433146476746, 0.33692029118537903, 0.0013923400547355413, 0.8260530233383179, -0.7147311568260193, -0.22852811217308044, 0.2347264289855957, 0.6456360816955566, 0.6770034432411194, -0.5091857314109802, 0.4782094955444336, -0.1266338974237442, -0.7225081324577332, -1.0068175792694092, 0.30414676666259766, -0.8289280533790588, -0.25634390115737915, 1.1786493062973022, -0.3215934932231903, -0.20065195858478546, 0.14321859180927277, -0.35802707076072693, 0.07289084792137146, -0.24400679767131805, 0.7795073986053467, 0.8959000706672668, -0.31870895624160767, -0.21777287125587463, -0.4621371924877167, 0.33677512407302856, 0.27863460779190063, -0.7193762063980103, 0.3961944878101349, 0.35175570845603943, 0.35897770524024963, 0.2823061943054199, 0.6390904188156128, -0.23775748908519745, -0.08470089733600616, -0.08646702766418457, -0.24920612573623657, 0.22025270760059357, -0.3026767373085022, -0.09458904713392258, 0.011534643359482288, 0.1910574734210968, 0.42212262749671936 ]
http://arxiv.org/abs/2405.18688v1
http://arxiv.org/pdf/2405.18688v1
Efficient Preference-based Reinforcement Learning via Aligned Experience Estimation
2024-05-29T01:49:20
2024-05-29T01:49:20
Fengshuo Bai, Rui Zhao, Hongming Zhang, Sijia Cui, Ying Wen, Yaodong Yang, Bo Xu, Lei Han
cs.LG
cs.LG, cs.AI, cs.CL
Preference-based reinforcement learning (PbRL) has shown impressive capabilities in training agents without reward engineering. However, a notable limitation of PbRL is its dependency on substantial human feedback. This dependency stems from the learning loop, which entails accurate reward learning compounded with value/policy learning, necessitating a considerable number of samples. To boost the learning loop, we propose SEER, an efficient PbRL method that integrates label smoothing and policy regularization techniques. Label smoothing reduces overfitting of the reward model by smoothing human preference labels. Additionally, we bootstrap a conservative estimate $\widehat{Q}$ using well-supported state-action pairs from the current replay memory to mitigate overestimation bias and utilize it for policy learning regularization. Our experimental results across a variety of complex tasks, both in online and offline settings, demonstrate that our approach improves feedback efficiency, outperforming state-of-the-art methods by a large margin. Ablation studies further reveal that SEER achieves a more accurate Q-function compared to prior work.
[ -0.45601508021354675, -0.4490531384944916, 0.21087127923965454, -0.020392240956425667, 0.02249954640865326, 0.09594883769750595, -0.45387718081474304, -0.1854138970375061, 0.1788298487663269, 0.2714773714542389, -0.3962675929069519, -0.10384581238031387, -0.2808300256729126, -0.3787038028240204, 0.7317558526992798, 1.2175627946853638, -0.2145967185497284, -0.12449391931295395, 0.03469183295965195, 0.11094171553850174, -0.3981899619102478, -0.3600562512874603, -0.6026449799537659, -0.746511697769165, 0.707981526851654, 0.5068137049674988, 0.6465672850608826, 0.3607346713542938, 0.31956586241722107, 0.2810564339160919, -0.1079125702381134, 0.6235881447792053, -0.8588175773620605, -0.023978767916560173, -0.18734915554523468, -0.2923484146595001, -0.48693397641181946, 0.13895870745182037, 0.6205390691757202, 0.4888171851634979, -0.3834001123905182, -0.20297355949878693, 0.20491203665733337, 0.8393273949623108, -1.0987448692321777, 0.10663832724094391, -0.2173682153224945, 0.19156989455223083, 0.21627916395664215, -0.32649222016334534, -0.5695508122444153, -0.6675323843955994, 0.28336209058761597, -0.7497882843017578, -0.21863898634910583, 0.29501280188560486, 1.0186700820922852, 0.43000996112823486, -0.14256258308887482, 0.07369308173656464, -0.8089283108711243, 1.0795201063156128, -0.4766201376914978, 0.6441262364387512, 0.49137794971466064, 0.3418829143047333, -0.36519771814346313, -0.5683386921882629, -0.30200740694999695, -0.2353697121143341, -0.07576543837785721, 0.5077572464942932, -0.007534177973866463, 0.2935430705547333, 0.1983499825000763, 0.45718738436698914, -0.3108433187007904, 0.21612782776355743, -0.1804104894399643, -0.27973490953445435, 0.45189177989959717, -0.08804479986429214, -0.4835394024848938, 0.25888946652412415, -0.7614874839782715, -0.6223167181015015, -0.4494187533855438, 0.9602378606796265, 0.3516944944858551, 0.03605381026864052, 0.06713232398033142, 0.13460056483745575, -0.27110984921455383, 0.8005658388137817, 0.3240251839160919, -0.0967969298362732, 0.29671594500541687, 0.21751944720745087, -0.3023163676261902, 0.0523882731795311, 0.6340745091438293, 0.5340895056724548, -0.047195181250572205, -0.3169191777706146, -0.5151717066764832, 0.07404915243387222, 0.4114648699760437, -0.7597683668136597, -0.6031522750854492, 0.12735243141651154, -0.438631147146225, -0.10781852155923843, 0.2815864682197571, -0.6796972751617432, -0.42750948667526245, -0.33190637826919556, 0.45531654357910156, -0.28779080510139465, -0.05293860286474228, 0.17126215994358063, -0.17382384836673737, 0.3217208683490753, 0.4554423689842224, -0.5134830474853516, 0.31962716579437256, 0.5864822864532471, 0.6407801508903503, -0.2507110834121704, -0.13190124928951263, -1.1345455646514893, -0.12272828817367554, -0.39867010712623596, 0.896111011505127, -0.7030482292175293, -0.4013112485408783, -0.10749447345733643, -0.18544629216194153, 0.2591300308704376, -0.5629428029060364, 0.3873078227043152, -0.889623761177063, -0.00004998440635972656, -0.36055248975753784, -0.6238271594047546, -0.19841326773166656, 0.48397666215896606, -0.36990588903427124, 0.9421986937522888, 0.08888328075408936, -0.37159526348114014, 0.8617849349975586, -0.7764487862586975, -0.14129449427127838, -0.12607279419898987, 0.17309270799160004, -0.5141815543174744, -0.018594888970255852, 0.3762853145599365, 0.30802708864212036, 0.12891238927841187, 0.2342597246170044, -0.4732193648815155, -0.44373559951782227, 0.4969249367713928, -0.3488113582134247, 0.041771139949560165, 0.16718879342079163, -0.07191824913024902, 0.5675210356712341, -0.400552898645401, 0.1851692497730255, -0.37974387407302856, -0.6105102896690369, -0.23791548609733582, 0.1330711394548416, 0.14647728204727173, 0.18422868847846985, 0.31031474471092224, -0.7530534267425537, 0.20044825971126556, -0.448956698179245, 0.014949957840144634, 0.9349537491798401, 0.07405923306941986, 0.44733330607414246, -0.5936799645423889, 0.4713645279407501, 0.05380522832274437, 0.18939785659313202, 0.03695293143391609, -0.14560934901237488, -0.5463102459907532, -0.6032358407974243, 0.5693568587303162, 0.13595528900623322, -0.5834381580352783, 0.4111620783805847, -0.04836681857705116, -0.4206233322620392, -0.5261428356170654, 0.03512227162718773, 0.8341240286827087, 0.41331401467323303, 0.5796204209327698, -0.5950794219970703, -0.2702850103378296, -0.6996665596961975, -0.2585945725440979, -0.11632579565048218, -0.028192978352308273, 0.41456958651542664, 0.06515705585479736, 0.058180343359708786, 1.1828904151916504, -0.7194083333015442, -0.371832937002182, 0.008674997836351395, 0.19510215520858765, 0.025813814252614975, 0.6158088445663452, 0.028303414583206177, -0.6942798495292664, -0.4004228711128235, 0.1076311394572258, -0.4171416759490967, 0.2915315628051758, -0.004921854007989168, -0.3255038261413574, 0.2062503546476364, 0.15317374467849731, 0.1515100747346878, 0.3671261668205261, 0.08104391396045685, -0.40891939401626587, 0.12785984575748444, -0.7076824307441711, 0.16130904853343964, -0.2745248079299927, 0.09550225734710693, 0.3442021608352661, -0.5570611357688904, -0.43055394291877747, -0.22436146438121796, 0.2146761417388916, 0.2455546110868454, -0.3131296634674072, 0.6441300511360168, -0.36348849534988403, -0.1670568883419037, -0.29579097032546997, -0.19737809896469116, 0.07617753744125366, 0.8545342683792114, 0.5680774450302124, 0.5761486887931824, 0.24281322956085205, -0.6741153597831726, 0.02002722956240177, 0.18047592043876648, -0.12668541073799133, 0.4717322587966919, -0.3528192341327667, 0.2671278715133667, -0.18591360747814178, 0.46153905987739563, -0.8558344841003418, -0.2845803201198578, 0.3827603757381439, -0.320811927318573, 0.5350521206855774, -0.17011092603206635, 0.08036160469055176, 0.031132513657212257, -0.5152300000190735, 0.16182762384414673, 0.8624495267868042, -0.8807801604270935, 0.26242661476135254, 0.5597805976867676, 0.1873590350151062, -0.8104560971260071, -0.031174253672361374, -0.5277503728866577, -0.1293286383152008, -0.10831580311059952, 0.40209582448005676, 0.1525649130344391, -0.15883895754814148, -0.16586117446422577, -0.3352983295917511, -0.06245598569512367, 0.13445080816745758, 0.3314400017261505, 0.40151265263557434, 0.022426001727581024, 0.0763535425066948, 0.09987658262252808, -0.28864672780036926, -0.18888361752033234, -0.2560228407382965, 0.4654037356376648, -0.37907713651657104, -0.14982150495052338, -0.5016933083534241, 0.13954582810401917, 0.1729068011045456, -0.41633403301239014, 0.591946005821228, 0.4827190935611725, -0.08298177272081375, -0.2513091564178467, -0.6501244306564331, -0.2666996419429779, -0.46740245819091797, 0.13546134531497955, -0.11800161004066467, -0.7301545739173889, 0.2688743472099304, -0.11957548558712006, 0.26524612307548523, -0.22539031505584717, 0.34959354996681213, -0.23097392916679382, 0.8089507818222046, 0.3761503994464874, -0.10301543027162552, 0.7509906888008118, -0.265115350484848, -0.034514881670475006, -0.7903950810432434, -0.4862688481807709, -0.033133745193481445, -0.538469135761261, -0.44287869334220886, -0.4560377597808838, 0.5266915559768677, 0.18463416397571564, -0.5890124440193176, -0.21496717631816864, -0.3776867091655731, 0.3597634732723236, 0.7988912463188171, 0.7621868252754211, 0.0768534317612648, -0.07033732533454895, 0.030457481741905212, -0.11729732900857925, -0.6836280226707458, -0.24550971388816833, 1.0647547245025635, 0.4263065755367279, 0.9022536277770996, -0.14182931184768677, 0.7965328693389893, 0.4419519603252411, 0.4305696487426758, -0.7807320356369019, 0.057989731431007385, 0.21666648983955383, -0.12024547159671783, -0.3271755576133728, -0.30843329429626465, -0.8547115325927734, 0.23388923704624176, -0.34168100357055664, -0.6699294447898865, 0.43866220116615295, 0.8268271684646606, -0.5900679230690002, 0.23378247022628784, -0.6085844039916992, 0.8048719763755798, -0.3114442527294159, -0.8585475087165833, -0.19277960062026978, -0.8221557140350342, -0.007096659857779741, 0.2734101414680481, -0.06488227844238281, 0.23021544516086578, -0.1449502557516098, 0.768821656703949, -0.534530520439148, 0.4295010566711426, -0.6862591505050659, 0.15339651703834534, 0.04267729073762894, -0.10853803157806396, 0.7542976140975952, -0.16938543319702148, 0.09417314827442169, -0.19119688868522644, -0.3326336741447449, -0.5650095343589783, -0.7184107303619385, 0.6378013491630554, -0.7784749865531921, -0.15966640412807465, -0.49997615814208984, -0.7225995659828186, -0.6790739893913269, -0.16790422797203064, -0.1294766217470169, 0.3755734860897064, -0.08212035894393921, 0.10091286897659302, 0.7412319779396057, -0.25926491618156433, 0.3341841995716095, 0.4856470823287964, -0.2610618472099304, -0.38497409224510193, 1.1992300748825073, -0.10368647426366806, 0.1249055340886116, 0.5573810935020447, 0.27853065729141235, -0.5779746770858765, -0.3790675699710846, -0.270958811044693, 0.11102626472711563, -0.2865345776081085, -0.1431875228881836, -0.4375777244567871, 0.20304901897907257, 0.08577575534582138, -0.5116996169090271, -0.47326070070266724, 0.06915735453367233, 0.09265753626823425, -0.0422971248626709, 0.39151450991630554, 0.5024276375770569, -0.3473770320415497, 0.5015056133270264, -0.3468901216983795, 0.2283044457435608, 0.30455172061920166, 0.6151630878448486, 0.01879315823316574, -0.3692217767238617, -0.3125499486923218, 0.05494369566440582, -0.43138229846954346, -0.5643429160118103, 0.4923977255821228, 0.0238877572119236, 0.558035135269165, 0.7219704985618591, 0.3963238596916199, 0.8631172180175781, -0.10610117763280869, 0.4312516450881958, 0.2761647403240204, -0.5643298029899597, 0.3136310279369354, -0.14577822387218475, 0.058892183005809784, 0.6560313105583191, 0.3817097544670105, -0.3619944155216217, -0.04130646586418152, -0.49955955147743225, -0.9583785533905029, 0.9148182272911072, -0.08569043129682541, -0.48644182085990906, 0.1754416972398758, 0.0032397916074842215, 0.12228778004646301, 0.24937783181667328, -0.45721185207366943, -0.3435966372489929, -0.33239829540252686, 0.17962613701820374, -0.2775956392288208, -0.1588892787694931, 0.06926670670509338, -0.02933385595679283, 0.9874098300933838, -0.039237137883901596, 0.21339039504528046, 0.30412983894348145, -0.23237453401088715, -0.036520011723041534, 0.3156646490097046, 0.3230201303958893, 0.487791508436203, -0.7170653939247131, -0.005808877758681774, -0.06098572537302971, -0.012134915217757225, 0.22181391716003418, 0.01902838796377182, 0.01740768365561962, -0.44974735379219055, -0.2878670394420624, 1.001806616783142, 0.3816114664077759, -0.7936410307884216, 0.35217392444610596, 0.04933430626988411, 0.031530413776636124, -0.09746640175580978, 0.15654803812503815, -0.27826982736587524, 0.5105483531951904, 0.18332894146442413, 0.17056222259998322, 0.24955114722251892, -0.3125706911087036, 0.35746681690216064, 0.48762446641921997, -1.066541314125061, 0.04956844449043274, 0.39897421002388, 0.16090315580368042, -0.18070264160633087, 0.34717872738838196, -0.27836132049560547, -0.5274398922920227, 0.3112110197544098, 0.5308260917663574, 0.49730485677719116, -0.1504978984594345, 0.24378524720668793, 0.37875834107398987, -0.09948363155126572, -0.3278455436229706, 0.18254412710666656, -0.41625186800956726, -0.7049036622047424, -0.33935871720314026, -0.5157029628753662, -0.5460591316223145, 0.027973279356956482, -1.0961562395095825, -0.10981149971485138, -0.5319098234176636, -0.14802178740501404, -0.21336396038532257, 0.02323410101234913, -0.6133355498313904, 0.13423161208629608, 0.2051987648010254, 0.5733039975166321, -0.7619577050209045, 0.5958022475242615, 0.9363276362419128, -0.2320965826511383, -0.9725085496902466, -0.04919882491230965, -0.17787523567676544, -0.5732381939888, 0.606688916683197, 0.0775117576122284, -0.413461297750473, 0.032652921974658966, -0.24895352125167847, -0.5031741857528687, 0.7928637862205505, 0.08636265248060226, -0.44915932416915894, 0.1825874149799347, -0.7115688920021057, 0.3896510899066925, -0.21286015212535858, 0.6714487075805664, 0.5797730088233948, 0.591757595539093, 0.037099286913871765, -0.7491964101791382, -0.09207677841186523, -0.2511432468891144, 0.09106354415416718, 0.5663110017776489, -0.6771321296691895, 0.4343612790107727, -0.10587051510810852, 0.2542800009250641, -0.4572553038597107, 0.8446055054664612, 0.4508439004421234, 0.38663390278816223, 0.5979703664779663, 0.3270452916622162, 0.9047605991363525, 0.05385719984769821, 1.1028392314910889, 0.028799165040254593, 0.37196633219718933, 1.1303247213363647, -0.3577008843421936, 0.7955910563468933, 0.6058934330940247, -0.36980730295181274, 0.4400857388973236, 0.8183102607727051, 0.26518967747688293, 0.8847562074661255, 0.08795204758644104, -0.14729703962802887, -0.6988986134529114, -0.17878903448581696, -0.23424778878688812, 0.20051325857639313, 0.24801595509052277, -0.1211032122373581, -0.1871330589056015, 0.057721059769392014, 0.014278841204941273, 0.16010147333145142, -0.5855886936187744, 0.9532155394554138, -0.2723219096660614, -1.2488212585449219, 0.5114302635192871, -0.06310378760099411, 0.9070202708244324, -0.5234673023223877, -0.25958728790283203, -0.17387041449546814, 0.5025594830513, -0.2234739512205124, -0.5133951306343079, -0.21871957182884216, -0.034574199467897415, -0.19047820568084717, -0.3244090974330902, 0.5382311344146729, -0.4798629879951477, -0.2037527859210968, 0.21976155042648315, 0.41635599732398987, 0.15385563671588898, 0.14068438112735748, -0.35271409153938293, -0.32237163186073303, 0.05694494768977165, -0.364577054977417, 0.7154314517974854, -0.18881024420261383, -0.10262677073478699, 0.6287371516227722, 0.6431294083595276, 0.15608154237270355, 0.06030745059251785, -0.5786471366882324, 0.8625017404556274, -0.3587019741535187, -0.843691885471344, -0.6128522157669067, 0.5356941223144531, -0.22917531430721283, -0.2583610415458679, 0.35751208662986755, 0.7804818749427795, 0.9836699366569519, 0.016147561371326447, 0.7133625149726868, -0.02656293474137783, 0.5614219307899475, -0.5284331440925598, 0.5453054904937744, -0.463299959897995, 0.1345462203025818, -0.1519721895456314, -0.6450775861740112, -0.10205485671758652, 0.9313890337944031, -0.7940212488174438, 0.0021153835114091635, 0.3590341806411743, 0.9183560013771057, -0.26930853724479675, -0.15377473831176758, 0.3872947096824646, -0.14712689816951752, 0.025695355609059334, 0.5739979147911072, 0.9342246651649475, -0.006249156314879656, 0.20334245264530182, -0.440228134393692, -0.46499669551849365, -0.38571494817733765, -0.8102273941040039, -0.6884138584136963, -0.22688144445419312, -0.3142208755016327, -0.5081713199615479, 0.3665948510169983, 1.4747381210327148, 0.7988612651824951, -0.8278468251228333, -0.4638174772262573, 0.19842475652694702, 0.200982466340065, -0.7341228723526001, -0.16291898488998413, 0.4586636424064636, -0.531356155872345, -0.5010722279548645, 0.46453094482421875, 0.1755148470401764, -0.4716261327266693, 0.026705745607614517, -0.7275781035423279, -0.16174590587615967, -0.2000563144683838, 0.18857212364673615, 0.5042296648025513, -0.6640335321426392, -0.3258819580078125, -0.21678394079208374, 0.288778156042099, 0.5561603903770447, 0.8820682168006897, -1.2022236585617065, 0.803043007850647, 0.3103512227535248, 0.707218587398529, 0.7581787109375, 0.33181092143058777, 0.682732880115509, -0.5469055771827698, 0.1264290064573288, 0.14525188505649567, 0.31164854764938354, 0.21826289594173431, -0.19346854090690613, 0.25767195224761963, -0.11946039646863937, -0.762932300567627, -0.887201189994812, 0.237229585647583, -1.0990846157073975, -0.002959029981866479, 0.9382261633872986, -0.6116638779640198, -0.19938813149929047, -0.18373051285743713, -0.2097460925579071, 0.33127206563949585, -1.076943039894104, 0.6492910385131836, 0.07564182579517365, -0.448771595954895, -0.15882925689220428, -0.06997328996658325, 0.6477799415588379, 0.36820539832115173, -0.5794745087623596, -0.059108566492795944, 0.7562885880470276, 0.09034117311239243, -0.1093163713812828, 0.5495129227638245, 0.22785276174545288, 0.4878331422805786, -0.20825731754302979, 0.23798605799674988, -0.5270113348960876, -0.44297242164611816, -0.437465101480484, 0.26671937108039856, 0.39088496565818787, -0.43787774443626404 ]
http://arxiv.org/abs/2405.18682v1
http://arxiv.org/pdf/2405.18682v1
Can GPT Redefine Medical Understanding? Evaluating GPT on Biomedical Machine Reading Comprehension
2024-05-29T01:12:53
2024-05-29T01:12:53
Shubham Vatsal, Ayush Singh
cs.CL
cs.CL, cs.AI, cs.LG
Large language models (LLMs) have shown remarkable performance on many tasks in different domains. However, their performance in closed-book biomedical machine reading comprehension (MRC) has not been evaluated in depth. In this work, we evaluate GPT on four closed-book biomedical MRC benchmarks. We experiment with different conventional prompting techniques as well as introduce our own novel prompting method. To solve some of the retrieval problems inherent to LLMs, we propose a prompting strategy named Implicit Retrieval Augmented Generation (RAG) that alleviates the need for using vector databases to retrieve important chunks in traditional RAG setups. Moreover, we report qualitative assessments on the natural language generation outputs from our approach. The results show that our new prompting technique is able to get the best performance in two out of four datasets and ranks second in rest of them. Experiments show that modern-day LLMs like GPT even in a zero-shot setting can outperform supervised models, leading to new state-of-the-art (SoTA) results on two of the benchmarks.
[ -0.27591028809547424, -0.9120732545852661, 0.9578465223312378, -0.23703058063983917, -0.4420028626918793, 0.018763527274131775, -0.09767414629459381, -0.4891913831233978, -0.2482381910085678, 0.17378343641757965, -0.7427679300308228, -0.49744686484336853, -0.6336134076118469, 0.611804723739624, -0.17442460358142853, 1.211956262588501, -0.07588125020265579, 0.2571221888065338, -0.44304269552230835, -0.21019347012043, -0.523601770401001, -0.3293895423412323, -0.9051237106323242, -0.6980215907096863, 0.8680874705314636, 0.05010268837213516, 0.5375415682792664, 0.606796383857727, 0.3679969310760498, 0.20360083878040314, -0.4029659032821655, 0.27504822611808777, -0.4617088735103607, 0.2514221966266632, -0.15455347299575806, -0.40375542640686035, -0.24265137314796448, -0.04728326201438904, 0.6205309629440308, 0.8199560642242432, -0.06928311288356781, -0.07802438735961914, 0.22593028843402863, 1.0293105840682983, -0.4112992286682129, 0.04075988754630089, -0.5020146369934082, -0.0021062439773231745, 0.16378438472747803, -0.5596821308135986, -0.6581346392631531, -0.3006609082221985, 0.2279549092054367, -0.6370835900306702, 0.5582091808319092, 0.013554778881371021, 0.8469263911247253, 0.49808740615844727, -0.47405144572257996, -0.428346186876297, -0.4700823128223419, 0.39882490038871765, -0.4084937274456024, 0.5691006779670715, 0.4225754141807556, 0.26131415367126465, -0.17579831182956696, -0.782004714012146, -0.4571918249130249, -0.6051644086837769, -0.18379677832126617, 0.410250723361969, -0.03981359302997589, -0.034082986414432526, 0.39352819323539734, 0.21457087993621826, -0.7130513787269592, -0.1826281100511551, -0.5078485012054443, 0.08458484709262848, 0.1453179121017456, 0.0029422612860798836, 0.2450234591960907, -0.19840644299983978, -0.40404313802719116, 0.033570919185876846, -0.9579780101776123, -0.12145175784826279, -0.008481055498123169, 0.1073894128203392, 0.15135575830936432, 0.5723876953125, -0.09936021268367767, 0.6600090265274048, 0.1267208755016327, -0.00921628624200821, 0.09511960297822952, -0.3945465683937073, -0.33021703362464905, -0.1388290524482727, 0.5710241794586182, 0.20920626819133759, 0.48160502314567566, -0.2520594596862793, -0.06450831145048141, -0.14161552488803864, 0.47263303399086, -0.7666551470756531, -0.19054721295833588, 0.3212549090385437, -0.34544897079467773, -0.16937284171581268, -0.08988028764724731, -0.5840703845024109, -0.5165068507194519, -0.4488597810268402, 0.4821215271949768, -0.6823083162307739, -0.05392282456159592, 0.25704464316368103, -0.2162109762430191, 0.4230194091796875, 0.2555166184902191, -0.9382105469703674, 0.10138864815235138, 0.72871994972229, 0.9406542778015137, -0.09409219026565552, 0.013079199939966202, -0.4967876672744751, 0.2157917469739914, -0.2912653982639313, 1.0831928253173828, -0.41224542260169983, -0.7050620317459106, -0.18647746741771698, -0.06928431987762451, -0.28512611985206604, -0.5929035544395447, 0.45409977436065674, -0.5232027769088745, 0.35929837822914124, -0.39467403292655945, -0.4288322925567627, -0.06714373081922531, 0.346787691116333, -0.35919758677482605, 0.8515116572380066, 0.053693853318691254, -0.7667490839958191, 0.6077812910079956, -0.7722390294075012, -0.49223774671554565, 0.17838750779628754, -0.2939010262489319, -0.4487476944923401, 0.049364689737558365, 0.7507672309875488, 0.444553941488266, -0.1484033465385437, 0.2535785138607025, -0.03742969036102295, -0.37147045135498047, 0.30876490473747253, -0.4961954951286316, 0.5472568273544312, 0.12524577975273132, -0.29784759879112244, 0.120024174451828, -0.3319857716560364, 0.1594463288784027, 0.13714899122714996, -0.16939392685890198, -0.2132069319486618, -0.23049964010715485, -0.5148221254348755, -0.08334323018789291, -0.1726841926574707, -0.44755926728248596, 0.4530218541622162, -0.49291402101516724, 0.5287370085716248, 0.7381336688995361, 0.3423584997653961, 0.2049677073955536, -0.39757081866264343, 0.6215913891792297, -0.3844037353992462, 0.0791354700922966, -0.4111871123313904, -0.5861745476722717, -0.3721531331539154, -0.5635600686073303, 0.26893702149391174, 0.5574130415916443, -0.9273028373718262, -0.07844956964254379, -0.12141241133213043, -0.24335400760173798, -0.8197519779205322, -0.15864919126033783, 0.47272786498069763, 1.0651321411132812, 0.6239333748817444, -0.04043005406856537, -0.08838405460119247, -0.6706729531288147, -0.35782819986343384, -0.26292306184768677, -0.4509398639202118, 0.763839602470398, 0.30467352271080017, -0.44949066638946533, 0.6714439988136292, -0.451598197221756, -0.007824365980923176, -0.16241493821144104, 0.2966103255748749, 0.29151320457458496, 0.25585320591926575, 0.17770296335220337, -0.568788468837738, -0.3827742040157318, 0.197942316532135, -0.8347729444503784, -0.3097034692764282, -0.164336696267128, -0.06867442280054092, 0.2774580121040344, 0.6250126361846924, -0.572303831577301, 0.42481929063796997, 0.3824536204338074, -0.3077434301376343, 0.6481599807739258, -0.5263298749923706, 0.46366751194000244, -0.8013303875923157, 0.33523327112197876, -0.2003260850906372, -0.30138811469078064, -0.5187317132949829, -0.04833218455314636, 0.2239086627960205, 0.07521993666887283, -0.3512537479400635, 0.7610000967979431, -0.6880865693092346, 0.04534434154629707, -0.36670204997062683, 0.005419340915977955, 0.017576687037944794, 0.061270080506801605, -0.07542566955089569, 1.0228941440582275, 0.3837968111038208, -0.6935451030731201, 0.0505811907351017, 0.5067539215087891, -0.07117383182048798, 0.5375658273696899, -1.0109020471572876, 0.47993242740631104, -0.5989141464233398, 0.46861276030540466, -1.0871028900146484, -0.21967841684818268, 0.36224108934402466, -0.6768224239349365, 0.6436868906021118, -0.4505002498626709, -0.2929205596446991, -0.3935595154762268, -0.03007013536989689, 0.20106539130210876, 0.770783007144928, -0.667309582233429, 0.3294626772403717, -0.09770405292510986, -0.517845869064331, -0.6523622274398804, -0.5015148520469666, 0.09574195742607117, -0.059914831072092056, -0.5810517072677612, 0.12599028646945953, -0.07425856590270996, 0.058812521398067474, -0.1925872564315796, -0.2417396456003189, 0.1207103580236435, -0.12099085748195648, 0.09540338814258575, 0.5779479742050171, -0.1436232179403305, 0.3222709000110626, 0.24850095808506012, -0.34655115008354187, -0.11146768182516098, -0.34153592586517334, 0.27374058961868286, -0.014436992816627026, -0.4858863353729248, -0.384283185005188, 0.2983510196208954, 0.17653225362300873, -0.23940959572792053, 0.6370237469673157, 0.6391655802726746, -0.14898160099983215, -0.08558591455221176, -0.3829893171787262, -0.5792607069015503, -0.5182481408119202, 0.1954769641160965, -0.46222418546676636, -1.1119508743286133, 0.0853259488940239, -0.1810908317565918, 0.007248695008456707, 0.27699747681617737, 0.7865755558013916, -0.30436795949935913, 1.1568163633346558, 0.42821916937828064, 0.2741650640964508, 0.30803677439689636, 0.0010031366255134344, -0.11852151900529861, -0.8874582648277283, -0.10375985503196716, -0.5267924666404724, -0.17364810407161713, -0.4056720733642578, -0.4548071622848511, 0.7854665517807007, 0.149083212018013, -0.09473132342100143, -0.260904461145401, -0.779056966304779, 0.675719678401947, 0.33626076579093933, 0.3535446524620056, 0.44307637214660645, 0.13871285319328308, -0.5738516449928284, 0.08143625408411026, -0.6261998414993286, -0.6832733750343323, 1.1743943691253662, 0.3338262438774109, 0.5440435409545898, -0.118134044110775, 0.7031697630882263, 0.003540047211572528, 0.8826227188110352, -0.9276703596115112, 0.373789519071579, 0.09019413590431213, -0.5769703984260559, -0.267882764339447, -0.5206809639930725, -1.4397464990615845, 0.2478020191192627, -0.07329446822404861, -0.5585246086120605, -0.10913479328155518, 0.2258618324995041, -0.3971494138240814, 0.055036094039678574, -0.7882007956504822, 0.6018232107162476, 0.024876993149518967, -0.3377147316932678, 0.11873500794172287, -0.6422896981239319, 0.2885143756866455, 0.05770507827401161, 0.022045103833079338, 0.006876736413687468, -0.3472532629966736, 0.33796247839927673, -0.14415639638900757, 0.5940675139427185, -0.22967910766601562, 0.04086849465966225, 0.08926437795162201, 0.057251185178756714, 0.5298097133636475, 0.23932290077209473, -0.09516455233097076, -0.03539245203137398, 0.1509445458650589, -0.48147180676460266, -0.6851036548614502, 0.5103151798248291, -0.3651147782802582, -0.698788583278656, -0.4569392204284668, -0.4607643783092499, -0.5583295226097107, 0.22545969486236572, 0.39466625452041626, 0.32299351692199707, -0.13999365270137787, 0.03170806169509888, 0.8748673796653748, -0.3920825719833374, -0.014859754592180252, 0.7416254281997681, 0.05470260977745056, -0.3170148730278015, 0.5892370939254761, -0.19701044261455536, 0.32719188928604126, 0.18485017120838165, 0.44382575154304504, -0.5492848753929138, -0.903082013130188, -0.6244064569473267, 0.6420326232910156, -0.48668360710144043, -0.07685381919145584, -0.7058515548706055, -0.12125235795974731, -0.41086453199386597, -0.1141209527850151, 0.19315028190612793, 0.0056587099097669125, -0.22486412525177002, -0.2303355634212494, 0.5303672552108765, 1.0910083055496216, -0.023848047479987144, 0.024275492876768112, -1.005263090133667, 0.547291100025177, 0.1385842263698578, 0.442318320274353, -0.25006791949272156, -0.618499755859375, 0.01445065438747406, -0.19263088703155518, -0.2110336422920227, -0.9368383288383484, 0.38734251260757446, -0.03457402437925339, 0.5703601241111755, 0.14779707789421082, -0.18236948549747467, 0.6114950776100159, -1.0192323923110962, 0.5546396374702454, -0.118613600730896, -0.4954291880130768, 0.46826261281967163, -0.5554925203323364, 0.42988383769989014, 0.5345857739448547, 0.5352529287338257, -0.6143248081207275, -0.41037166118621826, -0.6220187544822693, -0.772540807723999, 0.3574773669242859, 0.030841346830129623, -0.11668428033590317, -0.12987934052944183, 0.7975359559059143, 0.24430514872074127, 0.06517411768436432, -0.25074338912963867, -0.15849673748016357, 0.17277465760707855, -0.2912428379058838, -0.19535788893699646, -0.14835377037525177, -0.17677323520183563, -0.1876336634159088, 0.5022199749946594, -0.3227449953556061, 0.5200233459472656, 0.7867662906646729, 0.11302077025175095, -0.05384409427642822, 0.41450372338294983, 0.6373277306556702, 0.6870995759963989, -0.10876518487930298, -0.1228235512971878, 0.17812654376029968, -0.665599524974823, 0.1051006019115448, 0.2503633201122284, -0.2639719545841217, -0.052286453545093536, 0.3716224133968353, 0.5829281210899353, -0.13985343277454376, -0.5394334197044373, 0.0623156800866127, -0.10695034265518188, -0.5099350214004517, 0.3057786524295807, 0.03388846293091774, 0.08643563836812973, 0.18011659383773804, 0.38529154658317566, -0.23418283462524414, 0.12581954896450043, -0.17325998842716217, 0.5748452544212341, 0.4782172739505768, -0.48798826336860657, -0.019314534962177277, 0.7946626543998718, -0.12443249672651291, -0.0016100135399028659, 0.5753143429756165, 0.050308577716350555, -0.30271419882774353, 0.321982204914093, 0.6278750896453857, 0.820801317691803, -0.13651934266090393, 0.268692284822464, 0.49016255140304565, 0.46356549859046936, -0.05224718526005745, 0.32154831290245056, -0.05198359489440918, -0.3785855770111084, -0.839625895023346, -0.4763011038303375, -0.6976248621940613, 0.08661101758480072, -0.5959739685058594, -0.06396207213401794, -0.2959855794906616, -0.07517342269420624, 0.20073437690734863, -0.0970199853181839, -0.49145111441612244, 0.14283056557178497, -0.006824468728154898, 0.8842632174491882, -0.4642885625362396, 0.7602134346961975, 0.6800358891487122, -0.3217933177947998, -0.8075207471847534, 0.07512418180704117, 0.02542509138584137, -0.9828681945800781, 0.47306978702545166, 0.10306578874588013, 0.0003442603338044137, 0.13744202256202698, -0.6600890755653381, -0.43725308775901794, 0.9506927132606506, 0.2704733610153198, -0.3793984651565552, -0.046478960663080215, -0.062019795179367065, 0.653475821018219, 0.019572993740439415, 0.33565130829811096, 0.6790370941162109, 0.6526076793670654, 0.26704704761505127, -0.8766171336174011, 0.0941779613494873, -0.05525670200586319, -0.31806614995002747, 0.18336264789104462, -0.22458957135677338, 0.5873669385910034, -0.5571511387825012, -0.4190003573894501, 0.23244798183441162, 0.34880974888801575, 0.5881505012512207, 0.579901397228241, 0.379059761762619, 0.2733169496059418, 1.1338200569152832, -0.08516217023134232, 1.4971120357513428, 0.2247898429632187, 0.10595578700304031, 0.9063298106193542, -0.2233613282442093, 0.7889685034751892, 0.49764785170555115, -0.294009804725647, 0.21377228200435638, 0.5677345395088196, 0.20090351998806, 0.3373303711414337, 0.24665045738220215, -0.4596115052700043, -0.03974883630871773, 0.049502842128276825, -0.5178792476654053, -0.2120978981256485, 0.39210352301597595, -0.3911454677581787, -0.13951535522937775, 0.13393647968769073, 0.033795930445194244, 0.10542213916778564, -0.27982667088508606, 1.0966771841049194, 0.29178205132484436, -0.6877455711364746, 1.1021180152893066, -0.370742529630661, 0.38146305084228516, -0.6545455455780029, -0.12477798759937286, -0.2408878356218338, 0.06683242321014404, -0.09537675976753235, -0.8532676100730896, 0.2017247974872589, 0.149180606007576, -0.22449150681495667, -0.3364758789539337, 0.7982829213142395, -0.3880385756492615, -0.31059128046035767, -0.05335015803575516, 0.7270421981811523, 0.3086884617805481, -0.13515938818454742, -0.8411003351211548, -0.10039438307285309, 0.07011742889881134, -0.3513214588165283, 0.39339929819107056, 0.6314008235931396, 0.04303005710244179, 0.7730242609977722, 1.0168850421905518, 0.2013351023197174, -0.15157723426818848, 0.1875809282064438, 0.7438139319419861, -0.7882352471351624, -0.14828969538211823, -0.7771656513214111, 0.29719871282577515, 0.20040129125118256, -0.016741527244448662, 0.5524120330810547, 0.1558253914117813, 0.4852226674556732, -0.11259863525629044, 0.7459549903869629, 0.3862553834915161, 0.9907255172729492, -0.6750136613845825, 0.8671321272850037, -0.5237036347389221, 0.08610297739505768, -0.09272301197052002, -0.47663941979408264, -0.4711761176586151, 0.47880321741104126, -0.4521247446537018, 0.29962068796157837, 0.9375655651092529, 0.8567314743995667, 0.17072610557079315, 0.1636231392621994, 0.4255034029483795, 0.3498660624027252, 0.4301486313343048, 0.3657587170600891, 0.8815436959266663, -0.16561102867126465, 0.5143954753875732, 0.297736257314682, -0.4891816973686218, 0.0332455188035965, -0.929142415523529, -0.9446394443511963, -0.28106045722961426, -0.1268603652715683, -0.6558344960212708, 0.4855405390262604, 0.5700082182884216, 0.38216009736061096, -0.5673754811286926, 0.37873974442481995, -0.11678576469421387, 0.057197026908397675, -0.27400368452072144, -0.15523429214954376, 0.49316540360450745, -0.5806404948234558, -0.8073425889015198, 0.6735891699790955, 0.31996944546699524, 0.25678083300590515, 0.041915688663721085, 0.02249138243496418, -0.047706492245197296, -0.02844555862247944, 0.5607643127441406, 0.47859248518943787, -0.5311071276664734, -0.06888867914676666, 0.17289990186691284, -0.30779939889907837, 0.11346742510795593, 0.8846904039382935, -1.201285481452942, 0.4617290794849396, 0.41573330760002136, 0.9012976288795471, 0.51028972864151, 0.2823053002357483, 0.6629775762557983, -0.5972064733505249, -0.0157870315015316, 0.43279722332954407, 0.10516953468322754, 0.29318058490753174, -0.39639201760292053, 0.6137005090713501, 0.14703543484210968, -0.8491150140762329, -0.7947478890419006, 0.11963947862386703, -0.8382694125175476, -0.2923188805580139, 1.2773544788360596, 0.18407504260540009, -0.3971778154373169, -0.3599027991294861, -0.6802281141281128, 0.18801634013652802, -0.3610321283340454, 0.6530094742774963, 0.4703631103038788, -0.28445160388946533, -0.06401121616363525, -0.9758345484733582, 0.6247162818908691, 0.765750527381897, -0.7474726438522339, 0.1442074030637741, 0.43458378314971924, 0.3649778366088867, -0.3567861020565033, 0.8986702561378479, -0.3849427103996277, 0.36334678530693054, -0.2948461174964905, -0.21344609558582306, -0.27770760655403137, -0.19243493676185608, -0.5560585856437683, -0.0739547610282898, -0.051629580557346344, 0.0730697363615036 ]
http://arxiv.org/abs/2405.18672v2
http://arxiv.org/pdf/2405.18672v2
LLM-based Hierarchical Concept Decomposition for Interpretable Fine-Grained Image Classification
2024-05-29T00:36:56
2024-06-02T23:30:46
Renyi Qu, Mark Yatskar
cs.CV
cs.CV, cs.CL
(Renyi Qu's Master's Thesis) Recent advancements in interpretable models for vision-language tasks have achieved competitive performance; however, their interpretability often suffers due to the reliance on unstructured text outputs from large language models (LLMs). This introduces randomness and compromises both transparency and reliability, which are essential for addressing safety issues in AI systems. We introduce \texttt{Hi-CoDe} (Hierarchical Concept Decomposition), a novel framework designed to enhance model interpretability through structured concept analysis. Our approach consists of two main components: (1) We use GPT-4 to decompose an input image into a structured hierarchy of visual concepts, thereby forming a visual concept tree. (2) We then employ an ensemble of simple linear classifiers that operate on concept-specific features derived from CLIP to perform classification. Our approach not only aligns with the performance of state-of-the-art models but also advances transparency by providing clear insights into the decision-making process and highlighting the importance of various concepts. This allows for a detailed analysis of potential failure modes and improves model compactness, therefore setting a new benchmark in interpretability without compromising the accuracy.
[ -0.09650222212076187, -0.8411069512367249, 0.49445927143096924, -0.04136643558740616, -0.4139258861541748, 0.11493729054927826, 0.00795618537813425, -0.6457312107086182, -0.21071067452430725, 0.44848260283470154, -0.22310800850391388, -0.7218882441520691, -0.5100666284561157, -0.26695889234542847, -0.5390373468399048, 0.9159359931945801, -0.20418372750282288, -0.2129267156124115, -0.250260591506958, 0.07853478193283081, -0.21831530332565308, -0.48592785000801086, -0.6299248337745667, -0.3492361903190613, 0.1633479744195938, 0.2340492308139801, 0.7621204853057861, 0.961735188961029, 0.9180620908737183, 0.37150147557258606, -0.1676095724105835, 0.07298365235328674, -0.4508623480796814, -0.12898984551429749, -0.01600274257361889, -0.5111963152885437, -0.6312533020973206, -0.11191757023334503, 0.5842081904411316, 0.5402842164039612, -0.21373330056667328, 0.12528693675994873, 0.4262106716632843, 0.40492117404937744, -0.6592466831207275, 0.744012713432312, -0.6332203149795532, 0.29106682538986206, -0.10484307259321213, -0.5505868196487427, -0.3734648525714874, -0.09599990397691727, 0.07093222439289093, -0.6668766736984253, 0.18697035312652588, -0.006944806315004826, 1.0839189291000366, 0.537011981010437, 0.06545580178499222, -0.04732528701424599, -0.7344458699226379, 0.7664099335670471, -0.3685784637928009, 0.1012607216835022, 0.19333197176456451, 0.46964550018310547, -0.07831753045320511, -0.8210942149162292, -0.45253708958625793, 0.01621016301214695, 0.06896515935659409, 0.20513416826725006, -0.0267059113830328, 0.35179632902145386, -0.09224404394626617, 0.5708740949630737, -0.3300492465496063, 0.246684730052948, -0.28812968730926514, -0.32093650102615356, 0.33719146251678467, 0.2911301255226135, 0.39869946241378784, -0.3329778015613556, -0.5334421396255493, 0.12153954803943634, -0.38045987486839294, -0.060898683965206146, -0.11915551126003265, 0.08061636239290237, -0.2710984945297241, 0.3696826696395874, -0.3584934175014496, 0.34941813349723816, -0.0811799094080925, -0.47297969460487366, 0.1465727984905243, -0.27575069665908813, -0.553459882736206, -0.1724502444267273, 0.6711402535438538, 0.5938838124275208, 0.30845630168914795, 0.02850271761417389, -0.22213894128799438, 0.4045366048812866, 0.12233863025903702, -1.03682541847229, -0.41240373253822327, 0.025079695507884026, -0.8689573407173157, -0.7322222590446472, 0.02238098904490471, -0.7342033982276917, -0.22900550067424774, -0.10275570303201675, 0.3765937089920044, -0.2719724774360657, -0.02472829259932041, 0.20291173458099365, 0.036704130470752716, 0.35204747319221497, 0.5817660093307495, -0.7332134246826172, 0.23455330729484558, 0.6651736497879028, 1.070911169052124, -0.29894936084747314, -0.18677258491516113, -0.3428047001361847, 0.2805230915546417, -0.417911559343338, 0.7983683347702026, -0.591703474521637, -0.23183578252792358, -0.19776999950408936, -0.1311579793691635, 0.05805281177163124, -0.6990662813186646, 0.4604297876358032, -0.43030643463134766, -0.19589483737945557, 0.38325411081314087, -0.348187655210495, -0.1711951196193695, 0.47527140378952026, -0.354478120803833, 0.8413747549057007, 0.10883983969688416, -0.9133936166763306, 0.2585607171058655, -0.6761603951454163, -0.16965843737125397, 0.30621659755706787, -0.6044095158576965, -0.5502216815948486, 0.06618133187294006, 0.08041983097791672, 0.7856670022010803, -0.23041503131389618, 0.3233341872692108, -0.4868822693824768, -0.4060479402542114, 0.01738557778298855, -0.5226849913597107, 0.29766845703125, 0.3317025601863861, -0.0835709273815155, 0.32196715474128723, -0.9372043609619141, 0.08169569820165634, 0.296172559261322, -0.26888522505760193, -0.35824054479599, 0.10602335631847382, 0.18878382444381714, 0.08283260464668274, 0.2668912708759308, -0.405629962682724, 0.06496284157037735, -0.28442710638046265, 0.4777047634124756, 0.8632086515426636, 0.09435740113258362, 0.4226849377155304, 0.035481009632349014, 0.4301360547542572, 0.337517648935318, 0.3196859657764435, -0.3528117835521698, -0.44571539759635925, -0.6785135269165039, -0.3782374858856201, 0.1556510329246521, 0.4908870756626129, -0.9971199631690979, 0.39833033084869385, -0.20905020833015442, -0.21537868678569794, -0.22835494577884674, -0.22406113147735596, 0.39262327551841736, 0.756338357925415, 0.28537440299987793, -0.5532511472702026, -0.360219806432724, -0.9152433276176453, 0.19396847486495972, -0.2646194398403168, -0.02447563223540783, 0.10920358449220657, 0.655519425868988, -0.5730748772621155, 0.7299097180366516, -0.8805034756660461, -0.3675222396850586, -0.06409180164337158, 0.3074696660041809, -0.12105689942836761, 0.6690931916236877, 0.2925478219985962, -0.762150228023529, -0.1275157928466797, 0.368871808052063, -0.9347662329673767, 0.19175028800964355, -0.15322788059711456, -0.1233474537730217, 0.03682614490389824, 0.5812730193138123, -0.3271622061729431, 0.800463080406189, 0.2647560238838196, -0.17127972841262817, 0.670264720916748, -0.20374107360839844, 0.0672697052359581, -0.9288558959960938, -0.13529382646083832, 0.200550377368927, -0.08683786541223526, -0.5023994445800781, 0.5096160769462585, -0.12945285439491272, -0.06312771141529083, -0.43215450644493103, 0.34168168902397156, -0.12059778720140457, -0.42058128118515015, -0.3859913647174835, -0.23639421164989471, -0.07403326779603958, 0.550990104675293, 0.19642922282218933, 0.5892242789268494, 0.874577522277832, -0.5586861968040466, 0.1484227478504181, 0.2710149884223938, -0.5721388459205627, 0.6083436012268066, -0.7130099534988403, -0.09805065393447876, -0.1048656776547432, 0.14334052801132202, -0.7239555716514587, -0.5453346371650696, 0.4280139207839966, -0.25991329550743103, 0.32348406314849854, -0.3387841284275055, -0.48424601554870605, -0.12220713496208191, -0.3425604999065399, 0.5215792059898376, 0.46202167868614197, -0.5228868722915649, 0.35519054532051086, 0.4241129755973816, -0.08326157927513123, -0.44935184717178345, -0.7661988735198975, 0.051102589815855026, -0.2883363664150238, -0.43886426091194153, 0.429688960313797, -0.06364671885967255, -0.132817342877388, 0.24991634488105774, -0.3536373972892761, -0.45022493600845337, 0.32188281416893005, 0.4533522129058838, 0.43171533942222595, -0.2324231117963791, -0.16132929921150208, -0.02119201049208641, -0.31993451714515686, -0.0059892269782722, -0.2635522186756134, 0.4021470844745636, -0.6136157512664795, -0.16611045598983765, -0.8504421710968018, 0.1509150117635727, 0.6143725514411926, -0.26967209577560425, 0.39454659819602966, 0.8274436593055725, -0.5025486946105957, -0.2812337875366211, 0.10627003759145737, 0.09360165894031525, -0.5151622295379639, 0.5872604846954346, -0.4678150713443756, -0.8725324869155884, 0.5029505491256714, -0.2748876214027405, -0.24827741086483002, 0.4447818100452423, 0.645258367061615, -0.5078637599945068, 0.840413510799408, 0.9779067635536194, -0.03039487637579441, 0.5901817679405212, -0.5310168862342834, 0.07244601100683212, -0.6974235773086548, -0.4255012273788452, -0.36080512404441833, -0.11339917033910751, -0.7229363322257996, -0.6082367300987244, 0.50369793176651, 0.15266995131969452, -0.18905632197856903, -0.21884949505329132, -0.6726115942001343, 0.6296308636665344, 0.237228125333786, 0.1764099895954132, 0.4801887273788452, 0.16707932949066162, 0.04782147333025932, 0.2514137625694275, -0.6231552958488464, -0.6237961053848267, 0.7617433071136475, 0.7887436151504517, 1.0861574411392212, -0.45142191648483276, 0.9135714769363403, 0.1840873509645462, 0.24546952545642853, -1.2528691291809082, 0.5980968475341797, -0.1898999661207199, -0.22797483205795288, -0.256986141204834, -0.6403226256370544, -0.8107894062995911, 0.34001636505126953, -0.08005783706903458, -0.7859697937965393, 0.2095712572336197, 0.26432931423187256, -0.3934915065765381, 0.4169727861881256, -0.6632718443870544, 0.8760840892791748, -0.029990924522280693, -0.07417581975460052, -0.33872607350349426, -0.49372023344039917, 0.6279093623161316, -0.0893663838505745, 0.24884244799613953, -0.1014171615242958, 0.04174782335758209, 0.7595009803771973, -0.3407374620437622, 0.9236673712730408, -0.17367339134216309, -0.15546873211860657, 0.27023234963417053, 0.03777141869068146, 0.217377170920372, 0.0031693647615611553, 0.252187579870224, 0.39881667494773865, 0.2418583333492279, -0.2824999690055847, -0.7055974006652832, 0.3890153765678406, -0.7645013928413391, -0.25925391912460327, -0.3490442633628845, -0.6217883229255676, 0.01594615913927555, 0.26748377084732056, 0.23269498348236084, 0.6392854452133179, -0.0989374965429306, 0.19463950395584106, 0.45650067925453186, -0.29485443234443665, 0.3269679546356201, -0.11652493476867676, -0.2529655396938324, -0.148504376411438, 0.9850956797599792, 0.009948242455720901, 0.1646367758512497, 0.4457213282585144, 0.1244901791214943, 0.07136672735214233, -1.1796040534973145, -0.1334066390991211, -0.22835399210453033, -0.8385064005851746, -0.30882754921913147, -0.25345319509506226, -0.4804147779941559, 0.22502166032791138, -0.1428004950284958, -0.3429519832134247, -0.3530053198337555, -0.26175132393836975, 0.06909099966287613, -0.2228448987007141, 0.8016249537467957, 0.17591173946857452, 0.4434678256511688, -0.6966584920883179, 0.7573109269142151, 0.27554434537887573, 0.6716597080230713, -0.05636496841907501, -0.3869648575782776, -0.5174347758293152, -0.2104366272687912, -0.3576526343822479, -0.3839244842529297, 0.201467365026474, 0.17055507004261017, 0.39818865060806274, 0.4658140242099762, -0.02966974675655365, 0.9074275493621826, -0.34332725405693054, 0.45855557918548584, 0.3817594051361084, -0.9449841380119324, 0.6456190347671509, -0.31089872121810913, 0.1436087042093277, 0.34415364265441895, 0.05300261452794075, -0.21334952116012573, -0.39071494340896606, -0.504615068435669, -0.8429592251777649, 0.739901602268219, 0.20338456332683563, -0.22082078456878662, 0.24032917618751526, 0.38721996545791626, -0.0482751727104187, -0.07440207153558731, -0.6290237903594971, -0.13408032059669495, -0.2780752182006836, -0.4148387908935547, 0.1314263939857483, -0.33564502000808716, -0.06820067018270493, -0.2931693494319916, 0.28614166378974915, -0.5296329259872437, 0.4219338595867157, 0.12003076821565628, -0.21104033291339874, -0.11985056847333908, 0.2889278829097748, 0.23679958283901215, 0.532379150390625, -0.40933626890182495, 0.29990923404693604, -0.1632837951183319, -0.6058046221733093, 0.04243006184697151, -0.1329665333032608, -0.41831162571907043, -0.39225372672080994, 0.5828570127487183, 0.6219460964202881, 0.17308875918388367, -0.45905745029449463, 0.2579926550388336, -0.12277942895889282, -0.22919496893882751, 0.05129385367035866, 0.24281281232833862, -0.2984845042228699, 0.2679712176322937, 0.3292906582355499, 0.6452664732933044, 0.5031788945198059, -0.8395605683326721, 0.4174234867095947, 0.2874685525894165, -0.24579203128814697, -0.39367297291755676, 0.4781504273414612, 0.3013022840023041, 0.2164716273546219, 0.3232874274253845, -0.2693870961666107, -0.46604201197624207, 0.8051059246063232, 0.3252774477005005, 1.0498809814453125, 0.05552598461508751, 0.39816516637802124, 0.18740451335906982, 0.21275556087493896, -0.07354311645030975, 0.2677634656429291, -0.11127221584320068, -1.0818558931350708, -0.5344813466072083, -0.8426922559738159, -0.4416331350803375, 0.20988862216472626, -0.8508212566375732, -0.22387653589248657, -0.6986618041992188, 0.04120942950248718, 0.15328186750411987, -0.2215697020292282, -0.5954229831695557, 0.3080780804157257, 0.38343656063079834, 0.5971876382827759, -0.6563912630081177, 1.1211875677108765, 0.6561456918716431, -0.21019774675369263, -0.6412508487701416, 0.38996660709381104, -0.10503412038087845, -0.8871676921844482, 0.69029301404953, 0.28707751631736755, -0.3838190734386444, -0.0656551793217659, -0.7861093878746033, -0.5890786647796631, 1.0870922803878784, 0.254107803106308, -0.3600461781024933, -0.16335342824459076, -0.022537674754858017, 0.5028932094573975, -0.4604458212852478, -0.08779318630695343, 0.8057177662849426, 0.37728533148765564, 0.30493173003196716, -0.9344890117645264, -0.10502652078866959, -0.1869635283946991, 0.2191792130470276, -0.02909170649945736, -0.43108123540878296, 0.572269856929779, -0.3362090289592743, -0.47082796692848206, 0.15824462473392487, 0.5641038417816162, 0.11608000099658966, 0.5898352861404419, 0.37570297718048096, 0.559262752532959, 0.7560436725616455, -0.19666676223278046, 1.0027393102645874, -0.08502074331045151, 0.6970592141151428, 1.0083544254302979, -0.018618617206811905, 0.9720566272735596, 0.280640184879303, -0.18107910454273224, 0.5169099569320679, 0.6399180293083191, -0.16380076110363007, 0.7303214073181152, -0.03643538057804108, 0.21241793036460876, -0.27711212635040283, -0.2615605592727661, -0.04593799635767937, 0.8233788013458252, 0.5093344449996948, -0.09627510607242584, -0.3067268431186676, -0.040264468640089035, -0.34490543603897095, -0.11974208056926727, -0.755036473274231, 0.6056721806526184, 0.19872227311134338, -0.03246789798140526, 0.7162873148918152, 0.13740214705467224, 0.8762326836585999, -0.20450544357299805, -0.044796209782361984, -0.002908860333263874, 0.3328089118003845, -0.5670207738876343, -1.0120277404785156, 0.4795388877391815, 0.02756657265126705, -0.07544082403182983, -0.1828157603740692, 0.8812885880470276, -0.3017491102218628, -0.3739194869995117, -0.004260316491127014, 0.46662437915802, 0.11505095660686493, -0.028213100507855415, -0.7538975477218628, 0.2581264078617096, -0.12056709825992584, 0.07181733846664429, 0.15870651602745056, 0.5572538375854492, -0.23530307412147522, 0.9086204171180725, 0.33327701687812805, -0.1002405509352684, -0.25189515948295593, -0.011776604689657688, 0.8781901597976685, -0.8252003192901611, -0.6144213080406189, -0.7834877967834473, 0.41978970170021057, 0.2093634456396103, 0.028641462326049805, 0.5177459120750427, 0.4954336881637573, 0.8734661340713501, -0.08779921382665634, 0.8286752104759216, 0.03438843414187431, -0.09916986525058746, -0.7929047346115112, 0.5829391479492188, -0.5117790102958679, 0.31977856159210205, -0.4942777752876282, -0.6266006827354431, -0.4935359060764313, 0.6998168230056763, -0.20327234268188477, -0.009178654290735722, 0.747508704662323, 0.6077147722244263, -0.15115387737751007, -0.194607213139534, 0.5208961367607117, 0.31503093242645264, 0.2789417505264282, 0.5433576107025146, 1.3267583847045898, -0.2807154059410095, 0.5845961570739746, -0.21515469253063202, -0.36651068925857544, -0.2705342471599579, -0.6772366166114807, -0.7578157782554626, -0.4806874096393585, -0.6597706079483032, 0.1066351905465126, -0.2396983653306961, 0.5807480812072754, 0.964733362197876, -0.6999409794807434, -0.03917602822184563, -0.12930478155612946, 0.25700268149375916, -0.09488622099161148, -0.2620842456817627, 0.5799217224121094, -0.3524536192417145, -0.5319965481758118, 0.08157671988010406, 0.6941137909889221, 0.2557051479816437, -0.08968726545572281, -0.2779461741447449, 0.5015179514884949, -0.10350140929222107, 0.8614186644554138, 0.018962113186717033, -0.7647823691368103, -0.3799123466014862, -0.410834938287735, 0.016660545021295547, 0.42730265855789185, 0.5491419434547424, -0.587909460067749, 0.37884947657585144, 0.3923519551753998, 0.5828627943992615, 0.52939373254776, 0.1309487223625183, 0.21617461740970612, -0.5866642594337463, 0.18145377933979034, 0.21443693339824677, 0.49029064178466797, 0.137274369597435, -0.36915069818496704, 0.5739815831184387, 0.4389999210834503, -0.31587469577789307, -0.8130760192871094, 0.31773969531059265, -1.2919657230377197, -0.3694697916507721, 0.9541615843772888, -0.3144964277744293, -0.4170718789100647, -0.07643774896860123, -0.06565696746110916, 0.11968689411878586, -0.2741641104221344, 0.7549936175346375, 0.3756910264492035, -0.18219153583049774, -0.4075498878955841, -0.5485751628875732, 0.46814945340156555, -0.009121924638748169, -1.1314971446990967, 0.02997283637523651, 0.4719640016555786, 0.24318912625312805, 0.26446741819381714, 0.5376939177513123, -0.36025041341781616, 0.35266387462615967, -0.023776521906256676, 0.17312271893024445, -0.12327423691749573, -0.7006106376647949, -0.5431493520736694, 0.4140448570251465, 0.29623955488204956, -0.5547989010810852 ]
http://arxiv.org/abs/2405.18669v2
http://arxiv.org/pdf/2405.18669v2
Zipper: A Multi-Tower Decoder Architecture for Fusing Modalities
2024-05-29T00:23:55
2024-05-31T15:42:53
Vicky Zayats, Peter Chen, Melissa Ferrari, Dirk Padfield
cs.LG
cs.LG, cs.AI, cs.CL, eess.AS
Integrating multiple generative foundation models, especially those trained on different modalities, into something greater than the sum of its parts poses significant challenges. Two key hurdles are the availability of aligned data (concepts that contain similar meaning but is expressed differently in different modalities), and effectively leveraging unimodal representations in cross-domain generative tasks, without compromising their original unimodal capabilities. We propose Zipper, a multi-tower decoder architecture that addresses these concerns by using cross-attention to flexibly compose multimodal generative models from independently pre-trained unimodal decoders. In our experiments fusing speech and text modalities, we show the proposed architecture performs very competitively in scenarios with limited aligned text-speech data. We also showcase the flexibility of our model to selectively maintain unimodal (e.g., text-to-text generation) generation performance by freezing the corresponding modal tower (e.g. text). In cross-modal tasks such as automatic speech recognition (ASR) where the output modality is text, we show that freezing the text backbone results in negligible performance degradation. In cross-modal tasks such as text-to-speech generation (TTS) where the output modality is speech, we show that using a pre-trained speech backbone results in superior performance to the baseline.
[ -0.3151867389678955, -0.4288913607597351, 0.01318244356662035, 0.29859140515327454, -0.3282613158226013, 0.17449773848056793, -0.010446189902722836, -0.1954948604106903, 0.08704668283462524, 0.20911848545074463, -0.5152937173843384, -0.18254297971725464, -0.22419866919517517, -0.025523854419589043, -0.6562174558639526, 0.9024792313575745, 0.25664737820625305, -0.007553097326308489, -0.3140593469142914, 0.019522571936249733, -0.32098388671875, -0.4395236372947693, -0.2315264642238617, -0.31570374965667725, 0.2976057827472687, 0.1537991166114807, 0.7116493582725525, 0.46451061964035034, 0.11111293733119965, 0.3625611662864685, 0.26734811067581177, 0.12903892993927002, -0.19077181816101074, 0.17447884380817413, -0.06606780737638474, -0.22244316339492798, -0.4496506452560425, -0.13464416563510895, 0.7357116341590881, 0.5120920538902283, 0.021395843476057053, 0.19937410950660706, 0.09497422724962234, 0.7064330577850342, -0.9219880700111389, -0.17421644926071167, -0.6911642551422119, 0.12000887840986252, -0.2165275663137436, -0.2860560119152069, -0.32064494490623474, 0.28984859585762024, -0.044710673391819, -0.3275283873081207, 0.3013237416744232, 0.042228054255247116, 0.782833993434906, 0.44470441341400146, -0.4900864064693451, 0.02429208531975746, -0.5514942407608032, 0.6894587278366089, -0.28548115491867065, 0.7883505821228027, 0.3530125021934509, 0.21265150606632233, 0.1297537237405777, -0.7743713855743408, -0.6909410953521729, 0.16856145858764648, -0.17219936847686768, 0.3925636410713196, -0.31137213110923767, -0.025832349434494972, -0.05290183052420616, 0.6324530243873596, -0.7420582175254822, -0.12427633255720139, -0.4246513247489929, -0.2576437294483185, 0.3455318808555603, 0.06457985937595367, 0.43953877687454224, -0.5865497589111328, -0.5785201787948608, -0.1626509130001068, -0.5865200161933899, 0.28344064950942993, 0.43961432576179504, 0.2853911221027374, -0.08643581718206406, 0.48670604825019836, -0.0815713107585907, 0.7855587005615234, 0.276227742433548, 0.024246541783213615, 0.43281105160713196, -0.42360424995422363, -0.6464841365814209, 0.043116312474012375, 0.9107353687286377, -0.06409852206707001, -0.3828195035457611, -0.6295340657234192, -0.2506754696369171, 0.08006829023361206, 0.6058379411697388, -0.5362896919250488, -0.2698085904121399, 0.3714045286178589, -0.6284133195877075, -0.1837257444858551, 0.037202075123786926, -0.8106908202171326, 0.0708359107375145, -0.15059925615787506, 0.684935986995697, -0.31628572940826416, -0.3573160469532013, 0.28808221220970154, -0.23167705535888672, 0.21566376090049744, -0.01932508684694767, -1.0313518047332764, 0.11942291259765625, 0.3759370744228363, 0.819143533706665, 0.034667592495679855, -0.3380589783191681, -0.7143906354904175, 0.3234712481498718, -0.10624779015779495, 0.5781737565994263, -0.6729509234428406, -0.19855424761772156, 0.10308824479579926, 0.09855392575263977, -0.4908355474472046, -0.11180122196674347, 0.7519024014472961, -0.48140111565589905, 0.3394606411457062, 0.1423509418964386, -0.04167291149497032, -0.06100859493017197, 0.06304789334535599, -0.8627731800079346, 0.7939103841781616, 0.14290305972099304, -0.7338415384292603, -0.02743750438094139, -0.4387013614177704, -0.840388298034668, -0.08091339468955994, -0.27247363328933716, -0.5899143218994141, 0.4236783981323242, 0.3693915009498596, 0.5121092200279236, -0.6770678758621216, 0.14328330755233765, 0.03310910612344742, -0.306237131357193, 0.36032360792160034, -0.5964201092720032, 0.7612754106521606, 0.4798167049884796, -0.34177055954933167, 0.1504158228635788, -1.0173430442810059, 0.3244410753250122, -0.37137967348098755, -0.5677649974822998, -0.1837872564792633, 0.01673680916428566, 0.5479740500450134, 0.24117274582386017, -0.039806608110666275, -0.31185805797576904, 0.0896441787481308, -0.044433627277612686, 0.5655659437179565, 0.4883584678173065, -0.7437587380409241, 0.5876529216766357, -0.6439712643623352, 0.5556991696357727, 0.10584640502929688, -0.0959644466638565, -0.5089559555053711, -0.15862424671649933, -0.8049300312995911, -0.7306421399116516, 0.45694851875305176, 0.399227112531662, -0.8750768303871155, 0.6169438362121582, -0.47398433089256287, -0.22791782021522522, -0.8564367294311523, -0.003057287773117423, 0.6097500324249268, 0.303300678730011, 0.35769781470298767, -0.41615891456604004, -0.6014910936355591, -0.8811766505241394, -0.08086203038692474, 0.09742666780948639, -0.3177211582660675, 0.007589622400701046, 0.3386524021625519, -0.06587332487106323, 0.8386252522468567, -0.06983835250139236, -0.5325631499290466, -0.16041326522827148, 0.5791243314743042, -0.09937438368797302, 0.6984933018684387, 0.32315152883529663, -1.1560944318771362, -0.21323144435882568, 0.15663938224315643, -0.47364485263824463, 0.05859767273068428, -0.24131344258785248, 0.20461931824684143, 0.08184566348791122, 0.2820904552936554, -0.816062867641449, 0.1742042899131775, 0.8286686539649963, 0.013799537904560566, 0.4072936773300171, 0.00468810461461544, 0.5721831321716309, -1.494472622871399, 0.2933317720890045, -0.37657713890075684, 0.029813427478075027, -0.8739093542098999, -0.057789161801338196, 0.22175362706184387, -0.32698947191238403, -0.30383604764938354, 0.020548462867736816, -0.8540158867835999, -0.1640375554561615, -0.12919048964977264, -0.08123811334371567, 0.2597522437572479, 0.6222125291824341, 0.06299032270908356, 0.773850679397583, 0.8870024085044861, -0.4996345043182373, 0.3306542932987213, 0.19797931611537933, -0.6033042073249817, 0.49179014563560486, -0.6322510838508606, 0.2694813907146454, -0.21786388754844666, 0.3308064341545105, -0.9545071125030518, -0.47471919655799866, -0.08124895393848419, -0.5790244936943054, 0.38750672340393066, -0.3024469017982483, -0.45449942350387573, -0.28588491678237915, -0.5018151998519897, 0.8603451251983643, 0.48482391238212585, -0.6582213640213013, 1.2406187057495117, 0.23113593459129333, 0.29741084575653076, -0.8514319062232971, -1.043560266494751, 0.04497874900698662, -0.162864550948143, -0.9024805426597595, 0.7098165154457092, -0.017740096896886826, 0.32808157801628113, 0.1838812530040741, -0.22485095262527466, -0.23328278958797455, -0.1926112025976181, 0.49164462089538574, 0.061888668686151505, -0.2846570611000061, 0.36758679151535034, 0.04129179194569588, -0.014518002048134804, -0.2529294788837433, -0.4198344647884369, 0.5237497687339783, -0.12364649772644043, -0.41921576857566833, -0.4212303161621094, 0.7122235298156738, 1.0857939720153809, -0.6460539698600769, 0.598108172416687, 0.8348455429077148, -0.34796348214149475, -0.19456061720848083, -0.6273010969161987, 0.16346701979637146, -0.4856473207473755, 0.16350850462913513, -0.8428736925125122, -0.9891923666000366, 0.601317822933197, -0.035686980932950974, -0.22411417961120605, 0.1201256513595581, 0.5357009768486023, 0.015862660482525826, 0.9537410736083984, 0.7407575845718384, -0.09520523995161057, 0.4364599585533142, -0.10729523748159409, 0.588994562625885, -1.2577269077301025, -0.45036324858665466, -0.5720286965370178, -0.414259672164917, -0.2708470821380615, -0.6651793718338013, 0.40574705600738525, 0.34728819131851196, 0.1376739889383316, 0.3614565432071686, -0.5679660439491272, 0.4457533061504364, 0.4966472089290619, -0.05783047154545784, 0.2617197632789612, 0.2536400854587555, 0.020046129822731018, 0.316826730966568, -0.9650851488113403, -0.11049862205982208, 0.853452205657959, -0.05881239101290703, 1.131526231765747, 0.30503854155540466, 0.2864432632923126, 0.0870823860168457, -0.16143713891506195, -0.6288548707962036, 0.2283041775226593, -0.3173966407775879, -0.44355854392051697, -0.0012597237946465611, -0.4181985557079315, -0.9040728807449341, 0.6123127937316895, -0.26452115178108215, -0.8029129505157471, 0.4063161611557007, 0.05266939103603363, -0.4366353750228882, 0.3486417233943939, -0.6476907134056091, 0.8643248677253723, -0.14699703454971313, -0.4106491506099701, -0.1252235621213913, -0.826682984828949, 0.6216625571250916, -0.04129264876246452, 0.011529851704835892, 0.22271506488323212, 0.19843687117099762, 0.456256240606308, 0.014312323182821274, 0.8367913961410522, 0.564346194267273, 0.10106600821018219, 0.21747396886348724, -0.0662146508693695, 0.22945161163806915, -0.034549809992313385, 0.061261024326086044, 0.060922399163246155, -0.12133198976516724, -0.19878879189491272, -0.6550412774085999, 0.7238388657569885, -0.8395950794219971, -0.562532901763916, -0.3686578869819641, -0.910443902015686, -0.2289854735136032, 0.04536549374461174, 0.4585897922515869, 0.940838098526001, -0.16072224080562592, 0.5982886552810669, 0.6400600075721741, 0.14235691726207733, 0.6792629957199097, 0.41921547055244446, 0.2003224641084671, -0.6141583919525146, 0.85866779088974, -0.11851642280817032, 0.28348997235298157, 0.8204147815704346, -0.0021754680201411247, -0.3751651346683502, -0.3085283041000366, -0.6326745748519897, -0.3167650103569031, -0.6105097532272339, -0.5469695329666138, -0.976213276386261, -0.3755510747432709, -0.6151993274688721, -0.4222046136856079, -0.4385543465614319, -0.5522208213806152, -0.31448012590408325, 0.11553757637739182, 0.06590157747268677, 0.28014302253723145, -0.3367359936237335, 0.28334328532218933, -1.010772705078125, 0.5980373620986938, 0.4857412874698639, 0.07477924227714539, 0.019117455929517746, -0.3672764003276825, -0.20004168152809143, -0.05879107117652893, -0.2236117422580719, -0.8329542279243469, 0.27163437008857727, 0.22507430613040924, 0.35194823145866394, 0.41968628764152527, 0.26162534952163696, 0.897750973701477, -0.3443586528301239, 0.7036151885986328, 0.6786120533943176, -1.2856463193893433, 0.36979761719703674, -0.26225745677948, 0.6087141633033752, 0.3988417685031891, 0.4054543375968933, -0.46605780720710754, -0.2722686529159546, -0.26228418946266174, -0.7453217506408691, 0.8256084322929382, 0.30417969822883606, 0.17639601230621338, 0.13276302814483643, -0.2206321358680725, -0.00725138746201992, 0.3576606512069702, -0.9205476641654968, 0.07235123217105865, -0.7080203294754028, -0.32061877846717834, 0.2580810487270355, -0.2329862415790558, -0.4109078049659729, -0.23202437162399292, 0.34748268127441406, -0.3024018704891205, 0.30619263648986816, 0.10704218596220016, -0.3522090017795563, -0.2669880986213684, 0.7070910930633545, 0.5819323062896729, 0.40607908368110657, 0.08993197977542877, 0.6260167360305786, -0.21856753528118134, -0.16117388010025024, 0.04425438493490219, 0.2180282473564148, -0.1826363205909729, -0.24589307606220245, 0.36678606271743774, 0.8879550099372864, 0.31783223152160645, -0.5859887599945068, 0.5595484972000122, -0.09966208785772324, -0.007851743139326572, 0.0629298985004425, -0.15486367046833038, -0.11529158055782318, 0.3509353995323181, 0.5038244128227234, 0.4566386640071869, 0.1445946991443634, -0.7299273014068604, 0.367725133895874, 0.6553018093109131, -0.14718231558799744, -0.5514407753944397, 0.7654294967651367, 0.36705660820007324, -0.25920385122299194, 0.6215180158615112, 0.12050685286521912, -0.7895068526268005, 0.2769581377506256, 0.8163047432899475, 1.160354495048523, -0.3308899700641632, 0.25451207160949707, 0.18782980740070343, 0.3693085014820099, 0.10859387367963791, 0.03166787698864937, -0.635384202003479, -0.6896487474441528, -0.24346667528152466, -0.8479143977165222, 0.1942625492811203, 0.15390999615192413, -0.6620693802833557, 0.019640609622001648, -0.024789849296212196, -0.02783893421292305, -0.33715540170669556, -0.37894347310066223, -0.5133407115936279, 0.20882636308670044, -0.12507373094558716, 0.557770311832428, -0.7528548240661621, 0.917672872543335, 0.5886960029602051, -0.550645112991333, -0.6895027756690979, 0.16913533210754395, 0.08540405333042145, -0.6747766137123108, 0.5064371824264526, 0.3223533630371094, -0.6935344934463501, -0.05590067431330681, -0.016043690964579582, -0.7711532711982727, 1.1351779699325562, 0.290363609790802, -0.38754263520240784, -0.027612725272774696, 0.20605500042438507, 0.2556077539920807, -0.6191561818122864, 0.16829825937747955, 0.23244430124759674, 0.20799978077411652, 0.34967511892318726, -1.0569818019866943, 0.10442370176315308, -0.5400257706642151, 0.02459196001291275, 0.1755014955997467, -0.7665467858314514, 1.0231297016143799, -0.24255499243736267, -0.7010348439216614, 0.3039831519126892, 0.6547198295593262, -0.3495306670665741, 0.03675350919365883, 0.5196384191513062, 0.8707456588745117, 0.5492534041404724, -0.13205382227897644, 0.9833419322967529, -0.388960599899292, 0.1426074504852295, 0.9785371422767639, -0.02621031366288662, 0.811412513256073, 0.5139604806900024, 0.2902776300907135, 0.38907304406166077, 0.23814478516578674, 0.0848439484834671, 0.928159236907959, -0.045016106218099594, -0.5099571943283081, -0.5324795842170715, -0.23054133355617523, -0.4940815269947052, 0.7472009062767029, 0.11226120591163635, -0.08494329452514648, -0.21765179932117462, 0.21901236474514008, -0.3679361343383789, -0.0552392415702343, -0.1323460191488266, 0.47027137875556946, -0.20137625932693481, -0.7360150218009949, 0.673401415348053, 0.057806435972452164, 0.5923317670822144, -0.8374268412590027, 0.10417698323726654, 0.06047750636935234, 0.16276735067367554, -0.4240495562553406, -0.42306309938430786, 0.2378823459148407, -0.16518381237983704, -0.48731788992881775, -0.44267264008522034, 0.6443116664886475, -0.8492297530174255, -0.305351197719574, 0.00914308987557888, 0.3696562945842743, -0.22144949436187744, 0.09013359993696213, -0.44249555468559265, 0.6438486576080322, -0.25156280398368835, -0.042020004242658615, 0.3705179989337921, 0.41650277376174927, 0.17964328825473785, 0.5944831371307373, 0.7341094613075256, -0.5131507515907288, 0.2923072576522827, 0.1973905861377716, 1.1879162788391113, -0.5222017168998718, -0.48072096705436707, -0.5080417394638062, 0.9338448643684387, 0.04174615815281868, -0.288851797580719, 0.6295986175537109, 0.7028812170028687, 0.644618570804596, -0.19145174324512482, 0.6777795553207397, -0.43499746918678284, -0.25336548686027527, -0.7911566495895386, 0.6132645010948181, -0.8254214525222778, 0.145967036485672, 0.03866477310657501, -0.7110114097595215, -0.21243789792060852, 0.620425283908844, 0.34067556262016296, 0.002653444418683648, 0.9406313300132751, 0.8203649520874023, -0.3120586574077606, 0.12155221402645111, 0.5009011626243591, -0.025461286306381226, 0.1579980105161667, 0.8406961560249329, 0.8840738534927368, -0.7776618599891663, 0.7076961398124695, -0.04100044444203377, -0.2213931828737259, -0.007448418997228146, -0.8065550923347473, -1.1148256063461304, -1.0063380002975464, -0.12551328539848328, -0.120314821600914, 0.05726100131869316, 0.4816232919692993, 0.9909767508506775, -0.5276016592979431, -0.1384255290031433, 0.03390249237418175, 0.13996325433254242, -0.3782118558883667, -0.24810965359210968, 0.49528175592422485, -0.48483920097351074, -0.8133532404899597, 0.7417253255844116, 0.6027414202690125, -0.08271069079637527, -0.30556467175483704, 0.07064078003168106, -0.10361021012067795, 0.1421821117401123, 0.6667190194129944, 0.22974278032779694, -0.8416691422462463, -0.31417861580848694, -0.07260402292013168, -0.0935167595744133, 0.06590572744607925, 1.392763614654541, -0.9126773476600647, 0.6656083464622498, 0.7556226253509521, 0.9787306785583496, 0.46005669236183167, -0.05792735517024994, 0.6148905158042908, -0.9939725995063782, 0.19154174625873566, 0.11816718429327011, 0.3327092230319977, 0.36188092827796936, -0.1572319120168686, 0.23906835913658142, 0.020121196284890175, -0.3040829300880432, -0.8049033284187317, 0.43825650215148926, -1.2861074209213257, -0.2789894938468933, 0.7091037034988403, 0.03432217612862587, -0.23896090686321259, -0.175161212682724, 0.11015496402978897, 0.06966187804937363, -0.11323768645524979, 0.8925049901008606, 0.5714684724807739, -0.04301242530345917, -0.5249274373054504, -0.1285620629787445, 0.5731920599937439, 0.5628654360771179, -0.6455483436584473, 0.24203331768512726, 0.5825653076171875, 0.01701733097434044, 0.5165529847145081, 0.6266751885414124, -0.15629735589027405, 0.5982456803321838, 0.21735532581806183, -0.23622751235961914, -0.3069237768650055, -0.7226625084877014, -0.2670484483242035, 0.6159377694129944, -0.6714345216751099, -0.43300092220306396 ]
http://arxiv.org/abs/2405.18662v1
http://arxiv.org/pdf/2405.18662v1
Understanding Intrinsic Socioeconomic Biases in Large Language Models
2024-05-28T23:54:44
2024-05-28T23:54:44
Mina Arzaghi, Florian Carichon, Golnoosh Farnadi
cs.CL
cs.CL, cs.CY, cs.LG
Large Language Models (LLMs) are increasingly integrated into critical decision-making processes, such as loan approvals and visa applications, where inherent biases can lead to discriminatory outcomes. In this paper, we examine the nuanced relationship between demographic attributes and socioeconomic biases in LLMs, a crucial yet understudied area of fairness in LLMs. We introduce a novel dataset of one million English sentences to systematically quantify socioeconomic biases across various demographic groups. Our findings reveal pervasive socioeconomic biases in both established models such as GPT-2 and state-of-the-art models like Llama 2 and Falcon. We demonstrate that these biases are significantly amplified when considering intersectionality, with LLMs exhibiting a remarkable capacity to extract multiple demographic attributes from names and then correlate them with specific socioeconomic biases. This research highlights the urgent necessity for proactive and robust bias mitigation techniques to safeguard against discriminatory outcomes when deploying these powerful models in critical real-world applications.
[ -0.14790526032447815, -0.6845236420631409, 0.7792298793792725, 0.1854853630065918, 0.12565714120864868, 0.35664358735084534, -0.22527363896369934, -0.4879058301448822, -0.1268809735774994, 0.595123827457428, -0.44553691148757935, -0.23434850573539734, -0.6664866209030151, -0.2562105059623718, -0.0142361493781209, 0.988796055316925, 0.4000481367111206, 0.24069498479366302, -0.39829665422439575, -0.0654236376285553, -0.2831355929374695, -0.706311047077179, -0.5065122842788696, -0.3493485450744629, 0.3739349842071533, 0.30096685886383057, 0.8528489470481873, 0.40014851093292236, 0.32513925433158875, 0.18734797835350037, -0.2823295593261719, -0.0797724649310112, -0.5875149369239807, 0.008166168816387653, -0.32455116510391235, -0.45810937881469727, -0.4821329116821289, -0.01793852262198925, 0.6797094941139221, 0.9583203196525574, 0.06011788174510002, 0.539322555065155, 0.27444925904273987, 0.7148060202598572, -0.662270724773407, 0.20310693979263306, -0.7680131793022156, -0.10523658245801926, -0.47704601287841797, 0.18657279014587402, -0.23265133798122406, -0.6137065291404724, 0.028774917125701904, -0.10013753175735474, 0.23513343930244446, -0.07704441249370575, 0.6054610013961792, 0.2006271481513977, -0.7269211411476135, -0.06913232058286667, -0.6524370908737183, 0.8298404216766357, -0.6531774997711182, 0.18967710435390472, 0.44255098700523376, 0.2697594463825226, -0.15504512190818787, -0.24296340346336365, -0.45944082736968994, 0.02728389762341976, -0.08917699754238129, -0.14619407057762146, -0.11646728217601776, -0.011988088488578796, 0.25748544931411743, -0.014714088290929794, -0.45582467317581177, 0.5440660715103149, -0.5441418886184692, -0.1634516417980194, 0.5919374823570251, 0.15837104618549347, 0.11075657606124878, -0.2606047987937927, -0.16221530735492706, 0.3358632028102875, -0.9815119504928589, 0.1548561453819275, 0.9549249410629272, 0.4064464271068573, -0.37617984414100647, 0.6009224653244019, 0.0840560644865036, 0.23307928442955017, 0.009451519697904587, -0.02227383852005005, 0.14301536977291107, -0.174215629696846, 0.2714565098285675, 0.137648344039917, 0.6054261326789856, 0.3878342807292938, 0.8149851560592651, -0.04673200100660324, -0.08703666180372238, 0.1768251210451126, -0.1090971976518631, -0.532024085521698, 0.3676624894142151, 0.2529415190219879, -0.36345720291137695, -0.5304878354072571, -0.07721401005983353, -1.0281766653060913, -0.5555891394615173, -0.03806130215525627, -0.16816125810146332, 0.30452337861061096, -0.2366354912519455, -0.06490372866392136, 0.013626467436552048, 0.41485822200775146, 0.11590155959129333, -0.8514053821563721, 0.08896879106760025, 0.9729897975921631, 0.5571110844612122, 0.15721440315246582, -0.026295267045497894, -0.26705247163772583, 0.2768360674381256, -0.19172163307666779, 0.5365646481513977, -0.9876496195793152, -0.28566986322402954, 0.12383954226970673, -0.15803812444210052, 0.01574413850903511, -0.704055666923523, 0.3606564700603485, -0.4348593056201935, -0.1700427383184433, -0.30833137035369873, -0.06347200274467468, 0.10938067734241486, 0.013472641818225384, -0.447905033826828, 1.021767258644104, 0.1551547348499298, -0.6444000005722046, 0.7936557531356812, -0.3452153503894806, -0.42569443583488464, 0.10498672723770142, -0.27643823623657227, -0.5317224860191345, 0.2706123888492584, 0.10084083676338196, 0.3514760136604309, -0.5119245052337646, 0.8770415782928467, -0.750352144241333, -0.14172802865505219, 0.34438636898994446, -0.6001474857330322, 0.7681018710136414, -0.018347153440117836, -0.47629037499427795, -0.11484307050704956, -0.5708374977111816, -0.5652976036071777, 0.21552447974681854, -0.10010602325201035, -0.42782002687454224, 0.16465896368026733, -0.05189501494169235, 0.3106151521205902, 0.3604416251182556, -0.4279140830039978, -0.08874762803316116, -0.10010171681642532, 0.589318573474884, 1.0994765758514404, -0.2333308905363083, 0.41350072622299194, -0.27565476298332214, 0.5562605261802673, 0.020124632865190506, 0.23727408051490784, 0.19774088263511658, -0.3011721074581146, -0.4232438802719116, -0.2663828134536743, 0.1256507784128189, 0.46617022156715393, -0.2997290790081024, 0.1620331108570099, -0.25294703245162964, -0.3395727574825287, -0.5362737774848938, 0.19035063683986664, 0.24196194112300873, 0.2724613845348358, -0.14719201624393463, 0.10778333246707916, -0.5655112862586975, -1.258475422859192, -0.5281332731246948, -0.31900545954704285, 0.056550588458776474, 0.5987385511398315, 0.6291245818138123, -0.14387069642543793, 0.8520690202713013, -0.26233822107315063, -0.1803366094827652, -0.20105259120464325, -0.285910964012146, 0.24844896793365479, 0.4082677960395813, 0.7603597640991211, -0.6765523552894592, -0.1387937217950821, 0.009301112033426762, -0.6652677655220032, -0.5446241497993469, -0.11173339933156967, -0.08088917285203934, 0.08306485414505005, 0.29967597126960754, -0.4661311209201813, 0.324226975440979, 0.4795847535133362, -0.5907248258590698, 0.5785538554191589, 0.04584398493170738, -0.020403798669576645, -0.6105103492736816, -0.2017393261194229, 0.502379834651947, -0.1671058088541031, -0.19251179695129395, 0.15772496163845062, -0.14747855067253113, 0.14214761555194855, -0.36831414699554443, 0.5259878635406494, -0.38008832931518555, -0.3213694393634796, 0.18002231419086456, 0.21661421656608582, -0.1027589812874794, 0.1321903020143509, -0.15227162837982178, 0.8222655653953552, 0.23846721649169922, -0.23121128976345062, 0.049896445125341415, 0.08729936927556992, -0.3019895851612091, 0.6621270179748535, -0.7524617314338684, -0.062438931316137314, -0.5977691411972046, 0.4053804576396942, -0.9656611680984497, -0.18338675796985626, -0.11858747899532318, -0.31713956594467163, -0.12830117344856262, -0.26860716938972473, -0.3228706419467926, -0.3778955340385437, -0.3187779486179352, 0.6211936473846436, 0.43427085876464844, -0.3023044764995575, 0.5462450981140137, 0.8348754644393921, -0.6583042144775391, -0.5244681239128113, -0.46908023953437805, 0.07866738736629486, -0.48198702931404114, -0.517769455909729, -0.0015973292756825686, 0.35276636481285095, -0.679934024810791, -0.2401999980211258, 0.14416031539440155, 0.05243329703807831, 0.30425316095352173, 0.2887066602706909, 0.5346919894218445, -0.1400362253189087, -0.025442220270633698, 0.19961486756801605, -0.005430011544376612, 0.18413372337818146, -0.290875107049942, 0.7237951159477234, 0.12237663567066193, -0.31857621669769287, 0.19528459012508392, 0.11202183365821838, 0.8523709177970886, -0.14480949938297272, 0.8183353543281555, 0.203489288687706, -0.44605275988578796, 0.10730216652154922, -0.8330050110816956, 0.12199854850769043, -0.4629420042037964, 0.5958017706871033, -0.2387056201696396, -1.1025789976119995, 0.8160750269889832, 0.18758384883403778, 0.007183367386460304, 0.5579286217689514, 0.5994734168052673, 0.2538987994194031, 1.120601773262024, 0.4541186988353729, -0.20591622591018677, 0.2697228491306305, 0.03763008490204811, 0.39372941851615906, -0.9735643267631531, -0.4290330410003662, -0.7277476787567139, -0.2297544628381729, -0.684992790222168, -0.46805325150489807, 0.43902209401130676, -0.11275718361139297, -0.511755108833313, -0.22165443003177643, -0.11268051713705063, 0.6933451890945435, 0.2475210726261139, 0.1487969011068344, 0.13795509934425354, -0.0636613517999649, -0.11710795015096664, -0.41231483221054077, -0.5224543213844299, -1.00818932056427, 1.2673892974853516, 0.5520281195640564, 0.7084107995033264, 0.17296725511550903, 0.16848579049110413, 0.6302570104598999, 0.2967546284198761, -0.30546003580093384, 0.4630950689315796, -0.43962928652763367, -0.7299214005470276, -0.17819412052631378, -0.5601205825805664, -0.7638314962387085, 0.284524142742157, -0.38468071818351746, -0.8871108889579773, 0.4121362566947937, 0.1335517019033432, -0.26123735308647156, 0.3693320155143738, -0.5066222548484802, 0.7306264638900757, -0.443373441696167, -0.9780398607254028, -0.2864360213279724, -0.45394691824913025, 0.5693625211715698, -0.39927706122398376, 0.7373135685920715, -0.4502807557582855, 0.08060026168823242, 0.4297857880592346, -0.2625308036804199, 1.0272042751312256, -0.2840406000614166, -0.21656446158885956, -0.23526650667190552, -0.08844839036464691, 0.3203302025794983, 0.04290527105331421, -0.4216137230396271, 0.41180509328842163, -0.04595354571938515, -0.7192105054855347, -0.1390671730041504, 0.8228906989097595, -0.9346329569816589, -0.5827388763427734, -0.34173935651779175, -0.5641744136810303, -0.15025001764297485, -0.09864592552185059, -0.23672057688236237, 0.3648169934749603, -0.40372931957244873, 0.07545645534992218, 0.2996448874473572, -0.6514544486999512, 0.013897895812988281, 0.47275927662849426, -0.25371527671813965, 0.028472499921917915, 0.596779465675354, 0.3965953290462494, 0.44203701615333557, 0.01582403853535652, 0.24500881135463715, -0.19187843799591064, -0.3271765112876892, -0.2759215533733368, 0.4742443859577179, -0.5098689198493958, 0.09470415860414505, -0.7940260171890259, 0.026746759191155434, -0.8579110503196716, -0.38405346870422363, 0.0021424468141049147, -0.2719936668872833, 0.15950119495391846, -0.31229841709136963, 0.16025957465171814, 0.9105327725410461, 0.009967083111405373, 0.40387874841690063, -0.5012721419334412, 0.40218648314476013, 0.18217146396636963, 0.19729205965995789, 0.3691714107990265, -0.5837878584861755, 0.021159714087843895, 0.30602356791496277, -0.030415941029787064, -0.6069877743721008, 0.15749822556972504, 0.034905076026916504, 0.7530148029327393, 0.4491291344165802, 0.0013786577619612217, 0.5484244227409363, -0.4594065546989441, 0.8088545203208923, -0.243080273270607, -0.8150447010993958, 0.36431771516799927, -0.48487505316734314, 0.07175088673830032, 0.48555025458335876, 0.23371264338493347, -0.5100970268249512, -0.6651487350463867, -0.34055185317993164, -1.3859978914260864, 0.6574323773384094, -0.1266375035047531, 0.2390364706516266, -0.2056719958782196, 0.329394668340683, 0.2607998251914978, 0.33589276671409607, -0.8393352031707764, -0.0010827002115547657, 0.2864634394645691, -0.3591592609882355, -0.09519148617982864, -0.6480223536491394, 0.22883889079093933, -0.16037097573280334, 0.7358672022819519, 0.07211330533027649, -0.3881062865257263, -0.2032989263534546, -0.3751063942909241, 0.1299513727426529, 0.4085375964641571, 0.4549003839492798, 0.5950071215629578, -0.052878983318805695, 0.10556275397539139, 0.17721350491046906, -0.5514663457870483, 0.2984722852706909, -0.00036579667357727885, -0.24226903915405273, -0.2920060455799103, 0.25687500834465027, 0.6122934222221375, 0.24987781047821045, -0.665966808795929, 0.5041328072547913, 0.12346925586462021, -0.0493193194270134, -0.4879322946071625, -0.2741008996963501, 0.005279583390802145, 0.37597060203552246, 0.5017452836036682, -0.1134970486164093, 0.06578447669744492, -0.6813052892684937, -0.16820430755615234, 0.6751959323883057, -0.4396379888057709, -0.17224770784378052, 0.8382848501205444, 0.4792550206184387, -0.08873237669467926, 0.3479764759540558, 0.0509592741727829, -0.6978703737258911, 0.7998367547988892, 0.4346686601638794, 0.7822288870811462, -0.02353815920650959, 0.3355693519115448, 0.09909407049417496, 0.657935380935669, 0.049976494163274765, -0.12969061732292175, 0.014135962352156639, -0.835868775844574, -0.18242868781089783, -0.8279523253440857, -0.25214359164237976, -0.1956428736448288, -0.6390562057495117, 0.13595286011695862, -0.3899213671684265, -0.20806798338890076, 0.11253159493207932, -0.3255051374435425, -0.8382272720336914, -0.15899895131587982, 0.2825286090373993, 0.3895014524459839, -1.2584589719772339, 0.27890366315841675, 0.5451760292053223, -0.20113909244537354, -0.3896133303642273, -0.08606897294521332, 0.34581756591796875, -1.2235534191131592, 0.9159010052680969, 0.14795076847076416, -0.10075003653764725, -0.21799975633621216, -0.25088316202163696, -0.4819773733615875, 0.6299790740013123, 0.5900840163230896, -0.6956439018249512, -0.21378587186336517, 0.7593821287155151, 0.27683743834495544, -0.4249297082424164, 0.57155841588974, 1.0483492612838745, 0.6544145345687866, -0.1930900514125824, -0.8109558820724487, -0.008494900539517403, -0.1377677023410797, 0.151461660861969, 0.09064267575740814, -0.7877148389816284, 0.6750192642211914, -0.34007713198661804, 0.021987879648804665, -0.3334968686103821, 0.1708647608757019, 0.401454359292984, 0.44380563497543335, 0.4565035402774811, 0.2660571038722992, 0.6517207622528076, -0.3102059066295624, 1.0119112730026245, -0.3974945545196533, 0.2823420763015747, 0.7878934741020203, -0.8645688891410828, 0.32989925146102905, 0.4510771334171295, -0.6096429228782654, 0.32549068331718445, 0.5058310031890869, 0.24165759980678558, 0.04433176666498184, 0.4059557318687439, -0.3376160264015198, -0.3094992935657501, -0.5784951448440552, -0.10360926389694214, 0.505695641040802, 0.38195687532424927, -0.39388060569763184, -0.024787506088614464, -0.08685731142759323, 0.4380478858947754, 0.34276798367500305, -0.5177645683288574, 0.7050924301147461, 0.05859239399433136, -0.3719816505908966, -0.16703616082668304, -0.27716872096061707, 0.9879922866821289, -0.5416033267974854, -0.042657412588596344, -0.3310648798942566, 0.19390110671520233, -0.4301131069660187, -1.0193099975585938, 0.17777536809444427, 0.2951973080635071, -0.5533369779586792, -0.05928999185562134, 0.6589784622192383, -0.4378354251384735, -0.9003744125366211, 0.5236254334449768, 0.5263300538063049, 0.10275974124670029, 0.06108551099896431, -0.31534263491630554, 0.1683540791273117, -0.016310766339302063, -0.021440664306282997, 0.3903690576553345, 0.5255458354949951, -0.3521634042263031, 0.6438634395599365, 0.5789806246757507, 0.4280921518802643, 0.03649386391043663, 0.33523184061050415, 0.47167733311653137, -0.5424479246139526, -0.45993340015411377, -1.2021540403366089, 0.41528716683387756, -0.28280290961265564, -0.15347713232040405, 0.6744012236595154, 0.7029861807823181, 0.7605351209640503, 0.2621859610080719, 1.0533976554870605, 0.3030058741569519, 0.4596267640590668, -0.36873894929885864, 0.5504717230796814, -0.2790554463863373, 0.649344265460968, -0.41103869676589966, -0.8987073302268982, 0.06974627822637558, 0.5249482989311218, -0.756219208240509, 0.43588289618492126, -0.04109485074877739, 0.7984697222709656, 0.22766806185245514, -0.25806063413619995, 0.24175940454006195, 0.21823365986347198, 0.3275655210018158, 0.43318647146224976, 0.8441001772880554, 0.019622327759861946, 0.23905739188194275, 0.25079917907714844, -0.2537784278392792, -0.19979263842105865, -0.7785944938659668, -0.7638856172561646, 0.03379557654261589, -0.2020753026008606, -0.34501394629478455, 0.2954244017601013, 0.9380796551704407, 0.40053343772888184, -0.6432792544364929, -0.3683721721172333, 0.5040376782417297, 0.4998037815093994, 0.2720165252685547, -0.3745308518409729, -0.049603406339883804, 0.004458932671695948, -0.5960885286331177, -0.5036932826042175, 0.5193217992782593, -0.1371777355670929, -0.5004492998123169, 0.09803890436887741, -0.028804339468479156, 0.2538164258003235, 0.600216805934906, -0.09056183695793152, -0.6318284869194031, -0.319845587015152, -0.2571282386779785, -0.09897226840257645, -0.2437761127948761, 0.7597262263298035, -0.6998765468597412, -0.07707873731851578, 0.22017128765583038, 0.46223556995391846, 0.08866698294878006, -0.00523009616881609, 0.758094072341919, -0.4740961492061615, 0.26134777069091797, 0.04851437360048294, 0.5390636324882507, 0.45357948541641235, -0.42606690526008606, 0.3744185268878937, 0.14803510904312134, -0.6199667453765869, -1.0421401262283325, 0.28727927803993225, -0.5045149326324463, -0.18519039452075958, 1.165549874305725, 0.15382419526576996, -0.014984614215791225, -0.26997363567352295, -0.13941346108913422, -0.03387836366891861, -0.4549764096736908, 0.8254516124725342, 0.7342550158500671, 0.5698074698448181, -0.2139679193496704, -0.698950469493866, -0.019174300134181976, 0.345765084028244, -0.5607892870903015, 0.36644697189331055, 0.771248996257782, 0.12064281105995178, -0.319089412689209, 0.5189945101737976, -0.3875185549259186, 0.06265760958194733, -0.14515934884548187, 0.08527961373329163, 0.17835460603237152, 0.030993662774562836, -0.2882714569568634, 0.02554165944457054, 0.2780417203903198, 0.36666667461395264 ]
http://arxiv.org/abs/2405.18653v1
http://arxiv.org/pdf/2405.18653v1
Recent Advances of Foundation Language Models-based Continual Learning: A Survey
2024-05-28T23:32:46
2024-05-28T23:32:46
Yutao Yang, Jie Zhou, Xuanwen Ding, Tianyu Huai, Shunyu Liu, Qin Chen, Liang He, Yuan Xie
cs.CL
cs.CL
Recently, foundation language models (LMs) have marked significant achievements in the domains of natural language processing (NLP) and computer vision (CV). Unlike traditional neural network models, foundation LMs obtain a great ability for transfer learning by acquiring rich commonsense knowledge through pre-training on extensive unsupervised datasets with a vast number of parameters. However, they still can not emulate human-like continuous learning due to catastrophic forgetting. Consequently, various continual learning (CL)-based methodologies have been developed to refine LMs, enabling them to adapt to new tasks without forgetting previous knowledge. However, a systematic taxonomy of existing approaches and a comparison of their performance are still lacking, which is the gap that our survey aims to fill. We delve into a comprehensive review, summarization, and classification of the existing literature on CL-based approaches applied to foundation language models, such as pre-trained language models (PLMs), large language models (LLMs) and vision-language models (VLMs). We divide these studies into offline CL and online CL, which consist of traditional methods, parameter-efficient-based methods, instruction tuning-based methods and continual pre-training methods. Offline CL encompasses domain-incremental learning, task-incremental learning, and class-incremental learning, while online CL is subdivided into hard task boundary and blurry task boundary settings. Additionally, we outline the typical datasets and metrics employed in CL research and provide a detailed analysis of the challenges and future work for LMs-based continual learning.
[ -0.4073367416858673, -0.7945033311843872, 0.2614801824092865, 0.20111675560474396, -0.1000661626458168, 0.17563693225383759, -0.4985799193382263, -0.6273413896560669, -0.08199486881494522, 0.7017719745635986, -0.4706355929374695, -0.4075356125831604, -0.44791072607040405, 0.10413073748350143, -0.464531272649765, 0.6083133816719055, -0.16924230754375458, 0.21979929506778717, -0.4090127646923065, -0.17908808588981628, -0.7742244005203247, -0.5361351370811462, -0.6786165237426758, -0.3414052724838257, 0.10053224116563797, 0.32912394404411316, 0.19911709427833557, 0.26652950048446655, 0.5178636908531189, 0.22615110874176025, -0.10160955786705017, 0.07100959867238998, -0.6169255971908569, 0.007304728031158447, -0.281802773475647, -0.18369847536087036, -0.07573778927326202, -0.1410588026046753, 0.9773842692375183, 1.2513288259506226, -0.2088194042444229, 0.01548004150390625, 0.17520704865455627, 0.9224474430084229, -0.7461513876914978, -0.07389860600233078, -0.7331265211105347, 0.03747700899839401, -0.052784260362386703, 0.060859013348817825, -0.4990946054458618, -0.38119906187057495, 0.5908843874931335, -0.19952541589736938, 0.07407349348068237, -0.19523011147975922, 0.7037902474403381, 0.1892310082912445, -0.15228791534900665, -0.7074589133262634, -0.7445002794265747, 1.1314570903778076, -0.5220494866371155, 0.6490064859390259, 0.2507253587245941, 0.2969816029071808, -0.08244103193283081, -1.0218148231506348, -0.24581222236156464, -0.607193112373352, 0.034782685339450836, -0.013628678396344185, 0.1262037754058838, 0.0818866491317749, -0.18232831358909607, 0.45758095383644104, -0.47269898653030396, 0.13753244280815125, -0.16722193360328674, -0.11151838302612305, 0.39894598722457886, 0.09073392301797867, -0.02806813456118107, 0.21439595520496368, -0.5792238712310791, 0.12063226848840714, -0.9439921379089355, 0.20236383378505707, -0.46949341893196106, -0.0006947573274374008, -0.00017765173106454313, 0.14327557384967804, -0.40645837783813477, 1.4051854610443115, -0.021130749955773354, -0.4431561529636383, 0.06315689533948898, -0.4066449999809265, -0.16648949682712555, -0.18744254112243652, 0.4444282054901123, 0.1326754093170166, 0.46904894709587097, -0.4586285650730133, -0.25690409541130066, 0.17392121255397797, 0.13829387724399567, -0.3032609224319458, -0.17868483066558838, -0.09800048172473907, -0.2928464412689209, -0.15166229009628296, -0.046248484402894974, -0.7223760485649109, -0.09616100043058395, -0.5956954956054688, 0.26625901460647583, -0.2566468119621277, -0.2488653063774109, 0.23598715662956238, 0.3603258430957794, 0.28024551272392273, 0.42902758717536926, -0.5063593983650208, 0.5035925507545471, 0.34008124470710754, 1.0554484128952026, -0.6819778084754944, -0.2249976545572281, -0.342434287071228, -0.022073671221733093, -0.3516760468482971, 0.7664591073989868, -0.4543376863002777, -0.4120368957519531, 0.24053919315338135, 0.06136200949549675, -0.30737483501434326, -0.6251088976860046, 0.006674738600850105, -0.530959963798523, 0.18951690196990967, -0.2610664665699005, -0.595843493938446, -0.16209769248962402, 0.5513184666633606, -0.40776461362838745, 0.9118010997772217, 0.22002477943897247, -0.449592262506485, 0.158347025513649, -0.4690157473087311, -0.3380470275878906, 0.08066648989915848, -0.15897974371910095, -0.3657718896865845, -0.06657994538545609, -0.17884761095046997, 0.7700569033622742, -0.23161542415618896, 0.6168774962425232, -0.23168163001537323, -0.3609905540943146, 0.16362066566944122, -0.23726485669612885, 0.6120967268943787, 0.034697797149419785, -0.67474365234375, -0.10186965763568878, -0.8322344422340393, -0.06044946238398552, 0.040298040956258774, -0.19171422719955444, -0.040081508457660675, 0.10399701446294785, -0.15639075636863708, 0.6093416810035706, 0.38217467069625854, -0.3531607389450073, -0.010230470448732376, -0.4783899188041687, 0.3737376928329468, 0.6490161418914795, 0.14743377268314362, 0.5038349628448486, -0.4500262141227722, 0.36834314465522766, -0.10888567566871643, 0.15055981278419495, -0.34063002467155457, -0.3117140531539917, -1.115512490272522, -0.03392928093671799, 0.1275232434272766, 0.5078319907188416, -0.7520177960395813, 0.12266258895397186, -0.48498496413230896, -0.5352380275726318, 0.05166570469737053, 0.3867429494857788, 0.5665706396102905, 0.5280583500862122, 0.49057018756866455, -0.6704804301261902, -0.45629268884658813, -0.3962138891220093, 0.023059707134962082, -0.06507231295108795, 0.5047550201416016, 0.33966052532196045, 0.5359408259391785, -0.320654034614563, 1.1852566003799438, -0.21925167739391327, -0.3086276054382324, -0.3301093578338623, -0.036150429397821426, -0.15812751650810242, 0.48801952600479126, 0.6016657948493958, -0.8288818001747131, -0.6027371883392334, -0.005117260850965977, -0.7642568945884705, 0.10087639838457108, -0.2313666194677353, 0.2573518455028534, 0.4927999973297119, 0.5188533663749695, -0.32517072558403015, 0.3839392364025116, 0.46778807044029236, -0.01576073095202446, 0.7931293249130249, 0.1238953173160553, -0.04241757467389107, -0.6634703874588013, 0.23329126834869385, -0.10490475594997406, -0.43889936804771423, -0.7955798506736755, 0.11483656615018845, -0.053163155913352966, 0.1502780020236969, -0.6335846185684204, 0.7890586853027344, -0.783189058303833, -0.208518385887146, -0.38256052136421204, 0.26225975155830383, -0.3342142403125763, 0.5939791202545166, 0.4686451554298401, 0.41936278343200684, 0.7809804081916809, -1.0011273622512817, 0.5036293864250183, 0.041920751333236694, -0.30901721119880676, 0.5110177397727966, -0.4053474962711334, -0.009037921205163002, -0.03617335483431816, 0.41842278838157654, -0.8505593538284302, 0.030697964131832123, 0.33399149775505066, -0.24022065103054047, 0.46822524070739746, 0.07182808220386505, -0.3264335095882416, -0.32855936884880066, -0.013793104328215122, 0.17118948698043823, 0.49104931950569153, -0.3946338891983032, 0.4484478533267975, 0.23145470023155212, -0.1775333136320114, -0.6122172474861145, -0.772312343120575, 0.17099729180335999, -0.0018710261210799217, -0.4044090211391449, 0.5021596550941467, -0.16022318601608276, -0.33249762654304504, -0.006529321428388357, -0.09783759713172913, -0.2094651162624359, 0.13009993731975555, 0.12279786169528961, 0.04233383759856224, -0.30298998951911926, 0.113823801279068, -0.3770563304424286, -0.04221285134553909, -0.04314509034156799, -0.4893015921115875, 0.5184621810913086, -0.5395501852035522, -0.17143483459949493, -0.2597613036632538, 0.1572917401790619, 0.3710499405860901, -0.22636255621910095, 1.0047882795333862, 0.40031352639198303, -0.47538068890571594, -0.30233556032180786, -0.8273224830627441, -0.08472713828086853, -0.3734661042690277, 0.21444666385650635, -0.22714069485664368, -1.2694319486618042, 0.28532320261001587, -0.49520882964134216, 0.275310218334198, 0.3754574954509735, 0.587257444858551, -0.19426721334457397, 0.35691556334495544, 1.0703009366989136, -0.17543423175811768, 0.5333063006401062, -0.4267503023147583, -0.11106208711862564, -0.3437102437019348, -0.4353463649749756, -0.31352677941322327, 0.12249792367219925, -0.05191284790635109, -0.18558359146118164, -0.014231139793992043, 0.5283304452896118, 0.0129547119140625, 0.358450710773468, -0.24979688227176666, 0.1927487850189209, -0.03176518529653549, -0.034905076026916504, 0.23927631974220276, 0.04133526608347893, -0.19860319793224335, 0.19618192315101624, -0.8897002339363098, -0.18458528816699982, 1.0087467432022095, 0.24083936214447021, 0.2770947813987732, 0.0681922435760498, 0.4524537920951843, 0.3657298684120178, 0.7498804926872253, -0.43789762258529663, 0.5520179867744446, 0.0251871719956398, -0.5362989902496338, -0.24644744396209717, -0.48396146297454834, -0.6904855370521545, 0.00785861723124981, -0.0455009900033474, -0.8165025115013123, 0.24595652520656586, 0.38559094071388245, 0.002888964954763651, 0.33455637097358704, -0.36906129121780396, 0.826755166053772, -0.456147164106369, -0.5242255926132202, -0.30632707476615906, -0.9549894332885742, 0.5012720227241516, -0.35490018129348755, 0.270050048828125, 0.23831889033317566, 0.06833221763372421, 0.5510390996932983, -0.24065503478050232, 1.0619666576385498, -0.20228004455566406, -0.0286256056278944, 0.5647310018539429, -0.12744435667991638, 0.5157278776168823, -0.2330215871334076, 0.21471738815307617, 0.22050213813781738, 0.04413534700870514, -0.4787156879901886, -0.257949560880661, 0.7500916123390198, -0.4239428639411926, -0.19421911239624023, -0.5629479289054871, -0.031536925584077835, -0.6115982532501221, 0.0911812037229538, 0.34037357568740845, 0.5266386270523071, -0.3015559911727905, 0.37460118532180786, 0.977310836315155, -0.049903858453035355, 0.5009196996688843, 0.5490708351135254, -0.2867310047149658, -0.3341645300388336, 1.0953253507614136, 0.20885416865348816, 0.5804291367530823, 0.5351625680923462, -0.11902511864900589, -0.38273295760154724, -0.6997729539871216, -0.2517337501049042, 0.3003166615962982, -0.9250190854072571, -0.06288989633321762, -0.6144580841064453, -0.346021443605423, -0.3119979500770569, -0.4045715034008026, -0.42034703493118286, -0.18270285427570343, -0.4685802459716797, 0.2489282339811325, 0.15724293887615204, 0.6655218005180359, 0.10400743037462234, 0.4251079857349396, -0.7444639205932617, 0.2898766100406647, 0.0859801322221756, 0.48439475893974304, 0.15937215089797974, -0.5819653272628784, -0.42970287799835205, 0.09235801547765732, -0.16257576644420624, -0.8182356357574463, 0.20055390894412994, 0.5773574709892273, 0.718616247177124, 0.3368019461631775, -0.18785864114761353, 0.730882465839386, -0.29931628704071045, 0.9055674076080322, 0.40714749693870544, -0.6664335131645203, 0.353393018245697, -0.011753270402550697, 0.2146085947751999, 0.7104608416557312, 0.573504626750946, -0.5679369568824768, 0.07007715851068497, -0.4265097677707672, -0.6796963810920715, 0.3785178065299988, 0.10758773982524872, -0.2343146800994873, 0.05963369458913803, 0.5716761946678162, 0.06404531747102737, 0.34531503915786743, -0.8345052003860474, -0.262650728225708, -0.21368932723999023, -0.16094757616519928, -0.174406036734581, -0.08428056538105011, 0.3819989264011383, -0.08816788345575333, 0.7153292894363403, -0.08931469917297363, 0.12457681447267532, 0.08674431592226028, -0.7329084873199463, 0.14079563319683075, 0.17614594101905823, 0.7329655885696411, 1.0049207210540771, -0.1944066435098648, -0.20941831171512604, 0.39449721574783325, -0.4978674054145813, 0.20391187071800232, -0.19371028244495392, -0.15876491367816925, 0.14090082049369812, 0.33801785111427307, 0.6620576977729797, 0.5927724838256836, -0.9680824279785156, 0.5263441205024719, 0.1565386950969696, -0.17636416852474213, -0.8238771557807922, 0.020176639780402184, -0.09384611248970032, -0.19305293262004852, 0.2325640469789505, 0.23228079080581665, -0.2300349622964859, -0.4557569921016693, 0.378792405128479, 0.31049829721450806, -0.7312866449356079, -0.2142867147922516, 0.17685644328594208, 0.2102060317993164, -0.007434055209159851, 0.4596233367919922, -0.018167437985539436, -0.3438418507575989, 0.3261697292327881, 0.48342883586883545, 0.6473029851913452, -0.177745521068573, 0.17891770601272583, 0.27706363797187805, 0.2950150668621063, -0.6396642923355103, 0.05323796346783638, -0.4140802025794983, -0.7006237506866455, -0.4904710352420807, -0.8586409687995911, -0.33413001894950867, 0.2957766354084015, -0.5281402468681335, 0.06759233772754669, -0.6571716070175171, 0.010024757124483585, -0.5410046577453613, 0.021752815693616867, -0.7497245669364929, 0.6706090569496155, 0.04633445292711258, 1.0579280853271484, -0.5730345249176025, 0.8863198757171631, 0.6914075613021851, -0.28328296542167664, -0.243092879652977, -0.3229900598526001, 0.0016294262604787946, -0.33040913939476013, 0.4662807583808899, 0.24396955966949463, -0.46726611256599426, 0.4571619927883148, -0.5322271585464478, -0.9023558497428894, 1.1183627843856812, 0.05223226547241211, -0.7531028389930725, -0.18054723739624023, 0.14550694823265076, 0.44477421045303345, -0.4588441848754883, -0.19371601939201355, 0.5908403992652893, 0.2713703215122223, 0.03987633436918259, -0.7667645812034607, -0.4410596191883087, -0.12798038125038147, 0.037147440016269684, 0.03820382431149483, -0.545298159122467, 0.39509376883506775, 0.038362231105566025, -0.3684387505054474, 0.46820521354675293, 0.7062677145004272, 0.35241326689720154, 0.45062941312789917, 0.46847811341285706, 0.5755886435508728, 0.36673566699028015, -0.21150612831115723, 0.7204087972640991, -0.4478505849838257, 0.41431042551994324, 0.9916133880615234, -0.32120150327682495, 0.9554263353347778, 0.3643444776535034, -0.09569071233272552, 0.6196320056915283, 0.7678569555282593, -0.0035189136397093534, 0.5908422470092773, 0.24559643864631653, -0.23027567565441132, -0.2986376881599426, -0.08176793158054352, -0.5706583261489868, 0.17837941646575928, 0.7096037268638611, -0.18888737261295319, -0.12312239408493042, 0.32524341344833374, -0.33686673641204834, 0.15181651711463928, -0.5280143022537231, 0.6929763555526733, 0.3199841380119324, -0.709963858127594, 0.6700773239135742, 0.22167663276195526, 0.9239984154701233, -0.9946956634521484, 0.009258470498025417, -0.20032712817192078, 0.0833570659160614, -0.031455375254154205, -0.4003552198410034, 0.28419259190559387, 0.09771810472011566, -0.12255220860242844, -0.2532978653907776, 0.8629276752471924, -0.2732897698879242, -0.31514593958854675, 0.2823936939239502, 0.5112659931182861, 0.1800186187028885, 0.04121936112642288, -0.8243512511253357, 0.008867266587913036, -0.13388387858867645, -0.17235110700130463, 0.31562650203704834, -0.009087718091905117, -0.22672587633132935, 1.0306600332260132, 0.6781986355781555, 0.13489262759685516, 0.3275846838951111, -0.1072547435760498, 0.7078003883361816, -0.7890032529830933, -0.5223873853683472, -0.5537001490592957, 0.5309750437736511, 0.17882846295833588, -0.41720759868621826, 0.5082668662071228, 0.21251650154590607, 1.1812187433242798, -0.11224457621574402, 0.6507765054702759, 0.11479326337575912, 0.3997267186641693, -0.8294450044631958, 0.4862600564956665, -0.5814846754074097, 0.14049117267131805, -0.34267324209213257, -0.911927342414856, -0.36608484387397766, 0.5368388891220093, -0.2120218276977539, 0.2156153917312622, 0.7297167778015137, 0.5026649832725525, 0.06264583766460419, -0.1322067230939865, 0.3454338312149048, 0.06793331354856491, -0.05295204743742943, 0.6314051151275635, 0.8337866067886353, -0.06500087678432465, 0.33336764574050903, -0.22397752106189728, -0.07659689337015152, -0.42062145471572876, -0.8100765943527222, -0.778992235660553, -0.7098539471626282, -0.3829542398452759, -0.045766957104206085, 0.416114866733551, 0.6973943710327148, 0.7300553917884827, -0.9770969748497009, -0.28010764718055725, -0.6481940746307373, -0.13031376898288727, -0.3010908365249634, -0.1792329102754593, 0.3119099736213684, -0.39274680614471436, -0.1672016978263855, 0.433328241109848, 0.3487454354763031, 0.01285506784915924, -0.5709524750709534, -0.4696170687675476, -0.3972775638103485, -0.2877773940563202, 0.5904425978660583, 0.742168664932251, -0.953107476234436, -0.004453088156878948, 0.10831072181463242, -0.141427680850029, -0.012225267477333546, 0.6971208453178406, -1.1157783269882202, 0.5044733881950378, 0.2846525013446808, 1.005000114440918, 0.43789806962013245, -0.2214869260787964, 0.4082009792327881, -0.6302240490913391, -0.02591724693775177, 0.27660366892814636, 0.3270135819911957, 0.6203401684761047, -0.09998725354671478, 0.4009906053543091, 0.6929376125335693, -0.39268800616264343, -0.7967817783355713, 0.44719499349594116, -0.907062828540802, -0.42035534977912903, 0.9334966540336609, -0.4510051906108856, 0.00878559798002243, -0.47883084416389465, 0.2614681124687195, 0.134434312582016, 0.22737997770309448, 0.5623568296432495, 0.6749910116195679, 0.04304718226194382, -0.48671436309814453, -0.4970555305480957, 0.49990329146385193, 0.35583388805389404, -0.7540054321289062, -0.24260851740837097, 0.5616992712020874, 0.3953796327114105, 0.16386695206165314, 0.6567052006721497, -0.1162799820303917, 0.42304566502571106, -0.31822165846824646, -0.05649906396865845, -0.025390150025486946, -0.8620690703392029, -0.551673412322998, 0.27104949951171875, 0.013665085658431053, 0.22756370902061462 ]
http://arxiv.org/abs/2406.02577v1
http://arxiv.org/pdf/2406.02577v1
Are PPO-ed Language Models Hackable?
2024-05-28T23:28:28
2024-05-28T23:28:28
Suraj Anand, David Getzen
cs.CL
cs.CL, cs.CR, cs.LG
Numerous algorithms have been proposed to $\textit{align}$ language models to remove undesirable behaviors. However, the challenges associated with a very large state space and creating a proper reward function often result in various jailbreaks. Our paper aims to examine this effect of reward in the controlled setting of positive sentiment language generation. Instead of online training of a reward model based on human feedback, we employ a statically learned sentiment classifier. We also consider a setting where our model's weights and activations are exposed to an end-user after training. We examine a pretrained GPT-2 through the lens of mechanistic interpretability before and after proximal policy optimization (PPO) has been applied to promote positive sentiment responses. Using these insights, we (1) attempt to "hack" the PPO-ed model to generate negative sentiment responses and (2) add a term to the reward function to try and alter `negative' weights.
[ -0.25313466787338257, -0.49846962094306946, 0.3941528797149658, 0.036492422223091125, -0.4069862961769104, 0.07840520143508911, -0.016337493434548378, -0.23592573404312134, 0.21908751130104065, 0.4670269787311554, -0.7554116249084473, -0.040764663368463516, -0.5133804678916931, -0.00924609787762165, 0.009411967359483242, 1.6252683401107788, 0.03605184331536293, 0.027663657441735268, -0.06642957776784897, 0.3420936167240143, -0.43572351336479187, -0.8882991075515747, -0.44608691334724426, -0.39950117468833923, 0.28745388984680176, 0.17050139605998993, 0.7208040952682495, 0.19754907488822937, 0.3625503182411194, 0.2597980797290802, 0.06168867647647858, -0.3452729284763336, -0.6318241953849792, -0.270127534866333, -0.36468639969825745, -0.5438365340232849, -0.8103434443473816, 0.41833168268203735, 0.16945986449718475, 0.10321366041898727, -0.3929222822189331, -0.3299536108970642, 0.1488209217786789, 0.385389506816864, -0.669366717338562, -0.043456267565488815, -0.8189200162887573, -0.040670547634363174, -0.08545497059822083, -0.061863645911216736, -0.4339197278022766, -0.529818058013916, -0.05002050846815109, -0.6500657200813293, -0.1561063975095749, -0.379528671503067, 1.0829137563705444, 0.05967160314321518, -0.13527582585811615, -0.6221029758453369, -0.5295489430427551, 0.8935533761978149, -0.7293799519538879, -0.15553265810012817, 0.5809993147850037, -0.0009452453232370317, -0.11494744569063187, -0.3495251536369324, -0.778231143951416, -0.328310489654541, -0.04296061769127846, 0.48768743872642517, -0.10480697453022003, 0.23734690248966217, 0.0230560302734375, 0.30493348836898804, -0.12552618980407715, 0.12108580023050308, -0.1277647763490677, -0.1948026567697525, 0.561324954032898, -0.036432597786188126, 0.36094939708709717, -0.45706692337989807, -0.34923073649406433, -0.20633834600448608, -0.7541441917419434, 0.35179752111434937, 0.988044798374176, 0.3033665716648102, 0.026453714817762375, 0.5538813471794128, 0.10771134495735168, 0.5104010105133057, -0.27584871649742126, -0.08632160723209381, 0.1614193469285965, -0.24521629512310028, -0.2050720453262329, -0.281826913356781, 0.6727649569511414, 0.3405460715293884, 0.52470463514328, -0.2680389881134033, -0.6701276302337646, 0.2979156970977783, 0.5801606178283691, -0.6383634805679321, -0.26400962471961975, 0.3161706030368805, -0.12940475344657898, -1.0491745471954346, 0.3086497485637665, -0.6866864562034607, -0.25715941190719604, -0.23252055048942566, 0.7077526450157166, -0.3783167004585266, -0.465385764837265, 0.12961742281913757, -0.31394830346107483, 0.32684674859046936, 0.25985243916511536, -0.7809537649154663, 0.35549062490463257, 0.8782455325126648, 0.6354348659515381, 0.2990107834339142, -0.3832060694694519, -0.4734383821487427, -0.14991620182991028, -0.29507875442504883, 0.38438698649406433, -0.6370148062705994, -0.49122968316078186, 0.13694259524345398, -0.1820092350244522, 0.010196838527917862, -0.452698677778244, 0.5107287168502808, -0.6852701902389526, 0.5749810934066772, -0.28128358721733093, -0.4845920205116272, 0.31660664081573486, 0.35964104533195496, -0.1575482338666916, 0.47009262442588806, 0.3738451302051544, -0.765597939491272, 0.36931052803993225, -0.6989306211471558, -0.6431624889373779, -0.09638786315917969, 0.22525851428508759, -0.5407549738883972, 0.2979016900062561, -0.05272502824664116, 0.1746627539396286, 0.02525229938328266, 0.6112598180770874, -0.3390604555606842, -0.3855925500392914, 0.48353639245033264, -0.33180880546569824, 0.8016062378883362, 0.3123033940792084, -0.46006444096565247, -0.0061726802960038185, -0.533218264579773, -0.0828598141670227, 0.3017693758010864, -0.3512784540653229, -0.5442976951599121, 0.20341578125953674, -0.17829380929470062, 0.4546031355857849, 0.2483578324317932, -0.7505289912223816, 0.44055214524269104, -0.4697168469429016, 0.5283955335617065, 1.1951872110366821, -0.0017393630696460605, 0.4284050762653351, 0.01206350326538086, 0.6870824694633484, -0.14570176601409912, 0.44405224919319153, 0.06481876224279404, -0.09713537991046906, -0.3958300054073334, -0.4421006739139557, 0.1334909200668335, 0.8305510878562927, -0.8661839365959167, 0.5176984071731567, 0.06671109050512314, -0.26003497838974, -0.3651318848133087, 0.019184354692697525, 0.520958662033081, 0.6012371182441711, 0.23732130229473114, -0.20038911700248718, -0.06253866106271744, -0.7552260160446167, -0.4604618549346924, -0.08198929578065872, -0.3744019567966461, 0.49776220321655273, 0.41740646958351135, -0.06405135989189148, 0.6763762831687927, -0.6063496470451355, -0.2596060633659363, -0.22343799471855164, 0.3416927754878998, 0.2510242760181427, 0.5805889964103699, 0.29480868577957153, -0.5800303220748901, -0.22124050557613373, -0.32901257276535034, -0.575745701789856, -0.32193687558174133, -0.25818461179733276, 0.09531611204147339, -0.0782000869512558, 0.3501945436000824, -0.4431993067264557, 0.11716552078723907, 0.3975394368171692, -0.4389648139476776, 0.6647369861602783, -0.2631613314151764, 0.11998319625854492, -0.9880310893058777, 0.0703289583325386, -0.064747154712677, -0.1623472422361374, -0.5780982971191406, 0.2258780151605606, 0.09692209959030151, -0.3855826258659363, -0.4328387975692749, 0.1561039686203003, -0.20773877203464508, 0.353102445602417, -0.4620038866996765, -0.06864622980356216, -0.20013126730918884, 0.5253065228462219, -0.06732170283794403, 0.9489677548408508, 0.6343393921852112, -0.4190858006477356, -0.014257830567657948, -0.013368499465286732, -0.1127319410443306, 0.5513462424278259, -0.8713148832321167, 0.4326627850532532, -0.2209528386592865, 0.058057572692632675, -0.9147284030914307, -0.5054283738136292, 0.24617895483970642, -0.24899427592754364, 0.5316494107246399, -0.12898826599121094, -0.4000019431114197, -0.24993516504764557, -0.7400932312011719, 0.0779162049293518, 0.5784921646118164, -0.37393811345100403, -0.07383885234594345, 0.5385180711746216, -0.15934616327285767, -0.5328290462493896, -0.3601345419883728, 0.054233599454164505, -0.39215901494026184, -0.11904121190309525, 0.22924543917179108, 0.24635720252990723, -0.2779562473297119, -0.19869501888751984, 0.22663024067878723, 0.2151414453983307, 0.3516443073749542, 0.047290150076150894, 0.4926593601703644, 0.2776924669742584, 0.10453978925943375, 0.11572743207216263, -0.09363935887813568, 0.11619943380355835, -0.22290757298469543, 0.7356236577033997, -0.1924852728843689, -0.01965264044702053, -0.47907304763793945, 0.11741775274276733, 0.4375389516353607, -0.35476136207580566, 0.7698232531547546, 0.1500050276517868, -0.25994956493377686, -0.06081673875451088, 0.012749575078487396, -0.4415026903152466, -0.5749424695968628, 0.38945531845092773, -0.35670769214630127, -1.0473954677581787, 0.15327011048793793, -0.1329285353422165, -0.125382661819458, 0.04025689885020256, 0.37481456995010376, -0.18671561777591705, 1.1958904266357422, 0.6515025496482849, -0.121321901679039, 0.7515088319778442, 0.12052963674068451, 0.28957369923591614, -0.7708470821380615, -0.1853395700454712, -0.35891464352607727, -0.21499580144882202, -0.8025921583175659, -0.05157078802585602, 0.2359408140182495, 0.5203456878662109, -0.2799164354801178, 0.35875722765922546, -0.5687523484230042, 0.6588757634162903, 0.5228917002677917, 0.182807058095932, -0.3088817596435547, -0.06912165135145187, 0.14868009090423584, -0.13621646165847778, -0.3661242127418518, -0.39684274792671204, 1.0239702463150024, 0.391612708568573, 0.7065405249595642, 0.08574166148900986, 0.8906420469284058, 0.2880105674266815, 0.6420381665229797, -0.7094290256500244, 0.43592867255210876, -0.20962809026241302, -0.42156219482421875, -0.2609369456768036, -0.3158314824104309, -0.5951709151268005, -0.04662515968084335, -0.014661397784948349, -1.0924123525619507, 0.08281668275594711, 0.45007404685020447, -0.1100553572177887, 0.1218373253941536, -0.9684339761734009, 0.9051417708396912, -0.31802988052368164, -0.6903519034385681, -0.30625012516975403, -0.5882866978645325, 0.4067922532558441, -0.06235621124505997, 0.29497230052948, 0.10788245499134064, 0.24881692230701447, 0.6639994978904724, -0.720933735370636, 0.7802366018295288, -0.7222980260848999, -0.059133946895599365, 0.2809582054615021, 0.40281978249549866, 0.8710076808929443, 0.1558302789926529, 0.028763694688677788, -0.02778753452003002, -0.26418814063072205, -0.45222336053848267, -0.43104779720306396, 0.6583344340324402, -0.9681447148323059, -0.7126629948616028, -0.39721447229385376, -0.35754695534706116, -0.37016797065734863, 0.13706934452056885, 0.4434414207935333, 0.3981536328792572, -0.03046608716249466, -0.2861608862876892, 0.37035679817199707, -0.5092071890830994, 0.23130767047405243, 0.3661080598831177, -0.19803430140018463, -0.3997211754322052, 1.2901099920272827, 0.024043824523687363, 0.2966517508029938, 0.4917616546154022, 0.45428818464279175, -0.11306030303239822, -0.298406720161438, -0.09268184751272202, 0.20148314535617828, -0.248104065656662, -0.13602875173091888, -0.1468503475189209, 0.18644070625305176, -0.28857114911079407, -0.5124756693840027, -0.48760247230529785, -0.4740699827671051, -0.2682650685310364, -0.2377026379108429, -0.06784232705831528, 0.7945736646652222, -0.1805710345506668, 0.5036131739616394, -0.36671242117881775, -0.04179363697767258, 0.3482212424278259, 0.5771573781967163, -0.21772132813930511, -0.2780078053474426, 0.031392019242048264, 0.02434849925339222, -0.31434398889541626, -1.1719563007354736, 0.44329312443733215, -0.13422653079032898, 0.12447085231542587, 0.5292485952377319, 0.023164400830864906, 0.3210671544075012, -0.3785497546195984, 0.8915921449661255, 0.40693607926368713, -1.1316957473754883, 0.7950342893600464, -0.5473228693008423, 0.2199733555316925, 0.5025033950805664, 0.32986730337142944, -0.28118598461151123, -0.5638558864593506, -0.6224905252456665, -0.9462688565254211, 0.9446722865104675, 0.01396121084690094, 0.7066358327865601, -0.2569996118545532, 0.5162606239318848, 0.10592573136091232, 0.5144087672233582, -1.1574389934539795, 0.2055751085281372, -0.7818937301635742, -0.028742700815200806, -0.03261001780629158, -0.42676061391830444, -0.12274335324764252, -0.10480175167322159, 0.8262439370155334, 0.019273757934570312, 0.38449525833129883, 0.02971041388809681, -0.03448588401079178, -0.020553376525640488, 0.6613506078720093, 0.6113635897636414, 0.492096871137619, -0.3469923436641693, 0.030285069718956947, -0.37431347370147705, -0.2888394892215729, 0.03015778586268425, -0.02476038970053196, -0.32152488827705383, -0.5570268630981445, 0.0948023870587349, 0.7623564600944519, -0.10174820572137833, -0.6142733097076416, 0.7866339683532715, 0.021080728620290756, -0.27565547823905945, -0.12968479096889496, 0.17894631624221802, -0.12662187218666077, -0.09823548793792725, 0.030007798224687576, -0.0064554642885923386, 0.10494246333837509, -0.6193897128105164, 0.1510191112756729, 0.7982636094093323, -0.7026413679122925, -0.8047968149185181, 0.7548019886016846, 0.13914260268211365, -0.526339590549469, 0.8261157274246216, -0.5908476114273071, -0.8794311881065369, 0.37344858050346375, 0.7944029569625854, 0.8129169344902039, -0.1466841995716095, 0.6600629687309265, 0.3231067359447479, 0.4570106863975525, 0.2648218870162964, 0.32310062646865845, -0.06573265045881271, -0.9641808271408081, -0.32983919978141785, -0.7151265144348145, -0.30181223154067993, 0.49413320422172546, -0.7265270352363586, 0.2486761063337326, -0.46933433413505554, -0.06844975054264069, -0.14153270423412323, -0.4167635142803192, -0.4629712998867035, 0.2647230327129364, -0.026878224685788155, 0.5552355051040649, -1.0761526823043823, 0.8603432774543762, 0.8660087585449219, -0.35655125975608826, -0.9695397615432739, 0.27977827191352844, -0.060473665595054626, -0.8111580014228821, 0.2475474327802658, 0.03632214292883873, -0.08347131311893463, -0.0564487986266613, -0.8465544581413269, -0.16736824810504913, 0.6533592939376831, 0.28153282403945923, -0.38241079449653625, 0.16716626286506653, 0.19468066096305847, 0.7381256818771362, 0.06315188854932785, 0.05329176038503647, 0.4635525941848755, 0.17614474892616272, -0.31578516960144043, -0.6803998351097107, -0.032497357577085495, -0.2944882810115814, -0.1712624579668045, 0.455834299325943, -0.6081830859184265, 1.1193933486938477, -0.14986483752727509, 0.07391192764043808, -0.3336726129055023, 0.0850352793931961, -0.0017748211976140738, 0.05296154320240021, 0.5328775644302368, 0.4948616027832031, 0.607801616191864, -0.06411776691675186, 1.5141862630844116, -0.3275180757045746, 0.638468325138092, 0.9014357328414917, -0.40092724561691284, 0.749768078327179, 0.8235518932342529, -0.2363540679216385, 0.4200892448425293, 0.363749235868454, 0.12723921239376068, 1.0287563800811768, 0.3279511332511902, -0.3314559757709503, -0.1879049688577652, -0.16010728478431702, 0.06388283520936966, 0.45203083753585815, 0.02865881286561489, -0.12677520513534546, -0.11772826313972473, 0.05501279607415199, 0.5326912999153137, 0.08234969526529312, -0.37094220519065857, 0.9202440977096558, -0.008839649148285389, -0.956585168838501, 0.2812504470348358, 0.26236000657081604, 0.7972445487976074, -0.7711127400398254, 0.0937511995434761, -0.27879709005355835, 0.38518041372299194, -0.13674886524677277, -0.8053790926933289, 0.24231445789337158, 0.21475836634635925, 0.1239936426281929, -0.4692975878715515, 0.9044272303581238, -0.1730974167585373, -0.3137166500091553, 0.08042894303798676, 0.383116751909256, -0.17275714874267578, -0.18472225964069366, -0.6002823710441589, -0.37569719552993774, 0.13587574660778046, -0.5327946543693542, 0.746012806892395, 0.027872158214449883, -0.02427498809993267, 0.3075137138366699, 0.6582467555999756, 0.1394374817609787, -0.30260780453681946, -0.024746593087911606, 0.9563301801681519, -0.25824716687202454, -0.8416200876235962, -1.0659929513931274, 0.5234904289245605, -0.06679148972034454, -0.29513031244277954, 0.6079909801483154, 0.33787789940834045, 0.9775566458702087, -0.25167036056518555, 0.9212430715560913, -0.351012647151947, 0.33716803789138794, -0.4293045997619629, 0.7289085388183594, -0.6684387922286987, 0.2640438377857208, -0.6070216298103333, -0.5621822476387024, -0.1010797992348671, 0.6985024213790894, -0.6490263938903809, -0.15837489068508148, 0.3291459083557129, 0.7981264591217041, 0.07522489130496979, 0.10136230289936066, 0.06801876425743103, 0.1339489370584488, 0.4943535625934601, 0.4285208582878113, 0.9015129208564758, -0.012702291831374168, 0.2902844250202179, -0.43592506647109985, -0.6643520593643188, 0.1958257555961609, -0.8829261064529419, -0.5563977956771851, -0.25105100870132446, -0.14461228251457214, -0.4442936182022095, 0.18864621222019196, 0.7681419253349304, 0.2749662399291992, -0.9363059401512146, -0.2434675246477127, -0.6156679391860962, 0.11551324278116226, -0.2174825668334961, -0.3405022621154785, 0.29511845111846924, -0.4235508441925049, -0.5982998013496399, 0.19642502069473267, 0.27319255471229553, -0.12418175488710403, -0.04547988250851631, -0.20912900567054749, 0.11016510426998138, 0.2754741609096527, 0.5633090138435364, 0.2047877460718155, -0.27744436264038086, -0.5319720506668091, 0.13631415367126465, 0.004925779532641172, 0.029179591685533524, 1.0739824771881104, -0.6481927037239075, 0.5888964533805847, 0.3257114887237549, 0.33221399784088135, 0.14612539112567902, 0.2545877695083618, 0.7212172746658325, -0.8566315174102783, 0.20776841044425964, 0.4344334006309509, 0.24992966651916504, 0.23087897896766663, -0.35938528180122375, 0.13004310429096222, 0.23205092549324036, -0.5115753412246704, -0.966877281665802, 0.33303090929985046, -0.49134936928749084, -0.4601462483406067, 1.0312891006469727, -0.24299250543117523, -0.02652885392308235, 0.2411288022994995, -0.1614828109741211, 0.14519771933555603, -0.2953132688999176, 1.1291706562042236, 0.7088755369186401, -0.2338704764842987, 0.042533379048109055, -0.3238316774368286, 0.6325128078460693, 0.4453331232070923, -0.8757586479187012, 0.031887251883745193, 0.44193902611732483, 0.3501792848110199, -0.0005420134984888136, 0.7334719896316528, -0.3389296233654022, 0.2511715292930603, -0.011274740099906921, 0.038683366030454636, -0.26394790410995483, -0.3865763247013092, -0.47444623708724976, 0.23982153832912445, 0.3121658265590668, -0.10673767328262329 ]
http://arxiv.org/abs/2405.18649v1
http://arxiv.org/pdf/2405.18649v1
Training LLMs to Better Self-Debug and Explain Code
2024-05-28T23:20:24
2024-05-28T23:20:24
Nan Jiang, Xiaopeng Li, Shiqi Wang, Qiang Zhou, Soneya Binta Hossain, Baishakhi Ray, Varun Kumar, Xiaofei Ma, Anoop Deoras
cs.CL
cs.CL, cs.AI, cs.SE
In the domain of code generation, self-debugging is crucial. It allows LLMs to refine their generated code based on execution feedback. This is particularly important because generating correct solutions in one attempt proves challenging for complex tasks. Prior works on self-debugging mostly focus on prompting methods by providing LLMs with few-shot examples, which work poorly on small open-sourced LLMs. In this work, we propose a training framework that significantly improves self-debugging capability of LLMs. Intuitively, we observe that a chain of explanations on the wrong code followed by code refinement helps LLMs better analyze the wrong code and do refinement. We thus propose an automated pipeline to collect a high-quality dataset for code explanation and refinement by generating a number of explanations and refinement trajectories and filtering via execution verification. We perform supervised fine-tuning (SFT) and further reinforcement learning (RL) on both success and failure trajectories with a novel reward design considering code explanation and refinement quality. SFT improves the pass@1 by up to 15.92% and pass@10 by 9.30% over four benchmarks. RL training brings additional up to 3.54% improvement on pass@1 and 2.55% improvement on pass@10. The trained LLMs show iterative refinement ability, and can keep refining code continuously. Lastly, our human evaluation shows that the LLMs trained with our framework generate more useful code explanations and help developers better understand bugs in source code.
[ -0.1787816435098648, -0.45825880765914917, 0.5283799767494202, 0.313344806432724, -0.24741408228874207, 0.19903446733951569, -0.15245459973812103, -0.10726252943277359, -0.05458555370569229, 0.4940617084503174, -0.9155741333961487, -0.5940062999725342, -0.40478068590164185, 0.29684051871299744, -0.12946148216724396, 1.027159333229065, -0.27879104018211365, -0.00969018042087555, -0.09133372455835342, 0.14336241781711578, -0.6521403193473816, -0.2757902145385742, -0.7099958658218384, -0.28920111060142517, 0.5909255146980286, 0.7498546242713928, 0.10850106179714203, 0.9048677086830139, 0.3645114302635193, 0.3364841639995575, 0.30044376850128174, 0.18089710175991058, -0.7211071848869324, 0.043179310858249664, -0.2143963873386383, -0.6050476431846619, -0.17673122882843018, -0.36048397421836853, -0.09555104374885559, 0.24536651372909546, -0.20456720888614655, 0.40568724274635315, 0.30718889832496643, 0.9538747668266296, -0.4736200273036957, 0.14765793085098267, -0.4072807729244232, 0.2621442675590515, 0.1030116006731987, -0.7501431107521057, -0.19951069355010986, -0.2723700702190399, -0.5269253253936768, -0.5130205154418945, 0.34017279744148254, -0.12956087291240692, 0.6215628981590271, 0.8786216378211975, -0.11240969598293304, -0.27781039476394653, -0.5044581294059753, 0.49861884117126465, -0.7293692827224731, 0.08418833464384079, 0.043550603091716766, 0.4248853623867035, -0.0951879695057869, -0.5739179253578186, -0.14418429136276245, -0.1574002057313919, -0.16313722729682922, 0.12285863608121872, 0.21518248319625854, -0.013992182910442352, 0.26899001002311707, 0.4048163592815399, -0.6718239784240723, 0.33230605721473694, -0.5098408460617065, -0.28149378299713135, 0.8166744112968445, 0.21409794688224792, -0.1306237429380417, -0.0943925753235817, -0.651390016078949, 0.1266358345746994, -0.7192602157592773, 0.061253949999809265, 0.2657219171524048, 0.08387506008148193, 0.0708952248096466, 0.0783945694565773, -0.26711833477020264, 0.6720179915428162, 0.202581986784935, -0.13818752765655518, 0.2781115770339966, -0.18872492015361786, -0.27731072902679443, 0.02032209001481533, 0.4363921582698822, 0.2943596839904785, 0.24786345660686493, -0.3496566116809845, -0.2985035479068756, -0.11397404968738556, 0.5019900798797607, -0.7938951253890991, -0.4165414273738861, 0.4136925935745239, -0.5931074023246765, -0.6172640919685364, -0.06719742715358734, -0.6290081739425659, -0.48998525738716125, -0.6563081741333008, 0.40768396854400635, -0.38918355107307434, -0.2779516577720642, 0.41165098547935486, -0.05102428421378136, 0.19465667009353638, 0.28539159893989563, -0.9102067947387695, -0.15895724296569824, 0.6409029960632324, 0.5200045108795166, -0.295394629240036, -0.301227331161499, -0.7578296661376953, 0.10306015610694885, -0.3211617171764374, 0.936004638671875, 0.06314122676849365, -0.2116318643093109, -0.19659274816513062, -0.0002636436838656664, 0.19497562944889069, -0.7731503844261169, 0.13112764060497284, -0.3157069981098175, -0.12763991951942444, -0.03311743959784508, -0.5260981917381287, 0.0030841685365885496, 0.420349657535553, -0.23096957802772522, 0.8061083555221558, 0.15432387590408325, -0.3394298553466797, 0.30628257989883423, -0.7576935291290283, -0.24427913129329681, 0.0036141215823590755, -0.3253421187400818, -0.3604190945625305, 0.12023603171110153, 0.3728557825088501, 0.5819956660270691, 0.167457714676857, 0.18254585564136505, -0.25855112075805664, -0.7523549199104309, 0.01519104465842247, -0.07938090711832047, 0.5532137751579285, 0.39534541964530945, -0.7331376075744629, 0.21346639096736908, -0.8481373190879822, 0.35557448863983154, 0.20111429691314697, -0.3748263716697693, 0.2418309450149536, -0.2793189585208893, -0.5854097008705139, 0.11693152785301208, 0.021659845486283302, -0.16778993606567383, 0.32170119881629944, -0.3862464129924774, 0.4018210768699646, 1.0262951850891113, 0.24064959585666656, 0.19118653237819672, -0.1546027511358261, 0.9823030829429626, 0.14267703890800476, 0.24581913650035858, -0.48662489652633667, 0.06676926463842392, -0.7754104733467102, -0.2027072161436081, 0.19068557024002075, 0.5262675285339355, -0.6747401356697083, 0.39832255244255066, 0.19450320303440094, -0.13923868536949158, -0.6354947090148926, 0.6648569703102112, 0.5530962347984314, 0.5930517315864563, 0.47975191473960876, -0.28651726245880127, -0.5801202654838562, -0.7523255944252014, -0.38829007744789124, -0.10080035030841827, -0.11437314748764038, 0.006337040103971958, 0.5134720802307129, -0.3722512125968933, 0.8936449885368347, -0.3516135513782501, -0.28342142701148987, -0.18750552833080292, 0.20057016611099243, 0.16705800592899323, 0.48708951473236084, 0.3113996982574463, -0.32084280252456665, -0.05829409882426262, -0.4025128483772278, -0.7447090148925781, -0.22609922289848328, -0.4606393277645111, -0.016850626096129417, 0.19098658859729767, 0.7054756879806519, 0.19192451238632202, 0.35287898778915405, 0.3918437659740448, -0.4648791551589966, 0.6175981163978577, -0.3591821789741516, -0.01992253214120865, -0.6690974831581116, -0.1536542922258377, -0.21605384349822998, -0.33452707529067993, 0.16724766790866852, 0.13294963538646698, 0.16964514553546906, -0.07765919715166092, -0.4800336956977844, 0.25987306237220764, -0.44143807888031006, -0.24120540916919708, -0.30662402510643005, 0.03128495812416077, 0.1176435574889183, 0.8682457804679871, -0.3691287636756897, 0.7215198874473572, 0.5307932496070862, -0.7019399404525757, 0.6624650359153748, -0.06233799457550049, -0.313386470079422, 0.4113369584083557, -0.7076355814933777, 0.11340983211994171, -0.1667657345533371, 0.15222914516925812, -1.1222662925720215, 0.005648389924317598, 0.27455297112464905, -0.42285096645355225, 0.32500872015953064, -0.4441283643245697, -0.48696449398994446, -0.4842766225337982, -0.18607281148433685, -0.27520060539245605, 0.4706619083881378, -1.0918750762939453, 0.055871665477752686, -0.3323417603969574, 0.29080918431282043, -0.582880437374115, -0.7470042109489441, -0.14846985042095184, -0.39732789993286133, -0.5278133153915405, 0.20804144442081451, -0.3228054940700531, -0.07248014211654663, -0.20074239373207092, -0.581213116645813, -0.0283990278840065, 0.5973940491676331, 0.4081544578075409, -0.0070688920095562935, -0.11805325746536255, 0.5676199793815613, -0.062015894800424576, -0.6036105751991272, 0.37429118156433105, -0.32905611395835876, 0.1447063535451889, -0.3368900418281555, -0.5604748129844666, -0.5084273219108582, -0.07925239205360413, 0.11686675995588303, -0.23745320737361908, 0.36313098669052124, 0.7898821234703064, 0.23153187334537506, -0.5500864386558533, -0.3542807996273041, -0.4487932324409485, -0.5190873146057129, 0.11327432096004486, -0.5515902638435364, -0.9713481664657593, 0.3507111072540283, -0.5054172277450562, 0.07359888404607773, 0.3577083945274353, 0.4189857244491577, -0.2702988088130951, 0.9491496682167053, 0.6540544629096985, -0.031607937067747116, 0.2658742070198059, -0.5932556986808777, 0.030615312978625298, -0.503778874874115, -0.2210385948419571, -0.31491634249687195, -0.41262564063072205, -0.25770753622055054, -0.35661235451698303, 0.03090391308069229, 0.5786262154579163, -0.31561657786369324, 0.13016240298748016, -0.9022395610809326, 0.8677177429199219, 0.3404068350791931, 0.11446019262075424, 0.39295634627342224, 0.07985446602106094, -0.20702603459358215, 0.04688134416937828, -0.7251147627830505, -0.5120416879653931, 0.9113425612449646, 0.688567042350769, 1.1422433853149414, -0.1038723886013031, 1.3284385204315186, 0.44484931230545044, 0.25369784235954285, -0.48608627915382385, 0.18633784353733063, 0.33967605233192444, -0.31682759523391724, -0.1735474020242691, -0.4600617587566376, -0.715202808380127, 0.15408669412136078, 0.2501491606235504, -0.36406663060188293, -0.025900203734636307, 0.6586325764656067, -0.6498792171478271, -0.019862385466694832, -0.9557628035545349, 1.239365577697754, -0.6036550998687744, -0.38364285230636597, -0.4313136339187622, -0.45134612917900085, 0.34282031655311584, 0.18142274022102356, 0.3244215250015259, -0.09111224859952927, 0.07898736000061035, 0.4241490960121155, -0.5491435527801514, 0.9625226259231567, -0.3393830358982086, -0.48647764325141907, 0.26761701703071594, 0.3310866355895996, 0.4310018718242645, 0.5454846620559692, -0.07444342970848083, 0.015469572506844997, -0.1185164600610733, -0.49273744225502014, -0.8819190859794617, 0.7988430261611938, -0.5662825703620911, -0.5469071269035339, -0.06862276792526245, -0.09617350995540619, -0.005087992176413536, -0.20201347768306732, 0.1623079925775528, 0.413528174161911, 0.3026783764362335, -0.050625771284103394, 0.7677232027053833, -0.29432016611099243, 0.3859112858772278, 0.7136229276657104, -0.22852851450443268, -0.1613394021987915, 0.8564193248748779, -0.346549391746521, -0.017216533422470093, 0.05158376321196556, 0.08285822719335556, -0.20184633135795593, -0.5567903518676758, -0.7243697047233582, 0.01587550900876522, -0.7613078355789185, -0.6778751611709595, -0.20922556519508362, -0.011765921488404274, -0.1511169821023941, -0.2652415931224823, -0.20821169018745422, -0.36410093307495117, -0.3501870334148407, -0.3718283176422119, 0.4803912937641144, 0.6986104249954224, -0.344235897064209, 0.2865443527698517, -0.6966426968574524, 0.45116811990737915, 0.42664265632629395, 0.6913485527038574, 0.007354562636464834, -0.6060370206832886, -0.48988077044487, -0.04274508357048035, -0.41806355118751526, -0.8201400637626648, 0.30291202664375305, -0.08301015198230743, 0.5166120529174805, 0.350923091173172, 0.0014687797520309687, 0.9110873341560364, -0.2466476708650589, 0.6282693147659302, 0.06676116585731506, -0.9354763627052307, 0.8825621008872986, -0.013635200448334217, 0.32773277163505554, 0.6177922487258911, 0.13848358392715454, -0.1984005570411682, -0.43400853872299194, -0.6870306134223938, -0.6569415330886841, 0.6637576818466187, -0.044703081250190735, -0.10028200596570969, -0.12237119674682617, 0.7383736371994019, 0.22982214391231537, 0.01547609455883503, -0.8382855653762817, -0.21483203768730164, -0.26410624384880066, -0.2068730890750885, -0.005124947521835566, -0.1587250530719757, -0.25012463331222534, -0.27263331413269043, 0.7095082402229309, -0.504082441329956, 0.46855995059013367, 0.24874070286750793, -0.3962298035621643, -0.30437856912612915, 0.18625745177268982, 0.5876744985580444, 0.9676194787025452, -0.10423418879508972, 0.25220251083374023, 0.22806057333946228, 0.2614615261554718, 0.08390998840332031, -0.07237035781145096, 0.4383726418018341, -0.053296636790037155, 0.3909178078174591, 0.6678990721702576, 0.09833408892154694, -0.7896752953529358, 0.4027964472770691, -0.04382319003343582, -0.3181304335594177, -0.3588330149650574, 0.5394176244735718, 0.180657297372818, 0.5681707859039307, 0.2983500063419342, -0.20743560791015625, 0.16011705994606018, -0.35702139139175415, 0.31943395733833313, 0.2372574657201767, -0.23892153799533844, 0.03167928755283356, 0.49200862646102905, 0.2556723356246948, -0.265884131193161, 0.5061617493629456, -0.3134887218475342, -0.5429853796958923, 0.9368690848350525, 0.6037791967391968, 0.7399202585220337, 0.042458098381757736, 0.3102993965148926, 0.4389575719833374, 0.15612706542015076, 0.13404226303100586, 0.28759142756462097, -0.5002668499946594, -0.22797204554080963, -0.7869901657104492, -0.6138058304786682, -0.34738731384277344, 0.14923837780952454, -0.47588911652565, 0.19877777993679047, -0.4214928448200226, 0.48024559020996094, -0.3737287223339081, -0.013982236385345459, -0.4409755766391754, 0.21592111885547638, 0.17440779507160187, 0.9316223859786987, -0.5075253248214722, 0.6072119474411011, 0.3786282539367676, -0.5813398361206055, -0.8312172293663025, -0.23456406593322754, -0.031166568398475647, -0.9582747220993042, 1.012984275817871, 0.38996806740760803, -0.17732422053813934, 0.1528208702802658, -0.6943029761314392, -0.7511799335479736, 1.2248458862304688, 0.334831565618515, -0.7925057411193848, 0.08849634975194931, -0.058030642569065094, 0.7466906905174255, -0.4297458827495575, 0.31374457478523254, 0.47859475016593933, 0.32446685433387756, 0.045746318995952606, -0.5252560973167419, 0.07451798021793365, 0.03695661202073097, -0.04237784817814827, 0.11288145929574966, -0.49414902925491333, 0.16754835844039917, -0.6401036977767944, 0.07117357105016708, -0.21550802886486053, 0.5888908505439758, 0.3375222980976105, 0.3752875328063965, 0.4804125428199768, 0.5304039716720581, 0.5988948941230774, 0.024118606001138687, 1.018616795539856, -0.39728912711143494, 0.40832194685935974, 1.2914133071899414, 0.28867241740226746, 0.4208180010318756, 0.39932477474212646, 0.08256896585226059, 0.8442238569259644, 0.8457435965538025, -0.09684595465660095, 0.4558729827404022, 0.802902102470398, 0.1495501846075058, -0.47321268916130066, 0.5581345558166504, -0.4146310091018677, 0.25114917755126953, 0.11329512298107147, -0.5121995210647583, -0.3880249261856079, 0.26006683707237244, -0.18017534911632538, 0.04488391429185867, -0.34659990668296814, 0.7628586292266846, 0.04369994252920151, -0.5520592331886292, 1.0878993272781372, -0.054496560245752335, 0.6160446405410767, -0.4098236858844757, -0.13477365672588348, -0.620682418346405, 0.5330765247344971, -0.5788359045982361, -0.627076268196106, 0.4564565122127533, 0.17731423676013947, -0.017845619469881058, -0.7492151260375977, 0.6634578704833984, -0.26031121611595154, 0.044307876378297806, 0.29722580313682556, 0.4285489618778229, 0.34360042214393616, -0.20941713452339172, -0.9516209959983826, 0.0041468385607004166, 0.34487056732177734, -0.24269314110279083, 0.31052201986312866, 0.5650217533111572, 0.3158675730228424, 0.8966056108474731, 0.4555460810661316, -0.2349291890859604, 0.05830245465040207, 0.09296831488609314, 0.8208503723144531, -0.7740604877471924, -0.4315907061100006, -0.9449518918991089, 0.7764743566513062, -0.01080172136425972, -0.21182768046855927, 0.6571599841117859, 0.5151808261871338, 0.8801664710044861, -0.30391252040863037, 0.5241272449493408, 0.1617738902568817, 0.5861577391624451, -0.5900350213050842, 0.3579079806804657, -0.5480555891990662, 0.6253190636634827, 0.19834263622760773, -0.6543212532997131, -0.14408569037914276, 0.8120972514152527, -0.060350462794303894, -0.07003656774759293, 0.5550703406333923, 0.8437177538871765, 0.0005226001376286149, -0.3131810128688812, 0.1558579057455063, 0.14544358849525452, 0.3811929523944855, 0.622120201587677, 0.8993141055107117, -0.26056984066963196, 0.82809978723526, -0.42537209391593933, -0.1077982634305954, -0.31081342697143555, -0.9250825047492981, -0.8737151622772217, -0.12864869832992554, -0.6370922923088074, -0.40724754333496094, 0.17976932227611542, 0.6944588422775269, 0.7648448944091797, -0.5549113750457764, -0.15823887288570404, -0.5199059247970581, 0.4045177698135376, -0.43385887145996094, -0.2577079236507416, -0.0754968449473381, -1.0401512384414673, -0.17741121351718903, 0.6537752747535706, 0.2618383467197418, -0.13642652332782745, -0.6505659818649292, -0.4234548807144165, 0.3969763517379761, -0.31395336985588074, 0.48385322093963623, 0.369539350271225, -0.5386433601379395, -0.24699586629867554, -0.13916119933128357, -0.08055220544338226, 0.20990775525569916, 0.8442282676696777, -1.2279572486877441, 0.34990525245666504, 0.18053291738033295, 0.66547030210495, 0.5905267596244812, -0.008782324381172657, 0.4333111047744751, -0.8546631336212158, -0.25564128160476685, 0.0755162462592125, 0.16202296316623688, 0.11353486776351929, -0.6184694766998291, 0.8650444149971008, 0.053816553205251694, -0.7315151691436768, -0.6240221261978149, 0.31176358461380005, -0.5653678178787231, -0.4974128305912018, 1.0604454278945923, -0.1854357272386551, -0.17486244440078735, -0.04685327783226967, -0.40654104948043823, 0.1426488608121872, -0.21004529297351837, 1.1108206510543823, 0.36907950043678284, -0.39924356341362, -0.40224114060401917, -0.31136801838874817, 0.7563815116882324, 0.49353185296058655, -1.091407060623169, 0.2008606344461441, 0.529248833656311, 0.557175874710083, -0.11014901101589203, 0.5724503397941589, -0.051192231476306915, 0.2939872145652771, -0.34873491525650024, 0.21034209430217743, -0.5428248047828674, -0.3098491132259369, -0.8562018871307373, -0.0777110829949379, 0.14731350541114807, -0.3507452607154846 ]
http://arxiv.org/abs/2405.18642v1
http://arxiv.org/pdf/2405.18642v1
JADS: A Framework for Self-supervised Joint Aspect Discovery and Summarization
2024-05-28T23:01:57
2024-05-28T23:01:57
Xiaobo Guo, Jay Desai, Srinivasan H. Sengamedu
cs.AI
cs.AI, cs.CL
To generate summaries that include multiple aspects or topics for text documents, most approaches use clustering or topic modeling to group relevant sentences and then generate a summary for each group. These approaches struggle to optimize the summarization and clustering algorithms jointly. On the other hand, aspect-based summarization requires known aspects. Our solution integrates topic discovery and summarization into a single step. Given text data, our Joint Aspect Discovery and Summarization algorithm (JADS) discovers aspects from the input and generates a summary of the topics, in one step. We propose a self-supervised framework that creates a labeled dataset by first mixing sentences from multiple documents (e.g., CNN/DailyMail articles) as the input and then uses the article summaries from the mixture as the labels. The JADS model outperforms the two-step baselines. With pretraining, the model achieves better performance and stability. Furthermore, embeddings derived from JADS exhibit superior clustering capabilities. Our proposed method achieves higher semantic alignment with ground truth and is factual.
[ -0.4913748800754547, -0.8572562336921692, 0.9011620879173279, 0.10373494774103165, -0.25577035546302795, 0.11437422037124634, 0.14033208787441254, -0.09749158471822739, 0.837050199508667, 0.8578648567199707, -0.5368906855583191, -0.763757050037384, -0.6746751666069031, 0.05300920829176903, -0.4615389108657837, 1.4015125036239624, -0.03565346822142601, -0.2227913737297058, -0.4873804748058319, -0.1721809208393097, -0.18297040462493896, -0.419690877199173, -0.29697686433792114, -0.12049265950918198, 0.5069440007209778, 0.47065022587776184, 0.3345935642719269, 0.7277957201004028, 0.5459125638008118, 0.3573613166809082, -0.221960186958313, 0.1997048258781433, -0.04429776594042778, 0.7305437922477722, -0.3430209159851074, -0.14297685027122498, -0.47180497646331787, -0.05166120082139969, 0.4143485724925995, 0.8840211629867554, 0.12595805525779724, -0.05437210202217102, 0.12444265186786652, 0.9005614519119263, -0.5128151178359985, 0.005246513057500124, 0.049139704555273056, 0.10675368458032608, -0.2282930463552475, -0.08070062100887299, 0.014454049989581108, -0.11057581007480621, 0.2503190338611603, -0.7816337943077087, 0.6849980354309082, -0.19777478277683258, 0.5875691175460815, 0.108128622174263, -0.7098972797393799, -0.3220651149749756, -0.5781362652778625, 0.4976332485675812, -0.4484829008579254, 0.12143953144550323, 0.2329525202512741, -0.15895584225654602, -0.08624593168497086, -0.5323445796966553, -0.46337398886680603, 0.39164406061172485, -0.32535871863365173, 0.20745417475700378, 0.3282261788845062, 0.1322108805179596, -0.03525399789214134, 0.6876767873764038, -0.6831690073013306, -0.24986892938613892, -0.19395838677883148, -0.10221101343631744, 0.6728200316429138, 0.10667736828327179, 0.04197452589869499, -0.5657072067260742, -0.20408442616462708, -0.08488699793815613, -0.37652409076690674, -0.09504861384630203, 0.25613221526145935, 0.5921168923377991, -0.33396077156066895, 0.7430582046508789, -0.9097373485565186, 0.3686189353466034, 0.3408016860485077, -0.5635440349578857, 0.26485833525657654, -0.5957627892494202, 0.01693381927907467, 0.07339180260896683, 0.8527780175209045, 0.3322077989578247, -0.7149708867073059, -0.2111513614654541, -0.059364594519138336, -0.3566921353340149, 0.2736864984035492, -0.7025073170661926, -0.3861265480518341, 0.39593738317489624, -0.5848529934883118, -0.5346126556396484, 0.2269047647714615, -0.6779694557189941, -0.45160311460494995, -0.4891183078289032, 0.6323132514953613, -0.3106042444705963, -0.4075523316860199, -0.17341843247413635, -0.36313116550445557, -0.413676381111145, 0.28285539150238037, -0.8679788112640381, 0.01933666132390499, 0.7147823572158813, 0.8703926205635071, -0.2813637852668762, -0.25077593326568604, -0.13399194180965424, 0.4202117323875427, -0.544942319393158, 0.847458004951477, -0.31575408577919006, -0.5518064498901367, -0.24432596564292908, 0.09399522840976715, 0.4888080060482025, -0.030260877683758736, 0.08485488593578339, -0.25447288155555725, 0.4843367338180542, -0.5780814290046692, -0.6252105832099915, -0.3342842757701874, 0.4020058214664459, -0.3982708752155304, 1.0410048961639404, 0.051643867045640945, -1.1474308967590332, 0.46103614568710327, -0.8332968354225159, -0.751579999923706, -0.2409978061914444, -0.32350674271583557, -0.7214483618736267, 0.38055598735809326, 0.5482445955276489, 0.6505334973335266, 0.047035060822963715, 0.6813547015190125, -0.1863774210214615, 0.11278054118156433, -0.0387478731572628, -0.010319368913769722, 0.40391862392425537, 0.26655152440071106, 0.054152291268110275, 0.2625766694545746, -0.4356006681919098, -0.4021606743335724, 0.022720061242580414, 0.00403225002810359, -0.7476420998573303, 0.13129305839538574, -0.3098068833351135, 0.06713908165693283, 0.36844128370285034, -0.5194815397262573, 0.21492527425289154, -0.3211735486984253, -0.10599964112043381, 0.42475152015686035, 0.41724687814712524, 0.6667283773422241, -0.29825475811958313, 0.3988320827484131, 0.601746141910553, 0.118730828166008, -0.9549693465232849, -0.19125942885875702, -0.9341139197349548, -0.07062317430973053, 0.31527644395828247, 0.07150224596261978, -0.9915078282356262, 1.026957392692566, -0.11477170884609222, -0.545973002910614, -0.2797278165817261, -0.008101479150354862, 0.5100288987159729, 0.45073795318603516, 0.31185802817344666, -0.5686119198799133, -0.0554744228720665, -1.0991926193237305, 0.07413757592439651, -0.004286658018827438, 0.08954089879989624, -0.2720177471637726, 0.37393906712532043, 0.13871417939662933, 1.181583285331726, -0.49010348320007324, -0.5888285040855408, -0.3416031301021576, 0.7250673174858093, 0.034511636942625046, 0.6902518272399902, 0.4807315766811371, -0.929797887802124, -0.25867995619773865, 0.023906361311674118, -1.1070982217788696, 0.08281417191028595, -0.23613597452640533, 0.007970587350428104, -0.04949793964624405, 0.5446618795394897, -0.17442867159843445, 0.36558961868286133, 0.4133354127407074, -0.3807007372379303, 0.14128845930099487, -0.3680906593799591, 0.44937923550605774, -1.6012672185897827, -0.25378885865211487, 0.10819553583860397, -0.3789006173610687, -0.333535760641098, 0.20529811084270477, 0.10246051847934723, -0.3018163740634918, -0.070086769759655, 0.1497252732515335, -0.5584406852722168, -0.41051021218299866, -0.6775184273719788, 0.11147192120552063, 0.36495476961135864, 0.3514084219932556, 0.14951206743717194, 0.7136138081550598, 0.8073096871376038, -0.6299761533737183, 0.17961594462394714, 0.19932524859905243, -0.012209993787109852, 0.5448650121688843, -0.42571592330932617, -0.1378723680973053, -0.5142236351966858, 0.444917231798172, -0.6896926164627075, -0.4383794367313385, 0.18824565410614014, -0.24097074568271637, 0.3440781831741333, -0.22363615036010742, -0.34610357880592346, -0.2690374255180359, -0.5594488382339478, 0.25951310992240906, -0.1677311807870865, -0.474843829870224, 0.8851641416549683, 0.7841492891311646, -0.791523277759552, -0.45148682594299316, -0.43227434158325195, 0.15624313056468964, -0.027000313624739647, -0.45548510551452637, 0.5997314453125, 0.2059205323457718, 0.10915627330541611, 0.4618229568004608, -0.3017704486846924, -0.17881490290164948, 0.04184718057513237, 0.45019614696502686, -0.14553749561309814, -0.22085843980312347, 0.23166799545288086, 0.7279874086380005, -0.3995051085948944, -0.0760640799999237, -0.31375473737716675, 0.22865447402000427, 0.11101071536540985, -0.4921678602695465, -0.4676470458507538, 0.9175788760185242, 0.25356000661849976, -0.26890334486961365, 0.5117301940917969, 0.46569594740867615, -0.12635041773319244, 0.03464449942111969, -0.40285158157348633, 0.043312303721904755, -0.4219944179058075, 0.38864561915397644, -0.580559253692627, -0.9449067115783691, 0.32420065999031067, -0.1711650937795639, 0.10146312415599823, 0.8331286907196045, 0.2923983931541443, -0.3229282796382904, 0.7861042618751526, 1.0749006271362305, -0.2306607961654663, 0.3888774514198303, -0.3519933223724365, 0.45404940843582153, -0.5997326374053955, -0.20826290547847748, -0.4505860507488251, -0.06439479440450668, -0.6417640447616577, -0.27675583958625793, 0.7145546674728394, 0.22402805089950562, 0.25793853402137756, 0.1039261743426323, -0.7968581318855286, 0.7744926810264587, 0.6808891296386719, 0.09574579447507858, 0.4513309597969055, -0.22146253287792206, 0.1360158920288086, 0.009151533246040344, -0.4998859763145447, -0.4510253965854645, 1.2443171739578247, 0.22976525127887726, 0.74564528465271, 0.12019026279449463, 1.255233883857727, 0.49793127179145813, 0.1308976709842682, -0.3684925436973572, 0.40693914890289307, -0.2918669283390045, -0.5637056231498718, -0.34318822622299194, -0.27601832151412964, -0.6716780066490173, 0.33853551745414734, -0.3229256868362427, -0.41374635696411133, 0.15858878195285797, 0.012616101652383804, -0.3234459459781647, 0.1547875553369522, -0.601247251033783, 0.6967136859893799, -0.14522503316402435, -0.1167522519826889, -0.37600207328796387, -0.6764945387840271, 0.578035831451416, -0.10497300326824188, 0.26717832684516907, -0.17098326981067657, 0.19710247218608856, 1.000564455986023, -0.38732439279556274, 0.6930488348007202, -0.06705707311630249, 0.07122105360031128, 0.22375918924808502, 0.057309869676828384, -0.03421390801668167, 0.3162672221660614, 0.24686260521411896, 0.0027733014430850744, 0.14403106272220612, -0.45034751296043396, -0.5099099278450012, 0.9509013295173645, -0.60164874792099, -0.7063832879066467, -0.8282246589660645, -0.4856764078140259, 0.04114273190498352, 0.31751391291618347, 0.15488368272781372, 0.6561152338981628, -0.13055695593357086, 0.07577989250421524, 0.5862935781478882, -0.11803065240383148, 0.6001263856887817, 0.6451171040534973, -0.5596394538879395, -0.23371638357639313, 1.099631667137146, -0.06968872994184494, -0.05938977003097534, 0.358707070350647, 0.017225682735443115, -0.12209656834602356, -0.6075735688209534, -0.38788512349128723, 0.11561691015958786, -0.582247793674469, -0.3431013226509094, -0.8809401988983154, -0.37619107961654663, -0.7911595106124878, -0.2588936686515808, -0.6926623582839966, -0.3511444628238678, -0.15150663256645203, -0.0688682496547699, 0.15105950832366943, 1.2304060459136963, -0.28700217604637146, 0.3937036991119385, -0.7703869342803955, 0.7942191362380981, 0.2622980773448944, 0.2542964816093445, -0.41151127219200134, -0.07161138206720352, -0.39821749925613403, -0.054340921342372894, -0.7003852725028992, -0.7216416001319885, 0.3360736072063446, -0.2376505732536316, 0.2619040310382843, 0.4000234305858612, 0.37122806906700134, 0.3740500211715698, 0.012893199920654297, 0.9784197211265564, 0.2939818203449249, -0.8564848899841309, 1.0291621685028076, -0.42705240845680237, 0.14668956398963928, 0.6449659466743469, 0.38602665066719055, -0.25681424140930176, -0.7218511700630188, -0.7818019390106201, -0.8256348371505737, 0.759268045425415, 0.20972713828086853, -0.11045797169208527, -0.05400024354457855, 0.31145983934402466, 0.37599921226501465, 0.12056223303079605, -0.5294216275215149, -0.44965794682502747, -0.13408909738063812, -0.4521264433860779, 0.02143790014088154, -0.3594505488872528, -0.24070677161216736, -0.037554994225502014, 0.8747838139533997, -0.26126348972320557, 0.0680619552731514, 0.46044719219207764, -0.040060967206954956, 0.08197052776813507, 0.21904467046260834, 0.21099844574928284, 0.5968920588493347, -0.14017222821712494, 0.11039397865533829, -0.26359012722969055, -0.2673017978668213, 0.1348191350698471, 0.3087611198425293, -0.457796573638916, 0.19619549810886383, 0.24484805762767792, 0.6002547144889832, 0.016659893095493317, -0.20811116695404053, 0.7970860600471497, -0.23581375181674957, -0.21156345307826996, -0.20616941154003143, 0.17320679128170013, -0.0662752240896225, 0.37350010871887207, 0.39792752265930176, 0.06170237809419632, 0.4299042820930481, -0.4136652648448944, 0.2512374520301819, 0.27883630990982056, -0.20356856286525726, -0.22200927138328552, 0.4952545166015625, 0.518836498260498, -0.019072072580456734, -0.0618416853249073, -0.5251198410987854, -0.4729844629764557, 0.4816615581512451, 0.16792665421962738, 0.9368768334388733, -0.055463120341300964, 0.5158181190490723, 0.12882497906684875, -0.0831267461180687, -0.1544693261384964, 0.027659760788083076, -0.34927305579185486, -0.4975569546222687, -0.5802713632583618, -0.6143771409988403, -0.5576529502868652, -0.12995751202106476, -0.7870957255363464, 0.08215343207120895, -0.18030832707881927, 0.07332964241504669, 0.44402945041656494, 0.09498172998428345, -0.14545954763889313, 0.3805137276649475, -0.16336654126644135, 0.19292926788330078, -1.0511999130249023, 0.8756760358810425, 0.5857820510864258, -0.4285959303379059, -0.23317496478557587, 0.17750060558319092, 0.15806688368320465, -0.1424720585346222, 0.17426933348178864, 0.15526160597801208, 0.24996523559093475, -0.2193383425474167, -0.16611447930335999, -1.0040123462677002, 0.9928421974182129, -0.1937151402235031, -0.3847125470638275, 0.0914313942193985, -0.16016323864459991, 0.21714691817760468, -0.4494386315345764, 0.04508991166949272, 0.2765237092971802, 0.17291848361492157, 0.033745355904102325, -0.6299948692321777, -0.31455501914024353, -0.004428355488926172, -0.052126459777355194, 0.4393392503261566, -0.5080472230911255, 0.8333735466003418, -0.11117598414421082, 0.01801958493888378, -0.06776494532823563, 1.2259345054626465, 0.009403903968632221, 0.6667578220367432, 0.42438116669654846, 0.7298640608787537, 0.46424952149391174, -0.11715899407863617, 1.0006921291351318, -0.3780047297477722, 0.4274154305458069, 1.2182555198669434, -0.04075200855731964, 0.33038192987442017, 0.1944809854030609, -0.0775875523686409, 0.34694981575012207, 0.5131827592849731, 0.4020906090736389, 0.8239902853965759, -0.377009779214859, -0.27328792214393616, -0.19552667438983917, -0.21706289052963257, -0.44935470819473267, 0.329266756772995, 0.40773722529411316, -0.2973032295703888, -0.4569056034088135, 0.16649988293647766, -0.06909579783678055, 0.36038029193878174, -0.07151316106319427, 1.078371286392212, -0.2788030207157135, -0.6959866881370544, -0.5320574641227722, 0.3451097011566162, 0.7322189807891846, -0.5271165370941162, 0.13092495501041412, -0.43063753843307495, -0.12005522847175598, 0.060987114906311035, -1.064939022064209, 0.5167497396469116, -0.07461004704236984, -0.6268684267997742, -0.3608577847480774, 0.6983828544616699, -0.6249659061431885, -0.7244094014167786, -0.15483787655830383, 0.5423698425292969, 0.02792607806622982, -0.0876016914844513, -0.4530427157878876, -0.16412793099880219, -0.052184250205755234, -0.1961354911327362, 0.5725513100624084, 0.804854154586792, 0.026145344600081444, 0.38145318627357483, 0.49472948908805847, -0.12881119549274445, -0.4654766023159027, 0.007923339493572712, 1.028565764427185, -0.9139307737350464, -1.0074025392532349, -0.4153432846069336, 0.3061024248600006, -0.3784986138343811, -0.42595598101615906, 0.6648973822593689, 0.9139828681945801, 0.6052283048629761, 0.272026926279068, 0.913783073425293, -0.30983027815818787, 0.969141960144043, -0.6896401047706604, 0.590197741985321, -0.5793106555938721, 0.1600174605846405, -0.20559506118297577, -0.6800309419631958, -0.10989540815353394, 0.5489451289176941, -0.0475684255361557, -0.08696776628494263, 0.7171103954315186, 0.7616555094718933, -0.25155511498451233, 0.2936825454235077, 0.12166823446750641, 0.04282403737306595, 0.5313095450401306, -0.00933893397450447, 0.42266449332237244, -0.3318617045879364, 0.030959125608205795, -0.8265274167060852, -0.14230333268642426, 0.0001268998021259904, -0.8153592348098755, -0.9595514535903931, -1.0737686157226562, -0.7238368988037109, -0.10781804472208023, 0.1172516942024231, 0.6603021025657654, 0.8611092567443848, -0.7505471706390381, 0.13644973933696747, -0.0865522027015686, 0.29780396819114685, 0.03722070902585983, -0.2672785818576813, 0.5482091903686523, -0.5774276852607727, -0.551871657371521, 0.4863587021827698, 0.6942639946937561, 0.15426784753799438, -0.473895400762558, 0.19921401143074036, -0.07678008079528809, -0.36183634400367737, 0.5024027228355408, 0.08173081278800964, -0.7612045407295227, -0.19303332269191742, -0.4585532546043396, -0.2314547747373581, -0.1071508526802063, 0.9437924027442932, -0.7659032344818115, 0.5654680132865906, 0.3713854253292084, 0.6160444617271423, 0.814993679523468, 0.3657281696796417, 0.5333027243614197, -1.046772837638855, 0.33617016673088074, -0.07793702185153961, 0.07035855948925018, 0.34229743480682373, -0.3368889391422272, 0.4191213548183441, 0.22618143260478973, -0.3967847526073456, -0.29139456152915955, -0.06404810398817062, -1.1057000160217285, -0.6907380819320679, 0.7364434599876404, -0.2767929136753082, -0.17178533971309662, -0.1948515921831131, -0.05790065601468086, 0.21463221311569214, -0.45778948068618774, 0.8630990982055664, 0.37608039379119873, -0.18811394274234772, -0.04651937261223793, -0.07259409129619598, 0.313221275806427, 0.3537811040878296, -0.9540475010871887, -0.05469514802098274, 0.7252395749092102, 0.22698120772838593, 0.405698299407959, 0.7595183849334717, 0.16414374113082886, -0.05930057913064957, 0.05750446394085884, 0.22081799805164337, -0.18184325098991394, -0.6312075853347778, -0.09092103689908981, 0.3205905556678772, -0.361133873462677, -0.4234599173069 ]
http://arxiv.org/abs/2405.18639v1
http://arxiv.org/pdf/2405.18639v1
Improving Speech Decoding from ECoG with Self-Supervised Pretraining
2024-05-28T22:48:53
2024-05-28T22:48:53
Brian A. Yuan, Joseph G. Makin
q-bio.NC
q-bio.NC, cs.CL, cs.LG, cs.SD, eess.AS
Recent work on intracranial brain-machine interfaces has demonstrated that spoken speech can be decoded with high accuracy, essentially by treating the problem as an instance of supervised learning and training deep neural networks to map from neural activity to text. However, such networks pay for their expressiveness with very large numbers of labeled data, a requirement that is particularly burdensome for invasive neural recordings acquired from human patients. On the other hand, these patients typically produce speech outside of the experimental blocks used for training decoders. Making use of such data, and data from other patients, to improve decoding would ease the burden of data collection -- especially onerous for dys- and anarthric patients. Here we demonstrate that this is possible, by reengineering wav2vec -- a simple, self-supervised, fully convolutional model that learns latent representations of audio using a noise-contrastive loss -- for electrocorticographic (ECoG) data. We train this model on unlabelled ECoG recordings, and subsequently use it to transform ECoG from labeled speech sessions into wav2vec's representation space, before finally training a supervised encoder-decoder to map these representations to text. We experiment with various numbers of labeled blocks; for almost all choices, the new representations yield superior decoding performance to the original ECoG data, and in no cases do they yield worse. Performance can also be improved in some cases by pretraining wav2vec on another patient's data. In the best cases, wav2vec's representations decrease word error rates over the original data by upwards of 50%.
[ -0.18019114434719086, -0.49107030034065247, 0.5270399451255798, 0.13147294521331787, -0.39508533477783203, -0.01080830954015255, -0.4355987310409546, -0.5796223878860474, 0.2728322148323059, 0.40051162242889404, -0.6244199275970459, -0.7438976764678955, -0.6144973635673523, 0.09391140937805176, -0.22094453871250153, 0.8395053148269653, 0.13368597626686096, 0.3561009168624878, -0.3212733864784241, -0.10383940488100052, -0.37937217950820923, -0.7158312201499939, -0.6517418026924133, -0.4222416281700134, 0.49984684586524963, 0.24697062373161316, 0.2201884686946869, 0.6302565932273865, 0.24963447451591492, 0.26176899671554565, 0.02283940091729164, 0.20018769800662994, -0.5332911014556885, 0.011251455172896385, 0.11098599433898926, -0.4396040439605713, -0.5574988722801208, 0.005319161806255579, 0.36334580183029175, 0.8032429814338684, -0.5709888935089111, -0.0021549484226852655, 0.38489943742752075, 0.4116704761981964, -0.3816259205341339, 0.41708904504776, -0.33592331409454346, 0.03793022409081459, -0.1271446943283081, -0.482526957988739, -0.6136382222175598, -0.03289389982819557, 0.11101438105106354, -0.851463794708252, 0.12994016706943512, -0.05326922610402107, 0.5528535842895508, 0.4369838237762451, -0.20717011392116547, -0.2853330671787262, -0.697845995426178, 0.5841864943504333, -0.640995979309082, 0.6954984664916992, 0.7452966570854187, -0.16649995744228363, -0.19711323082447052, -0.9441692233085632, -0.3337118327617645, -0.044085655361413956, -0.00611795112490654, 0.6957189440727234, -0.5273260474205017, 0.40003275871276855, 0.2479613572359085, 0.2000463753938675, -0.4641084372997284, 0.46258196234703064, -0.41823938488960266, -0.5578693747520447, 0.5292077660560608, 0.023048916831612587, 0.0999617725610733, 0.13528895378112793, -0.063492052257061, -0.274183452129364, -0.5482190251350403, -0.02244192734360695, 0.4475511312484741, -0.04780229181051254, 0.17081479728221893, 0.18000160157680511, -0.16992168128490448, 0.5092009902000427, 0.1196245476603508, 0.0828523263335228, 0.6117338538169861, 0.012052024714648724, -0.006845670752227306, 0.41454148292541504, 0.5635550022125244, 0.30947160720825195, 0.08301436901092529, -0.24206534028053284, -0.0009481621091254056, 0.019628163427114487, 0.2485007345676422, -0.7476493716239929, -0.8182947635650635, 0.2869400382041931, -0.7527780532836914, 0.0017539504915475845, -0.22062265872955322, -0.4111355245113373, -0.16347841918468475, -0.6638965010643005, 0.4157366454601288, -0.4145168662071228, -0.3078368306159973, 0.0755985677242279, 0.04356278479099274, 0.019862644374370575, 0.19090376794338226, -0.9956080317497253, 0.4800613224506378, 0.35566964745521545, 0.7465192675590515, 0.06801600754261017, -0.09233372658491135, -0.8431527614593506, 0.00622589560225606, -0.46125513315200806, 0.8946794867515564, -0.17634780704975128, -0.3634270429611206, -0.08465559035539627, 0.007680906448513269, 0.11199713498353958, -0.5914512276649475, 0.4940546751022339, -0.2676571309566498, -0.020348671823740005, -0.1817808896303177, -0.7695082426071167, 0.023605553433299065, -0.3989604711532593, -0.537871241569519, 0.4591246247291565, -0.03427906706929207, -0.5437639355659485, 0.3168516457080841, -0.4069354832172394, -0.6883392930030823, 0.0507039874792099, -0.23151765763759613, -0.4864988923072815, 0.23918360471725464, 0.4545877277851105, 0.44657230377197266, 0.17003832757472992, -0.10610765218734741, -0.2101854681968689, -0.26254960894584656, 0.15907342731952667, -0.4607793390750885, 0.5140997767448425, 0.4374552369117737, -0.12299160659313202, -0.07924909889698029, -0.9269371628761292, 0.2798604965209961, -0.12538786232471466, -0.40197351574897766, -0.38775286078453064, 0.04092653468251228, -0.10252200067043304, 0.042450763285160065, -0.024029787629842758, -0.7442362308502197, -0.14884017407894135, -0.5919966697692871, 0.6020646095275879, 0.5726796388626099, -0.0275120846927166, 0.36025092005729675, -0.17178098857402802, 0.25722160935401917, 0.007843108847737312, -0.14245286583900452, -0.23053990304470062, -0.4106600880622864, -0.6069173812866211, -0.30814218521118164, 0.48442134261131287, 0.4683789908885956, -0.5686222910881042, 0.4931478202342987, -0.15027093887329102, -0.3123854100704193, -1.035339117050171, -0.02721818909049034, 0.15560784935951233, 0.8433939814567566, 0.7428554892539978, -0.34860730171203613, -0.6975951194763184, -0.9315170049667358, -0.16131730377674103, -0.0638522058725357, -0.3292299509048462, 0.3605382740497589, -0.025789225473999977, -0.2678817808628082, 0.6479915380477905, -0.31752434372901917, -0.47464650869369507, 0.03658629581332207, 0.5345069169998169, 0.20735181868076324, 0.6452236771583557, -0.07620396465063095, -0.4087253212928772, -0.10592702031135559, -0.03472742438316345, -0.4566569924354553, -0.33216702938079834, -0.25351831316947937, -0.013835357502102852, 0.10160825401544571, 0.7610096335411072, -0.00523501867428422, 0.5575850605964661, 0.6250827312469482, 0.053995728492736816, 0.1273687183856964, -0.8204997777938843, 0.1036754623055458, -0.8255887031555176, -0.08884917199611664, -0.18854020535945892, -0.4435555338859558, -0.6629630923271179, -0.6228833198547363, 0.06970398873090744, -0.08223594725131989, -0.2572425603866577, -0.1537752002477646, -0.6890680193901062, 0.03651667758822441, -0.3879668116569519, -0.05089791119098663, 0.017845451831817627, 0.42371633648872375, 0.43672099709510803, 0.5023052096366882, 0.707252025604248, -0.5966447591781616, 0.2654959559440613, 0.4572218656539917, -0.2274933010339737, 0.4205520749092102, -0.6584659218788147, 0.6238521337509155, -0.24170729517936707, 0.4377395510673523, -0.9067191481590271, -0.13116593658924103, 0.015905465930700302, -0.4745212197303772, 0.5805389881134033, -0.22859077155590057, -0.24750597774982452, -0.23643061518669128, 0.13863630592823029, 0.34979984164237976, 0.9471401572227478, -0.8835492730140686, 0.49169811606407166, 0.48340633511543274, -0.07018589973449707, -0.24228015542030334, -1.256451964378357, 0.12262102961540222, 0.05807751044631004, -0.39420366287231445, 0.4891449511051178, 0.02711097151041031, 0.1562507599592209, -0.025822104886174202, -0.29139968752861023, -0.005119028966873884, -0.13821010291576385, 0.25754013657569885, -0.03856966644525528, -0.020900052040815353, 0.42767712473869324, 0.17398850619792938, -0.3212730884552002, 0.2541631758213043, -0.6612664461135864, 0.523337185382843, 0.1142488643527031, -0.2523956000804901, -0.8812118172645569, 0.42720460891723633, 0.05083060637116432, -0.38199013471603394, 0.4487123191356659, 0.7111020684242249, -0.5163537859916687, -0.1904969960451126, -0.49369823932647705, -0.27332350611686707, -0.47186416387557983, 0.5464499592781067, -0.28037795424461365, -0.756545901298523, 0.3866084814071655, -0.3933753967285156, -0.19019357860088348, 0.2715708017349243, 0.4410887360572815, -0.5993666648864746, 1.042352318763733, 0.48059719800949097, 0.18127016723155975, 0.40859636664390564, -0.4224802553653717, 0.032303497195243835, -1.0926947593688965, -0.44232404232025146, -0.15100622177124023, -0.2023754119873047, -0.5550392270088196, -0.3109503388404846, 0.29373350739479065, -0.16102319955825806, 0.30227887630462646, 0.16761748492717743, -0.7559237480163574, 0.43913307785987854, 0.46770331263542175, 0.692491888999939, 0.08834870904684067, 0.2938297390937805, 0.18210066854953766, -0.23136606812477112, -0.8004674911499023, -0.2716117203235626, 1.3194905519485474, 0.40895482897758484, 0.9758962392807007, -0.3589107394218445, 1.1325148344039917, 0.22094810009002686, 0.2384609580039978, -0.7824601531028748, 0.12580396234989166, -0.44077497720718384, 0.011545056477189064, -0.11668045073747635, -0.4894745349884033, -1.2241796255111694, 0.17694830894470215, -0.3228715658187866, -0.6054771542549133, 0.6548185348510742, 0.5503354072570801, -0.7432585954666138, 0.09574996680021286, -0.7215319275856018, 0.6715604066848755, -0.21452805399894714, -0.28360751271247864, -0.6018468737602234, -0.5798226594924927, -0.10852466523647308, 0.012162693776190281, 0.1432424634695053, 0.22333362698554993, 0.09347103536128998, 1.001732587814331, -0.5563771724700928, 0.7377063632011414, -0.2402372807264328, -0.2269924432039261, 0.4013312757015228, -0.15874792635440826, 0.4742075800895691, -0.11449000984430313, 0.03671715781092644, 0.49664685130119324, -0.011118677444756031, -0.33928683400154114, -0.518599808216095, 0.5763758420944214, -0.8298037052154541, -0.47680675983428955, -0.2169315218925476, -0.36920514702796936, -0.36943256855010986, -0.1387927532196045, 0.669999897480011, 0.923693060874939, -0.3703972399234772, 0.2881348729133606, 0.9664583802223206, -0.08152806758880615, 0.2925803065299988, 0.15549352765083313, 0.20410585403442383, -0.499813437461853, 0.8127716779708862, 0.34146177768707275, 0.19259877502918243, 0.31101399660110474, 0.045056894421577454, -0.5119040012359619, -0.8364430665969849, -0.07585160434246063, 0.050140395760536194, -0.7407990097999573, -0.21732980012893677, -0.7963614463806152, -0.0691717118024826, -0.4955294728279114, 0.21690253913402557, -0.39698681235313416, -0.26885977387428284, -0.7783440947532654, -0.18807333707809448, 0.23833182454109192, 0.6717908382415771, -0.609316885471344, 0.5013139843940735, -0.5336490273475647, 0.3450279235839844, 0.469820499420166, 0.18841911852359772, -0.16847601532936096, -0.7718597054481506, -0.378913551568985, 0.23664046823978424, 0.01007576659321785, -0.8977605104446411, 0.5240172147750854, 0.27722933888435364, 0.4291779696941376, 0.1932746171951294, -0.03899141401052475, 0.8955752849578857, -0.6963975429534912, 0.2981319725513458, 0.31626540422439575, -0.941693127155304, 0.6446523666381836, -0.054327595978975296, 0.09553265571594238, 0.5599192380905151, 0.08527941256761551, -0.44601109623908997, -0.1466520130634308, -0.7280576229095459, -0.9418224692344666, 0.8006244897842407, 0.2617153227329254, 0.13594719767570496, 0.021562501788139343, 0.3910330832004547, 0.11080256849527359, -0.08217011392116547, -0.29328063130378723, -0.19607575237751007, -0.6109780073165894, -0.38784539699554443, -0.16803446412086487, -0.19573594629764557, -0.2817135751247406, -0.3486173748970032, 0.38833311200141907, -0.062047723680734634, 0.49955013394355774, 0.8355486989021301, -0.129499614238739, 0.05111639201641083, 0.21005617082118988, 0.22904789447784424, 0.36340275406837463, -0.11252322047948837, 0.325458288192749, 0.47277525067329407, -0.5277706980705261, 0.2178124487400055, 0.30453717708587646, 0.42586106061935425, -0.02004333771765232, 0.4482850730419159, 0.8859615921974182, -0.13039708137512207, -0.3674943447113037, 0.5470679402351379, -0.23269902169704437, -0.29856225848197937, -0.3704196810722351, -0.025580350309610367, 0.11214426904916763, 0.10635091364383698, 0.21438398957252502, 0.2790345549583435, 0.4525909423828125, -0.39926958084106445, 0.40730252861976624, 0.03514575585722923, -0.2943700850009918, -0.3269742727279663, 0.7508834600448608, 0.32169270515441895, -0.3658216595649719, 0.8145658373832703, 0.11080352216959, -0.2995704412460327, 0.4256329834461212, 0.7988339066505432, 0.7834503054618835, -0.2532426714897156, 0.06106555834412575, 0.3592665195465088, 0.189387246966362, -0.11533001065254211, 0.30424022674560547, -0.3742843270301819, -0.5226881504058838, -0.52751225233078, -0.2884933054447174, -0.26857930421829224, 0.12281549721956253, -0.8772802948951721, -0.056705113500356674, -0.33838093280792236, -0.2400289922952652, -0.1317541003227234, -0.2921275198459625, -0.9782477021217346, 0.39051419496536255, 0.47077274322509766, 0.4463585913181305, -0.63935786485672, 0.9555667638778687, 0.49644941091537476, -0.19914205372333527, -1.053192377090454, 0.025870431214571, -0.3181856572628021, -0.6654765009880066, 0.5507010221481323, 0.14255066215991974, -0.3500130772590637, 0.45405954122543335, -0.5824098587036133, -0.7385362982749939, 1.036487340927124, 0.35101714730262756, -1.1996451616287231, 0.4426569640636444, -0.03933224454522133, 0.7412537932395935, -0.4169182777404785, 0.29149165749549866, 0.5422983169555664, 0.25161516666412354, -0.2602054178714752, -0.7936158180236816, -0.07665259391069412, -0.041699185967445374, -0.2346746325492859, -0.19870872795581818, -0.4438793659210205, 0.5276974439620972, -0.26690781116485596, -0.49490484595298767, -0.16139477491378784, 0.9367916584014893, -0.06929915398359299, 0.37814849615097046, 0.5907453894615173, 0.4916701912879944, 1.2467979192733765, -0.15999852120876312, 1.0420676469802856, -0.09611842781305313, 0.13097034394741058, 1.0633076429367065, 0.10723598301410675, 0.7811105847358704, 0.4289427101612091, 0.012126630172133446, 0.39427801966667175, 0.6314824819564819, 0.07875684648752213, 0.801855742931366, 0.3471616208553314, -0.16317488253116608, -0.592392086982727, -0.02080518938601017, -0.3574005365371704, 0.5292465686798096, 0.32436603307724, -0.23235496878623962, 0.07565434277057648, 0.27822554111480713, -0.15668708086013794, 0.18314944207668304, -0.3365808427333832, 0.9415007829666138, 0.31438329815864563, -0.36721792817115784, 0.7184509634971619, -0.3984101712703705, 0.5722696185112, -0.568889319896698, -0.1973000168800354, -0.035057906061410904, 0.10580925643444061, -0.4401971101760864, -0.4591669738292694, 0.1045907661318779, -0.19417715072631836, 0.030797813087701797, -0.42165759205818176, 0.619245171546936, -0.7862991094589233, -0.2569364905357361, 0.3797847032546997, 0.33641722798347473, 0.5057953000068665, -0.014306407421827316, -0.28653204441070557, -0.05239592865109444, 0.1353851556777954, -0.10772305727005005, 0.14536850154399872, 0.18549223244190216, 0.3104951083660126, 0.3592071235179901, 0.8459925055503845, 0.37141281366348267, -0.002825069474056363, 0.33787524700164795, 0.7968548536300659, -0.4811600148677826, -0.6363828778266907, -0.675443172454834, 0.2879073917865753, -0.07966863363981247, -0.23745319247245789, 0.40982785820961, 0.42843449115753174, 0.9099199175834656, 0.02155650034546852, 0.6585302948951721, 0.20852072536945343, 0.41620996594429016, -0.7770439386367798, 0.7924942374229431, -0.3994676470756531, 0.05986073985695839, 0.03991888463497162, -0.4998070299625397, -0.26580822467803955, 0.8856101036071777, -0.11260143667459488, -0.08931629359722137, 0.6955401301383972, 0.6823011040687561, 0.033505674451589584, 0.12057797610759735, 0.5114191174507141, 0.2669731676578522, 0.35037553310394287, 0.6346752047538757, 0.9761675000190735, -0.3214617073535919, 0.6956919431686401, -0.3518469035625458, -0.4803178906440735, 0.08560042083263397, -0.5678701996803284, -0.7519852519035339, -0.46158069372177124, -0.4924256503582001, -0.30170944333076477, 0.12116560339927673, 0.8623602986335754, 0.9376553893089294, -0.6561748385429382, -0.03213384002447128, -0.1022266149520874, -0.3368402123451233, -0.332506000995636, -0.03222690895199776, 0.6352397799491882, -0.3535948097705841, -0.6743257641792297, 0.7841696739196777, 0.14194439351558685, 0.0683787539601326, 0.07853023707866669, -0.12901470065116882, 0.28745561838150024, -0.10989460349082947, 0.39468255639076233, 0.23369094729423523, -0.45851534605026245, -0.15761512517929077, -0.12244527786970139, 0.0885239690542221, 0.3807466924190521, 0.8835199475288391, -1.0172961950302124, 0.6606407761573792, 0.37102505564689636, 0.5903301239013672, 0.7702658176422119, 0.13751019537448883, 0.48981010913848877, -0.46796903014183044, 0.08497457206249237, 0.46237412095069885, 0.48550713062286377, 0.40156158804893494, -0.6459917426109314, 0.16072063148021698, 0.012716537341475487, -0.7108205556869507, -0.5853409767150879, 0.06066100671887398, -0.9274314045906067, -0.1936897486448288, 0.9769150018692017, -0.3054599463939667, -0.29691281914711, -0.27571332454681396, -0.3483113944530487, 0.542347252368927, -0.4432006776332855, 0.526706337928772, 0.47298169136047363, -0.46985942125320435, -0.03532522916793823, -0.33856338262557983, 0.5903381705284119, 0.6392182111740112, -0.728336751461029, 0.2768447697162628, 0.5230840444564819, 0.3838039040565491, -0.03487125784158707, 0.8113325238227844, -0.05810655280947685, 0.32361406087875366, 0.11534737795591354, 0.3273921608924866, -0.30900704860687256, -0.21288298070430756, -0.6678239107131958, -0.11839202791452408, -0.13751983642578125, -0.6334412693977356 ]
http://arxiv.org/abs/2405.18638v1
http://arxiv.org/pdf/2405.18638v1
ConSiDERS-The-Human Evaluation Framework: Rethinking Human Evaluation for Generative Large Language Models
2024-05-28T22:45:28
2024-05-28T22:45:28
Aparna Elangovan, Ling Liu, Lei Xu, Sravan Bodapati, Dan Roth
cs.CL
cs.CL, cs.AI
In this position paper, we argue that human evaluation of generative large language models (LLMs) should be a multidisciplinary undertaking that draws upon insights from disciplines such as user experience research and human behavioral psychology to ensure that the experimental design and results are reliable. The conclusions from these evaluations, thus, must consider factors such as usability, aesthetics, and cognitive biases. We highlight how cognitive biases can conflate fluent information and truthfulness, and how cognitive uncertainty affects the reliability of rating scores such as Likert. Furthermore, the evaluation should differentiate the capabilities and weaknesses of increasingly powerful large language models -- which requires effective test sets. The scalability of human evaluation is also crucial to wider adoption. Hence, to design an effective human evaluation system in the age of generative NLP, we propose the ConSiDERS-The-Human evaluation framework consisting of 6 pillars --Consistency, Scoring Critera, Differentiating, User Experience, Responsible, and Scalability.
[ -0.523420512676239, -0.46416550874710083, 0.5624645948410034, 0.5850290060043335, 0.000014646705494669732, 0.02721223048865795, -0.5980462431907654, -0.6896309852600098, -0.03442200645804405, 0.3447113633155823, -0.3893109858036041, -0.21906276047229767, -0.27280193567276, 0.1704261302947998, -0.344573974609375, 0.6433976292610168, 0.2369225174188614, 0.139920175075531, -0.5136304497718811, 0.003835520939901471, -0.2686620056629181, -0.5531496405601501, -0.6832996606826782, -0.6611014008522034, 0.4547260105609894, 0.26256856322288513, 0.794780969619751, 0.18530888855457306, 0.4575124979019165, 0.26307395100593567, -0.21375462412834167, -0.15081633627414703, -0.391139417886734, 0.07517542690038681, -0.31627708673477173, -0.38816380500793457, -0.6450676918029785, 0.07786495983600616, 0.6724447011947632, 0.8193872570991516, -0.29864567518234253, 0.07784093171358109, 0.25951138138771057, 0.6378094553947449, -0.4687967002391815, 0.1487298160791397, -0.24971255660057068, 0.15266156196594238, -0.04365010932087898, -0.04150375351309776, -0.42169374227523804, -0.2533954679965973, 0.40178143978118896, -0.41880640387535095, 0.2707175016403198, 0.12943600118160248, 0.4248710870742798, -0.003319211071357131, -0.504282534122467, -0.07760630548000336, -0.7228454351425171, 1.0105483531951904, -0.7247618436813354, 0.6348528861999512, 0.4602772891521454, 0.2535901367664337, -0.12801200151443481, -0.38482195138931274, -0.4992987811565399, -0.5714638233184814, 0.12883742153644562, 0.08062973618507385, 0.033308856189250946, 0.1565466970205307, 0.34441858530044556, 0.6365194320678711, -0.521994411945343, 0.39085012674331665, -0.3851321041584015, -0.35895198583602905, 1.0528854131698608, 0.22222991287708282, 0.29142701625823975, -0.3115637004375458, -0.38429105281829834, -0.001422262517735362, -0.6997725367546082, -0.17520666122436523, 0.5280407667160034, 0.11075261235237122, 0.01318803895264864, 0.47356486320495605, -0.45805078744888306, 0.6877825856208801, -0.1241854801774025, -0.14376623928546906, 0.4134069085121155, -0.35621318221092224, -0.1793503761291504, -0.26247847080230713, 0.8158890008926392, 0.5443117022514343, 0.46373194456100464, -0.35514649748802185, -0.2975271940231323, 0.31936904788017273, 0.7800617814064026, -0.6091033816337585, -0.00916817132383585, 0.30467382073402405, -0.5104682445526123, -0.3218756318092346, -0.023727457970380783, -0.9191005825996399, -0.3922785222530365, -0.4942108392715454, 0.09850414097309113, -0.2978215217590332, -0.385934054851532, 0.2216392159461975, 0.06487994641065598, 0.35020846128463745, 0.4263741970062256, -0.9972085356712341, 0.3623037338256836, 0.699025571346283, 0.19675113260746002, -0.24583622813224792, -0.6453152894973755, -0.0647176057100296, -0.23838596045970917, -0.28244301676750183, 0.8167212009429932, -0.4159429371356964, -0.6429398655891418, 0.030707942321896553, -0.25695767998695374, 0.12311823666095734, -0.5839554071426392, 0.9680174589157104, -0.4828910529613495, 0.18732129037380219, -0.5396000146865845, -0.5010243654251099, -0.11092216521501541, 0.417169988155365, -0.7356290817260742, 0.8729325532913208, 0.20096607506275177, -0.5970282554626465, 0.5596199035644531, -0.8433951735496521, -0.4668150544166565, 0.20585428178310394, -0.20520474016666412, -0.36383458971977234, 0.14874958992004395, 0.11520783603191376, 0.2595284879207611, -0.6671987175941467, 0.46042564511299133, -0.336712509393692, -0.41777288913726807, 0.6159965395927429, -0.6042409539222717, 0.9028616547584534, 0.38210341334342957, -0.3067101836204529, 0.29849156737327576, -0.8508983254432678, 0.4151652753353119, -0.017575116828083992, -0.6693624258041382, -0.057973381131887436, 0.190512016415596, 0.558208167552948, 0.10829930752515793, 0.14296506345272064, -0.4489642381668091, -0.019307125359773636, -0.430715948343277, 0.47767186164855957, 0.6041176319122314, -0.1705089658498764, 0.5095897912979126, -0.3315785229206085, 0.7717478275299072, -0.40001434087753296, 0.26920586824417114, 0.09482487291097641, -0.4298601448535919, -0.7413254380226135, -0.14216269552707672, 0.2960047125816345, 0.28680774569511414, -0.42091134190559387, 0.6247179508209229, -0.23980022966861725, -0.5041573643684387, -0.49070051312446594, 0.2501567304134369, 0.5422247648239136, 0.12842412292957306, 0.09345357120037079, -0.5449855327606201, -0.7552160024642944, -0.9013425707817078, -0.4659804701805115, -0.46317821741104126, -0.2298152595758438, 0.02714349515736103, 0.577629029750824, -0.5689637660980225, 0.8633952736854553, -0.25021013617515564, 0.04202089086174965, -0.27977651357650757, 0.18350081145763397, -0.19487424194812775, 0.39889389276504517, 0.47231799364089966, -0.6944555640220642, 0.1123034730553627, -0.2663024365901947, -0.8276838064193726, -0.15172211825847626, 0.18221525847911835, 0.11987911909818649, 0.08343841880559921, 0.12023860961198807, -0.7610733509063721, 0.3471733629703522, 0.3220156133174896, -0.3854506313800812, 0.84532630443573, -0.2156212329864502, 0.33581945300102234, -0.7144265174865723, 0.09129831194877625, 0.1692022979259491, 0.013533051125705242, -0.31075751781463623, 0.3041236102581024, -0.01947728358209133, -0.11428283154964447, -0.27732017636299133, 0.628526508808136, -0.43459373712539673, -0.4011862576007843, -0.15865649282932281, 0.12093204259872437, 0.23450139164924622, 0.14833058416843414, -0.17684033513069153, 0.6471565365791321, 0.1479032188653946, -0.37914198637008667, 0.3904534876346588, 0.110623799264431, -0.8466336131095886, 1.041109561920166, -0.6317086219787598, 0.33572301268577576, -0.06949564814567566, 0.2945828139781952, -0.9489465951919556, -0.3680478632450104, 0.054171301424503326, -0.4464430510997772, 0.15968897938728333, 0.40648213028907776, -0.7153767943382263, -0.4981587529182434, -0.4392382502555847, 0.3611777126789093, 0.33462128043174744, -0.1917370855808258, 0.4658615291118622, 0.4029587209224701, 0.1152200922369957, -0.4310080409049988, -0.5719622373580933, 0.30534130334854126, -0.27769479155540466, -0.7482693195343018, 0.31313228607177734, -0.23666131496429443, -0.543502926826477, -0.1578700691461563, 0.04222395643591881, -0.020943008363246918, 0.4067061245441437, 0.2719794809818268, 0.2525802552700043, -0.03519168496131897, 0.04782569408416748, -0.3374411463737488, -0.1322993040084839, 0.27895110845565796, -0.05595772713422775, 0.34486696124076843, -0.4998285472393036, -0.48389795422554016, -0.4736764132976532, 0.2852140963077545, 0.5534287095069885, -0.22418534755706787, 0.3370996117591858, 0.5718246698379517, -0.41581568121910095, 0.030904017388820648, -0.7377514839172363, -0.18527066707611084, -0.32803571224212646, 0.641730546951294, -0.4407646358013153, -1.0335843563079834, 0.37603047490119934, 0.0993722453713417, 0.12018971890211105, 0.6169468760490417, 0.8573087453842163, -0.35141706466674805, 0.6524696350097656, 0.6203013062477112, 0.03395390883088112, 0.20149725675582886, -0.1185889020562172, 0.2342325747013092, -1.1028541326522827, -0.24495650827884674, -0.6384003758430481, -0.19065402448177338, -0.35914701223373413, -0.32079747319221497, 0.1902773380279541, 0.05789012834429741, -0.258717805147171, 0.06841577589511871, -0.1436527520418167, 0.20555870234966278, 0.1839636266231537, 0.05179981514811516, 0.3843066692352295, 0.007167415227741003, -0.23768112063407898, -0.15815705060958862, -0.5055587887763977, -0.7586224675178528, 1.198604941368103, 0.535638689994812, 0.9017733335494995, 0.17193491756916046, 0.34534594416618347, 0.5444437861442566, 0.6793227195739746, -0.9229616522789001, 0.5451882481575012, 0.2646927535533905, -1.0043408870697021, -0.49246832728385925, -0.3140193819999695, -0.9100457429885864, 0.546776533126831, -0.29692912101745605, -0.9297570586204529, -0.11135009676218033, 0.04473629221320152, -0.4940854012966156, -0.002376832766458392, -0.7632211446762085, 0.6787548065185547, -0.36771872639656067, -0.2546236217021942, -0.49383431673049927, -0.4890342056751251, 0.4970206916332245, -0.12371446192264557, 0.26978546380996704, 0.008118067868053913, 0.09056020528078079, 0.9927170872688293, -0.013070761226117611, 0.8817058205604553, 0.09116779267787933, -0.30772683024406433, 0.31235605478286743, -0.060851242393255234, -0.0932207852602005, 0.04178633913397789, -0.2773950397968292, 0.17722538113594055, 0.016302846372127533, -0.32000815868377686, -0.7642800807952881, 0.6470722556114197, -0.8142627477645874, -0.745628297328949, -0.31675440073013306, -0.36347970366477966, -0.4394078254699707, 0.08624267578125, 0.09420947730541229, 0.2211330384016037, -0.7574582099914551, 0.21552598476409912, 0.5833027958869934, -0.24962352216243744, -0.008426206186413765, 0.35029447078704834, -0.5585564374923706, -0.4948257505893707, 0.5945941209793091, -0.005390144418925047, 0.2999369204044342, 0.12579257786273956, 0.16663838922977448, -0.5042913556098938, -0.32796546816825867, -0.615068793296814, 0.13625186681747437, -0.7626597285270691, 0.1546531468629837, -0.3398362994194031, -0.21130849421024323, -0.14848101139068604, -0.03227686136960983, -0.4279426634311676, -0.015190945006906986, -0.24335986375808716, -0.1584351509809494, -0.07193911075592041, 0.7344914078712463, 0.10133181512355804, 0.22302164137363434, -0.5249547958374023, 0.2988927960395813, 0.4312700033187866, 0.6046030521392822, 0.3558068871498108, -0.6264188885688782, -0.12907719612121582, -0.004917313810437918, -0.34742552042007446, -0.3721621632575989, -0.07108531147241592, -0.04535149037837982, 0.9083456993103027, 0.46342217922210693, -0.26493826508522034, 0.34688588976860046, -0.34769997000694275, 0.5665221214294434, 0.385551393032074, -0.8120519518852234, 0.09222932904958725, -0.30845850706100464, 0.3512526750564575, 0.6677390933036804, 0.2621164917945862, -0.6202770471572876, 0.18493667244911194, -0.5568885803222656, -0.6258032917976379, 0.5131746530532837, 0.19491614401340485, 0.09281649440526962, -0.006599172484129667, 0.28924560546875, 0.03084431402385235, 0.25729089975357056, -0.6813564300537109, 0.004085997119545937, 0.14370200037956238, -0.028946230188012123, -0.22498831152915955, -0.7899599075317383, -0.1263742595911026, -0.12209580838680267, 0.26993411779403687, 0.04089696332812309, 0.26021608710289, 0.07533952593803406, -0.08829589188098907, -0.23298978805541992, 0.8131467700004578, 0.5923388004302979, 1.3336623907089233, -0.2805315852165222, 0.12055649608373642, 0.14674252271652222, -0.23895767331123352, 0.3649587035179138, -0.1959855854511261, -0.037371598184108734, -0.538271427154541, 0.5696730613708496, 0.5204715728759766, 0.5966259837150574, -0.8548135161399841, 0.4435010552406311, -0.07367228716611862, -0.07315084338188171, -0.4320138394832611, 0.03915783390402794, 0.3061510920524597, 0.0863584578037262, 0.3691767156124115, 0.1784980297088623, 0.16023555397987366, -0.8252400159835815, 0.14806853234767914, 0.2788539230823517, -0.4388059973716736, -0.5177630186080933, 0.48488354682922363, 0.3824585974216461, -0.5621491074562073, 0.764647901058197, -0.02509552426636219, -0.6999751329421997, 0.5044663548469543, 0.4304046332836151, 0.9973246455192566, -0.3971730172634125, 0.00005054259963799268, 0.09035030007362366, 0.6236774325370789, -0.26015397906303406, 0.32659652829170227, -0.09598980844020844, -0.7978416681289673, -0.6646036505699158, -0.8361684083938599, -0.3251079022884369, 0.03546058014035225, -0.6940993070602417, 0.06518899649381638, -0.2982562184333801, -0.4203524887561798, 0.0984390527009964, 0.03974999487400055, -0.79960036277771, 0.4876987338066101, 0.28320297598838806, 0.8174876570701599, -0.7553196549415588, 0.6534146070480347, 0.6632487177848816, -0.2802923023700714, -0.3599018156528473, 0.013101615943014622, 0.051946643739938736, -0.4574052691459656, 0.6716727614402771, 0.12058374285697937, -0.27278634905815125, -0.3085325360298157, -0.37365078926086426, -0.5247164368629456, 0.8889219760894775, 0.3463892936706543, -0.5788259506225586, 0.031759168952703476, -0.08932062238454819, 0.8615330457687378, -0.3362630009651184, 0.33135586977005005, 0.7594549655914307, 0.5825883150100708, -0.12868991494178772, -1.0990171432495117, -0.12461575120687485, -0.1971932351589203, 0.336885005235672, -0.2401583045721054, -0.7970789670944214, 0.5240396857261658, -0.3239668309688568, -0.19682718813419342, 0.20666392147541046, 0.6964520215988159, 0.45487308502197266, 0.20034131407737732, 0.6404475569725037, 0.7399489283561707, 0.6657479405403137, 0.09178288280963898, 1.3941620588302612, 0.12192709743976593, 0.42330288887023926, 0.932072639465332, -0.41850414872169495, 0.7282800078392029, 0.40285128355026245, -0.8844549059867859, 0.2284529060125351, 0.6370360851287842, 0.1767219752073288, 0.12919823825359344, 0.6545774340629578, -0.1033146008849144, -0.35993796586990356, 0.054325275123119354, -0.2511529326438904, 0.66551274061203, 0.4132523834705353, -0.24250063300132751, -0.14622941613197327, -0.22941355407238007, -0.05188033729791641, 0.2284674495458603, -0.06963273882865906, 0.3739590346813202, 0.2943904995918274, -0.7622781991958618, 0.5081068873405457, 0.294326514005661, 0.6137773990631104, -0.35313737392425537, 0.07297724485397339, 0.01325004268437624, -0.04362346976995468, -0.36756348609924316, -0.8223798274993896, 0.3332991600036621, -0.013148975558578968, -0.3851572573184967, -0.10789693892002106, 0.6741488575935364, 0.04457925260066986, -0.6230403780937195, 0.38287922739982605, 0.5502033829689026, 0.21618317067623138, -0.07299071550369263, -0.7390042543411255, 0.44133034348487854, 0.0035433892626315355, -0.42972755432128906, 0.3342433571815491, 0.13063663244247437, -0.2030208706855774, 0.8443669080734253, 0.5514170527458191, -0.17249108850955963, -0.1990654319524765, 0.4640900492668152, 0.5767099261283875, -0.9091683030128479, -0.22432932257652283, -0.9014968276023865, 0.27057597041130066, 0.05656924098730087, -0.4427562654018402, 0.7174968123435974, 0.556015133857727, 0.722500741481781, 0.07656847685575485, 0.8753767609596252, -0.0647013857960701, 0.25654587149620056, -0.2621578574180603, 0.7977744936943054, -0.29210364818573, 0.4300488531589508, -0.5270065665245056, -1.2151412963867188, -0.3576349914073944, 0.7106791138648987, -0.4648803472518921, 0.4666299819946289, 0.5525501370429993, 0.40183332562446594, 0.1591416597366333, 0.1685548573732376, 0.48716336488723755, 0.010013695806264877, 0.3093683123588562, 0.40131911635398865, 1.2327669858932495, -0.3136328160762787, 0.07179200649261475, 0.12443698197603226, -0.24203480780124664, -0.36921900510787964, -0.8500228524208069, -0.8078951239585876, -0.4797719120979309, -0.15838029980659485, -0.30458828806877136, -0.18466360867023468, 0.9099757671356201, 0.5923318266868591, -0.6006643772125244, -0.5656631588935852, 0.3235829174518585, 0.11624578386545181, -0.15833629667758942, -0.29236769676208496, 0.3283742070198059, -0.1842874139547348, -0.6334193348884583, 0.20983032882213593, 0.5313738584518433, -0.3177895247936249, -1.0589286088943481, -0.19350337982177734, -0.020099924877285957, -0.13204745948314667, 0.8128829598426819, 0.05837841331958771, -1.0969147682189941, -0.3453330397605896, -0.20846176147460938, -0.2744516134262085, 0.015205375850200653, 0.787775993347168, -0.6514568328857422, 0.6989089846611023, 0.2471981942653656, 0.7291049957275391, 0.27849164605140686, -0.06682322919368744, 0.68427574634552, -0.08964117616415024, 0.011618970893323421, 0.18803809583187103, 0.44753560423851013, 0.693510115146637, -0.1288398951292038, 0.6008492112159729, 0.11834505200386047, -0.5327008366584778, -0.6866440773010254, 0.2637837529182434, -1.0435388088226318, -0.05888942629098892, 1.127313494682312, -0.2721228003501892, -0.21278952062129974, -0.2806697487831116, -0.1355876624584198, -0.11500050127506256, -0.15053525567054749, 1.064773440361023, 0.9174906015396118, -0.05505097284913063, -0.08743708580732346, -0.6833952069282532, 0.31711599230766296, 0.40611276030540466, -0.7096834182739258, -0.0692567452788353, 0.4679713845252991, 0.4360414445400238, 0.22868210077285767, 0.6640580296516418, -0.2889038026332855, 0.2930263578891754, -0.06560894846916199, 0.4200366139411926, 0.37804892659187317, -0.1822691559791565, -0.39124855399131775, 0.027529437094926834, 0.6016804575920105, 0.39250603318214417 ]
http://arxiv.org/abs/2405.18634v1
http://arxiv.org/pdf/2405.18634v1
A Theoretical Understanding of Self-Correction through In-context Alignment
2024-05-28T22:33:02
2024-05-28T22:33:02
Yifei Wang, Yuyang Wu, Zeming Wei, Stefanie Jegelka, Yisen Wang
cs.LG
cs.LG, cs.CL, stat.ML
Going beyond mimicking limited human experiences, recent studies show initial evidence that, like humans, large language models (LLMs) are capable of improving their abilities purely by self-correction, i.e., correcting previous responses through self-examination, in certain circumstances. Nevertheless, little is known about how such capabilities arise. In this work, based on a simplified setup akin to an alignment task, we theoretically analyze self-correction from an in-context learning perspective, showing that when LLMs give relatively accurate self-examinations as rewards, they are capable of refining responses in an in-context way. Notably, going beyond previous theories on over-simplified linear transformers, our theoretical construction underpins the roles of several key designs of realistic transformers for self-correction: softmax attention, multi-head attention, and the MLP block. We validate these findings extensively on synthetic datasets. Inspired by these findings, we also illustrate novel applications of self-correction, such as defending against LLM jailbreaks, where a simple self-correction step does make a large difference. We believe that these findings will inspire further research on understanding, exploiting, and enhancing self-correction for building better foundation models.
[ -0.1907210350036621, -0.4985618591308594, 0.4024403393268585, 0.002410760847851634, 0.32740965485572815, -0.06584513932466507, -0.421326607465744, -0.30652499198913574, 0.0829683318734169, 0.487607479095459, -0.7386507987976074, 0.08260434865951538, -0.34218278527259827, 0.41860073804855347, -0.6477282047271729, 1.1177501678466797, -0.12812843918800354, -0.055502522736787796, -0.12441375106573105, -0.23241783678531647, -0.9351997971534729, -0.4294261038303375, -0.19566741585731506, -0.23551566898822784, 0.5938286185264587, 0.735141396522522, 0.4682121276855469, 0.9106257557868958, 0.5318354368209839, 0.40810802578926086, 0.2788807451725006, -0.12444090843200684, -0.6401343941688538, 0.17359361052513123, -0.4799208343029022, -0.5286877751350403, -0.49053865671157837, 0.25890782475471497, 0.8233960866928101, 0.5217937231063843, -0.16190487146377563, 0.06316522508859634, 0.5866069793701172, 0.8447269201278687, -0.5718605518341064, -0.3690129816532135, -0.6452774405479431, 0.08795148879289627, -0.2163545936346054, -0.16479137539863586, -0.42036187648773193, 0.2543424665927887, 0.030918946489691734, -0.348594605922699, 0.4072483479976654, -0.16901065409183502, 0.5512648820877075, 0.7919841408729553, -0.5855696201324463, -0.2059183418750763, -0.788917601108551, 0.6291331052780151, -0.5959722995758057, 0.26609352231025696, 0.06735890358686447, 0.44894757866859436, -0.28155961632728577, -0.55197674036026, -0.48396143317222595, 0.189412459731102, -0.4176601767539978, 0.060475025326013565, 0.203081414103508, 0.11200495064258575, 0.4106115698814392, 0.48115676641464233, -0.33562907576560974, 0.1806384176015854, -0.334486722946167, -0.2569276988506317, 0.46591752767562866, 0.15867452323436737, 0.077132448554039, -0.09886328130960464, -0.537609338760376, -0.2065693736076355, -0.9278287291526794, 0.06449852883815765, 0.09254902601242065, 0.40913230180740356, -0.0774916335940361, 0.5590677261352539, -0.14564700424671173, 0.8462373614311218, 0.6215856075286865, -0.28834268450737, -0.1344054788351059, -0.31723710894584656, -0.24250385165214539, 0.18818026781082153, 0.46097078919410706, 0.3440724015235901, 0.22606885433197021, -0.26679521799087524, -0.25215792655944824, -0.05440949276089668, 0.7536880970001221, -0.6197444200515747, 0.08953826874494553, 0.30591192841529846, -0.23035161197185516, -0.1378817856311798, -0.1257973313331604, -0.4340554177761078, -0.3123508393764496, -0.7241865992546082, 0.7176446318626404, -0.19139519333839417, 0.08976280689239502, 0.20136868953704834, 0.3112473785877228, 0.2818305492401123, 0.23744836449623108, -1.112326741218567, 0.16626302897930145, 0.6980676054954529, 0.5267054438591003, -0.1820228099822998, -0.585106611251831, -0.302979975938797, 0.34148943424224854, -0.250236451625824, 0.8590905666351318, -0.14350609481334686, -0.034490738064050674, -0.07141992449760437, -0.045977842062711716, -0.1039327085018158, -0.32769012451171875, 0.3220840394496918, -0.23853255808353424, 0.17954754829406738, -0.4802462160587311, -0.6869518756866455, 0.1738453060388565, 0.2787497341632843, -0.5009752511978149, 0.816513180732727, 0.03741278126835823, -0.6953654289245605, 0.3578774631023407, -0.407577246427536, -0.4636691212654114, -0.2212422639131546, -0.22586208581924438, -0.2863699495792389, 0.17146924138069153, 0.12513843178749084, 0.4478573501110077, 0.12983697652816772, 0.17913617193698883, -0.20843645930290222, -0.43431565165519714, 0.44701525568962097, -0.28581559658050537, 0.5504822134971619, 0.1342453956604004, -0.7868013381958008, 0.07741210609674454, -0.5411896705627441, -0.10238263010978699, -0.08877799659967422, -0.19458557665348053, -0.1587149053812027, -0.0804503783583641, -0.48070716857910156, 0.441475510597229, 0.07416553050279617, -0.5708369612693787, 0.5041793584823608, -0.46844515204429626, 0.4827609658241272, 1.0363552570343018, -0.4998501241207123, 0.7637965083122253, -0.16133765876293182, 0.42907217144966125, -0.26554930210113525, 0.17818012833595276, -0.542803168296814, 0.11063025891780853, -0.8004007339477539, -0.09467996656894684, 0.6484677791595459, 0.42109543085098267, -0.14402535557746887, 0.41063758730888367, -0.1784900277853012, -0.046012695878744125, -0.6587632894515991, 0.47072750329971313, 0.5264171361923218, 0.9797613024711609, 0.4588816463947296, -0.25076577067375183, -0.622723400592804, -0.8796132206916809, -0.5501600503921509, 0.12747690081596375, 0.14010657370090485, 0.04719968140125275, 0.29929405450820923, -0.14621631801128387, 1.336342692375183, -0.15495310723781586, -0.6393314599990845, -0.042610201984643936, -0.15494035184383392, -0.02203037030994892, 0.6926131248474121, 0.49245136976242065, -0.4418112635612488, -0.38892754912376404, -0.24121107161045074, -0.8524501919746399, -0.24681611359119415, -0.4009850025177002, -0.2261701226234436, 0.14853642880916595, 0.793084442615509, -0.36761826276779175, 0.39455485343933105, 0.4660772681236267, -0.3022800087928772, 0.44228076934814453, -0.23598411679267883, -0.02946770377457142, -0.89178466796875, -0.17399919033050537, -0.01532773394137621, -0.33212780952453613, -0.6811606287956238, 0.21353469789028168, 0.519118070602417, 0.26566219329833984, -0.19896872341632843, 0.6740177869796753, -0.44405707716941833, -0.2335088551044464, -0.5902566313743591, 0.2280772179365158, -0.21339794993400574, 0.45448893308639526, -0.22314471006393433, 0.8006387948989868, 0.2560403048992157, -0.5992714762687683, -0.08464675396680832, 0.17998315393924713, -0.0673486590385437, 0.9221940636634827, -0.5620239973068237, 0.21470056474208832, -0.26432836055755615, 0.4198143482208252, -1.2465932369232178, -0.3252418339252472, 0.12226800620555878, -0.17721810936927795, 0.6922052502632141, -0.07343161106109619, -0.2763080596923828, -0.4374520182609558, -0.05913599953055382, 0.6262041926383972, 0.2512994408607483, -0.8607037663459778, 0.6067389249801636, 0.31236177682876587, 0.17331258952617645, -0.9596278071403503, -0.5180436968803406, 0.06809593737125397, -0.4011777937412262, -0.5674347281455994, 0.624006986618042, -0.18114741146564484, -0.1858149617910385, -0.23583851754665375, -0.24368581175804138, 0.36009517312049866, 0.21362261474132538, 0.1944834440946579, 0.05865458771586418, -0.18289315700531006, 0.3240011930465698, -0.12215370684862137, -0.23679642379283905, 0.021513652056455612, -0.3292246162891388, 0.2607284486293793, -0.2944413423538208, -0.4201590120792389, -0.4136778712272644, -0.00041878820047713816, 0.26568368077278137, -0.08600187301635742, 0.37016865611076355, 0.16830144822597504, -0.3223947286605835, -0.08574263751506805, -0.8475143909454346, -0.5462918281555176, -0.5564973950386047, 0.0071139587089419365, -0.49855920672416687, -1.0832144021987915, 0.4885176718235016, 0.17995305359363556, 0.1377480924129486, 0.5937177538871765, 0.6512657999992371, -0.5562373995780945, 0.9790712594985962, 0.6955164074897766, -0.06210257485508919, 0.3410041332244873, -0.15809065103530884, 0.2245258092880249, -1.1149885654449463, -0.016092250123620033, -0.4093649983406067, -0.7659173011779785, -0.543097198009491, -0.04279223084449768, 0.1828967183828354, 0.015216678380966187, -0.3050113022327423, 0.6408048868179321, -0.5266690850257874, 0.6291797757148743, 0.315339058637619, 0.027504676952958107, 0.104826420545578, -0.21617163717746735, -0.1899338811635971, -0.36882078647613525, -0.69085693359375, -0.3997657001018524, 1.1132287979125977, 0.49224552512168884, 0.9847395420074463, -0.0954928770661354, 0.662600576877594, 0.15423583984375, 0.6205922365188599, -0.6359560489654541, 0.18483072519302368, 0.19688110053539276, -0.8178733587265015, -0.5096468329429626, 0.020726002752780914, -0.9432401061058044, 0.32702863216400146, -0.0842764675617218, -0.5418696403503418, 0.19074617326259613, 0.6886491775512695, -0.5223027467727661, 0.13753312826156616, -0.6107682585716248, 1.2106151580810547, -0.557711124420166, -0.5571523904800415, -0.28390389680862427, -0.9048294425010681, 0.4227651357650757, -0.15773262083530426, 0.2727278769016266, 0.06888244301080704, 0.18292230367660522, 0.1957940012216568, -0.2875879406929016, 1.1519744396209717, -0.03880274295806885, -0.5289453864097595, 0.25826552510261536, 0.20682333409786224, 0.32589998841285706, -0.12653349339962006, 0.17061404883861542, -0.1540675312280655, -0.13834430277347565, -0.37863782048225403, -0.8688898682594299, 0.588833749294281, -0.569246232509613, -0.904829740524292, -0.403597891330719, -0.6709935665130615, -0.1589350700378418, 0.09690594673156738, 0.053052518516778946, 0.481607049703598, -0.08077596873044968, 0.25640496611595154, 0.5172481536865234, 0.26335498690605164, 0.42062103748321533, 0.5578343272209167, -0.20377522706985474, -0.16802462935447693, 0.5831262469291687, 0.2242935299873352, 0.3175002932548523, 0.317653626203537, 0.204196959733963, -0.5706892609596252, -0.17315562069416046, -0.6033636331558228, 0.4181542992591858, -0.9454259276390076, -0.36079856753349304, -0.5485618114471436, 0.0971967801451683, -0.5450204610824585, -0.2809261381626129, -0.4802185893058777, -0.4315465986728668, -0.08886244148015976, -0.08312153816223145, -0.08076363056898117, 0.9108448624610901, -0.33875709772109985, 0.5518923997879028, -0.45697587728500366, 0.10998772829771042, 0.5083279013633728, 0.4494042992591858, 0.04210515320301056, -0.9094778895378113, -0.331396222114563, 0.19215738773345947, -0.5668289661407471, -0.7238850593566895, 0.10196588933467865, 0.3002015948295593, 0.5601695775985718, 0.4037909209728241, -0.154942125082016, 1.155120611190796, -0.7290100455284119, 0.4328465461730957, -0.12002544850111008, -1.0769596099853516, 0.5418303608894348, -0.21146567165851593, 0.16076411306858063, 0.6938318014144897, 0.024522364139556885, -0.7521683573722839, -0.27017661929130554, -0.5712679624557495, -0.42233288288116455, 0.5763013362884521, 0.1932479292154312, 0.24436847865581512, -0.0013656652299687266, 1.0727065801620483, -0.034255363047122955, -0.031232664361596107, -0.9366604089736938, -0.19890974462032318, -0.40878984332084656, -0.36054903268814087, -0.19565577805042267, -0.25803908705711365, -0.3200145363807678, -0.3391511142253876, 0.6965741515159607, -0.5548367500305176, 0.21797385811805725, 0.44884762167930603, -0.48970603942871094, -0.2336834818124771, 0.29108139872550964, 0.8272112607955933, 0.6250478625297546, 0.026884589344263077, 0.18202152848243713, 0.4128841161727905, 0.15930868685245514, 0.3054405748844147, -0.3346586227416992, 0.06695730984210968, -0.5440724492073059, 0.2721506655216217, 0.38707417249679565, 0.5383278131484985, -0.4542754888534546, 0.6042817234992981, -0.028573883697390556, 0.20920881628990173, -0.1436794251203537, 0.01463861484080553, -0.030281126499176025, 0.2486347258090973, 0.3226313889026642, -0.047736894339323044, 0.18961520493030548, -0.6103454828262329, 0.5034811496734619, 0.6864326000213623, -0.5297195911407471, -0.3788623809814453, 0.7508672475814819, 0.002371301641687751, -0.3491722047328949, 0.4991094172000885, 0.08152232319116592, -0.5795615911483765, 0.5691852569580078, 0.9820048213005066, 0.6821503043174744, -0.5409733057022095, -0.0962805449962616, 0.4689856767654419, 0.2515563368797302, -0.24810004234313965, -0.19737184047698975, -0.17355962097644806, -0.8696778416633606, -0.6995213031768799, -0.5537306666374207, -0.28292399644851685, -0.04882682487368584, -0.6416812539100647, 0.35539689660072327, -0.3567051887512207, 0.013165987096726894, -0.12018021941184998, -0.42056992650032043, -0.489448606967926, 0.38366609811782837, 0.10200514644384384, 0.6831344366073608, -0.576284646987915, 0.8155034184455872, 0.3977024257183075, -0.04040084406733513, -0.8622856736183167, 0.19978155195713043, 0.09973406791687012, -0.8896262645721436, 0.5246834754943848, 0.5961978435516357, -0.2981288731098175, -0.043951407074928284, -0.5484352707862854, -1.2009848356246948, 0.9496058225631714, 0.42088234424591064, -0.6521458029747009, -0.07392162829637527, 0.11250712722539902, 0.7819043397903442, -0.5400148034095764, 0.10086534917354584, 0.6734104752540588, 0.2373393028974533, -0.12495723366737366, -0.9592534303665161, 0.060727979987859726, 0.05417433753609657, -0.015378187410533428, 0.20654094219207764, -0.7205261588096619, 0.7141929268836975, -0.2794661223888397, -0.14335526525974274, 0.023637128993868828, 0.8837451934814453, -0.06189991906285286, -0.24245691299438477, 0.4733229875564575, 0.6300739049911499, 0.32437339425086975, -0.01961669512093067, 1.1260768175125122, -0.5679495930671692, 0.5447788834571838, 1.3273111581802368, -0.22726447880268097, 0.490779310464859, 0.5718201994895935, -0.010896257124841213, 0.7188007831573486, 0.5816815495491028, 0.16137772798538208, 0.39668145775794983, 0.03430844098329544, 0.2490096092224121, -0.32059982419013977, 0.17996066808700562, -0.2337840050458908, 0.7009891271591187, 0.27801990509033203, -0.22576966881752014, -0.09736740589141846, -0.0591672845184803, -0.20909763872623444, 0.2717509865760803, -0.35127952694892883, 0.678919792175293, 0.030401714146137238, -1.0315200090408325, 0.4300762414932251, -0.006285799201577902, 0.6124584674835205, -0.21408531069755554, -0.0009419794077984989, -0.22096073627471924, 0.5335899591445923, -0.30823758244514465, -0.8124603033065796, 0.4768866002559662, -0.2986930310726166, -0.07772421836853027, -0.5562503933906555, 0.8109914660453796, -0.4668482542037964, -0.12589751183986664, 0.24135573208332062, 0.16702088713645935, -0.11780890077352524, -0.04936124011874199, -0.6943904757499695, -0.20940996706485748, -0.0618821382522583, -0.08443788439035416, 0.434749037027359, 0.20666107535362244, 0.05045243725180626, 0.5783637166023254, 0.3025796413421631, -0.287276953458786, 0.12786079943180084, -0.04707401245832443, 0.42847999930381775, -0.715130090713501, -0.43441811203956604, -1.0430995225906372, 0.6847547292709351, 0.06751982867717743, -0.30253589153289795, 0.8348870277404785, 0.4895578622817993, 1.1732823848724365, -0.018111316487193108, 0.5564655065536499, 0.11021454632282257, 0.5360328555107117, -0.5462912321090698, 0.20773908495903015, -0.6933113932609558, 0.16216905415058136, -0.3538932800292969, -0.7741830348968506, -0.26849600672721863, 0.9965083003044128, -0.2185395210981369, -0.0018064157338812947, 0.573303759098053, 0.771318793296814, -0.0789894312620163, -0.18654286861419678, 0.23327171802520752, 0.3152207136154175, 0.1597784161567688, 0.20530949532985687, 0.86131352186203, -0.6045571565628052, 0.41298913955688477, -0.5861179232597351, -0.07548234611749649, -0.22813259065151215, -0.9295200109481812, -0.8566935658454895, -0.5884277820587158, -0.1353529989719391, -0.5880366563796997, -0.14393404126167297, 1.0682843923568726, 0.5089865922927856, -0.8046706318855286, -0.5118803977966309, 0.02743915654718876, 0.06296360492706299, -0.316245436668396, -0.14224179089069366, 0.21169324219226837, -0.8091039657592773, -0.6558501124382019, 0.5482761263847351, 0.45452117919921875, 0.1515049934387207, -0.4535728096961975, -0.151082381606102, 0.15232624113559723, -0.008621207438409328, 0.5764026641845703, 0.476561576128006, -1.018995761871338, -0.6302205324172974, 0.2240203320980072, -0.4509209990501404, 0.5643561482429504, 1.1333348751068115, -0.9189267158508301, 0.5531820058822632, 0.1849936842918396, 0.7516390681266785, 0.3109390139579773, 0.26911309361457825, 0.7372586131095886, -0.8837536573410034, -0.08863434195518494, -0.12824895977973938, 0.5825394988059998, 0.536733090877533, -0.6814905405044556, 0.6285848021507263, 0.08898956328630447, -0.7652527093887329, -0.8059722781181335, 0.37724509835243225, -0.6500468254089355, -0.10367975383996964, 0.888154149055481, 0.11151517927646637, -0.21925869584083557, 0.11562830209732056, -0.338361918926239, 0.26705870032310486, 0.05157470703125, 1.2704702615737915, 0.7322521209716797, -0.3206495940685272, -0.05920315533876419, -0.16811245679855347, 0.6506177186965942, 0.8484964370727539, -0.5949829816818237, 0.29461169242858887, 0.39112377166748047, 0.5356554985046387, 0.22693179547786713, 0.5714700818061829, -0.03559093922376633, 0.2684921324253082, -0.6315758228302002, 0.08778683841228485, 0.4255865216255188, -0.6092085838317871, -0.8511145710945129, -0.04597470164299011, -0.05065058916807175, 0.25484132766723633 ]
http://arxiv.org/abs/2405.18628v2
http://arxiv.org/pdf/2405.18628v2
Hardware-Aware Parallel Prompt Decoding for Memory-Efficient Acceleration of LLM Inference
2024-05-28T22:19:30
2024-06-02T14:58:48
Hao Mark Chen, Wayne Luk, Ka Fai Cedric Yiu, Rui Li, Konstantin Mishchenko, Stylianos I. Venieris, Hongxiang Fan
cs.LG
cs.LG, cs.CL
The auto-regressive decoding of Large Language Models (LLMs) results in significant overheads in their hardware performance. While recent research has investigated various speculative decoding techniques for multi-token generation, these efforts have primarily focused on improving processing speed such as throughput. Crucially, they often neglect other metrics essential for real-life deployments, such as memory consumption and training cost. To overcome these limitations, we propose a novel parallel prompt decoding that requires only $0.0002$% trainable parameters, enabling efficient training on a single A100-40GB GPU in just 16 hours. Inspired by the human natural language generation process, $PPD$ approximates outputs generated at future timesteps in parallel by using multiple prompt tokens. This approach partially recovers the missing conditional dependency information necessary for multi-token generation, resulting in up to a 28% higher acceptance rate for long-range predictions. Furthermore, we present a hardware-aware dynamic sparse tree technique that adaptively optimizes this decoding scheme to fully leverage the computational capacities on different GPUs. Through extensive experiments across LLMs ranging from MobileLlama to Vicuna-13B on a wide range of benchmarks, our approach demonstrates up to 2.49$\times$ speedup and maintains a minimal runtime memory overhead of just $0.0004$%. More importantly, our parallel prompt decoding can serve as an orthogonal optimization for synergistic integration with existing speculative decoding, showing up to $1.22\times$ further speed improvement. Our code is available at https://github.com/hmarkc/parallel-prompt-decoding.
[ -0.2925669252872467, -0.743185818195343, 0.6635910868644714, 0.5823326706886292, -0.5090885758399963, 0.28624606132507324, -0.22123105823993683, -0.24721859395503998, 0.08857064694166183, 0.07912082970142365, -0.7600656747817993, -0.4692284166812897, -0.34455931186676025, 0.2925717830657959, 0.17596270143985748, 0.5226209759712219, 0.08576849102973938, -0.1325777918100357, -0.12118472903966904, -0.19883276522159576, -0.6460904479026794, -0.6738302707672119, -0.7970274090766907, 0.22846776247024536, 0.5117273330688477, 0.35281455516815186, 0.31136956810951233, 0.9821376204490662, 0.09281189739704132, 0.25302496552467346, -0.185808002948761, 0.35586312413215637, -0.3049216866493225, 0.23917150497436523, 0.308841735124588, -0.34137043356895447, -0.5808107852935791, -0.38927385210990906, 0.7006440758705139, 0.365231990814209, -0.20428961515426636, 0.16460521519184113, 0.1704256236553192, 0.41512492299079895, -0.6882002353668213, 0.4481068551540375, -0.6230419278144836, 0.037136949598789215, -0.3541924059391022, -0.5156593918800354, -0.5979889631271362, -0.17241013050079346, -0.4930865466594696, -0.9324095249176025, 0.28814175724983215, 0.5368783473968506, 0.38926562666893005, 0.36436453461647034, -0.09663263708353043, -0.016091100871562958, -0.2482258826494217, 0.6950295567512512, -0.5996471047401428, 0.387980580329895, 0.2201758772134781, 0.27990755438804626, -0.2503458857536316, -0.561168372631073, -0.4857850670814514, -0.13324640691280365, 0.1284138709306717, 0.04955997318029404, -0.23026441037654877, 0.3228808045387268, 0.7279137969017029, 0.25470855832099915, -0.638128399848938, 0.20979584753513336, 0.27357006072998047, -0.4675542116165161, 0.006136583164334297, 0.5737300515174866, 0.16298791766166687, -0.2620076835155487, -0.31883519887924194, -0.03229926899075508, -0.7630904316902161, 0.20467764139175415, 0.3751920461654663, 0.430799663066864, -0.220858633518219, 0.08968021720647812, -0.18706174194812775, 0.540614902973175, 0.035088036209344864, -0.11531326174736023, 0.20396992564201355, -0.685478150844574, -0.07019148766994476, 0.25119754672050476, 0.8285086750984192, 0.18728002905845642, -0.07826115936040878, -0.0847487673163414, -0.18857912719249725, 0.20265524089336395, -0.10351607203483582, -1.056053638458252, -0.18475770950317383, 0.09988855570554733, -0.489518940448761, 0.12798629701137543, -0.2740202844142914, -0.882058322429657, -0.48443344235420227, -0.10695857554674149, -0.21810565888881683, -0.4145568907260895, -0.11350949108600616, 0.3165767788887024, -0.16340042650699615, 0.04317796602845192, 0.3163527250289917, -1.020115852355957, 0.3058980107307434, 0.7533689737319946, 0.8031402826309204, -0.07406104356050491, -0.19710758328437805, -1.0582462549209595, -0.01958249695599079, -0.15279965102672577, 0.7501325011253357, -0.38143685460090637, -0.4144468903541565, -0.3205205202102661, -0.015347967855632305, -0.12269265949726105, -0.4245317876338959, 0.7704877257347107, -0.570173442363739, -0.2720801830291748, -0.6676773428916931, -0.33896344900131226, 0.10895844548940659, 0.1689365804195404, -0.526569664478302, 0.8222512602806091, -0.1970893144607544, -0.9724555611610413, 0.3627713918685913, -0.4128856360912323, -0.365715354681015, 0.1363464742898941, -0.29634833335876465, -0.21074853837490082, 0.24668332934379578, 0.7695412635803223, 0.24342279136180878, -0.6304050087928772, 0.3452931344509125, -0.3814549744129181, -0.5805208683013916, -0.05671399086713791, -0.8723276853561401, 0.7918400764465332, 0.3640303611755371, -0.3623395562171936, 0.2617016136646271, -0.8688893914222717, -0.27144283056259155, 0.061387259513139725, -0.38374632596969604, -0.06561796367168427, -0.0898909792304039, -0.12290215492248535, -0.3590356707572937, 0.2971593141555786, -0.6859909296035767, 0.1581852287054062, -0.14401516318321228, 0.27736908197402954, 0.9228108525276184, -0.07800570130348206, 0.26572930812835693, 0.003508523339405656, 0.7595478296279907, -0.007946633733808994, 0.06827542185783386, -0.9074177145957947, -0.6350690126419067, -0.46964940428733826, -0.6304436922073364, 0.06162593141198158, 0.6137836575508118, -0.9281516075134277, 0.25692665576934814, -0.14296191930770874, 0.04240168631076813, -0.5757938623428345, 0.17482027411460876, 0.4574105739593506, 0.9475703835487366, 0.3155854046344757, -0.009571673348546028, -0.6257001757621765, -0.5141028761863708, -0.4098377525806427, -0.30367910861968994, 0.13091878592967987, 0.4911569356918335, -0.17872431874275208, 0.03541769087314606, 0.6746485829353333, -0.35986122488975525, 0.21873536705970764, -0.21378961205482483, 0.16840294003486633, 0.49599209427833557, 0.49957552552223206, 0.43364015221595764, -0.190078005194664, -0.4341247081756592, -0.10098010301589966, -0.7167208194732666, -0.26978981494903564, -0.3708978593349457, -0.055225592106580734, 0.2722182869911194, 0.6206181049346924, -0.8695328235626221, 0.24839045107364655, 0.3879440128803253, -0.48514842987060547, 0.7883480787277222, -0.7127508521080017, 0.1424013376235962, -0.9495278000831604, -0.06355788558721542, -0.13980446755886078, -0.2971375286579132, -0.15807268023490906, -0.07660532742738724, 0.35058706998825073, -0.11476612091064453, -0.17502449452877045, 0.5958505868911743, -0.7698439359664917, -0.11007901281118393, -0.34678953886032104, -0.1345759779214859, 0.12700651586055756, 0.5039616227149963, -0.11158599704504013, 1.228554129600525, 0.7970327138900757, -0.4213356375694275, 0.3365347385406494, -0.15853911638259888, -0.20954245328903198, 0.31356704235076904, -0.5519691109657288, 0.09423815459012985, -0.2878260016441345, 0.35709458589553833, -0.9449368119239807, -0.07679697871208191, 0.4471905529499054, -0.2876831591129303, 0.2568999230861664, -0.1197754442691803, -0.8117302656173706, -0.4844696819782257, -0.2494669109582901, 0.8658241033554077, 0.7884500026702881, -1.006412386894226, 0.6836492419242859, 0.03695204108953476, -0.2818070650100708, -0.6974545121192932, -0.5452785491943359, 0.29652106761932373, -0.14049629867076874, -0.49259740114212036, 0.20849426090717316, -0.13365092873573303, 0.011595122516155243, -0.1201184093952179, -0.049220725893974304, 0.21954186260700226, 0.08290781825780869, 0.35523170232772827, 0.2915940284729004, -0.5294739603996277, -0.021582001820206642, 0.24031268060207367, -0.4334952235221863, 0.15409688651561737, -0.5825153589248657, 0.5447837710380554, -0.2495308220386505, -0.2978045642375946, -0.843016505241394, 0.3383062183856964, 0.5563205480575562, -0.12638184428215027, 0.48395296931266785, 0.705962061882019, -0.20952056348323822, -0.19887572526931763, -0.4859703481197357, -0.1834496110677719, -0.5328623056411743, 0.29486483335494995, -0.5019247531890869, -0.7324158549308777, 0.6854239106178284, -0.013649885542690754, -0.10092349350452423, 0.1567133069038391, 0.4567576050758362, 0.16068676114082336, 1.0474191904067993, 0.45957139134407043, -0.23722663521766663, 0.33122506737709045, 0.10782714933156967, 0.08124908804893494, -0.6774618625640869, -0.2565128803253174, -0.45198628306388855, -0.11680885404348373, -0.23810307681560516, -0.7188971638679504, 0.17790374159812927, 0.1073988825082779, -0.2592611312866211, 0.1310472935438156, -0.3792789876461029, 0.41640642285346985, 0.5972189903259277, 0.10988212376832962, 0.4234253764152527, 0.20266379415988922, -0.31278088688850403, -0.16618213057518005, -0.9720345139503479, -0.12951350212097168, 0.8499072790145874, 0.4149613082408905, 0.8019671440124512, -0.35920172929763794, 0.42547371983528137, 0.23985037207603455, 0.16607819497585297, -0.5611584186553955, 0.7425333857536316, -0.10171640664339066, 0.0494355671107769, 0.14771461486816406, -0.6485592126846313, -0.7581170201301575, 0.03809148818254471, -0.022412769496440887, -0.5327428579330444, 0.2529636025428772, 0.5190764665603638, -0.7477088570594788, 0.5140698552131653, -0.5978114008903503, 0.7771621346473694, -0.17791017889976501, -0.35654306411743164, -0.4418381452560425, -0.31403759121894836, 0.3737408220767975, 0.06412091106176376, 0.08500659465789795, -0.25157490372657776, -0.2730923593044281, 0.6191529035568237, -0.37507766485214233, 0.7930873036384583, -0.5813027024269104, 0.055588990449905396, 0.23627601563930511, -0.04523672163486481, 0.6939619779586792, 0.38792547583580017, -0.22584903240203857, 0.026712052524089813, -0.30368396639823914, -0.5347136855125427, -0.5059417486190796, 0.7632026672363281, -0.5878536701202393, -0.5737196207046509, -0.36523446440696716, -0.9167912602424622, -0.2687433063983917, 0.08956817537546158, 0.17195309698581696, 0.718052089214325, 0.06839529424905777, -0.2799576222896576, 0.7323722243309021, -0.4563506543636322, 0.776611328125, 0.23691195249557495, -0.016691887751221657, -0.6378539800643921, 1.1097702980041504, -0.42983147501945496, -0.14900510013103485, 0.3320022225379944, 0.07595275342464447, -0.49960625171661377, -0.7849015593528748, -0.8018835783004761, 0.30683958530426025, -0.5094916224479675, -0.29590538144111633, -0.7997637391090393, 0.23712339997291565, -0.3233487010002136, -0.03353182226419449, -0.23551897704601288, -0.33660888671875, -0.6647401452064514, -0.03128942474722862, 0.5153786540031433, 0.27867066860198975, 0.011520503088831902, 0.6973203420639038, -0.8108547329902649, 0.5384396314620972, 0.09774137288331985, 0.2546181380748749, 0.15418997406959534, -0.5146461725234985, -0.05690843239426613, -0.24545703828334808, 0.035835664719343185, -0.6163520812988281, 0.4417407214641571, -0.020277291536331177, 0.5285568833351135, 0.58055180311203, 0.26535409688949585, 0.9631494879722595, -0.5695404410362244, 0.5049628019332886, 0.3572923541069031, -0.8115205764770508, 0.1656794548034668, -0.27379393577575684, 0.540118932723999, 0.5823790431022644, 0.09123951941728592, -0.25557923316955566, -0.12042520940303802, -0.21316967904567719, -0.7055791020393372, 0.8806638717651367, -0.2683374583721161, 0.08212780207395554, -0.2892865240573883, 0.3216772973537445, 0.2151949107646942, 0.04978557676076889, -0.20695525407791138, -0.21068240702152252, -0.12570935487747192, -0.35703420639038086, -0.09192617982625961, -0.6035181879997253, 0.1372653841972351, -0.28835251927375793, 0.30603599548339844, -0.26255324482917786, 0.4266846477985382, 0.037743642926216125, -0.012570356018841267, 0.22424399852752686, 0.23159179091453552, 0.4550597369670868, 0.26573723554611206, -0.2965184450149536, 0.2930736839771271, 0.1356859803199768, -0.5245494842529297, 0.13735628128051758, 0.4468214809894562, 0.059038009494543076, 0.1180272027850151, -0.011018779128789902, 1.241469144821167, 0.1869431436061859, -0.8858013153076172, 0.4909464418888092, -0.5451958775520325, 0.09927453100681305, 0.0849258080124855, -0.22660839557647705, 0.027975257486104965, 0.34426525235176086, 0.44035205245018005, 0.3044588565826416, 0.060552895069122314, -0.11165372282266617, 0.1816754937171936, 0.3954612910747528, -0.008662006817758083, -0.5355204343795776, 0.9053720831871033, 0.29106420278549194, -0.19402724504470825, 0.8831337094306946, -0.6361942887306213, -0.2306450605392456, 0.6264299750328064, 0.77422034740448, 1.0633385181427002, 0.08565833419561386, -0.02461315132677555, 0.492985337972641, 0.15776564180850983, -0.03953973576426506, 0.4504339396953583, -0.519505500793457, -0.41672852635383606, -0.6739357113838196, -0.8535515666007996, -0.2556372284889221, -0.29597771167755127, -0.4239868223667145, 0.051903706043958664, -0.7674769759178162, -0.1715148538351059, -0.4576680660247803, -0.2302195131778717, -0.4773911237716675, -0.22491630911827087, 0.2852209508419037, 1.2489458322525024, -0.4231407344341278, 0.9042011499404907, 0.26950153708457947, 0.3051973581314087, -0.6780422329902649, -0.03382040560245514, -0.11569337546825409, -0.8490132093429565, 0.5652191638946533, 0.4303377866744995, -0.07918722927570343, 0.22312989830970764, 0.044715192168951035, -0.5296587347984314, 0.9659972190856934, 0.7669206261634827, -0.7543741464614868, -0.16332939267158508, -0.05986864119768143, 0.07637838274240494, -0.4088655114173889, 0.48461687564849854, 0.541885256767273, 0.33516961336135864, -0.030703013762831688, -0.659013569355011, 0.46476441621780396, -0.20370997488498688, 0.0856170505285263, -0.0006896188715472817, -0.323591411113739, 0.9229331612586975, -0.49176865816116333, -0.4545046091079712, 0.40110328793525696, 0.8174014687538147, 0.6628096103668213, 0.4770709276199341, 0.4669678509235382, 0.5550468564033508, 1.019463062286377, 0.05701576545834541, 1.2452245950698853, -0.9116020202636719, 0.017307257279753685, 0.8431546092033386, 0.07912062108516693, 0.6320186853408813, 0.4718175530433655, -0.026938848197460175, 0.2922228276729584, 0.7028302550315857, 0.28310614824295044, 0.4238220155239105, 0.03846282139420509, -0.6784783601760864, -0.5088019371032715, -0.2364242821931839, -0.32607385516166687, -0.03046838380396366, 0.37836065888404846, -0.21666468679904938, -0.3863651752471924, 0.20958071947097778, -0.09023504704236984, -0.05759694427251816, -0.5068374276161194, 0.4526004195213318, 0.03453872725367546, -0.6354852318763733, 0.815809428691864, 0.032753728330135345, 0.9654107689857483, -0.4743698239326477, 0.12071419507265091, -0.2898390591144562, 0.26335567235946655, 0.09451258182525635, -0.3750452399253845, -0.0005475187790580094, 0.108644500374794, -0.27374234795570374, -0.4356309175491333, 0.5957332253456116, -0.17957742512226105, -0.47884735465049744, 0.1785718947649002, 0.36198946833610535, 0.11345267295837402, -0.3072720170021057, -0.6066046953201294, 0.5295289158821106, -0.05843066796660423, 0.055067673325538635, 0.34832432866096497, 0.3704453110694885, 0.07139231264591217, 0.5816422700881958, 0.8264901041984558, 0.17459528148174286, 0.39065709710121155, 0.1286821812391281, 0.9923189282417297, -0.7852537631988525, -0.7882194519042969, -0.9049020409584045, 0.25757309794425964, 0.12420295923948288, -0.18131396174430847, 0.9276974201202393, 0.58378666639328, 0.34565815329551697, -0.010841013863682747, 0.5946035981178284, 0.24263767898082733, 0.10548889636993408, -0.4947972893714905, 0.3365994691848755, -0.1513582319021225, 0.629382312297821, 0.1423468440771103, -0.6415411233901978, -0.1531335562467575, 0.06620004028081894, -0.09808672219514847, -0.21923039853572845, 0.487440288066864, 0.9104273319244385, -0.11429198831319809, 0.26643821597099304, 0.19228710234165192, 0.12911765277385712, 0.2500752806663513, 0.6708782911300659, 0.7459155917167664, -0.1414620280265808, 0.5711840987205505, -0.1883382648229599, -0.3933141529560089, -0.01744401827454567, -0.9683493375778198, -0.7516120076179504, -0.04762144759297371, -0.15129663050174713, -0.28553521633148193, 0.29693496227264404, 0.8123974800109863, 0.5890992283821106, -0.6711896657943726, -0.26906436681747437, -0.5658330321311951, 0.06193156912922859, -0.14482276141643524, -0.19878412783145905, 0.357320636510849, -0.8343873620033264, -0.7048235535621643, 0.6974624991416931, 0.42802709341049194, -0.13223755359649658, -0.031117035076022148, -0.3447803556919098, 0.2742880880832672, 0.005261903163045645, 0.5864025950431824, 0.5918964743614197, -0.6360794305801392, 0.23794759809970856, 0.21429593861103058, 0.018725240603089333, 0.24439972639083862, 1.0644166469573975, -1.215803623199463, 0.5093265771865845, 0.6217612624168396, 1.145781397819519, 0.3624805212020874, 0.22656965255737305, 0.4579671025276184, -0.6265128254890442, 0.5042672753334045, 0.22120527923107147, 0.4168095886707306, 0.3153771758079529, -0.42497843503952026, -0.3001333475112915, 0.6647368669509888, -0.391459584236145, -0.882257342338562, 0.060316503047943115, -1.1233469247817993, -0.19780901074409485, 0.9327736496925354, -0.2587936222553253, -0.5289607644081116, -0.08661019057035446, -0.30130988359451294, -0.0029427618719637394, -0.8076038956642151, 0.30892321467399597, 0.10666858404874802, -0.3137703239917755, -0.4297340214252472, -0.2790871560573578, 0.48915329575538635, 0.5822617411613464, -0.6617047190666199, 0.5838977694511414, 0.5726314187049866, -0.021177351474761963, -0.23547756671905518, 0.8245617747306824, 0.050747890025377274, 0.45644745230674744, 0.46479031443595886, -0.07663995772600174, -0.4828794300556183, -0.4421696066856384, -0.6018893122673035, 0.353034645318985, 0.02461506612598896, -0.355077862739563 ]
http://arxiv.org/abs/2405.18620v1
http://arxiv.org/pdf/2405.18620v1
RealitySummary: On-Demand Mixed Reality Document Enhancement using Large Language Models
2024-05-28T21:59:56
2024-05-28T21:59:56
Aditya Gunturu, Shivesh Jadon, Nandi Zhang, Jarin Thundathil, Wesley Willett, Ryo Suzuki
cs.HC
cs.HC, cs.AI, cs.CL
We introduce RealitySummary, a mixed reality reading assistant that can enhance any printed or digital document using on-demand text extraction, summarization, and augmentation. While augmented reading tools promise to enhance physical reading experiences with overlaid digital content, prior systems have typically required pre-processed documents, which limits their generalizability and real-world use cases. In this paper, we explore on-demand document augmentation by leveraging large language models. To understand generalizable techniques for diverse documents, we first conducted an exploratory design study which identified five categories of document enhancements (summarization, augmentation, navigation, comparison, and extraction). Based on this, we developed a proof-of-concept system that can automatically extract and summarize text using Google Cloud OCR and GPT-4, then embed information around documents using a Microsoft Hololens 2 and Apple Vision Pro. We demonstrate real-time examples of six specific document augmentations: 1) summaries, 2) comparison tables, 3) timelines, 4) keyword lists, 5) summary highlighting, and 6) information cards. Results from a usability study (N=12) and in-the-wild study (N=11) highlight the potential benefits of on-demand MR document enhancement and opportunities for future research.
[ -0.4001125991344452, -0.7891680598258972, 0.6712834239006042, -0.024294007569551468, -0.41232743859291077, 0.4106177091598511, -0.02759692445397377, -0.9308680295944214, 0.5835204720497131, 0.8134902119636536, -0.37068167328834534, -0.3762187063694, -0.5848065614700317, 0.1475105881690979, -0.36705824732780457, 0.8823522925376892, -0.18149316310882568, -0.2894347906112671, -0.5345084071159363, -0.06926242262125015, -0.30800142884254456, -0.4905205965042114, 0.158107191324234, -0.14276668429374695, 0.35795366764068604, 0.6287012100219727, 0.8161795735359192, 0.6979497075080872, 0.8233946561813354, 0.26481249928474426, 0.029510891065001488, 0.6827139854431152, -0.0778990387916565, 0.3519628942012787, 0.10260371118783951, 0.039573028683662415, -0.7063382267951965, -0.04039320722222328, 0.6836139559745789, 0.4544813930988312, -0.15351273119449615, -0.17762473225593567, 0.21320150792598724, 0.5087078809738159, -0.8734882473945618, -0.14815963804721832, 0.13532206416130066, 0.07204196602106094, 0.28879719972610474, -0.23086370527744293, -0.029971333220601082, -0.20933273434638977, 0.2625705897808075, -0.924579381942749, 0.47243258357048035, 0.18639954924583435, 0.9245800971984863, 0.18238498270511627, -0.15843939781188965, -0.7048764228820801, -0.9812884330749512, 0.4281453490257263, -0.4860899746417999, 0.8043979406356812, 0.4584563672542572, 0.05857186019420624, 0.30602285265922546, -0.964449405670166, -0.9836813807487488, -0.36160898208618164, -0.22459015250205994, 0.5425986051559448, 0.3270304501056671, 0.1408313810825348, 0.299096018075943, 0.7649753093719482, -0.5245319604873657, -0.1686842441558838, -0.10429781675338745, -0.04819374531507492, 0.29453232884407043, -0.02774842083454132, 0.7169638872146606, 0.03112117014825344, -0.026759035885334015, -0.3963230848312378, 0.011163593269884586, -0.31157252192497253, 0.1322590559720993, 0.01474644523113966, -0.28335800766944885, 1.0131868124008179, -0.07013356685638428, 0.981033205986023, -0.17253582179546356, -0.41397812962532043, 0.1765250563621521, -0.6360814571380615, -0.2224055528640747, 0.2867477238178253, 0.17922532558441162, 0.5190868973731995, -0.29282206296920776, -0.26740679144859314, -0.15459492802619934, -0.4677853584289551, 0.3727087676525116, -0.803301990032196, 0.011269557289779186, 0.35576385259628296, -0.22039702534675598, -0.023195790126919746, 0.2713145315647125, -0.7780494689941406, -0.9465364813804626, -0.5734923481941223, 0.15062737464904785, -0.3731521964073181, -0.3113153576850891, 0.26415854692459106, -0.5198330283164978, -0.007218336220830679, 0.7864561080932617, -0.9995764493942261, 0.1247045174241066, 0.5618487596511841, 1.2248945236206055, -0.23295344412326813, -0.2536053955554962, -0.5938853621482849, 0.47858238220214844, -0.12041644752025604, 1.1200499534606934, -0.5667439103126526, -0.7882021069526672, 0.06837659329175949, -0.3295941948890686, 0.005847591906785965, -0.48545411229133606, 0.7304629683494568, -0.4885994791984558, 0.5650275349617004, -0.10307064652442932, -0.458385705947876, -0.0725022405385971, 0.8306156396865845, -0.9428699612617493, 0.9539779424667358, 0.22892625629901886, -0.8350138068199158, 0.4827875792980194, -1.027375340461731, -0.4610069692134857, 0.08934413641691208, 0.08076849579811096, -0.34628406167030334, -0.015700794756412506, 0.5152221322059631, 0.41408947110176086, 0.11024826020002365, -0.2405431866645813, -0.011749077588319778, -0.35373032093048096, -0.08315597474575043, -0.2091209590435028, 0.14170986413955688, 0.28343066573143005, 0.02159016579389572, 0.07801774889230728, -0.9834624528884888, -0.5128058791160583, -0.1389888972043991, -0.6344596743583679, -0.4397042393684387, -0.09551655501127243, 0.39564958214759827, 0.06313920021057129, 0.511406421661377, -0.8061583042144775, 0.3840789198875427, -0.48434504866600037, -0.033511266112327576, 0.03166002780199051, 0.12133785337209702, 0.6243426203727722, -0.3293904662132263, 0.5381556749343872, -0.14314240217208862, 0.06255006790161133, -0.5905805826187134, -0.34883224964141846, -0.5237751603126526, -0.7903381586074829, 0.4157675504684448, 0.8524076342582703, -0.907442033290863, 0.40392041206359863, -0.6082600951194763, -0.28959283232688904, -0.44756245613098145, 0.11606381833553314, 0.2017575055360794, 0.7055244445800781, 0.35895511507987976, -0.13058921694755554, -0.4347587823867798, -0.4864256680011749, -0.22440002858638763, 0.23973923921585083, -0.2301831841468811, 0.1729268729686737, 0.1845906674861908, -0.22012090682983398, 1.0122774839401245, -0.512906551361084, -0.43744024634361267, -0.4391665756702423, 0.17534159123897552, -0.007436791434884071, 0.32881414890289307, 0.27506548166275024, -1.1755605936050415, -0.2995729446411133, 0.305851012468338, -1.0468934774398804, 0.073734812438488, -0.3930226266384125, 0.25920552015304565, 0.22706465423107147, 0.7840409874916077, -0.31719139218330383, 0.5348271727561951, 0.6899482011795044, -0.5612162351608276, 0.3788849711418152, -0.9498208165168762, 0.44641584157943726, -1.3130741119384766, -0.04171720892190933, 0.030519351363182068, -0.40262800455093384, -0.4802466928958893, 0.46155333518981934, 0.23600031435489655, -0.4173433780670166, -0.3245112895965576, 0.7581749558448792, -0.843135416507721, -0.34554779529571533, -0.440380334854126, 0.5781570672988892, 0.4905492663383484, 0.12309838831424713, 0.30104267597198486, 0.7387681603431702, -0.04266378656029701, -0.49714452028274536, 0.24480003118515015, 0.4150437116622925, -0.4194090962409973, 0.5697035789489746, -0.41595742106437683, 0.024362964555621147, -0.08543653786182404, 0.32070115208625793, -0.9973793029785156, -0.3941817581653595, 0.3013703227043152, -0.3323948085308075, 0.1667773574590683, 0.232566237449646, -1.000539779663086, -0.13721691071987152, -0.29332610964775085, -0.12971891462802887, 0.09041761606931686, -0.7233483791351318, 1.4317142963409424, 0.34182804822921753, -0.29179155826568604, -0.33851099014282227, -0.6580732464790344, 0.478530615568161, 0.23734921216964722, -0.49308955669403076, 0.3962310552597046, -0.12014706432819366, -0.5015606880187988, 0.06803923845291138, 0.18343612551689148, 0.10563546419143677, -0.09362123161554337, 0.5569278001785278, 0.5926892757415771, 0.13806882500648499, 0.08366744965314865, 0.41632285714149475, 0.10464152693748474, -0.573341965675354, -0.28589096665382385, 0.3642045259475708, 0.17314116656780243, -0.49911391735076904, -0.13200035691261292, 0.60316401720047, 0.47771602869033813, -0.4288557767868042, 0.7296647429466248, 0.8413500189781189, -0.3534124195575714, 0.44003525376319885, -0.8628153800964355, 0.029027501121163368, -0.423816442489624, 0.28828927874565125, -0.495893657207489, -1.0487804412841797, 0.5580859780311584, -0.010602514259517193, 0.581475019454956, 0.38455653190612793, 0.5416843295097351, -0.27300646901130676, 0.8677676320075989, 0.6928091049194336, 0.301314115524292, 0.8188811540603638, -0.1267675906419754, 0.14667122066020966, -0.8523980379104614, -0.44037193059921265, -0.35580137372016907, -0.15228495001792908, -0.08781992644071579, -0.4034566283226013, 0.43006816506385803, 0.0292409285902977, 0.40019333362579346, 0.09910393506288528, -0.68468177318573, 0.5850198864936829, 0.494177907705307, 0.32479193806648254, 0.811154842376709, 0.20988258719444275, -0.20581214129924774, -0.11625497043132782, -0.3269801735877991, -0.4055432677268982, 0.8610831499099731, 0.032042209059000015, 0.42722776532173157, 0.0674019604921341, 0.5122234225273132, 0.6917704343795776, 0.5179110765457153, -0.7820067405700684, 0.3502223789691925, 0.041740745306015015, -0.5191004872322083, -0.2965928316116333, -0.02554437331855297, -0.6407193541526794, 0.5029107332229614, -0.659238874912262, -0.4523843824863434, 0.4168035387992859, 0.17545649409294128, -0.40233588218688965, 0.41341036558151245, -0.7795389294624329, 0.3885999321937561, -0.13716793060302734, -0.38977691531181335, -0.25786975026130676, -0.4380910396575928, 0.2188103199005127, -0.18572793900966644, 0.3727145791053772, 0.35922762751579285, -0.462677925825119, 0.535955011844635, -0.48971250653266907, 0.4592585265636444, 0.04103304073214531, -0.4589654207229614, 0.17842426896095276, -0.03025668114423752, 0.4991524815559387, -0.11270944029092789, -0.21643543243408203, -0.06207209452986717, -0.12660883367061615, -0.3873963952064514, -0.8238704204559326, 0.7769579291343689, -0.5118916630744934, -0.33617454767227173, -0.5945953726768494, -0.8011687397956848, -0.2632994055747986, 0.47608575224876404, 0.1156768798828125, 0.7671982645988464, -0.32721731066703796, -0.02800687402486801, 0.6488555073738098, -0.15328779816627502, 0.6830301880836487, 0.5163665413856506, -0.5168538093566895, -0.5222792029380798, 1.1527084112167358, 0.15461072325706482, 0.2455131709575653, 0.491711288690567, 0.08753315359354019, -0.6858183145523071, -0.7794570922851562, -0.7083612084388733, 0.3311566114425659, -0.6531879305839539, 0.5279518365859985, -1.3361303806304932, 0.20909106731414795, -0.8615176677703857, -0.48259612917900085, 0.016545481979846954, -0.5122576951980591, -0.501693606376648, -0.2468877136707306, 0.104097880423069, 0.6817846894264221, -0.1664554923772812, 0.3633156716823578, -1.218729019165039, 0.9456470608711243, 0.4539909064769745, 0.35147082805633545, -0.20823660492897034, -0.6749104261398315, -0.6002041697502136, -0.03914502635598183, -0.09002689272165298, -0.33592987060546875, 0.6255024671554565, 0.12502850592136383, 0.38125699758529663, 0.514934241771698, 0.07817839831113815, 0.43694883584976196, -0.33727526664733887, 0.9015607237815857, 0.20061206817626953, -0.45779624581336975, 0.30807605385780334, -0.5708960294723511, 0.3441678583621979, 0.7133038640022278, 0.18577693402767181, -0.5005740523338318, -0.2543541193008423, -0.6090617179870605, -0.76474928855896, 0.3766344487667084, -0.08145802468061447, 0.19809582829475403, 0.25784623622894287, 0.3385125398635864, -0.012791624292731285, 0.14698006212711334, -0.1783343255519867, 0.19086052477359772, -0.4424320161342621, -0.15461795032024384, -0.2126510888338089, -0.3933752775192261, -0.06526617705821991, -0.14490345120429993, 0.23614159226417542, 0.034400299191474915, 0.022213157266378403, 0.5365782380104065, -0.35733917355537415, 0.19920626282691956, 0.0670635998249054, 1.1149259805679321, 0.6638795137405396, -0.7203349471092224, -0.057420264929533005, -0.16126379370689392, -1.2274948358535767, -0.13889817893505096, 0.4134397506713867, 0.023623384535312653, 0.16985946893692017, 0.4943408966064453, 0.8025550842285156, 0.10145729780197144, -0.9301396608352661, 0.19564978778362274, -0.2866801619529724, -0.4617671072483063, -0.2143050879240036, -0.14927728474140167, -0.16538101434707642, 0.11866223812103271, 0.5167897343635559, -0.08674502372741699, 0.3385966718196869, -0.6568787693977356, -0.04564063251018524, 0.12606997787952423, -0.49548113346099854, 0.05296557396650314, 0.6016513109207153, 0.3994162082672119, -0.5251818299293518, 0.4052874743938446, -0.1303527057170868, -0.16631653904914856, 0.17616435885429382, 0.4734848737716675, 0.6690794825553894, 0.05383927375078201, 0.2671867609024048, -0.002212672494351864, 0.272020548582077, -0.2494618147611618, 0.17921724915504456, -0.3738468885421753, -0.7912346720695496, -0.4096514582633972, -0.627167820930481, -0.9760888814926147, -0.3533923327922821, -0.4784840941429138, 0.0385441891849041, -0.5621218085289001, 0.13503077626228333, -0.07424742728471756, 0.12068716436624527, -0.16232998669147491, 0.5118798613548279, 0.12967531383037567, 0.8019768595695496, -0.5020862221717834, 0.5730178356170654, 0.830368161201477, -0.5099374651908875, -0.35325154662132263, 0.2344380021095276, -0.09638497978448868, -0.5241971015930176, 0.1361372023820877, -0.14312906563282013, -0.23933418095111847, 0.23166154325008392, -0.21543118357658386, -0.4806128442287445, 0.9182167053222656, 0.06643059849739075, -0.4797276258468628, -0.2972337603569031, 0.0445440337061882, 0.6198099255561829, -0.2622961401939392, 0.39165523648262024, 0.3331327736377716, 0.6437897682189941, 0.31062111258506775, -0.5179793834686279, -0.2506970763206482, -0.24210532009601593, -0.3087273836135864, 0.03459874168038368, -0.18730677664279938, 0.44820359349250793, -0.25696825981140137, -0.0007360125309787691, -0.14952971041202545, 0.8813850283622742, 0.47662225365638733, 0.4867819845676422, 0.5595215559005737, 0.7549865245819092, 0.7020106315612793, 0.2463933229446411, 1.7070592641830444, -0.23033969104290009, -0.07347708940505981, 1.284246563911438, -0.37425774335861206, 0.7725526690483093, 0.37674039602279663, 0.20543919503688812, 0.4261530041694641, 0.6292006969451904, 0.18646562099456787, 0.4329870939254761, -0.40605565905570984, -0.5003844499588013, -0.2292253077030182, -0.4109629988670349, -0.42687004804611206, 0.0948280394077301, 0.48691514134407043, -0.2122844010591507, -0.2524496614933014, 0.5776948928833008, -0.14472012221813202, 0.31836599111557007, -0.2438298910856247, 0.9623414278030396, -0.2592407464981079, -0.5033189654350281, 0.3513087034225464, -0.04044689983129501, 0.6979493498802185, -0.44174644351005554, -0.3200545310974121, -0.24332688748836517, 0.027017315849661827, -0.32150566577911377, -0.87113356590271, 0.2415422797203064, 0.039637427777051926, -0.4326438009738922, -0.380495548248291, 0.8436869978904724, -0.3314990997314453, -0.8031617999076843, 0.06136626750230789, 0.3997706174850464, 0.019849661737680435, -0.46605047583580017, -0.4838767349720001, 0.003755305428057909, -0.14560958743095398, -0.28440970182418823, 0.5489231944084167, 0.24471016228199005, 0.06472908705472946, 0.5324534177780151, 0.9557435512542725, 0.39812520146369934, -0.03730013594031334, 0.2522602379322052, 0.9366680383682251, -0.35858654975891113, -0.8604680299758911, -0.5996171832084656, 0.5507076978683472, -0.3563970625400543, -0.26693451404571533, 0.94873046875, 0.9977176189422607, 0.39772170782089233, -0.03061177022755146, 0.9694001078605652, 0.04104428365826607, 0.9203314185142517, -0.4874778687953949, 0.9007789492607117, -0.9038312435150146, -0.007073812186717987, -0.5496997237205505, -1.1575767993927002, -0.6146692633628845, 0.2617678940296173, -0.35446804761886597, -0.48331087827682495, 0.5593819618225098, 0.6388491988182068, -0.3070151209831238, 0.0024893858935683966, 0.4888346493244171, -0.4370870292186737, 0.44359996914863586, -0.4385678470134735, 0.4477398693561554, -0.23278462886810303, 0.5367632508277893, 0.013190505094826221, -0.3012046813964844, -0.5166838765144348, -0.7677481770515442, -0.7786621451377869, -0.664034366607666, -0.17580346763134003, -0.4694060683250427, 0.07812143862247467, 0.7107512950897217, 0.40767133235931396, -0.5253477692604065, 0.16135989129543304, 0.23277604579925537, 0.0809098407626152, -0.06103111803531647, -0.17147241532802582, 0.4061022400856018, 0.11556550860404968, -0.8944368362426758, 0.4407026469707489, 0.49537593126296997, 0.3365267217159271, -0.1695908159017563, 0.04798942804336548, -0.4862973093986511, 0.009172414429485798, 0.7644042372703552, 0.5385228395462036, -0.1763084977865219, 0.014337952248752117, 0.09307113289833069, -0.20832979679107666, 0.17679303884506226, 0.8832773566246033, -0.6062602400779724, 0.8631370663642883, 0.6536896228790283, 0.8210055232048035, 0.6695312857627869, 0.4865029454231262, 0.3898378610610962, -0.47435474395751953, 0.5196941494941711, 0.07565011829137802, 0.056611210107803345, 0.4559212625026703, -0.5287764072418213, 0.43771931529045105, 0.3125194311141968, -0.2640469968318939, -0.7960150837898254, -0.19685609638690948, -1.2481639385223389, -0.21280360221862793, 0.9483658671379089, -0.010839213617146015, -0.21911367774009705, -0.5551198124885559, -0.6140797138214111, 0.2688433527946472, -0.46117955446243286, 0.7623956203460693, 0.7108537554740906, -0.08651470392942429, -0.532588541507721, -0.6204633712768555, 0.11963337659835815, -0.07938709110021591, -1.0835720300674438, -0.06413928419351578, 0.7680908441543579, -0.19791847467422485, 0.5725476741790771, 0.6281948685646057, -0.1153203696012497, 0.1731749176979065, 0.08719177544116974, 0.40160128474235535, -0.6893236637115479, -0.25770455598831177, -0.27369755506515503, 0.32245516777038574, -0.3281230926513672, -0.28184792399406433 ]
http://arxiv.org/abs/2405.18613v1
http://arxiv.org/pdf/2405.18613v1
GLOCON Database: Design Decisions and User Manual (v1.0)
2024-05-28T21:42:35
2024-05-28T21:42:35
Ali Hürriyetoğlu, Osman Mutlu, Fırat Duruşan, Erdem Yörük
cs.CL
cs.CL, cs.CY, cs.DB, cs.LG
GLOCON is a database of contentious events automatically extracted from national news sources from various countries in multiple languages. National news sources are utilized, and complete news archives are processed to create an event list for each source. Automation is achieved using a gold standard corpus sampled randomly from complete news archives (Y\"or\"uk et al. 2022) and all annotated by at least two domain experts based on the event definition provided in Duru\c{s}an et al. (2022).
[ -0.6769073605537415, -0.7246538400650024, 0.6427943706512451, -0.2107066810131073, -0.3902627229690552, 0.11151242256164551, 0.033837903290987015, -0.8736077547073364, 0.4909376800060272, 0.4762256145477295, -0.39225950837135315, -0.6843194365501404, -0.33753904700279236, 0.07106932997703552, -0.812811017036438, 1.1827973127365112, -0.2459694892168045, -0.29739275574684143, 0.007001800928264856, -0.1349361389875412, 0.21605609357357025, -0.8124415278434753, -0.6033326387405396, 0.1435137391090393, 0.48648232221603394, 0.6055741310119629, 0.9614720344543457, 0.491491436958313, 0.5052242279052734, 0.2719446122646332, -0.255870521068573, -0.04570295289158821, -0.2524983882904053, -0.38308843970298767, -0.6459537148475647, -0.12223489582538605, -0.16904233396053314, 0.0136820487678051, 0.5113034844398499, 0.6074767708778381, -0.31169912219047546, 0.07023687660694122, -0.240411639213562, 0.6557077169418335, -1.0107064247131348, -0.26377925276756287, -0.8381813168525696, 0.0760715901851654, -0.2527863383293152, 0.02191256172955036, -0.14890441298484802, -0.7825765013694763, -0.12554703652858734, -0.40444624423980713, 0.6091310977935791, 0.049536388367414474, 1.185126781463623, -0.08257843554019928, -0.9191379547119141, -0.856168806552887, -0.6561726331710815, 0.5108559727668762, -0.23891349136829376, 0.4170113801956177, 0.3553026616573334, 0.29340675473213196, -0.5029204487800598, -0.59886634349823, -0.3806782364845276, -0.28708261251449585, -0.42909619212150574, 0.09935952723026276, -0.09039374440908432, -0.11813615262508392, 0.10942552983760834, 0.48783454298973083, -0.6893174052238464, 0.12828291952610016, -0.8070565462112427, -0.3991301953792572, 0.9142832159996033, 0.2661229968070984, 0.3091752529144287, -0.46213003993034363, -0.3612864315509796, 0.588024377822876, -0.6804412007331848, -0.3227579891681671, 0.8721464276313782, -0.0864698737859726, -0.22949117422103882, 0.5085230469703674, -0.6410781145095825, 0.9226663708686829, -0.11312466859817505, -0.0628611370921135, -0.023928610607981682, -0.8845750093460083, 0.027052713558077812, 0.2207012176513672, 1.2572016716003418, 0.7571269273757935, 0.24862436950206757, -0.3656269311904907, 0.2954097390174866, -0.071332648396492, 0.15684197843074799, -0.6519245505332947, -0.21551834046840668, 0.471309095621109, -0.33093932271003723, -0.20140646398067474, 0.30533367395401, -1.1704188585281372, -0.31232792139053345, -0.3888798654079437, -0.11919259279966354, -0.14115208387374878, -0.20385244488716125, -0.035421956330537796, -0.31748902797698975, -0.11681342869997025, 0.24105681478977203, -0.9760578870773315, 0.33732178807258606, 0.17903199791908264, 0.9501295685768127, -0.3379589319229126, 0.027398303151130676, -0.06875581294298172, 0.32453790307044983, -0.41502606868743896, 1.0099656581878662, -0.18725192546844482, -0.7411969304084778, 0.06670745462179184, 0.3027927875518799, 0.3162095248699188, -0.5902048945426941, 0.5187445282936096, -0.4904841184616089, 0.4762640595436096, 0.024956146255135536, -0.42543768882751465, 0.10623068362474442, 0.018518036231398582, -0.91571044921875, 0.5255069732666016, -0.003322009230032563, -0.8616348505020142, 0.6273139119148254, -0.27329960465431213, -0.30707186460494995, -0.1363154798746109, -0.3122466206550598, 0.012017641216516495, 0.016971634700894356, -0.049271199852228165, -0.12645551562309265, -0.3664401173591614, 0.45759525895118713, 0.036397796124219894, -0.2852936089038849, -0.2272731065750122, 0.29218533635139465, 0.9997312426567078, 0.445690393447876, -0.019827211275696754, 0.10474502295255661, -0.9908348917961121, -0.22328628599643707, -0.09460681676864624, -0.4798072278499603, -0.468869149684906, 0.22503559291362762, -0.1144300028681755, 0.4301441013813019, 0.3839826285839081, -0.4242597222328186, 0.6350604295730591, -0.2992308437824249, 0.25292372703552246, 0.23508292436599731, 0.48644110560417175, 0.6131038665771484, 0.015368365682661533, 0.20117180049419403, -0.027354678139090538, 0.49801650643348694, 0.4578229486942291, -0.6587370038032532, -0.4388309121131897, 0.2936469614505768, 0.38190969824790955, 0.9884058833122253, -0.484837144613266, 0.556614100933075, 0.2621084153652191, -0.5532720685005188, -0.15080663561820984, 0.3941963016986847, -0.01613517291843891, 0.5046123266220093, 0.35620859265327454, -0.25334373116493225, -1.1097185611724854, -1.0742400884628296, 0.030192308127880096, -0.32537105679512024, 0.010674608871340752, 0.07629377394914627, 0.7546610832214355, -0.3159794509410858, 0.9227233529090881, -0.38934460282325745, -0.14425575733184814, 0.0327896885573864, 0.2763049900531769, 0.45509544014930725, 0.12389416247606277, 0.49865370988845825, -0.766485869884491, -0.5122086405754089, 0.4685809910297394, -0.8496527075767517, -0.061862848699092865, -0.3071422874927521, -0.5792626738548279, 0.8535899519920349, 0.6873023509979248, -0.39039698243141174, 0.8158799409866333, 0.7514350414276123, -0.6153501272201538, 0.7907403111457825, -0.012601856142282486, 0.4129297137260437, -1.1776989698410034, 0.12489873915910721, -0.25493890047073364, 0.08351509273052216, -0.3871177136898041, -0.2525404989719391, 0.19418855011463165, 0.365959107875824, -0.7496970295906067, 0.6128456592559814, -0.40913480520248413, -0.046435315161943436, -0.3158271014690399, 0.406168669462204, 0.15391694009304047, 0.04954534024000168, 0.18148793280124664, 0.7179281711578369, 0.34660521149635315, -0.8261585831642151, 0.7021996974945068, 0.2309364676475525, -0.6014732718467712, 0.4534915089607239, -0.3786790370941162, 0.0680866539478302, 0.016307104378938675, -0.06493254750967026, -0.5907993912696838, -0.41814813017845154, 0.41855937242507935, -0.06788665801286697, -0.2349882870912552, -0.23600950837135315, -0.2369106262922287, -0.7058111429214478, -0.03547993674874306, 0.08683181554079056, 0.07002054154872894, -0.2719059884548187, 0.24490496516227722, 0.8384881615638733, 0.003946668468415737, -0.6369088292121887, -0.6207894682884216, 0.34457969665527344, -0.13162994384765625, -0.22096940875053406, 0.17472189664840698, -0.15926353633403778, -0.7448278665542603, 0.4295579493045807, -0.01944771781563759, -0.4627840518951416, -0.04754398763179779, 0.3138278126716614, 0.3619735836982727, 0.18780554831027985, -0.013468042947351933, -0.15580254793167114, 0.13018196821212769, -0.06771279126405716, -0.04361017048358917, 0.48609447479248047, 0.12159543484449387, -0.13112223148345947, -0.7360155582427979, 0.9169701337814331, 0.4878738224506378, 0.3832216262817383, 0.7409904599189758, 0.33412879705429077, -0.46247318387031555, 0.4117114543914795, -0.5863878726959229, 0.2664535343647003, -0.4065812826156616, 0.10972616821527481, -0.13951842486858368, -0.8668729662895203, 0.9474868774414062, 0.24798373878002167, -0.026009321212768555, 0.8349872827529907, 0.8423134684562683, 0.3127124607563019, 0.8864037990570068, 0.39733538031578064, -0.5707628130912781, 0.3216395676136017, -0.0024394893553107977, -0.1521601527929306, -0.558266282081604, -0.6855782866477966, -0.8635910153388977, -0.222329780459404, -0.5928835868835449, -0.06260021030902863, -0.12821415066719055, 0.20901750028133392, -0.2889699935913086, 0.630545437335968, -0.5061905980110168, 0.5777385830879211, 0.7736719846725464, -0.07813287526369095, 0.8651845455169678, -0.18399940431118011, 0.08108843117952347, 0.1934819370508194, -0.28970110416412354, -0.41165000200271606, 0.8538249135017395, -0.2841845452785492, 0.8322698473930359, 0.3905583918094635, 0.5973902344703674, 0.35171446204185486, 0.07774760574102402, -0.7766571044921875, 0.37770453095436096, 0.22475381195545197, -1.4252594709396362, -0.061955586075782776, -0.5965717434883118, -1.1244302988052368, -0.3345984220504761, -0.15223056077957153, -1.1535156965255737, 0.7228440046310425, 0.017887799069285393, -0.39594969153404236, 0.5240123867988586, -0.8772764801979065, 0.7582730054855347, -0.5580133199691772, -0.20246462523937225, -0.3306884765625, -0.30802375078201294, 0.5345231890678406, -0.02702842652797699, 0.49476972222328186, -0.2742556929588318, -0.43469107151031494, 0.6509984731674194, -0.1412239968776703, 0.41751036047935486, 0.016965750604867935, 0.09057263284921646, 0.7035607099533081, 0.22853124141693115, 0.323144793510437, 0.5682186484336853, -0.20663323998451233, 0.32991963624954224, -0.04884878918528557, -0.20865465700626373, -0.09256049245595932, 0.8140131235122681, -0.7928670048713684, -0.5047949552536011, -0.3382565975189209, -0.3240912854671478, 0.03787728771567345, 0.26192575693130493, 0.5187893509864807, 0.286632239818573, -0.6046845316886902, -0.025248801335692406, 0.11126229166984558, -0.11744055896997452, 0.38662904500961304, 0.5181501507759094, -0.3838837146759033, -0.743051290512085, 0.6152715086936951, 0.39511215686798096, 0.1654713749885559, 0.19351911544799805, -0.02065085805952549, -0.31642213463783264, -0.7094165682792664, -0.39532068371772766, 0.04687028005719185, -0.6236147880554199, -0.21124809980392456, -0.6100319027900696, -0.44274118542671204, -0.3151526153087616, -0.30137285590171814, -0.014358404092490673, -0.48234495520591736, -0.25329309701919556, -0.262620210647583, 0.29271867871284485, 0.9865279793739319, -0.34740403294563293, 0.3115513026714325, -0.5979627966880798, 0.6945998668670654, 0.5228705406188965, 0.5402076244354248, -0.6760732531547546, -0.23301313817501068, -0.4787473976612091, -0.3115617334842682, -0.2913043797016144, -1.1136459112167358, 0.35554900765419006, 0.3285874128341675, 0.8491848111152649, 0.5154021382331848, -0.03832117095589638, 0.5026305913925171, -0.42710402607917786, 0.9262694716453552, 0.27326643466949463, -0.8461704850196838, 1.2882192134857178, -0.216380774974823, 0.18537376821041107, 0.8690524101257324, 0.9927994012832642, -0.4500808119773865, -0.3521847128868103, -1.0973578691482544, -1.0656673908233643, 0.7407748103141785, -0.22245176136493683, -0.33468592166900635, -0.24218879640102386, 0.46822088956832886, 0.24290180206298828, 0.32019558548927307, -0.32854899764060974, -0.25992506742477417, -0.04906590282917023, 0.17318330705165863, 0.18572430312633514, -0.5837563872337341, -0.515595018863678, -0.4194742739200592, 0.5533557534217834, -0.0847550705075264, -0.023931318894028664, 0.33830705285072327, -0.10454882681369781, -0.05944863334298134, 0.3001726567745209, 0.6105595827102661, 0.9776325821876526, -0.5107438564300537, 0.15506726503372192, 0.4902971684932709, -0.6592789888381958, 0.04942807927727699, -0.03666670247912407, -0.20326577126979828, 0.3853398561477661, 0.044242992997169495, 0.6399861574172974, 0.07445196807384491, -0.5600560307502747, 0.03138628974556923, -0.33382129669189453, -0.5080581307411194, -0.578231155872345, 0.1470952033996582, -0.013629788532853127, 0.06334061920642853, 0.6739727258682251, -0.257479727268219, 0.5970872640609741, -0.8307592272758484, 0.5742543935775757, 0.348958820104599, -0.1459985226392746, -0.09084191173315048, 0.7349756956100464, 0.13049571216106415, -0.14398470520973206, 0.5691013336181641, -0.36563313007354736, -0.06789281219244003, 0.7830917239189148, 0.3043728768825531, 0.3606622517108917, -0.11906545609235764, 0.2843635082244873, 0.9053924679756165, 0.2538887560367584, 0.04251928627490997, 0.34049925208091736, 0.4089154303073883, -0.775067925453186, -0.5668627023696899, -0.5828724503517151, -1.1179282665252686, 0.13294818997383118, -0.6714304089546204, 0.5678500533103943, -0.5853667855262756, -0.4635125696659088, -0.3002665936946869, 0.33609190583229065, -0.476768434047699, 0.14992934465408325, 0.6258909106254578, 1.2301467657089233, -0.6850655674934387, 0.76328045129776, 0.5307793617248535, -0.20670171082019806, -0.09774643182754517, -0.325895756483078, 0.3278319835662842, -0.43345072865486145, 0.10417982935905457, -0.24803654849529266, 0.23398934304714203, -0.24579107761383057, -0.45675933361053467, -1.099066138267517, 0.7933911681175232, 0.5867467522621155, -0.8467274904251099, -0.08097714930772781, 0.026926154270768166, 0.21738992631435394, -0.15499362349510193, 0.20379817485809326, 0.9645338654518127, 0.6233029365539551, 0.09773553162813187, -1.091661810874939, -0.21106360852718353, -0.17405356466770172, -0.4667131304740906, 0.39684799313545227, -0.7094435095787048, 0.6378872990608215, -0.15303608775138855, -0.3374123275279999, -0.15118449926376343, 0.6474573016166687, 0.03909192979335785, 0.1626397669315338, 0.4402081072330475, 0.5474029779434204, 1.1394374370574951, -0.43509581685066223, 1.0388067960739136, -0.34940600395202637, 0.41173025965690613, 1.0101945400238037, -0.09080836176872253, 0.4185978174209595, 0.46754005551338196, -0.1690404713153839, 0.8864044547080994, 0.6876031160354614, 0.02912461757659912, 0.6467987895011902, -0.1725655198097229, -0.24398766458034515, -0.1537274569272995, -0.4494544267654419, -0.6397152543067932, 0.47003671526908875, 0.6546750068664551, -0.21650762856006622, -0.6123824119567871, -0.3868497908115387, 0.20921799540519714, -0.034563448280096054, -0.6259810924530029, 0.7452983856201172, -0.10342267155647278, -0.44086650013923645, 0.2815866470336914, -0.44845032691955566, 0.3542386591434479, -0.649777352809906, 0.3230263292789459, -0.12309546768665314, 0.0989985466003418, -0.5213406085968018, -1.1624819040298462, 0.9050529599189758, -0.1032940223813057, -0.2717304229736328, 0.4156762957572937, 0.5770356059074402, -0.2711681127548218, -0.5466287136077881, 0.5208593010902405, 0.5312023758888245, 0.22976356744766235, -0.06933047622442245, -0.5256667733192444, 0.3711472749710083, -0.09444768726825714, -0.40982475876808167, 0.32000070810317993, 0.48999521136283875, -0.3673468828201294, 0.1974710375070572, 0.4372693598270416, 0.36883851885795593, -0.08440665900707245, 0.23941388726234436, 0.8597493171691895, -1.098853588104248, -0.3695318102836609, -0.7737353444099426, 0.4859153926372528, -0.6921457648277283, -0.5477343201637268, 0.4158819913864136, 0.8158206939697266, 0.8612650036811829, 0.12313997000455856, 0.984674334526062, -0.6818119883537292, 0.32637590169906616, -0.4688550531864166, 0.4718972444534302, -0.37821003794670105, -0.6188482046127319, 0.17532244324684143, -0.4205436110496521, -0.5141189694404602, 0.47079673409461975, -0.0986822172999382, -0.4147774577140808, 0.7895187139511108, 0.682644784450531, 0.45440182089805603, 0.021392347291111946, 0.13354423642158508, -0.13378843665122986, 0.14200490713119507, 0.8323627710342407, 0.8002790212631226, -0.21263860166072845, 0.8992887139320374, -0.5933170318603516, -0.14070960879325867, -0.49065348505973816, -1.0018163919448853, -0.8373332023620605, -0.5788550972938538, -0.3118517994880676, -0.24510087072849274, 0.18957465887069702, 0.8511367440223694, 0.3998364508152008, -1.5465325117111206, -0.32933691143989563, -0.08159328997135162, 0.5771430134773254, 0.2508534789085388, -0.20723506808280945, 0.43973177671432495, -0.29112136363983154, -0.9389956593513489, 0.3705297112464905, -0.055273257195949554, -0.10874725133180618, -0.05814607813954353, 0.16380903124809265, -0.46749699115753174, -0.3329443037509918, 0.3277256488800049, 0.6439117789268494, -0.27205127477645874, -0.7304719090461731, -0.368838369846344, -0.4743627905845642, -0.12874358892440796, 0.5174530744552612, -0.9010226130485535, 0.1534477025270462, 0.650982141494751, -0.05663037300109863, 0.13444466888904572, 0.06160996854305267, 0.4154472351074219, -0.5607978105545044, 0.8299040794372559, -0.005652456544339657, 0.5754141807556152, -0.02103765495121479, -0.7380656003952026, 0.8541294932365417, 0.5899474024772644, -0.8826425671577454, -0.45918023586273193, 0.15261846780776978, -1.0387113094329834, -0.24601440131664276, 1.3583520650863647, 0.7365354299545288, -0.3909253180027008, -0.8330783247947693, -0.4689907133579254, 0.180074080824852, -0.376303106546402, 0.9078769683837891, 0.8846309781074524, -0.40632811188697815, 0.09447762370109558, -0.931596577167511, 0.5355703830718994, -0.5990117788314819, -0.5534961223602295, -0.247430682182312, 0.6958766579627991, -0.00919345859438181, 0.5561059713363647, 0.7480977177619934, -0.23822420835494995, 0.3915409743785858, -0.06507941335439682, 0.6015065908432007, 0.23620980978012085, -0.7346833348274231, 0.20803317427635193, 0.5891152620315552, -0.2685428857803345, 0.021898377686738968 ]
http://arxiv.org/abs/2406.00053v2
http://arxiv.org/pdf/2406.00053v2
Dual Process Learning: Controlling Use of In-Context vs. In-Weights Strategies with Weight Forgetting
2024-05-28T21:38:20
2024-07-01T18:23:43
Suraj Anand, Michael A. Lepori, Jack Merullo, Ellie Pavlick
cs.CL
cs.CL, cs.LG
Language models have the ability to perform in-context learning (ICL), allowing them to flexibly adapt their behavior based on context. This contrasts with in-weights learning, where information is statically encoded in model parameters from iterated observations of the data. Despite this apparent ability to learn in-context, language models are known to struggle when faced with unseen or rarely seen tokens. Hence, we study $\textbf{structural in-context learning}$, which we define as the ability of a model to execute in-context learning on arbitrary tokens -- so called because the model must generalize on the basis of e.g. sentence structure or task structure, rather than semantic content encoded in token embeddings. An ideal model would be able to do both: flexibly deploy in-weights operations (in order to robustly accommodate ambiguous or unknown contexts using encoded semantic information) and structural in-context operations (in order to accommodate novel tokens). We study structural in-context algorithms in a simple part-of-speech setting using both practical and toy models. We find that active forgetting, a technique that was recently introduced to help models generalize to new languages, forces models to adopt structural in-context learning solutions. Finally, we introduce $\textbf{temporary forgetting}$, a straightforward extension of active forgetting that enables one to control how much a model relies on in-weights vs. in-context solutions. Importantly, temporary forgetting allows us to induce a $\textit{dual process strategy}$ where in-context and in-weights solutions coexist within a single model.
[ 0.1798671931028366, -0.8489542007446289, 0.3938491642475128, 0.1325596272945404, -0.29151231050491333, 0.34549829363822937, -0.2568228244781494, -0.061332836747169495, -0.1424950659275055, 0.14626403152942657, -0.3324200212955475, -0.148911252617836, -0.3686031103134155, -0.27642500400543213, -0.35346245765686035, 1.1611839532852173, -0.605616569519043, 0.38099631667137146, -0.20436717569828033, -0.4432230293750763, -0.5844326615333557, -0.8063991665840149, -0.9249218702316284, -0.45409518480300903, 0.5244220495223999, 0.5335795283317566, 0.29857537150382996, 0.31836193799972534, 0.11710789054632187, 0.20489075779914856, -0.19845746457576752, -0.18820905685424805, -0.5470974445343018, 0.23974329233169556, -0.3722269833087921, -0.7016997337341309, -0.08099418878555298, 0.038809917867183685, 1.1097805500030518, 0.9793969392776489, -0.3125135004520416, 0.2919418513774872, 0.14830592274665833, 0.5106924772262573, -0.5184168219566345, 0.16120190918445587, -0.909600019454956, 0.1776835024356842, -0.16294093430042267, -0.12471189349889755, -0.39586830139160156, 0.31732288002967834, 0.024698499590158463, -0.06840377300977707, 0.17691445350646973, -0.048545416444540024, 0.8627118468284607, 0.24439916014671326, -0.5945310592651367, -0.6770673990249634, -0.8266651630401611, 0.7206741571426392, -0.540915846824646, 0.24332983791828156, 0.4558659791946411, 0.08756662160158157, -0.20407302677631378, -0.8048031330108643, -0.3435037434101105, -0.33282849192619324, 0.047878652811050415, 0.03236616402864456, 0.05860728397965431, 0.003446870017796755, 0.44508281350135803, 0.21626883745193481, -0.25311335921287537, 0.11800437420606613, -0.48058754205703735, -0.12604399025440216, 0.12206024676561356, -0.060963232070207596, 0.4597083628177643, 0.16272935271263123, -0.5263186693191528, 0.06318771839141846, -0.7680495977401733, 0.27611643075942993, 0.3294833302497864, 0.61346435546875, -0.19996030628681183, 0.5632135272026062, 0.2194148302078247, 0.11271602660417557, 0.1559745818376541, 0.10229084640741348, 0.07066361606121063, -0.2517167329788208, -0.3276265561580658, 0.10119863599538803, 0.3798701763153076, -0.391361266374588, -0.03611881285905838, -0.4475092589855194, -0.5319844484329224, 0.2570918798446655, 0.3962774872779846, -0.5720648765563965, -0.04122494161128998, 0.11328456550836563, -0.5052240490913391, 0.24109148979187012, -0.06375283747911453, -0.1996406763792038, 0.16720528900623322, -0.2593322694301605, 0.9045582413673401, -0.4588429629802704, -0.3875909149646759, -0.04742861166596413, -0.37510567903518677, 0.006309592630714178, -0.021533194929361343, -0.9016001224517822, 0.7863985300064087, 0.4129820466041565, 1.1134872436523438, -0.07734309136867523, -0.2413206845521927, -0.8166792988777161, 0.3244643807411194, -0.3647679090499878, 0.4183066785335541, -0.6307380199432373, -0.32163748145103455, -0.0725797489285469, 0.014314640313386917, -0.3480550944805145, -0.5222216248512268, 0.3891929090023041, -0.6617939472198486, 0.2639226019382477, -0.40345579385757446, -0.6374955177307129, -0.3824461102485657, -0.023847615346312523, -0.5808635354042053, 1.2699655294418335, 0.11044686287641525, -0.6306957602500916, 0.7085673809051514, -0.47668707370758057, -0.6209936141967773, -0.17840473353862762, -0.027488959953188896, -0.5967261791229248, 0.5585301518440247, -0.37194639444351196, 0.4916161000728607, 0.1445685774087906, 0.255968302488327, -0.5025079846382141, -0.5405920743942261, 0.16187649965286255, -0.22505858540534973, 0.5174067616462708, 0.0713866651058197, -0.4057990610599518, 0.30090951919555664, -0.5606563091278076, -0.4059310257434845, 0.2999734878540039, -0.6342901587486267, -0.6311461925506592, 0.2638338506221771, -0.21245163679122925, 0.4490583539009094, 0.006884620524942875, -0.4069769084453583, 0.06952036917209625, -0.5749993324279785, 0.7674401998519897, 0.8076695203781128, 0.022304842248558998, 0.7784217000007629, -0.25870007276535034, 0.3606474995613098, 0.1918349415063858, -0.3008181154727936, -0.32553595304489136, 0.01015462540090084, -0.8418320417404175, -0.08985345810651779, 0.1342790424823761, 0.378186970949173, -0.7754721641540527, -0.2129492461681366, 0.059163399040699005, -0.049901753664016724, -0.05863716080784798, 0.22424867749214172, 0.6858549118041992, 0.7046115398406982, 0.22536839544773102, -0.5603770613670349, -0.48051121830940247, -0.6770956516265869, -0.1789463311433792, -0.3726232349872589, 0.11922784894704819, 0.058787330985069275, 0.7714223265647888, 0.24158792197704315, 0.5973145961761475, 0.04947946220636368, -0.07877956330776215, -0.3269537687301636, 0.23611725866794586, 0.09600185602903366, 0.345918744802475, 0.5201581716537476, -1.1003336906433105, -0.5537272095680237, -0.3407735526561737, -0.7367037534713745, 0.2585585415363312, -0.2854830324649811, 0.08763870596885681, 0.46337786316871643, 0.5843287706375122, -0.33620116114616394, 0.40694931149482727, 0.40429767966270447, -0.4582338035106659, 0.4462345838546753, -0.4724019467830658, -0.3810368776321411, -0.9760556221008301, -0.03413676843047142, -0.04861481487751007, -0.0653420016169548, -0.735967755317688, 0.11470191180706024, 0.45991629362106323, -0.03168961778283119, -0.4829653799533844, 0.7958149909973145, -0.7928009629249573, -0.0716664120554924, -0.29422274231910706, -0.2960662245750427, -0.2385706752538681, 0.9542443156242371, 0.09520510584115982, 0.7167885899543762, 0.7323923110961914, -0.8533027768135071, -0.15091121196746826, -0.28994134068489075, -0.09849964082241058, 0.3930305540561676, -0.4796825349330902, 0.26566845178604126, -0.452468603849411, 0.26996734738349915, -1.2554590702056885, -0.03457259014248848, 0.46035343408584595, -0.09411989897489548, 0.9244100451469421, -0.2923241853713989, -0.5798133015632629, -0.3838713467121124, -0.17828406393527985, 0.35587936639785767, 0.22007887065410614, -0.3928249776363373, 0.5431265830993652, 0.47132107615470886, -0.09502557665109634, -0.46624550223350525, -0.8452395796775818, 0.09197618812322617, -0.5217538475990295, -0.12630654871463776, 0.49300092458724976, -0.21980026364326477, -0.13200871646404266, 0.30743643641471863, -0.5773844718933105, -0.12898822128772736, 0.2536795437335968, 0.2891114354133606, 0.016864165663719177, -0.0444081574678421, 0.6512599587440491, 0.08307753503322601, -0.048824843019247055, -0.1662362813949585, -0.49875691533088684, 0.47596344351768494, -0.18453511595726013, -0.5095841288566589, -0.37445253133773804, 0.4951956868171692, 0.5611628890037537, -0.02938019298017025, 1.008984923362732, 0.4489157199859619, -0.5568976998329163, -0.43851134181022644, -0.35920026898384094, -0.371900737285614, -0.4007757902145386, 0.486771821975708, -0.5481541752815247, -0.9127307534217834, 0.6582440733909607, -0.058306921273469925, 0.15097446739673615, 0.17424459755420685, 0.7125168442726135, -0.3505202829837799, 0.9486098885536194, 0.8840031027793884, 0.03162205591797829, 0.8745917081832886, -0.20232848823070526, 0.2317860871553421, -0.8963387608528137, -0.16930554807186127, -0.28946617245674133, -0.7030856013298035, -0.0830787867307663, -0.3956429064273834, 0.29591959714889526, 0.34129539132118225, -0.3277151882648468, 0.3562548756599426, -0.17492368817329407, 0.14556492865085602, 0.699069082736969, 0.09168166667222977, 0.007666140794754028, 0.016945701092481613, -0.5680644512176514, 0.16281549632549286, -1.0085272789001465, -0.5034720301628113, 1.1413735151290894, 0.3963259160518646, 0.5342492461204529, -0.01979689858853817, 0.4929540455341339, 0.16125649213790894, 0.25064077973365784, -0.8245123624801636, 0.36760830879211426, -0.017939424142241478, -0.6651040315628052, -0.20814432203769684, -0.5418924689292908, -0.7414382100105286, 0.44033294916152954, 0.17570997774600983, -0.6086381077766418, 0.03074636310338974, 0.4068129360675812, -0.43903109431266785, 0.6676100492477417, -1.0367159843444824, 0.6918426156044006, -0.30701038241386414, -0.4975201487541199, -0.5055923461914062, -0.6603091955184937, 0.21739719808101654, -0.10983544588088989, 0.2415209263563156, -0.037892308086156845, -0.33832722902297974, 0.6925280094146729, -0.16386260092258453, 1.2657729387283325, -0.43111640214920044, 0.2332667112350464, 0.40623244643211365, 0.04741388559341431, 0.565219521522522, 0.00006514619599329308, -0.14693677425384521, -0.10376917570829391, 0.029256965965032578, -0.5745109915733337, -0.48547062277793884, 0.4084623456001282, -0.48544445633888245, -0.3777199983596802, -0.5274137258529663, -0.3358893394470215, -0.13600197434425354, 0.06242883577942848, -0.003225600579753518, 0.5634939670562744, -0.28901833295822144, 0.10810762643814087, 0.7934317588806152, -0.11052697151899338, 0.8387961387634277, 0.662563681602478, 0.20799896121025085, -0.04546728357672691, 0.7304917573928833, 0.47550705075263977, 0.4656915068626404, 0.5757886171340942, 0.30958810448646545, -0.09604854136705399, -0.673954427242279, -0.26980769634246826, 0.36398452520370483, -0.6198701858520508, -0.07670420408248901, -0.7031245231628418, -0.19493548572063446, -0.027636472135782242, -0.035314712673425674, -0.30748307704925537, -0.5381430983543396, -0.3212732970714569, -0.16470883786678314, -0.1249677762389183, 0.5334668159484863, 0.12241187691688538, 0.19929875433444977, -0.4188309907913208, 0.37668558955192566, 0.318457692861557, 0.33964160084724426, 0.30843332409858704, -0.612289547920227, -0.4485960602760315, 0.1045624241232872, -0.27445948123931885, -0.8924879431724548, 0.09585508704185486, 0.4110896587371826, 0.8192327618598938, 0.37020593881607056, -0.22326284646987915, 0.5918218493461609, -0.5851221680641174, 0.7056353688240051, 0.020389659330248833, -0.9432264566421509, 0.3327706456184387, -0.08949683606624603, 0.44465482234954834, 0.4069528579711914, 0.4244599938392639, -0.8434397578239441, -0.32960599660873413, -0.5737913250923157, -0.9613738059997559, 0.9756179451942444, -0.11295843124389648, 0.4630888104438782, -0.04875306040048599, 0.679634153842926, 0.09927249699831009, 0.42079588770866394, -0.9232330918312073, 0.04992358013987541, -0.02007777988910675, -0.03561972826719284, 0.20317040383815765, -0.6176356673240662, -0.12320885062217712, -0.13360796868801117, 0.683109700679779, -0.2850457429885864, 0.06905167549848557, -0.14163967967033386, -0.33773985505104065, -0.3660081624984741, 0.08852740377187729, 0.45316505432128906, 0.5766155123710632, -0.05242031067609787, 0.23790243268013, 0.4209093749523163, -0.15314076840877533, 0.010897439904510975, -0.3561626374721527, -0.2822988033294678, -0.35147824883461, 0.45203283429145813, 1.01925528049469, 1.0327682495117188, -0.684147834777832, 0.322250634431839, 0.05604365095496178, -0.1247192993760109, -0.347284197807312, -0.037054579704999924, 0.13438430428504944, 0.10482273995876312, 0.4266006052494049, 0.3465425372123718, -0.20205055177211761, -1.177348017692566, 0.3157854974269867, 0.6320679187774658, -0.7310066819190979, -0.8322736620903015, 0.6971616744995117, -0.2235584408044815, -0.33556485176086426, 0.631756603717804, -0.40298518538475037, -0.5453195571899414, 0.47342824935913086, 0.8006514310836792, 1.028024435043335, -0.29780328273773193, 0.0909707248210907, 0.3965039849281311, 0.07366055250167847, -0.3223923146724701, 0.37293604016304016, -0.3735908567905426, -0.8317350149154663, -0.1638498455286026, -0.6496152281761169, -0.18970952928066254, -0.21657653152942657, -0.6002534627914429, 0.21483303606510162, -0.675896167755127, -0.08412402123212814, -0.4034428894519806, 0.04131295531988144, -0.5266199707984924, -0.0965379923582077, 0.27550897002220154, 0.8014512658119202, -0.8651658296585083, 1.1118046045303345, 0.8754923939704895, -0.5706843733787537, -0.6623369455337524, -0.03123142197728157, 0.3309633433818817, -0.7262235283851624, 0.6003639698028564, 0.09201660007238388, -0.08918411284685135, -0.27040401101112366, -0.3699800670146942, -1.024512529373169, 0.9759303331375122, 0.2434013932943344, -0.2034704089164734, -0.4903643727302551, -0.49526581168174744, 0.4934786856174469, -0.25918227434158325, 0.027960045263171196, 0.19803112745285034, 0.23339727520942688, 0.5253685712814331, -0.87188321352005, -0.02430974505841732, -0.09763654321432114, -0.1546654850244522, 0.38890519738197327, -0.9753286838531494, 0.9979777932167053, -0.21446779370307922, -0.8178483247756958, -0.19567370414733887, 0.7085329294204712, 0.0016949180280789733, 0.34517455101013184, 0.6515388488769531, 0.5394216775894165, 0.752342700958252, 0.18290671706199646, 0.7883511185646057, -0.05092637613415718, 0.12323271483182907, 1.3112603425979614, -0.29588326811790466, 0.9299003481864929, 0.6215632557868958, -0.01660153642296791, 0.590189516544342, 0.5079775452613831, 0.30427995324134827, 0.5507646799087524, 0.10073038190603256, -0.10206229239702225, -0.048370491713285446, 0.08517340570688248, 0.183155357837677, 0.38159993290901184, 0.6264560222625732, -0.13021552562713623, -0.39928191900253296, 0.20173795521259308, 0.3490663170814514, 0.2378627359867096, -0.3016462028026581, 0.7876881957054138, 0.37000682950019836, -0.6380704641342163, 0.27812910079956055, 0.17085590958595276, 0.5224451422691345, -1.1335582733154297, 0.01351572573184967, -0.004885403905063868, 0.22164304554462433, 0.22333082556724548, -0.27480724453926086, 0.6028966307640076, -0.2574456036090851, -0.3719933331012726, -0.7867584824562073, 0.4586337208747864, -0.721646785736084, -0.4971635937690735, 0.49525153636932373, 0.232796311378479, -0.21557369828224182, -0.10067863017320633, -0.7494224905967712, -0.04302122816443443, -0.28179529309272766, -0.3022087514400482, 0.5420826077461243, 0.4523623585700989, -0.4104386270046234, 0.829718828201294, 0.4404117465019226, 0.20024634897708893, 0.06675087660551071, 0.11047909408807755, 0.8395574688911438, -0.4860336482524872, -0.537321925163269, -0.8835873603820801, 0.4753860533237457, 0.1489972323179245, -0.1667540818452835, 0.938768208026886, 0.5917806625366211, 1.1219141483306885, 0.2572285234928131, 0.4352910816669464, -0.07810734212398529, 0.41037046909332275, -0.6801291108131409, 0.4337124526500702, -0.8487986922264099, 0.1250583678483963, -0.1922036111354828, -0.5134567022323608, -0.2843381464481354, 0.31159844994544983, -0.18104027211666107, 0.05091621354222298, 0.9783833026885986, 0.6282857060432434, -0.20990131795406342, -0.29843246936798096, 0.15951357781887054, 0.16644324362277985, 0.20389552414417267, 0.8085618615150452, 0.6669963002204895, -0.17101606726646423, 0.38475748896598816, -0.08038496226072311, -0.3663104176521301, -0.11535783857107162, -0.7748532295227051, -1.003202199935913, -0.9838380813598633, -0.2822864353656769, -0.1499163657426834, -0.013952554203569889, 0.9453150629997253, 0.9059251546859741, -0.8466402292251587, -0.47882071137428284, -0.004748693201690912, 0.26931414008140564, -0.7080868482589722, -0.18216632306575775, 0.44650405645370483, -0.7868760824203491, -0.6828967332839966, 0.6753755807876587, 0.6175340414047241, 0.04463860020041466, -0.12091416120529175, 0.026714570820331573, -0.5105786323547363, 0.18085934221744537, 0.3414454162120819, 0.519524872303009, -0.6934739351272583, -0.18178217113018036, -0.2626950442790985, 0.047434646636247635, 0.013560807332396507, 1.2541569471359253, -0.7806277275085449, 0.6090502738952637, 0.5079403519630432, 0.34318822622299194, 0.7621040344238281, -0.20172502100467682, 0.6829082369804382, -0.8343449234962463, 0.5014183521270752, 0.37917619943618774, 0.44764503836631775, 0.2904961109161377, -0.20409315824508667, 0.26729997992515564, 0.3781737983226776, -0.19516918063163757, -0.9387913942337036, 0.3876294493675232, -0.44534215331077576, -0.6669930219650269, 0.8353234529495239, -0.02080357074737549, -0.21274933218955994, -0.12133417278528214, -0.04428181052207947, 0.5049176216125488, -0.19120097160339355, 0.8557026982307434, 0.8894686698913574, 0.08444470167160034, 0.037918075919151306, -0.5658676028251648, 0.5018579363822937, 0.5042158961296082, -0.018771972507238388, 0.026494359597563744, 0.09654750674962997, 0.34920114278793335, -0.21457885205745697, 0.758303701877594, -0.00448062876239419, -0.07316617667675018, -0.03660527989268303, -0.10991861671209335, -0.019147243350744247, -0.6954224109649658, -0.44410550594329834, 0.4915067255496979, -0.09294376522302628, -0.0695950910449028 ]
http://arxiv.org/abs/2405.18605v1
http://arxiv.org/pdf/2405.18605v1
BioBERT-based Deep Learning and Merged ChemProt-DrugProt for Enhanced Biomedical Relation Extraction
2024-05-28T21:34:01
2024-05-28T21:34:01
Bridget T. McInnes, Jiawei Tang, Darshini Mahendran, Mai H. Nguyen
cs.CL
cs.CL, cs.IR, q-bio.MN
This paper presents a methodology for enhancing relation extraction from biomedical texts, focusing specifically on chemical-gene interactions. Leveraging the BioBERT model and a multi-layer fully connected network architecture, our approach integrates the ChemProt and DrugProt datasets using a novel merging strategy. Through extensive experimentation, we demonstrate significant performance improvements, particularly in CPR groups shared between the datasets. The findings underscore the importance of dataset merging in augmenting sample counts and improving model accuracy. Moreover, the study highlights the potential of automated information extraction in biomedical research and clinical practice.
[ -0.24261005222797394, -0.354532927274704, 0.5507659912109375, -0.13553832471370697, -0.18871675431728363, 0.4577096700668335, -0.06568863242864609, -0.8205615282058716, 0.2110542505979538, 0.5715324878692627, -0.43766167759895325, -0.47813042998313904, -0.7668413519859314, 0.05032103508710861, -0.026859600096940994, 1.3443639278411865, 0.1904703974723816, 0.42276495695114136, -0.2759050130844116, -0.3107580840587616, -0.006030606105923653, -0.6292238235473633, -0.7096793055534363, -0.7719770073890686, 0.9421529769897461, -0.025373006239533424, 0.7073290944099426, 0.5434158444404602, 1.0766870975494385, 0.30627113580703735, -0.013657799921929836, 0.3494369089603424, -0.12891727685928345, 0.2853453457355499, -0.5646657347679138, 0.01709478534758091, -0.6908771991729736, 0.11469064652919769, 0.18633976578712463, 1.0289496183395386, 0.32406318187713623, -0.13696527481079102, 0.03323408216238022, 0.7704047560691833, -0.6393685936927795, 0.17442679405212402, -0.036448679864406586, 0.3778674006462097, 0.08519261330366135, -0.1435701847076416, -0.052597761154174805, -0.3840201795101166, 0.4385100305080414, -0.44897621870040894, 0.21912170946598053, -0.3579133450984955, 1.0440089702606201, 0.21052125096321106, -0.5851113200187683, -0.19970011711120605, -0.8014114499092102, 0.49701711535453796, -0.5417076945304871, 0.576722264289856, 0.0952160507440567, 0.2996233105659485, -0.2714289128780365, -1.0390375852584839, -0.4124939739704132, -0.24699340760707855, -0.40555790066719055, 0.2675188183784485, -0.1797274649143219, 0.1922444850206375, -0.00723402900621295, 0.4194731116294861, -0.35287120938301086, -0.2549518048763275, -0.9682575464248657, -0.2643510401248932, 0.6018062829971313, -0.0029777241870760918, 0.45922574400901794, -0.19434203207492828, -0.370414137840271, -0.04202442243695259, -0.5228170156478882, -0.05950162932276726, -0.036021746695041656, 0.2798813283443451, 0.07271067798137665, 0.7237640023231506, 0.14114969968795776, 0.46324238181114197, 0.04034963250160217, 0.41073888540267944, 0.5602991580963135, -0.7403155565261841, -0.4056507349014282, 0.4448322355747223, 1.3323191404342651, 0.24290917813777924, 0.30736419558525085, -0.1583087295293808, 0.2970503866672516, 0.020338067784905434, 0.16145381331443787, -0.8379461169242859, -0.9026813507080078, 0.6333633661270142, -0.5329629182815552, -0.43648338317871094, 0.19818691909313202, -1.0991244316101074, -0.5876151323318481, -0.49283140897750854, 0.2818048596382141, -0.8335903882980347, -0.2586306631565094, 0.03794153779745102, -0.414629727602005, 0.2591370940208435, 0.1828686147928238, -0.4742441177368164, 0.4464530050754547, 0.6083177924156189, 0.701232373714447, -0.28707456588745117, -0.06633015722036362, -0.909683346748352, 0.4470680058002472, 0.08976373821496964, 0.6091516017913818, -0.47764068841934204, -0.2913917303085327, -0.1744997650384903, 0.05418486148118973, -0.05128009617328644, -0.7264361381530762, 0.2572566866874695, -0.5969597101211548, 0.10300638526678085, -0.21092167496681213, -0.6190946698188782, 0.06540371477603912, -0.06955644488334656, -0.9320716261863708, 0.806037425994873, 0.19126975536346436, -0.7682028412818909, 0.39791810512542725, -0.5026348829269409, -0.6148656010627747, 0.16413241624832153, -0.3875325620174408, -0.49965032935142517, -0.2495339959859848, 0.2739112675189972, 0.6679985523223877, -0.15998829901218414, 0.4836646020412445, -0.5174281001091003, -0.002938157180324197, 0.44626909494400024, 0.3190624415874481, 0.9429880380630493, 0.4474520683288574, 0.012698006816208363, 0.17257735133171082, -0.7779906988143921, -0.3392312228679657, -0.3563096821308136, -0.3320375084877014, -0.49738600850105286, -0.2900075614452362, 0.13570722937583923, 0.5033946633338928, 0.21967285871505737, -0.6827178001403809, 0.4571213722229004, -0.32002538442611694, 0.4770876467227936, 0.3388945460319519, 0.3511074185371399, 0.5218155384063721, -0.03520123288035393, 0.19931736588478088, 0.3139432668685913, 0.06925418972969055, 0.14508680999279022, -0.296716570854187, -0.44273096323013306, -0.5543860197067261, 0.5598070621490479, 0.6551826596260071, -0.5660504102706909, 0.7560824155807495, -0.3165138065814972, -0.37287637591362, -0.5736218690872192, 0.46691617369651794, 0.44752514362335205, 0.561419665813446, 0.766011118888855, -0.43766701221466064, -0.4676332175731659, -0.8844071626663208, -0.2083187699317932, 0.07898449152708054, -0.22535942494869232, 0.23887178301811218, 0.5100705623626709, -0.5998625755310059, 0.9995833039283752, -0.6175966262817383, -0.3707694113254547, -0.29956990480422974, 0.14180298149585724, 0.3674841523170471, 0.7496140003204346, 0.5642372369766235, -0.6612692475318909, -0.47338739037513733, 0.4573739469051361, -1.0684361457824707, 0.03931094706058502, 0.09376650303602219, -0.2572687268257141, -0.45542779564857483, 0.649300754070282, -0.592359721660614, 0.3413768708705902, 0.19500471651554108, -0.04780788719654083, 0.13205601274967194, -0.17673128843307495, 0.20534390211105347, -1.2516876459121704, 0.30218446254730225, 0.35585975646972656, -0.13263770937919617, -1.0273420810699463, -0.2368837147951126, 0.21091867983341217, -0.18753258883953094, -0.7562187314033508, 0.3729340434074402, -0.39430513978004456, 0.24698041379451752, -0.05874716490507126, -0.11087536066770554, 0.23549766838550568, 0.30275216698646545, 0.07076862454414368, 0.2738262116909027, 0.3629087507724762, -0.5674618482589722, 0.5885124206542969, 0.4532853364944458, 0.1530645340681076, 0.35092607140541077, -0.7048702836036682, -0.12612633407115936, -0.2266625612974167, 0.38528287410736084, -0.9443239569664001, -0.4269501268863678, 0.5326069593429565, -0.49427443742752075, 0.4455031752586365, -0.16245916485786438, -0.3498939275741577, -0.015278586186468601, -0.5985536575317383, 0.4673575162887573, 0.36475127935409546, -0.4759853780269623, 0.6862983107566833, 0.31042298674583435, -0.33645692467689514, -0.6305925250053406, -0.7276028394699097, -0.09572140127420425, -0.1009821891784668, -0.3181982636451721, 0.5406599044799805, 0.2376488596200943, -0.14697609841823578, 0.30345505475997925, 0.03521105647087097, -0.49161508679389954, -0.6641531586647034, 0.2273884266614914, 0.5636787414550781, -0.011000706814229488, 0.33465829491615295, 0.31382691860198975, 0.10194990038871765, 0.09499851614236832, 0.19221922755241394, 0.3495253026485443, 0.24709458649158478, 0.27655908465385437, -0.4520142078399658, 0.3918682634830475, 0.7810462117195129, -0.4740722179412842, 0.9694855213165283, 0.7518356442451477, -0.413289874792099, 0.3132530748844147, -0.2730726897716522, -0.129258394241333, -0.45395323634147644, 0.19088058173656464, -0.177482470870018, -0.7313733696937561, 0.5338807106018066, -0.6568530201911926, -0.3451160192489624, 0.531258761882782, 0.282941997051239, -0.24159280955791473, 0.35680091381073, 0.5417665839195251, -0.36812880635261536, 0.19811353087425232, -0.3772188425064087, 0.40871670842170715, -1.12156081199646, -0.8107313513755798, -0.29431769251823425, -0.21653074026107788, -0.4405359923839569, -0.25979653000831604, 0.36494430899620056, 0.09231733530759811, -0.44569066166877747, 0.7438170313835144, -0.4449109137058258, 0.09183217585086823, 0.21673719584941864, 0.6499063968658447, 0.3445100784301758, 0.25705328583717346, -0.35343554615974426, -0.08146604895591736, -0.6278383135795593, 0.04755515605211258, 1.0114887952804565, 0.19967585802078247, 0.496482253074646, 0.176126167178154, 0.6903714537620544, 0.16391810774803162, 0.3123728632926941, -0.7730745673179626, 0.31056225299835205, -0.24540331959724426, -0.44868335127830505, -0.002039604354649782, -0.4065171480178833, -1.2816412448883057, -0.10886454582214355, -0.694974422454834, -0.6697209477424622, 0.838792622089386, -0.09626124799251556, -0.4886435270309448, -0.007348774932324886, -0.35397985577583313, 0.5682510733604431, -0.16788972914218903, -0.7557486891746521, -0.027392607182264328, -1.1918855905532837, 0.45643162727355957, -0.2908409833908081, 0.10155340284109116, 0.06170943006873131, -0.0043720765970647335, 0.6860135793685913, -0.5230579376220703, 0.5364469885826111, 0.4290933609008789, 0.10265735536813736, -0.011567839421331882, -0.0796457976102829, -0.017169665545225143, -0.30022674798965454, -0.09215192496776581, 0.3407643735408783, 0.03655048832297325, -0.25705280900001526, -0.6776713728904724, 0.7710722088813782, -0.820997953414917, 0.15144027769565582, -0.6662207841873169, -0.5030038952827454, -0.2057991325855255, 0.1290890872478485, 0.23183853924274445, 0.38741910457611084, 0.026468923315405846, 0.11774913966655731, 0.5188325047492981, -0.6074275374412537, 0.254860520362854, 0.2428957223892212, 0.009707257151603699, -0.9947690963745117, 0.7194235920906067, -0.2004023939371109, 0.08574317395687103, 0.3881688117980957, 0.0889381468296051, -0.21655017137527466, 0.1873011440038681, 0.12198711931705475, 0.5136551260948181, -0.5396892428398132, -0.26091909408569336, -0.9171255826950073, -0.6533841490745544, -0.7714836001396179, -0.0567406602203846, -0.3408283293247223, -0.18070998787879944, -0.13923543691635132, -0.027656247839331627, 0.6167678236961365, 0.6356302499771118, -0.16205400228500366, 0.17958177626132965, -1.4673255681991577, 0.39440399408340454, -0.05575939640402794, 0.12316881120204926, -0.16385148465633392, 0.05849897488951683, -0.27135124802589417, -0.5012763142585754, -0.21425457298755646, -1.3796319961547852, 0.5431733131408691, 0.30269908905029297, 0.5514082312583923, 0.37092602252960205, -0.16018334031105042, 0.4680030047893524, -0.4336231052875519, 0.5125910639762878, 0.3592451512813568, -0.7413597702980042, 0.727765679359436, -0.46527233719825745, -0.018028782680630684, 0.8069908022880554, 0.8667686581611633, -0.1576339155435562, -0.008598223328590393, -0.6846300959587097, -1.027214527130127, 0.2002898007631302, 0.4569576680660248, -0.4562355577945709, 0.24346879124641418, 0.616034209728241, -0.1686863899230957, 0.3414574861526489, -0.27813905477523804, -0.4153401255607605, 0.18104791641235352, -0.5381312370300293, 0.04289017617702484, 0.21294602751731873, -0.22925551235675812, -0.9827582240104675, 0.27741262316703796, 0.25109636783599854, 0.2520377039909363, 0.4690784811973572, -0.0913495272397995, 0.038218967616558075, 0.08862173557281494, 0.17017602920532227, 0.3645516335964203, -0.4184390604496002, 0.296011745929718, -0.22306610643863678, -0.7292076349258423, 0.10626975446939468, 0.5030685663223267, 0.5003218650817871, -0.24088753759860992, 0.7734357714653015, 0.14045554399490356, -0.0528307743370533, -0.5821812748908997, 0.43191102147102356, 0.04317587614059448, -0.4183058440685272, 0.16178658604621887, 0.10204386711120605, -0.031873419880867004, 0.5402944087982178, 0.13076657056808472, 0.2271304577589035, 0.5266278982162476, -0.6523882746696472, 0.8415669202804565, 0.313349187374115, -0.5910539031028748, -0.005510098300874233, 0.6260057091712952, 0.292721688747406, 0.00026302237529307604, 0.7407045960426331, 0.4156563878059387, -0.6712261438369751, 0.6153600215911865, 0.012424432672560215, 0.6957349181175232, -0.3268720209598541, 0.18946899473667145, 0.613116979598999, -0.03469694405794144, 0.28183507919311523, -0.0769910141825676, -0.3014276921749115, -0.7159831523895264, -0.5844505429267883, -0.4886077642440796, -0.43420347571372986, 0.4135734438896179, -0.6188347339630127, 0.2932566702365875, -0.44873756170272827, -0.11714892834424973, 0.500839114189148, 0.2979567348957062, -0.5073456764221191, 0.2980012893676758, -0.40955230593681335, 0.3426922857761383, -1.0591822862625122, 1.1546216011047363, 0.7639598846435547, -0.7560946345329285, -0.6112161874771118, -0.17129559814929962, -0.10349277406930923, -0.18616431951522827, 1.158340334892273, -0.13739651441574097, 0.09180843830108643, -0.34730029106140137, -0.2821916937828064, -0.5708861351013184, 0.8965050578117371, 0.27993279695510864, -0.5626674890518188, 0.32844048738479614, 0.2542242705821991, 0.7772453427314758, -0.3020576536655426, -0.045585114508867264, 0.8042039275169373, 0.3186695873737335, 0.41493064165115356, -0.5525559782981873, 0.2188906967639923, -0.7358354926109314, -0.42914730310440063, 0.4452040493488312, -0.34290581941604614, 0.8700045347213745, 0.0027036815881729126, 0.1864020973443985, -0.03922188654541969, 0.47898533940315247, 0.29558679461479187, 0.4992486238479614, 0.023403717204928398, 0.3325013518333435, 0.7259737849235535, 0.13986404240131378, 0.8087384104728699, -0.38784101605415344, 0.4216074049472809, 1.1637381315231323, -0.40558525919914246, 0.6180532574653625, 0.6130812764167786, -0.24008309841156006, 0.44611790776252747, 0.7507331371307373, -0.34035053849220276, 0.47414180636405945, 0.1193230077624321, -0.6773025989532471, -0.1276513785123825, -0.06728938966989517, -0.5713258981704712, 0.07065284997224808, 0.41581034660339355, -0.8831780552864075, -0.061932217329740524, -0.03465789183974266, 0.09608711302280426, -0.16008323431015015, 0.0006768369930796325, 0.854394793510437, 0.12493561953306198, -0.38488709926605225, -0.003476684680208564, -0.5727338790893555, 0.3498785197734833, -0.3006177544593811, -0.4694978892803192, 0.020729685202240944, 0.4188401997089386, -0.4391211271286011, -0.6583102345466614, 0.17962899804115295, -0.27808162569999695, 0.026126494631171227, 0.5274434089660645, 1.1523075103759766, -0.786280632019043, -0.5460599064826965, 0.6381060481071472, 0.5956131815910339, 0.13719956576824188, 0.29290375113487244, -0.6412601470947266, 0.05460546910762787, -0.2496557980775833, 0.1020250916481018, 0.37216058373451233, 0.22554917633533478, 0.3949885070323944, 0.27058014273643494, 0.8592494130134583, 0.4551565945148468, -0.47675222158432007, -0.1950971484184265, 1.2227085828781128, -0.5847333073616028, 0.145772784948349, -1.065517544746399, 0.44567835330963135, -0.5550758242607117, 0.029561102390289307, 0.48931506276130676, 0.6670312285423279, 0.3109327256679535, -0.1595466583967209, 0.9072899222373962, 0.2450624257326126, 0.20994096994400024, -0.2422090321779251, 0.8338378071784973, -0.3870950937271118, 0.24150845408439636, -0.5059038996696472, -0.9659044146537781, -0.6320464015007019, 0.5767886638641357, -0.05481654778122902, 0.04647558927536011, 0.9624211192131042, 0.4822387099266052, -0.3960812985897064, -0.3085084557533264, -0.02292962558567524, 0.01896609552204609, 0.46960538625717163, 0.7836532592773438, 0.3178294897079468, -0.7429013252258301, 0.13696134090423584, -0.3302140235900879, -0.332633376121521, 0.08319705724716187, -0.789552628993988, -1.133309245109558, -0.3999040722846985, -0.5146085619926453, -0.7221788763999939, 0.20735837519168854, 1.041704535484314, 0.4800718128681183, -0.7009548544883728, -0.0424443744122982, -0.0669269859790802, -0.34509629011154175, -0.19143959879875183, -0.2443041205406189, 0.7694175839424133, -0.13717421889305115, -0.5723559856414795, 0.281582772731781, 0.37565627694129944, -0.01307681854814291, -0.024839885532855988, -0.053415872156620026, -0.5093171000480652, 0.15764687955379486, 0.7144435048103333, 0.477047324180603, -0.0432140976190567, 0.17019465565681458, -0.14460450410842896, -0.21069666743278503, 0.09347345679998398, 0.9811776876449585, -1.0483695268630981, 0.40738779306411743, 0.6351876258850098, 0.8566454648971558, 0.5745993256568909, -0.0029364849906414747, 0.9318180680274963, -0.4979114532470703, 0.014936043880879879, 0.006227666512131691, 0.06311686336994171, 0.3037933111190796, -0.7872028350830078, 0.8024417757987976, 0.2969484329223633, -0.5280728340148926, -0.32539379596710205, 0.02863624505698681, -1.5025674104690552, -0.40215516090393066, 0.9940813183784485, 0.05203814059495926, -0.11580431461334229, -0.32211053371429443, -0.2364257276058197, 0.857191801071167, -0.3510400056838989, 0.4047378897666931, 0.3616984188556671, -0.7697387337684631, -0.22519636154174805, -0.4890565574169159, 0.6759013533592224, 0.11362958699464798, -0.9906204342842102, -0.22484324872493744, 0.3678582012653351, 0.25122159719467163, 0.2354474663734436, 0.3917633295059204, -0.25406888127326965, 0.2231438308954239, -0.34719911217689514, 0.06843067705631256, -0.09803054481744766, -0.4258025288581848, -0.28671008348464966, 0.1969446837902069, -0.6301224827766418, -0.06656524538993835 ]
http://arxiv.org/abs/2405.18572v1
http://arxiv.org/pdf/2405.18572v1
Low-rank finetuning for LLMs: A fairness perspective
2024-05-28T20:43:53
2024-05-28T20:43:53
Saswat Das, Marco Romanelli, Cuong Tran, Zarreen Reza, Bhavya Kailkhura, Ferdinando Fioretto
cs.LG
cs.LG, cs.AI, cs.CL
Low-rank approximation techniques have become the de facto standard for fine-tuning Large Language Models (LLMs) due to their reduced computational and memory requirements. This paper investigates the effectiveness of these methods in capturing the shift of fine-tuning datasets from the initial pre-trained data distribution. Our findings reveal that there are cases in which low-rank fine-tuning falls short in learning such shifts. This, in turn, produces non-negligible side effects, especially when fine-tuning is adopted for toxicity mitigation in pre-trained models, or in scenarios where it is important to provide fair models. Through comprehensive empirical evidence on several models, datasets, and tasks, we show that low-rank fine-tuning inadvertently preserves undesirable biases and toxic behaviors. We also show that this extends to sequential decision-making tasks, emphasizing the need for careful evaluation to promote responsible LLMs development.
[ -0.31214454770088196, -0.6046403050422668, 0.6139891743659973, -0.09335219860076904, -0.09853881597518921, -0.24151083827018738, -0.3072347939014435, -0.2194433957338333, -0.29994168877601624, 0.47409260272979736, -0.5450289845466614, -0.39824530482292175, -0.6610662937164307, -0.10137399286031723, -0.2612802982330322, 1.2168256044387817, 0.3662976920604706, 0.14432406425476074, -0.032377615571022034, -0.005648372694849968, -0.5631193518638611, -0.4498295783996582, -0.9465470314025879, -0.46915581822395325, 0.8383843302726746, 0.7905202507972717, 0.8419249057769775, 0.6866341829299927, 0.48095694184303284, 0.19304658472537994, -0.28745144605636597, 0.07343685626983643, -1.107892632484436, -0.12789037823677063, -0.2962626516819, -0.9356001615524292, -0.5618609189987183, 0.42049160599708557, 0.624579906463623, 1.0650287866592407, -0.10214970260858536, 0.2891901433467865, 0.36522677540779114, 0.9236944317817688, -0.8602242469787598, -0.176723912358284, -0.7947558164596558, 0.25334715843200684, -0.4446438252925873, -0.3186907172203064, -0.5381813049316406, -0.3514915108680725, -0.08311864733695984, -0.5948102474212646, -0.07483796775341034, 0.06826160848140717, 0.6141232252120972, 0.70850670337677, -0.28305381536483765, -0.03660372644662857, -0.6296970248222351, 1.1092959642410278, -0.9542627334594727, 0.21666939556598663, 0.359784871339798, 0.3055831789970398, -0.3803512454032898, -0.37440207600593567, -0.32456037402153015, -0.19883255660533905, -0.03802792355418205, 0.007849622517824173, 0.17755910754203796, 0.3382696211338043, 0.5838074684143066, 0.39215588569641113, 0.03576022386550903, 0.8294114470481873, -0.31876564025878906, -0.1442968249320984, 0.5884602069854736, 0.32831668853759766, -0.006362283136695623, -0.20639094710350037, -0.09017732739448547, 0.048979777842760086, -1.118463397026062, 0.11327552795410156, 0.5176645517349243, 0.6475852727890015, -0.061955634504556656, 0.5013898611068726, -0.2994003891944885, 0.590593695640564, 0.22220495343208313, -0.0579911544919014, -0.011523601599037647, -0.29644039273262024, -0.4342495799064636, -0.0248524472117424, 0.47917795181274414, 0.7285596132278442, 0.5458416938781738, -0.1496427059173584, -0.1432461440563202, 0.16004851460456848, 0.08390665054321289, -0.8345434665679932, -0.30204713344573975, -0.00961233675479889, -0.7905446887016296, -0.6026304364204407, -0.33927643299102783, -0.7110092043876648, -0.5284412503242493, -0.5779733061790466, 0.3524552881717682, 0.03896649181842804, 0.02218567579984665, 0.055353306233882904, 0.2294224500656128, 0.33389487862586975, 0.4411271810531616, -0.8993415832519531, 0.5627809166908264, 0.7390308380126953, 0.6617328524589539, -0.4481809735298157, -0.1005871593952179, -0.9758601188659668, 0.006457666866481304, -0.471687912940979, 0.5802370309829712, -0.4178692400455475, -0.2659059464931488, -0.3590555787086487, 0.04829944670200348, 0.01696440577507019, -0.8203577995300293, 0.7098710536956787, -0.23440344631671906, -0.11478091776371002, -0.29980704188346863, -0.29698312282562256, 0.3858943581581116, 0.002563586924225092, -0.4119543433189392, 0.8217276334762573, -0.22309811413288116, -0.6400842666625977, 0.5298442840576172, -0.5544765591621399, -0.4352683424949646, -0.38589173555374146, -0.028304066509008408, -0.39916369318962097, 0.38531163334846497, 0.07908335328102112, 0.5946791172027588, -0.082827128469944, -0.0976053774356842, -0.5336285829544067, -0.7322574257850647, 0.04241335391998291, -0.6133538484573364, 0.690525472164154, 0.5323917865753174, -0.12467934191226959, -0.0008881362155079842, -0.43476763367652893, 0.16343830525875092, -0.1523120254278183, -0.40305596590042114, -0.5827277302742004, 0.20922799408435822, -0.04093409329652786, 0.4261959493160248, -0.014346773736178875, -0.2870747447013855, -0.019661618396639824, -0.5706901550292969, 0.4796638786792755, 1.1181821823120117, -0.037322741001844406, 0.8254178166389465, -0.6859977841377258, 0.18404468894004822, 0.07124371826648712, 0.4927602708339691, 0.4191819131374359, -0.14348000288009644, -0.8456963896751404, -0.019058289006352425, 0.548214316368103, 0.5286662578582764, -0.5382465720176697, 0.19703269004821777, -0.3736579120159149, -0.3410657048225403, -0.7340276837348938, 0.10927891731262207, 0.47429680824279785, 0.2649683952331543, 0.24998141825199127, -0.14169996976852417, -0.09685857594013214, -0.9453262686729431, -0.4121795892715454, 0.25138410925865173, 0.00532405124977231, 0.3096593916416168, 0.17839257419109344, -0.051284898072481155, 0.7157770991325378, -0.2917881906032562, -0.4299703538417816, 0.14068210124969482, -0.07951052486896515, 0.1336267739534378, 0.7233215570449829, 0.6358523964881897, -0.5000985860824585, -0.2987358868122101, -0.2061232179403305, -0.4656025469303131, -0.26347842812538147, 0.03354756534099579, -0.30374854803085327, 0.22407253086566925, 0.7638999819755554, -0.2149110734462738, 0.26630592346191406, 0.44458284974098206, 0.028163250535726547, 0.24902565777301788, -0.15328764915466309, 0.20127928256988525, -0.6710836291313171, -0.07859715819358826, -0.06498918682336807, -0.3978569805622101, -0.5822785496711731, -0.07225437462329865, -0.2580169439315796, 0.11056351661682129, -0.6925756931304932, 0.5718871355056763, -0.2711585462093353, -0.1907813549041748, -0.2657635807991028, 0.13619861006736755, -0.26173970103263855, 0.27147865295410156, -0.3260931074619293, 0.7934209704399109, 0.2509399652481079, -0.7477143406867981, -0.3764024078845978, -0.008825413882732391, -0.2824685275554657, 0.8259645104408264, -0.32219988107681274, 0.11130671948194504, -0.22988033294677734, -0.17026863992214203, -0.6509246826171875, 0.14580616354942322, 0.27794399857521057, -0.17952397465705872, 0.2636459767818451, -0.5599936246871948, -0.5305885672569275, -0.027312781661748886, -0.3835197389125824, 0.3665354251861572, 0.7443749308586121, -0.4219342768192291, -0.024992860853672028, 0.6504014730453491, -0.3538385033607483, -0.5372037887573242, -0.7740729451179504, -0.22035416960716248, -0.5558823347091675, -0.11020192503929138, 0.25219547748565674, -0.2813679873943329, -0.333375483751297, -0.34998050332069397, -0.18749624490737915, 0.10116180777549744, 0.5249961614608765, 0.1548663228750229, -0.13819539546966553, 0.006073639262467623, -0.07709988206624985, 0.2887260317802429, -0.18653446435928345, -0.0204808097332716, 0.16230793297290802, 0.32357415556907654, -0.06694762408733368, -0.18946897983551025, -0.403696209192276, 0.12642662227153778, 0.44576334953308105, 0.06935673952102661, 0.3749082088470459, 0.1714414656162262, -0.4618034064769745, -0.4054856598377228, -0.2881268858909607, -0.2866244912147522, -0.527052640914917, 0.2333691269159317, -0.21015335619449615, -0.8113921284675598, 0.5804119110107422, -0.35558781027793884, 0.09648710489273071, 0.3742198944091797, 0.5866475105285645, -0.41723039746284485, 1.1339253187179565, 0.5884433388710022, -0.09917561709880829, 0.6004064679145813, 0.034570928663015366, 0.04275074973702431, -0.6935017108917236, 0.18597416579723358, -0.5409904718399048, -0.6319150924682617, -0.9372692108154297, -0.25945985317230225, 0.30034589767456055, 0.27234774827957153, -0.42918652296066284, -0.3742019832134247, -0.37249279022216797, 0.8116340041160583, 0.46169722080230713, 0.26931998133659363, 0.5405660271644592, 0.09227955341339111, 0.09672247618436813, -0.28781628608703613, -0.7316174507141113, -0.5372427701950073, 0.9917774796485901, 0.4640035331249237, 1.0130053758621216, -0.02894539386034012, 0.8122720122337341, 0.3338649272918701, 0.43666332960128784, -0.8718070983886719, 0.48122790455818176, -0.6129226684570312, -0.3456575870513916, -0.5999637246131897, -0.6690121293067932, -0.9043359160423279, 0.19261428713798523, -0.2909161448478699, -0.41746005415916443, 0.35779690742492676, 0.35083499550819397, -0.561713695526123, 0.12842142581939697, -0.8277800679206848, 0.8780467510223389, -0.21473298966884613, -0.3848886787891388, -0.42214033007621765, -0.6456244587898254, 0.3313955068588257, -0.028033284470438957, 0.45472297072410583, -0.4898412525653839, 0.19207419455051422, 0.9493427872657776, -0.4373895823955536, 0.9039499163627625, -0.5227368474006653, -0.2311464548110962, -0.2104250192642212, 0.13947564363479614, 0.44209015369415283, 0.16157351434230804, -0.22495199739933014, 0.038758616894483566, 0.2155967354774475, -0.5042290687561035, -0.41910961270332336, 1.017500400543213, -0.6815913319587708, -0.4260934591293335, -0.2494647055864334, -0.37304818630218506, -0.3828619122505188, 0.43558093905448914, 0.1607450246810913, -0.08446243405342102, -0.04515078663825989, 0.018143150955438614, 0.7541888952255249, -0.22485847771167755, 0.22407576441764832, 0.4631621241569519, -0.024044964462518692, 0.024782124906778336, 0.8772436380386353, 0.3102127015590668, 0.5497093200683594, -0.0387212336063385, 0.17846578359603882, 0.09467430412769318, -1.0099960565567017, -0.09182005375623703, 0.05717295780777931, -0.7109768390655518, -0.3297731876373291, -0.13462376594543457, -0.08640260994434357, -0.07589354366064072, -0.15477347373962402, -0.6016451716423035, -0.3839641511440277, -0.2832566797733307, -0.04515330493450165, 0.1956590861082077, 0.639379620552063, -0.14972853660583496, 0.45802468061447144, -0.40385255217552185, 0.2609822750091553, 0.3176402449607849, 0.6954659819602966, -0.05453026294708252, -0.618156373500824, -0.2551099956035614, 0.3672911822795868, -0.11262903362512589, -0.30200880765914917, -0.0020320063922554255, 0.27185776829719543, 0.7190805077552795, 0.13113167881965637, 0.17547689378261566, 0.6847302913665771, -0.6745557188987732, 0.44987374544143677, -0.07023689150810242, -0.8142028450965881, 0.4410404860973358, -0.4728177487850189, 0.1846589297056198, 1.0535602569580078, 0.10549481213092804, -0.5149844884872437, -0.47100579738616943, -0.15434803068637848, -0.7301908731460571, 0.882175862789154, 0.1546686887741089, 0.17191903293132782, 0.019428659230470657, 0.5565118193626404, 0.20797911286354065, 0.20047585666179657, -0.8339401483535767, -0.5029385089874268, 0.028233777731657028, -0.16457253694534302, -0.15160591900348663, -0.21439175307750702, -0.15896333754062653, -0.37852323055267334, 0.42911142110824585, -0.12884241342544556, 0.16070815920829773, -0.2852590084075928, -0.4523470997810364, -0.23158305883407593, 0.5451977849006653, 0.6914244294166565, 0.40706905722618103, -0.3749035894870758, 0.22635109722614288, 0.3525189161300659, -0.25874894857406616, 0.15152694284915924, 0.04350349307060242, -0.19202430546283722, -0.49323028326034546, -0.0916808545589447, 0.5604296326637268, 0.6194807291030884, -0.42745262384414673, 0.5438682436943054, 0.09753257036209106, -0.015984458848834038, 0.06949581205844879, 0.17520883679389954, -0.19659119844436646, 0.13943032920360565, 0.09605969488620758, 0.2864702045917511, 0.31510239839553833, -0.464087575674057, 0.2129719853401184, 0.5269683003425598, -0.3376145660877228, -0.06478062272071838, 0.6179670691490173, 0.2632002532482147, 0.10564529895782471, 0.5336728096008301, -0.12732014060020447, -0.029366806149482727, 0.4511643648147583, 0.12301529198884964, 0.4181804656982422, -0.07642634212970734, 0.03474532440304756, -0.05546525493264198, 0.3976593315601349, -0.27822256088256836, 0.04582030326128006, 0.10911768674850464, -0.5835124254226685, -0.5191233158111572, -0.7014373540878296, -0.2792412042617798, 0.08077937364578247, -0.7204071283340454, 0.4201269745826721, -0.6260954737663269, -0.1897660493850708, 0.012967666611075401, 0.030665777623653412, -0.7688227891921997, 0.033002350479364395, 0.4284486770629883, 0.766086995601654, -0.9381890296936035, 0.6590017676353455, 0.2813008427619934, -0.22558146715164185, -0.47632136940956116, 0.1434016078710556, -0.09049681574106216, -0.8008849024772644, 0.720320463180542, -0.042991410940885544, -0.13561974465847015, 0.2810848355293274, -0.5472475290298462, -0.8181387782096863, 0.88478022813797, 0.8043319582939148, -0.6355695128440857, -0.2670321762561798, 0.23630499839782715, 0.5091456174850464, 0.023713434115052223, 0.1417137086391449, 0.7861760258674622, 0.47182968258857727, -0.1846483200788498, -1.3578886985778809, 0.07761579751968384, 0.10127351433038712, -0.021738512441515923, 0.11460152268409729, -0.6160748600959778, 0.9370555281639099, -0.29745057225227356, -0.3265913128852844, -0.013820154592394829, 0.1884317696094513, 0.21844683587551117, 0.10817454755306244, 0.6334668397903442, 0.5254126787185669, 0.8003857731819153, -0.1161174550652504, 0.9086951017379761, 0.14190657436847687, 0.39570072293281555, 1.0304750204086304, -0.33159002661705017, 0.7748429775238037, 0.5570565462112427, -0.14675994217395782, 0.07723824679851532, 0.8084020018577576, 0.20499680936336517, 0.9688504934310913, 0.5026558041572571, 0.21098558604717255, -0.4162910580635071, -0.010996587574481964, -0.35097283124923706, 0.20313365757465363, 0.461776465177536, -0.20062170922756195, -0.4366479218006134, 0.20269989967346191, 0.15931901335716248, -0.01947043649852276, -0.9035356044769287, 0.870589017868042, 0.36611321568489075, -0.47327786684036255, 0.695095419883728, -0.015517979860305786, 1.0044609308242798, 0.008451385423541069, 0.020165011286735535, -0.3562510013580322, 0.2994154989719391, -0.32059770822525024, -0.8712737560272217, 0.2907165586948395, -0.3043012320995331, -0.32037097215652466, -0.36778491735458374, 0.5967501401901245, -0.2897684872150421, -0.20313210785388947, 0.22031985223293304, 0.6012153625488281, 0.1323881894350052, 0.07656015455722809, -0.6929749846458435, -0.034147340804338455, -0.3401453495025635, -0.19075684249401093, 0.6253132820129395, 0.36288321018218994, -0.33077603578567505, 0.5529125332832336, 0.4730786979198456, 0.2879972755908966, 0.15534131228923798, 0.1284843534231186, 0.7657711505889893, -0.5578216910362244, -0.5129975080490112, -0.7536759376525879, 0.3840893507003784, 0.1060035303235054, 0.04233045130968094, 0.5388210415840149, 0.45677125453948975, 0.9793592095375061, -0.04485573247075081, 0.7763688564300537, 0.2746376693248749, 0.5588638186454773, -0.9562161564826965, 0.9949093461036682, -0.5685610175132751, 0.3841231167316437, -0.28739452362060547, -0.8088338971138, -0.33979475498199463, 0.5991122126579285, -0.6209118962287903, 0.23737598955631256, 0.4869770109653473, 0.6608319282531738, -0.26402273774147034, -0.4463476538658142, 0.46761417388916016, 0.38584405183792114, 0.1538623720407486, 0.6319217085838318, 0.8427624106407166, -0.42646655440330505, 0.2739211916923523, -0.1420254409313202, -0.16621331870555878, -0.3238165080547333, -0.9396907091140747, -0.9483809471130371, -0.07348329573869705, -0.10602432489395142, -0.1469382792711258, 0.32376816868782043, 0.8587602376937866, 0.8069297671318054, -0.8346526026725769, -0.14193399250507355, 0.0720028206706047, 0.3498832881450653, -0.14566825330257416, -0.20292317867279053, 0.10001028329133987, -0.4650554060935974, -0.785868763923645, 0.2544972002506256, -0.02232508733868599, 0.09782378375530243, 0.0496765598654747, -0.195121631026268, 0.05889570340514183, -0.04079063609242439, 0.7214840054512024, 0.266983300447464, -0.5453569889068604, -0.4655013680458069, -0.28995662927627563, -0.27609559893608093, 0.04609173908829689, 0.6774811148643494, -0.8218902349472046, -0.0034007898066192865, 0.26249223947525024, 0.41870951652526855, 0.2841512858867645, -0.1296086460351944, 0.4311116933822632, -0.8038687109947205, 0.2733607590198517, 0.20519602298736572, 0.13438846170902252, 0.17595802247524261, -0.3902119994163513, 0.27947551012039185, -0.032395169138908386, -0.6483427882194519, -1.228881597518921, 0.19953607022762299, -0.8477906584739685, -0.1818895936012268, 0.9951390027999878, 0.3259860575199127, -0.10939911752939224, -0.04913228750228882, -0.06564454734325409, 0.14286834001541138, -0.29204845428466797, 0.8050171136856079, 0.5333636403083801, -0.18584240972995758, -0.2107192873954773, -0.8933730125427246, 1.0944839715957642, 0.621703565120697, -1.000357985496521, 0.44862425327301025, 0.5749832391738892, 0.47612202167510986, -0.321615993976593, 0.7503084540367126, -0.1417599469423294, 0.253475159406662, -0.6263087391853333, -0.33488863706588745, 0.1350996047258377, -0.27656883001327515, -0.48857709765434265, -0.14309337735176086, 0.5250213146209717, 0.08925577253103256 ]
http://arxiv.org/abs/2407.00039v1
http://arxiv.org/pdf/2407.00039v1
Decoding moral judgement from text: a pilot study
2024-05-28T20:31:59
2024-05-28T20:31:59
Diana E. Gherman, Thorsten O. Zander
q-bio.NC
q-bio.NC, cs.CL, cs.HC
Moral judgement is a complex human reaction that engages cognitive and emotional dimensions. While some of the morality neural correlates are known, it is currently unclear if we can detect moral violation at a single-trial level. In a pilot study, here we explore the feasibility of moral judgement decoding from text stimuli with passive brain-computer interfaces. For effective moral judgement elicitation, we use video-audio affective priming prior to text stimuli presentation and attribute the text to moral agents. Our results show that further efforts are necessary to achieve reliable classification between moral congruency vs. incongruency states. We obtain good accuracy results for neutral vs. morally-charged trials. With this research, we try to pave the way towards neuroadaptive human-computer interaction and more human-compatible large language models (LLMs)
[ -0.12450432032346725, -0.7771426439285278, 0.7789806127548218, 0.30903056263923645, -0.5934032797813416, -0.21326865255832672, -0.2264319658279419, -0.5309622883796692, -0.11995109915733337, 0.460645854473114, -0.3733396828174591, -0.30111098289489746, -0.5230545997619629, 0.22018077969551086, -0.4233344793319702, 0.9689378142356873, 0.3927808105945587, 0.39592042565345764, -0.2297326624393463, -0.2050323486328125, -0.40963980555534363, -0.8226456046104431, -0.9913726449012756, -0.41628575325012207, 0.36998602747917175, 0.32677406072616577, 0.30022305250167847, 0.0735255777835846, 0.656123697757721, 0.3176925778388977, -0.28019535541534424, -0.15722425282001495, -0.4129132330417633, -0.11930596828460693, -0.45518916845321655, -0.6147911548614502, -0.6458306312561035, 0.2981400787830353, 0.16171234846115112, 0.20840968191623688, -0.16247978806495667, 0.0713534951210022, 0.09577386826276779, 0.6410201787948608, -0.8347428441047668, 0.0800071731209755, -0.40396058559417725, 0.20442937314510345, 0.3281581699848175, -0.34725895524024963, -0.8385874032974243, -0.45688512921333313, 0.07874514162540436, -0.511813759803772, -0.03652479872107506, 0.06204601004719734, 0.6887735724449158, 0.3041824996471405, -0.9024551510810852, -0.3850114345550537, -0.5457004904747009, 0.8685818314552307, -0.8137835264205933, 0.2430008202791214, 0.9198951125144958, -0.25166967511177063, 0.17564712464809418, -0.6347664594650269, -0.8475616574287415, -0.290384441614151, -0.20238344371318817, 0.427057147026062, -0.06490897387266159, 0.40023404359817505, 0.3654795289039612, 0.28389304876327515, 0.03198297694325447, -0.15382981300354004, -0.12708769738674164, -0.1954430788755417, 0.5443955063819885, 0.10213807970285416, 0.5474153757095337, -0.5571895241737366, -0.23142623901367188, -0.3583917021751404, -0.25088250637054443, 0.5540276765823364, 0.6681866645812988, 0.04207183048129082, -0.1771722286939621, 0.6616690158843994, 0.1908847689628601, 0.37202733755111694, 0.31154167652130127, 0.19549889862537384, 0.257760614156723, -0.44517025351524353, -0.3626704812049866, 0.2682693898677826, 0.8489612936973572, 0.7767246961593628, 0.6087058186531067, 0.36380255222320557, -0.2385302484035492, 0.2632391154766083, 0.6790180206298828, -0.8181606531143188, -0.07652194052934647, 0.2928151786327362, -0.766643762588501, -0.7132696509361267, -0.008890397846698761, -0.46455901861190796, -0.6223523616790771, -0.28227144479751587, 0.3616349399089813, -0.6642934679985046, -0.1118961051106453, 0.5116651058197021, -0.27549800276756287, 0.46360012888908386, 0.3342849612236023, -0.6381184458732605, 0.1758912205696106, 0.5001290440559387, 0.5184544920921326, 0.028338754549622536, 0.12204025685787201, -0.5942099094390869, -0.22428596019744873, -0.024929428473114967, 0.60713791847229, -0.44819340109825134, -0.3704424500465393, -0.10663928836584091, 0.21356169879436493, 0.2946447432041168, -0.21152544021606445, 1.2583974599838257, -0.53122478723526, 0.21022745966911316, -0.19887332618236542, -0.32054805755615234, -0.35916996002197266, 0.27685973048210144, -0.6498048305511475, 0.29554256796836853, -0.3841853439807892, -0.7815790772438049, 0.28713929653167725, -0.4025591313838959, -0.7322685122489929, -0.1421363204717636, -0.05590619146823883, -0.3562130630016327, 0.284023642539978, -0.04816959798336029, 0.3057156801223755, -0.10004468262195587, 0.27408576011657715, -0.16044403612613678, -0.4916950762271881, 0.4377082586288452, -0.7364959120750427, 1.043918251991272, -0.0056640165857970715, -0.411908358335495, -0.02279427833855152, -0.5959905385971069, 0.1297260969877243, 0.06417077779769897, -0.42514973878860474, -0.6352688074111938, 0.34741660952568054, 0.24097949266433716, 0.0434393547475338, 0.34273096919059753, -0.7830963730812073, -0.05266957730054855, -0.2714707851409912, 0.44602009654045105, 0.8298159837722778, 0.017208263278007507, 0.364184707403183, -0.04400968551635742, 0.17830947041511536, 0.011941705830395222, 0.43603217601776123, 0.015604859218001366, -0.3990902602672577, -0.6616995930671692, -0.05470751225948334, -0.0742524042725563, 0.7339363694190979, -0.47964805364608765, 0.645668089389801, 0.2086881697177887, -0.12057811766862869, -0.2523874342441559, -0.4293944835662842, 0.719275176525116, 0.3951185941696167, 0.4756735861301422, -0.3155606687068939, -0.2541644871234894, -0.8964228630065918, -0.5287172794342041, -0.5003568530082703, -0.07921410351991653, 0.6328957080841064, 0.4333977699279785, 0.022355781868100166, 0.625737726688385, -0.2819101810455322, -0.4401688277721405, 0.07334151118993759, 0.356839656829834, 0.26135802268981934, 0.5102027058601379, 0.28705498576164246, -1.167921781539917, -0.07665907591581345, 0.12377040833234787, -0.9594639539718628, -0.037144891917705536, -0.1800643652677536, 0.0774010643362999, -0.23510253429412842, 0.6717978119850159, -0.07321659475564957, 0.6039111018180847, 0.4255317151546478, -0.9878401160240173, 0.4448814392089844, -0.2523155212402344, 0.7031605243682861, -0.5897297859191895, -0.04735400527715683, -0.22511179745197296, -0.2734396457672119, -0.35341528058052063, -0.39056622982025146, 0.38518038392066956, 0.3603661060333252, -0.5638721585273743, 0.18219546973705292, -0.1620057225227356, 0.12482570111751556, -0.3616265058517456, 0.062182165682315826, 0.10155634582042694, 0.5681002140045166, 0.03011377342045307, 0.6687612533569336, 0.17917586863040924, -0.4840935468673706, 0.28236836194992065, 0.4729972183704376, -0.22313392162322998, 1.0486230850219727, -0.7853535413742065, 0.20400196313858032, -0.3824816644191742, 0.11174119263887405, -0.8466452956199646, -0.22415846586227417, 0.06537927687168121, -0.41663578152656555, -0.015329618006944656, -0.2947046160697937, -0.2762148082256317, 0.06705515831708908, -0.27121299505233765, 0.7664929032325745, 0.458820104598999, -0.4531598687171936, 0.6585299372673035, 0.4153618812561035, -0.12671330571174622, -0.5405197739601135, -0.8281786441802979, 0.21049797534942627, -0.04415392130613327, -0.2033376842737198, 0.24220409989356995, -0.12254055589437485, -0.3841910660266876, -0.13965456187725067, -0.019040772691369057, -0.07996063679456711, 0.10183615237474442, 0.511203408241272, 0.22299133241176605, 0.20421013236045837, 0.11717262864112854, 0.2332768440246582, 0.032364621758461, 0.4026124179363251, 0.032951317727565765, 0.2801787853240967, -0.5659103393554688, -0.34018316864967346, -0.5940471887588501, 0.37127795815467834, 0.7487766742706299, -0.21949830651283264, 0.32075005769729614, 0.03669169172644615, -0.5663058757781982, 0.026860950514674187, -0.41795071959495544, -0.26353874802589417, -0.5095284581184387, 0.1400676667690277, -0.16565744578838348, -0.7479996681213379, 0.18619482219219208, -0.055293336510658264, -0.20319455862045288, 0.14780063927173615, 0.40908730030059814, -0.32629695534706116, 1.0736987590789795, 0.7268810868263245, 0.3651130497455597, 0.844911515712738, -0.10455628484487534, 0.03312978893518448, -0.7890505790710449, -0.2489253282546997, -0.3394181728363037, -0.5078833699226379, -0.28662359714508057, 0.027863753959536552, 0.42272794246673584, 0.21993087232112885, -0.3467012941837311, 0.1401498019695282, -0.664950966835022, 0.7328035831451416, 0.30908164381980896, 0.5773113369941711, 0.6289244890213013, 0.08217330276966095, -0.3389144241809845, -0.18168042600154877, -0.07362499088048935, -0.667926549911499, 0.8880347013473511, -0.10097787529230118, 0.5343146920204163, 0.09583551436662674, 0.29943400621414185, 0.5747897028923035, 0.5915766954421997, -0.923500120639801, 0.7219135165214539, -0.47563305497169495, -0.4485933482646942, 0.05574766546487808, -0.40743523836135864, -0.9585855603218079, 0.08292315900325775, -0.43843358755111694, -0.5964232087135315, 0.6331784725189209, -0.1505638211965561, -0.27089107036590576, 0.1560434103012085, -0.8832367062568665, 0.8476506471633911, -0.6055310368537903, -0.6152914762496948, -0.6598086357116699, -0.6534385085105896, 0.34137627482414246, -0.025586526840925217, 0.15808112919330597, -0.02937522903084755, 0.05849209427833557, 0.7771027088165283, -0.21378584206104279, 0.9201980233192444, -0.026670895516872406, -0.13951024413108826, 0.1851891130208969, 0.04608231782913208, 0.4002744257450104, 0.2208651453256607, -0.3086211383342743, 0.08828336000442505, -0.09388230741024017, -0.21449144184589386, -0.5378066897392273, 0.46185630559921265, -0.7944028973579407, -0.16739040613174438, -0.5468321442604065, -0.265042781829834, -0.1986437737941742, 0.30469030141830444, 0.2999885380268097, 0.3014102876186371, -0.5290967226028442, 0.2565232217311859, 0.5684592723846436, -0.43369677662849426, 0.4355364739894867, 0.6532436609268188, 0.005971613805741072, -0.749312698841095, 0.659801721572876, -0.4781917631626129, 0.06879644840955734, 0.2406185269355774, 0.23439690470695496, -0.17390508949756622, -0.42700907588005066, -0.025851456448435783, 0.19813278317451477, -0.6300529837608337, -0.0745958462357521, -0.5301477313041687, 0.16532175242900848, 0.14570003747940063, -0.4290503263473511, -0.3016767203807831, -0.17043092846870422, -0.2932486832141876, -0.28232648968696594, 0.31505754590034485, 0.8376832604408264, 0.007357167545706034, 0.2748066186904907, -0.7012153267860413, 0.5887996554374695, 0.43697917461395264, 0.484559029340744, -0.22892802953720093, -0.45126351714134216, -0.021335355937480927, 0.13319775462150574, -0.13162201642990112, -0.9746260046958923, 0.24376502633094788, -0.12285786122083664, 0.07920437306165695, 0.5866045951843262, 0.3631313443183899, 0.3285626769065857, -0.32938051223754883, 0.6136220693588257, 0.46512508392333984, -1.205377221107483, 0.6233605742454529, -0.3707641065120697, 0.06125621870160103, 0.8115873336791992, 0.15446050465106964, -0.3706294000148773, -0.26288601756095886, -0.6230618953704834, -0.8181979656219482, 0.8004457354545593, 0.48059988021850586, 0.25410333275794983, -0.08362378180027008, 0.5800724625587463, -0.11653797328472137, 0.32736915349960327, -0.707593560218811, -0.07956698536872864, -0.2383519411087036, -0.2657248079776764, -0.06946815550327301, -0.23386169970035553, -0.094626784324646, -0.219731405377388, 0.22782780230045319, -0.23227517306804657, 0.22358691692352295, 0.6289992332458496, -0.22903375327587128, -0.08852802217006683, 0.38903704285621643, 0.2833850085735321, 0.1686621904373169, -0.3978702127933502, 0.2908221483230591, 0.1650383323431015, -0.9343543648719788, 0.5104555487632751, -0.3125072121620178, -0.02581055276095867, -0.36927133798599243, 0.19733449816703796, 0.45873168110847473, 0.1535881906747818, -0.8525433540344238, 0.9674417972564697, -0.6873928308486938, -0.039272744208574295, -0.3434300124645233, -0.08141002804040909, -0.2214568704366684, 0.506872832775116, 0.1668211817741394, 0.3269023597240448, 0.3650062084197998, -0.6471529603004456, 0.3485855162143707, 0.32014814019203186, -0.5009632110595703, -0.3113977313041687, 0.702826201915741, 0.47974157333374023, -0.4720425307750702, 0.8577572107315063, -0.2722806930541992, -0.6242207288742065, 0.8014176487922668, 0.3528795838356018, 1.146698236465454, 0.0303973238915205, 0.08339137583971024, 0.48527762293815613, 0.3299388587474823, -0.2929774224758148, 0.5365410447120667, -0.22566285729408264, -0.9399303197860718, -0.5365488529205322, -0.4641439914703369, -0.6647286415100098, -0.14897088706493378, -0.924584686756134, 0.12818388640880585, -0.7009158134460449, -0.6902893781661987, -0.313113272190094, -0.2934398949146271, -0.3869623839855194, 0.3565366566181183, 0.33013200759887695, 0.48475149273872375, -0.45623040199279785, 0.5135504007339478, 0.6973822712898254, -0.3219600319862366, -0.5332577228546143, 0.028070054948329926, -0.18349909782409668, -0.3485696613788605, 0.6571448445320129, 0.2625381648540497, -0.6309453248977661, 0.0930417850613594, -0.9469165802001953, -0.052329786121845245, 0.6862437129020691, 0.37045928835868835, -0.34822583198547363, 0.0069247144274413586, -0.23874010145664215, 0.5863468050956726, -0.020394716411828995, 0.4897339642047882, 0.3336898982524872, 0.7095765471458435, -0.3446839153766632, -0.6410816311836243, 0.23628292977809906, -0.6653737425804138, -0.6096678376197815, 0.02140502817928791, -0.6708950996398926, 0.7217570543289185, -0.27915453910827637, -0.3360874056816101, -0.20635542273521423, 0.5539162755012512, 0.06993690133094788, 0.5091530084609985, 0.767615795135498, 0.3253680169582367, 0.7187387943267822, -0.04749197140336037, 1.0293316841125488, -0.2641431987285614, 0.37173712253570557, 0.6878398060798645, -0.06277073919773102, 0.8462331295013428, 0.5658672451972961, -0.02528611570596695, 0.6938464641571045, 0.11395600438117981, 0.10567406564950943, 0.32668203115463257, -0.011585590429604053, -0.38333573937416077, -0.6320748925209045, -0.41272738575935364, 0.08344785124063492, 0.6116415858268738, 0.5354880690574646, -0.19770009815692902, 0.19941051304340363, 0.22157590091228485, -0.15552744269371033, 0.15862883627414703, -0.38900166749954224, 0.764642596244812, 0.39375749230384827, -0.6808180809020996, 0.2911036014556885, 0.14632447063922882, 0.9322625398635864, -0.5542564392089844, -0.21571697294712067, -0.023035630583763123, 0.48260271549224854, -0.35518985986709595, -0.9871103763580322, 0.04236394166946411, 0.3712637722492218, -0.31062865257263184, -0.6866490840911865, 0.833005964756012, -0.09252940863370895, -0.1737549751996994, 0.5827018618583679, 0.3696264326572418, 0.05382648855447769, -0.2529536783695221, -0.4244610667228699, -0.18174968659877777, 0.012151231057941914, -0.3925754129886627, 0.014927083626389503, 0.42958298325538635, -0.009127890691161156, 0.5102338194847107, 0.8816217184066772, -0.332384318113327, -0.21966688334941864, 0.15391117334365845, 0.552426815032959, -1.1838449239730835, -0.5532311797142029, -0.7925729155540466, 0.5260704755783081, -0.15479916334152222, -0.3488621711730957, 0.5234262943267822, 0.2815949618816376, 0.4958242177963257, 0.004627489950507879, 0.7181227803230286, -0.11750607192516327, -0.26350924372673035, -0.5985109210014343, 0.8787941336631775, -0.5897663235664368, -0.01792665384709835, -0.24575191736221313, -0.3581276834011078, -0.1307099461555481, 0.7728578448295593, -0.25801581144332886, 0.07205478101968765, 0.878773033618927, 0.37014830112457275, -0.04833529517054558, 0.4733791947364807, 0.3012603223323822, 0.45140913128852844, 0.19900785386562347, 0.7152130007743835, 1.1237369775772095, -0.3773198425769806, 0.6988829970359802, -0.009124334901571274, -0.38477301597595215, -0.1887814700603485, -0.971712052822113, -0.894256591796875, -0.2805081605911255, -0.052086975425481796, -0.5350189208984375, 0.03018053062260151, 0.5663009285926819, 0.30549702048301697, -0.573775589466095, -0.16873638331890106, -0.41065463423728943, 0.19738216698169708, -0.26320186257362366, -0.2679472863674164, 0.19946077466011047, -0.085029236972332, -0.7863739132881165, 0.47888049483299255, 0.31964242458343506, 0.0188605859875679, 0.06525655835866928, -0.012716245837509632, -0.24064992368221283, 0.2890942394733429, 0.7902745604515076, 0.0037958817556500435, -0.32178112864494324, -0.34666526317596436, 0.11055538803339005, -0.5086693167686462, -0.0946197435259819, 1.3229206800460815, -0.9049919843673706, 0.2791236340999603, 0.767886221408844, 0.3396041989326477, 0.4448748230934143, 0.17199936509132385, 0.7346230745315552, -0.4165676236152649, 0.0959756150841713, 0.46694886684417725, 0.45451900362968445, 0.12694235146045685, -0.5812882781028748, 0.35820719599723816, 0.30952543020248413, -0.616500735282898, -0.5491930246353149, 0.4119149446487427, -1.5640342235565186, -0.29118773341178894, 1.0837926864624023, 0.05390693247318268, -0.2631523609161377, -0.2868988811969757, -0.6656293869018555, 0.3189685642719269, -0.3719143569469452, 0.6856463551521301, 0.680410623550415, -0.01110453438013792, 0.07305777817964554, -0.4411560595035553, 0.3607967495918274, 0.8169963359832764, -0.902702808380127, 0.13583458960056305, 0.660128653049469, 0.006786249577999115, 0.15862156450748444, 0.4920528829097748, -0.2947874665260315, 0.5695158839225769, -0.01850515976548195, 0.26210448145866394, -0.01757737807929516, -0.09768836945295334, -0.5312982201576233, 0.1715553104877472, -0.5419139266014099, 0.09690413624048233 ]
http://arxiv.org/abs/2405.18570v3
http://arxiv.org/pdf/2405.18570v3
It's Not a Modality Gap: Characterizing and Addressing the Contrastive Gap
2024-05-28T20:28:07
2024-06-06T20:29:21
Abrar Fahim, Alex Murphy, Alona Fyshe
cs.CV
cs.CV, cs.CL, cs.IR, cs.LG
Multi-modal contrastive models such as CLIP achieve state-of-the-art performance in zero-shot classification by embedding input images and texts on a joint representational space. Recently, a modality gap has been reported in two-encoder contrastive models like CLIP, meaning that the image and text embeddings reside in disjoint areas of the latent space. Previous studies suggest that this gap exists due to 1) the cone effect, 2) mismatched pairs in the dataset, and 3) insufficient training. We show that, even when accounting for all these factors, and even when using the same modality, the contrastive loss actually creates a gap during training. As a result, We propose that the modality gap is inherent to the two-encoder contrastive loss and rename it the contrastive gap. We present evidence that attributes this contrastive gap to low uniformity in CLIP space, resulting in embeddings that occupy only a small portion of the latent space. To close the gap, we adapt the uniformity and alignment properties of unimodal contrastive loss to the multi-modal setting and show that simply adding these terms to the CLIP loss distributes the embeddings more uniformly in the representational space, closing the gap. In our experiments, we show that the modified representational space achieves better performance than default CLIP loss in downstream tasks such as zero-shot image classification and multi-modal arithmetic.
[ -0.4795237183570862, -0.4986676573753357, 0.5449698567390442, -0.09447051584720612, -0.3384248912334442, 0.14603343605995178, 0.005234991665929556, -0.32322847843170166, 0.34708723425865173, -0.025898586958646774, -0.46027854084968567, -0.09951277822256088, -0.7414483428001404, -0.048113420605659485, -0.052074920386075974, 0.6265652775764465, -0.1873316764831543, 0.26246902346611023, -0.44001030921936035, -0.503032386302948, -0.654164731502533, -0.4128863513469696, -0.19505684077739716, -0.21912848949432373, 0.3145865499973297, 0.1083248183131218, 0.7947027683258057, 0.6907292604446411, 0.426570326089859, 0.16905273497104645, -0.117336206138134, 0.18337637186050415, -0.4684881865978241, -0.07599455863237381, 0.008878124877810478, -0.46721798181533813, -0.048785243183374405, -0.05780252069234848, 0.7626569271087646, 0.8294117450714111, 0.12686468660831451, -0.46419841051101685, 0.08786512166261673, 0.3388320803642273, -1.0498000383377075, -0.19888705015182495, -0.4365823268890381, 0.24254164099693298, -0.3595450520515442, -0.3750436007976532, -0.07961665093898773, 0.17792285978794098, -0.03386840596795082, -0.7336564660072327, 0.6361963748931885, -0.11399967223405838, 0.9824142456054688, 0.3732224106788635, -0.7704329490661621, -0.028401752933859825, -0.5561155676841736, 0.7897903919219971, -0.5679717063903809, 0.589490532875061, 0.20681041479110718, 0.23977605998516083, 0.11377834528684616, -0.3859575092792511, -0.7018033862113953, 0.06817007064819336, 0.025114042684435844, 0.24592465162277222, -0.14081238210201263, 0.2936163544654846, 0.11949685961008072, 0.5555222630500793, -0.3016972839832306, 0.027859417721629143, -0.6233474016189575, -0.2696181535720825, 0.15317867696285248, 0.4392600655555725, 0.22380098700523376, 0.0020071696490049362, -0.6717841029167175, -0.09715200960636139, -0.4888206124305725, 0.14952577650547028, 0.17982715368270874, 0.014406572096049786, -0.15484806895256042, 0.49384474754333496, 0.3503764271736145, 0.652084469795227, 0.24748706817626953, -0.04482076317071915, 0.1538880467414856, -0.4434110224246979, -0.2656726539134979, -0.09840148687362671, 0.7768802046775818, 0.7037436962127686, -0.3622748553752899, -0.15781675279140472, -0.2323632389307022, 0.5213780999183655, 0.14839032292366028, -0.8603128790855408, -0.16436108946800232, -0.2729588747024536, -0.44628283381462097, -0.16083085536956787, 0.3867323398590088, -0.3484894633293152, -0.4123474657535553, -0.12312424182891846, 0.7354006767272949, -0.3680976331233978, -0.09863057732582092, 0.1709146946668625, -0.39732927083969116, 0.1552792340517044, 0.35260507464408875, -0.8324132561683655, 0.5167171955108643, 0.30090683698654175, 1.1629328727722168, -0.13772264122962952, -0.34126919507980347, -0.09176719188690186, 0.16132408380508423, -0.6413049101829529, 0.863569974899292, -0.7791253328323364, -0.4523782432079315, 0.020693078637123108, 0.17174190282821655, -0.5279020071029663, -0.6627300381660461, 0.36329975724220276, -0.48353660106658936, 0.5161786675453186, -0.3449713885784149, -0.7013217806816101, -0.3212420344352722, 0.3616521954536438, -0.942720353603363, 0.747900128364563, 0.20341342687606812, -0.6846352815628052, 0.4566059112548828, -0.575303316116333, -0.27235567569732666, -0.32942506670951843, -0.574779212474823, -0.4627610743045807, 0.2776021361351013, 0.07143611460924149, 0.15375104546546936, -0.3307892978191376, -0.04252202808856964, -0.46555089950561523, -0.8389443159103394, 0.6102510094642639, -0.3738587200641632, 0.3962099850177765, -0.0640796646475792, -0.29138779640197754, -0.12992995977401733, -0.512739896774292, -0.22458511590957642, -0.1500009298324585, -0.3013313412666321, -0.4839211404323578, -0.1855134516954422, 0.2928715944290161, 0.48904573917388916, -0.2652498781681061, -0.7494581937789917, 0.18029768764972687, -0.09684602171182632, 0.48519283533096313, 0.6793634295463562, 0.06629753112792969, 0.6046887040138245, -0.5987467765808105, 0.41770005226135254, 0.4755820631980896, -0.03066033497452736, -0.5417647957801819, -0.2068135291337967, -0.8897839188575745, -0.47499746084213257, 0.45796844363212585, 0.2522485554218292, -0.7501660585403442, 0.28714895248413086, 0.12033819407224655, -0.013263920322060585, -0.40561574697494507, -0.1703915297985077, 0.330728679895401, 0.48473018407821655, 0.2648833096027374, -0.7636234760284424, -0.35765066742897034, -0.9071242213249207, 0.22408290207386017, 0.12439432740211487, -0.058349575847387314, 0.3619201183319092, 0.3695860505104065, -0.13542968034744263, 0.6813110113143921, -0.4831998348236084, -0.6531538367271423, 0.18038605153560638, 0.20139238238334656, 0.0842861533164978, 0.5975416302680969, 0.5119934678077698, -0.7327699661254883, -0.27018341422080994, -0.2622590661048889, -0.703093945980072, 0.008005998097360134, -0.3891494572162628, 0.08055401593446732, 0.0006574072758667171, 0.6766632199287415, -0.3534230887889862, 0.5074493885040283, 0.4401198923587799, -0.6008315682411194, 0.1957775205373764, -0.12462101876735687, 0.43710458278656006, -0.8323193192481995, 0.09150294214487076, -0.3238881230354309, -0.2017553448677063, -0.5605028867721558, -0.3279304504394531, 0.20291972160339355, -0.30496326088905334, -0.28370991349220276, 0.25658130645751953, -0.4721100926399231, -0.07399081438779831, -0.45352280139923096, -0.03678065538406372, 0.7125766277313232, 0.6749683022499084, 0.09701864421367645, 0.8859478831291199, 0.7565543055534363, -0.7104794383049011, -0.15921244025230408, 0.35827887058258057, -0.1028401181101799, 0.9478654861450195, -0.6983309388160706, 0.1085735633969307, -0.0974859893321991, 0.23772485554218292, -1.009752631187439, -0.20725855231285095, 0.3305710554122925, -0.38983774185180664, 0.558871865272522, 0.013883989304304123, 0.01876809448003769, 0.23952007293701172, -0.634308397769928, 1.1858543157577515, 0.26294824481010437, -0.31519976258277893, 0.1799829602241516, 0.10796791315078735, 0.24999423325061798, -0.6736174821853638, -0.9151889681816101, -0.05071147903800011, -0.026479395106434822, -0.6782324910163879, 0.8018538355827332, -0.07863083481788635, 0.26383721828460693, 0.3989626169204712, -0.38093557953834534, -0.4472455382347107, -0.12799200415611267, 0.22306400537490845, 0.18914538621902466, -0.404609739780426, 0.3650614023208618, -0.0369139201939106, 0.0382436066865921, -0.3398628234863281, 0.0508849211037159, 0.22934336960315704, 0.10129940509796143, -0.613551676273346, -0.44975546002388, 0.5678572058677673, 0.6746265888214111, -0.047558799386024475, 0.5402048826217651, 0.5276583433151245, -0.3697478771209717, 0.1888425052165985, -0.4964304268360138, -0.1772601157426834, -0.3580946624279022, 0.3016936182975769, -0.31801170110702515, -1.1307032108306885, 0.42134279012680054, 0.10498003661632538, -0.3037928342819214, 0.28084272146224976, 0.2810843884944916, -0.15733502805233002, 0.9156034588813782, 1.033792495727539, 0.5034385919570923, 0.7969806790351868, -0.39980003237724304, 0.15505675971508026, -1.3818386793136597, -0.5779299139976501, -0.14002102613449097, -0.5054897665977478, -0.34259676933288574, -0.938271701335907, 0.4909382462501526, 0.500443160533905, -0.15175020694732666, 0.04648202285170555, -0.36828792095184326, 0.6218783259391785, 0.3231358230113983, 0.011287273839116096, 0.1289360374212265, -0.17555028200149536, -0.0785505622625351, -0.5421593189239502, -0.8048782348632812, -0.2527000308036804, 0.748389482498169, 0.24567840993404388, 0.8838953375816345, 0.32089853286743164, 0.4876975417137146, 0.4802170693874359, -0.28367719054222107, -1.092612862586975, 0.17006899416446686, -0.19833604991436005, -0.47027820348739624, 0.04851248860359192, -0.04776706546545029, -0.9994117021560669, 0.5247789621353149, -0.4160243272781372, -0.2900131344795227, 0.9373555183410645, 0.1721697747707367, -0.24941568076610565, 0.4334923028945923, -0.2606115937232971, 0.892362654209137, 0.007392074912786484, -0.5153742432594299, -0.0692293792963028, -0.586309015750885, 0.3593268096446991, 0.14361274242401123, -0.03413446620106697, -0.1509982943534851, -0.4990643858909607, 0.7492617964744568, -0.6348844170570374, 0.7257201671600342, 0.03229466453194618, 0.3368707001209259, 0.19350340962409973, 0.3094748258590698, -0.10544434934854507, -0.2401469349861145, 0.42852452397346497, 0.18388979136943817, 0.06117437034845352, -0.6349019408226013, -0.9007192254066467, 0.18149077892303467, -0.6611536741256714, -0.07085549831390381, -0.6648480296134949, -0.3632463216781616, -0.26892828941345215, 0.05067232623696327, 0.5974070429801941, 0.7043883800506592, -0.41809454560279846, 0.2160973846912384, 0.8318614363670349, -0.11786703020334244, 0.5417503118515015, 0.4743401110172272, 0.32522398233413696, -0.6646208167076111, 0.756585955619812, -0.020763522014021873, 0.32598426938056946, 0.4096699357032776, 0.024131514132022858, -0.3932276964187622, -0.26096826791763306, -0.6265855431556702, 0.3189312219619751, -0.7721718549728394, -0.3523017466068268, -0.33578455448150635, -0.05277623236179352, -0.3283151686191559, -0.6376961469650269, -0.45976904034614563, -0.6442303657531738, -0.32796090841293335, 0.06591379642486572, -0.19495166838169098, 0.7028642296791077, -0.37992677092552185, 0.24195170402526855, -0.8466321229934692, 0.15412598848342896, 0.4625486433506012, 0.5135489106178284, -0.02010776288807392, -0.7847725749015808, -0.28739795088768005, -0.4439767599105835, -0.7580434679985046, -0.9673223495483398, 0.13220305740833282, 0.5024040341377258, 0.6133759617805481, 0.7012085914611816, -0.1496639996767044, 0.8494750261306763, -0.41096240282058716, 0.9861244559288025, 0.971842885017395, -1.086125135421753, 0.12219849228858948, -0.19376777112483978, 0.43013131618499756, 0.47551512718200684, 0.20612558722496033, -0.815007209777832, -0.09059658646583557, -0.5658788681030273, -0.8528732657432556, 0.8567980527877808, 0.2500472962856293, 0.17338666319847107, -0.0927966833114624, -0.21518424153327942, 0.16764390468597412, 0.3528933525085449, -0.7197564244270325, -0.05486208572983742, -0.7025334239006042, 0.18055038154125214, 0.28784018754959106, -0.39166268706321716, -0.3851276934146881, 0.042513441294431686, 0.26772940158843994, -0.10991105437278748, 0.7098395824432373, 0.42497068643569946, -0.2119390368461609, -0.10197898000478745, 0.5061652064323425, 0.8061891794204712, 0.6019855737686157, -0.051476456224918365, 0.5145968794822693, -0.005447784438729286, -0.22090066969394684, 0.2774268388748169, -0.045303650200366974, -0.08481298387050629, 0.3777523636817932, 0.6276628375053406, 1.0140354633331299, 0.5034239292144775, -0.42805105447769165, 1.0960146188735962, 0.08812779188156128, -0.2701711356639862, 0.054325349628925323, -0.2731791138648987, -0.38849058747291565, 0.3692023754119873, 0.11037397384643555, 0.3493857979774475, 0.48154476284980774, -0.6898012757301331, 0.26009616255760193, 0.3805229365825653, -0.8428385853767395, -0.38568511605262756, 0.6831222176551819, 0.28731778264045715, -0.07198414951562881, 0.456972599029541, -0.03734051436185837, -0.5414655804634094, 0.5443137884140015, 0.656271755695343, 0.7242615818977356, -0.09746934473514557, 0.1860029101371765, 0.4083307385444641, 0.1084522157907486, 0.03386365994811058, 0.08781273663043976, -0.3411369025707245, -0.7446881532669067, -0.22969047725200653, -0.19176241755485535, -0.3404986560344696, 0.07417105883359909, -0.9013181328773499, 0.11011644452810287, -0.6448188424110413, -0.13956789672374725, -0.1124977245926857, -0.5046248435974121, -0.47689390182495117, 0.064771369099617, 0.2072935849428177, 0.731259822845459, -1.0522499084472656, 0.4259164035320282, 0.6438162922859192, -0.5622714161872864, -0.44787001609802246, 0.08026894927024841, -0.03972983360290527, -0.5749234557151794, 0.23468391597270966, 0.4305046498775482, -0.2925153374671936, -0.6988523602485657, -0.3750825524330139, -0.6529829502105713, 1.121024250984192, 0.35322752594947815, -0.3713351786136627, 0.08519565314054489, 0.010161378420889378, 0.3740195631980896, -0.397566020488739, 0.24698340892791748, 0.14603470265865326, 0.05456307902932167, 0.4385971426963806, -0.8377262353897095, 0.11937585473060608, -0.16424262523651123, 0.3986370265483856, 0.391889750957489, -0.8525603413581848, 1.2133467197418213, -0.15901002287864685, -0.5128883719444275, -0.003834455506876111, 0.25293952226638794, 0.01611822471022606, 0.5765881538391113, 0.42515456676483154, 0.6170638203620911, 0.5887072682380676, -0.15624897181987762, 0.9359241724014282, -0.10395454615354538, 0.3850192725658417, 0.7783666253089905, -0.032681360840797424, 0.4634488821029663, 0.5941948294639587, 0.004651348572224379, 0.5223912000656128, 0.4950386583805084, -0.21332480013370514, 0.8175501823425293, -0.13501067459583282, -0.3533591628074646, -0.5830681324005127, -0.4845481514930725, -0.3891504108905792, 0.5124375820159912, 0.20026671886444092, -0.44328799843788147, -0.3875475227832794, -0.01883254386484623, 0.05087083578109741, 0.2983488142490387, -0.28074386715888977, 0.6106792688369751, 0.13470689952373505, -0.19340640306472778, 0.7175309658050537, 0.035504598170518875, 0.9142398238182068, -0.6400425434112549, -0.29120463132858276, -0.25095245242118835, -0.022631080821156502, -0.3133162260055542, -0.6084994673728943, 0.3325519561767578, -0.37732869386672974, -0.4202391803264618, 0.05421176925301552, 0.5510064959526062, -0.5681428909301758, -0.17251227796077728, 0.15733930468559265, 0.34892892837524414, 0.12398433685302734, 0.2157517820596695, -0.6104105710983276, 0.25801655650138855, -0.3323596715927124, 0.224994957447052, 0.27319765090942383, 0.40133440494537354, -0.004199586343020201, 0.07416971772909164, 0.2201618105173111, -0.2562114894390106, 0.028628425672650337, 0.08625496923923492, 1.0208719968795776, -0.9497995972633362, -0.5908786654472351, -0.5930104851722717, 0.47891589999198914, -0.013941051438450813, -0.39769601821899414, 0.4121866524219513, 0.6763185858726501, 0.7802386283874512, -0.00028989609563723207, 0.7188619375228882, -0.21116705238819122, 0.2630773186683655, -0.7001229524612427, 0.21755392849445343, -0.8025051355361938, 0.1215142160654068, -0.13542649149894714, -0.787499189376831, -0.333206444978714, 0.6969239711761475, 0.01530048344284296, 0.05979721620678902, 1.0352649688720703, 0.9765573740005493, -0.40530791878700256, -0.3343493342399597, 0.8085556030273438, -0.20251132547855377, 0.13854926824569702, 0.968810498714447, 1.044219732284546, -0.6704174280166626, 0.7519934177398682, -0.07199590653181076, -0.19112107157707214, -0.31535017490386963, -0.7044951915740967, -0.8893671035766602, -0.6399144530296326, -0.32970941066741943, -0.2817295491695404, -0.15060999989509583, 0.5072808265686035, 0.8959938883781433, -0.5335814952850342, -0.16371867060661316, 0.07958474010229111, 0.036598965525627136, -0.1407187283039093, -0.2360108494758606, 0.3297695219516754, -0.2863868474960327, -0.6792726516723633, 0.394084095954895, 0.4831778407096863, 0.321474552154541, -0.20225220918655396, -0.0674404576420784, -0.021107958629727364, 0.11088350415229797, 0.4859587550163269, 0.49548372626304626, -0.7030642628669739, -0.10224274545907974, 0.2676694095134735, -0.10686720907688141, 0.48208534717559814, 1.4137835502624512, -0.779731273651123, 0.8549904227256775, 0.42324358224868774, 0.7623893022537231, 0.4366039037704468, -0.22930200397968292, 0.48249325156211853, -0.8669421672821045, 0.13831481337547302, 0.26422831416130066, 0.3596458435058594, 0.5986694097518921, -0.1250028908252716, 0.42177674174308777, 0.6212484240531921, -0.3610464334487915, -0.8184497952461243, 0.45809295773506165, -1.243886947631836, -0.5801284313201904, 0.9531117677688599, -0.036893829703330994, 0.0359845869243145, -0.21624821424484253, -0.2069355845451355, 0.3100171685218811, -0.3386760950088501, 0.9188129305839539, 0.6596933007240295, -0.6703081130981445, -0.18230515718460083, -0.20220467448234558, 0.3558725118637085, 0.5338903069496155, -0.28388771414756775, -0.3396817743778229, 0.7750008702278137, 0.3406732976436615, 0.30854007601737976, 0.7503648996353149, -0.36745285987854004, 0.7049271464347839, 0.40993523597717285, -0.1185433492064476, -0.5242443084716797, -0.233451709151268, -0.9091799855232239, 0.19649828970432281, 0.10587319731712341, -0.7762610912322998 ]
http://arxiv.org/abs/2405.18542v1
http://arxiv.org/pdf/2405.18542v1
Automatic detection of cognitive impairment in elderly people using an entertainment chatbot with Natural Language Processing capabilities
2024-05-28T19:17:48
2024-05-28T19:17:48
Francisco de Arriba-Pérez, Silvia García-Méndez, Francisco J. González-Castaño, Enrique Costa-Montenegro
cs.AI
cs.AI, cs.CL, cs.HC, cs.LG
Previous researchers have proposed intelligent systems for therapeutic monitoring of cognitive impairments. However, most existing practical approaches for this purpose are based on manual tests. This raises issues such as excessive caretaking effort and the white-coat effect. To avoid these issues, we present an intelligent conversational system for entertaining elderly people with news of their interest that monitors cognitive impairment transparently. Automatic chatbot dialogue stages allow assessing content description skills and detecting cognitive impairment with Machine Learning algorithms. We create these dialogue flows automatically from updated news items using Natural Language Generation techniques. The system also infers the gold standard of the answers to the questions, so it can assess cognitive capabilities automatically by comparing these answers with the user responses. It employs a similarity metric with values in [0, 1], in increasing level of similarity. To evaluate the performance and usability of our approach, we have conducted field tests with a test group of 30 elderly people in the earliest stages of dementia, under the supervision of gerontologists. In the experiments, we have analysed the effect of stress and concentration in these users. Those without cognitive impairment performed up to five times better. In particular, the similarity metric varied between 0.03, for stressed and unfocused participants, and 0.36, for relaxed and focused users. Finally, we developed a Machine Learning algorithm based on textual analysis features for automatic cognitive impairment detection, which attained accuracy, F-measure and recall levels above 80%. We have thus validated the automatic approach to detect cognitive impairment in elderly people based on entertainment content.
[ -0.38996079564094543, -1.112012267112732, 0.654384970664978, 0.16175830364227295, -0.38651561737060547, -0.19160869717597961, -0.3709048926830292, -0.7555378675460815, 0.345440536737442, 0.5780959129333496, -0.6763972043991089, -0.5724073052406311, -0.6047757863998413, -0.18992400169372559, -0.012676923535764217, 0.9302142262458801, 0.1289740800857544, 0.2135518491268158, -0.22292043268680573, -0.037518296390771866, -0.7522947192192078, -0.1349426656961441, -1.2538377046585083, -0.06635239720344543, -0.11142082512378693, 0.5333113670349121, 0.6819079518318176, 0.17308403551578522, 0.5385733842849731, 0.4581063687801361, -0.06938640773296356, 0.3850904703140259, -0.18393240869045258, 0.14253972470760345, 0.12669867277145386, -0.40132978558540344, -0.6822914481163025, -0.2918810248374939, -0.17749935388565063, 0.3156033754348755, 0.02211710996925831, -0.09417762607336044, 0.12571077048778534, 0.8539822101593018, -0.7135484218597412, 0.4433227479457855, -0.42622989416122437, 0.31557220220565796, -0.0942990854382515, -0.4410080313682556, -0.15718737244606018, -0.4513130187988281, 0.17301738262176514, -0.6682299971580505, 0.007486182730644941, 0.09265485405921936, 0.4132152497768402, 0.5655984878540039, -0.22477346658706665, -0.7888864874839783, -0.6354500651359558, 0.6169639825820923, -0.8110642433166504, 0.02289310097694397, 0.903860867023468, 0.6392383575439453, -0.057176560163497925, -0.16229747235774994, -0.5639313459396362, -0.8517597913742065, 0.010353813879191875, 0.27360451221466064, -0.25749748945236206, 0.1757592111825943, 0.050703153014183044, 0.4670597016811371, -0.770083487033844, -0.029059508815407753, -0.5160822868347168, -0.568126380443573, 0.5762500166893005, 0.2808079719543457, 0.781553328037262, -0.16658003628253937, -0.12552687525749207, 0.17306987941265106, 0.28498411178588867, 0.01091755647212267, 0.18440142273902893, -0.18057407438755035, -0.04352996498346329, 0.5371466279029846, -0.7141452431678772, 0.39000204205513, -0.08505553007125854, -0.09231443703174591, 0.41442084312438965, -0.14936316013336182, 0.044107090681791306, 0.38664117455482483, 0.6949214339256287, 0.6910586357116699, 0.9049229025840759, -0.18159164488315582, 0.08008262515068054, 0.13606400787830353, 0.1586223542690277, -0.21123452484607697, -0.5993929505348206, 0.32405680418014526, -0.48568442463874817, 0.007778281811624765, -0.12422863394021988, -0.7126075625419617, -0.3346715569496155, -0.05664462223649025, 0.2988685369491577, -0.9982306957244873, -0.10530135780572891, 0.3551846742630005, -0.3315473794937134, -0.27806222438812256, 0.3433675169944763, -0.9048248529434204, 0.2848883271217346, 0.22592796385288239, 0.7563848495483398, -0.503226637840271, 0.2801514267921448, -0.5784696936607361, 0.24819669127464294, 0.08323829621076584, 0.9615962505340576, -0.4068666696548462, -0.2907063066959381, -0.19444504380226135, 0.03231725096702576, 0.1126304417848587, -0.5901291370391846, 0.8765734434127808, -0.4272696375846863, 0.5425475239753723, 0.507693886756897, -0.3004780411720276, -0.0998304933309555, 0.38313066959381104, -0.7192812561988831, 0.8877902626991272, 0.15880262851715088, -0.4977356791496277, 0.2310597449541092, -0.8858280181884766, -0.5042358636856079, 0.3515840768814087, 0.16677744686603546, -0.32192835211753845, 0.06832379847764969, 0.4055473804473877, 0.009454007260501385, -0.09585179388523102, -0.11912193894386292, -0.37677431106567383, -0.39450210332870483, 0.32438743114471436, -0.7424188256263733, 0.6449083685874939, 0.2926329970359802, -0.4102785885334015, 0.1311715990304947, -0.6403042674064636, 0.45355552434921265, -0.16775955259799957, -0.36453676223754883, -0.4838791489601135, 0.17259177565574646, -0.18117153644561768, 0.22755375504493713, 0.29819828271865845, -0.4152672290802002, -0.2580256462097168, -0.31032320857048035, 0.4123230576515198, 0.28806620836257935, 0.33513176441192627, 0.22190970182418823, -0.49056947231292725, 0.310424268245697, 0.09787463396787643, 0.6501817107200623, -0.04939652234315872, -0.6286750435829163, -0.5997417569160461, -0.3896549940109253, 0.020208977162837982, 0.9961747527122498, -0.5086423754692078, 1.0317665338516235, -0.1968289464712143, -0.21270915865898132, -0.4084188938140869, 0.08116061240434647, 0.2993455231189728, 0.41757866740226746, 0.5689249634742737, -0.6721282601356506, -0.028801163658499718, -0.6446707248687744, -0.18964281678199768, -0.32642602920532227, -0.4014352858066559, 0.41266852617263794, 0.0714762732386589, -0.25944992899894714, 0.3763945996761322, -0.6333497166633606, -0.8930301666259766, 0.232025146484375, 0.32553723454475403, -0.38699454069137573, 0.7076910734176636, -0.05040346458554268, -0.6661390066146851, -0.17944017052650452, 0.12875300645828247, -0.7437999844551086, -0.17421458661556244, 0.14405839145183563, -0.013965057209134102, 0.4482106566429138, 0.4880877733230591, -0.5182977914810181, 0.6119314432144165, 0.16851350665092468, -0.2794860005378723, 0.3097277879714966, -0.5260788798332214, 0.3478517532348633, -0.4760218858718872, -0.15402330458164215, -0.1953529417514801, -0.030910175293684006, -0.35524922609329224, -0.6646978855133057, -0.34603971242904663, -0.12577860057353973, -0.11957937479019165, 0.24506999552249908, -0.39913615584373474, 0.09049368649721146, -0.4240407943725586, 0.46679359674453735, -0.09841694682836533, 0.4423794746398926, 0.02863973006606102, 0.035761572420597076, 0.332473486661911, -0.46007636189460754, 0.3578040599822998, -0.013539066538214684, -0.35412031412124634, 0.8186718225479126, -0.3617691695690155, 0.040243491530418396, -0.059100568294525146, 0.11727593094110489, -1.3021351099014282, -0.12263678014278412, 0.46762755513191223, -0.6427172422409058, -0.04405228793621063, 0.27723953127861023, -0.10142916440963745, -0.48657163977622986, -0.27267569303512573, 0.12450673431158066, 0.49558475613594055, 0.2798977494239807, 0.6163756251335144, 0.49281060695648193, -0.3975490629673004, -0.045603178441524506, -0.89034104347229, 0.056648846715688705, -0.3092022240161896, -0.9572586417198181, 0.3797532618045807, -0.3581349849700928, -0.03158717229962349, 0.34813612699508667, 0.010986669920384884, -0.40564921498298645, 0.1984676569700241, 0.22576403617858887, 0.2704499661922455, -0.2182825803756714, 0.32553038001060486, 0.10564377158880234, -0.22181612253189087, -0.10974293202161789, -0.07616947591304779, 0.5672293305397034, -0.30716079473495483, -0.43260252475738525, -0.9930077195167542, 0.25478193163871765, 0.7442104816436768, -0.365630179643631, 0.23549297451972961, 0.7072498798370361, -0.46340951323509216, 0.10192546248435974, -0.7050848007202148, -0.10057274252176285, -0.49801379442214966, 0.13790345191955566, -0.03534979745745659, -0.6792373061180115, 0.38820770382881165, -0.11095748096704483, -0.35968902707099915, 0.47165417671203613, 0.6188705563545227, -0.16278710961341858, 1.2789868116378784, 0.40906277298927307, 0.006643790751695633, 0.6404715776443481, 0.14953002333641052, -0.1157626286149025, -0.6638739109039307, -0.3050025701522827, -0.22766733169555664, -0.2730346918106079, -0.47116339206695557, -0.31175196170806885, 0.2753325402736664, -0.005308711435645819, -0.02898433804512024, -0.21107499301433563, -0.8266577124595642, 0.3412226438522339, 0.4923606812953949, 0.3909755349159241, 0.6363202333450317, -0.1609005331993103, 0.05487649142742157, -0.08594316989183426, -0.18661633133888245, -0.6544686555862427, 0.6203488707542419, 0.06412122398614883, 0.6703248620033264, -0.009022972546517849, 0.41491949558258057, 1.0030632019042969, 0.4614783525466919, -0.9782208204269409, 0.5426955223083496, -0.2489364594221115, -0.5268474221229553, -0.5445337891578674, -0.48389336466789246, -0.8282232284545898, -0.4591638743877411, -0.21049374341964722, -0.7831910252571106, 0.04205024987459183, 0.012146337889134884, -0.47231045365333557, -0.01455559954047203, -0.9016184210777283, 0.8738042712211609, -0.7279431819915771, 0.04347403347492218, -0.5858306288719177, -0.7044073939323425, 0.5008541941642761, 0.0190731231123209, 0.14697127044200897, -0.40439802408218384, -0.057105232030153275, 0.5770643949508667, -0.011755140498280525, 0.5276225209236145, -0.20851002633571625, 0.3763488531112671, 0.3869743347167969, 0.06659144163131714, 0.12369677424430847, -0.07406798750162125, -0.18182338774204254, -0.09574058651924133, 0.04971719905734062, -0.35709625482559204, -0.6647477149963379, 0.7566878199577332, -0.6579061150550842, -0.6376314163208008, -0.21466383337974548, -0.6265158653259277, -0.287562757730484, 0.2592041790485382, -0.008897900581359863, 0.23116405308246613, -0.4288661777973175, 0.1200433075428009, 0.4283248782157898, -0.21867302060127258, 0.19784848392009735, 0.7884812951087952, 0.3561377227306366, -0.35478368401527405, 0.8968000411987305, 0.00920086819678545, 0.19707846641540527, 0.27307549118995667, 0.08947571367025375, -0.0046075452119112015, -0.7438784837722778, -0.3664405047893524, -0.0006594387232325971, -0.44664642214775085, 0.13764971494674683, -0.5507622957229614, -0.04813402146100998, -0.12653975188732147, 0.1294902265071869, 0.12289640307426453, -0.5828322172164917, -0.1573946475982666, 0.27086952328681946, 0.21839632093906403, 0.30748409032821655, 0.09716261923313141, 0.20700587332248688, -0.7519355416297913, 0.4495375454425812, 0.48425742983818054, 0.24433065950870514, -0.23472993075847626, -0.04580517113208771, -0.14580316841602325, 0.10956346988677979, -0.7286115288734436, -0.6759412884712219, 0.28869011998176575, 0.44051867723464966, 0.6843532919883728, 0.5013973116874695, 0.36092767119407654, 0.4085507094860077, -0.23830673098564148, 0.8292569518089294, 0.10909637063741684, -0.8115363717079163, 0.6560841798782349, 0.1856253743171692, 0.36184927821159363, 0.8404103517532349, 0.4141727387905121, -0.5461486577987671, -0.5988163352012634, -0.5172858238220215, -0.635857343673706, 0.5757336020469666, 0.0805981457233429, 0.1597338169813156, -0.3252948522567749, 0.13769608736038208, -0.17726926505565643, -0.14994847774505615, -0.2015238255262375, 0.09009376913309097, -0.22163079679012299, -0.5425912141799927, 0.17673435807228088, 0.11096547544002533, -0.05106418579816818, -0.023927148431539536, 0.5848674774169922, -0.24585427343845367, 0.4670898914337158, 0.39641377329826355, -0.16738882660865784, -0.43558844923973083, 0.13272389769554138, 0.5214843153953552, 0.4486498534679413, -0.3776642084121704, 0.14545224606990814, 0.40563422441482544, -0.49654433131217957, -0.2536594867706299, 0.2543680965900421, 0.3327893316745758, -0.08880608528852463, 0.285709023475647, 0.4434184432029724, 0.0629379153251648, -1.307914137840271, 0.6113139986991882, -0.5114822387695312, 0.10428258776664734, -0.5868123173713684, 0.5508814454078674, 0.1938854455947876, 0.38836774230003357, 0.29703575372695923, 0.3106094002723694, 0.29169970750808716, -0.8189931511878967, 0.48652371764183044, 0.5165538191795349, -0.9506021738052368, 0.00603259215131402, 0.6028006076812744, 0.13756221532821655, -0.8583951592445374, 0.9103406071662903, -0.21363253891468048, -0.3357025384902954, 0.45702531933784485, 0.1562732309103012, 0.840167224407196, -0.27904215455055237, 0.1022941842675209, -0.06782016158103943, 0.2165149301290512, 0.07337585836648941, 0.28765496611595154, -0.30048495531082153, -0.5487917065620422, -0.27503859996795654, -0.29345279932022095, -0.44360479712486267, -0.02153117023408413, -0.700291097164154, 0.10143047571182251, -0.29259997606277466, -0.3990135192871094, 0.22565899789333344, 0.1797388345003128, -0.4050399959087372, 0.37404608726501465, 0.45107516646385193, 0.7901568412780762, -0.7507660388946533, 0.642609715461731, 0.3966699540615082, -0.41702333092689514, 0.027780845761299133, 0.3858514130115509, -0.09472780674695969, -0.7994009256362915, 0.4890630841255188, 0.232126384973526, -0.07598945498466492, -0.2062806338071823, -0.23221401870250702, -0.27452728152275085, 1.109951138496399, 0.1593235731124878, -0.014919545501470566, 0.02854677475988865, -0.025993211194872856, 0.8771927356719971, -0.37518349289894104, 0.505932092666626, 0.4359564483165741, 0.5164141654968262, 0.014392217621207237, -0.8420743346214294, -0.030050579458475113, -0.46581774950027466, -0.3290252387523651, 0.21562586724758148, -0.6648270487785339, 0.28564584255218506, -0.03504016250371933, -0.28161460161209106, 0.12479235231876373, 0.7292612791061401, 0.3439851999282837, 0.8285167813301086, 0.9807502627372742, 0.4669044613838196, 1.0819649696350098, 0.07308939099311829, 0.82330322265625, -0.5707328915596008, 0.003582453355193138, 0.6944299340248108, 0.004758584313094616, 0.598882257938385, 0.17582884430885315, 0.21596944332122803, 0.801016092300415, 0.3218856155872345, 0.32559409737586975, 0.5137861371040344, 0.4105050563812256, -0.539205014705658, -0.20633935928344727, -0.34169065952301025, 0.024315735325217247, 0.22720691561698914, 0.7854788899421692, -0.3683601915836334, -0.16898521780967712, 0.22472214698791504, -0.07659060508012772, 0.12091107666492462, -0.0612567774951458, 0.7757200598716736, 0.025078434497117996, -0.8887311816215515, 0.5818068385124207, -0.08723831176757812, 0.7289039492607117, -0.7870888113975525, 0.04055120423436165, 0.09224309772253036, 0.4153282046318054, -0.06017299368977547, -0.8429046273231506, 0.49149230122566223, 0.015436948277056217, -0.053191374987363815, 0.2715393602848053, 0.8585227131843567, -0.3701081871986389, -0.3405834138393402, 0.3141159117221832, 0.5179880857467651, 0.5816876292228699, -0.21634353697299957, -0.9833417534828186, -0.060660962015390396, -0.19026361405849457, -0.16882403194904327, 0.026772694662213326, 0.7623814940452576, -0.5579192042350769, 0.8024528622627258, 0.43116146326065063, 0.07174184173345566, -0.0680965855717659, -0.13822844624519348, 0.5498505234718323, -0.5092342495918274, -0.3486142158508301, -0.640328049659729, 0.2558850646018982, -0.3928290009498596, -0.7168756127357483, 0.4451426863670349, 0.370855450630188, 0.27923792600631714, 0.18896271288394928, 0.5559259057044983, -0.11604592949151993, 0.05000023916363716, -0.3741997182369232, 0.5460005402565002, -0.4779340624809265, 0.041416555643081665, 0.1567467749118805, -0.384725958108902, -0.28041282296180725, 0.443466454744339, -0.6514898538589478, 0.15581077337265015, 0.7223864197731018, 0.8346719145774841, -0.13300982117652893, 0.32305434346199036, 0.2418864667415619, 0.07198386639356613, 0.23094211518764496, 1.0514914989471436, 0.7479791641235352, -0.04588308557868004, 0.7833142876625061, -0.2611179053783417, -0.5780307054519653, -0.5391062498092651, -0.6565067172050476, -0.7160158753395081, -0.43894442915916443, -0.3855678141117096, -0.0319160558283329, 0.3908340632915497, 0.6601152420043945, 0.550815224647522, -0.7745929956436157, 0.1973051130771637, 0.009381857700645924, -0.05261465162038803, -0.5882864594459534, -0.34775954484939575, 0.6226850152015686, -0.2869894802570343, -0.6040928959846497, 0.24261189997196198, 0.40941372513771057, -0.14484356343746185, -0.41982799768447876, -0.05957789719104767, 0.05225758254528046, -0.03160082548856735, 0.38883137702941895, 0.23134729266166687, -0.528311550617218, -0.4853701591491699, -0.13893860578536987, -0.33665239810943604, 0.043241169303655624, 0.37328001856803894, -0.6184565424919128, 0.6878098845481873, 0.6793524622917175, 0.4162885546684265, 0.638597309589386, 0.10115458816289902, 0.20340876281261444, -0.07138815522193909, -0.027341162785887718, 0.5363859534263611, 0.08446867018938065, 0.35446056723594666, -0.6944162845611572, 0.29788899421691895, 0.2087162733078003, -0.7624016404151917, -0.32457366585731506, -0.0562153160572052, -1.258653998374939, -0.34785571694374084, 0.5646884441375732, 0.018230920657515526, -0.39508721232414246, -0.6246777176856995, -0.6123312711715698, 0.4158399999141693, -0.4081873595714569, 1.231927752494812, 0.5735044479370117, -0.6343489289283752, 0.11684103310108185, -1.0641818046569824, 0.45722752809524536, 0.44478079676628113, -0.8526695370674133, -0.11670254170894623, 0.4120998978614807, 0.28177839517593384, 0.3709928095340729, 0.8135728240013123, -0.3494681417942047, 0.6236853003501892, -0.34613269567489624, 0.08126191794872284, -0.21097241342067719, 0.3899392783641815, -0.03369584679603577, 0.10451766103506088, -0.26336470246315, -0.26627299189567566 ]
http://arxiv.org/abs/2405.18540v1
http://arxiv.org/pdf/2405.18540v1
Learning diverse attacks on large language models for robust red-teaming and safety tuning
2024-05-28T19:16:17
2024-05-28T19:16:17
Seanie Lee, Minsu Kim, Lynn Cherif, David Dobre, Juho Lee, Sung Ju Hwang, Kenji Kawaguchi, Gauthier Gidel, Yoshua Bengio, Nikolay Malkin, Moksh Jain
cs.CL
cs.CL, cs.CR, cs.LG
Red-teaming, or identifying prompts that elicit harmful responses, is a critical step in ensuring the safe and responsible deployment of large language models (LLMs). Developing effective protection against many modes of attack prompts requires discovering diverse attacks. Automated red-teaming typically uses reinforcement learning to fine-tune an attacker language model to generate prompts that elicit undesirable responses from a target LLM, as measured, for example, by an auxiliary toxicity classifier. We show that even with explicit regularization to favor novelty and diversity, existing approaches suffer from mode collapse or fail to generate effective attacks. As a flexible and probabilistically principled alternative, we propose to use GFlowNet fine-tuning, followed by a secondary smoothing phase, to train the attacker model to generate diverse and effective attack prompts. We find that the attacks generated by our method are effective against a wide range of target LLMs, both with and without safety tuning, and transfer well between target LLMs. Finally, we demonstrate that models safety-tuned using a dataset of red-teaming prompts generated by our method are robust to attacks from other RL-based red-teaming approaches.
[ -0.46188458800315857, -1.0394395589828491, 0.1510373055934906, 0.16069655120372772, -0.05516449734568596, 0.20614585280418396, -0.32277345657348633, -0.5709491968154907, 0.035454124212265015, 0.5005771517753601, -0.8057651519775391, -0.5440398454666138, -0.7037824988365173, 0.17261752486228943, -0.29261741042137146, 1.3527004718780518, 0.18285691738128662, -0.12098238617181778, 0.5000497102737427, -0.18734055757522583, -0.6325035691261292, -0.37856167554855347, -1.0460983514785767, -0.08636367321014404, 0.7211934328079224, 0.3858467936515808, 0.5962689518928528, 0.4246392250061035, 0.5178607702255249, 0.3869694769382477, -0.049309927970170975, 0.18685027956962585, -0.662882387638092, 0.49636414647102356, -0.24791567027568817, -0.37251409888267517, -0.0678497850894928, -0.14587843418121338, 0.48337849974632263, 0.34368643164634705, -0.1400458663702011, -0.0636044591665268, 0.0018344586715102196, 0.3850606083869934, -0.688998281955719, -0.1481872797012329, -1.3358358144760132, 0.18397538363933563, -0.03551472723484039, -0.11867214739322662, -0.660251796245575, -0.050672657787799835, -0.07067131251096725, -0.36182793974876404, 0.17217862606048584, 0.12445377558469772, 0.8282746076583862, 0.46534350514411926, -0.3183767795562744, -0.09414547681808472, -0.4564530551433563, 0.8510646224021912, -0.38780173659324646, -0.0693540871143341, 0.07834126800298691, 0.6970290541648865, -0.48127511143684387, -0.3251807689666748, -0.19871865212917328, -0.2131832242012024, -0.1470024436712265, 0.06622155010700226, -0.41717806458473206, 0.30498331785202026, 0.18555307388305664, -0.08518730849027634, -0.6554921865463257, 0.625694990158081, -0.32318177819252014, -0.26142576336860657, 0.7387343049049377, 0.3656562864780426, 0.5244529843330383, 0.28050345182418823, -0.622998058795929, -0.21747899055480957, -0.45173001289367676, 0.016839921474456787, 0.5356387495994568, 0.707602858543396, -0.43378308415412903, 0.13329410552978516, -0.30512410402297974, 0.7288005948066711, 0.1113157793879509, 0.08047673851251602, -0.12477470934391022, -0.3303104341030121, -0.29309988021850586, -0.23008708655834198, 0.8833259344100952, 0.26063239574432373, 0.28954100608825684, -0.28630247712135315, -0.44945478439331055, 0.16317017376422882, 0.524278998374939, -0.6384588479995728, -0.44823765754699707, 0.3207635283470154, -0.08755600452423096, -0.6435283422470093, -0.055060748010873795, -0.8084468245506287, -0.4850963056087494, 0.0061390092596411705, 0.20414774119853973, -0.3153461813926697, -0.19019797444343567, 0.09002844989299774, -0.25324127078056335, 0.15834704041481018, 0.31901803612709045, -1.034749984741211, 0.24639852344989777, 0.6590760350227356, 0.6734817624092102, -0.45917177200317383, -0.41243964433670044, -1.1500753164291382, 0.0007128234719857574, -0.1602514237165451, 0.5781376957893372, -0.5688816905021667, -0.25145989656448364, -0.008390156552195549, -0.08181095868349075, -0.12278991937637329, -0.549072802066803, 0.29031652212142944, -0.7540473937988281, -0.07850362360477448, 0.12225417792797089, -0.199390709400177, -0.13537342846393585, 0.5383456349372864, -0.5789341926574707, 0.36950889229774475, -0.13334164023399353, -0.7110951542854309, 0.4007447361946106, -0.6728242039680481, -0.36930051445961, 0.20150604844093323, -0.16852857172489166, -0.6251196265220642, -0.04132290557026863, 0.12008650600910187, 0.5500681400299072, 0.02782091498374939, 0.07050080597400665, -0.4254436194896698, 0.02037573978304863, 0.08567547798156738, -0.24659554660320282, 0.8595131039619446, 0.31943392753601074, -0.3159169554710388, 0.8519852161407471, -0.4273184835910797, 0.23696239292621613, 0.10165403038263321, -0.4296770691871643, -0.0480697825551033, -0.08839025348424911, -0.0007939606439322233, 0.06628212332725525, -0.10367196798324585, -0.31723546981811523, -0.0482533760368824, -0.4401354491710663, 0.40860292315483093, 0.758622407913208, 0.2893249988555908, 0.25546637177467346, -0.5122187733650208, 0.7018798589706421, -0.006918912287801504, 0.34543704986572266, 0.031119752675294876, -0.42474353313446045, -0.37092530727386475, -0.5225924849510193, 0.16044791042804718, 0.7509810328483582, -0.7783029675483704, 0.2852948009967804, 0.10204525291919708, -0.7009636759757996, -0.3003670573234558, 0.23686771094799042, 0.49654537439346313, 0.5256609916687012, 0.5570976138114929, -0.0024815902579575777, -0.5444772839546204, -0.8696121573448181, -0.42258647084236145, -0.1439635306596756, 0.0701662003993988, 0.3563426733016968, 0.6276954412460327, -0.6127669215202332, 0.5924664735794067, -0.18047933280467987, -0.07283143699169159, -0.34895822405815125, 0.30031460523605347, -0.023143934085965157, 0.624477207660675, 0.659124493598938, -0.7914540767669678, -0.735621988773346, 0.1015392541885376, -0.4919339418411255, 0.020622840151190758, -0.39379945397377014, -0.09711968153715134, 0.27237316966056824, 0.5725418925285339, -0.12466510385274887, -0.06052669137716293, 0.816066563129425, -0.41813838481903076, 0.5766606330871582, -0.03259921073913574, 0.02649480663239956, -0.8703285455703735, -0.14797411859035492, 0.18478570878505707, -0.2693702280521393, -0.8289306163787842, 0.5111387968063354, 0.0268779918551445, -0.09613104164600372, -0.7771666049957275, 0.6469787955284119, -0.18936005234718323, 0.28815582394599915, -0.20454011857509613, -0.19641193747520447, -0.3897545039653778, 0.4230877757072449, -0.04406389221549034, 0.7029550075531006, 0.6175357699394226, -0.7052608728408813, 0.3303373157978058, -0.13749167323112488, -0.09320071339607239, 0.30135074257850647, -0.9168233275413513, 0.07051973044872284, -0.042821139097213745, 0.18590524792671204, -0.8251043558120728, -0.4757785201072693, 0.4674089252948761, -0.36736252903938293, 0.5599215626716614, -0.39386168122291565, -0.06538797169923782, 0.02127940021455288, -0.2803944945335388, 0.5422019958496094, 0.49223071336746216, -0.5623621940612793, 0.3499247431755066, 0.5583031177520752, -0.13530400395393372, -0.7457495331764221, -0.3843526840209961, 0.03079480491578579, -0.6244544982910156, -0.7068535089492798, 0.20104186236858368, -0.09412690997123718, -0.3598705232143402, -0.3814742863178253, 0.0713646188378334, -0.2450198531150818, 0.9031224846839905, 0.22496837377548218, 0.0873229056596756, 0.08587048202753067, -0.15789467096328735, -0.09416124224662781, -0.1039881706237793, 0.12790030241012573, -0.2640628516674042, 0.5249242186546326, -0.21829941868782043, -0.2937518358230591, -0.3016740083694458, 0.47925910353660583, 0.5316003561019897, -0.11890316009521484, 0.7989652156829834, 0.7222378253936768, -0.2448020875453949, -0.5876455307006836, -0.21785438060760498, -0.5827632546424866, -0.5238456726074219, 0.6823639273643494, 0.026711346581578255, -1.33225417137146, 0.49124884605407715, 0.08020656555891037, 0.40465205907821655, 0.39670923352241516, 0.5408628582954407, -0.17351949214935303, 1.00608491897583, 0.6690641641616821, -0.13894765079021454, 0.5640239119529724, 0.09509854763746262, -0.27391481399536133, -0.3703352212905884, 0.03505735099315643, -0.6021603941917419, -0.38389426469802856, -0.7776912450790405, -0.08076421916484833, 0.5010427236557007, 0.008900927379727364, -0.5899872779846191, 0.10777710378170013, -0.4298900365829468, 0.7284727096557617, 0.3996638059616089, 0.0840175673365593, -0.11392892897129059, -0.04085767641663551, -0.17219795286655426, 0.09123269468545914, -0.7181645035743713, -0.13989438116550446, 0.8062623143196106, 0.6446067690849304, 0.8478015661239624, 0.30788445472717285, 0.8763906359672546, 0.32013893127441406, 0.16796278953552246, -0.6696738600730896, 0.32464364171028137, -0.0011912975460290909, -0.48856231570243835, -0.5022586584091187, -0.7406668066978455, -1.1231340169906616, 0.24099241197109222, -0.5427869558334351, -0.6571237444877625, -0.29987311363220215, 0.37669846415519714, -0.6034706830978394, 0.3715999722480774, -0.7751891016960144, 0.8797370195388794, -0.3877982199192047, -0.11628594994544983, -0.1783181130886078, -0.7273818850517273, 0.5636755228042603, -0.10300622880458832, 0.176117405295372, 0.04462387412786484, 0.0095444330945611, 0.5146878957748413, -0.12725941836833954, 1.254559874534607, -0.25198155641555786, -0.07569155842065811, -0.08789178729057312, 0.20290464162826538, 0.7317732572555542, 0.3707699775695801, 0.26054418087005615, 0.1090642586350441, -0.46373987197875977, -0.5292682647705078, -0.4182126224040985, 0.5375068187713623, -0.7913818955421448, -0.7472717761993408, -0.19500835239887238, -0.610569179058075, -0.2708992063999176, 0.22955670952796936, 0.2588438093662262, 0.03788042068481445, -0.06312741339206696, 0.09442701935768127, 0.9935566782951355, -0.5144303441047668, 0.5372025966644287, 0.48577168583869934, 0.1380043625831604, -0.4946313500404358, 0.8489605188369751, -0.2722140848636627, 0.6774784326553345, 0.3020331561565399, 0.11124960333108902, -0.12775681912899017, -0.986537754535675, -0.3072352409362793, -0.01381310448050499, -0.5030307173728943, -0.4479564428329468, -0.456581711769104, -0.193328857421875, -0.1082395538687706, -0.21872860193252563, -0.27416568994522095, 0.02905106730759144, -0.06193355843424797, -0.027595549821853638, 0.4274745583534241, 0.5399307012557983, -0.009507672861218452, 0.2007610946893692, -0.925752580165863, 0.08113771677017212, 0.6618483066558838, 0.2238101065158844, -0.19451399147510529, -0.4441165626049042, -0.1468920111656189, 0.10377097129821777, -0.13528212904930115, -0.8273895382881165, 0.4827830195426941, 0.146669402718544, 0.6962480545043945, 0.06736855208873749, 0.2847699820995331, 0.1294376403093338, -0.38972312211990356, 0.633891761302948, 0.36533528566360474, -0.6316816210746765, 0.7041550278663635, -0.7355671525001526, 0.17623743414878845, 0.6648915410041809, 0.3585532605648041, -0.3994917571544647, -0.5439783930778503, -0.6106399893760681, -0.9404089450836182, 0.5462905168533325, -0.08876729011535645, 0.062419500201940536, -0.2292146384716034, 0.06011838838458061, 0.009707939811050892, 0.07668059319257736, -0.8917763233184814, -0.38996148109436035, -0.004457157105207443, -0.1293528974056244, 0.09160425513982773, -0.06940620392560959, -0.5045133829116821, 0.13782012462615967, 0.6613849401473999, -0.37332430481910706, -0.07726961374282837, -0.20049019157886505, -0.14471769332885742, -0.0723019689321518, 0.4743395447731018, 0.9471370577812195, 0.03340759128332138, 0.0771222785115242, 0.12675955891609192, 0.555199921131134, -0.2988852262496948, 0.15119421482086182, -0.12386560440063477, -0.2770068347454071, -0.3248201906681061, 0.3711397349834442, 0.8995761871337891, 0.22459402680397034, -0.6192898750305176, 0.24491311609745026, -0.36662599444389343, -0.3757767379283905, 0.09165681153535843, 0.673306941986084, -0.1911969780921936, 0.36680805683135986, 0.02681807614862919, 0.3947378993034363, -0.14884069561958313, -0.3225676417350769, 0.3575987219810486, 0.9550455212593079, -0.5421379208564758, -0.11011239886283875, 0.4584807753562927, 0.39766576886177063, -0.24995540082454681, 0.3387838900089264, -0.2785818576812744, -0.6345276832580566, 0.7888076305389404, 0.45631006360054016, 0.97293621301651, -0.07237792760133743, 0.19237114489078522, 0.393216997385025, 0.4320361614227295, -0.018855366855859756, 0.06161685660481453, 0.20656727254390717, -0.6980748772621155, -0.36013174057006836, -0.47995632886886597, -0.5678256154060364, 0.1978973150253296, -0.48336362838745117, 0.1645340770483017, -0.8683304786682129, 0.0013022483326494694, -0.22967803478240967, -0.03901147097349167, -0.47858959436416626, 0.09097859263420105, 0.23411241173744202, 0.8129890561103821, -0.9138877391815186, 0.6666932106018066, 0.8322272896766663, -0.2993343770503998, -0.7904065251350403, 0.00636292202398181, 0.1925232708454132, -0.6665955185890198, 0.6766225099563599, 0.03941188007593155, -0.07923838496208191, -0.15616384148597717, -0.5986411571502686, -0.5658096075057983, 0.8238490223884583, 0.4895351231098175, -0.680825412273407, 0.1364893764257431, -0.09202934801578522, 0.3190561532974243, -0.2852814495563507, 0.15662707388401031, 0.2902986705303192, 0.4177098870277405, -0.0762423425912857, -1.035404086112976, 0.09705810248851776, -0.05651896446943283, -0.20223577320575714, 0.20811261236667633, -0.7313271760940552, 0.9358812570571899, -0.33247634768486023, -0.4370090365409851, -0.3078021705150604, 0.6107662320137024, 0.4204481542110443, -0.06334826350212097, 0.6870859861373901, 0.394020140171051, 0.9419679045677185, -0.01747823692858219, 0.9440842866897583, -0.10695949196815491, 0.06385885924100876, 1.2001105546951294, 0.16096194088459015, 0.7165922522544861, 0.2758755385875702, 0.23489271104335785, 0.19034530222415924, 0.46270376443862915, -0.07129248231649399, 0.5627557635307312, 0.4684460759162903, -0.23601296544075012, -0.4986521899700165, 0.06434468924999237, -0.23992832005023956, 0.24142570793628693, 0.29652538895606995, -0.22110198438167572, -0.4028846025466919, -0.13389551639556885, 0.09606947004795074, 0.2126161903142929, -0.4530796408653259, 0.9417029023170471, -0.09993667900562286, -0.7311021089553833, 0.8066869974136353, 0.04356313869357109, 1.2470760345458984, -0.6928972005844116, 0.20187391340732574, -0.10283996909856796, -0.007425302639603615, -0.25309550762176514, -0.617691159248352, 0.3739010989665985, 0.0056924521923065186, -0.36354875564575195, -0.01815289817750454, 0.6252263188362122, -0.44616031646728516, -0.025842012837529182, 0.30758169293403625, 0.19577986001968384, -0.3106350600719452, 0.1990058720111847, -0.8797085285186768, 0.10377968847751617, 0.21363499760627747, 0.10550403594970703, 0.7450804114341736, 0.34403911232948303, -0.011337348259985447, 0.8372772336006165, 0.47621312737464905, 0.1916227638721466, 0.0994788333773613, -0.05809180065989494, 0.7513671517372131, -0.40846800804138184, -0.5341311693191528, -1.036329984664917, 0.7126470804214478, -0.13389995694160461, -0.33446282148361206, 0.4846402406692505, 0.045073214918375015, 0.939173698425293, -0.10162302851676941, 0.947540819644928, 0.3772493600845337, 0.32836073637008667, -0.6577150821685791, 0.912871778011322, -0.30619800090789795, 0.3471437394618988, -0.29590940475463867, -0.3660013675689697, -0.5338115096092224, 0.5089429616928101, -0.08224906772375107, 0.005934597924351692, 0.33798494935035706, 0.8618367910385132, 0.06230670586228371, -0.10352173447608948, 0.2185402810573578, 0.09617117047309875, 0.7442348599433899, 0.6421285271644592, 0.8060346245765686, -0.1610628366470337, 0.6005069613456726, 0.030005548149347305, -0.3053615689277649, -0.16502012312412262, -1.0855785608291626, -1.1985225677490234, -0.29656782746315, -0.4657466411590576, -0.2982696294784546, 0.2759150564670563, 1.146427035331726, 0.689371645450592, -1.1135594844818115, 0.01447691023349762, -0.17938676476478577, 0.2755865752696991, -0.13180917501449585, -0.19630523025989532, -0.1799647957086563, -1.0083647966384888, -0.4069940447807312, 0.6438308954238892, 0.06899861246347427, 0.16166183352470398, -0.13995157182216644, -0.289238303899765, 0.09155664592981339, -0.15289375185966492, 0.21292950212955475, 0.6708363890647888, -0.5587908625602722, -0.5832078456878662, -0.13663554191589355, -0.18290603160858154, -0.34207141399383545, 0.385060578584671, -0.5290251970291138, 0.20676425099372864, 0.3900049924850464, 1.0637671947479248, -0.24939946830272675, -0.12125995010137558, 0.7341200113296509, -1.059084415435791, 0.07289391756057739, 0.471585750579834, 0.2879914939403534, 0.11867225170135498, -0.3387715816497803, 0.40706443786621094, 0.02056807652115822, -0.5496907830238342, -0.9313780665397644, 0.5751742124557495, -0.7772287726402283, -0.41171467304229736, 1.386679768562317, -0.12073992937803268, -0.08496572822332382, -0.33310580253601074, -0.16118274629116058, -0.007242945022881031, -0.5321144461631775, 0.9262934327125549, 0.22348828613758087, 0.03213293105363846, 0.07793094217777252, -0.23363500833511353, 0.9412986040115356, 0.552803099155426, -0.8538786172866821, 0.11555363982915878, 0.4586794972419739, 0.296513170003891, 0.034490808844566345, 0.0912790596485138, 0.2513531446456909, 0.48090752959251404, -0.1561342030763626, -0.41191527247428894, -0.18949945271015167, -0.6351871490478516, -0.5265242457389832, 0.5348221659660339, 0.1535515934228897, -0.11839306354522705 ]
http://arxiv.org/abs/2406.00050v2
http://arxiv.org/pdf/2406.00050v2
An Empirical Analysis on Large Language Models in Debate Evaluation
2024-05-28T18:34:53
2024-06-04T14:51:25
Xinyi Liu, Pinxin Liu, Hangfeng He
cs.CL
cs.CL, cs.AI
In this study, we investigate the capabilities and inherent biases of advanced large language models (LLMs) such as GPT-3.5 and GPT-4 in the context of debate evaluation. We discover that LLM's performance exceeds humans and surpasses the performance of state-of-the-art methods fine-tuned on extensive datasets in debate evaluation. We additionally explore and analyze biases present in LLMs, including positional bias, lexical bias, order bias, which may affect their evaluative judgments. Our findings reveal a consistent bias in both GPT-3.5 and GPT-4 towards the second candidate response presented, attributed to prompt design. We also uncover lexical biases in both GPT-3.5 and GPT-4, especially when label sets carry connotations such as numerical or sequential, highlighting the critical need for careful label verbalizer selection in prompt design. Additionally, our analysis indicates a tendency of both models to favor the debate's concluding side as the winner, suggesting an end-of-discussion bias.
[ -0.7243446111679077, -0.9406508803367615, 0.8816447854042053, 0.17631366848945618, -0.15663152933120728, 0.13719721138477325, -0.445292204618454, -0.37978556752204895, -0.03793533891439438, 0.41070500016212463, -0.24078653752803802, -0.20920775830745697, -0.6708699464797974, 0.24792902171611786, -0.19689705967903137, 1.120134711265564, -0.0031032937113195658, 0.2871948182582855, -0.08062414079904556, -0.15217354893684387, -0.533805251121521, -0.703223705291748, -0.7399107217788696, -0.5217102766036987, 0.7919538617134094, 0.2139735370874405, 0.8754109740257263, 0.3177136778831482, 0.23328284919261932, 0.3548673987388611, -0.4545041024684906, -0.29612085223197937, -0.4260355234146118, 0.2153337448835373, -0.3879636824131012, -0.27183419466018677, -0.4641517102718353, 0.3524194061756134, 0.7345675230026245, 0.5710120797157288, -0.05033542588353157, -0.0603904202580452, -0.028949599713087082, 0.6659486889839172, -0.34584155678749084, -0.06409062445163727, -0.8337430357933044, -0.08866295963525772, -0.39333999156951904, -0.03633398935198784, -0.49040380120277405, -0.5443549156188965, 0.5432421565055847, -0.3408449590206146, 0.09497150778770447, 0.20300863683223724, 0.8873721361160278, -0.04411904513835907, -0.4272992014884949, -0.47551965713500977, -0.4364224672317505, 0.5679894089698792, -0.9228518009185791, 0.29040253162384033, 0.052515167742967606, 0.12384485453367233, -0.23656776547431946, -0.6608492136001587, -0.5568027496337891, -0.4986988604068756, 0.1691935807466507, 0.11025501042604446, -0.25682249665260315, 0.36665064096450806, 0.44499465823173523, 0.2816166579723358, -0.4343239665031433, 0.6467410326004028, -0.28152766823768616, 0.08800145983695984, 0.49904966354370117, 0.13727585971355438, 0.059694189578294754, -0.21927213668823242, -0.31040602922439575, 0.003631835337728262, -0.6969311833381653, -0.15805652737617493, 0.6753366589546204, 0.1732199788093567, 0.23076219856739044, 0.5081532597541809, -0.12817668914794922, 0.719940185546875, 0.06903927773237228, 0.28167030215263367, 0.10777627676725388, -0.3962475657463074, -0.26966872811317444, -0.14707450568675995, 1.1676613092422485, 0.36414051055908203, 0.19461196660995483, 0.10491464287042618, -0.25300902128219604, 0.07563454657793045, 0.0891314372420311, -0.8657528758049011, -0.19034366309642792, 0.1259392648935318, -0.35814958810806274, -0.20570108294487, -0.23048709332942963, -0.9071242213249207, -0.5480625033378601, -0.27233564853668213, 0.2816295325756073, 0.06965865939855576, -0.14009889960289001, 0.15853990614414215, -0.24160753190517426, 0.1778864562511444, 0.28978389501571655, -0.7771425247192383, 0.34247633814811707, 0.911607563495636, 0.6530160903930664, -0.29807886481285095, -0.06965476274490356, -0.32674649357795715, -0.2826496660709381, -0.46297964453697205, 0.9801883697509766, -0.9550681114196777, -0.5032109618186951, 0.021218840032815933, -0.10433129966259003, -0.09957993030548096, -0.5314573645591736, 1.0784962177276611, -0.6862945556640625, 0.5317383408546448, -0.7051520943641663, -0.7726055979728699, -0.1507865935564041, 0.2915973961353302, -0.8979767560958862, 0.6825117468833923, -0.23189102113246918, -1.0518920421600342, 0.5008026361465454, -0.8398962616920471, -0.1284257024526596, 0.06434748321771622, -0.457187682390213, -0.3862875699996948, 0.13113026320934296, 0.19365906715393066, 0.2728821039199829, -0.8123542070388794, 0.5351737141609192, -0.5018249750137329, -0.2879899740219116, 0.5991983413696289, -0.6006813645362854, 0.6427960395812988, 0.20320729911327362, -0.5813040137290955, 0.31645143032073975, -0.5059755444526672, -0.07429865002632141, 0.1729842722415924, -0.37281468510627747, -0.29023927450180054, 0.0940154567360878, -0.1893472522497177, 0.25046178698539734, -0.0037812411319464445, -0.5406405925750732, 0.22969557344913483, -0.3340992331504822, 0.518514096736908, 0.9733020067214966, -0.07002303749322891, 0.32479777932167053, -0.05620861425995827, 0.7047773599624634, -0.36080560088157654, -0.12887202203273773, -0.03661172091960907, -0.5915571451187134, -0.6903522610664368, 0.049365583807229996, 0.6047006845474243, 0.390756756067276, -0.5136726498603821, -0.13399235904216766, -0.27886125445365906, -0.25239720940589905, -0.3782080113887787, -0.09660130739212036, 0.5164967775344849, 0.2841658890247345, -0.045099884271621704, -0.12782947719097137, -0.4934891164302826, -1.277025580406189, -0.4814707338809967, -0.3455738425254822, -0.032606158405542374, 0.46165984869003296, 0.5032289028167725, 0.0646621361374855, 0.8983339071273804, -0.35002800822257996, 0.34224697947502136, -0.2973199188709259, 0.36309096217155457, 0.1930377185344696, 0.057099808007478714, 0.3433493673801422, -0.4027642011642456, -0.2234395295381546, 0.009828206151723862, -0.47933173179626465, -0.5871331691741943, -0.05483046919107437, -0.08240910619497299, 0.29710251092910767, 0.12066604197025299, -0.7336398959159851, 0.04632437601685524, 0.4015786647796631, -0.5289492607116699, 0.7112773060798645, 0.13725771009922028, 0.14310795068740845, -0.7576736211776733, -0.0757790207862854, 0.2930438816547394, 0.1561277061700821, -0.5799432992935181, -0.035913385450839996, -0.10803134739398956, 0.11688157171010971, -0.12003576755523682, 0.7128938436508179, -0.38206496834754944, -0.06624025106430054, -0.29043418169021606, 0.46731942892074585, 0.17885595560073853, 0.17120328545570374, 0.24981993436813354, 0.7841075658798218, 0.10422239452600479, -0.2557666599750519, 0.3007729947566986, 0.08259725570678711, -0.6074117422103882, 0.4531732499599457, -0.9381487369537354, 0.47315752506256104, 0.07246800512075424, 0.5496478080749512, -1.2211158275604248, -0.12295342236757278, 0.18664495646953583, -0.2993033230304718, 0.30931419134140015, -0.07314343750476837, -0.3866543471813202, -0.6440396308898926, -0.39461764693260193, 0.3793453574180603, 0.21487019956111908, -0.41575732827186584, 0.045311421155929565, 0.4190921187400818, -0.6957356333732605, -0.5773009061813354, -0.23272719979286194, 0.30575087666511536, -0.5171558856964111, -0.5434956550598145, -0.045913297683000565, 0.027527015656232834, -0.6943895816802979, -0.2922222912311554, 0.15268678963184357, 0.11512415111064911, -0.14833316206932068, -0.0703633651137352, 0.30622702836990356, -0.290359765291214, 0.18065719306468964, -0.23456664383411407, 0.11890453100204468, 0.42297065258026123, -0.07555553317070007, 0.41059088706970215, -0.18525893986225128, -0.395452618598938, -0.12380345910787582, 0.2643144428730011, 0.44354650378227234, 0.03692891448736191, 0.3905263841152191, 0.30705636739730835, -0.02873510867357254, 0.01268220879137516, -1.041587233543396, -0.050105880945920944, -0.430046945810318, 0.6923089027404785, -0.3918892443180084, -1.1081914901733398, 0.4708477258682251, 0.08713183552026749, 0.23383770883083344, 0.4878622889518738, 0.8880155682563782, 0.32164067029953003, 1.024375557899475, 0.05415483936667442, -0.09729810804128647, 0.3712230622768402, 0.08228027820587158, 0.19651851058006287, -1.089085578918457, -0.193419948220253, -0.7873604893684387, -0.3122466206550598, -0.4648866057395935, -0.425791472196579, 0.13801051676273346, -0.2153528928756714, -0.4179317355155945, -0.18897487223148346, -0.4179094731807709, 0.5104363560676575, 0.2050243765115738, -0.1845964789390564, 0.07443730533123016, -0.08829719573259354, -0.27775195240974426, -0.24031299352645874, -0.6325138807296753, -0.7532560229301453, 0.9657264947891235, 0.7831476926803589, 0.7587662935256958, -0.011050843633711338, 0.15382207930088043, 0.08831536769866943, 0.5271899700164795, -0.8227823376655579, 0.551795482635498, 0.3334263563156128, -0.8190460801124573, -0.3546023964881897, -0.443109929561615, -0.9712191820144653, 0.7953442931175232, 0.11549053341150284, -0.6248437762260437, 0.11038053035736084, -0.11916861683130264, -0.31556156277656555, 0.29454943537712097, -0.6378810405731201, 0.8300749063491821, -0.2847663462162018, -0.665911078453064, -0.07062770426273346, -0.43371516466140747, 0.7009144425392151, -0.05721386894583702, 0.30990397930145264, -0.04025848209857941, -0.021581700071692467, 1.1437104940414429, -0.28527551889419556, 0.6367694139480591, -0.22976936399936676, -0.496145099401474, 0.3898421823978424, -0.06373798102140427, 0.6030579805374146, 0.06552541255950928, -0.21907047927379608, -0.09848698228597641, -0.3718983829021454, -0.14148977398872375, -0.5506907105445862, 0.7243136763572693, -0.7462567090988159, -1.0976210832595825, -0.47390860319137573, -0.24971331655979156, -0.35854312777519226, -0.1153043881058693, 0.2418574094772339, 0.4081937372684479, -0.5318133234977722, 0.13810689747333527, 0.5828269720077515, -0.46875423192977905, 0.36032354831695557, 0.5405622720718384, -0.22866082191467285, -0.5371845960617065, 0.499905526638031, 0.17607811093330383, 0.40676477551460266, -0.03829177841544151, 0.5589372515678406, -0.6682754755020142, -0.5266873836517334, -0.5491977334022522, 0.18151959776878357, -0.8528224229812622, -0.021406397223472595, -0.7228137850761414, -0.12076861411333084, -0.1286112666130066, 0.014477863907814026, -0.31053853034973145, -0.48268166184425354, 0.004760768264532089, -0.39129701256752014, 0.1390715092420578, 1.1802908182144165, 0.2924205958843231, 0.30897659063339233, -0.22630032896995544, -0.09407804161310196, 0.5004290342330933, 0.2714916169643402, 0.162974551320076, -0.7979215979576111, 0.039616722613573074, -0.17564740777015686, -0.6199203729629517, -0.9679831266403198, 0.013340598903596401, -0.19519412517547607, 0.6393086910247803, 0.31337618827819824, -0.33478081226348877, 0.4082886576652527, -0.7577998638153076, 1.112579345703125, 0.11447571218013763, -0.8214066028594971, 0.2801360487937927, -0.6364724636077881, 0.29197174310684204, 0.38039010763168335, 0.10819582641124725, -0.35068416595458984, -0.23772427439689636, -0.6560230255126953, -0.8120703101158142, 0.6175680756568909, 0.13896521925926208, 0.007253557443618774, -0.2637491524219513, 0.08202940970659256, 0.15631717443466187, 0.2173301726579666, -0.7682758569717407, 0.10834229737520218, 0.04729020595550537, 0.4461624026298523, 0.11974960565567017, -0.6650435328483582, -0.17898838222026825, -0.13764412701129913, 0.6126869916915894, 0.006012035999447107, 0.009615669026970863, -0.08394752442836761, 0.2255195528268814, 0.08435522764921188, 0.856132984161377, 0.9382845163345337, 0.9079297780990601, 0.027254318818449974, 0.05426078662276268, 0.3830266296863556, -0.09104195237159729, 0.267958402633667, 0.1265108734369278, -0.07617846876382828, 0.15365949273109436, 0.339781254529953, 1.2202128171920776, 0.3458378314971924, -0.41450658440589905, 0.4953323304653168, -0.07264019548892975, -0.33434146642684937, -0.00941547378897667, -0.34302085638046265, 0.2600686848163605, 0.2499624490737915, 0.22723451256752014, -0.23987087607383728, 0.36612609028816223, -0.48427674174308777, 0.03864936903119087, 0.726603090763092, -0.0669686570763588, -0.46507489681243896, 0.7034033536911011, 0.3524353802204132, -0.1482113003730774, 0.23784181475639343, -0.12149213254451752, -0.8626156449317932, 0.5834365487098694, 0.6106391549110413, 0.9618412256240845, -0.40759870409965515, 0.24091945588588715, 0.27801600098609924, 0.30173367261886597, -0.10979444533586502, 0.11462611705064774, 0.17585118114948273, -0.5295663475990295, -0.5393884778022766, -0.5537856817245483, -0.5956745147705078, 0.5491786003112793, -0.4793632924556732, 0.1844257414340973, -0.426474928855896, -0.41899436712265015, 0.08714758604764938, 0.11735234409570694, -0.6426834464073181, -0.060404833406209946, 0.3393380641937256, 0.8164355754852295, -0.8094349503517151, 0.4990619719028473, 0.6911303400993347, -0.05301012098789215, -0.6329573392868042, -0.1267591267824173, 0.10853841155767441, -0.5446314811706543, 0.7528483867645264, 0.006942179054021835, -0.07845832407474518, -0.5405607223510742, -0.39558717608451843, -0.8032377362251282, 0.5921420454978943, 0.3427131175994873, -0.7047743201255798, -0.015824276953935623, -0.045829106122255325, 0.599888265132904, -0.35845404863357544, 0.8212958574295044, 0.8401191234588623, 0.6155387759208679, 0.2797861695289612, -1.2694344520568848, 0.11069098860025406, -0.2206382006406784, 0.29533132910728455, 0.02402445673942566, -0.8435438871383667, 0.872144341468811, -0.13679669797420502, -0.03208049014210701, 0.0099668363109231, 0.5986118316650391, 0.623843252658844, 0.2021045982837677, 0.2708502411842346, 0.3793172240257263, 0.6976171135902405, -0.0908133015036583, 1.0571917295455933, 0.016257895156741142, 0.12352804839611053, 1.208178997039795, -0.5080444812774658, 0.7388334274291992, 0.3601745069026947, -0.45604437589645386, 0.38296112418174744, 0.8323352336883545, 0.16601234674453735, 0.1577344387769699, 0.7064676284790039, -0.2133765071630478, -0.07377690821886063, -0.07729270309209824, -0.4855770468711853, 0.26512715220451355, 0.5709038972854614, -0.43548378348350525, -0.12326771020889282, -0.1955333650112152, 0.48503372073173523, -0.04228227585554123, -0.17387475073337555, 0.7339538931846619, 0.14533847570419312, -0.9465941190719604, 0.591787576675415, 0.030529476702213287, 0.5136604309082031, -0.30359768867492676, 0.06519965827465057, -0.12227755784988403, -0.005968513898551464, -0.08159075677394867, -0.9323867559432983, -0.2263941913843155, 0.1550956517457962, 0.0572449192404747, -0.01586858183145523, 0.6198745965957642, -0.2448120415210724, -0.39967772364616394, 0.17171341180801392, 0.4163036346435547, 0.11349442601203918, 0.14819787442684174, -0.7415550947189331, 0.653198778629303, -0.045711759477853775, -0.8998298048973083, 0.29124197363853455, 0.6651293039321899, -0.16932226717472076, 0.5351539254188538, 0.350614070892334, 0.0883387103676796, -0.041338518261909485, 0.40573641657829285, 1.0534136295318604, -0.5118067860603333, -0.4044783115386963, -1.1286382675170898, 0.20930185914039612, -0.24779357016086578, -0.3394645154476166, 0.8230358958244324, 0.7024180889129639, 0.42646822333335876, 0.20104540884494781, 1.020980715751648, 0.19418965280056, 0.5031241774559021, -0.6108124256134033, 0.4191276431083679, -0.001532282680273056, 0.4478927552700043, -0.5917407274246216, -0.9852439165115356, -0.007573190610855818, 0.6284564733505249, -0.7633326649665833, 0.47810110449790955, 0.7012115120887756, 0.45763030648231506, 0.14677076041698456, 0.35939422249794006, 0.16306009888648987, 0.4423440992832184, 0.5680402517318726, 0.542171835899353, 1.256749153137207, -0.052477914839982986, 0.2252342402935028, 0.37368640303611755, -0.32788512110710144, -0.032921016216278076, -0.9175922274589539, -1.1363333463668823, -0.3757691979408264, -0.16583645343780518, -0.35447677969932556, -0.038793303072452545, 0.8815014958381653, 0.2798862159252167, -0.648841381072998, -0.33547669649124146, 0.22971269488334656, 0.13115812838077545, 0.4850695729255676, -0.2184741199016571, 0.36445561051368713, -0.2985690236091614, -0.7730728387832642, 0.2527715563774109, 0.16082589328289032, -0.23260577023029327, -0.40787145495414734, -0.08698315173387527, -0.12371261417865753, 0.38275566697120667, 0.7401258945465088, 0.13683651387691498, -1.2257118225097656, -0.3809237778186798, -0.21565838158130646, 0.0056163170374929905, 0.08402767032384872, 0.8774582743644714, -0.7727927565574646, 0.361240416765213, 0.4646734297275543, 0.6023862361907959, 0.18910256028175354, 0.2564447224140167, 0.7777918577194214, -0.3025571405887604, -0.04035190865397453, 0.2288338541984558, 0.3607020080089569, 0.4414356052875519, -0.04003973677754402, 0.5596521496772766, 0.08971615880727768, -0.9945818185806274, -0.9693619012832642, 0.18262118101119995, -0.6804788112640381, -0.16461122035980225, 1.5097349882125854, 0.041217852383852005, 0.05173225328326225, -0.0059488206170499325, -0.5887173414230347, -0.04387075826525688, -0.45057255029678345, 0.6097352504730225, 1.3124641180038452, -0.14077050983905792, -0.1293845921754837, -0.9906085133552551, 0.6346170902252197, 0.5626910924911499, -0.5536593794822693, 0.3108229339122772, 0.6763986349105835, 0.28750476241111755, -0.0939684510231018, 0.8001425862312317, -0.1855529397726059, 0.003987407777458429, -0.10638663172721863, -0.25538015365600586, 0.29193049669265747, -0.07641627639532089, -0.4915158748626709, 0.1442403942346573, 0.4261699318885803, 0.23797006905078888 ]
http://arxiv.org/abs/2405.18492v2
http://arxiv.org/pdf/2405.18492v2
LLMs and Memorization: On Quality and Specificity of Copyright Compliance
2024-05-28T18:01:52
2024-06-28T16:12:39
Felix B Mueller, Rebekka Görge, Anna K Bernzen, Janna C Pirk, Maximilian Poretschkin
cs.CL
cs.CL, cs.AI, I.2.7
Memorization in large language models (LLMs) is a growing concern. LLMs have been shown to easily reproduce parts of their training data, including copyrighted work. This is an important problem to solve, as it may violate existing copyright laws as well as the European AI Act. In this work, we propose a systematic analysis to quantify the extent of potential copyright infringements in LLMs using European law as an example. Unlike previous work, we evaluate instruction-finetuned models in a realistic end-user scenario. Our analysis builds on a proposed threshold of 160 characters, which we borrow from the German Copyright Service Provider Act and a fuzzy text matching algorithm to identify potentially copyright-infringing textual reproductions. The specificity of countermeasures against copyright infringement is analyzed by comparing model behavior on copyrighted and public domain data. We investigate what behaviors models show instead of producing protected text (such as refusal or hallucination) and provide a first legal assessment of these behaviors. We find that there are huge differences in copyright compliance, specificity, and appropriate refusal among popular LLMs. Alpaca, GPT 4, GPT 3.5, and Luminous perform best in our comparison, with OpenGPT-X, Alpaca, and Luminous producing a particularly low absolute number of potential copyright violations. Code will be published soon.
[ -0.19218841195106506, -0.6582164764404297, 0.49002835154533386, 0.13731564581394196, -0.36330848932266235, -0.22250905632972717, -0.19145382940769196, -0.5299187898635864, -0.18410004675388336, 1.070006251335144, -0.1485477089881897, -0.5164568424224854, -0.5753998756408691, 0.10889849811792374, -0.7140374779701233, 0.8959699869155884, -0.2830505669116974, 0.15185360610485077, -0.4447450339794159, -0.23063446581363678, -0.33643996715545654, -1.0467420816421509, -0.228549525141716, -0.07458095252513885, 0.4158099591732025, 0.09243198484182358, 0.26570671796798706, 0.6962299346923828, 0.6485218405723572, 0.30166739225387573, -0.436309278011322, -0.33075299859046936, -0.6893051862716675, -0.05872196704149246, -0.18211078643798828, -0.5743500590324402, -0.4219858646392822, 0.08574725687503815, 0.6808454394340515, 0.0727502629160881, -0.009203987196087837, 0.13499696552753448, 0.1654168963432312, 0.6279029846191406, -0.46158459782600403, -0.10159505903720856, -0.6718626022338867, 0.11970008909702301, -0.11204076558351517, -0.10342191904783249, -0.4848949611186981, -0.35901424288749695, 0.07618491351604462, -0.5192008018493652, 0.20423057675361633, -0.20556314289569855, 1.0283952951431274, 0.42885467410087585, -0.1434825211763382, -0.7679287195205688, -0.6372950077056885, 0.888630211353302, -0.9049190878868103, 0.35679617524147034, 0.4255405068397522, 0.02571186237037182, 0.03428274020552635, -0.9181905388832092, -0.6540479063987732, -0.3426527976989746, 0.17646023631095886, 0.03737085685133934, -0.36557409167289734, -0.0972934439778328, 0.5028923749923706, 0.5044369101524353, -0.38306912779808044, 0.23560228943824768, -0.5097185373306274, -0.16230274736881256, 0.5369679927825928, 0.11802331358194351, 0.4863925576210022, 0.03303254023194313, -0.5053967237472534, 0.256062775850296, -1.072857141494751, -0.08101750165224075, 0.6579297780990601, -0.027739088982343674, -0.000991731765680015, 0.6841602921485901, 0.08968323469161987, 0.328451544046402, -0.17919115722179413, 0.0015119834570214152, 0.06182878464460373, -0.16188420355319977, -0.2279714196920395, -0.1281869262456894, 0.5347333550453186, 0.19306103885173798, 0.6947635412216187, -0.20804700255393982, -0.45417383313179016, -0.38251662254333496, 0.2682383060455322, -0.6397534608840942, -0.017015365883708, 0.147266685962677, -0.43527063727378845, -0.04587695002555847, 0.23470430076122284, -0.19778475165367126, -0.31884151697158813, -0.9412105679512024, 0.6813321709632874, -0.39524731040000916, 0.03004632517695427, 0.24340437352657318, 0.07306002825498581, 0.29830649495124817, 0.1648748815059662, -0.6571267247200012, 0.1661914736032486, 0.9547100067138672, 0.8127322793006897, -0.3667043447494507, -0.4516712725162506, -0.09334364533424377, 0.3586442470550537, -0.11969370394945145, 0.4694783389568329, -0.20240852236747742, -0.38027840852737427, 0.004507875069975853, 0.20561297237873077, -0.017058981582522392, -0.7511175870895386, 0.5085540413856506, -0.8863406777381897, 0.16763082146644592, -0.32313865423202515, -0.9698396921157837, -0.4119960069656372, 0.23662278056144714, -0.8338414430618286, 0.3827175199985504, 0.04839668422937393, -0.707095205783844, 0.337298721075058, -0.28256985545158386, -0.31994202733039856, -0.027694478631019592, -0.12245259433984756, -0.5147244930267334, -0.10600023716688156, -0.3448859751224518, 0.5483554005622864, -0.07673881202936172, -0.016747934743762016, -0.028990192338824272, -0.5156225562095642, 0.48183244466781616, -0.6096920371055603, 0.7534233331680298, 0.3331678509712219, -0.21892641484737396, 0.0617203414440155, -0.6803925037384033, -0.144767165184021, 0.3167169690132141, -0.751054048538208, -0.3551105558872223, -0.0506979301571846, -0.07945407181978226, 0.22125227749347687, 0.35769858956336975, -0.35700497031211853, 0.11954253166913986, 0.0841725543141365, 0.5689991116523743, 0.7318986654281616, 0.08551125228404999, 0.3213799297809601, -0.5422411561012268, 0.6129909157752991, -0.10055498778820038, 0.33033615350723267, 0.08000851422548294, -0.38601037859916687, -0.4616648256778717, -0.5017712712287903, 0.4504302144050598, 0.6594904065132141, -0.3060261309146881, 0.2876664996147156, -0.4419940114021301, -0.22591541707515717, -0.40456387400627136, 0.413906067609787, 0.6387694478034973, 0.0722101628780365, 0.19250576198101044, -0.5758034586906433, -0.2366485893726349, -0.7260639071464539, -0.19638916850090027, 0.06539956480264664, -0.04063605144619942, 0.43497347831726074, 0.5634885430335999, -0.06262961775064468, 0.7885953783988953, -0.040851619094610214, -0.5940401554107666, -0.10035677254199982, -0.13094918429851532, 0.0974559411406517, 0.5232958793640137, 0.48508110642433167, -0.7803859114646912, -0.600949227809906, -0.2460928112268448, -0.6789383888244629, -0.11430370807647705, -0.07334955036640167, 0.19399821758270264, 0.4240971803665161, 0.6162503957748413, -0.39572909474372864, 0.32485470175743103, 0.29655689001083374, -0.3054911494255066, 0.5260599255561829, -0.2912546396255493, 0.10527481138706207, -0.5891348719596863, 0.11516130715608597, -0.3352142572402954, -0.07383675128221512, -0.6355674266815186, 0.32456672191619873, -0.0353657566010952, 0.07800392061471939, -1.0168330669403076, 0.17730195820331573, -0.1983228325843811, -0.17069776356220245, -0.12254711985588074, -0.16678664088249207, -0.16599291563034058, 0.43689292669296265, -0.0031108888797461987, 0.9612001180648804, 0.13229039311408997, -0.7359097003936768, 0.07499580085277557, 0.20582635700702667, -0.567375659942627, 0.5733028054237366, -0.6921210885047913, 0.35270777344703674, -0.05204645171761513, -0.07088220119476318, -0.5778437852859497, -0.047024041414260864, 0.18218526244163513, -0.3071821630001068, 0.2649156451225281, -0.40221476554870605, -0.5607794523239136, 0.03069419227540493, -0.22809725999832153, 0.2599063217639923, 0.5816360116004944, -0.4239845275878906, 0.345407634973526, 0.22661076486110687, -0.07216822355985641, -0.750087559223175, -0.7530871033668518, 0.14263537526130676, -0.3729914724826813, -0.5515075922012329, 0.23802872002124786, -0.18399368226528168, -0.24766097962856293, 0.0952533558011055, 0.14504392445087433, -0.14529350399971008, 0.17096874117851257, 0.1694316416978836, -0.13429082930088043, -0.1303965151309967, -0.29045820236206055, -0.2107153683900833, 0.10203273594379425, -0.05121266469359398, -0.05868515744805336, 0.7480436563491821, 0.01369099784642458, -0.4529114365577698, -0.4772053062915802, 0.2505002021789551, 0.6510843634605408, -0.06884278357028961, 0.4734736680984497, 0.2882467806339264, -0.26472002267837524, -0.20476822555065155, -0.512391984462738, 0.12685689330101013, -0.4673837423324585, 0.37350940704345703, -0.3259895145893097, -0.7309711575508118, 0.622616708278656, 0.36055174469947815, 0.200737863779068, 0.2662889361381531, 0.659974217414856, 0.03160710260272026, 0.6866424679756165, 0.5082514882087708, -0.07077782601118088, 0.6501775979995728, -0.44223877787590027, -0.0893331840634346, -0.6930364966392517, -0.332940012216568, -0.44901183247566223, -0.1982436329126358, -0.37241002917289734, -0.39121487736701965, -0.1890343874692917, 0.28624671697616577, -0.3516649007797241, 0.501972496509552, -0.46983715891838074, 0.8733500838279724, 0.5447918176651001, -0.026603950187563896, 0.700184166431427, 0.22491727769374847, -0.013812723569571972, -0.08238008618354797, -0.4568166434764862, -1.0758600234985352, 1.124394416809082, 0.36805495619773865, 0.6602627038955688, 0.35569360852241516, 0.861035943031311, 0.5227252244949341, 0.388064980506897, -0.8249388933181763, 0.6591179966926575, -0.49070510268211365, -0.8152074217796326, -0.248159721493721, -0.5279428958892822, -0.9580299258232117, -0.03348693251609802, 0.05140894651412964, -0.6167471408843994, -0.016566338017582893, -0.10850751399993896, 0.02797788381576538, 0.5396255254745483, -0.6313108801841736, 0.6774294972419739, -0.2924838662147522, -0.5077852010726929, -0.21142861247062683, -0.3096997141838074, 0.35823801159858704, -0.4835115373134613, 0.19905230402946472, -0.16442973911762238, -0.1642923504114151, 0.8774494528770447, -0.11177746951580048, 0.784699559211731, -0.0289195217192173, -0.42913272976875305, 0.4911873936653137, 0.2031952440738678, 0.3128369450569153, -0.41230592131614685, 0.006173890084028244, 0.13982447981834412, 0.3529316484928131, -0.30184316635131836, -0.2301349937915802, 0.5735035538673401, -0.7576308846473694, -0.6317296028137207, -0.13676315546035767, -0.3924383521080017, 0.16572310030460358, 0.412870317697525, 0.6239343285560608, 0.04772289842367172, -0.3494342863559723, 0.056294143199920654, 0.7655341029167175, -0.3340300917625427, 0.271852970123291, 0.901762843132019, -0.05171791464090347, -0.3585384488105774, 1.3940041065216064, 0.4024701714515686, 0.35961151123046875, 0.15179702639579773, -0.004914761520922184, -0.16654615104198456, -1.0039199590682983, -0.21724103391170502, 0.4298475980758667, -1.0523802042007446, 0.07476350665092468, -0.27580827474594116, -0.23676210641860962, -0.04257664829492569, -0.062439680099487305, -0.06559884548187256, -0.5199841856956482, -0.6248924136161804, 0.28274789452552795, 0.0905761569738388, 1.1078588962554932, 0.10236246138811111, 0.26963019371032715, -0.8867811560630798, 0.10074009001255035, 0.31049543619155884, 0.603909969329834, 0.09098741412162781, -0.951320469379425, -0.19497516751289368, -0.27494925260543823, -0.5607650876045227, -0.5421165823936462, 0.1372816264629364, 0.13587673008441925, 0.6141623258590698, 0.4131876528263092, -0.17335382103919983, 0.11975344270467758, -0.6028819680213928, 0.6999289393424988, 0.014476765878498554, -1.1104950904846191, 0.10450169444084167, -0.21599362790584564, -0.2867041528224945, 0.3407634496688843, 0.3912080228328705, -0.42001309990882874, -0.48523154854774475, -0.6900455355644226, -0.8113563060760498, 0.5677574276924133, 0.2139357626438141, 0.5549405217170715, 0.2462904155254364, 0.5802835822105408, 0.03293643146753311, 0.14436426758766174, -0.816907525062561, 0.05929567292332649, 0.08033359050750732, -0.33020439743995667, 0.10476021468639374, -0.2748243510723114, -0.15924230217933655, 0.0076673892326653, 0.6169772148132324, 0.3592258393764496, 0.19302111864089966, 0.12252643704414368, -0.48641568422317505, 0.14380411803722382, 0.27110692858695984, 0.7177788019180298, 0.6352518200874329, -0.01744694635272026, -0.14329944550991058, 0.16742965579032898, -0.7326450347900391, 0.3019242286682129, -0.16409063339233398, -0.4908706247806549, -0.16967017948627472, 0.293338805437088, 0.3323107063770294, -0.07149603217840195, -0.7746404409408569, 0.6214514970779419, -0.03355933353304863, -0.3091009557247162, -0.39704468846321106, 0.34671005606651306, 0.014667309820652008, 0.26396211981773376, -0.12673301994800568, -0.3571137487888336, 0.10310441255569458, -0.41566845774650574, 0.34759560227394104, 0.33568260073661804, -0.39039847254753113, -0.2908889353275299, 0.7148622274398804, -0.059910017997026443, -0.381791889667511, 0.346102774143219, -0.021076707169413567, -0.673862874507904, 0.832146406173706, 0.43116235733032227, 0.6480750441551208, -0.10219573974609375, -0.28531789779663086, 0.09563177824020386, 0.341459721326828, -0.38069427013397217, 0.3932328224182129, 0.14344888925552368, -0.6002799272537231, -0.2452176809310913, -0.2791483998298645, -0.6521549820899963, 0.15851223468780518, -0.588026762008667, 0.31981199979782104, -0.6520736813545227, -0.2886445224285126, -0.1939566284418106, -0.08536626398563385, -0.5220493674278259, -0.03407745435833931, 0.2976270020008087, 0.7022280693054199, -0.46264883875846863, 0.8243920207023621, 0.40842124819755554, -0.6774793863296509, -0.5480828285217285, -0.050746459513902664, -0.048648323863744736, -0.6040287613868713, 0.37489962577819824, -0.020181041210889816, 0.07184066623449326, 0.08685196191072464, -0.7052074670791626, -0.5148852467536926, 1.1500169038772583, 0.5564882755279541, -0.7173514366149902, 0.1907699853181839, 0.31562304496765137, 0.5011184811592102, -0.14361508190631866, -0.35385820269584656, 0.8265149593353271, 0.14055182039737701, 0.05022025480866432, -0.6007611155509949, -0.02081848494708538, 0.02858920209109783, -0.23065157234668732, -0.03152289614081383, -0.7009822726249695, 0.707836925983429, -0.20180152356624603, -0.3229117691516876, 0.3963603079319, 0.27257058024406433, 0.31933069229125977, 0.36946171522140503, 0.254241019487381, 0.5943880081176758, 0.7408298254013062, 0.015131229534745216, 1.029882788658142, -0.2512069046497345, 0.4182567894458771, 0.8946777582168579, -0.2612159550189972, 0.9767236113548279, 0.3760330379009247, -0.3543110489845276, 0.20239931344985962, 0.34070637822151184, -0.4977473020553589, 0.31746533513069153, 0.6117787957191467, -0.24526101350784302, 0.14881159365177155, -0.04763822630047798, -0.2510066032409668, 0.17682872712612152, 0.25821420550346375, -0.5238707661628723, 0.38101595640182495, -0.13111580908298492, 0.17947185039520264, 0.08455216884613037, -0.30292633175849915, 0.9371575117111206, 0.316376268863678, -0.34308722615242004, 0.6312680840492249, 0.0784238949418068, 0.6505005955696106, -0.4856734573841095, 0.28333595395088196, -0.243279367685318, 0.3507378399372101, -0.2652132213115692, -0.8244877457618713, 0.09932547807693481, 0.4429197609424591, -0.1586836725473404, -0.01950356736779213, 0.28881821036338806, -0.35987013578414917, -0.11517375707626343, 0.29954099655151367, 0.30532774329185486, 0.5277912616729736, 0.05454734340310097, -0.6457900404930115, 0.15049618482589722, 0.06962078809738159, -0.3175247609615326, 0.48917558789253235, 0.33304691314697266, -0.045935072004795074, 0.6645862460136414, 0.5897193551063538, 0.23391786217689514, 0.24630795419216156, 0.13858379423618317, 0.5243228673934937, -0.6240735054016113, -0.3524931073188782, -0.7577756643295288, 0.15977950394153595, 0.20227479934692383, -0.24932682514190674, 0.7131850719451904, 0.5957978367805481, 0.953183114528656, -0.14362911880016327, 0.7187250256538391, 0.2492614984512329, 0.21697866916656494, -0.9119226932525635, 0.9139255285263062, -0.5621536374092102, 0.7398609519004822, -0.21228937804698944, -1.0507181882858276, -0.3873194456100464, 0.30205121636390686, -0.2157239466905594, -0.02933473326265812, 0.4144677221775055, 0.6357883810997009, -0.2684345841407776, 0.04781528189778328, 0.441940039396286, -0.01846327632665634, 0.5224424600601196, 0.5197334885597229, 1.13955557346344, -0.2406078279018402, 0.7864524126052856, -0.3220144808292389, 0.16261017322540283, -0.060158390551805496, -0.835640549659729, -0.7207213640213013, -0.3854919970035553, -0.30836987495422363, -0.3848704695701599, -0.12636415660381317, 0.8411001563072205, 0.3775801956653595, -0.8660607933998108, -0.2822684049606323, 0.03367152810096741, 0.2060087025165558, 0.05812884122133255, -0.18525052070617676, 0.5526365041732788, -0.19995379447937012, -0.7440950870513916, -0.06559870392084122, -0.032396331429481506, 0.7271403670310974, -0.1351163685321808, -0.34061139822006226, 0.23003925383090973, 0.5378552675247192, 0.590083122253418, 0.45528116822242737, -0.8056203722953796, 0.0023723889607936144, -0.15362957119941711, -0.4173187017440796, 0.18565289676189423, 1.1373757123947144, -0.14163069427013397, 0.2840823531150818, 0.49884364008903503, 0.5184029340744019, 0.30310332775115967, -0.03566911444067955, 0.2978893518447876, -0.4681937098503113, -0.003062507836148143, 0.35809552669525146, 0.41533833742141724, 0.4011218845844269, -0.14012277126312256, 0.38373813033103943, 0.2012520432472229, -0.768828272819519, -0.6798063516616821, 0.19102081656455994, -0.7325544357299805, -0.38969171047210693, 1.3081607818603516, -0.7039309144020081, 0.007762307766824961, -0.213068425655365, -0.24173671007156372, 0.1731993407011032, -0.1690000295639038, 0.7973834276199341, 0.9667655229568481, 0.28415921330451965, 0.1702137142419815, -0.8594654202461243, 0.41000309586524963, 0.43599364161491394, -0.6341803073883057, 0.17173351347446442, 0.433907687664032, 0.500161349773407, -0.11311833560466766, 0.3968667984008789, -0.5184702277183533, 0.31494271755218506, -0.3585865795612335, 0.06905526667833328, -0.3245028555393219, -0.21310119330883026, -0.8936280012130737, -0.005160289816558361, 0.39007651805877686, 0.03322191908955574 ]
http://arxiv.org/abs/2405.18433v1
http://arxiv.org/pdf/2405.18433v1
Notes on Applicability of GPT-4 to Document Understanding
2024-05-28T17:59:53
2024-05-28T17:59:53
Łukasz Borchmann
cs.CL
cs.CL
We perform a missing, reproducible evaluation of all publicly available GPT-4 family models concerning the Document Understanding field, where it is frequently required to comprehend text spacial arrangement and visual clues in addition to textual semantics. Benchmark results indicate that though it is hard to achieve satisfactory results with text-only models, GPT-4 Vision Turbo performs well when one provides both text recognized by an external OCR engine and document images on the input. Evaluation is followed by analyses that suggest possible contamination of textual GPT-4 models and indicate the significant performance drop for lengthy documents.
[ -0.2381201982498169, -0.5104914307594299, 1.3169840574264526, 0.033715661615133286, -0.2531200349330902, -0.2066451460123062, 0.08127240091562271, -0.7059333324432373, -0.5771379470825195, 0.3042120933532715, -0.4219135642051697, -0.463386207818985, -0.7065880298614502, 0.33370861411094666, -0.6387304067611694, 1.0113433599472046, -0.5238784551620483, -0.07592184841632843, -0.17441076040267944, -0.03920943662524223, -0.3388789892196655, -0.505929172039032, -0.573606014251709, -0.22142015397548676, 0.33589255809783936, 0.15961109101772308, 0.4984012246131897, 0.7673455476760864, 0.8221626281738281, 0.32508885860443115, -0.005111519247293472, -0.18961016833782196, -0.33821696043014526, -0.14957615733146667, -0.25905144214630127, -0.4239656329154968, -0.4920554459095001, 0.4100523293018341, 0.9852544069290161, 0.35575804114341736, -0.032679036259651184, -0.23149967193603516, 0.047514867037534714, 0.37047845125198364, -0.3815794587135315, 0.4692653715610504, -0.6738900542259216, 0.055708616971969604, -0.07886439561843872, -0.3632916808128357, -0.30649852752685547, -0.24226224422454834, 0.5014426112174988, -1.1057919263839722, 0.8650476336479187, -0.36628642678260803, 1.162245750427246, 0.16749194264411926, -0.334881454706192, -0.6036258935928345, -0.648532509803772, 0.39898326992988586, -0.42600560188293457, 0.5250144600868225, 0.6070396900177002, 0.4117196202278137, 0.21551556885242462, -1.0987545251846313, -0.5348793268203735, -0.04826914519071579, -0.0780845433473587, 0.5257160663604736, -0.04996141046285629, 0.2509329915046692, 0.49194514751434326, 0.575190544128418, -0.43071067333221436, -0.23072044551372528, -0.6264066696166992, -0.23228520154953003, 0.05214345455169678, 0.1690353900194168, 0.0778898224234581, 0.0196165032684803, -0.35297325253486633, 0.016606101766228676, -0.35535097122192383, -0.12797966599464417, 0.27012109756469727, -0.20155154168605804, -0.04737910255789757, 0.3966905474662781, 0.024038854986429214, 0.7863268256187439, -0.12720279395580292, -0.13509276509284973, 0.28858616948127747, -0.8721775412559509, -0.3422234356403351, -0.37477725744247437, 0.30211129784584045, 0.4403207302093506, 0.026117417961359024, -0.22529667615890503, -0.17183780670166016, 0.10022089630365372, 0.41890308260917664, -0.7864723801612854, -0.23369070887565613, -0.2009839415550232, -0.2828948497772217, -0.23103229701519012, -0.12999337911605835, -0.8679314851760864, -0.35251855850219727, -0.11075259000062943, 0.4596801698207855, -0.6838661432266235, -0.09613968431949615, 0.0690012127161026, -0.7672692537307739, 0.48817816376686096, 0.8110859990119934, -1.2065370082855225, 0.33934253454208374, 0.6040126085281372, 1.1462959051132202, 0.031840730458498, -0.6037905216217041, -0.17846789956092834, 0.25619274377822876, -0.1968570053577423, 1.0768965482711792, -0.6090320944786072, -0.5547981858253479, -0.22468231618404388, 0.10106737166643143, -0.5060834884643555, -0.23139001429080963, 0.9429925680160522, -0.3663851022720337, 0.2115553766489029, -0.3159659802913666, -0.6833237409591675, -0.6665502786636353, 0.266925573348999, -0.7332803606987, 0.7053596377372742, 0.6142980456352234, -0.782245397567749, 0.51417076587677, -0.5237229466438293, -0.10507998615503311, 0.2402167171239853, -0.37474513053894043, -0.416779100894928, 0.22420813143253326, 0.14577311277389526, 0.27039870619773865, -0.06127318739891052, -0.2039729207754135, -0.1821790337562561, -0.7366050481796265, -0.2325555682182312, -0.56172776222229, 0.3657984733581543, 0.032173313200473785, -0.3603893220424652, -0.06095506250858307, -0.5241088271141052, -0.20078392326831818, 0.24652719497680664, -0.41424691677093506, -0.30051493644714355, -0.19736455380916595, 0.05047805234789848, 0.017915980890393257, 0.23955896496772766, -0.36825549602508545, 0.39526504278182983, -0.2702052593231201, 0.6742085814476013, 0.5792655944824219, 0.013641229830682278, 0.5477522015571594, -0.07084470987319946, 0.6409574747085571, -0.1896282136440277, 0.2454768568277359, -0.5879221558570862, -0.8698362708091736, -0.47583693265914917, -0.2669924199581146, 0.22822564840316772, 0.44371119141578674, -0.8947073221206665, -0.2465459257364273, -0.14100632071495056, -0.3489087224006653, -0.28817424178123474, -0.06445033103227615, 0.4937065541744232, 0.9233025312423706, 0.22616979479789734, -0.20158246159553528, -0.16811032593250275, -0.9705597162246704, -0.28844374418258667, -0.09924054890871048, 0.09794983267784119, 0.3915792405605316, 0.7227972745895386, -0.19314514100551605, 0.6026371121406555, -0.39200443029403687, -0.24957920610904694, -0.1660158336162567, 0.5418766736984253, 0.08672481030225754, 0.06906332820653915, 0.7769286632537842, -0.7518054246902466, -0.39278313517570496, 0.23334789276123047, -0.7700833082199097, 0.06960968673229218, 0.10343926399946213, 0.16504469513893127, 0.42829686403274536, 0.23714610934257507, -0.4448471963405609, 1.000789999961853, 0.5898382067680359, -0.3107110559940338, 0.3767697513103485, -0.6530745625495911, 0.32253944873809814, -0.6443074345588684, 0.029105089604854584, 0.2728597819805145, -0.29399386048316956, -0.6284455060958862, 0.07715393602848053, 0.6944511532783508, -0.1734878122806549, -0.01942158304154873, 0.2623567581176758, -0.6017684936523438, -0.4186486005783081, -0.1257365494966507, 0.4774150550365448, 0.4788433015346527, 0.34064990282058716, 0.40287333726882935, 0.9704354405403137, 0.29019254446029663, -0.3173946440219879, -0.023346830159425735, 0.3123730421066284, -0.3348662555217743, 0.749998927116394, -0.5039939284324646, 0.2725452780723572, 0.0032886159606277943, 0.20195893943309784, -0.9118491411209106, -0.31538400053977966, 0.2580873668193817, -0.3505829870700836, 0.47121670842170715, -0.34989121556282043, -0.40647056698799133, -0.3818650543689728, -0.40653806924819946, 0.31112632155418396, 0.3026508390903473, -0.47187721729278564, 0.7943769693374634, 0.1777794510126114, -0.09537474811077118, -0.3267782926559448, -0.5835661292076111, -0.003236537566408515, -0.054791409522295, -0.6700571179389954, 0.36115947365760803, 0.2123003602027893, 0.1016106978058815, 0.13273847103118896, -0.11500869691371918, -0.4125973880290985, 0.06619643419981003, 0.11811666190624237, 0.14735017716884613, -0.18525142967700958, -0.0035532398615032434, -0.14985665678977966, -0.13597489893436432, -0.15804803371429443, -0.04146275669336319, -0.029599688947200775, -0.3238544762134552, -0.17401888966560364, -0.3211959898471832, 0.3521556854248047, 0.5933027863502502, -0.04282398149371147, 0.21546174585819244, 0.4549449682235718, -0.3896043598651886, 0.047890812158584595, -0.525815486907959, 0.12944558262825012, -0.47578325867652893, 0.5964990258216858, -0.662437379360199, -0.600354015827179, 0.547185480594635, 0.0011354910675436258, -0.10957662761211395, 0.6401848793029785, 0.29404670000076294, -0.11775548756122589, 0.8492454886436462, 0.7606515288352966, 0.2002887725830078, 0.336752712726593, -0.280513197183609, 0.19439737498760223, -0.9057945013046265, -0.16615350544452667, -0.6804916858673096, 0.25906243920326233, -0.5161506533622742, -0.2990683913230896, 0.37792453169822693, -0.01992548443377018, 0.21759644150733948, 0.2168866991996765, -0.5674598813056946, 0.4863753318786621, 0.5682336688041687, -0.02351011522114277, 0.54400634765625, -0.14537346363067627, -0.2882797420024872, -0.15346768498420715, -0.5322673916816711, -0.4949520230293274, 0.9407733082771301, 0.40806636214256287, 0.42827486991882324, -0.02051912434399128, 0.4094476103782654, -0.09791722893714905, 0.485700786113739, -0.7465541362762451, 0.2027282565832138, -0.1034935861825943, -0.6807683110237122, -0.1351519376039505, -0.3505762219429016, -0.8631749153137207, 0.2876795828342438, 0.13423354923725128, -0.7207717299461365, 0.0953582376241684, 0.18743303418159485, -0.2222585678100586, 0.09165755659341812, -1.1834180355072021, 1.1514041423797607, -0.13068312406539917, -0.1475607454776764, 0.0008405612898059189, -0.2864748239517212, 0.4238400161266327, -0.5348002314567566, 0.15518642961978912, 0.15712440013885498, -0.22974546253681183, 0.632079005241394, -0.43051356077194214, 0.4563365578651428, -0.25315001606941223, -0.02122710458934307, 0.17315571010112762, -0.24158558249473572, 0.36081662774086, -0.13784512877464294, -0.08712691068649292, 0.30821871757507324, 0.19722847640514374, -0.002818795619532466, -0.7729569673538208, 0.7353854179382324, -0.651410698890686, -0.6382848620414734, -0.7288907766342163, -0.41455307602882385, -0.03993954136967659, 0.3866617679595947, 0.4830533266067505, 0.5262402892112732, -0.08125737309455872, -0.03596482425928116, 0.3393898606300354, -0.16644321382045746, 0.47862985730171204, 0.6913518309593201, -0.06115581467747688, -0.22806508839130402, 0.7831172347068787, 0.26218223571777344, 0.11799237877130508, -0.03166702762246132, 0.14680109918117523, -0.4983123540878296, -0.976246178150177, -0.6204112768173218, 0.2809613049030304, -1.0130748748779297, 0.01408301666378975, -0.6113191246986389, -0.15019595623016357, -0.2533504366874695, -0.1319820135831833, -0.09267272800207138, -0.3031885623931885, -0.3485673666000366, -0.20720794796943665, 0.43578699231147766, 1.3457131385803223, 0.21591749787330627, 0.3543279469013214, -0.8335990309715271, 0.40617474913597107, 0.0846916139125824, 0.6943317651748657, -0.21276918053627014, -0.6239619255065918, -0.43726879358291626, -0.3943001329898834, -0.6381977200508118, -0.9901626706123352, 0.13698312640190125, 0.1270284652709961, 0.686837375164032, 0.10154673457145691, -0.5414953827857971, 0.6237007975578308, -0.6929238438606262, 0.7364686131477356, -0.11207176744937897, -1.0648574829101562, 0.5277795791625977, -0.7346349358558655, 0.42443427443504333, 0.6929905414581299, 0.3296441435813904, -0.08200497180223465, -0.3728940188884735, -0.7185646295547485, -0.7085002064704895, 0.8691627383232117, 0.4568635821342468, -0.3868016004562378, 0.22656938433647156, 0.8087931871414185, 0.1505698412656784, 0.03556143492460251, -0.5216555595397949, 0.24972574412822723, -0.4787118434906006, -0.24197635054588318, -0.17493942379951477, -0.28100472688674927, 0.25899538397789, -0.23006518185138702, 0.3858286440372467, 0.010661463253200054, 0.5325537323951721, 0.500972330570221, 0.018024709075689316, 0.24298027157783508, -0.04614295810461044, 0.8269065022468567, 0.7853857278823853, -0.45172345638275146, -0.08573497086763382, -0.15739281475543976, -1.087346076965332, -0.1029089093208313, 0.32811030745506287, -0.2211330533027649, -0.009304727427661419, 0.3594319224357605, 0.5902381539344788, 0.42149972915649414, -0.030001962557435036, 0.6877866983413696, -0.5836266875267029, -0.767554521560669, -0.3413141369819641, -0.13227608799934387, 0.012240824289619923, 0.029874147847294807, 0.22052237391471863, 0.16298282146453857, 0.49866846203804016, -0.5428383946418762, 0.14134185016155243, 0.2833021283149719, -0.3615122139453888, -0.4454623758792877, 0.6756638884544373, 0.28291767835617065, 0.00009653285815147683, 0.7385154962539673, -0.06525448709726334, -0.7836036682128906, 0.6857973337173462, 0.4145786464214325, 0.8112443685531616, -0.07824468612670898, -0.0573694072663784, 0.1878313422203064, 0.5098509192466736, -0.2383478432893753, 0.34945663809776306, -0.23361746966838837, -0.6037079691886902, -0.37411487102508545, -0.20830081403255463, -0.6886921525001526, 0.25925466418266296, -0.5338940024375916, 0.23088029026985168, -0.40428850054740906, -0.21767103672027588, 0.41472429037094116, -0.10528469830751419, -0.8384585976600647, 0.289923757314682, -0.02104540541768074, 0.9279845356941223, -0.7181994318962097, 1.0911287069320679, 0.3673419952392578, -0.6967902779579163, -0.9877501726150513, 0.0388970784842968, 0.06123736500740051, -0.7548096776008606, 0.5091096758842468, 0.3432352542877197, -0.3356931507587433, 0.21685655415058136, -0.18439899384975433, -0.47845324873924255, 1.188955545425415, 0.40920108556747437, -0.27401724457740784, -0.2898625433444977, -0.20905143022537231, 0.4945814609527588, -0.1115320473909378, 0.6629388928413391, 0.7319945096969604, 0.7019892334938049, 0.08786175400018692, -1.028236985206604, -0.05934721231460571, -0.3270719647407532, -0.07036390900611877, 0.11563719063997269, -0.4915143847465515, 0.7488219738006592, -0.01833854615688324, -0.3580951392650604, 0.3163818418979645, 0.07173123210668564, -0.023922501131892204, 0.6850461363792419, 0.21945911645889282, 0.6432700753211975, 0.6941189169883728, -0.26959022879600525, 1.5399748086929321, -0.1443294882774353, 0.3515743315219879, 1.0650527477264404, -0.337007075548172, 0.5955926179885864, 0.1828191727399826, -0.036431435495615005, 0.1192975714802742, 0.6940270662307739, -0.19856339693069458, 0.6390973925590515, -0.17970648407936096, -0.2058999389410019, 0.3464457094669342, 0.3453715741634369, -0.499351441860199, 0.5035730004310608, 0.5865926146507263, -0.6089486479759216, -0.2256726175546646, -0.30260148644447327, -0.2281680405139923, -0.08298902958631516, -0.4077697992324829, 0.7644755244255066, -0.012532602064311504, -0.7990884184837341, 0.47477850317955017, 0.005926650483161211, 0.38519302010536194, -0.6222118735313416, -0.44857871532440186, -0.14320428669452667, 0.2305370420217514, -0.24591632187366486, -0.9556870460510254, 0.5380328297615051, 0.13393551111221313, -0.1760687679052353, -0.2837008535861969, 0.8661407232284546, 0.10750582814216614, -0.32908785343170166, 0.38352319598197937, 0.20076952874660492, 0.42631202936172485, -0.257316917181015, -0.3907712996006012, 0.0698535218834877, -0.013360027223825455, -0.14870208501815796, 0.20852243900299072, 0.6565697193145752, 0.01886867545545101, 0.17824523150920868, 0.1570044755935669, -0.17630955576896667, 0.06829558312892914, 0.19407163560390472, 0.8106721043586731, -0.6515423655509949, -0.43278852105140686, -0.6877937316894531, 0.20878885686397552, -0.1565437912940979, -0.3227481544017792, 0.9285470247268677, 0.6168345808982849, 0.762728214263916, -0.1306704431772232, 1.0564121007919312, 0.47450995445251465, 0.3197786808013916, -0.5723418593406677, 0.5942505598068237, -0.4153934717178345, -0.08311563730239868, -0.4865180552005768, -0.8614323735237122, -0.29894396662712097, 0.7555412650108337, -0.508270263671875, 0.20076362788677216, 1.2221779823303223, 0.30861619114875793, -0.1562913954257965, 0.5380387306213379, 0.4751853048801422, -0.004226285498589277, 0.2859843969345093, 0.5242621302604675, 0.7462202906608582, -0.447807639837265, 0.7050286531448364, -0.13383880257606506, -0.5987834334373474, -0.014828738756477833, -1.0245163440704346, -0.8573445081710815, -0.7105283737182617, -0.10614893585443497, -0.08159356564283371, 0.058140095323324203, -0.1563597470521927, 0.5905004143714905, -0.21173180639743805, 0.3007776439189911, -0.3471282124519348, -0.16427025198936462, 0.02929283306002617, -0.1896006166934967, 0.4099562466144562, -0.12464915961027145, -0.7364400029182434, 0.4424382746219635, 0.4809871017932892, 0.2715736925601959, -0.10560984164476395, 0.16250045597553253, 0.025085918605327606, -0.07758165150880814, 0.2938461899757385, 0.2301977574825287, -0.6746097207069397, -0.41811034083366394, -0.08273061364889145, -0.048310697078704834, 0.2726666033267975, 0.9113816022872925, -0.4571114182472229, 0.6636705994606018, 0.5830734968185425, 0.6014469265937805, 1.0387225151062012, 0.0159824900329113, 0.8513690233230591, -0.3789459764957428, 0.21454133093357086, -0.025558222085237503, 0.5985304713249207, 0.4530399441719055, -0.6901227831840515, 0.7400674223899841, 0.5398157835006714, -0.755759596824646, -0.3189321756362915, 0.09104275703430176, -0.9927050471305847, -0.033911626785993576, 0.8244450092315674, -0.6300613284111023, -0.3829970359802246, -0.39823710918426514, -0.2410300076007843, 0.1698182225227356, -0.4588700234889984, 0.43801677227020264, 0.9922563433647156, -0.2090282291173935, -0.42560890316963196, -1.0395026206970215, 0.4799690246582031, -0.08321306109428406, -0.7090035080909729, -0.19809238612651825, 0.4958217740058899, 0.2529621720314026, 0.09450999647378922, 1.062328815460205, -0.43991684913635254, 0.40188273787498474, 0.2794281840324402, -0.13342519104480743, -0.07702271640300751, -0.22143761813640594, -0.6771188378334045, 0.04641804099082947, 0.23883065581321716, -0.12797899544239044 ]
http://arxiv.org/abs/2405.18415v1
http://arxiv.org/pdf/2405.18415v1
Why are Visually-Grounded Language Models Bad at Image Classification?
2024-05-28T17:57:06
2024-05-28T17:57:06
Yuhui Zhang, Alyssa Unell, Xiaohan Wang, Dhruba Ghosh, Yuchang Su, Ludwig Schmidt, Serena Yeung-Levy
cs.CV
cs.CV, cs.AI, cs.CL, cs.LG
Image classification is one of the most fundamental capabilities of machine vision intelligence. In this work, we revisit the image classification task using visually-grounded language models (VLMs) such as GPT-4V and LLaVA. We find that existing proprietary and public VLMs, despite often using CLIP as a vision encoder and having many more parameters, significantly underperform CLIP on standard image classification benchmarks like ImageNet. To understand the reason, we explore several hypotheses concerning the inference algorithms, training objectives, and data processing in VLMs. Our analysis reveals that the primary cause is data-related: critical information for image classification is encoded in the VLM's latent space but can only be effectively decoded with enough training data. Specifically, there is a strong correlation between the frequency of class exposure during VLM training and instruction-tuning and the VLM's performance in those classes; when trained with sufficient data, VLMs can match the accuracy of state-of-the-art classification models. Based on these findings, we enhance a VLM by integrating classification-focused datasets into its training, and demonstrate that the enhanced classification performance of the VLM transfers to its general capabilities, resulting in an improvement of 11.8% on the newly collected ImageWikiQA dataset.
[ -0.3135375380516052, -0.49208343029022217, 0.588890552520752, -0.1424512416124344, -0.6690301895141602, 0.03933614492416382, 0.1187741756439209, -0.7444638609886169, -0.5529637932777405, 0.7011641263961792, -0.03688766807317734, -0.3974998891353607, -0.7173229455947876, -0.22868092358112335, -0.6964005827903748, 0.6842994689941406, 0.05010099336504936, 0.1045428216457367, -0.5210163593292236, -0.3921140432357788, -0.6161732077598572, -0.9063383936882019, -0.21186302602291107, -0.060956597328186035, 0.2064841091632843, 0.22619856894016266, 0.6930561065673828, 0.7073830962181091, 0.482033371925354, 0.3099749982357025, -0.044265519827604294, 0.11612799763679504, -0.5711076259613037, -0.15447038412094116, -0.022621504962444305, -0.5592935085296631, -0.017676902934908867, -0.0318942666053772, 0.43077021837234497, 0.4879341721534729, 0.15541011095046997, 0.16893284022808075, 0.04980677366256714, 0.5684688091278076, -0.8707934617996216, 0.17031912505626678, -0.773451566696167, 0.1782156080007553, -0.3085726499557495, -0.2723671793937683, -0.4794252812862396, -0.02101016789674759, 0.0992838516831398, -0.47826439142227173, 0.37370866537094116, 0.20624448359012604, 1.3498256206512451, 0.4694916009902954, -0.2675648033618927, 0.036102890968322754, -0.6674612760543823, 0.7669837474822998, -0.36810457706451416, 0.45452192425727844, 0.4788573086261749, 0.3188380002975464, 0.1011284813284874, -0.685074508190155, -0.48663127422332764, -0.05002395808696747, 0.09728556871414185, 0.07504402101039886, -0.23053699731826782, 0.20339183509349823, 0.5673161149024963, 0.24654290080070496, -0.232884481549263, 0.19600899517536163, -0.5514273047447205, -0.1315005123615265, 0.3670629858970642, 0.1689566969871521, 0.4162752032279968, -0.11221326887607574, -0.3253817856311798, -0.10303385555744171, -0.6551842093467712, 0.19939328730106354, 0.10457322746515274, -0.025280818343162537, 0.13399745523929596, 0.6170213222503662, -0.04283822700381279, 0.8105658292770386, -0.17055124044418335, -0.273919016122818, 0.18688100576400757, -0.1542225480079651, -0.41379812359809875, -0.22722424566745758, 0.3880857229232788, 0.8535476326942444, 0.5482792258262634, 0.05662424862384796, -0.23430877923965454, 0.3274141848087311, 0.4122328758239746, -0.7505025863647461, -0.310695618391037, -0.23278075456619263, -0.34378206729888916, -0.600476086139679, 0.05771850049495697, -0.4847332239151001, -0.2693403661251068, -0.5666110515594482, 0.44964197278022766, -0.22903306782245636, 0.06898941844701767, -0.16318978369235992, -0.30290335416793823, 0.4938846230506897, 0.7731100916862488, -0.5961018800735474, 0.26491832733154297, 0.43004274368286133, 0.6586748361587524, -0.0990452691912651, -0.21762095391750336, -0.3234264850616455, -0.06937090307474136, -0.5591966509819031, 0.9169686436653137, -0.3162410855293274, -0.07290690392255783, 0.18463891744613647, 0.1268676370382309, 0.0684686154127121, -0.6264550685882568, 0.4476257562637329, -0.6447217464447021, 0.16977500915527344, -0.3033810555934906, -0.34768998622894287, -0.39498794078826904, 0.21062549948692322, -0.4990507662296295, 0.9308631420135498, -0.06566400080919266, -0.8942269086837769, 0.6605827808380127, 0.04756569117307663, -0.19281984865665436, 0.27716928720474243, -0.4057328701019287, -0.5046616792678833, 0.2892923355102539, 0.23095113039016724, 0.6319507360458374, -0.16032546758651733, 0.3539680540561676, -0.4888785779476166, -0.7032546997070312, 0.40453284978866577, -0.5557042956352234, 0.5352902412414551, 0.11890550702810287, -0.3676656484603882, 0.09945375472307205, -0.8154019713401794, 0.2612764835357666, 0.2577974200248718, -0.13913008570671082, -0.6377215385437012, 0.0383228063583374, 0.13519787788391113, 0.26355263590812683, -0.1828860491514206, -0.23083220422267914, -0.13288387656211853, 0.00277008768171072, 0.295857310295105, 0.9112997055053711, -0.09274628013372421, 0.3093049228191376, -0.03826671093702316, 0.14806947112083435, 0.0072142151184380054, 0.2671716511249542, -0.11260116100311279, -0.5764539837837219, -0.9118850231170654, -0.42403870820999146, 0.028528902679681778, 0.5261424779891968, -0.8056669235229492, 0.14383257925510406, -0.28394582867622375, -0.31980907917022705, -0.28855180740356445, 0.1327916830778122, 0.4018303155899048, 0.8197262287139893, 0.38704046607017517, -0.2723652720451355, -0.3302399516105652, -0.95011305809021, -0.050642650574445724, -0.11159387975931168, 0.10788530111312866, 0.3616429269313812, 0.35222718119621277, -0.3482482135295868, 0.7518236637115479, -0.362739622592926, -0.13989563286304474, 0.07559642940759659, -0.21918831765651703, 0.018141768872737885, 0.26439863443374634, 0.6981217861175537, -1.0255169868469238, -0.28245294094085693, -0.10073845088481903, -1.125680685043335, -0.07119172066450119, 0.14799995720386505, -0.07380422204732895, 0.18499591946601868, 0.39787882566452026, -0.19924643635749817, 1.0220725536346436, 0.26241424679756165, -0.3261803090572357, 0.5012418627738953, 0.03375888615846634, 0.1601986289024353, -0.369507759809494, -0.16676805913448334, -0.047626860439777374, -0.366301953792572, -0.5344477295875549, 0.20964720845222473, 0.18997518718242645, -0.2963372468948364, -0.5977138876914978, 0.23760350048542023, -0.3956815302371979, -0.2792714238166809, -0.43804314732551575, -0.36058008670806885, 0.2044905424118042, 0.5192015171051025, 0.23784786462783813, 0.6238898634910583, 0.89232337474823, -0.8278486132621765, 0.30413520336151123, 0.25252342224121094, -0.3572527766227722, 0.4742469787597656, -0.6124482154846191, 0.21895235776901245, -0.21794015169143677, -0.13089483976364136, -0.837561845779419, -0.3568492829799652, 0.2508655786514282, -0.137330561876297, 0.49124324321746826, -0.2965192496776581, -0.42287981510162354, -0.3031047284603119, -0.16514717042446136, 0.4121205508708954, 0.8954946994781494, -0.8764760494232178, 0.3296133875846863, 0.26085329055786133, 0.3563738465309143, -0.5654991865158081, -0.9032986164093018, 0.15638157725334167, -0.2897630035877228, -0.5511198043823242, 0.11997822672128677, 0.3916666507720947, -0.13700395822525024, 0.3095754384994507, -0.12424418330192566, -0.23178941011428833, 0.13467296957969666, 0.5752439498901367, 0.2862338125705719, -0.12300370633602142, 0.22069944441318512, -0.32556474208831787, 0.07869096845388412, -0.07558613270521164, -0.23195984959602356, 0.1372113823890686, -0.3971903920173645, -0.5879629850387573, -0.4280898869037628, 0.15722030401229858, 0.8132531046867371, -0.10367622971534729, 0.6708958148956299, 0.48727384209632874, -0.2741803824901581, -0.0884353369474411, -0.5535085201263428, 0.18909014761447906, -0.46313154697418213, 0.3916420042514801, -0.2735810875892639, -0.7025936245918274, 0.2269284427165985, -0.08629834651947021, -0.24680988490581512, 0.28977978229522705, 0.2116972655057907, -0.495577871799469, 0.8616724014282227, 0.7823163866996765, 0.10629687458276749, 0.6311752796173096, -0.3426034152507782, -0.08565069735050201, -0.6891066431999207, -0.32871606945991516, -0.2044760286808014, 0.043825093656778336, -0.5142664909362793, -0.496040940284729, 0.16313892602920532, 0.1511395424604416, -0.17834888398647308, -0.05457156151533127, -0.6109866499900818, 0.48317083716392517, 0.5394912362098694, 0.25448718667030334, -0.029233286157250404, 0.4488120675086975, -0.006875935476273298, -0.3396894037723541, -0.6736929416656494, -0.6303121447563171, 1.0236554145812988, 0.585681676864624, 0.9278243184089661, -0.293966680765152, 0.38761135935783386, 0.23876738548278809, 0.2503553032875061, -0.7370889186859131, 0.47426557540893555, -0.2918865978717804, -0.2648574113845825, -0.05460605397820473, -0.14214017987251282, -0.5432282090187073, 0.34127241373062134, -0.18428151309490204, -0.4493578374385834, 0.3369292616844177, 0.30200302600860596, 0.40882328152656555, 0.24634350836277008, -0.7001302242279053, 0.8501145839691162, -0.6765364408493042, -0.7098880410194397, 0.05185721814632416, -0.5123523473739624, 0.6347965598106384, -0.14253291487693787, 0.26888489723205566, -0.09598134458065033, 0.21101826429367065, 0.5464030504226685, -0.608646035194397, 0.9462355375289917, -0.41681012511253357, 0.24041812121868134, 0.3363868296146393, -0.32519271969795227, 0.22225631773471832, -0.3783344328403473, 0.4308081865310669, 0.520318865776062, -0.16937409341335297, -0.4705006778240204, -0.7587562799453735, 0.19428758323192596, -0.8774835467338562, -0.5860705971717834, -0.43150368332862854, 0.15978974103927612, -0.17807821929454803, 0.10976607352495193, 0.6198811531066895, 0.693149209022522, 0.1529892086982727, 0.30753380060195923, 0.5977728366851807, -0.27210313081741333, 0.04902772605419159, 0.04766476899385452, -0.4293452501296997, -0.4375194311141968, 1.1220849752426147, 0.22341807186603546, 0.33289939165115356, 0.0628773495554924, 0.012594595551490784, -0.19134868681430817, -0.8825995326042175, -0.3652954697608948, -0.018892956897616386, -1.2518903017044067, -0.16219674050807953, -0.4201491177082062, -0.3519417941570282, -0.1055963784456253, -0.10619792342185974, -0.11645925045013428, -0.07196967303752899, -0.4644116163253784, -0.11260950565338135, 0.2187248319387436, 0.6569811701774597, 0.32211095094680786, 0.2239317148923874, -0.6042530536651611, 0.41967448592185974, 0.5262347459793091, 0.4144469201564789, -0.17187370359897614, -0.7453415989875793, -0.17237645387649536, -0.34350764751434326, -0.13004913926124573, -0.8618065118789673, 0.20203553140163422, 0.298417329788208, 0.7710046768188477, 0.4317261874675751, -0.14989732205867767, 0.9519932866096497, -0.629600465297699, 0.6988894939422607, 0.15863007307052612, -0.8433139324188232, 0.5414477586746216, -0.0423450730741024, 0.09330008924007416, 0.35520970821380615, 0.12716585397720337, -0.1753329187631607, -0.4764895439147949, -0.43752825260162354, -0.8028820157051086, 0.57569819688797, 0.17447040975093842, 0.1779635101556778, 0.1385219395160675, 0.24397791922092438, -0.12857717275619507, 0.1886989325284958, -0.8427069187164307, 0.03991305083036423, -0.8726180195808411, -0.055802121758461, 0.08074747025966644, -0.5720666646957397, -0.01416283193975687, -0.4688728153705597, 0.2939964234828949, -0.2674526870250702, 0.2654063105583191, 0.25739437341690063, -0.4071638286113739, 0.024308228865265846, 0.0014857599744573236, 0.6122532486915588, 0.48313283920288086, -0.08595260977745056, 0.3242674767971039, 0.17930342257022858, -0.46050840616226196, 0.27537021040916443, -0.424679696559906, -0.38965195417404175, 0.006032582838088274, 0.7206951975822449, 1.2642858028411865, 0.1845717579126358, -0.6612385511398315, 0.6895712614059448, -0.2780662178993225, -0.2784844934940338, -0.3247052729129791, 0.1476653665304184, -0.35884445905685425, 0.05153839662671089, 0.4728280305862427, 0.4860907793045044, 0.2164822369813919, -0.3485424220561981, 0.11117047816514969, 0.3822999894618988, -0.3863734304904938, -0.2804476320743561, 0.4507627487182617, 0.047951240092515945, 0.08303530514240265, 0.6883387565612793, 0.13274013996124268, -0.8988044261932373, 0.5251458287239075, 0.40390706062316895, 0.832289457321167, 0.22784264385700226, -0.030601995065808296, 0.22919951379299164, 0.5207207202911377, -0.09260021150112152, 0.09520122408866882, -0.08240973949432373, -0.8031013607978821, -0.35395827889442444, -0.6182897090911865, -0.26352205872535706, 0.22674775123596191, -0.6117295622825623, 0.34750545024871826, -0.718015730381012, -0.21278057992458344, -0.4407818913459778, -0.5686498284339905, -0.9738237857818604, 0.4233437478542328, 0.5353549122810364, 0.6228277683258057, -0.9501065015792847, 0.6303050518035889, 0.7851138114929199, -0.24274951219558716, -0.7983210682868958, -0.07220610976219177, -0.1458950787782669, -0.7560157179832458, 1.122434139251709, 0.4715351462364197, -0.22513426840305328, -0.17372815310955048, -0.9553709030151367, -0.8449258804321289, 0.7420408725738525, 0.35101237893104553, -0.382731556892395, 0.07910602539777756, -0.07122663408517838, 0.6610211730003357, -0.1964542716741562, -0.059382662177085876, 0.05499076470732689, 0.1548483967781067, 0.2633005380630493, -0.7042199373245239, -0.1178334653377533, -0.3701111376285553, 0.2622254490852356, -0.18820838630199432, -0.42949092388153076, 0.713134229183197, -0.18562112748622894, -0.45610174536705017, -0.22464466094970703, 0.40930408239364624, 0.19622035324573517, 0.5058026909828186, 0.4166697859764099, 0.6284317970275879, 0.715139627456665, -0.21841122210025787, 1.1472667455673218, 0.24314314126968384, 0.1695057451725006, 0.7525715231895447, -0.29421141743659973, 0.7903122305870056, 0.4464402198791504, -0.13378138840198517, 0.4385298788547516, 0.5318695902824402, -0.4121655523777008, 0.7883220911026001, 0.02773035131394863, 0.1274130940437317, -0.43039238452911377, -0.0034831364173442125, -0.23813451826572418, 0.6023250222206116, 0.4922882616519928, -0.4131421446800232, -0.06695893406867981, 0.39905089139938354, -0.5892102122306824, 0.09410741180181503, -0.41844847798347473, 0.6869843006134033, 0.04359998181462288, -0.22674033045768738, 0.9338688254356384, -0.2022467702627182, 0.4741441309452057, -0.18117745220661163, -0.18878497183322906, 0.0884527862071991, 0.19535203278064728, -0.4256967008113861, -0.8142898082733154, 0.2230493426322937, 0.2171977311372757, -0.12231405824422836, -0.1273544579744339, 1.2045528888702393, -0.018667221069335938, -0.42753446102142334, 0.1961914598941803, 0.23573221266269684, 0.32066643238067627, -0.060199107974767685, -0.5802443623542786, 0.3584887385368347, -0.1055016741156578, 0.026962365955114365, 0.2960045635700226, 0.5390187501907349, -0.33450064063072205, 0.7092387080192566, 0.6702598929405212, -0.06815078109502792, 0.39248746633529663, 0.04314173012971878, 1.092834234237671, -0.7560210824012756, -0.37502315640449524, -0.7332085967063904, 0.5064246654510498, -0.14533419907093048, -0.04734509065747261, 0.594082772731781, 0.26792559027671814, 0.7285947799682617, -0.30377718806266785, 0.8006744384765625, 0.337637722492218, 0.13480770587921143, -0.9126510620117188, 0.5566500425338745, -0.5896154046058655, 0.0914883241057396, -0.3168334364891052, -0.7948091626167297, -0.29042208194732666, 0.5822484493255615, -0.38216808438301086, -0.017033731564879417, 0.5503772497177124, 0.29585492610931396, -0.09128335118293762, -0.25768911838531494, 0.7635834217071533, -0.12438765913248062, 0.37526780366897583, 0.33148643374443054, 1.4055628776550293, -0.4599478542804718, 0.4397563636302948, -0.335013747215271, -0.17999520897865295, -0.4497065544128418, -0.8183256387710571, -1.0513705015182495, -0.36823856830596924, -0.41451597213745117, -0.1376873105764389, 0.10314751416444778, 0.3048236072063446, 0.8465420603752136, -0.5441977977752686, 0.20669272541999817, -0.2712916135787964, 0.06883509457111359, 0.19010819494724274, -0.26742640137672424, 0.1514148712158203, -0.2926293611526489, -0.3989828824996948, -0.0013157116482034326, 0.3267575204372406, 0.47665563225746155, -0.03267259895801544, 0.0014140406856313348, 0.32480689883232117, -0.43603596091270447, 0.6474502682685852, 0.42118018865585327, -1.0665333271026611, -0.3145086169242859, 0.016043581068515778, -0.34371688961982727, 0.06237153336405754, 0.5307331085205078, -0.8819295167922974, 0.5201904773712158, 0.23037266731262207, 0.7603440880775452, 0.4542151987552643, 0.11757004261016846, 0.27922916412353516, -0.6339664459228516, 0.39253395795822144, 0.12766538560390472, 0.6012905240058899, 0.618083119392395, -0.45623600482940674, 0.31009432673454285, 0.6620343327522278, -0.4812220335006714, -0.9885504841804504, 0.05640914663672447, -0.797217607498169, -0.24601520597934723, 1.060136318206787, -0.013655704446136951, -0.5791274309158325, -0.11063150316476822, -0.4015344977378845, 0.02055116556584835, 0.004147447645664215, 0.331760972738266, 0.732170045375824, -0.04588645324110985, -0.5284771919250488, -0.6283503770828247, 0.3415803909301758, 0.2129601538181305, -0.6121496558189392, -0.16600733995437622, 0.7508304119110107, 0.45443180203437805, 0.1321505755186081, 0.5566520094871521, -0.13277743756771088, 0.4712566137313843, 0.10478714108467102, 0.03115403652191162, -0.1907120794057846, -0.44870615005493164, -0.5016582012176514, 0.34077537059783936, 0.45354264974594116, -0.3530336320400238 ]
http://arxiv.org/abs/2405.18414v1
http://arxiv.org/pdf/2405.18414v1
Don't Forget to Connect! Improving RAG with Graph-based Reranking
2024-05-28T17:56:46
2024-05-28T17:56:46
Jialin Dong, Bahare Fatemi, Bryan Perozzi, Lin F. Yang, Anton Tsitsulin
cs.CL
cs.CL, cs.AI, cs.LG, cs.SI
Retrieval Augmented Generation (RAG) has greatly improved the performance of Large Language Model (LLM) responses by grounding generation with context from existing documents. These systems work well when documents are clearly relevant to a question context. But what about when a document has partial information, or less obvious connections to the context? And how should we reason about connections between documents? In this work, we seek to answer these two core questions about RAG generation. We introduce G-RAG, a reranker based on graph neural networks (GNNs) between the retriever and reader in RAG. Our method combines both connections between documents and semantic information (via Abstract Meaning Representation graphs) to provide a context-informed ranker for RAG. G-RAG outperforms state-of-the-art approaches while having smaller computational footprint. Additionally, we assess the performance of PaLM 2 as a reranker and find it to significantly underperform G-RAG. This result emphasizes the importance of reranking for RAG even when using Large Language Models.
[ -0.5298045873641968, -0.4831155836582184, 0.6394568085670471, -0.18236729502677917, -0.3515166640281677, 0.22285784780979156, 0.038373757153749466, -0.6235226988792419, 0.5239412188529968, 0.4683810770511627, -0.23539616167545319, -0.22939635813236237, -0.6526480317115784, 0.01584111526608467, -0.39569422602653503, 1.1687977313995361, 0.20717361569404602, -0.4348740875720978, -0.579281747341156, -0.37965893745422363, -0.4687919318675995, -0.3941262662410736, -1.1502436399459839, -0.6337752938270569, 1.1603152751922607, 0.37756940722465515, 0.6642632484436035, 0.8181682229042053, 0.426819771528244, 0.38835325837135315, -0.29389482736587524, 0.5097980499267578, -0.8189936280250549, 0.48399198055267334, -0.21367588639259338, -0.43280550837516785, -0.603823721408844, -0.1600978523492813, 0.6234520077705383, 0.8987930417060852, 0.36958393454551697, 0.36884036660194397, 0.07528328150510788, 1.110917091369629, -0.6453396081924438, -0.03845502436161041, -0.7324396371841431, -0.3024255037307739, -0.420881986618042, -0.41498956084251404, -0.522370457649231, -0.3364173173904419, -0.18492545187473297, -0.5826524496078491, 0.6707608699798584, 0.34604138135910034, 1.0916386842727661, 0.2637577950954437, -0.6573533415794373, -0.16524885594844818, -0.5630040764808655, 0.4166140854358673, -0.060993194580078125, 0.34125030040740967, 0.6085272431373596, 0.4531008005142212, -0.4203605651855469, -0.9707362651824951, -0.3459489941596985, -0.1538487672805786, -0.14554038643836975, 0.18171651661396027, 0.0352046862244606, -0.09876348823308945, 0.3039316236972809, 0.2928979992866516, -0.4345577359199524, -0.16817529499530792, -0.31181618571281433, -0.012579390779137611, 0.6023134589195251, -0.13768157362937927, 0.29542726278305054, -0.027111459523439407, -0.1705850511789322, -0.16741393506526947, -0.9531021118164062, -0.11904201656579971, 0.30046311020851135, 0.10757215321063995, 0.22676722705364227, 0.5535487532615662, 0.16998830437660217, 0.9376513361930847, 0.24083037674427032, -0.011098056100308895, 0.10237681120634079, -0.13328656554222107, -0.02836102806031704, -0.0520024299621582, 0.49252694845199585, 0.35871994495391846, 0.24713030457496643, -0.5575001835823059, -0.04459521546959877, -0.008480795659124851, 0.37594178318977356, -0.42441314458847046, -0.36098262667655945, 0.00254443334415555, -0.3184835910797119, -0.1679590493440628, -0.21740828454494476, -0.4502846598625183, -0.5456109046936035, -0.27226361632347107, 0.1878206729888916, -0.18589045107364655, -0.3312549591064453, -0.528844952583313, -0.45011866092681885, 0.22295592725276947, 0.4809153079986572, -1.1106020212173462, 0.40434807538986206, 0.9369819760322571, 0.7909029126167297, 0.09774358570575714, -0.24553686380386353, -0.6537691354751587, 0.5223388075828552, -0.6898548007011414, 0.9945310354232788, -0.3970401883125305, -0.4273752272129059, -0.2523476779460907, 0.018596388399600983, -0.1425439417362213, -0.6778627634048462, 0.5915651917457581, -0.9187315702438354, 0.07311322540044785, -0.5628918409347534, -0.5993261337280273, -0.16652429103851318, 0.24301452934741974, -0.7884217500686646, 0.985017716884613, 0.2761531174182892, -0.9741343855857849, 0.33203375339508057, -0.21110203862190247, -0.46243593096733093, 0.040360599756240845, -0.2191963493824005, -0.31216710805892944, 0.19373063743114471, 0.16212564706802368, -0.04701632633805275, -0.34940555691719055, 0.2001713514328003, -0.3948744833469391, -0.46428918838500977, -0.0489109642803669, -0.05009518191218376, 0.52231764793396, 0.09163149446249008, 0.08040182292461395, 0.07873059809207916, -0.4046699106693268, 0.1585054099559784, 0.1546427309513092, -0.38219842314720154, -0.4773944020271301, -0.0005435023922473192, -0.09534749388694763, 0.15332931280136108, 0.13345849514007568, -0.43483325839042664, 0.24155738949775696, -0.5564772486686707, 0.20512142777442932, 0.6613122820854187, 0.05312388017773628, 0.6219063401222229, -0.6421926021575928, 0.32829463481903076, -0.18940162658691406, -0.31317245960235596, -0.23650643229484558, -0.6437628865242004, -0.9212532639503479, 0.11707747727632523, 0.5555726885795593, 0.4093739986419678, -0.7976717948913574, 0.22759903967380524, -0.35197731852531433, -0.5801834464073181, -0.22410081326961517, 0.07414814829826355, 0.42345407605171204, 0.8445159792900085, 0.252800852060318, -0.21971848607063293, -0.5932323932647705, -0.7153195738792419, -0.3953216075897217, -0.27808210253715515, -0.06374809145927429, 0.8659138083457947, 0.13449528813362122, -0.16744107007980347, 1.0274388790130615, -0.5401489734649658, -0.304104745388031, -0.32847869396209717, -0.15556660294532776, 0.24699538946151733, 0.252879798412323, 0.6491639614105225, -0.9225445985794067, -0.6254037022590637, 0.13861311972141266, -0.8193603754043579, -0.08197623491287231, 0.1683923751115799, -0.21638473868370056, 0.30820927023887634, 0.8123060464859009, -0.4229278862476349, 0.2652681767940521, 0.6007398366928101, -0.19737273454666138, 0.18745598196983337, -0.49654507637023926, -0.08600190281867981, -1.130493402481079, 0.3597964644432068, -0.23698246479034424, -0.4458792209625244, -0.4270954132080078, -0.026600444689393044, 0.02290421538054943, -0.42803436517715454, -0.022317303344607353, 0.7980949282646179, -0.6280733346939087, -0.3703046441078186, -0.48692643642425537, 0.5219563841819763, 0.19288629293441772, 0.2922482490539551, -0.4091595709323883, 0.870758593082428, 0.3920927345752716, -0.4956517517566681, 0.23254188895225525, 0.15833386778831482, 0.1942930519580841, 0.1086731106042862, -0.7551761269569397, 0.39327365159988403, -0.4246325194835663, 0.6152504086494446, -1.340301275253296, -0.21193602681159973, 0.14734961092472076, -0.6510183811187744, 0.7749468684196472, -0.49120214581489563, -0.2799043655395508, -0.2793591320514679, -0.2333993762731552, 0.5885341763496399, 0.29498061537742615, -0.6199063658714294, 0.6302055716514587, 0.750255823135376, -0.1464717984199524, -0.5749154090881348, -0.24837236106395721, 0.31239190697669983, -0.17881417274475098, -0.9249555468559265, 0.485060453414917, 0.29386574029922485, 0.03588641807436943, 0.08461811393499374, -0.24645955860614777, -0.08547448366880417, 0.15635205805301666, 0.3397039473056793, 0.15155062079429626, -0.07173357158899307, 0.2949427664279938, -0.005873884540051222, -0.5589373707771301, -0.10386461764574051, -0.15577766299247742, 0.5206024646759033, 0.006998429540544748, -0.21922814846038818, 0.26612165570259094, 0.33517318964004517, 0.44519907236099243, -0.1571570336818695, 0.585350751876831, 0.4192214906215668, -0.14176012575626373, -0.0063316780142486095, -0.5220080614089966, -0.04839619994163513, -0.49299725890159607, 0.05830274894833565, -0.3526066243648529, -1.031104326248169, 0.5537406206130981, -0.4623175263404846, -0.06489083170890808, 0.4250945448875427, 0.11626759171485901, -0.25108230113983154, 0.8326804041862488, 0.8195805549621582, -0.3586336672306061, 0.5240778923034668, -0.1531827300786972, 0.35804206132888794, -1.2612025737762451, 0.048955295234918594, -0.62548828125, -0.4846632182598114, -0.9073038697242737, -0.39763522148132324, 0.41365545988082886, 0.5313385128974915, -0.22656281292438507, 0.178050234913826, -0.34489762783050537, 0.6193742156028748, 0.44474610686302185, 0.0021437490358948708, 0.13917449116706848, 0.07147113233804703, -0.24385887384414673, 0.14931213855743408, -0.8805199861526489, -0.29005950689315796, 1.1484274864196777, 0.06729576736688614, 0.41150328516960144, 0.2872120141983032, 1.021754264831543, 0.2377558797597885, 0.6735056638717651, -0.6968503594398499, 0.5913755297660828, -0.3336258828639984, -0.28863900899887085, -0.24048228561878204, -0.4754919111728668, -1.4754983186721802, 0.40821462869644165, 0.014456436969339848, -0.7590841054916382, 0.02190643921494484, 0.24151688814163208, -0.07850043475627899, 0.0821177065372467, -0.6995782256126404, 0.5589985847473145, 0.16855691373348236, -0.26020997762680054, -0.039787136018276215, -0.5277455449104309, 0.37808316946029663, -0.07122524082660675, 0.11465089023113251, -0.0074846274219453335, -0.09792396426200867, 0.7265389561653137, -0.479653924703598, 0.445242315530777, 0.016324946656823158, 0.08394530415534973, 0.31395360827445984, -0.06591569632291794, 0.5892388820648193, -0.015240478329360485, 0.00259347609244287, -0.0940413624048233, -0.4179491698741913, -0.2355818897485733, -0.6887993216514587, 0.9594938158988953, -0.6763038635253906, -0.7601390480995178, -0.34917935729026794, -0.35898417234420776, -0.3498125374317169, 0.3577502965927124, 0.3094125986099243, 0.4543849229812622, 0.015401589684188366, 0.09889787435531616, 0.6164996027946472, -0.05008240416646004, 0.2667076885700226, 0.01423502154648304, -0.5289121270179749, -0.4984375536441803, 1.1690037250518799, 0.30695396661758423, 0.19166192412376404, 0.2742561399936676, 0.12734797596931458, -0.30556151270866394, -0.18901878595352173, -0.5660537481307983, 0.632906973361969, -0.7578384876251221, -0.18524140119552612, -0.651297926902771, -0.23430685698986053, -0.4804823100566864, -0.22100955247879028, -0.06016653776168823, -0.4669647812843323, 0.018330693244934082, 0.08295603841543198, 0.300632119178772, 0.7788804173469543, -0.073491670191288, 0.00733710452914238, -0.7553678750991821, 0.6239429712295532, 0.3350033760070801, 0.3658250570297241, 0.21566200256347656, -0.38207459449768066, -0.21422404050827026, -0.23221831023693085, -0.33126145601272583, -0.8352681994438171, 0.06875155121088028, 0.250700980424881, 0.6212855577468872, 0.1269528865814209, -0.06519656628370285, 0.5765032768249512, -0.8307992219924927, 0.47966304421424866, -0.0616067573428154, -0.5095736384391785, 0.4524485468864441, -0.6130573153495789, 0.19340309500694275, 0.4089747667312622, 0.1447015255689621, -0.7133021354675293, -0.42089349031448364, -0.882728099822998, -1.215875506401062, 0.4805157780647278, -0.0181818176060915, -0.10823589563369751, -0.17873364686965942, 0.466933935880661, -0.5128517746925354, 0.06304094195365906, -0.3265284299850464, -0.4387092590332031, 0.012623373419046402, 0.1875293105840683, -0.2807368040084839, -0.3805139660835266, -0.14168879389762878, -0.12972880899906158, 0.46395546197891235, -0.2590199410915375, 0.19171403348445892, 0.09355303645133972, 0.03775493800640106, -0.21829047799110413, -0.11312570422887802, 0.5132832527160645, 0.7794128060340881, -0.04933467507362366, 0.048468563705682755, 0.09883848577737808, -0.5753395557403564, 0.15475331246852875, -0.03133959323167801, -0.2812150716781616, 0.22846508026123047, 0.4299190938472748, 0.5587225556373596, 0.25614991784095764, -0.107731394469738, 0.22787067294120789, -0.15851867198944092, 0.06526590138673782, -0.16304488480091095, 0.21087688207626343, 0.42746007442474365, 0.014236634597182274, 0.2823476195335388, 0.10942035168409348, -0.01976226270198822, -0.35350531339645386, 0.27899953722953796, 0.41741588711738586, -0.13312235474586487, 0.08296698331832886, 0.5358363389968872, 0.17923131585121155, -0.42081984877586365, 0.520068347454071, -0.09210280328989029, -0.5102946758270264, 0.8434813022613525, 0.645384669303894, 0.8431819677352905, -0.01998843252658844, 0.05161420255899429, 0.4946604073047638, 0.2011527717113495, 0.07252314686775208, 0.07663603872060776, -0.24780946969985962, -0.6422008275985718, -0.4790966212749481, -0.44825518131256104, -0.49197134375572205, -0.13946418464183807, -0.47809338569641113, 0.006017225328832865, -0.562047004699707, -0.30420950055122375, 0.06555835902690887, 0.1647413820028305, -0.5449037551879883, 0.16931183636188507, -0.13864298164844513, 0.833916962146759, -0.6825402975082397, 0.7566761374473572, 0.6879289746284485, -0.34599921107292175, -0.9216455817222595, 0.15281926095485687, -0.11892417073249817, -0.5861167907714844, 0.8385214805603027, 0.2183862030506134, -0.2141309678554535, 0.2998266816139221, -0.14319294691085815, -1.259863018989563, 1.1766194105148315, 0.28001856803894043, -0.35737738013267517, 0.12095848470926285, -0.23045194149017334, 0.4812369644641876, -0.19341686367988586, 0.36590439081192017, 0.20949296653270721, 0.3025900721549988, 0.2841866612434387, -0.772488534450531, -0.11944540590047836, -0.278288871049881, 0.2429390251636505, 0.6810378432273865, -0.6326808333396912, 0.8060646653175354, -0.3020946681499481, -0.41545239090919495, 0.07903705537319183, 0.6120944023132324, 0.48850148916244507, 0.4877814054489136, 0.45923498272895813, 0.7767927050590515, 1.0590461492538452, -0.12979793548583984, 1.215388536453247, -0.26629123091697693, 0.30618003010749817, 1.3418749570846558, -0.37542814016342163, 0.8599433302879333, 0.35906782746315, 0.030144017189741135, 0.4302372634410858, 0.5770980715751648, 0.3409598469734192, 0.3217923045158386, 0.2743726074695587, -0.3387104868888855, -0.14718523621559143, -0.2015174776315689, -0.6393072605133057, 0.24945341050624847, 0.3096855878829956, -0.31906652450561523, -0.7672253251075745, -0.3293103873729706, 0.0631999671459198, 0.11120684444904327, -0.31197428703308105, 1.0251045227050781, 0.08396555483341217, -0.8578160405158997, 0.7345697283744812, -0.04624036327004433, 0.12749417126178741, -0.49978533387184143, -0.14708591997623444, -0.44296830892562866, 0.19569909572601318, -0.1926751285791397, -0.7489079833030701, 0.3804716467857361, -0.11723960936069489, -0.6422613859176636, -0.12698021531105042, 1.2370941638946533, -0.33525320887565613, -0.34988903999328613, 0.41575053334236145, 0.5251063108444214, 0.2895001173019409, 0.07759920507669449, -0.46908894181251526, 0.10012829303741455, -0.24197520315647125, -0.15843459963798523, 0.7953085899353027, 0.6404145359992981, -0.3975113034248352, 0.7086640000343323, 0.9512432813644409, -0.008874624036252499, -0.18917760252952576, 0.36735454201698303, 1.1551264524459839, -0.5592390298843384, -0.4541650712490082, -0.6035498380661011, 0.19109633564949036, -0.2643277645111084, -0.21147999167442322, 0.8386765122413635, 0.5378666520118713, 0.6588845252990723, 0.2892591953277588, 0.6253674030303955, 0.1284226030111313, 0.7407435178756714, -0.13371005654335022, 1.0008805990219116, -0.5303485989570618, 0.10483457893133163, -0.2365078628063202, -1.084177851676941, -0.2599821984767914, 0.43835657835006714, -0.24703764915466309, 0.1976138800382614, 0.5010128617286682, 0.7280433773994446, 0.04816460236907005, -0.2757270336151123, 0.3201613426208496, -0.06684079766273499, 0.5496293306350708, 0.5176175236701965, 0.40668216347694397, -0.6500771641731262, 0.5122911334037781, 0.19658982753753662, -0.30724772810935974, -0.3390674293041229, -0.9941084980964661, -0.626741886138916, -0.5282160639762878, -0.016353627666831017, -0.5864428281784058, 0.11144344508647919, 0.2959006726741791, 0.30076828598976135, -0.3170165717601776, -0.22129060328006744, -0.07294271886348724, 0.5885806679725647, 0.001414450234733522, -0.1306997537612915, 0.5359872579574585, -0.6860954165458679, -0.34214872121810913, 0.49554625153541565, 0.37803971767425537, -0.22607958316802979, -0.054083503782749176, -0.05945642292499542, -0.37447190284729004, -0.15887145698070526, 0.5688937902450562, 0.5683650374412537, -0.47286567091941833, -0.3584987223148346, -0.21387425065040588, -0.2330733835697174, -0.040974993258714676, 0.8450438380241394, -1.1091887950897217, 0.45963895320892334, 0.6749994158744812, 0.8046672344207764, 0.4460739195346832, 0.2571384906768799, 0.46459338068962097, -0.8083692789077759, -0.005286776926368475, 0.15589746832847595, 0.46178674697875977, 0.4765886962413788, -0.28599032759666443, 0.7409431338310242, 0.2617722749710083, -0.9256983399391174, -0.6843985915184021, 0.45715516805648804, -0.8138012886047363, -0.07839787751436234, 1.0404754877090454, -0.14075867831707, -0.4801926612854004, -0.3090311884880066, -0.3216147720813751, 0.29575538635253906, -0.029327573254704475, 0.6593059301376343, 0.45455411076545715, -0.07456055283546448, -0.2157866656780243, -0.42269763350486755, 0.555706262588501, 0.2584373950958252, -0.5664165616035461, 0.08678368479013443, 0.4371177554130554, 0.2537299394607544, 0.4863700568675995, 0.9833571910858154, 0.19926311075687408, 0.32703039050102234, 0.05120747908949852, -0.5174224972724915, -0.18161122500896454, -0.5130436420440674, 0.07208164036273956, 0.2618659436702728, 0.26844465732574463, -0.11838749796152115 ]
http://arxiv.org/abs/2405.18406v1
http://arxiv.org/pdf/2405.18406v1
RACCooN: Remove, Add, and Change Video Content with Auto-Generated Narratives
2024-05-28T17:46:36
2024-05-28T17:46:36
Jaehong Yoon, Shoubin Yu, Mohit Bansal
cs.CV
cs.CV, cs.AI, cs.CL
Recent video generative models primarily rely on carefully written text prompts for specific tasks, like inpainting or style editing. They require labor-intensive textual descriptions for input videos, hindering their flexibility to adapt personal/raw videos to user specifications. This paper proposes RACCooN, a versatile and user-friendly video-to-paragraph-to-video generative framework that supports multiple video editing capabilities such as removal, addition, and modification, through a unified pipeline. RACCooN consists of two principal stages: Video-to-Paragraph (V2P) and Paragraph-to-Video (P2V). In the V2P stage, we automatically describe video scenes in well-structured natural language, capturing both the holistic context and focused object details. Subsequently, in the P2V stage, users can optionally refine these descriptions to guide the video diffusion model, enabling various modifications to the input video, such as removing, changing subjects, and/or adding new objects. The proposed approach stands out from other methods through several significant contributions: (1) RACCooN suggests a multi-granular spatiotemporal pooling strategy to generate well-structured video descriptions, capturing both the broad context and object details without requiring complex human annotations, simplifying precise video content editing based on text for users. (2) Our video generative model incorporates auto-generated narratives or instructions to enhance the quality and accuracy of the generated content. It supports the addition of video objects, inpainting, and attribute modification within a unified framework, surpassing existing video editing and inpainting benchmarks. The proposed framework demonstrates impressive versatile capabilities in video-to-paragraph generation, video content editing, and can be incorporated into other SoTA video generative models for further enhancement.
[ -0.5701476335525513, -0.8297303915023804, 0.14415773749351501, 0.4508551061153412, -0.3368586003780365, -0.007634811103343964, -0.266308456659317, -0.3875087797641754, 0.22882452607154846, 0.5005830526351929, -0.7150034308433533, -0.4003584086894989, -0.6323485970497131, 0.18088386952877045, -0.70867919921875, 1.1797415018081665, -0.14017213881015778, -0.5634739398956299, -0.09463626891374588, -0.25878164172172546, -0.6270321607589722, 0.03247147053480148, -0.30076998472213745, -0.3033995032310486, 0.42168959975242615, 0.4645693302154541, 1.0802812576293945, 1.1293895244598389, 0.3246070444583893, 0.28736862540245056, 0.08510246872901917, 0.31144076585769653, -0.1412479430437088, 0.3597041070461273, -0.22880759835243225, 0.18681402504444122, -0.2632187008857727, -0.25593164563179016, 0.421829491853714, 0.2561511993408203, -0.12479940801858902, 0.18225319683551788, 0.25382742285728455, 0.6112353205680847, -0.9992811679840088, -0.040608953684568405, -0.2813912332057953, 0.5145264267921448, -0.004154851194471121, -0.5421829223632812, -0.0840776115655899, -0.13570715487003326, 0.12280683219432831, -1.0367528200149536, 0.6801027059555054, -0.45610445737838745, 0.758193850517273, 0.4264659583568573, -0.02052002213895321, -0.3184821605682373, -1.1119657754898071, 0.30417367815971375, -0.29696086049079895, -0.06319229304790497, 0.5152727961540222, 0.29115840792655945, 0.2687775492668152, -0.9053097367286682, -0.6007588505744934, 0.014898743480443954, 0.024229684844613075, 0.30232247710227966, -0.3765513002872467, 0.15832984447479248, 0.167814701795578, 0.5774851441383362, -0.898452639579773, 0.07626807689666748, -0.09240801632404327, 0.05971258878707886, 0.7637250423431396, 0.4712887108325958, 0.5933541655540466, -0.4847680926322937, -0.29860934615135193, -0.12892384827136993, -0.461422860622406, 0.07255692034959793, 0.5374597907066345, -0.3288899064064026, 0.012170861475169659, 0.9572625160217285, -0.39396822452545166, 0.5813010931015015, 0.12814335525035858, -0.09254258126020432, -0.2652873694896698, -0.2989021837711334, -0.5624881982803345, 0.08392401039600372, 0.8945022225379944, 0.6202790141105652, -0.26605039834976196, 0.02123035304248333, -0.0841783657670021, 0.024740342050790787, 0.4451838433742523, -0.9567339420318604, -0.6206716299057007, -0.11945736408233643, -0.5388866066932678, -0.3233729600906372, 0.2912713885307312, -1.0218849182128906, -0.33386364579200745, 0.027325181290507317, 0.4259452819824219, -0.47998976707458496, -0.05457565560936928, 0.40598270297050476, -0.08582556247711182, 0.07867003977298737, 0.5956438183784485, -0.9640616774559021, 0.15152016282081604, 0.31401145458221436, 0.9581155180931091, -0.076558418571949, -0.4348991811275482, -0.5336586236953735, 0.6544693112373352, -0.3078221082687378, 1.0517935752868652, -0.7054579257965088, -0.5104824900627136, 0.43202096223831177, -0.06962798535823822, 0.27630218863487244, -0.516869843006134, 0.2769964933395386, -0.4814985394477844, 0.11167818307876587, -0.14516720175743103, -0.38463717699050903, -0.330147922039032, 0.025755103677511215, -0.7414155602455139, 0.9676733613014221, -0.24658802151679993, -0.7866640090942383, 0.37077146768569946, -0.7418965101242065, -0.6814862489700317, 0.34951648116111755, -0.06003399193286896, -0.4085701107978821, 0.04039144515991211, 0.380985826253891, 0.36604297161102295, -0.034830231219530106, 0.23074249923229218, -0.14672288298606873, -0.28581762313842773, 0.25865182280540466, -0.5319236516952515, 0.21345026791095734, 0.42639854550361633, -0.021146055310964584, 0.23823405802249908, -0.6065534949302673, -0.33781495690345764, -0.11697663366794586, -0.2935621738433838, 0.11017221212387085, 0.03327127546072006, 0.1759987771511078, 0.16030307114124298, -0.2558342516422272, -0.14212515950202942, 0.33579421043395996, -0.13040027022361755, 0.6761263012886047, 0.4896171987056732, 0.19803626835346222, 0.6962946057319641, -0.31038403511047363, 0.9929475784301758, -0.3691841661930084, 0.15769995748996735, -0.7122880816459656, -0.33219775557518005, -0.4946867823600769, -0.5350151062011719, -0.47607511281967163, 0.35653001070022583, -0.8266845345497131, 0.3015265166759491, -0.00459122471511364, -0.19471417367458344, -0.12839454412460327, 0.2894457280635834, 0.02937607653439045, 0.26565325260162354, 0.3101281523704529, -0.3438721001148224, -0.4792744517326355, -0.4817379415035248, 0.072865329682827, -0.043685246258974075, -0.27559009194374084, 0.06163296476006508, 0.2775554358959198, -0.09830734878778458, 1.2095048427581787, -0.8359900712966919, -0.5604314208030701, -0.304913192987442, 0.5646053552627563, -0.3201049566268921, 0.33170273900032043, 0.2687718868255615, -0.7062143683433533, -0.46764135360717773, 0.09717819094657898, -0.9915406107902527, -0.00783836655318737, -0.3984328508377075, 0.3930358588695526, -0.2646745443344116, 0.27387282252311707, -0.9409595131874084, 0.7792934775352478, 0.3971380889415741, 0.06885585188865662, 0.850896954536438, -0.7169755697250366, 0.4446456730365753, -0.9521006345748901, -0.21325822174549103, 0.1582130640745163, 0.14027583599090576, -0.3862713873386383, 0.023218728601932526, -0.41737332940101624, -0.3962293565273285, -0.4066561460494995, 0.19958369433879852, -0.17726561427116394, -0.3545127213001251, -0.3059519827365875, 0.04072343185544014, 0.43796658515930176, 0.3701745569705963, 0.3332277536392212, 0.8101377487182617, 0.6932477951049805, -0.6137562990188599, 0.5781161189079285, 0.5569050908088684, -0.41104939579963684, 0.5356187224388123, -0.6532055139541626, 0.03982287272810936, -0.2797498404979706, 0.3670414686203003, -1.0124915838241577, -0.6523683071136475, 0.45276761054992676, -0.40996280312538147, -0.15870903432369232, -0.3151612877845764, -0.5182400345802307, -0.13764995336532593, -0.460306316614151, 0.5930857062339783, 0.2092479169368744, -0.6378210783004761, 0.7469967603683472, -0.0508725643157959, -0.4966258108615875, -0.3521079421043396, -0.6422183513641357, 0.5942824482917786, -0.5234361886978149, -0.8237126469612122, 0.8407514691352844, -0.21410895884037018, 0.07819906622171402, 0.15797178447246552, -0.013776648789644241, -0.617773175239563, -0.44285130500793457, 0.4499291777610779, 0.12971997261047363, 0.016927406191825867, 0.03290301561355591, 0.2596903443336487, -0.20270690321922302, -0.20165662467479706, -0.059332866221666336, 0.17320232093334198, 0.3537828326225281, -0.05674373358488083, -0.6903983950614929, 0.7077058553695679, 0.43390223383903503, -0.6368603706359863, 0.028986824676394463, 1.0943353176116943, -0.3696892261505127, -0.13579495251178741, -0.3642619550228119, -0.08809974044561386, -0.5029304623603821, 0.7212309837341309, -0.3721892535686493, -0.9266917109489441, 0.449968159198761, 0.12386292219161987, 0.040665678679943085, 0.13063523173332214, 0.44172900915145874, -0.4114517867565155, 0.9498588442802429, 0.4382343292236328, 0.37055283784866333, 0.6525479555130005, -0.49939823150634766, 0.18880736827850342, -0.6429907083511353, -0.2601127326488495, -0.40617185831069946, 0.09515152126550674, -0.1405300348997116, -0.46164748072624207, 0.3361528515815735, 0.2483605295419693, 0.008936374448239803, 0.5193125605583191, -0.5556095838546753, 0.5950418710708618, -0.1846971958875656, 0.06217249855399132, 0.42623409628868103, 0.011863335967063904, 0.5498826503753662, -0.4113127291202545, -0.6029500365257263, -0.5698652863502502, 0.6182902455329895, 0.2269674837589264, 0.9838950634002686, 0.2031160145998001, 0.35554221272468567, 0.8372563123703003, -0.03469644486904144, -0.6930127739906311, 0.6584138870239258, -0.1934436708688736, -0.07613392174243927, -0.2980589270591736, 0.028997156769037247, -0.4843367636203766, 0.1324942260980606, -0.476571649312973, -0.4938454329967499, -0.17964904010295868, 0.18141408264636993, -0.8096848726272583, 0.397286981344223, -0.33433932065963745, 0.8012433648109436, 0.15428730845451355, -0.7123895883560181, -0.5650955438613892, -0.3659752309322357, 0.26941874623298645, 0.23435349762439728, 0.0383012592792511, 0.1252051293849945, -0.08744166046380997, 0.4725285768508911, -0.6702257394790649, 0.5576713681221008, 0.15826621651649475, 0.04242879897356033, 0.736328125, 0.5278627276420593, 0.4622241258621216, 0.7091506123542786, 0.36238425970077515, -0.15191207826137543, -0.19159798324108124, 0.08655001223087311, -0.8964772820472717, 0.4322867691516876, -0.5850276350975037, -0.27989262342453003, -0.15789736807346344, -0.6612515449523926, 0.385986328125, -0.1752595603466034, 0.4043196737766266, 0.6039417386054993, -0.3373159170150757, 0.2191794514656067, 0.8478135466575623, -0.5746369361877441, 0.9323274493217468, 0.1438881754875183, -0.10225701332092285, -0.7300451993942261, 0.8321282267570496, -0.2001010626554489, 0.0025534075684845448, 0.39395731687545776, 0.07612355798482895, -0.13802731037139893, -0.51084965467453, -0.6137406826019287, -0.2676738500595093, -0.523513913154602, -0.2993302047252655, -0.9625076055526733, -0.12340743094682693, -0.26703211665153503, -0.6629803776741028, -0.47514718770980835, -0.046229273080825806, -0.6017577648162842, -0.3725571632385254, 0.3965355455875397, 0.7600870728492737, -0.26600363850593567, 0.5909721255302429, -0.7938801646232605, 0.6156635284423828, 0.8867455720901489, 0.1151561364531517, -0.18042753636837006, -0.7087151408195496, -0.364795446395874, -0.28216901421546936, -0.5258796811103821, -0.7645746469497681, 0.5333154201507568, 0.31076478958129883, -0.027732737362384796, 0.786950409412384, -0.14151427149772644, 1.1579231023788452, -0.2988363802433014, 0.893417477607727, 0.4856981635093689, -0.7845506072044373, 0.42233312129974365, -0.5256626009941101, 0.14680883288383484, 0.16262635588645935, -0.07963337004184723, -0.6370203495025635, -0.12272881716489792, -0.18842443823814392, -0.7243891954421997, 0.6346516013145447, 0.2552916705608368, 0.4030100405216217, 0.12862373888492584, 0.4082302451133728, 0.43997934460639954, -0.1308736950159073, -0.6703418493270874, 0.11750852316617966, -0.8572431206703186, 0.12755531072616577, 0.19357171654701233, -0.35588139295578003, 0.03275495767593384, -0.25212550163269043, 0.36041492223739624, -0.19496095180511475, 0.10963720083236694, 0.21910320222377777, -0.2891126871109009, -0.32233840227127075, 0.29059016704559326, 0.4306015372276306, 0.40261110663414, -0.09843344241380692, 0.022235626354813576, 0.0066244942136108875, -0.3916876018047333, 0.18192243576049805, -0.11459701508283615, -0.3804856240749359, 0.08162325620651245, 0.5004011392593384, 0.6187029480934143, 0.27761343121528625, -0.5116065740585327, 0.46387752890586853, 0.1339053511619568, -0.44159236550331116, -0.3644319772720337, 0.1985221952199936, -0.25474813580513, 0.15653061866760254, 0.35688814520835876, 0.47592809796333313, 0.29642319679260254, -0.3102729618549347, 0.43099069595336914, 0.03072437457740307, -0.226141095161438, -0.6254017949104309, 0.8322817087173462, 0.15440645813941956, -0.5675250887870789, 0.39354121685028076, -0.23986579477787018, -0.10722959041595459, 0.3466223478317261, 0.3467111587524414, 1.1301920413970947, -0.07850345969200134, 1.0044363737106323, 0.46539023518562317, 0.010634028352797031, -0.2158576101064682, -0.5030723214149475, -0.38351598381996155, -0.7423485517501831, -0.5850104093551636, -0.2343471646308899, -0.010876377113163471, 0.1532021015882492, -1.1091548204421997, 0.22481195628643036, -0.49748581647872925, -0.0709231048822403, 0.14061307907104492, -0.2900821566581726, -0.4976625144481659, 0.22578135132789612, 0.009190530516207218, 0.6221962571144104, -1.0407732725143433, 0.9188612699508667, 0.696138858795166, -0.8790882229804993, -0.5001716017723083, 0.026342909783124924, -0.006171386688947678, -0.24978062510490417, 0.3383597433567047, 0.11459912359714508, -0.14806193113327026, -0.2662964165210724, -0.3196500241756439, -0.4170651435852051, 1.1054120063781738, 0.3118565082550049, -0.22697295248508453, -0.26563844084739685, 0.1940116435289383, 0.3919704258441925, -0.5809618234634399, 0.18326310813426971, 0.1940004825592041, 0.30146458745002747, 0.5782544612884521, -0.12852723896503448, -0.4291864037513733, -0.04093209281563759, 0.36309412121772766, -0.2898559868335724, -0.3944511413574219, 0.7261159420013428, -0.36854004859924316, -0.2505090534687042, 0.37244150042533875, 1.0369436740875244, -0.09947800636291504, 0.3300361633300781, 0.44268640875816345, 0.6607584953308105, -0.00785785261541605, 0.19606156647205353, 0.5669555068016052, 0.07113748788833618, 0.30787014961242676, 1.372707486152649, -0.2816435396671295, 0.3398382365703583, 0.4030553102493286, -0.1076875701546669, 0.46369481086730957, 0.5176671743392944, -0.09995270520448685, 0.8032294511795044, -0.20964424312114716, -0.6154309511184692, -0.4641548693180084, -0.1868445873260498, -0.07065195590257645, 0.7187973856925964, 0.047598887234926224, -0.1025056466460228, -0.35882630944252014, 0.48633694648742676, -0.07842990756034851, 0.5223240256309509, -0.17405113577842712, 0.8660786747932434, -0.33712780475616455, -0.4911266267299652, -0.14910779893398285, 0.08137760311365128, 0.417741060256958, -0.6051961183547974, -0.3735398054122925, -0.35014328360557556, -0.1003512516617775, -0.5723638534545898, -0.9484599232673645, 0.6266027688980103, 0.4210946261882782, -0.35429444909095764, -0.6011978387832642, 0.5648084282875061, -0.5841711759567261, -0.16460150480270386, 0.08252432942390442, -0.06373079866170883, -0.11732777953147888, -0.13537664711475372, -0.714099645614624, 0.40183547139167786, -0.11913441866636276, -0.23737762868404388, 0.2785116732120514, 0.42978623509407043, 0.17982004582881927, 0.6591761112213135, 0.4357442259788513, -0.09222684800624847, -0.18898960947990417, 0.17691411077976227, 0.8124071359634399, -0.4226093888282776, -0.6113747358322144, -0.7374531626701355, 0.5114941000938416, 0.23385252058506012, -0.17901335656642914, 0.6590624451637268, 0.6014086008071899, 0.876064121723175, -0.2090175747871399, 0.9251748919487, -0.4040372669696808, -0.2481217086315155, -0.3877120316028595, 0.41786104440689087, -0.3768834173679352, 0.14175841212272644, -0.5981895923614502, -0.9635728001594543, -0.25748634338378906, 0.7403436899185181, 0.12088917940855026, -0.18778061866760254, 0.673795223236084, 1.0597516298294067, 0.004709761124104261, 0.32847219705581665, 0.34287312626838684, 0.020272010937333107, 0.433377206325531, 0.31486475467681885, 1.0949265956878662, -0.3432201147079468, 0.8504243493080139, -0.3692730665206909, -0.01539083942770958, -0.052775051444768906, -0.9310973286628723, -0.5621440410614014, -0.6023346781730652, -0.7326264381408691, -0.06595999747514725, 0.10679320245981216, 0.7366755604743958, 0.84815913438797, -0.24418839812278748, -0.3123351037502289, -0.051276903599500656, -0.129337877035141, -0.5366554856300354, -0.23055647313594818, 0.29041701555252075, 0.19303877651691437, -0.46273481845855713, 0.5339927673339844, 1.012408971786499, -0.25508418679237366, -0.28357967734336853, -0.3370572626590729, 0.11228231340646744, -0.07025954872369766, 0.6326159238815308, 0.48549672961235046, -0.5814405083656311, -0.5186768770217896, -0.3004091680049896, 0.0978807732462883, 0.24164807796478271, 1.1998213529586792, -0.36660075187683105, 0.8211688995361328, 0.2969411313533783, 0.4876076579093933, 0.846969485282898, 0.11013375967741013, 0.41458073258399963, -0.679741621017456, 0.3371231257915497, -0.04803568497300148, 0.05234864726662636, 0.35267066955566406, -0.312979519367218, 0.2328546792268753, 0.23721131682395935, -0.3628183603286743, -0.44061803817749023, 0.2730817496776581, -1.0238407850265503, -0.1925135999917984, 1.0003780126571655, -0.36768484115600586, 0.2541274130344391, -0.012317477725446224, -0.419830322265625, 0.3105854392051697, -0.22409790754318237, 0.9707658886909485, 0.33660656213760376, -0.1009211391210556, -0.4368697702884674, -0.5618308186531067, 0.5652796030044556, 0.17252781987190247, -0.7008346915245056, 0.35135969519615173, 0.7520475387573242, 0.28580501675605774, -0.4419269859790802, 0.7071085572242737, -0.11134122312068939, 0.42068907618522644, -0.14455601572990417, 0.23387965559959412, -0.5746921896934509, -0.7239429354667664, -0.49978867173194885, 0.4561230540275574, -0.3700636029243469, -0.2963792085647583 ]