Add Batch 6131f93a-3607-41b6-a733-7d77ddf700cc data
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributes+64
- 2024/Enhancing Healthcare LLM Trust with Atypical Presentations Recalibration/17ec7f20-2d49-42cd-ae5b-0732762276cf_content_list.jsonAdded
- 2024/Enhancing Healthcare LLM Trust with Atypical Presentations Recalibration/17ec7f20-2d49-42cd-ae5b-0732762276cf_model.jsonAdded
- 2024/Enhancing Healthcare LLM Trust with Atypical Presentations Recalibration/17ec7f20-2d49-42cd-ae5b-0732762276cf_origin.pdfAdded+3
- 2024/Enhancing Healthcare LLM Trust with Atypical Presentations Recalibration/full.mdAdded+439
- 2024/Enhancing Healthcare LLM Trust with Atypical Presentations Recalibration/images.zipAdded+3
- 2024/Enhancing Healthcare LLM Trust with Atypical Presentations Recalibration/layout.jsonAdded
- 2024/Enhancing Incremental Summarization with Structured Representations/8653e353-8f1f-4214-9cbf-09d01f8972cf_content_list.jsonAdded+2529
- 2024/Enhancing Incremental Summarization with Structured Representations/8653e353-8f1f-4214-9cbf-09d01f8972cf_model.jsonAdded
- 2024/Enhancing Incremental Summarization with Structured Representations/8653e353-8f1f-4214-9cbf-09d01f8972cf_origin.pdfAdded+3
- 2024/Enhancing Incremental Summarization with Structured Representations/full.mdAdded+570
- 2024/Enhancing Incremental Summarization with Structured Representations/images.zipAdded+3
- 2024/Enhancing Incremental Summarization with Structured Representations/layout.jsonAdded
- 2024/Enhancing Large Language Model Based Sequential Recommender Systems with Pseudo Labels Reconstruction/d8390418-9816-48d9-8756-5a4b9fab7dad_content_list.jsonAdded+1666
- 2024/Enhancing Large Language Model Based Sequential Recommender Systems with Pseudo Labels Reconstruction/d8390418-9816-48d9-8756-5a4b9fab7dad_model.jsonAdded+2112
- 2024/Enhancing Large Language Model Based Sequential Recommender Systems with Pseudo Labels Reconstruction/d8390418-9816-48d9-8756-5a4b9fab7dad_origin.pdfAdded+3
- 2024/Enhancing Large Language Model Based Sequential Recommender Systems with Pseudo Labels Reconstruction/full.mdAdded+314
- 2024/Enhancing Large Language Model Based Sequential Recommender Systems with Pseudo Labels Reconstruction/images.zipAdded+3
- 2024/Enhancing Large Language Model Based Sequential Recommender Systems with Pseudo Labels Reconstruction/layout.jsonAdded
- 2024/Enhancing Learning-Based Binary Code Similarity Detection Model through Adversarial Training with Multiple Function Variants/60adc150-5809-4fe3-9995-47468de3f8aa_content_list.jsonAdded+1646
- 2024/Enhancing Learning-Based Binary Code Similarity Detection Model through Adversarial Training with Multiple Function Variants/60adc150-5809-4fe3-9995-47468de3f8aa_model.jsonAdded+2081
- 2024/Enhancing Learning-Based Binary Code Similarity Detection Model through Adversarial Training with Multiple Function Variants/60adc150-5809-4fe3-9995-47468de3f8aa_origin.pdfAdded+3
- 2024/Enhancing Learning-Based Binary Code Similarity Detection Model through Adversarial Training with Multiple Function Variants/full.mdAdded+307
- 2024/Enhancing Learning-Based Binary Code Similarity Detection Model through Adversarial Training with Multiple Function Variants/images.zipAdded+3
- 2024/Enhancing Learning-Based Binary Code Similarity Detection Model through Adversarial Training with Multiple Function Variants/layout.jsonAdded
- 2024/Enhancing Multi-Label Text Classification under Label-Dependent Noise_ A Label-Specific Denoising Framework/853a02cc-e7bc-4ccb-a3fc-1f3bd9fce229_content_list.jsonAdded
- 2024/Enhancing Multi-Label Text Classification under Label-Dependent Noise_ A Label-Specific Denoising Framework/853a02cc-e7bc-4ccb-a3fc-1f3bd9fce229_model.jsonAdded
- 2024/Enhancing Multi-Label Text Classification under Label-Dependent Noise_ A Label-Specific Denoising Framework/853a02cc-e7bc-4ccb-a3fc-1f3bd9fce229_origin.pdfAdded+3
- 2024/Enhancing Multi-Label Text Classification under Label-Dependent Noise_ A Label-Specific Denoising Framework/full.mdAdded+488
- 2024/Enhancing Multi-Label Text Classification under Label-Dependent Noise_ A Label-Specific Denoising Framework/images.zipAdded+3
- 2024/Enhancing Multi-Label Text Classification under Label-Dependent Noise_ A Label-Specific Denoising Framework/layout.jsonAdded
- 2024/Enhancing Polyglot Voices by Leveraging Cross-Lingual Fine-Tuning in Any-to-One Voice Conversion/3dcf681b-a779-483e-94de-6396a194a241_content_list.jsonAdded+1424
- 2024/Enhancing Polyglot Voices by Leveraging Cross-Lingual Fine-Tuning in Any-to-One Voice Conversion/3dcf681b-a779-483e-94de-6396a194a241_model.jsonAdded+1848
- 2024/Enhancing Polyglot Voices by Leveraging Cross-Lingual Fine-Tuning in Any-to-One Voice Conversion/3dcf681b-a779-483e-94de-6396a194a241_origin.pdfAdded+3
- 2024/Enhancing Polyglot Voices by Leveraging Cross-Lingual Fine-Tuning in Any-to-One Voice Conversion/full.mdAdded+249
- 2024/Enhancing Polyglot Voices by Leveraging Cross-Lingual Fine-Tuning in Any-to-One Voice Conversion/images.zipAdded+3
- 2024/Enhancing Polyglot Voices by Leveraging Cross-Lingual Fine-Tuning in Any-to-One Voice Conversion/layout.jsonAdded
- 2024/Enhancing Short-Text Topic Modeling with LLM-Driven Context Expansion and Prefix-Tuned VAEs/b492108e-737d-4457-aa24-43abcb7c1250_content_list.jsonAdded
- 2024/Enhancing Short-Text Topic Modeling with LLM-Driven Context Expansion and Prefix-Tuned VAEs/b492108e-737d-4457-aa24-43abcb7c1250_model.jsonAdded
- 2024/Enhancing Short-Text Topic Modeling with LLM-Driven Context Expansion and Prefix-Tuned VAEs/b492108e-737d-4457-aa24-43abcb7c1250_origin.pdfAdded
- 2024/Enhancing Short-Text Topic Modeling with LLM-Driven Context Expansion and Prefix-Tuned VAEs/full.mdAdded
- 2024/Enhancing Short-Text Topic Modeling with LLM-Driven Context Expansion and Prefix-Tuned VAEs/images.zipAdded
- 2024/Enhancing Short-Text Topic Modeling with LLM-Driven Context Expansion and Prefix-Tuned VAEs/layout.jsonAdded
- 2024/Enhancing Temporal Modeling of Video LLMs via Time Gating/3396d994-72e8-4416-8e98-970f8651e540_content_list.jsonAdded
- 2024/Enhancing Temporal Modeling of Video LLMs via Time Gating/3396d994-72e8-4416-8e98-970f8651e540_model.jsonAdded
- 2024/Enhancing Temporal Modeling of Video LLMs via Time Gating/3396d994-72e8-4416-8e98-970f8651e540_origin.pdfAdded
- 2024/Enhancing Temporal Modeling of Video LLMs via Time Gating/full.mdAdded
- 2024/Enhancing Temporal Modeling of Video LLMs via Time Gating/images.zipAdded
- 2024/Enhancing Temporal Modeling of Video LLMs via Time Gating/layout.jsonAdded
- 2024/Enhancing Temporal Sensitivity and Reasoning for Time-Sensitive Question Answering/0da014d0-8561-4020-960b-9f3020bb0b25_content_list.jsonAdded
3312 unmodified lines3313331433153312 unmodified lines2024/Enhancing[[:space:]]Discourse[[:space:]]Dependency[[:space:]]Parsing[[:space:]]with[[:space:]]Sentence[[:space:]]Dependency[[:space:]]Parsing_[[:space:]]A[[:space:]]Unified[[:space:]]Generative[[:space:]]Method[[:space:]]Based[[:space:]]on[[:space:]]Code[[:space:]]Representation/170afbaa-33e5-44bf-8d41-2e4757ddca49_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Enhancing[[:space:]]Emotion-Cause[[:space:]]Pair[[:space:]]Extraction[[:space:]]in[[:space:]]Conversations[[:space:]]via[[:space:]]Center[[:space:]]Event[[:space:]]Detection[[:space:]]and[[:space:]]Reasoning/8aab1f90-8a0c-4fa8-94e4-4276ec5cd0de_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Enhancing[[:space:]]Fine-Grained[[:space:]]Image[[:space:]]Classifications[[:space:]]via[[:space:]]Cascaded[[:space:]]Vision[[:space:]]Language[[:space:]]Models/c81126b4-63e9-4bd8-ba13-eb33ce8c77ef_origin.pdf filter=lfs diff=lfs merge=lfs -text3312 unmodified lines33133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793312 unmodified lines2024/Enhancing[[:space:]]Discourse[[:space:]]Dependency[[:space:]]Parsing[[:space:]]with[[:space:]]Sentence[[:space:]]Dependency[[:space:]]Parsing_[[:space:]]A[[:space:]]Unified[[:space:]]Generative[[:space:]]Method[[:space:]]Based[[:space:]]on[[:space:]]Code[[:space:]]Representation/170afbaa-33e5-44bf-8d41-2e4757ddca49_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Enhancing[[:space:]]Emotion-Cause[[:space:]]Pair[[:space:]]Extraction[[:space:]]in[[:space:]]Conversations[[:space:]]via[[:space:]]Center[[:space:]]Event[[:space:]]Detection[[:space:]]and[[:space:]]Reasoning/8aab1f90-8a0c-4fa8-94e4-4276ec5cd0de_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Enhancing[[:space:]]Fine-Grained[[:space:]]Image[[:space:]]Classifications[[:space:]]via[[:space:]]Cascaded[[:space:]]Vision[[:space:]]Language[[:space:]]Models/c81126b4-63e9-4bd8-ba13-eb33ce8c77ef_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Enhancing[[:space:]]Healthcare[[:space:]]LLM[[:space:]]Trust[[:space:]]with[[:space:]]Atypical[[:space:]]Presentations[[:space:]]Recalibration/17ec7f20-2d49-42cd-ae5b-0732762276cf_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Enhancing[[:space:]]Incremental[[:space:]]Summarization[[:space:]]with[[:space:]]Structured[[:space:]]Representations/8653e353-8f1f-4214-9cbf-09d01f8972cf_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Enhancing[[:space:]]Large[[:space:]]Language[[:space:]]Model[[:space:]]Based[[:space:]]Sequential[[:space:]]Recommender[[:space:]]Systems[[:space:]]with[[:space:]]Pseudo[[:space:]]Labels[[:space:]]Reconstruction/d8390418-9816-48d9-8756-5a4b9fab7dad_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Enhancing[[:space:]]Learning-Based[[:space:]]Binary[[:space:]]Code[[:space:]]Similarity[[:space:]]Detection[[:space:]]Model[[:space:]]through[[:space:]]Adversarial[[:space:]]Training[[:space:]]with[[:space:]]Multiple[[:space:]]Function[[:space:]]Variants/60adc150-5809-4fe3-9995-47468de3f8aa_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Enhancing[[:space:]]Multi-Label[[:space:]]Text[[:space:]]Classification[[:space:]]under[[:space:]]Label-Dependent[[:space:]]Noise_[[:space:]]A[[:space:]]Label-Specific[[:space:]]Denoising[[:space:]]Framework/853a02cc-e7bc-4ccb-a3fc-1f3bd9fce229_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Enhancing[[:space:]]Polyglot[[:space:]]Voices[[:space:]]by[[:space:]]Leveraging[[:space:]]Cross-Lingual[[:space:]]Fine-Tuning[[:space:]]in[[:space:]]Any-to-One[[:space:]]Voice[[:space:]]Conversion/3dcf681b-a779-483e-94de-6396a194a241_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Enhancing[[:space:]]Short-Text[[:space:]]Topic[[:space:]]Modeling[[:space:]]with[[:space:]]LLM-Driven[[:space:]]Context[[:space:]]Expansion[[:space:]]and[[:space:]]Prefix-Tuned[[:space:]]VAEs/b492108e-737d-4457-aa24-43abcb7c1250_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Enhancing[[:space:]]Temporal[[:space:]]Modeling[[:space:]]of[[:space:]]Video[[:space:]]LLMs[[:space:]]via[[:space:]]Time[[:space:]]Gating/3396d994-72e8-4416-8e98-970f8651e540_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Enhancing[[:space:]]Temporal[[:space:]]Sensitivity[[:space:]]and[[:space:]]Reasoning[[:space:]]for[[:space:]]Time-Sensitive[[:space:]]Question[[:space:]]Answering/0da014d0-8561-4020-960b-9f3020bb0b25_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Enhancing[[:space:]]Tool[[:space:]]Retrieval[[:space:]]with[[:space:]]Iterative[[:space:]]Feedback[[:space:]]from[[:space:]]Large[[:space:]]Language[[:space:]]Models/8e835b72-8084-4bdc-9d76-c82a99402123_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Entity[[:space:]]or[[:space:]]Relation[[:space:]]Embeddings_[[:space:]]An[[:space:]]Analysis[[:space:]]of[[:space:]]Encoding[[:space:]]Strategies[[:space:]]for[[:space:]]Relation[[:space:]]Extraction/1ff28547-f5f0-49df-8725-8c682f4e2617_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Evaluating[[:space:]]Automatic[[:space:]]Metrics[[:space:]]with[[:space:]]Incremental[[:space:]]Machine[[:space:]]Translation[[:space:]]Systems/68fb75f2-ea03-424e-9af9-3015aac21c29_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Evaluating[[:space:]]Biases[[:space:]]in[[:space:]]Context-Dependent[[:space:]]Sexual[[:space:]]and[[:space:]]Reproductive[[:space:]]Health[[:space:]]Questions/17650555-f517-48a8-984d-b9301f8b808d_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Evaluating[[:space:]]Differentially[[:space:]]Private[[:space:]]Synthetic[[:space:]]Data[[:space:]]Generation[[:space:]]in[[:space:]]High-Stakes[[:space:]]Domains/02e666f8-bb21-47b6-b6fd-33db747071f8_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Evaluating[[:space:]]Gender[[:space:]]Bias[[:space:]]of[[:space:]]LLMs[[:space:]]in[[:space:]]Making[[:space:]]Morality[[:space:]]Judgements/4bbc5bbc-1137-4665-9206-8f450f227d7a_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Evaluating[[:space:]]Language[[:space:]]Model[[:space:]]Character[[:space:]]Traits/79e2a39f-a898-40e8-8e81-050c0aef0fa9_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Evaluating[[:space:]]Moral[[:space:]]Beliefs[[:space:]]across[[:space:]]LLMs[[:space:]]through[[:space:]]a[[:space:]]Pluralistic[[:space:]]Framework/c7f9e0d9-54b8-4d74-8c93-a142316748b9_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Evaluation[[:space:]]of[[:space:]]Question[[:space:]]Answer[[:space:]]Generation[[:space:]]for[[:space:]]Portuguese_[[:space:]]Insights[[:space:]]and[[:space:]]Datasets/d353d395-f85c-4cfe-88ac-279b2ffa624a_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Event-Keyed[[:space:]]Summarization/ecf84b6b-509a-4362-be49-185bb8dfe7c1_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Evidence[[:space:]]Retrieval[[:space:]]for[[:space:]]Fact[[:space:]]Verification[[:space:]]using[[:space:]]Multi-stage[[:space:]]Reranking/c2a15fab-17bd-4c40-9546-752fffe59785_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/EvoR_[[:space:]]Evolving[[:space:]]Retrieval[[:space:]]for[[:space:]]Code[[:space:]]Generation/b25c04d8-1530-4eeb-83c1-2d54ed4ed346_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Evolutionary[[:space:]]Contrastive[[:space:]]Distillation[[:space:]]for[[:space:]]Language[[:space:]]Model[[:space:]]Alignment/1de648ea-1361-47ac-b3cc-f3b044038d48_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Experience[[:space:]]as[[:space:]]Source[[:space:]]for[[:space:]]Anticipation[[:space:]]and[[:space:]]Planning_[[:space:]]Experiential[[:space:]]Policy[[:space:]]Learning[[:space:]]for[[:space:]]Target-driven[[:space:]]Recommendation[[:space:]]Dialogues/433fdccd-8c65-49c8-9e17-b39245b83654_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/ExpertEase_[[:space:]]A[[:space:]]Multi-Agent[[:space:]]Framework[[:space:]]for[[:space:]]Grade-Specific[[:space:]]Document[[:space:]]Simplification[[:space:]]with[[:space:]]Large[[:space:]]Language[[:space:]]Models/8af73c79-d843-47b4-a44f-e4d497469a10_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Explaining[[:space:]]Graph[[:space:]]Neural[[:space:]]Networks[[:space:]]with[[:space:]]Large[[:space:]]Language[[:space:]]Models_[[:space:]]A[[:space:]]Counterfactual[[:space:]]Perspective[[:space:]]on[[:space:]]Molecule[[:space:]]Graphs/239f8a12-61dc-488e-b5ce-733c2ae5fbb8_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Explaining[[:space:]]Mixtures[[:space:]]of[[:space:]]Sources[[:space:]]in[[:space:]]News[[:space:]]Articles/4ec16d57-bbf1-4a4b-87e0-5866f66b9faf_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Explicit[[:space:]]Inductive[[:space:]]Inference[[:space:]]using[[:space:]]Large[[:space:]]Language[[:space:]]Models/d350ef5f-a64c-48dc-8df2-b736bd5013a7_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Exploiting[[:space:]]Careful[[:space:]]Design[[:space:]]of[[:space:]]SVM[[:space:]]Solution[[:space:]]for[[:space:]]Aspect-term[[:space:]]Sentiment[[:space:]]Analysis/e96aa007-6b1a-4fe1-a3f2-694572cabb43_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Exploring[[:space:]]Automated[[:space:]]Keyword[[:space:]]Mnemonics[[:space:]]Generation[[:space:]]with[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]via[[:space:]]Overgenerate-and-Rank/88cfc8fc-4031-49e3-a520-02f7b79d5f7d_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Exploring[[:space:]]Design[[:space:]]Choices[[:space:]]for[[:space:]]Building[[:space:]]Language-Specific[[:space:]]LLMs/4f7f6a52-708a-4d25-add9-68188798f391_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Exploring[[:space:]]Hint[[:space:]]Generation[[:space:]]Approaches[[:space:]]for[[:space:]]Open-Domain[[:space:]]Question[[:space:]]Answering/ffe397b1-aac2-4c36-9e94-c7393d8d8e78_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Exploring[[:space:]]Multilingual[[:space:]]Concepts[[:space:]]of[[:space:]]Human[[:space:]]Values[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models_[[:space:]]Is[[:space:]]Value[[:space:]]Alignment[[:space:]]Consistent,[[:space:]]Transferable[[:space:]]and[[:space:]]Controllable[[:space:]]across[[:space:]]Languages_/706b399b-0917-40e3-901c-d2f5e8e9c157_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Exploring[[:space:]]Quantization[[:space:]]for[[:space:]]Efficient[[:space:]]Pre-Training[[:space:]]of[[:space:]]Transformer[[:space:]]Language[[:space:]]Models/75149d87-3e79-48c4-8a91-16907aead19a_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Exploring[[:space:]]Question[[:space:]]Guidance[[:space:]]and[[:space:]]Answer[[:space:]]Calibration[[:space:]]for[[:space:]]Visually[[:space:]]Grounded[[:space:]]Video[[:space:]]Question[[:space:]]Answering/a90e4668-45e9-42d3-afab-48bed475494d_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Exploring[[:space:]]the[[:space:]]Best[[:space:]]Practices[[:space:]]of[[:space:]]Query[[:space:]]Expansion[[:space:]]with[[:space:]]Large[[:space:]]Language[[:space:]]Models/892b0c3c-462e-43ee-9f13-d01cc0c52449_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Exploring[[:space:]]the[[:space:]]Capability[[:space:]]of[[:space:]]Multimodal[[:space:]]LLMs[[:space:]]with[[:space:]]Yonkoma[[:space:]]Manga_[[:space:]]The[[:space:]]YManga[[:space:]]Dataset[[:space:]]and[[:space:]]Its[[:space:]]Challenging[[:space:]]Tasks/ee7ad5cb-2e9e-486d-b3f2-946ef9a6dab7_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Exploring[[:space:]]the[[:space:]]Limits[[:space:]]of[[:space:]]Fine-grained[[:space:]]LLM-based[[:space:]]Physics[[:space:]]Inference[[:space:]]via[[:space:]]Premise[[:space:]]Removal[[:space:]]Interventions/a39b9c55-961a-4197-bf69-d9a66e502f04_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Exploring[[:space:]]the[[:space:]]Potential[[:space:]]of[[:space:]]Multimodal[[:space:]]LLM[[:space:]]with[[:space:]]Knowledge-Intensive[[:space:]]Multimodal[[:space:]]ASR/617fd8cd-4b6a-4085-88d9-fe98a540a19c_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Exploring[[:space:]]the[[:space:]]Relationship[[:space:]]between[[:space:]]In-Context[[:space:]]Learning[[:space:]]and[[:space:]]Instruction[[:space:]]Tuning/d7425390-9b0c-4dcb-bd5f-68a817ba71b9_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Extractive[[:space:]]Medical[[:space:]]Entity[[:space:]]Disambiguation[[:space:]]with[[:space:]]Memory[[:space:]]Mechanism[[:space:]]and[[:space:]]Memorized[[:space:]]Entity[[:space:]]Information/a0e3e4c7-7323-458d-83b0-bda2bdfb6b27_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Extrinsic[[:space:]]Evaluation[[:space:]]of[[:space:]]Cultural[[:space:]]Competence[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models/b74ca2e9-e967-43ac-8b65-1ce3484b8f31_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/FANTAstic[[:space:]]SEquences[[:space:]]and[[:space:]]Where[[:space:]]to[[:space:]]Find[[:space:]]Them_[[:space:]]Faithful[[:space:]]and[[:space:]]Efficient[[:space:]]API[[:space:]]Call[[:space:]]Generation[[:space:]]through[[:space:]]State-tracked[[:space:]]Constrained[[:space:]]Decoding[[:space:]]and[[:space:]]Reranking/4c61e1a9-3f59-4db1-a7d6-c65423907479_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/FASTTRACK_[[:space:]]Reliable[[:space:]]Fact[[:space:]]Tracing[[:space:]]via[[:space:]]Clustering[[:space:]]and[[:space:]]LLM-Powered[[:space:]]Evidence[[:space:]]Validation/29f875f3-9d27-4c4c-9b58-6f31a6a52cb2_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/FactAlign_[[:space:]]Long-form[[:space:]]Factuality[[:space:]]Alignment[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models/779d8cb2-0d9e-41c3-91b0-d7f6b7799c5c_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Factcheck-Bench_[[:space:]]Fine-Grained[[:space:]]Evaluation[[:space:]]Benchmark[[:space:]]for[[:space:]]Automatic[[:space:]]Fact-checkers/8e108347-b317-4a70-960e-ca5dff7fd911_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/FaithScore_[[:space:]]Fine-grained[[:space:]]Evaluations[[:space:]]of[[:space:]]Hallucinations[[:space:]]in[[:space:]]Large[[:space:]]Vision-Language[[:space:]]Models/f2a928b6-6950-49bd-9f98-119ab4988d63_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Faithful[[:space:]]and[[:space:]]Plausible[[:space:]]Natural[[:space:]]Language[[:space:]]Explanations[[:space:]]for[[:space:]]Image[[:space:]]Classification_[[:space:]]A[[:space:]]Pipeline[[:space:]]Approach/6c876cef-1401-4d88-a1b0-51f9e354eff9_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Fast[[:space:]]Matrix[[:space:]]Multiplications[[:space:]]for[[:space:]]Lookup[[:space:]]Table-Quantized[[:space:]]LLMs/934daf64-5030-480f-a041-dcf22c73040b_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Fast[[:space:]]Streaming[[:space:]]Transducer[[:space:]]ASR[[:space:]]Prototyping[[:space:]]via[[:space:]]Knowledge[[:space:]]Distillation[[:space:]]with[[:space:]]Whisper/b1273e7c-9350-44fb-828d-5fef03be093d_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/FastMem_[[:space:]]Fast[[:space:]]Memorization[[:space:]]of[[:space:]]Prompt[[:space:]]Improves[[:space:]]Context[[:space:]]Awareness[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models/f7c20e0a-1ed5-4c29-aff2-4f8cb0263f12_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Few[[:space:]]shot[[:space:]]chain-of-thought[[:space:]]driven[[:space:]]reasoning[[:space:]]to[[:space:]]prompt[[:space:]]LLMs[[:space:]]for[[:space:]]open-ended[[:space:]]medical[[:space:]]question[[:space:]]answering/94b8b6e9-f221-48d8-838c-713de7777e28_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Few-shot[[:space:]]Prompting[[:space:]]for[[:space:]]Pairwise[[:space:]]Ranking_[[:space:]]An[[:space:]]Effective[[:space:]]Non-Parametric[[:space:]]Retrieval[[:space:]]Model/7bbf25e3-63b8-4028-a725-e49fce312ccb_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Few-shot[[:space:]]clinical[[:space:]]entity[[:space:]]recognition[[:space:]]in[[:space:]]English,[[:space:]]French[[:space:]]and[[:space:]]Spanish_[[:space:]]masked[[:space:]]language[[:space:]]models[[:space:]]outperform[[:space:]]generative[[:space:]]model[[:space:]]prompting/1723932e-6081-44d4-a2a6-8d2f4d76fc52_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Fighting[[:space:]]Randomness[[:space:]]with[[:space:]]Randomness_[[:space:]]Mitigating[[:space:]]Optimisation[[:space:]]Instability[[:space:]]of[[:space:]]Fine-Tuning[[:space:]]using[[:space:]]Delayed[[:space:]]Ensemble[[:space:]]and[[:space:]]Noisy[[:space:]]Interpolation/59496a5b-1276-4242-876a-2281fde685df_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Financial[[:space:]]Forecasting[[:space:]]from[[:space:]]Textual[[:space:]]and[[:space:]]Tabular[[:space:]]Time[[:space:]]Series/d3917108-b572-4af8-a123-f8afa863f61b_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Finding[[:space:]]the[[:space:]]Optimal[[:space:]]Byte-Pair[[:space:]]Encoding[[:space:]]Merge[[:space:]]Operations[[:space:]]for[[:space:]]Neural[[:space:]]Machine[[:space:]]Translation[[:space:]]in[[:space:]]a[[:space:]]Low-Resource[[:space:]]Setting/c9030a9c-33b5-447a-b72f-a5fbaef23a8c_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Findings[[:space:]]of[[:space:]]the[[:space:]]Association[[:space:]]for[[:space:]]Computational[[:space:]]Linguistics_[[:space:]]EMNLP[[:space:]]2024/6550cfff-a095-4d9b-8c06-329630a798b4_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Fine-Tuning[[:space:]]Language[[:space:]]Models[[:space:]]on[[:space:]]Multiple[[:space:]]Datasets[[:space:]]for[[:space:]]Citation[[:space:]]Intention[[:space:]]Classification/df003677-9f26-4eaf-b634-a321d56c20ef_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Fine-Tuning[[:space:]]Language[[:space:]]Models[[:space:]]with[[:space:]]Differential[[:space:]]Privacy[[:space:]]through[[:space:]]Adaptive[[:space:]]Noise[[:space:]]Allocation/a74ee20c-d907-430b-b330-53f6ac8a39be_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Fine-tuning[[:space:]]Smaller[[:space:]]Language[[:space:]]Models[[:space:]]for[[:space:]]Question[[:space:]]Answering[[:space:]]over[[:space:]]Financial[[:space:]]Documents/38d4b767-6b2a-4c27-bcb6-2c46db41b7b7_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/FlowBench_[[:space:]]Revisiting[[:space:]]and[[:space:]]Benchmarking[[:space:]]Workflow-Guided[[:space:]]Planning[[:space:]]for[[:space:]]LLM-based[[:space:]]Agents/19c64060-bc8a-4e8a-bf28-b91cd78cd899_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/Forecasting[[:space:]]Future[[:space:]]International[[:space:]]Events_[[:space:]]A[[:space:]]Reliable[[:space:]]Dataset[[:space:]]for[[:space:]]Text-Based[[:space:]]Event[[:space:]]Modeling/4506d024-5a43-42fd-877c-d22ea82f8557_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/From[[:space:]]Complex[[:space:]]to[[:space:]]Simple_[[:space:]]Enhancing[[:space:]]Multi-Constraint[[:space:]]Complex[[:space:]]Instruction[[:space:]]Following[[:space:]]Ability[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models/223a6350-9d61-447b-9cbf-0ea7ee50e67b_origin.pdf filter=lfs diff=lfs merge=lfs -text2024/From[[:space:]]Generation[[:space:]]to[[:space:]]Selection_[[:space:]]Findings[[:space:]]of[[:space:]]Converting[[:space:]]Analogical[[:space:]]Problem-Solving[[:space:]]into[[:space:]]Multiple-Choice[[:space:]]Questions/e437d970-d83f-4515-9e37-0a0f519fae05_origin.pdf filter=lfs diff=lfs merge=lfs -text
123version https://git-lfs.github.com/spec/v1oid sha256:2264db57f7952e7071f74f4802d6dc5d04c67f16a706a424e8ac77e5e9a54684size 18674943123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439# Enhancing Healthcare LLM Trust with Atypical Presentations Recalibration
Jeremy Qin $^{1,2}$ , Bang Liu $^{1,2,4}$ , Quoc Dinh Nguyen $^{1,3}$
<sup>1</sup>Université de Montréal <sup>2</sup>Mila <sup>3</sup>CRCHUM <sup>4</sup>Canada CIFAR AI Chair {jeremy.qin@bang.liu@quoc.dinh.nguyen@}umontreal.ca
# Abstract
Black-box large language models (LLMs) are increasingly deployed in various environments, making it essential for these models to effectively convey their confidence and uncertainty, especially in high-stakes settings. However, these models often exhibit overconfidence, leading to potential risks and misjudgments. Existing techniques for eliciting and calibrating LLM confidence have primarily focused on general reasoning datasets, yielding only modest improvements. Accurate calibration is crucial for informed decision-making and preventing adverse outcomes but remains challenging due to the complexity and variability of tasks these models perform. In this work, we investigate the miscalibration behavior of black-box and open-source LLMs within the healthcare setting. We propose a novel method, Atypical Presentations Recalibration, which leverages atypical presentations to adjust the model's confidence estimates. Our approach significantly improves calibration, reducing calibration errors by approximately $60\%$ on three medical question answering datasets and outperforming existing methods such as vanilla verbalized confidence, CoT verbalized confidence and others. Additionally, we provide an in-depth analysis of the role of atypicality within the recalibration framework. The code can be found at https://github.com/jeremy-qin/medical_confidence_elicitation
# 1 Introduction
Despite recent successes and innovations in large language models (LLMs), their translational value in high-stakes environments, such as healthcare, has not been fully realized. This is primarily due to concerns about the trustworthiness and transparency of these models, stemming from their complex architecture and black-box nature. Recent studies (Xiong et al., 2024; Shrivastava et al., 2023; Tian et al., 2023; He et al., 2023; Rivera et al.,

 Figure 1: A physician diagnoses a patient who returned from a camping trip, presenting a combination of common symptoms and signs like fever and headaches. However, by recognizing rashes an atypical symptom, the physician ultimately identifies the condition as an allergy.




2024; Chen and Mueller, 2023) have begun to explore methods for eliciting confidence and uncertainty estimates from these models in order to enhance trustworthiness and transparency. The ability to convey uncertainty and confidence is central to clinical medicine (Banerji et al., 2023) and plays a crucial role in facilitating rational and informed decision-making. This underscores the importance of investigating and utilizing calibrated confidence estimates for the medical domain.
Previous work on confidence elicitation and calibration of large language models (LLMs) has mainly focused on general reasoning and general knowledge datasets for tasks such as logical reasoning, commonsense reasoning, mathematical reasoning, and scientific knowledge (Kuhn et al., 2023; Xiong et al., 2024; Tian et al., 2023; Tanneru et al.,
2023; Chen and Mueller, 2023). Few studies have investigated tasks that require expert knowledge, and these have shown considerable room for improvement. Moreover, with the success of many closed-source LLMs, such as GPT-3.5 and GPT-4, which do not allow access to token-likelihoods and text embeddings, it has become prevalent to develop tailored methods for eliciting confidence estimates. However, most approaches developed consist of general prompting and sampling strategies without using domain-specific characteristics.
Traditionally, clinicians are taught to recognize and diagnose typical presentations of common illnesses based on patient demographics, symptoms and signs, test results, and other standard indicators (Harada et al., 2024). However, the frequent occurrence of atypical presentations is often overlooked (Goldrich and Shah, 2021). Failing to identify atypical presentations can result in worse outcomes, missed diagnoses, and lost opportunities for treating common conditions. Thus, awareness of atypical presentations in clinical practice is fundamental to providing high-quality care and making informed decisions. Figure 1 depicts a simplistic example of how atypicality plays a role in diagnosis. Incorporating the concept of atypicality has been shown to improve uncertainty quantification and model performance for discriminative neural networks and white-box large language models (Yuksekgonul et al., 2023). This underscores the importance of leveraging atypical presentations to enhance the calibration of LLMs, particularly in high-stakes environments like healthcare.
Our study aims to address these gaps by first investigating the miscalibration of black-box LLMs when answering medical questions using non-logit-based uncertainty quantification methods. We begin by testing various baseline methods to benchmark the calibration of these models across a range of medical question-answering datasets. This benchmarking provides a comprehensive understanding of the current state of calibration in LLMs within the healthcare domain and highlights the limitations of existing approaches.
Next, we propose a new recalibration framework based on the concept of atypicality, termed Atypical Presentations Recalibration. This method leverages atypical presentations to adjust the model's confidence estimates, making them more accurate and reliable. Under this framework, we construct two distinct atypicality-aware prompting strategies for the LLMs, encouraging them to
consider and reason over atypical cases explicitly. We then compare the performance and calibration of these strategies against the baseline methods to evaluate their effectiveness.
Finally, our empirical results reveal several key findings. First, black-box LLMs often fail to provide calibrated confidence estimates when answering medical questions and tend to remain overconfident. Second, our proposed Atypical Presentations Aware Recalibration method significantly improves calibration, reducing calibration errors by approximately $60\%$ on three medical question answering datasets and consistently outperforming existing baseline methods across all datasets. Third, we observe that atypicality interacts in a complex manner with both performance and calibration, suggesting that considering atypical presentations is crucial for developing more accurate and trustworthy LLMs in healthcare settings. Finally, we show that our framework is generalizable to open-source models with noteworthy improvements in confidence calibration.
# 2 Background and Related Work
# 2.1 Confidence and Uncertainty quantification in LLMs
Confidence and uncertainty quantification is a well-established field, but the recent emergence of large language models (LLMs) has introduced new challenges and opportunities. Although studies have shown a distinction between confidence and uncertainty, we will use these terms interchangeably in our work.
Research on this topic can be broadly categorized into two areas: approaches targeting closed-source models and those focusing on open-source models. The growing applications of commercial LLMs, due to their ease of use, have necessitated particular methods to quantify their confidence. For black-box LLMs, a natural approach is to prompt them to express confidence verbally, a method known as verbalized confidence, first introduced by Lin et al. (2022). Other studies have explored this approach specifically for language models fine-tuned with reinforcement learning from human feedback (RLHF) (Tian et al., 2023; He et al., 2023). Additionally, some research has proposed new metrics to quantify uncertainty (Ye et al., 2024; Tanneru et al., 2023).
Our work aligns most closely with Xiong et al. (2024), who presented a framework that combines
prompting strategies, sampling techniques, and aggregation methods to elicit calibrated confidence from LLMs. While previous studies primarily benchmarked their methods on general reasoning tasks, our study focuses on the medical domain, where accurate uncertainty quantification is critical for diagnosis and decision-making. We evaluate LLM calibration using the framework defined by Xiong et al. (2024) and propose a framework consisting of a new prompting strategy and aggregation method, termed Atypicality Presentations Recalibration, which shows significant improvements in calibrating LLM uncertainty in the medical domain.
# 2.2 Atypical Presentations
Atypical presentations have garnered increasing attention and recognition in the medical field due to their critical role in reducing diagnostic errors and enhancing problem-based learning in medical education (Vonnes and El-Rady, 2021; Kostopoulou et al., 2008; Matulis et al., 2020; Bai et al., 2023). Atypical presentations are defined as "a shortage of prototypical features most frequently encountered in patients with the disease, features encountered in advanced stages of the disease, or features commonly listed in medical textbooks" (Kostopoulou et al., 2008; Harada et al., 2024). This concept is particularly important in geriatrics, where older patients often present atypically, and in medical education, where it prompts students to engage in deeper reflection during diagnosis.
Given the increasing emphasis on atypical presentations in medical decision-making, it is pertinent to explore whether this concept can be leveraged to calibrate machine learning models. Yuksekgonul et al. (2023) were the first to incorporate atypicality into model calibration for classification tasks. Our work extends this approach to generative models like LLMs, integrating atypical presentations to achieve more accurate and calibrated confidence estimates.
# 3 Method
In this section, we describe the methods used to elicit confidence from large language models (LLMs) as well as our recalibration methods. Calibration in our settings refers to the alignment between the confidence estimates and the true likelihood of outcomes (Yuksekgonul et al., 2023; Gneiting and Raftery, 2007). Our experiments are based
on the framework described by Xiong et al. (2024), which divides the approaches into three main components: prompting, sampling, and aggregation, and uses it as baselines. In their framework, they leverage common prompting strategies such as vanilla prompting and Chain-of-Thoughts while also leveraging the stochasticity of LLMs. In contrast, we propose an approach, Atypical Presentation Recalibration, that retrieves atypicality scores and use them as a recalibration method in order to have more accurate confidence estimates. Our framework is mainly divided into two parts: Atypicality Prompting and Atypicality Recalibration. We explain how each of the three components are applied to our tasks and how we integrate atypicality to develop hybrid methods that combine these elements.
# 3.1 Prompting methods
Eliciting confidence from LLMs can be achieved through various methods, including natural language expressions, visual representations, and numerical scores (Kim et al., 2024). We refer to these methods collectively as verbalized confidence. While there are trade-offs between these methods, we focus on retrieving numerical confidence estimates for better precision and ease of calibration. We design a set of prompts to elicit confidence estimates from LLMs.
Vanilla Prompting The most straightforward way to elicit confidence scores from LLMs is to ask the model to provide a confidence score on a certain scale. We term this method as vanilla prompting. This score is then used to assess calibration.
Chain-of-Thought (CoT) Eliciting intermediate and multi-step reasoning through simple prompting has shown improvements in various LLM tasks. By allowing for more reflection and reasoning, this method helps the model express a more informed confidence estimate. We use zero-shot Chain-of-Thought (CoT) (Kojima et al., 2023) in our study.
Atypicality Prompting Inspired by the concept of atypical presentations in medicine, we aim to enhance the reliability and transparency of LLM decision-making by incorporating atypicality into the confidence estimation process. We develop two distinct prompting strategies to achieve this goal:
- Atypical Presentations Prompt: This strategy focuses on identifying and highlighting atypical symptoms and features within the
<table><tr><td>Method</td><td>Prompt Template</td></tr><tr><td>Vanilla</td><td>Read the following question. Provide your answer and your confidence level (0% to 100%).</td></tr><tr><td>Atypical Scenario</td><td>Read the following question. Assess the atypicality of the scenario described with a score between 0 and 1 with 0 being highly atypical and 1 being typical. Provide your answer, atypicality score and confidence level.</td></tr><tr><td>Atypical Presentations</td><td>Read the following question. Assess each symptom and signs with respect to its typicality in the described scenario with a score between 0 and 1 with 0 being highly atypical and 1 being typical. Provide your answer, atypicality scores and confidence level.</td></tr></table>
Table 1: Illustrations of the vanilla prompting and Atypical Presentations Aware Recalibration prompting strategies (complete prompts in Appendix B)
medical data. The prompt is designed to guide the LLM to assess the typicality of each symptom presented in the question. By systematically evaluating which symptoms are atypical, the model can better gauge the uncertainty associated with the diagnosis. For example, the prompt might ask the model to rate the typicality of each symptom on a scale from 0 to 1, where 1 represents a typical symptom and 0 represents an atypical symptom. In the following sections of the paper, we will refer to these scores as atypicality scores where the lower the score is the more atypical it is. This information is then used to adjust the confidence score accordingly.
- Atypical Scenario Prompt: This strategy evaluates the typicality of the question itself. It is based on the notion that questions which are less familiar or more complex may naturally elicit higher uncertainty. The prompt asks the LLM to consider how common or typical the given medical scenario is. For instance, the model might be prompted to rate the overall typicality of the scenario on a similar scale. This approach helps to capture the inherent uncertainty in less familiar or more complex questions.
# 3.2 Sampling and Aggregation
While verbalized confidences provide a straightforward way to assess the uncertainty of LLMs, we can also leverage the stochasticity of LLMs (Xiong et al., 2024; Rivera et al., 2024) by generating multiple answers for the same question. Different aggregation strategies can then be used to evaluate how aligned these sampled answers are. We follow
the framework defined by Xiong et al. (2024) for the sampling and aggregation methods and uses them as baselines to our Atypical Presentations Recalibration framework.
Self-Random Sampling The simplest strategy to generate multiple answers from an LLM is by repeatedly asking the same question and collecting the responses. These responses are then aggregated to produce a final confidence estimate.
Consistency We use the consistency of agreement between different answers from the LLM as the final confidence estimate (Xiong et al., 2024). For a given question with a reference answer $\hat{Y}$ , we generate a sample of answers $\hat{Y}_k$ . The aggregated confidence $C_{\text {consistency }}$ is defined as:
$$C _ {\text {c o n s i s t e n c y}} = \frac {1}{K} \sum_ {k = 1} ^ {K} \mathbb {1} \left\{\hat {Y} _ {k} = \tilde {Y} \right\} \tag {1}$$
Weighted Average Building on the consistency aggregation method, we can use a weighting mechanism that incorporates the confidence scores elicited from the LLM. This method weights the agreement between the different answers by their respective confidence scores. The aggregated confidence $C_{average}$ is defined as:
$$C _ {\text {a v e r a g e}} = \frac {\sum_ {k = 1} ^ {K} \mathbb {1} \left\{\hat {Y} _ {k} = \tilde {Y} \right\} * C _ {k}}{\sum_ {k = 1} ^ {K} C _ {k}} \tag {2}$$
Atypicality Recalibration To integrate the atypicality scores elicited with Atypicality Presentations Prompting into our confidence estimation framework, we propose a non-linear post-hoc recalibration method that combines the initial confidence score with an aggregation of the atypicality assessments. This method draws inspiration from



 Figure 2: Calibration Curves of the different methods for GPT-3.5-turbo


economic and financial models where expert judgments are combined with varying weights and exponential utility functions to address risk aversion. Formally, for an initial confidence $C_i$ of a given question and atypical scores $A_k$ , the calibrated confidence $CC_i$ is computed as follows:
$$C C _ {i} = C _ {i} * \left(\frac {1}{K} \sum_ {k = 1} ^ {K} e ^ {A _ {k} - 1}\right) \tag {3}$$
where $A_{k}$ takes values in [0,1] and a value of 1 corresponds to a typical value. For the Atypical Scenario Prompt, this equation translates to having K equal to 1. Thus, the final confidence estimate will equal the initial confidence score only if all the atypical scores are 1.
# 4 Experiments
# 4.1 Experimental Setup
Datasets Our experiments evaluate the calibration of confidence estimates across three different english medical question-answering datasets. For our experiments, we restricted on evaluating on only the development set of each dataset. MedQA (Jin et al., 2020) consists of 1272 questions based on the United States Medical License Exams and collected from the professional medical board exams. MedMCQA (Pal et al., 2022) is a large-scale multiple-choice question answering dataset with 2816 questions collected from AIIMS
& NEET PG entrance exams covering a wide variety of healthcare topics and medical subjects. PubMedQA (Jin et al., 2019) is a biomedical question answering dataset with 500 samples collected from PubMed abstracts where the task is to answer research question corresponding to an abstract with yes/no/maybe.
Models We use a variety of commercial LLMs that includes GPT-3.5-turbo (OpenAI, 2023), GPT4-turbo (OpenAI, 2024), Claude3-sonnet (Anthropic, 2023) and Gemini 1.0 Pro (DeepMind, 2023). To demonstrate that our framework can generalize to other models other than black-box LLMs, we also experiment on Llama3.1 8B (Llama, 2024) and Qwen2.5 7B (Qwen, 2024).
Evaluation Metrics To measure how well the confidence estimates are calibrated, we will report multiple metrics across the different datasets, methods and models. Calibration is defined as how well a model's predicted probability is aligned with the true likelihoods of outcomes (Yuksekgonul et al., 2023; Gneiting and Raftery, 2007). We measure this using Expected Calibration Error (ECE) (Naeini et al., 2015) and Brier Score (Goldrich and Shah, 2021).
To evaluate the quality of confidence estimates using ECE, we group the model's confidence into $K$ bins and estimate ECE by taking the weighted average of the difference between confidence and accuracy in each bin (He et al., 2023). Formally, let
<table><tr><td colspan="2"></td><td colspan="3">MedQA (n=1272)</td><td colspan="3">MedMCQA (n=2816)</td><td colspan="3">PubMedQA (n=500)</td></tr><tr><td>Models</td><td>Methods</td><td>Acc</td><td>ECE</td><td>Brier</td><td>Acc</td><td>ECE</td><td>Brier</td><td>Acc</td><td>ECE</td><td>Brier</td></tr><tr><td rowspan="6">gpt-3.5-turbo</td><td>Vanilla</td><td>0.526</td><td>0.351</td><td>0.363</td><td>0.555</td><td>0.323</td><td>0.350</td><td>0.544</td><td>0.251</td><td>0.304</td></tr><tr><td>CoT</td><td>0.536</td><td>0.318</td><td>0.334</td><td>0.525</td><td>0.357</td><td>0.360</td><td>0.516</td><td>0.275</td><td>0.360</td></tr><tr><td>Atypical scenario</td><td>0.506</td><td>0.084</td><td>0.262</td><td>0.544</td><td>0.128</td><td>0.252</td><td>0.468</td><td>0.115</td><td>0.252</td></tr><tr><td>Atypical presentations</td><td>0.506</td><td>0.283</td><td>0.332</td><td>0.527</td><td>0.152</td><td>0.322</td><td>0.544</td><td>0.129</td><td>0.268</td></tr><tr><td>Consistency (k=3)</td><td>0.535</td><td>0.408</td><td>0.396</td><td>0.561</td><td>0.350</td><td>0.356</td><td>0.544</td><td>0.335</td><td>0.370</td></tr><tr><td>Average (k=3)</td><td>0.539</td><td>0.398</td><td>0.397</td><td>0.561</td><td>0.350</td><td>0.344</td><td>0.550</td><td>0.346</td><td>0.372</td></tr><tr><td rowspan="6">claude3-sonnet</td><td>Vanilla</td><td>0.541</td><td>0.331</td><td>0.336</td><td>0.565</td><td>0.306</td><td>0.327</td><td>0.128</td><td>0.569</td><td>0.428</td></tr><tr><td>CoT</td><td>0.638</td><td>0.246</td><td>0.282</td><td>0.612</td><td>0.265</td><td>0.295</td><td>0.246</td><td>0.542</td><td>0.469</td></tr><tr><td>Atypical scenario</td><td>0.564</td><td>0.124</td><td>0.259</td><td>0.561</td><td>0.134</td><td>0.268</td><td>0.140</td><td>0.438</td><td>0.252</td></tr><tr><td>Atypical presentations</td><td>0.568</td><td>0.136</td><td>0.332</td><td>0.531</td><td>0.305</td><td>0.316</td><td>0.100</td><td>0.517</td><td>0.339</td></tr><tr><td>Consistency (k=3)</td><td>0.552</td><td>0.335</td><td>0.363</td><td>0.568</td><td>0.346</td><td>0.355</td><td>0.122</td><td>0.789</td><td>0.766</td></tr><tr><td>Average (k=3)</td><td>0.558</td><td>0.338</td><td>0.358</td><td>0.568</td><td>0.337</td><td>0.356</td><td>0.128</td><td>0.750</td><td>0.725</td></tr><tr><td rowspan="6">gemini-pro-1.0</td><td>Vanilla</td><td>0.472</td><td>0.369</td><td>0.385</td><td>0.551</td><td>0.297</td><td>0.338</td><td>0.492</td><td>0.342</td><td>0.362</td></tr><tr><td>CoT</td><td>0.465</td><td>0.357</td><td>0.369</td><td>0.526</td><td>0.306</td><td>0.340</td><td>0.438</td><td>0.368</td><td>0.373</td></tr><tr><td>Atypical scenario</td><td>0.473</td><td>0.105</td><td>0.268</td><td>0.513</td><td>0.129</td><td>0.274</td><td>0.508</td><td>0.128</td><td>0.276</td></tr><tr><td>Atypical presentations</td><td>0.458</td><td>0.293</td><td>0.332</td><td>0.387</td><td>0.357</td><td>0.316</td><td>0.226</td><td>0.448</td><td>0.338</td></tr><tr><td>Consistency (k=3)</td><td>0.471</td><td>0.399</td><td>0.400</td><td>0.557</td><td>0.337</td><td>0.343</td><td>0.540</td><td>0.309</td><td>0.349</td></tr><tr><td>Average (k=3)</td><td>0.477</td><td>0.364</td><td>0.391</td><td>0.549</td><td>0.314</td><td>0.341</td><td>0.504</td><td>0.325</td><td>0.371</td></tr><tr><td rowspan="6">gpt-4-turbo</td><td>Vanilla</td><td>0.756</td><td>0.133</td><td>0.190</td><td>0.707</td><td>0.188</td><td>0.230</td><td>0.394</td><td>0.374</td><td>0.337</td></tr><tr><td>CoT</td><td>0.832</td><td>0.065</td><td>0.132</td><td>0.730</td><td>0.162</td><td>0.206</td><td>0.358</td><td>0.445</td><td>0.402</td></tr><tr><td>Atypical scenario</td><td>0.741</td><td>0.085</td><td>0.181</td><td>0.675</td><td>0.071</td><td>0.206</td><td>0.354</td><td>0.197</td><td>0.249</td></tr><tr><td>Atypical presentations</td><td>0.751</td><td>0.114</td><td>0.178</td><td>0.681</td><td>0.174</td><td>0.213</td><td>0.338</td><td>0.414</td><td>0.363</td></tr><tr><td>Consistency (k=3)</td><td>0.775</td><td>0.198</td><td>0.206</td><td>0.712</td><td>0.248</td><td>0.253</td><td>0.404</td><td>0.537</td><td>0.546</td></tr><tr><td>Average (k=3)</td><td>0.767</td><td>0.194</td><td>0.205</td><td>0.708</td><td>0.249</td><td>0.255</td><td>0.404</td><td>0.552</td><td>0.563</td></tr></table>
Table 2: Using atypicality as post-hoc calibration brings major improvements in ECE and Brier Scores across all datasets and all models. Atypical Scenario outperforms all other methods in calibration in the big majority of experiments.
$N$ be the sample size, $K$ the number of bins, and $I_{k}$ the indices of samples in the $k^{th}$ bin, we have:
$$E C E _ {K} = \sum_ {k = 1} ^ {K} \frac {\left| I _ {k} \right|}{N} \left| a c c \left(I _ {k}\right) - c o n f \left(I _ {k}\right) \right| \tag {4}$$
Brier score is a scoring function that measures the accuracy of the predicted confidence estimates and is equivalent to the mean squared error. Formally, it is defined as:
$$B S = \frac {1}{N} \sum_ {n = 1} ^ {N} \left(\operatorname {c o n f} _ {n} - o _ {n}\right) ^ {2} \tag {5}$$
where $\text{conf}_n$ and $o_n$ are the confidence estimate and outcome of the $n^{th}$ sample respectively.
Additionally, to evaluate if the LLM can convey higher confidence scores for correct predictions and lower confidence scores for incorrect predictions, we use the Area Under the Receiver Operating Characteristic Curve (AUROC). Finally, to assess any significant changes in performance, we also report accuracy on the different tasks.
 Figure 3: ECE of GPT-3.5-turbo for each method across all three datasets.
# 4.2 Results and Analysis
To assess the ability of LLMs to provide calibrated confidence scores and explore the use of atypical scores for calibration, we experimented with each mentioned method using four different black-box LLMs across three medical question-answering datasets. The main results and findings are reported in the following section.
<table><tr><td colspan="2"></td><td colspan="3">MedQA</td><td colspan="3">MedMCQA</td><td colspan="3">PubMedQA</td></tr><tr><td>Models</td><td>Methods</td><td>Acc</td><td>ECE</td><td>Brier</td><td>Acc</td><td>ECE</td><td>Brier</td><td>Acc</td><td>ECE</td><td>Brier</td></tr><tr><td rowspan="2">Llama3.1</td><td>Vanilla</td><td>0.431</td><td>0.351</td><td>0.304</td><td>0.494</td><td>0.334</td><td>0.320</td><td>0.504</td><td>0.301</td><td>0.316</td></tr><tr><td>Atypical scenario</td><td>0.454</td><td>0.172</td><td>0.229</td><td>0.378</td><td>0.226</td><td>0.230</td><td>0.388</td><td>0.203</td><td>0.257</td></tr><tr><td rowspan="2">Qwen2.5</td><td>Vanilla</td><td>0.510</td><td>0.384</td><td>0.388</td><td>0.554</td><td>0.353</td><td>0.363</td><td>0.464</td><td>0.403</td><td>0.392</td></tr><tr><td>Atypical scenario</td><td>0.452</td><td>0.324</td><td>0.349</td><td>0.546</td><td>0.303</td><td>0.329</td><td>0.446</td><td>0.305</td><td>0.348</td></tr></table>
Table 3: Atypicaity recalibration generalizes well on open-source models with notable improvements in calibration errors across all datasets.
 Figure 4: Accuracy by Typicality bins of GPT3.5-turbo for Atypical Presentations Aware Recalibration methods.

LLMs are miscalibrated for Medical QA. To evaluate the reliability and calibration of confidence scores elicited by the LLMs, we examined the calibration curves of GPT-3.5-turbo in Figure 2, where the green dotted line represents perfect calibration. The results indicate that the confidence scores are generally miscalibrated, with the LLMs tending to be overconfident. Although the Atypical Scenario and Atypical Presentations methods show improvements with better alignment, there is still room for improvement. Introducing recalibration methods with atypicality scores results in more variation in the calibration curves, including instances of underestimation. Additional calibration curves for the other models are provided in Appendix A.
Leveraging atypical scores greatly improves calibration. We analyzed the calibration metrics for each method and found that leveraging atypical scores significantly reduces ECE and Brier Score across all datasets, as shown in Figure 3 and Table 3. We also observe that this improvement is translated to open-source models which demonstrate the applicability of atypicality prompting across both closed and open source LLMS. In contrast, other methods show minor changes in calibration errors, with some even increasing ECE. The Consistency and Average methods do not show improvement,
and sometimes degrade, due to the multiple-choice format of the datasets, which shifts confidence estimates to higher, more overconfident values. However, the Atypical Scenario method, which elicits an atypical score describing how unusual the medical scenario is, outperforms all other methods and significantly lowers ECE compared to vanilla confidence scores. We also note that Atypical Scenario outperformance translates to open-source models as well with notable improvements across all datasets and models. It is very interesting that the level of atypicality considered seems to make a significant difference. It is a hallmark of reasoning that how the LLM aggregates the atypicality from a lower level when prompted for a scenario is superior to simply aggregating the symptoms atypicality. This opens up further investigation into how LLMs reason about atypicality. We discuss and analyze the role of atypicality in calibration in the following sections. Detailed results of our experiments are reported in Table 3.
Atypicality distribution varies between Atypical Scenario and Atypical Presentations. To better understand the gap between the calibration errors of Atypical Scenario and Atypical Presentations, we first examine the distribution of the atypicality scores. In Figure 6, we observe that the distribution of Atypical Presentations is much more right-
 Figure 5: ECE by Typicality bins of GPT3.5-turbo for Atypical Presentations Aware Recalibration methods.

skewed, indicating a prevalence of typical scores. This is largely due to the nature of the approach. Not all questions in the datasets are necessarily diagnostic questions; for example, some may ask for medical advice or some may only touch the specific paper it is referencing (PubmedQA), where there is no atypicality associated with symptoms or presentations. In our framework, we impute the atypicality score to 1 for such cases, so it does not affect the original confidence estimate. In contrast, Atypical Scenario shows a more evenly distributed spread over the scores. This suggests that the LLMs can identify that some questions and scenarios are more atypical, which allows this atypicality to be considered when calibrating the confidence estimates.
Typical samples do not consistently outperform atypical samples. We now question the performance of atypical versus typical samples. The intuitive answer is that performance should be better on typical samples, which are common scenarios or symptoms, making the question easier to answer. However, as shown in Figure 4, there is no consistent pattern between accuracy and atypicality for GPT-3.5-turbo. While accuracy increases as atypicality decreases in some cases like MedQA and PubMedQA, in other cases, the accuracy remains unchanged or even decreases. This performance variation across typicality bins provides insights into how LLMs use the notion of atypicality in their reasoning process. Higher accuracy for atypical samples could suggest that unique, easily identifiable features help the LLM. Conversely, high atypicality can indicate that the question is more difficult, leading to lower accuracy. To understand this better, we also experimented with prompts to retrieve difficulty scores and analyzed their relation
ship with atypicality. Our results show no clear correlation between difficulty and atypicality scores. Most atypicality scores are relatively high across all difficulty levels. Although some atypical samples are deemed more difficult, the results are inconsistent and hard to interpret. Associated graphs are in Appendix A. Briefly, this inconsistent performance behavior shows there is more to explore about how LLMs use atypicality intrinsically.
 Figure 6: Distribution of atypicality scores between Atypical Presentations and Atypical Scenario of GPT-3.5-turbo on MedQA.
Atypicality does not predict LLM's calibration error. Another question we explored was whether calibration errors correlate with atypicality. We used the same approach as our performance analysis, binning the samples by atypicality scores and examining the ECE within each bin. This allowed us to evaluate how well the model's predicted confidence level aligned with actual outcomes across varying levels of atypicality. For both Atypical Scenario and Atypical Presentations, we assessed GPT-3.5-turbo's calibration. As shown in Figure 4, there are no clear patterns between atypi
cality scores and calibration errors. The high fluctuation of ECE across different levels of atypicality suggests that the model experiences high calibration errors for both typical and atypical samples. This indicates that calibration performance is influenced by factors beyond just atypicality. Similar to the previous performance analysis in terms of accuracy, how LLMs interpret and leverage atypicality may vary between samples, leading to inconsistent behavior.
Atypicality helps in failure prediction. While ECE and Brier Score provide insights into the reliability and calibration of confidence estimates, it is also important for the model to assign higher confidence to correct predictions and lower confidence to incorrect predictions. To assess this, we used AUROC. In Table 4, we observe that incorporating atypicality into our model improves its performance across most experiments compared to the vanilla baseline. However, these improvements do not consistently outperform all other methods evaluated. This indicates that, while incorporating atypicality can improve the model's failure prediction, there remain specific scenarios where alternative methods may be more effective. This also indicates that our framework could be improved to take more into consideration failure prediction to maybe have a multi-objective method.
# 5 Conclusion
In our study, we have demonstrated that LLMs remain miscalibrated and overconfident in the medical domain. Our results indicate that incorporating the notion of atypicality when eliciting LLM confidence leads to significant gains in calibration and some improvement in failure prediction for medical QA tasks. This finding opens the door to further investigate the calibration of LLMs in other high-stakes domains. Additionally, it motivates the development of methods that leverage important domain-specific notions and adapting our method for white-box LLMs. We hope that our work can inspire others to tackle these challenges and to develop methods for more trustworthy, explainable and transparent models, which are becoming increasingly urgent.
# Acknowledgements
This work is supported by the Canada CIFAR AI Chair Program and the Canada NSERC Discovery Grant (RGPIN-2021-03115). Quoc Dinh Nguyen
is funded by a research grant from the Canadian Institutes of Health Research (Funding Reference Number: 180570), the Fonds de recherche Québec - Santé, and the Saputo Foundation.
Limitations This study present a first effort into assessing black-box LLMs calibration and the use of atypicality in the healthcare domain. Several aspects of the study can further be improved for a better assessment. While we restricted ourselves to three medical question-answering datasets, we can expand it to more datasets with questions that are more open-ended or even different tasks such as clinical notes summarization which could also benefit a lot from having trusted confidence estimates. While our method generalizes to both closed and open source models like GPT4 and Llama, it does not leverage information that we can potentially get from open source models such as the internal representations, token embeddings and token-likelihoods. An interesting future work could focus on how atypicality is represented internally in a LLM, and if we can potentially read and control its representations of atypicality for better calibration. Interpretability approaches such as mechanistic interpretability or representation engineering are interesting directions to consider. Moreover, our approach is still dependent on a prompt, and since LLMs are quite sensitive to how we prompt them, there could be even more optimal prompts for retrieving atypicality scores. Lastly, the notion of atypicality is not only seen and leverage in healthcare, but it is also present in other domains such as law. Adapting our methodology for other domains could further improve LLMs calibration performance.
Ethical considerations In our work, we focus on the medical domain with the goal of enhancing the calibration and accuracy of confidence scores provided by large language models to support better-informed decision-making. While our results demonstrate significant improvements in calibration, it is imperative to stress that LLMs should not be solely relied upon without the oversight of a qualified medical expert. The involvement of a physician or an expert is essential to validate the model's recommendations and ensure a safe and effective decision-making process.
Moreover, we acknowledge the ethical implications of deploying AI in healthcare. It is crucial to recognize that LLMs are not infallible and can produce erroneous outputs. Ensuring transparency
in how these models reach their conclusions, and incorporating feedback from healthcare professionals are vital steps in maintaining the integrity and safety of medical practice. Thus, our work is a step towards creating reliable tools, but it must be integrated thoughtfully within the existing healthcare framework to truly benefit patient outcomes.
# References
Anthropic. 2023. Claude 3. https://www.anthropic.com. Accessed: 2024-06-02. S Bai, L Zhang, Z Ye, D Yang, T Wang, and Y Zhang. 2023. The benefits of using atypical presentations and rare diseases in problem-based learning in undergraduate medical education. BMC Med Educ, 23(1):93. C. R. S. Banerji, T. Chakraborti, C. Harbron, et al. 2023. Clinical ai tools must convey predictive uncertainty for each individual patient. Nature Medicine, 29:2996-2998. Jiuhai Chen and Jonas Mueller. 2023. Quantifying uncertainty in answers from any language model and enhancing their trustworthiness. Preprint, arXiv:2308.16175. Google DeepMind. 2023. Gemini 1.0 pro. https:// www deepmind.com. Accessed: 2024-06-02. Tilmann Gneiting and Adrian E Raftery. 2007. Strictly proper scoring rules, prediction, and estimation. Journal of the American Statistical Association, 102(477):359-378. Michael Goldrich and Amit Shah. 2021. Atypical Presentations of Illness. McGraw-Hill Education, New York, NY. Y Harada, R Kawamura, M Yokose, T Shimizu, and H Singh. 2024. Definitions and measurements for atypical presentations at risk for diagnostic errors in internal medicine: Protocol for a scoping review. *JMIR Res Protoc*, 13:e56933. Guande He, Peng Cui, Jianfei Chen, Wenbo Hu, and Jun Zhu. 2023. Investigating uncertainty calibration of aligned language models under the multiple-choice setting. *Preprint*, arXiv:2310.11732. Di Jin, Eileen Pan, Nassim Oufattole, Wei-Hung Weng, Hanyi Fang, and Peter Szolovits. 2020. What disease does this patient have? a large-scale open domain question answering dataset from medical exams. Preprint, arXiv:2009.13081. Qiao Jin, Bhuwan Dhingra, Zhengping Liu, William W. Cohen, and Xinghua Lu. 2019. Pubmedqa: A dataset for biomedical research question answering. Preprint, arXiv:1909.06146.
Sunnie S. Y. Kim, Q. Vera Liao, Mihaela Vorvoreanu, Stephanie Ballard, and Jennifer Wortman Vaughan. 2024. "i'm not sure, but...": Examining the impact of large language models' uncertainty expression on user reliance and trust. Preprint, arXiv:2405.00623. Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. 2023. Large language models are zero-shot reasoners. Preprint, arXiv:2205.11916. O Kostopoulou, BC Delaney, and CW Munro. 2008. Diagnostic difficulty and error in primary care-a systematic review. Fam Pract, 25(6):400-413. Epub 2008 Oct 7. Lorenz Kuhn, Yarin Gal, and Sebastian Farquhar. 2023. Semantic uncertainty: Linguistic invariances for uncertainty estimation in natural language generation. Preprint, arXiv:2302.09664. Stephanie Lin, Jacob Hilton, and Owain Evans. 2022. Teaching models to express their uncertainty in words. Preprint, arXiv:2205.14334. Llama. 2024. The llama 3 herd of models. CoRR, abs/2407.21783. JC Matulis, SN Kok, EC Dankbar, and AJ Majka. 2020. A survey of outpatient internal medicine clinician perceptions of diagnostic error. Diagnosis (Berl), 7(2):107-114. Mahdi Pakdaman Naeini, Gregory F Cooper, and Milos Hauskrecht. 2015. Obtaining well calibrated probabilities using bayesian binning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 2015, pages 2901-2907. OpenAI. 2023. Gpt-3.5-turbo. https://www.openai.com. Accessed: 2024-06-02. OpenAI. 2024. Gpt-4 technical report. Preprint, arXiv:2303.08774. Ankit Pal, Logesh Kumar Umapathi, and Malaikannan Sankarasubbu. 2022. Medmcqa: A large-scale multi-subject multi-choice dataset for medical domain question answering. In Proceedings of the Conference on Health, Inference, and Learning, volume 174 of Proceedings of Machine Learning Research, pages 248-260. PMLR. Qwen. 2024. Qwen2.5: A party of foundation models. Mauricio Rivera, Jean-François Godbout, Reihaneh Rabbany, and Kellin Peline. 2024. Combining confidence elicitation and sample-based methods for uncertainty quantification in misinformation mitigation. Preprint, arXiv:2401.08694. Vaishnavi Shrivastava, Percy Liang, and Ananya Kumar. 2023. Llamas know what gpts don't show: Surrogate models for confidence estimation. Preprint, arXiv:2311.08877.
Sree Harsha Tanneru, Chirag Agarwal, and Himabindu Lakkaraju. 2023. Quantifying uncertainty in natural language explanations of large language models. Preprint, arXiv:2311.03533.
Katherine Tian, Eric Mitchell, Allan Zhou, Archit Sharma, Rafael Rafailov, Huaxiu Yao, Chelsea Finn, and Christopher D. Manning. 2023. Just ask for calibration: Strategies for eliciting calibrated confidence scores from language models fine-tuned with human feedback. *Preprint*, arXiv:2305.14975.
Cassandra Vonnes and Rosalie El-Rady. 2021. When you hear hoof beats, look for the zebras: Atypical presentation of illness in the older adult. The Journal for Nurse Practitioners, 17(4):458-461.
Miao Xiong, Zhiyuan Hu, Xinyang Lu, Yifei Li, Jie Fu, Junxian He, and Bryan Hooi. 2024. Can llms express their uncertainty? an empirical evaluation of confidence elicitation in llms. Preprint, arXiv:2306.13063.
Fanghua Ye, Mingming Yang, Jianhui Pang, Longyue Wang, Derek F. Wong, Emine Yilmaz, Shuming Shi, and Zhaopeng Tu. 2024. Benchmarking llms via uncertainty quantification. Preprint, arXiv:2401.12794.
Mert Yuksekgonul, Linjun Zhang, James Zou, and Carlos Guestrin. 2023. Beyond confidence: Reliable models should also consider atypicality. Preprint, arXiv:2305.18262.
 A Additional Results Figure 7: GPT4 ECE comparison across datasets
In the main sections of the paper, we presented figures for GPT3.5-turbo. Here we provide additional results for GPT3.5-turbo and the other three models to support the claims and findings discussed above. We show calibration and performance metrics for all methods used and across all three datasets: MedQA, MedMCQA and PubmedQA. Furthermore, we provide additional graphs to support the analysis of the distributions of atypicality scores across the different datasets as well as the
 Figure 8: Gemini ECE comparison across datasets
 Figure 9: Claude3-sonnet ECE comparison across datasets
distribution of atypicality scores by difficulty levels.
The findings and conclusions from these additional figures are already discussed in the main sections of the paper. These supplementary figures are included here to demonstrate that the findings are consistent across multiple models, ensuring that the conclusions drawn are robust and not based solely on one model.
# B Prompt templates
We provide the full prompt used for Atypical Scenario and Atypical Presentations. Note that for completeness, the version of prompts provided contains the component of difficulty scores. This component is optional and is only used for analyzing the relationship between difficulty and atypicality. The prompt templates can be found at Table 5.
 Distribution of Atypicality Scores Figure 10: Atypicality Distributions of GPT3.5
 Distribution of Atypicality Scores
 Figure 11: Atypicality by Difficulty for GPT3.5





 Figure 12: GPT4 Calibration curves across all methods


 Figure 13: ECE by Typicality bins of GPT4-turbo for Atypical Presentations Aware Recalibration methods

 Figure 14: Accuracy by Typicality bins of GPT4-turbo for Atypical Presentations Aware Recalibration methods

 Figure 15: Atypicality Distribution of GPT4


 Figure 16: Atypicality by Difficulty of GPT4





 Figure 17: Claude3-sonnet Calibration curves across all methods


 Figure 18: ECE by Typicality bins of Claude3-sonnet for Atypical Presentations Aware Recalibration methods

 Figure 19: Accuracy by Typicality bins of Claude3-sonnet for Atypical Presentations Aware Recalibration methods

 Figure 20: Atypicality Distribution of Claude


 Figure 21: Atypicality by Difficulty of Claude





 Figure 22: Gemini Calibration curves across all methods


 Figure 23: ECE by Typicality bins of Gemini for Atypical Presentations Aware Recalibration methods

 Figure 24: Accuracy by Typicality bins of Gemini for Atypical Presentations Aware Recalibration methods

 Figure 25: Atypicality Distribution of Gemini


 Figure 26: Atypicality by Difficulty of Gemini


<table><tr><td colspan="2"></td><td colspan="4">MedQA (n=1272)</td><td colspan="4">MedMCQA (n=2816)</td><td colspan="4">PubMedQA (n=500)</td></tr><tr><td>Models</td><td>Methods</td><td>Acc</td><td>ECE</td><td>Brier</td><td>AUC</td><td>Acc</td><td>ECE</td><td>Brier</td><td>AUC</td><td>Acc</td><td>ECE</td><td>Brier</td><td>AUC</td></tr><tr><td rowspan="6">gpt-3.5-turbo</td><td>Vanilla</td><td>0.526</td><td>0.351</td><td>0.363</td><td>0.553</td><td>0.555</td><td>0.323</td><td>0.350</td><td>0.530</td><td>0.544</td><td>0.251</td><td>0.304</td><td>0.562</td></tr><tr><td>CoT</td><td>0.536</td><td>0.318</td><td>0.334</td><td>0.608</td><td>0.525</td><td>0.357</td><td>0.360</td><td>0.588</td><td>0.516</td><td>0.275</td><td>0.360</td><td>0.588</td></tr><tr><td>Atypical scenario</td><td>0.506</td><td>0.084</td><td>0.262</td><td>0.530</td><td>0.544</td><td>0.128</td><td>0.252</td><td>0.549</td><td>0.468</td><td>0.115</td><td>0.252</td><td>0.581</td></tr><tr><td>Atypical presentations</td><td>0.506</td><td>0.283</td><td>0.332</td><td>0.557</td><td>0.527</td><td>0.152</td><td>0.322</td><td>0.515</td><td>0.544</td><td>0.129</td><td>0.268</td><td>0.540</td></tr><tr><td>Consistency (k=3)</td><td>0.535</td><td>0.408</td><td>0.396</td><td>0.567</td><td>0.561</td><td>0.350</td><td>0.356</td><td>0.613</td><td>0.544</td><td>0.335</td><td>0.370</td><td>0.524</td></tr><tr><td>Average (k=3)</td><td>0.539</td><td>0.398</td><td>0.397</td><td>0.555</td><td>0.561</td><td>0.350</td><td>0.344</td><td>0.613</td><td>0.550</td><td>0.346</td><td>0.372</td><td>0.536</td></tr><tr><td rowspan="6">claude3-sonnet</td><td>Vanilla</td><td>0.541</td><td>0.331</td><td>0.336</td><td>0.613</td><td>0.565</td><td>0.306</td><td>0.327</td><td>0.630</td><td>0.128</td><td>0.569</td><td>0.428</td><td>0.743</td></tr><tr><td>CoT</td><td>0.638</td><td>0.246</td><td>0.282</td><td>0.599</td><td>0.612</td><td>0.265</td><td>0.295</td><td>0.615</td><td>0.246</td><td>0.542</td><td>0.469</td><td>0.663</td></tr><tr><td>Atypical scenario</td><td>0.564</td><td>0.124</td><td>0.259</td><td>0.547</td><td>0.561</td><td>0.134</td><td>0.268</td><td>0.604</td><td>0.140</td><td>0.438</td><td>0.252</td><td>0.634</td></tr><tr><td>Atypical presentations</td><td>0.568</td><td>0.136</td><td>0.332</td><td>0.564</td><td>0.531</td><td>0.305</td><td>0.316</td><td>0.666</td><td>0.100</td><td>0.517</td><td>0.339</td><td>0.880</td></tr><tr><td>Consistency (k=3)</td><td>0.552</td><td>0.335</td><td>0.363</td><td>0.555</td><td>0.568</td><td>0.346</td><td>0.355</td><td>0.591</td><td>0.122</td><td>0.789</td><td>0.766</td><td>0.443</td></tr><tr><td>Average (k=3)</td><td>0.558</td><td>0.338</td><td>0.358</td><td>0.565</td><td>0.568</td><td>0.337</td><td>0.356</td><td>0.585</td><td>0.128</td><td>0.750</td><td>0.725</td><td>0.491</td></tr><tr><td rowspan="6">gemini-pro-1.0</td><td>Vanilla</td><td>0.472</td><td>0.369</td><td>0.385</td><td>0.530</td><td>0.551</td><td>0.297</td><td>0.338</td><td>0.520</td><td>0.492</td><td>0.342</td><td>0.362</td><td>0.572</td></tr><tr><td>CoT</td><td>0.465</td><td>0.357</td><td>0.369</td><td>0.578</td><td>0.526</td><td>0.306</td><td>0.340</td><td>0.537</td><td>0.438</td><td>0.368</td><td>0.373</td><td>0.590</td></tr><tr><td>Atypical scenario</td><td>0.473</td><td>0.105</td><td>0.268</td><td>0.510</td><td>0.513</td><td>0.129</td><td>0.274</td><td>0.517</td><td>0.508</td><td>0.128</td><td>0.276</td><td>0.495</td></tr><tr><td>Atypical presentations</td><td>0.458</td><td>0.293</td><td>0.332</td><td>0.568</td><td>0.387</td><td>0.357</td><td>0.316</td><td>0.712</td><td>0.226</td><td>0.448</td><td>0.338</td><td>0.782</td></tr><tr><td>Consistency (k=3)</td><td>0.471</td><td>0.399</td><td>0.400</td><td>0.613</td><td>0.557</td><td>0.337</td><td>0.343</td><td>0.624</td><td>0.540</td><td>0.309</td><td>0.349</td><td>0.591</td></tr><tr><td>Average (k=3)</td><td>0.477</td><td>0.364</td><td>0.391</td><td>0.599</td><td>0.549</td><td>0.314</td><td>0.341</td><td>0.635</td><td>0.504</td><td>0.325</td><td>0.371</td><td>0.529</td></tr><tr><td rowspan="6">gpt-4-turbo</td><td>Vanilla</td><td>0.756</td><td>0.133</td><td>0.190</td><td>0.670</td><td>0.707</td><td>0.188</td><td>0.230</td><td>0.673</td><td>0.394</td><td>0.374</td><td>0.337</td><td>0.792</td></tr><tr><td>CoT</td><td>0.832</td><td>0.065</td><td>0.132</td><td>0.710</td><td>0.730</td><td>0.162</td><td>0.206</td><td>0.729</td><td>0.358</td><td>0.445</td><td>0.402</td><td>0.743</td></tr><tr><td>Atypical scenario</td><td>0.741</td><td>0.085</td><td>0.181</td><td>0.693</td><td>0.675</td><td>0.071</td><td>0.206</td><td>0.672</td><td>0.354</td><td>0.197</td><td>0.249</td><td>0.679</td></tr><tr><td>Atypical presentations</td><td>0.751</td><td>0.114</td><td>0.178</td><td>0.673</td><td>0.681</td><td>0.174</td><td>0.213</td><td>0.739</td><td>0.338</td><td>0.414</td><td>0.363</td><td>0.763</td></tr><tr><td>Consistency (k=3)</td><td>0.775</td><td>0.198</td><td>0.206</td><td>0.555</td><td>0.712</td><td>0.248</td><td>0.253</td><td>0.587</td><td>0.404</td><td>0.537</td><td>0.546</td><td>0.490</td></tr><tr><td>Average (k=3)</td><td>0.767</td><td>0.194</td><td>0.205</td><td>0.573</td><td>0.708</td><td>0.249</td><td>0.255</td><td>0.590</td><td>0.404</td><td>0.552</td><td>0.563</td><td>0.458</td></tr></table>
Table 4: Using atypicality as post-hoc calibration brings major improvements in ECE and Brier Scores across all datasets and all models. Atypical Scenario outperforms all other methods in calibration in the big majority of experiments.
<table><tr><td colspan="2">Prompts</td></tr><tr><td rowspan="5">Atypical Scenario</td><td>Question and Options:{question}</td></tr><tr><td>First, assess the situation described in the question and assign an atypicality score between 0 and 1, where:- 0 indicates a highly atypical situation, uncommon or rare in such scenarios.- 1 indicates a very typical situation, commonly expected in such scenarios.- Scores between 0 and 1 (such as 0.25, 0.5, 0.75) indicate varying degrees of typicality.</td></tr><tr><td>Situation Atypicality: [Atypicality score]</td></tr><tr><td>Then, provide your response in the following format:Response:- Answer (letter): [Letter of the choice]- Difficulty: [Score on a scale from 1 to 10 with 10 being the hardest]- Confidence: [Percentage score between 0 and 100%]</td></tr><tr><td>Answer, Difficulty, and Confidence:</td></tr><tr><td rowspan="5">Atypical Presentations</td><td>Question and Options:{question}</td></tr><tr><td>First, assess each symptom and signs with respect to its typicality in the described scenario. Assign an atypicality score between 0 and 1, where:- 0 indicates a highly atypical situation, uncommon or rare in such scenarios.- 1 indicates a very typical situation, commonly expected in such scenarios.- Scores between 0 and 1 (such as 0.25, 0.5, 0.75) indicate varying degrees of typicality.</td></tr><tr><td>Symptoms and signs:- Symptom 1: [Atypical score]- Symptom 2: [Atypical score]- Symptom 3: [Atypical score]-- ...</td></tr><tr><td>Then, provide your response in the following format:Response:- Answer (letter): [Letter of the choice]- Difficulty: [Score on a scale from 1 to 10 with 10 being the hardest]- Confidence: [Percentage score between 0 and 100%]</td></tr><tr><td>Answer, Difficulty, and Confidence:</td></tr></table>
Table 5: Complete prompts used for Atypical Presentations Aware Recalibration framework123version https://git-lfs.github.com/spec/v1oid sha256:81ed50b0308f12dc4588d309c455d551750e0ba2aeb244b65b7397995b31d21dsize 2259334123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529[ { "type": "text", "text": "Enhancing Incremental Summarization with Structured Representations", "text_level": 1, "bbox": [ 122, 83, 875, 104 ], "page_idx": 0 }, { "type": "text", "text": "Eunjoeong Hwang† \nUniversity of British Columbia \nejhwang@cs.ubc.ca", "bbox": [ 373, 112, 630, 165 ], "page_idx": 0 }, { "type": "text", "text": "Yichao Zhou, James Bradley Wendt, Beliz Gunel, Nguyen Vo, Jing Xie, Sandeep Tata Google Deepmind", "text_level": 1, "bbox": [ 132, 179, 865, 212 ], "page_idx": 0 }, { "type": "text", "text": "{yichaojoey, jwendt, bgunel, nguyenvo, lucyxie, tata}@google.com", "bbox": [ 174, 214, 823, 231 ], "page_idx": 0 }, { "type": "text", "text": "Abstract", "text_level": 1, "bbox": [ 284, 252, 363, 267 ], "page_idx": 0 }, { "type": "text", "text": "Large language models (LLMs) often struggle with processing extensive input contexts, which can lead to redundant, inaccurate, or incoherent summaries. Recent methods have used unstructured memory to incrementally process these contexts, but they still suffer from information overload due to the volume of unstructured data handled. In our study, we introduce structured knowledge representations $\\mathrm{(GU_{\\mathrm{json}})}$ ,which significantly improve summarization performance by $40\\%$ and $14\\%$ across two public datasets. Most notably, we propose the Chain-of-Key strategy $(\\mathrm{CoK_{\\mathrm{json}}})$ that dynamically updates or augments these representations with new information, rather than recreating the structured memory for each new source. This method further enhances performance by $7 \\%$ and $4 \\%$ on the datasets.", "bbox": [ 141, 280, 460, 535 ], "page_idx": 0 }, { "type": "text", "text": "1 Introduction", "text_level": 1, "bbox": [ 114, 550, 258, 565 ], "page_idx": 0 }, { "type": "text", "text": "Individuals commonly use large language models (LLMs) to summarize content from sources like webpages, books, and articles (Jin et al., 2024; Kryscinski et al., 2022; Agarwal et al., 2011; Gunel et al., 2024). This aids in efficiently processing large volumes of information, influencing daily decision-making tasks. Despite their potential, LLMs often struggle with processing extensive contexts, leading to redundancy or inaccuracies (Hwang et al., 2024). Recent research integrates unstructured memory systems (Madaan et al., 2022; Zhang et al., 2024) and fine-tunes models for larger context windows (Xiong et al., 2024). However, unstructured memory formats often result in oversized memories that overload the model, impairing its processing and summarization abilities. Zhang et al. (2024) proposes a self-controlled memory architecture to manage information via heuristics, yet unstructured memory complicates", "bbox": [ 112, 576, 489, 883 ], "page_idx": 0 }, { "type": "image", "img_path": "images/bb6cbf3ac9590d8bde5f79a151146ff18d272d4504d58482cda0db438316ff6f.jpg", "image_caption": [ "Figure 1: Example summaries generated based on a text memory representation and a structured memory representation, respectively, given the N paragraphs in the original texts. Red color marks the values that are not included in plain text summary." ], "image_footnote": [], "bbox": [ 512, 249, 882, 428 ], "page_idx": 0 }, { "type": "text", "text": "retrieval, and Li et al. (2024) finds that larger context windows still struggle to process documents comprehensively.", "bbox": [ 507, 539, 882, 586 ], "page_idx": 0 }, { "type": "text", "text": "To address summarization tasks over extensive input contexts, we introduce CoK, the Chain-of-Key update based on JSON structured memory representations. On one hand, this approach leverages two key aspects: (1) JSON's capability to organize information into distinct, easily accessible segments, facilitating efficient updates and retrievals—offering superior expansion and nesting capabilities compared to markdown tables or graphs (Dagdelen et al., 2024); (2) The prevalence of JSON in LLM pretraining data enhances LLMs' ability to understand and generate structured JSON content (Ouyang et al., 2022; Xia et al., 2024) $^{1}$ . Consequently, as shown in Figure 1, JSON-based representations produce more well-structured summaries than plain text, avoiding vocabulary and retaining critical content across all sections.", "bbox": [ 505, 588, 884, 860 ], "page_idx": 0 }, { "type": "text", "text": "On the other hand, instead of requiring LLMs to", "bbox": [ 526, 863, 882, 879 ], "page_idx": 0 }, { "type": "page_footnote", "text": "This work was completed while the author was working as an intern at Google Deepmind.", "bbox": [ 112, 892, 487, 917 ], "page_idx": 0 }, { "type": "page_footnote", "text": "1Our method uses the JSON format, though YAML or XML could also serve as structured formats.", "bbox": [ 507, 892, 882, 917 ], "page_idx": 0 }, { "type": "page_number", "text": "3830", "bbox": [ 480, 927, 521, 940 ], "page_idx": 0 }, { "type": "footer", "text": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 3830-3842 November 12-16, 2024 ©2024 Association for Computational Linguistics", "bbox": [ 216, 945, 779, 972 ], "page_idx": 0 }, { "type": "image", "img_path": "images/e51e48b5b99c2d356fad916e31e0a7bcd2fe7267e690540ea46285f06a04fe20.jpg", "image_caption": [ "Figure 2: Overall incremental summarization process with a structured memory representation based on user-defined schema. The questions under \"LLM thoughts\" are for Chain-of-Key Updating process." ], "image_footnote": [], "bbox": [ 132, 80, 472, 263 ], "page_idx": 1 }, { "type": "text", "text": "recreate complete structured representations for all previously encountered knowledge upon encountering a new information source, our method dynamically identifies which new information needs to be added or updated within the existing structures. This reduces the cognitive load on LLMs, enabling them to maintain and process complex information more effectively and produce more accurate and comprehensive summaries, as illustrated in Figure 1, where summaries using the CoK strategy effectively retain essential knowledge, unlike unstructured summaries that often miss key details (highlighted in red).", "bbox": [ 112, 356, 489, 565 ], "page_idx": 1 }, { "type": "text", "text": "Contributions:", "text_level": 1, "bbox": [ 114, 575, 235, 589 ], "page_idx": 1 }, { "type": "list", "sub_type": "text", "list_items": [ "- We demonstrate that structured knowledge representations significantly enhances LLMs' summarization capabilities, improving performance by $40\\%$ and $14\\%$ on two public summarization benchmarks.", "- We introduce CoK, the Chain-of-Key update strategy, which dynamically updates or augments structured representations with new information, boosting performance further by $7\\%$ and $4\\%$ on the benchmarks, without needing to recreate the JSON structure for each new source.", "- We offer an analysis demonstrating that structured representations enable models to retain more relevant contexts and historical information than plain-text memory, particularly when token availability for storing information is limited." ], "bbox": [ 136, 600, 489, 906 ], "page_idx": 1 }, { "type": "text", "text": "2 Methodology", "text_level": 1, "bbox": [ 509, 83, 658, 99 ], "page_idx": 1 }, { "type": "text", "text": "Overview. The goal of the summarization task is to generate a summary $S_{t}$ from a sequence of documents $D = D_{0},D_{1},\\ldots ,D_{t}$ that encapsulates the essential contents of all documents up to time $t$ . We primarily approach the task within an incremental framework: Incremental Summarization. This process involves continuously refining the summary by integrating new information from each subsequent document. Each document $D_{i}$ may contain new, relevant information that contributes to an ongoing topic. The task requires producing a summary $S_{t}$ at each time step $t$ , encompassing all critical information accumulated, thereby reflecting the key insights from the document sequence. Our methodology utilizes a structured representation to efficiently manage and update the summary dynamically with each new document.", "bbox": [ 507, 109, 884, 384 ], "page_idx": 1 }, { "type": "text", "text": "Initial Structured Summary Generation. As depicted in Figure 2, we initiate the process by establishing a schema tailored to the task. This schema is then provided to the LLM along with any newly available information and, if applicable, any pre-existing data in memory. The LLM is tasked with generating outputs that align with the key elements specified in the schema.", "bbox": [ 507, 393, 884, 521 ], "page_idx": 1 }, { "type": "text", "text": "Chain-of-Key: Structured Summary Updates. We propose the Chain-of-Key (CoK) updating method to merge existing memory data with new input in a structured summary. First, the LLM creates a structured summary from a new document. This new summary, together with any existing structured memories, is then processed by the model. The method uses two main operations, Update and Add, to effectively combine the summaries.", "bbox": [ 507, 532, 884, 676 ], "page_idx": 1 }, { "type": "text", "text": "The Update operation modifies existing summary to incorporate new data. It progresses through three steps: (1) identifying keys in the existing summary, such as [\"Amenities\", \"Food & Beverage\"], (2) matching these keys with relevant ones in the existing memory, like \"Amenities\", and (3) generating a JSON path to integrate the new key information, such as $ attributes. Amenities. This path is then used to programmatically update the summary.", "bbox": [ 505, 677, 882, 837 ], "page_idx": 1 }, { "type": "text", "text": "The Add operation focuses on incorporating new keys from the new information that are absent in the existing summary. It also follows three steps: (1) identifying new keys in the summary, such as [“Noise Level”], (2) detecting which of these are", "bbox": [ 507, 839, 882, 917 ], "page_idx": 1 }, { "type": "page_number", "text": "3831", "bbox": [ 480, 927, 517, 940 ], "page_idx": 1 }, { "type": "text", "text": "not in the existing summary, like \"Noise Level\", and (3) generating a JSON path for adding the new key, such as \\(.attributes.NoiseLevel.Using the generated path, new values are programmatically added to the summary.", "bbox": [ 112, 84, 487, 164 ], "page_idx": 2 }, { "type": "text", "text": "Breaking down the updating process into sub tasks employs the LLM's reasoning capabilities to tackle complex and multifaceted reasoning problems in the incremental summarization task. See Appendix B and G for the schemas and prompts.", "bbox": [ 112, 165, 487, 246 ], "page_idx": 2 }, { "type": "text", "text": "Final Summary Generation. Once the iterative summary update process at each step is completed, the LLM receives the aggregated memory from $D_0, D_1, \\ldots, D_t$ and generates the final summary $S_t$ . This summary can be presented in various formats, such as JSON or plain text.", "bbox": [ 112, 253, 487, 350 ], "page_idx": 2 }, { "type": "text", "text": "3 Experimental Setup", "text_level": 1, "bbox": [ 112, 361, 321, 378 ], "page_idx": 2 }, { "type": "text", "text": "Dataset. We evaluate our methods using two datasets: SUMIE (Hwang et al., 2024) and BoookScore (Chang et al., 2024). The SUMIE dataset is designed to assess the incremental entity summarization capabilities of LLMs. The BoookScore dataset is aimed at long document summarization and includes 100 recently published books, with some books exceeding 100k tokens. Due to our models' 6K token context window size, each book is segmented into 2K-token chunks. For additional dataset details, see Appendix C.", "bbox": [ 112, 386, 487, 562 ], "page_idx": 2 }, { "type": "text", "text": "Baseline. We compare our method against three setups: Generate-Once (GO), Generate-Update (GU), and Generate-Merge (GM), using two data formats—JSON and plain text—with two state-of-the-art LLMs: Gemini-Ultra and Gemini-Pro $^2$ . In GO, the LLM generates a comprehensive summary from all related paragraphs in a single step. In GU, the LLM incrementally generates updated summaries by integrating each new paragraph. In GM, the LLM merges summaries from each new paragraph incrementally, utilizing JSON for its key-matching capability to facilitate merging. Programmatic merging in JSON may retain redundant key-values, which are removed by directing the LLM to filter out such redundancies. Details on the prompts for these methods are in Appendix H and I.", "bbox": [ 112, 571, 487, 829 ], "page_idx": 2 }, { "type": "text", "text": "Evaluation Metrics. For SUMIE, we employ its LLM-assisted evaluation method to measure precision, recall, and F1 scores of the final summary. For", "bbox": [ 112, 837, 487, 885 ], "page_idx": 2 }, { "type": "table", "img_path": "images/a625702808c3f78ca3cdde62363ec5e6afc05a5b9e9c8ad72f3090d0586b9ed7.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td></td><td>Turn</td><td>P</td><td>Ultra R</td><td>F1</td><td>P</td><td>Pro R</td><td>F1</td></tr><tr><td>GO_text</td><td>last</td><td>86.2</td><td>42.7</td><td>56.4</td><td>85.8</td><td>40.4</td><td>54.1</td></tr><tr><td>GOJSON</td><td>last</td><td>91.2</td><td>58.9</td><td>70.9</td><td>85.1</td><td>61.0</td><td>70.1</td></tr><tr><td rowspan=\"3\">GU_text</td><td>start</td><td>77.3</td><td>70.0</td><td>72.6</td><td>74.7</td><td>66.9</td><td>69.7</td></tr><tr><td>last</td><td>76.6</td><td>45.2</td><td>55.8</td><td>73.3</td><td>26.8</td><td>38.4</td></tr><tr><td>Avg.</td><td>76.1</td><td>54.3</td><td>62.2</td><td>73.0</td><td>41.8</td><td>51.2</td></tr><tr><td rowspan=\"3\">GUJSON</td><td>start</td><td>88.6</td><td>81.6</td><td>84.3</td><td>85.1</td><td>80.7</td><td>82.2</td></tr><tr><td>last</td><td>80.2</td><td>76.7</td><td>78.1</td><td>81.7</td><td>69.4</td><td>74.7</td></tr><tr><td>Avg.</td><td>80.9</td><td>78.9</td><td>79.4</td><td>83.4</td><td>74.0</td><td>77.9</td></tr><tr><td rowspan=\"3\">GMJSON</td><td>start</td><td>88.6</td><td>82.9</td><td>85.0</td><td>84.2</td><td>82.6</td><td>82.6</td></tr><tr><td>last</td><td>86.8</td><td>63.2</td><td>72.7</td><td>84.6</td><td>74.3</td><td>78.6</td></tr><tr><td>Avg.</td><td>86.5</td><td>70.9</td><td>77.3</td><td>84.7</td><td>78.7</td><td>80.9</td></tr><tr><td rowspan=\"3\">CoKJSON</td><td>start</td><td>89.1</td><td>77.8</td><td>82.8</td><td>81.1</td><td>80.5</td><td>79.9</td></tr><tr><td>last</td><td>92.6</td><td>78.0</td><td>84.5</td><td>84.6</td><td>83.6</td><td>83.9</td></tr><tr><td>Avg.</td><td>91.8</td><td>80.5</td><td>85.5</td><td>83.7</td><td>83.9</td><td>83.5</td></tr></table>", "bbox": [ 522, 82, 870, 277 ], "page_idx": 2 }, { "type": "text", "text": "Table 1: Overall performance of Ultra and Pro models on the SUMIE dataset. \"start\" indicates performance at the first paragraph, and \"last\" represents performance at the last paragraph aggregating all attribute-value pairs. P, R, and F1 refer to the average precision, average recall, and macro F1 scores, respectively.", "bbox": [ 507, 287, 882, 374 ], "page_idx": 2 }, { "type": "text", "text": "the BookScore dataset, we utilize its LLM-based metric to assess summary coherence, evaluating across eight predefined error dimensions: entity omission, event omission, causal omission, discontinuity, salience, language inconsistency, and duplication. See Appendix D for more setup details.", "bbox": [ 507, 400, 882, 495 ], "page_idx": 2 }, { "type": "text", "text": "Limited Token Scenario. To evaluate how much information JSON and text formats retain in in-context memory, we established a scenario with a constrained in-context memory token limit of $K$ tokens. This constraint is crucial for handling long documents, like books, that exceed the model's context window. For the SUMIE dataset, $K$ is set to 200 and 300 tokens, while for the BoookScore dataset, it's set to 1000 tokens. See Appendix F for more details about compression criteria and the associated prompts.", "bbox": [ 507, 508, 882, 684 ], "page_idx": 2 }, { "type": "text", "text": "4 Results", "text_level": 1, "bbox": [ 507, 699, 606, 713 ], "page_idx": 2 }, { "type": "text", "text": "Text vs. JSON, Table 1, 2. Table 1 shows that the JSON format outperforms plain text in the incremental summarization tasks using the Ultra and Pro models, with notable differences in both the GO and GU methods. Specifically, GOJSON averages a $28\\%$ F1 score improvement over its text equivalent, while $\\mathrm{GU}_{\\mathrm{json}}$ sees a $40\\%$ improvement. This discrepancy primarily stems from the low recall with the text format, suggesting that plain text leads to information loss over iterations. The JSON format, however, supports better information retention. This is evident in later iterations and the book", "bbox": [ 507, 726, 882, 917 ], "page_idx": 2 }, { "type": "page_footnote", "text": "$^{2}$ https://deepmind.google/technologies/gemini/ Model temperatures are all set to 0.8 by default.", "bbox": [ 112, 891, 478, 917 ], "page_idx": 2 }, { "type": "page_number", "text": "3832", "bbox": [ 480, 927, 519, 940 ], "page_idx": 2 }, { "type": "table", "img_path": "images/db3107552b574a58c6c11f06dc35807644ff6bdc37c9a85e6be2f0268a6ea798.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td>Model</td><td>\\(GU_{text}\\)</td><td>\\(GU_{json}\\)</td><td>\\(GM_{json}\\)</td><td>\\(CoK_{json}\\)</td></tr><tr><td>Pro</td><td>53.1</td><td>58.5</td><td>61.5</td><td>62.2</td></tr><tr><td>Ultra</td><td>51.9</td><td>61.7</td><td>60.1</td><td>63.1</td></tr></table>", "bbox": [ 166, 80, 433, 128 ], "page_idx": 3 }, { "type": "text", "text": "Table 2: BookScore performance on GU, GM, and CoK, where the token size for existing information was limited to 1000 tokens.", "bbox": [ 112, 137, 489, 180 ], "page_idx": 3 }, { "type": "text", "text": "summulation task shown in Table 2. Here, $\\mathrm{GU}_{\\mathrm{j}\\mathrm{so}}$ posts a $14\\%$ gain, enhancing the model's ability to maintain key details about characters and events.", "bbox": [ 112, 208, 487, 256 ], "page_idx": 3 }, { "type": "text", "text": "We conducted a human evaluation of the final summaries for 20 randomly sampled entities from the SUMIE dataset, assessing two criteria: Informativeness (Is the summary informative?) and Relevance (Does the summary contain all the key points related to the given entity?). We compared summaries generated by $\\mathrm{GU}_{\\mathrm{json}}$ and $\\mathrm{GU}_{\\mathrm{text}}$ , asking two human annotators to indicate their preference for each criterion. $\\mathrm{GU}_{\\mathrm{json}}$ summaries were preferred in $81\\%$ of cases for both informativeness and relevance, with an $87\\%$ agreement rate between annotators. These results align with the findings presented in the table.", "bbox": [ 112, 258, 489, 467 ], "page_idx": 3 }, { "type": "text", "text": "Effectiveness of Chain-of-Key Update, Table 1, 2. Table 1 illustrates the effectiveness of the Chain-of-Key (CoK) method, which significantly outperforms all baseline models. Specifically, the CoK method, when applied with the Pro model, surpasses the best JSON baseline $\\mathrm{(GM_{\\mathrm{json}})}$ of the larger Ultra model on the SUMIE task by $10\\%$ in F1 score. Additionally, CoK achieves a $7\\%$ F1 improvement over the $\\mathrm{GU}_{\\mathrm{json}}$ and $\\mathrm{GM}_{\\mathrm{json}}$ methods, averaged over Pro and Utrla models.", "bbox": [ 112, 481, 487, 642 ], "page_idx": 3 }, { "type": "text", "text": "The analysis also highlights a notable decrease in recall for the GM method after removing duplicates over turns. This is more pronounced in the Ultra model, which removes more attribute-value pairs than the Pro model, leading to lower recall. In contrast, the CoK approach enhances both precision and recall across turns in both models, improving the F1 score by $3\\%$ in the final turn. This improvement suggests that CoK's step-by-step processing allows the model to more accurately select and update information, maintaining relevance as iterations progress.", "bbox": [ 112, 644, 489, 837 ], "page_idx": 3 }, { "type": "text", "text": "Further validation comes from Table 2, where CoK shows $3\\%$ and $4\\%$ improvements in book scores over GM and GU. This indicates CoK's effectiveness in preserving detailed explanations of complex entities and events within books, crucial", "bbox": [ 112, 839, 489, 917 ], "page_idx": 3 }, { "type": "text", "text": "for the narrative. Although current metrics do not measure recall in book scores, this highlights an area for future research.", "bbox": [ 507, 84, 882, 131 ], "page_idx": 3 }, { "type": "text", "text": "Limited in-context token size for existing information, Figure 3, Appendix A. The CoK method uses significantly more tokens (an average of 604 tokens) for in-context memory compared to text baselines (an average of 269 tokens), raising the question of whether JSON can hold more information than text within the same token constraints. As shown in Figure 3 and detailed in Appendix A, both the average F1 scores and the number of tokens used as existing information are tracked across all turns when token size is limited. The $\\mathrm{GU}_{\\mathrm{j}\\mathrm{son}}$ method substantially surpasses baseline methods even with restricted token counts, achieving a $30\\%$ average F1 score improvement over textual counterparts. CoK shows an extra $8\\%$ F1 score improvement, suggesting that JSON format maintains more precise and distinct information in summaries.", "bbox": [ 507, 139, 884, 414 ], "page_idx": 3 }, { "type": "text", "text": "Error Case Study. We observe that structured memory methods often add excessive details to book summaries. Here are sentences from two different summaries generated by CoK:", "bbox": [ 507, 420, 882, 486 ], "page_idx": 3 }, { "type": "list", "sub_type": "text", "list_items": [ "1. ... The family received support from extended family members and healthcare professionals, including Katie, Angela, Rachel, and Mira. Lola, a therapy dog, brought joy during Henry's illness. ...", "2. ...Eleanor Bennett's children, Benny, Byron, and Marble, are grappling with their complex family history and personal struggles...." ], "bbox": [ 524, 491, 867, 539 ], "page_idx": 3 }, { "type": "text", "text": "The red text highlights unnecessary details, like minor character names, retained for broader coverage. This discrepancy underscores a gap in the LLM's approach to what constitutes a comprehensive summary versus an effective book summary. While structured representations help retain more details, this excess negatively affects two evaluation metrics of book score: entity omission (mentioning entities without descriptions) and salience (including trivial details irrelevant to the storyline). Managing the level of detail in structured summaries poses a significant challenge for future research.", "bbox": [ 507, 546, 884, 739 ], "page_idx": 3 }, { "type": "text", "text": "5 Conclusion and Discussion", "text_level": 1, "bbox": [ 507, 750, 774, 766 ], "page_idx": 3 }, { "type": "text", "text": "In this paper, we introduce the Chain-of-Key method, which uses structured memory representations and leverages LLM's step-by-step reasoning to dramatically improve performance on two summarization tasks, surpassing strong baselines. JSON demonstrates its superiority in organizing knowledge for incremental summarization<sup>3</sup>. Chal", "bbox": [ 507, 774, 884, 885 ], "page_idx": 3 }, { "type": "page_footnote", "text": "3See Appendix E for a comparison between JSON and Markdown tables, discussing the unique capabilities of JSON.", "bbox": [ 507, 892, 882, 917 ], "page_idx": 3 }, { "type": "page_number", "text": "3833", "bbox": [ 480, 927, 519, 940 ], "page_idx": 3 }, { "type": "image", "img_path": "images/588e0a01b167770b53e8f1d033ca2aa5abcadefc2ec2fd34ba09094b53546d0c.jpg", "image_caption": [ "Figure 3: Average F1 score across all turns with limited memory token size on SUMIE." ], "image_footnote": [], "bbox": [ 151, 80, 450, 221 ], "page_idx": 4 }, { "type": "text", "text": "lenges remain in filtering out trivial details and focusing on crucial information within structured summaries. Developing heuristics based on structured properties to better highlight key information is an area for future research.", "bbox": [ 112, 286, 487, 367 ], "page_idx": 4 }, { "type": "text", "text": "Limitations", "text_level": 1, "bbox": [ 114, 380, 218, 395 ], "page_idx": 4 }, { "type": "text", "text": "Our approach capitalizes on the inherent capabilities of LLMs to generate structured JSON formats. However, while most recent LLMs manage this well, smaller models such as Llama3-8B, Mistral7B, and Gemini Nano often produce structured outputs with errors.", "bbox": [ 112, 406, 489, 501 ], "page_idx": 4 }, { "type": "text", "text": "In terms of evaluation, we adhere to the methods outlined in SUMIE and BookScore, which rely on LLM-based metrics. These evaluations are both computationally intensive and time-consuming.", "bbox": [ 112, 504, 487, 568 ], "page_idx": 4 }, { "type": "text", "text": "Additionally, although our method improves recall in final summaries, the book summarization task currently lacks a specific metric for measuring recall. We also did not evaluate the redundancy and accuracy of the information produced by the LLMs.", "bbox": [ 112, 569, 489, 663 ], "page_idx": 4 }, { "type": "text", "text": "Ethics Statement", "text_level": 1, "bbox": [ 114, 677, 265, 693 ], "page_idx": 4 }, { "type": "text", "text": "The LLMs we used to evaluate are trained on a large-scale web corpus and may also bring some bias when generating sentences (or structured data) or when evaluating final summaries of entities or books. We evaluated our method on publicly available datasets.", "bbox": [ 112, 703, 489, 799 ], "page_idx": 4 }, { "type": "text", "text": "References", "text_level": 1, "bbox": [ 114, 828, 213, 843 ], "page_idx": 4 }, { "type": "ref_text", "text": "Nitin Agarwal, Ravi Shankar Reddy, Kiran G. V. R., and Carolyn Penstein Rose. 2011. Scisumm: A multi-document summarization system for scientific articles. In ACL (System Demonstrations), pages 115-120. The Association for Computer Linguistics.", "bbox": [ 114, 851, 489, 917 ], "page_idx": 4 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "Yapei Chang, Kyle Lo, Tanya Goyal, and Mohit Iyyer. 2024. Booookscore: A systematic exploration of book-length summarization in the era of LLMs. In The Twelfth International Conference on Learning Representations.", "John Dagdelen, Alexander Dunn, Sanghoon Lee, Nicholas Walker, Andrew S. Rosen, Gerbrand Ceder, Kristin A. Persson, and Anubhav Jain. 2024. Structured information extraction from scientific text with large language models. Nature Communications, 15(1):1418.", "Belize Gunel, James B. Wendt, Jing Xie, Yichao Zhou, Nguyen Vo, Zachary Fisher, and Sandeep Tata. 2024. Strum-llm: Attributed and structured contrastive summarization. arXiv preprint, abs/2403.19710.", "Eunjeong Hwang, Yichao Zhou, Beliz Gunel, James Bradley Wendt, and Sandeep Tata. 2024. Sumie: A synthetic benchmark for incremental entity summarization. arXiv preprint, abs/2406.05079.", "Hanlei Jin, Yang Zhang, Dan Meng, Jun Wang, and Jinghua Tan. 2024. A comprehensive survey on process-oriented automatic text summarization with exploration of llm-based methods. CoRR, abs/2403.02901.", "Wojciech Kryscinski, Nazneen Rajani, Divyansh Agarwal, Caiming Xiong, and Dragomir Radev. 2022. BOOKSUM: A collection of datasets for long-form narrative summarization. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 6536-6558, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.", "Tianle Li, Ge Zhang, Quy Duc Do, Xiang Yue, and Wenhu Chen. 2024. Long-context llms struggle with long in-context learning. CoRR, abs/2404.02060.", "Aman Madaan, Niket Tandon, Peter Clark, and Yiming Yang. 2022. Memory-assisted prompt editing to improve GPT-3 after deployment. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 2833-2861, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.", "Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul F Christiano, Jan Leike, and Ryan Lowe. 2022. Training language models to follow instructions with human feedback. In Advances in Neural Information Processing Systems, volume 35, pages 27730-27744. Curran Associates, Inc.", "Congying Xia, Chen Xing, Jiangshu Du, Xinyi Yang, Yihao Feng, Ran Xu, Wenpeng Yin, and Caiming Xiong. 2024. FOFO: A benchmark to evaluate LLMs' format-following capability. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages" ], "bbox": [ 510, 85, 884, 917 ], "page_idx": 4 }, { "type": "page_number", "text": "3834", "bbox": [ 480, 928, 519, 940 ], "page_idx": 4 }, { "type": "text", "text": "680-699, Bangkok, Thailand. Association for Computational Linguistics.", "bbox": [ 131, 85, 489, 112 ], "page_idx": 5 }, { "type": "text", "text": "Wenhan Xiong, Jingyu Liu, Igor Molybog, Hejia Zhang, Prajjwal Bhargava, Rui Hou, Louis Martin, Rashi Rungta, Karthik Abinav Sankararaman, Barlas Oguz, Madian Khabsa, Han Fang, Yashar Mehdad, Sharan Narang, Kshitiz Malik, Angela Fan, Shruti Bhosale, Sergey Edunov, Mike Lewis, Sinong Wang, and Hao Ma. 2024. Effective long-context scaling of foundation models. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 4643-4663, Mexico City, Mexico. Association for Computational Linguistics.", "bbox": [ 114, 121, 489, 292 ], "page_idx": 5 }, { "type": "text", "text": "Kai Zhang, Yangyang Kang, Fubang Zhao, and Xiaozhong Liu. 2024. LLM-based medical assistant personalization with short- and long-term memory coordination. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 2386-2398, Mexico City, Mexico. Association for Computational Linguistics.", "bbox": [ 114, 300, 489, 420 ], "page_idx": 5 }, { "type": "image", "img_path": "images/45ba24524847453f792266fe305523d4521a96c15fa96e5adb2f69bc871fbf16.jpg", "image_caption": [ "Figure 4: Average number of tokens used as an existing information across all turns with limited memory token size on SUMIE." ], "image_footnote": [], "bbox": [ 546, 80, 845, 227 ], "page_idx": 5 }, { "type": "text", "text": "A Number of tokens under limited token size scenario", "text_level": 1, "bbox": [ 509, 304, 878, 335 ], "page_idx": 5 }, { "type": "text", "text": "Figure 4 shows the average number of tokens used for existing information in prompts across all turns. We observe that the models effectively compress tokens across all methods. Specifically, when the token limit is set to 200 tokens, the models compress the information to fewer than 130 tokens, and when the limit is set to 300 tokens, they compress it to fewer than 180 tokens.", "bbox": [ 507, 344, 884, 473 ], "page_idx": 5 }, { "type": "text", "text": "B Predefined schema for entity summarization and book summarization tasks", "text_level": 1, "bbox": [ 509, 485, 794, 533 ], "page_idx": 5 }, { "type": "text", "text": "For entity summarization, we define the schema as follows:", "bbox": [ 507, 544, 880, 573 ], "page_idx": 5 }, { "type": "code", "sub_type": "code", "code_caption": [], "code_body": "Summary: { attributes: { name: str, values: list[str] } }", "guess_lang": "yaml", "bbox": [ 521, 602, 719, 676 ], "page_idx": 5 }, { "type": "text", "text": "To construct structured representations of book contexts, we define the schema as follows:", "bbox": [ 507, 702, 880, 732 ], "page_idx": 5 }, { "type": "code", "sub_type": "code", "code_caption": [], "code_body": "Summary: { characters: { name: str, explanations: list[str] }, events: { name: str, explanations: list[str] }, background: { name: str, explanations: list[str] },", "guess_lang": "txt", "bbox": [ 524, 762, 764, 917 ], "page_idx": 5 }, { "type": "page_number", "text": "3835", "bbox": [ 480, 927, 519, 940 ], "page_idx": 5 }, { "type": "code", "sub_type": "code", "code_caption": [], "code_body": "motivations: { name: str, explanations: list[str] }, objectives: { name: str, explanations: list[str] }, other: { name: str, explanations: list[str] }", "guess_lang": "yaml", "bbox": [ 119, 85, 369, 243 ], "page_idx": 6 }, { "type": "text", "text": "C Details about Dataset", "text_level": 1, "bbox": [ 112, 269, 337, 286 ], "page_idx": 6 }, { "type": "text", "text": "SUMIE contains 200 entities and each entity is associated with 7 paragraphs. Each paragraph has aggregated a summary, which includes aggregated attribute-value pairs from the 1st paragraph to $N$ -th paragraph (e.g. 7th paragraph contains aggregated attribute-value pairs from all 7 paragraphs). Each summary contains attribute-value pairs that are relevant to the specific entity. BookScore dataset contains mostly fiction or contemporary books. Refer to Chang et al. (2024) for the full book list.", "bbox": [ 112, 296, 489, 456 ], "page_idx": 6 }, { "type": "text", "text": "D Details about Evaluation", "text_level": 1, "bbox": [ 112, 469, 366, 483 ], "page_idx": 6 }, { "type": "text", "text": "On SUMIE, the evaluation of the final summary comprises attribute-value pairs related to a specific entity, measuring precision, recall, and f1 score. We use Gemini-Pro as an LLM evaluator. The temperature is set to 0.8.", "bbox": [ 112, 495, 489, 575 ], "page_idx": 6 }, { "type": "text", "text": "For BookScore dataset, we use their LLM-based evaluation metric that assess summary coherence based on 8 predefined error dimensions (entity omission, event omission, causal omission, discontinuity, salience, language, inconsistency, duplication). Each error measures the following aspects:", "bbox": [ 112, 577, 489, 674 ], "page_idx": 6 }, { "type": "code", "sub_type": "code", "code_caption": [], "code_body": "- Entity omission: an entity, real or abstract (person, object, $\\leftrightarrow$ place, concept, etc.) is mentioned, but key details are missing or unclear\n- Event omission: an event is mentioned, but key details are missing or unclear\n- Causal omission: the reason or motivation for something is missing or unclear\n- Salience: inclusion of trivial details that do not contribute to the main storyline\n- Discontinuity: an interruption in the flow of the narrative, including but not restricted to: sudden jumps between perspectives, time periods, or settings; poor transition between sentences or paragraphs; sentences or paragraphs that seem out of place; illogical sentence order or summary structure\n- Duplication: redundant repetition of similar information\n- Inconsistency: two parts of the summary contain contradicting information\n- Language: grammar issues; confusing wording or phrasing; etc.", "guess_lang": "txt", "bbox": [ 110, 690, 487, 873 ], "page_idx": 6 }, { "type": "text", "text": "To evaluate the summary, each sentence is broken down into individual sentences and given to an", "bbox": [ 112, 887, 489, 917 ], "page_idx": 6 }, { "type": "table", "img_path": "images/75ff7b541a4d7d4358d63b96f6403582c71bf475d56ff406f893c8ff8c6b9911.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td>Method</td><td>Turn</td><td>P</td><td>R</td><td>F1</td></tr><tr><td rowspan=\"2\">GMmarkdown</td><td>last</td><td>83.1</td><td>74.8</td><td>78.3</td></tr><tr><td>Avg.</td><td>80.8</td><td>80.8</td><td>80.4</td></tr><tr><td rowspan=\"2\">GMjson</td><td>last</td><td>84.6</td><td>74.3</td><td>78.6</td></tr><tr><td>Avg.</td><td>84.7</td><td>78.7</td><td>80.9</td></tr><tr><td rowspan=\"2\">CoKjson</td><td>last</td><td>84.6</td><td>83.6</td><td>83.9</td></tr><tr><td>Avg.</td><td>83.7</td><td>83.9</td><td>83.5</td></tr></table>", "bbox": [ 574, 80, 820, 179 ], "page_idx": 6 }, { "type": "text", "text": "Table 3: Performance on SUMIE with Gemini-Pro on Generate-Merge (GM) and Chain-of-Key (CoK) update with markdown and json formats.", "bbox": [ 507, 187, 882, 231 ], "page_idx": 6 }, { "type": "text", "text": "LLM evaluator along with the original summary. The evaluation prompt includes multiple examples for each error dimension, and the LLM is asked to determine whether any errors are present in the current sentence and summary. If any errors are found, the sentence is marked as a \"confusing sentence\". The final score is calculated by dividing the total number of confusing sentences identified by the LLM by the total number of sentences in the summary.", "bbox": [ 507, 260, 884, 420 ], "page_idx": 6 }, { "type": "text", "text": "Since their evaluation requires an advanced ability of understanding book context to identify 8 predefined error types, we use Gemini-Ultra as an LLM evaluator and the temperature was set to 0.8. To calculate the token size to create a list of smaller book chunks, we use tiktoken library<sup>4</sup>. We used TPU v5e for evaluating the entity summarization and book summarization tasks, with each evaluation taking up to 24 hours. In particular, Gemini-Pro used 8 pods and Gemini-Ultra used 64 pods. All experimental results are based on a single run using the prompts provided in each section.", "bbox": [ 507, 423, 884, 617 ], "page_idx": 6 }, { "type": "text", "text": "E Markdown vs. JSON", "text_level": 1, "bbox": [ 509, 634, 729, 649 ], "page_idx": 6 }, { "type": "text", "text": "In our evaluation, presented in Table 3, we compared the effectiveness of JSON and Markdown in data structuring for summarization tasks. While both formats demonstrated comparable abilities in organizing straightforward data with the Gemini Pro model, JSON distinguished itself in handling more complex scenarios. Its capability to support nested dictionary structures enhances expressibility and summarization precision, particularly in lengthy or hierarchically complex documents. This makes JSON especially valuable for summarizing detailed datasets like family trees, where its hierarchical structuring capabilities far outperform the linear layout of Markdown.", "bbox": [ 507, 664, 882, 888 ], "page_idx": 6 }, { "type": "page_footnote", "text": "4 https://github.com/openai/tiktoken", "bbox": [ 529, 904, 749, 917 ], "page_idx": 6 }, { "type": "page_number", "text": "3836", "bbox": [ 480, 927, 519, 940 ], "page_idx": 6 }, { "type": "text", "text": "F Compressing the information", "text_level": 1, "bbox": [ 112, 84, 403, 99 ], "page_idx": 7 }, { "type": "text", "text": "To manage the token size for existing information, we compress the content using 3 criteria with an LLM when the token size exceeds $K$ tokens: 1) Redundancy, 2) Frequency, and 3) Relevance. For redundancy, we remove repetitive information to maintain conciseness. For frequency, the model prioritizes the most frequently mentioned values, as they are likely the most important. For relevance, the model emphasizes information most pertinent to the subject. Figure 13 presents the prompt used for compressing the information.", "bbox": [ 112, 110, 489, 287 ], "page_idx": 7 }, { "type": "text", "text": "G Prompt for Chain-of-Key update", "text_level": 1, "bbox": [ 112, 299, 436, 316 ], "page_idx": 7 }, { "type": "text", "text": "Figure 5 is the prompt used for Chain-of-Key update process. In the case of the book summarization task, we simply replace the instructions and a example given in the prompt:", "bbox": [ 112, 325, 489, 390 ], "page_idx": 7 }, { "type": "code", "sub_type": "code", "code_caption": [], "code_body": "1. Values have a short and concise information: the values of $\\leftrightarrow$ the [PARTIAL_SUMMARY] should have a short, concise, and summarized information. \n2. No redundant keys: If information from [NEW_SUMMARY] can be incorporated by updating an existing key in \n $\\leftrightarrow$ [PARTIAL_SUMMARY], then do not introduce a new redundant key. For example, if there's already a field for 'activities' do not introduce a new key for 'other \n $\\leftrightarrow$ activities' or 'water activities', 'hiking'. Update the existing key for 'activities'. \n3. No redundant values under the same key: If one value encompasses most of the details in another value, merge them together. For instance, \"beautiful views of the Eiffel tower\" and \"view of the Eiffel tower\" should be merged into a single value like \"beautiful views of the Eiffel tower\". \n4. Do not include trivial information or redundant information as a value for its corresponding key. \n5. Content Focus: Values should highlight the most important information relevant to the main story. \n6. Exclude Ancillary Content: Disregard sections that are not directly part of the main narrative, such as: Title, Acknowledgments, Dedication, Chapter titles, Glossary entries, Timelines, Forewords, Prologues, Epilogues, Appendices, Author notes.", "guess_lang": "txt", "bbox": [ 112, 398, 482, 627 ], "page_idx": 7 }, { "type": "text", "text": "H Prompts used for SUMIE baselines", "text_level": 1, "bbox": [ 112, 661, 455, 678 ], "page_idx": 7 }, { "type": "text", "text": "We used Figure 6 for Generate-Once, Figure 6 and 7 for Generate-Update, and Figure 6 and 8 are used for Generate-Merge, which includes removing duplicates. For text baselines, we simply replace the JSON examples in the prompts to text summary examples.", "bbox": [ 112, 687, 487, 784 ], "page_idx": 7 }, { "type": "text", "text": "I Prompts used for BookScore baselines", "text_level": 1, "bbox": [ 112, 796, 475, 813 ], "page_idx": 7 }, { "type": "text", "text": "For the BookScore dataset, we used the prompt in Figure 9 along with special instructions from Figure 10 for JSON format generation and Figure 11 for plain text summary generation during the initial Generate-Update phase and the Generate-Merge phase. In subsequent Generate-Update iterations,", "bbox": [ 112, 822, 489, 917 ], "page_idx": 7 }, { "type": "text", "text": "we used the prompt in Figure 12. To remove duplicates during the Generate-Merge step, we used the prompt in Figure 8.", "bbox": [ 507, 84, 884, 133 ], "page_idx": 7 }, { "type": "page_number", "text": "3837", "bbox": [ 480, 927, 519, 940 ], "page_idx": 7 }, { "type": "text", "text": "I will provide a JSON format summary in a section called [NEW_SUMMARY], and a class definition [CLASS], which define some fields $\\leftrightarrow$ that need to be generated, and an instantiation of that class under [PARTIAL_SUMMARY] that is a response to the question in $\\leftrightarrow$ [QUESTION]. Your task is to propose updates to [PARTIAL_SUMMARY] gathered from the information in [NEW_SUMMARY].", "bbox": [ 110, 80, 870, 112 ], "page_idx": 8 }, { "type": "text", "text": "There are two types of revisions that you can suggest: ADD and UPDATE.", "bbox": [ 112, 118, 527, 130 ], "page_idx": 8 }, { "type": "text", "text": "For UPDATE, follow these instructions:", "bbox": [ 112, 139, 339, 148 ], "page_idx": 8 }, { "type": "list", "sub_type": "text", "list_items": [ "1. Your proposed updates must be for valid JSONPaths that already exist in [PARTIAL_SUMMARY]. If the JSONPath does not exist, you $\\leftrightarrow$ should not propose an update for that JSONPath.", "2. Updates can be made by modifying an existing value using content from [NEW_SUMMARY].", "3. Updates should never reduce the amount of information in [PARTIAL_SUMMARY].", "4. Never remove existing information from the [PARTIAL_SUMMARY].", "4. Proposed update must be a `dict[str, ProposedUpdate]` where the key is a valid JSONPath in [CLASS] and `ProposedUpdate` is defined as follows:", "class ProposedUpdate(TypedDict):" ], "bbox": [ 114, 148, 875, 233 ], "page_idx": 8 }, { "type": "text", "text": "update: Any # The type must be the same type as at the JsonPath in [CLASS].", "bbox": [ 112, 234, 574, 244 ], "page_idx": 8 }, { "type": "text", "text": "For ADD, follow these instructions:", "bbox": [ 112, 262, 322, 269 ], "page_idx": 8 }, { "type": "list", "sub_type": "text", "list_items": [ "1. Proposed additions must be for valid JSONPaths that adhere to the definition in [CLASS]. They are allowed to increase the size $\\hookrightarrow$ of lists in the definition, but they must not define new fields which are not defined in the class definition.", "2. It is OK to add partial objects. Leave fields unset if [NEW_SUMMARY] does not contain a value for one of the fields in $\\hookrightarrow$ [PARTIAL_SUMMARY].", "3. Proposed additions must be a `dict[str, ProposedAdd]` where the key is a valid JSONPath in [CLASS] and `ProposedAdd` is defined $\\leftrightarrow$ as follows:" ], "bbox": [ 112, 271, 880, 334 ], "page_idx": 8 }, { "type": "text", "text": "class ProposedAdd(TypedDict):", "bbox": [ 112, 338, 287, 347 ], "page_idx": 8 }, { "type": "text", "text": "add: Any # The type must be the same type as at the JsonPath in [CLASS].", "bbox": [ 112, 347, 556, 357 ], "page_idx": 8 }, { "type": "text", "text": "For both operations, follow these instructions:", "bbox": [ 112, 375, 393, 385 ], "page_idx": 8 }, { "type": "list", "sub_type": "text", "list_items": [ "1. Values have sufficient context: the values of the [PARTIAL_SUMMARY] should have enough context so a reader can understand what $\\leftrightarrow$ it means.", "2. No redundant keys: If information from [NEW_SUMMARY] can be incorporated by updating an existing key in [PARTIAL_SUMMARY], then $\\leftrightarrow$ do not introduce a new redundant key.", "3. No redundant values under the same key: If one value encompasses most of the details in another value, merge them together." ], "bbox": [ 112, 385, 880, 432 ], "page_idx": 8 }, { "type": "text", "text": "[QUESTION]", "bbox": [ 112, 451, 176, 460 ], "page_idx": 8 }, { "type": "text", "text": "Merge the new summary and existing summary of HOTELO.", "bbox": [ 112, 461, 426, 470 ], "page_idx": 8 }, { "type": "text", "text": "[NEW_SUMMARY]", "bbox": [ 112, 479, 194, 489 ], "page_idx": 8 }, { "type": "code", "sub_type": "code", "code_caption": [], "code_body": "{\n \"attributes\": {\n \"Room Amenities\": [\"pub opens till midnight\", \"two large pools\"], \"Noise Level\": [\"Notable street noise at night\"]\n }\n}", "guess_lang": "json", "bbox": [ 112, 489, 522, 546 ], "page_idx": 8 }, { "type": "text", "text": "[CLASS]", "bbox": [ 112, 564, 159, 574 ], "page_idx": 8 }, { "type": "text", "text": "class Summary(TypedDict):\n attributes: dict[str, list[str]] # Keyed by attribute, with a list of sufficient details about the attribute.", "bbox": [ 112, 574, 773, 594 ], "page_idx": 8 }, { "type": "text", "text": "[PARTIAL_SUMMARY]", "bbox": [ 112, 602, 218, 612 ], "page_idx": 8 }, { "type": "code", "sub_type": "code", "code_caption": [], "code_body": "{ \"attributes\": { \"Amenities\": [\"two pools\"], \"Food & Beverage\": [\"limited breakfast options)], } \n}", "guess_lang": "json", "bbox": [ 112, 612, 428, 670 ], "page_idx": 8 }, { "type": "text", "text": "[THOUGHTS FOR UPDATE]", "bbox": [ 112, 678, 240, 687 ], "page_idx": 8 }, { "type": "list", "sub_type": "text", "list_items": [ "1. I need to figure out which fields and values to update.", "2. [PARTIAL_SUMMARY] contains information about the following: [\"Amenities\", \"Food & Beverage\"]", "3. [NEW_SUMMARY] contains new content relevant to the following existing content: [\"Amenities\"]", " 4. The content should be updated at the following JSONPaths: [\"$. 'attributes'. 'Amenities'\"]" ], "bbox": [ 114, 688, 673, 726 ], "page_idx": 8 }, { "type": "text", "text": "[UPDATED_OBJECTS]", "bbox": [ 112, 734, 218, 744 ], "page_idx": 8 }, { "type": "code", "sub_type": "code", "code_caption": [], "code_body": "{ \"$.'attributes'.'Amenities':' {\"update\": [ \"pub opens till midnight\" ]} }", "guess_lang": "json", "bbox": [ 112, 744, 546, 774 ], "page_idx": 8 }, { "type": "text", "text": "[THOUGHTS FOR ADD]", "bbox": [ 112, 782, 223, 791 ], "page_idx": 8 }, { "type": "list", "sub_type": "text", "list_items": [ "1. I need to figure out which fields and values to add.", "2. [NEW_SUMMARY] mentions information about the following: [\"Amenities\", \"Noise Level\"]", "3. [PARTIAL_SUMMARY] does not yet have information about: [ \"Noise Level\"]", "3. The content should be added at the following JSONPaths: [ \"$.'attributes'.'Noise Level'']" ], "bbox": [ 114, 791, 657, 831 ], "page_idx": 8 }, { "type": "text", "text": "[ADDED_OBJECTS]", "bbox": [ 112, 839, 206, 848 ], "page_idx": 8 }, { "type": "code", "sub_type": "code", "code_caption": [], "code_body": "{ \"$.'attributes'.Noise Level'\": {\"add\": [\"Notable street noise at night\"],}", "guess_lang": "javascript", "bbox": [ 112, 848, 581, 878 ], "page_idx": 8 }, { "type": "text", "text": "Figure 5: Prompt used for chain-of-key update", "bbox": [ 337, 920, 655, 940 ], "page_idx": 8 }, { "type": "text", "text": "Task Overview:", "text_level": 1, "bbox": [ 114, 219, 200, 228 ], "page_idx": 9 }, { "type": "text", "text": "Your task involves synthesizing information from detailed descriptive paragraphs about a specific entity into a summary table. This Json will highlight key attributes of the entity along with their detailed descriptions derived from the given texts.", "bbox": [ 112, 228, 855, 248 ], "page_idx": 9 }, { "type": "text", "text": "Instructions:", "text_level": 1, "bbox": [ 114, 256, 193, 265 ], "page_idx": 9 }, { "type": "list", "sub_type": "text", "list_items": [ "* Extract Descriptive Values: Focus on extracting specific, detailed information rather than general or vague adjectives like $\\leftrightarrow$ \"good\" or \"bad.\" Ensure that descriptions are precise and informative.", "* Present a Balanced View: The table should reflect a balanced perspective, including positive, negative, and neutral attributes. $\\leftrightarrow$ For attributes with mixed reviews, indicate the sources supporting each viewpoint.", "\\* Attribute Selection:" ], "bbox": [ 112, 266, 870, 313 ], "page_idx": 9 }, { "type": "text", "text": "- Commonly Interested Attributes: Include attributes that are generally of interest for the type of entity being described.\n- Unique Attributes: Also identify and include unique attributes that are specifically mentioned in the provided descriptions.\n* Do not include irrelevant sentences about the given entity in the summary. Irrelevant sentences include entity names (HOTEL1, HUMAN) that are different from the given entity (HOTEL0).", "bbox": [ 114, 313, 863, 351 ], "page_idx": 9 }, { "type": "text", "text": "Structure of the Summary Table:", "text_level": 1, "bbox": [ 114, 360, 297, 370 ], "page_idx": 9 }, { "type": "list", "sub_type": "text", "list_items": [ "* The Json should contain a dictionary format data, where keys are attributes and values are detailed descriptions of their corresponding attributes.", "\\*List attributes with their corresponding values, indicating the source paragraph and relevant excerpts for substantiation. \\* If an attribute has multiple values, include all values as a list of the attribute.", "* Each value should contain sufficient evidence extracted from the paragraph related to the entity." ], "bbox": [ 112, 370, 843, 418 ], "page_idx": 9 }, { "type": "text", "text": "Example:", "text_level": 1, "bbox": [ 114, 426, 164, 435 ], "page_idx": 9 }, { "type": "text", "text": "Entity: HOTELO", "bbox": [ 114, 436, 200, 445 ], "page_idx": 9 }, { "type": "text", "text": "Paragraphs:", "text_level": 1, "bbox": [ 114, 455, 181, 464 ], "page_idx": 9 }, { "type": "list", "sub_type": "text", "list_items": [ "P1. Great room and service, but breakfast was lacking. We loved the spacious room and friendly staff, but the breakfast options $\\leftrightarrow$ were limited. There are two pools.", "P2. Poor customer service overshadowed the beautiful location. The beachfront view was amazing, but dealing with unhelpful staff $\\leftrightarrow$ was frustrating. Room is comfortable.", "P3. Exceptional dining and comfortable beds, but noisy at night. The restaurant was five-star, and the beds were very cozy, but $\\leftrightarrow$ there was a lot of street noise." ], "bbox": [ 112, 464, 868, 521 ], "page_idx": 9 }, { "type": "text", "text": "P4. HOTEL1 offers great room service and breakfast was amazing. (Irrelevant sentence for the given entity \"HOTEL0\")", "bbox": [ 112, 521, 793, 530 ], "page_idx": 9 }, { "type": "text", "text": "P5. HUMAN's creativity looks like a great room service offered by the hotel. (Irrelevant sentence for the given entity \"HOTEL0\")", "bbox": [ 112, 530, 868, 541 ], "page_idx": 9 }, { "type": "text", "text": "Summary JSON:", "text_level": 1, "bbox": [ 112, 558, 193, 568 ], "page_idx": 9 }, { "type": "code", "sub_type": "code", "code_caption": [], "code_body": "{ \"Room Quality\": [\"Spacious and comfortable rooms\"], \"Amenities\": [\"There are two pools\"], \"Service\": [\"Friendly staff\", \"overshadowed by unhelpful staff\"], \"Location\": [\"Beautiful beachfront view\"], \"Food & Beverage\": [\"Exceptional dining experience\", \"limited breakfast options\"], \"Noise Level\": [\"Notable street noise at night\"] \n}", "guess_lang": "txt", "bbox": [ 114, 569, 610, 646 ], "page_idx": 9 }, { "type": "text", "text": "Your Task:", "text_level": 1, "bbox": [ 114, 653, 176, 663 ], "page_idx": 9 }, { "type": "text", "text": "Generate a similar table based on the following descriptions of the specified entity. Entity: {entity_name}", "bbox": [ 112, 664, 613, 684 ], "page_idx": 9 }, { "type": "text", "text": "Paragraphs:", "text_level": 1, "bbox": [ 114, 692, 181, 701 ], "page_idx": 9 }, { "type": "text", "text": "{paragraph}", "bbox": [ 115, 702, 181, 711 ], "page_idx": 9 }, { "type": "text", "text": "Proceed to generate the summary Json.", "bbox": [ 114, 720, 332, 730 ], "page_idx": 9 }, { "type": "text", "text": "Figure 6: Prompt used for generating initial summary", "bbox": [ 315, 764, 678, 778 ], "page_idx": 9 }, { "type": "page_number", "text": "3839", "bbox": [ 480, 928, 519, 940 ], "page_idx": 9 }, { "type": "text", "text": "Task Overview:", "bbox": [ 114, 195, 200, 204 ], "page_idx": 10 }, { "type": "text", "text": "You are tasked with refining and expanding an existing summary table based on new descriptive paragraphs about an entity. This involves updating the table to include new information, modify existing details without removing any, and ensuring all entries $\\leftrightarrow$ are supported by evidence from the text.", "bbox": [ 112, 205, 880, 233 ], "page_idx": 10 }, { "type": "text", "text": "Instructions:", "bbox": [ 114, 243, 193, 250 ], "page_idx": 10 }, { "type": "text", "text": "\\* Update Descriptive Values: Carefully read the new paragraph(s) and identify any information that should be added to the current $\\hookrightarrow$ table entries or modify them. Focus on specific, descriptive details, avoiding vague adjectives. \\*\\*Do not remove any existing $\\hookrightarrow$ attributes or values\\*\\*, but rather add to or revise them as necessary. \n\\* Maintain a Balanced View: Ensure the updated table continues to present a balanced perspective, incorporating positive, negative $\\hookrightarrow$ and neutral values. For any attribute with mixed evidence, update the count of sources supporting each view. All original $\\hookrightarrow$ attributes and values must be preserved in the table, with modifications only to reflect new insights or corrections based on $\\hookrightarrow$ the latest information. \n\\* Attribute Revision and Addition: - Commonly Interested Attributes: Update or add attributes that are of general interest for the type of entity being described, $\\hookrightarrow$ based on the new information. - Unique Attributes: Identify and incorporate any unique attributes mentioned in the new paragraphs that were not previously $\\hookrightarrow$ included in the table.", "bbox": [ 112, 252, 875, 365 ], "page_idx": 10 }, { "type": "text", "text": "Structure of the Updated Summary Table:", "bbox": [ 112, 375, 344, 385 ], "page_idx": 10 }, { "type": "text", "text": "* Retain the two-column format: Attribute and Value.", "bbox": [ 114, 385, 421, 393 ], "page_idx": 10 }, { "type": "text", "text": "* For each attribute, list the updated or new evidence indicating the source paragraph and relevant excerpts. Original attributes", "bbox": [ 114, 394, 873, 403 ], "page_idx": 10 }, { "type": "text", "text": "$\\hookrightarrow$ and values should remain listed, with additional information appended as necessary.", "bbox": [ 114, 404, 626, 413 ], "page_idx": 10 }, { "type": "text", "text": "* If an attribute has multiple values, include all values as a list of the attribute.", "bbox": [ 114, 414, 613, 422 ], "page_idx": 10 }, { "type": "text", "text": "* Each value should contain sufficient evidence extracted from the paragraph related to the entity.", "bbox": [ 114, 423, 695, 432 ], "page_idx": 10 }, { "type": "text", "text": "Example", "bbox": [ 112, 441, 159, 449 ], "page_idx": 10 }, { "type": "text", "text": "Entity: Hotel0", "bbox": [ 114, 451, 200, 458 ], "page_idx": 10 }, { "type": "text", "text": "New Paragraph:", "bbox": [ 114, 461, 198, 469 ], "page_idx": 10 }, { "type": "text", "text": "P4. The hotel has recently renovated its lobby, which now features a modern design. Guests have also noted improvements in", "bbox": [ 114, 470, 840, 479 ], "page_idx": 10 }, { "type": "text", "text": "$\\hookrightarrow$ breakfast variety and quality", "bbox": [ 114, 480, 312, 489 ], "page_idx": 10 }, { "type": "text", "text": "P5. The hotel boasts impeccably designed rooms, featuring luxurious furnishings.", "bbox": [ 114, 489, 584, 498 ], "page_idx": 10 }, { "type": "code", "sub_type": "code", "code_caption": [], "code_body": "Given Existing Summary Table: { \"Room Quality\": [\"Spacious and comfortable rooms\"], \"Amenities\": [\"two pools\"], \"Service\": [\"Friendly staff\", \"overshadowed by unhelpful staff\"], } \nUpdated Summary Json: { \"Room Quality\": [\"Spacious and comfortable rooms\", \"Impeccably designed\", \"luxurious furnishings\"], \"Amenities\": [\"Two pools\"], \"Service\": [\"Friendly staff\", \"overshadowed by unhelpful staff\"], \"Food & Beverage\": [\"Exceptional dining experience\", \"limited breakfast options\", \"improved breakfast variety and quality\"], \"Lobby Design\": [\"Modern design\"], } \nYour Task: Update the summary Json with the given new descriptions of the specified entity. Entity: {entity_name} New Paragraph: {paragraph} \nGiven Existing Summary Json: {existing_summary} \nProceed to update the summary Json.", "guess_lang": "txt", "bbox": [ 112, 507, 855, 753 ], "page_idx": 10 }, { "type": "text", "text": "Figure 7: Prompt used for updating a summary with new information and existing summary information.", "bbox": [ 142, 787, 850, 801 ], "page_idx": 10 }, { "type": "page_number", "text": "3840", "bbox": [ 480, 928, 519, 940 ], "page_idx": 10 }, { "type": "text", "text": "Task Overview:", "text_level": 1, "bbox": [ 112, 93, 200, 103 ], "page_idx": 11 }, { "type": "text", "text": "Your task involves removing duplicate information from a detailed summary json about a specific entity. This summary will highlight $\\leftrightarrow$ key attributes of the entity along with their detailed descriptions derived from the given texts.", "bbox": [ 112, 103, 880, 123 ], "page_idx": 11 }, { "type": "text", "text": "Instructions:", "text_level": 1, "bbox": [ 115, 131, 193, 141 ], "page_idx": 11 }, { "type": "list", "sub_type": "text", "list_items": [ "1. Eliminate repetitive information to ensure the summary is concise.", "2. In the given summary json, the keys are attributes of the entity and each attribute has its corresponding values.", "3. If one attribute encompasses most of the details in another attribute, merge them together.", "4. If one value encompasses most of the details in another value, merge them together." ], "bbox": [ 114, 141, 798, 189 ], "page_idx": 11 }, { "type": "text", "text": "Here is an example of merging attributes:", "bbox": [ 115, 197, 357, 208 ], "page_idx": 11 }, { "type": "code", "sub_type": "code", "code_caption": [], "code_body": "Given Existing Summary: \n{ \"Views\": [\"beautiful views of the Eiffel tower\"], \"views from hotel\": [\"visible Eiffel tower\"],} \nNew Summary after removing duplicates and merging: \n{ \"View\": [\"beautiful views of the Eiffel tower\"]} \n $= = =$", "guess_lang": "txt", "bbox": [ 112, 216, 430, 329 ], "page_idx": 11 }, { "type": "text", "text": "Here is an example of merging values:", "bbox": [ 115, 338, 334, 350 ], "page_idx": 11 }, { "type": "code", "sub_type": "code", "code_caption": [], "code_body": "Given Existing Summary: \n{ \"Views\": [\"beautiful views of the Eiffel tower\", \"view of the Eiffel tower\"], \"views from hotel\": [\"visible Eiffel tower\"],} \nNew Summary after removing duplicates and merging: \n{ \"View\": [\"beautiful views of the Eiffel tower\"] } \n $= = =$", "guess_lang": "python", "bbox": [ 112, 357, 593, 470 ], "page_idx": 11 }, { "type": "text", "text": "Figure 8: Prompt used for removing duplicates.", "bbox": [ 336, 506, 658, 520 ], "page_idx": 11 }, { "type": "text", "text": "Task Overview:", "text_level": 1, "bbox": [ 112, 552, 200, 561 ], "page_idx": 11 }, { "type": "text", "text": "We are analyzing segments of a story sequentially to progressively build a comprehensive summary of the entire plot. Your task is $\\leftrightarrow$ to generate a new summary by integrating vital information from the current story segment with the existing summary stored in $\\leftrightarrow$ memory. The summary can be provided in either text format or JSON format.", "bbox": [ 112, 561, 875, 590 ], "page_idx": 11 }, { "type": "text", "text": "Instructions:", "text_level": 1, "bbox": [ 115, 599, 193, 608 ], "page_idx": 11 }, { "type": "list", "sub_type": "text", "list_items": [ "1. Integrate Key Information: Incorporate new information related to key events, backgrounds, settings, characters, their $\\leftrightarrow$ objectives, and motivations from the current segment into the existing summary.", "2. Introduction of New Elements: Briefly introduce any new characters, places, or major elements mentioned for the first time in $\\hookrightarrow$ the current segment if they are not already included in the memory.", "3. Handling Non-Linear Narratives: Account for non-linear narratives, including flashbacks, and switches between alternate worlds $\\hookrightarrow$ or viewpoints, ensuring the summary maintains a consistent and chronological narrative.", "4. Cohesive Summary: Create a summary that reads as though it was written in one go, despite the step-by-step process of updating $\\leftrightarrow$ it with each new segment.", "5. Exclude Ancillary Content: Disregard sections that are not directly part of the main narrative, such as: Title, Acknowledgments, $\\hookrightarrow$ Dedication, Chapter titles, Glossary entries, Timelines, Forewords, Prologues, Epilogues, Appendices, Author notes." ], "bbox": [ 114, 609, 880, 703 ], "page_idx": 11 }, { "type": "text", "text": "{special Instruction}", "bbox": [ 115, 713, 240, 722 ], "page_idx": 11 }, { "type": "text", "text": "Your Task:", "text_level": 1, "bbox": [ 115, 732, 176, 740 ], "page_idx": 11 }, { "type": "text", "text": "Generate a summary based on the following segment from a story and the memory of the story up until this point. Ensure the output $\\leftrightarrow$ follows the specified format.", "bbox": [ 112, 741, 875, 760 ], "page_idx": 11 }, { "type": "text", "text": "A segment from a story:", "bbox": [ 115, 770, 252, 780 ], "page_idx": 11 }, { "type": "text", "text": "- - -", "bbox": [ 115, 790, 136, 797 ], "page_idx": 11 }, { "type": "text", "text": "{book_chunk}", "bbox": [ 115, 807, 189, 816 ], "page_idx": 11 }, { "type": "text", "text": "---", "bbox": [ 115, 828, 136, 834 ], "page_idx": 11 }, { "type": "text", "text": "Generated summary in {output_format}:", "bbox": [ 115, 845, 334, 856 ], "page_idx": 11 }, { "type": "text", "text": "Figure 9: Prompt used for generating book summaries.", "bbox": [ 310, 889, 684, 903 ], "page_idx": 11 }, { "type": "page_number", "text": "3841", "bbox": [ 480, 928, 517, 940 ], "page_idx": 11 }, { "type": "code", "sub_type": "code", "code_caption": [], "code_body": "Structure of the JSON Summary: \n- Fields to Generate: Characters, Events, Backgrounds, \n $\\hookrightarrow$ Motivations, Objectives, Other. \n- Field Format: Each field should be a dictionary where keys \n $\\hookrightarrow$ are the names of elements and values are their short \n $\\hookrightarrow$ descriptions. \n- Each key should include a short and concise information as \n $\\hookrightarrow$ values that explain the key. \n- Content Focus: Values should highlight the most important \n $\\hookrightarrow$ information relevant to the main story. \n- Do not include trivial information or redundant information \n $\\hookrightarrow$ as a value for its corresponding key. \nHere is an example of the JSON Summary: \n{ \n \"characters\": { \n \"a character's name\": [a list of short and summarized \n $\\hookrightarrow$ descriptions] \n }, \n \"events\": { \n \"an event's name\": [a list of short and summarized \n $\\hookrightarrow$ descriptions] \n }, \n \"objectives\": { \n \"an objective's name\": [a list of short and summarized \n $\\hookrightarrow$ descriptions] \n }, \n \"motivations\": { \n \"a motivation's name\": [a list of short and summarized \n $\\hookrightarrow$ descriptions] \n }, \n \"background\": { \n \"a background's name\": [a list of short and summarized \n $\\hookrightarrow$ descriptions] \n }, \n \"other\": { \n \"other information's name\": [a list of short and summarize \n $\\hookrightarrow$ descriptions] \n}", "guess_lang": "txt", "bbox": [ 112, 137, 477, 519 ], "page_idx": 12 }, { "type": "text", "text": "Figure 10: Instructions used for generating JSON format summary.", "bbox": [ 112, 550, 485, 579 ], "page_idx": 12 }, { "type": "code", "sub_type": "code", "code_caption": [], "code_body": "Structure of the Text Summary: \n- Key Elements to Include: Incorporate key events, characters, \n $\\hookrightarrow$ backgrounds, motivations, objectives, and other relevant \n $\\hookrightarrow$ details. \n- Narrative Flow: Ensure the summary flows seamlessly as a \n $\\hookrightarrow$ cohesive and comprehensive narrative.", "guess_lang": "txt", "bbox": [ 112, 701, 484, 759 ], "page_idx": 12 }, { "type": "code", "sub_type": "code", "code_caption": [], "code_body": "Here is an example of the Text Summary format: A summary that reads as though it was written in one go. It can $\\hookrightarrow$ consist of multiple paragraphs.", "guess_lang": "txt", "bbox": [ 112, 766, 485, 796 ], "page_idx": 12 }, { "type": "text", "text": "Figure 11: Instructions used for generating text format summary.", "bbox": [ 112, 829, 485, 858 ], "page_idx": 12 }, { "type": "code", "sub_type": "code", "code_caption": [], "code_body": "Your Task: \nGenerate a summary based on the following segment from a story $\\leftrightarrow$ and the memory of the story up until this point. Ensure the $\\leftrightarrow$ output follows the specified format.. \nA segment from a story: \n--- \n{book_chunk} \n--- \nA memory of the story up until this point: \n--- \n{memory} \n--- \nOutput Type: {output_format} \nUpdated summary in {output_format}:", "guess_lang": "txt", "bbox": [ 507, 140, 880, 370 ], "page_idx": 12 }, { "type": "text", "text": "Figure 12: Prompt used for updating a summary with a new information and existing summary.", "bbox": [ 507, 401, 880, 430 ], "page_idx": 12 }, { "type": "code", "sub_type": "code", "code_caption": [], "code_body": "Task Overview: \nYour task involves compressing information from a detailed $\\leftrightarrow$ summary JSON about a book. This summary will highlight key details of the book that are important when summarizing the whole story of the book. \nInstructions: \n- Compress the summary to the specified number of tokens below. \n- The condensed summary should retain key details about characters, events, backgrounds, motivations, objectives, and other important information. \n- If the key has multiple values, merge them into a short summarized description.", "guess_lang": "txt", "bbox": [ 507, 557, 880, 682 ], "page_idx": 12 }, { "type": "code", "sub_type": "code", "code_caption": [], "code_body": "Criteria: \n- Redundancy: Eliminate repetitive information to ensure the $\\leftrightarrow$ summary is concise. \n- Frequency: Emphasize the most frequently mentioned attributes $\\leftrightarrow$ or values, as they are likely the most important. \n- Relevance: Focus on the information that is most pertinent to $\\leftrightarrow$ the main story of the book or the overall context of the $\\leftrightarrow$ summary. \n- Remove trivial information that does not frequently appear in $\\leftrightarrow$ the other contexts or not relevant to the main story of the $\\leftrightarrow$ book based on the overall context of the summary.", "guess_lang": "txt", "bbox": [ 507, 689, 880, 794 ], "page_idx": 12 }, { "type": "text", "text": "Figure 13: Prompt used to compress the information to fit the existing summary into the limited token size.", "bbox": [ 507, 827, 880, 854 ], "page_idx": 12 }, { "type": "page_number", "text": "3842", "bbox": [ 480, 927, 519, 940 ], "page_idx": 12 }]123version https://git-lfs.github.com/spec/v1oid sha256:869e109bfa63dcb23a21bde5e347289ad1b726f741d7f48566c1e89583bcbfe2size 604840123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570# Enhancing Incremental Summarization with Structured Representations
Eunjoeong Hwang† University of British Columbia ejhwang@cs.ubc.ca
# Yichao Zhou, James Bradley Wendt, Beliz Gunel, Nguyen Vo, Jing Xie, Sandeep Tata Google Deepmind
{yichaojoey, jwendt, bgunel, nguyenvo, lucyxie, tata}@google.com
# Abstract
Large language models (LLMs) often struggle with processing extensive input contexts, which can lead to redundant, inaccurate, or incoherent summaries. Recent methods have used unstructured memory to incrementally process these contexts, but they still suffer from information overload due to the volume of unstructured data handled. In our study, we introduce structured knowledge representations $\mathrm{(GU_{\mathrm{json}})}$ ,which significantly improve summarization performance by $40\%$ and $14\%$ across two public datasets. Most notably, we propose the Chain-of-Key strategy $(\mathrm{CoK_{\mathrm{json}}})$ that dynamically updates or augments these representations with new information, rather than recreating the structured memory for each new source. This method further enhances performance by $7 \%$ and $4 \%$ on the datasets.
# 1 Introduction
Individuals commonly use large language models (LLMs) to summarize content from sources like webpages, books, and articles (Jin et al., 2024; Kryscinski et al., 2022; Agarwal et al., 2011; Gunel et al., 2024). This aids in efficiently processing large volumes of information, influencing daily decision-making tasks. Despite their potential, LLMs often struggle with processing extensive contexts, leading to redundancy or inaccuracies (Hwang et al., 2024). Recent research integrates unstructured memory systems (Madaan et al., 2022; Zhang et al., 2024) and fine-tunes models for larger context windows (Xiong et al., 2024). However, unstructured memory formats often result in oversized memories that overload the model, impairing its processing and summarization abilities. Zhang et al. (2024) proposes a self-controlled memory architecture to manage information via heuristics, yet unstructured memory complicates
 Figure 1: Example summaries generated based on a text memory representation and a structured memory representation, respectively, given the N paragraphs in the original texts. Red color marks the values that are not included in plain text summary.
retrieval, and Li et al. (2024) finds that larger context windows still struggle to process documents comprehensively.
To address summarization tasks over extensive input contexts, we introduce CoK, the Chain-of-Key update based on JSON structured memory representations. On one hand, this approach leverages two key aspects: (1) JSON's capability to organize information into distinct, easily accessible segments, facilitating efficient updates and retrievals—offering superior expansion and nesting capabilities compared to markdown tables or graphs (Dagdelen et al., 2024); (2) The prevalence of JSON in LLM pretraining data enhances LLMs' ability to understand and generate structured JSON content (Ouyang et al., 2022; Xia et al., 2024) $^{1}$ . Consequently, as shown in Figure 1, JSON-based representations produce more well-structured summaries than plain text, avoiding vocabulary and retaining critical content across all sections.
On the other hand, instead of requiring LLMs to
 Figure 2: Overall incremental summarization process with a structured memory representation based on user-defined schema. The questions under "LLM thoughts" are for Chain-of-Key Updating process.
recreate complete structured representations for all previously encountered knowledge upon encountering a new information source, our method dynamically identifies which new information needs to be added or updated within the existing structures. This reduces the cognitive load on LLMs, enabling them to maintain and process complex information more effectively and produce more accurate and comprehensive summaries, as illustrated in Figure 1, where summaries using the CoK strategy effectively retain essential knowledge, unlike unstructured summaries that often miss key details (highlighted in red).
# Contributions:
- We demonstrate that structured knowledge representations significantly enhances LLMs' summarization capabilities, improving performance by $40\%$ and $14\%$ on two public summarization benchmarks. - We introduce CoK, the Chain-of-Key update strategy, which dynamically updates or augments structured representations with new information, boosting performance further by $7\%$ and $4\%$ on the benchmarks, without needing to recreate the JSON structure for each new source. - We offer an analysis demonstrating that structured representations enable models to retain more relevant contexts and historical information than plain-text memory, particularly when token availability for storing information is limited.
# 2 Methodology
Overview. The goal of the summarization task is to generate a summary $S_{t}$ from a sequence of documents $D = D_{0},D_{1},\ldots ,D_{t}$ that encapsulates the essential contents of all documents up to time $t$ . We primarily approach the task within an incremental framework: Incremental Summarization. This process involves continuously refining the summary by integrating new information from each subsequent document. Each document $D_{i}$ may contain new, relevant information that contributes to an ongoing topic. The task requires producing a summary $S_{t}$ at each time step $t$ , encompassing all critical information accumulated, thereby reflecting the key insights from the document sequence. Our methodology utilizes a structured representation to efficiently manage and update the summary dynamically with each new document.
Initial Structured Summary Generation. As depicted in Figure 2, we initiate the process by establishing a schema tailored to the task. This schema is then provided to the LLM along with any newly available information and, if applicable, any pre-existing data in memory. The LLM is tasked with generating outputs that align with the key elements specified in the schema.
Chain-of-Key: Structured Summary Updates. We propose the Chain-of-Key (CoK) updating method to merge existing memory data with new input in a structured summary. First, the LLM creates a structured summary from a new document. This new summary, together with any existing structured memories, is then processed by the model. The method uses two main operations, Update and Add, to effectively combine the summaries.
The Update operation modifies existing summary to incorporate new data. It progresses through three steps: (1) identifying keys in the existing summary, such as ["Amenities", "Food & Beverage"], (2) matching these keys with relevant ones in the existing memory, like "Amenities", and (3) generating a JSON path to integrate the new key information, such as $ attributes. Amenities. This path is then used to programmatically update the summary.
The Add operation focuses on incorporating new keys from the new information that are absent in the existing summary. It also follows three steps: (1) identifying new keys in the summary, such as [“Noise Level”], (2) detecting which of these are
not in the existing summary, like "Noise Level", and (3) generating a JSON path for adding the new key, such as \(.attributes.NoiseLevel.Using the generated path, new values are programmatically added to the summary.
Breaking down the updating process into sub tasks employs the LLM's reasoning capabilities to tackle complex and multifaceted reasoning problems in the incremental summarization task. See Appendix B and G for the schemas and prompts.
Final Summary Generation. Once the iterative summary update process at each step is completed, the LLM receives the aggregated memory from $D_0, D_1, \ldots, D_t$ and generates the final summary $S_t$ . This summary can be presented in various formats, such as JSON or plain text.
# 3 Experimental Setup
Dataset. We evaluate our methods using two datasets: SUMIE (Hwang et al., 2024) and BoookScore (Chang et al., 2024). The SUMIE dataset is designed to assess the incremental entity summarization capabilities of LLMs. The BoookScore dataset is aimed at long document summarization and includes 100 recently published books, with some books exceeding 100k tokens. Due to our models' 6K token context window size, each book is segmented into 2K-token chunks. For additional dataset details, see Appendix C.
Baseline. We compare our method against three setups: Generate-Once (GO), Generate-Update (GU), and Generate-Merge (GM), using two data formats—JSON and plain text—with two state-of-the-art LLMs: Gemini-Ultra and Gemini-Pro $^2$ . In GO, the LLM generates a comprehensive summary from all related paragraphs in a single step. In GU, the LLM incrementally generates updated summaries by integrating each new paragraph. In GM, the LLM merges summaries from each new paragraph incrementally, utilizing JSON for its key-matching capability to facilitate merging. Programmatic merging in JSON may retain redundant key-values, which are removed by directing the LLM to filter out such redundancies. Details on the prompts for these methods are in Appendix H and I.
Evaluation Metrics. For SUMIE, we employ its LLM-assisted evaluation method to measure precision, recall, and F1 scores of the final summary. For
<table><tr><td></td><td>Turn</td><td>P</td><td>Ultra R</td><td>F1</td><td>P</td><td>Pro R</td><td>F1</td></tr><tr><td>GO_text</td><td>last</td><td>86.2</td><td>42.7</td><td>56.4</td><td>85.8</td><td>40.4</td><td>54.1</td></tr><tr><td>GOJSON</td><td>last</td><td>91.2</td><td>58.9</td><td>70.9</td><td>85.1</td><td>61.0</td><td>70.1</td></tr><tr><td rowspan="3">GU_text</td><td>start</td><td>77.3</td><td>70.0</td><td>72.6</td><td>74.7</td><td>66.9</td><td>69.7</td></tr><tr><td>last</td><td>76.6</td><td>45.2</td><td>55.8</td><td>73.3</td><td>26.8</td><td>38.4</td></tr><tr><td>Avg.</td><td>76.1</td><td>54.3</td><td>62.2</td><td>73.0</td><td>41.8</td><td>51.2</td></tr><tr><td rowspan="3">GUJSON</td><td>start</td><td>88.6</td><td>81.6</td><td>84.3</td><td>85.1</td><td>80.7</td><td>82.2</td></tr><tr><td>last</td><td>80.2</td><td>76.7</td><td>78.1</td><td>81.7</td><td>69.4</td><td>74.7</td></tr><tr><td>Avg.</td><td>80.9</td><td>78.9</td><td>79.4</td><td>83.4</td><td>74.0</td><td>77.9</td></tr><tr><td rowspan="3">GMJSON</td><td>start</td><td>88.6</td><td>82.9</td><td>85.0</td><td>84.2</td><td>82.6</td><td>82.6</td></tr><tr><td>last</td><td>86.8</td><td>63.2</td><td>72.7</td><td>84.6</td><td>74.3</td><td>78.6</td></tr><tr><td>Avg.</td><td>86.5</td><td>70.9</td><td>77.3</td><td>84.7</td><td>78.7</td><td>80.9</td></tr><tr><td rowspan="3">CoKJSON</td><td>start</td><td>89.1</td><td>77.8</td><td>82.8</td><td>81.1</td><td>80.5</td><td>79.9</td></tr><tr><td>last</td><td>92.6</td><td>78.0</td><td>84.5</td><td>84.6</td><td>83.6</td><td>83.9</td></tr><tr><td>Avg.</td><td>91.8</td><td>80.5</td><td>85.5</td><td>83.7</td><td>83.9</td><td>83.5</td></tr></table>
Table 1: Overall performance of Ultra and Pro models on the SUMIE dataset. "start" indicates performance at the first paragraph, and "last" represents performance at the last paragraph aggregating all attribute-value pairs. P, R, and F1 refer to the average precision, average recall, and macro F1 scores, respectively.
the BookScore dataset, we utilize its LLM-based metric to assess summary coherence, evaluating across eight predefined error dimensions: entity omission, event omission, causal omission, discontinuity, salience, language inconsistency, and duplication. See Appendix D for more setup details.
Limited Token Scenario. To evaluate how much information JSON and text formats retain in in-context memory, we established a scenario with a constrained in-context memory token limit of $K$ tokens. This constraint is crucial for handling long documents, like books, that exceed the model's context window. For the SUMIE dataset, $K$ is set to 200 and 300 tokens, while for the BoookScore dataset, it's set to 1000 tokens. See Appendix F for more details about compression criteria and the associated prompts.
# 4 Results
Text vs. JSON, Table 1, 2. Table 1 shows that the JSON format outperforms plain text in the incremental summarization tasks using the Ultra and Pro models, with notable differences in both the GO and GU methods. Specifically, GOJSON averages a $28\%$ F1 score improvement over its text equivalent, while $\mathrm{GU}_{\mathrm{json}}$ sees a $40\%$ improvement. This discrepancy primarily stems from the low recall with the text format, suggesting that plain text leads to information loss over iterations. The JSON format, however, supports better information retention. This is evident in later iterations and the book
<table><tr><td>Model</td><td>\(GU_{text}\)</td><td>\(GU_{json}\)</td><td>\(GM_{json}\)</td><td>\(CoK_{json}\)</td></tr><tr><td>Pro</td><td>53.1</td><td>58.5</td><td>61.5</td><td>62.2</td></tr><tr><td>Ultra</td><td>51.9</td><td>61.7</td><td>60.1</td><td>63.1</td></tr></table>
Table 2: BookScore performance on GU, GM, and CoK, where the token size for existing information was limited to 1000 tokens.
summulation task shown in Table 2. Here, $\mathrm{GU}_{\mathrm{j}\mathrm{so}}$ posts a $14\%$ gain, enhancing the model's ability to maintain key details about characters and events.
We conducted a human evaluation of the final summaries for 20 randomly sampled entities from the SUMIE dataset, assessing two criteria: Informativeness (Is the summary informative?) and Relevance (Does the summary contain all the key points related to the given entity?). We compared summaries generated by $\mathrm{GU}_{\mathrm{json}}$ and $\mathrm{GU}_{\mathrm{text}}$ , asking two human annotators to indicate their preference for each criterion. $\mathrm{GU}_{\mathrm{json}}$ summaries were preferred in $81\%$ of cases for both informativeness and relevance, with an $87\%$ agreement rate between annotators. These results align with the findings presented in the table.
Effectiveness of Chain-of-Key Update, Table 1, 2. Table 1 illustrates the effectiveness of the Chain-of-Key (CoK) method, which significantly outperforms all baseline models. Specifically, the CoK method, when applied with the Pro model, surpasses the best JSON baseline $\mathrm{(GM_{\mathrm{json}})}$ of the larger Ultra model on the SUMIE task by $10\%$ in F1 score. Additionally, CoK achieves a $7\%$ F1 improvement over the $\mathrm{GU}_{\mathrm{json}}$ and $\mathrm{GM}_{\mathrm{json}}$ methods, averaged over Pro and Utrla models.
The analysis also highlights a notable decrease in recall for the GM method after removing duplicates over turns. This is more pronounced in the Ultra model, which removes more attribute-value pairs than the Pro model, leading to lower recall. In contrast, the CoK approach enhances both precision and recall across turns in both models, improving the F1 score by $3\%$ in the final turn. This improvement suggests that CoK's step-by-step processing allows the model to more accurately select and update information, maintaining relevance as iterations progress.
Further validation comes from Table 2, where CoK shows $3\%$ and $4\%$ improvements in book scores over GM and GU. This indicates CoK's effectiveness in preserving detailed explanations of complex entities and events within books, crucial
for the narrative. Although current metrics do not measure recall in book scores, this highlights an area for future research.
Limited in-context token size for existing information, Figure 3, Appendix A. The CoK method uses significantly more tokens (an average of 604 tokens) for in-context memory compared to text baselines (an average of 269 tokens), raising the question of whether JSON can hold more information than text within the same token constraints. As shown in Figure 3 and detailed in Appendix A, both the average F1 scores and the number of tokens used as existing information are tracked across all turns when token size is limited. The $\mathrm{GU}_{\mathrm{j}\mathrm{son}}$ method substantially surpasses baseline methods even with restricted token counts, achieving a $30\%$ average F1 score improvement over textual counterparts. CoK shows an extra $8\%$ F1 score improvement, suggesting that JSON format maintains more precise and distinct information in summaries.
Error Case Study. We observe that structured memory methods often add excessive details to book summaries. Here are sentences from two different summaries generated by CoK:
1. ... The family received support from extended family members and healthcare professionals, including Katie, Angela, Rachel, and Mira. Lola, a therapy dog, brought joy during Henry's illness. ... 2. ...Eleanor Bennett's children, Benny, Byron, and Marble, are grappling with their complex family history and personal struggles....
The red text highlights unnecessary details, like minor character names, retained for broader coverage. This discrepancy underscores a gap in the LLM's approach to what constitutes a comprehensive summary versus an effective book summary. While structured representations help retain more details, this excess negatively affects two evaluation metrics of book score: entity omission (mentioning entities without descriptions) and salience (including trivial details irrelevant to the storyline). Managing the level of detail in structured summaries poses a significant challenge for future research.
# 5 Conclusion and Discussion
In this paper, we introduce the Chain-of-Key method, which uses structured memory representations and leverages LLM's step-by-step reasoning to dramatically improve performance on two summarization tasks, surpassing strong baselines. JSON demonstrates its superiority in organizing knowledge for incremental summarization<sup>3</sup>. Chal
 Figure 3: Average F1 score across all turns with limited memory token size on SUMIE.
lenges remain in filtering out trivial details and focusing on crucial information within structured summaries. Developing heuristics based on structured properties to better highlight key information is an area for future research.
# Limitations
Our approach capitalizes on the inherent capabilities of LLMs to generate structured JSON formats. However, while most recent LLMs manage this well, smaller models such as Llama3-8B, Mistral7B, and Gemini Nano often produce structured outputs with errors.
In terms of evaluation, we adhere to the methods outlined in SUMIE and BookScore, which rely on LLM-based metrics. These evaluations are both computationally intensive and time-consuming.
Additionally, although our method improves recall in final summaries, the book summarization task currently lacks a specific metric for measuring recall. We also did not evaluate the redundancy and accuracy of the information produced by the LLMs.
# Ethics Statement
The LLMs we used to evaluate are trained on a large-scale web corpus and may also bring some bias when generating sentences (or structured data) or when evaluating final summaries of entities or books. We evaluated our method on publicly available datasets.
# References
Nitin Agarwal, Ravi Shankar Reddy, Kiran G. V. R., and Carolyn Penstein Rose. 2011. Scisumm: A multi-document summarization system for scientific articles. In ACL (System Demonstrations), pages 115-120. The Association for Computer Linguistics.
Yapei Chang, Kyle Lo, Tanya Goyal, and Mohit Iyyer. 2024. Booookscore: A systematic exploration of book-length summarization in the era of LLMs. In The Twelfth International Conference on Learning Representations. John Dagdelen, Alexander Dunn, Sanghoon Lee, Nicholas Walker, Andrew S. Rosen, Gerbrand Ceder, Kristin A. Persson, and Anubhav Jain. 2024. Structured information extraction from scientific text with large language models. Nature Communications, 15(1):1418. Belize Gunel, James B. Wendt, Jing Xie, Yichao Zhou, Nguyen Vo, Zachary Fisher, and Sandeep Tata. 2024. Strum-llm: Attributed and structured contrastive summarization. arXiv preprint, abs/2403.19710. Eunjeong Hwang, Yichao Zhou, Beliz Gunel, James Bradley Wendt, and Sandeep Tata. 2024. Sumie: A synthetic benchmark for incremental entity summarization. arXiv preprint, abs/2406.05079. Hanlei Jin, Yang Zhang, Dan Meng, Jun Wang, and Jinghua Tan. 2024. A comprehensive survey on process-oriented automatic text summarization with exploration of llm-based methods. CoRR, abs/2403.02901. Wojciech Kryscinski, Nazneen Rajani, Divyansh Agarwal, Caiming Xiong, and Dragomir Radev. 2022. BOOKSUM: A collection of datasets for long-form narrative summarization. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 6536-6558, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics. Tianle Li, Ge Zhang, Quy Duc Do, Xiang Yue, and Wenhu Chen. 2024. Long-context llms struggle with long in-context learning. CoRR, abs/2404.02060. Aman Madaan, Niket Tandon, Peter Clark, and Yiming Yang. 2022. Memory-assisted prompt editing to improve GPT-3 after deployment. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 2833-2861, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics. Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul F Christiano, Jan Leike, and Ryan Lowe. 2022. Training language models to follow instructions with human feedback. In Advances in Neural Information Processing Systems, volume 35, pages 27730-27744. Curran Associates, Inc. Congying Xia, Chen Xing, Jiangshu Du, Xinyi Yang, Yihao Feng, Ran Xu, Wenpeng Yin, and Caiming Xiong. 2024. FOFO: A benchmark to evaluate LLMs' format-following capability. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages
680-699, Bangkok, Thailand. Association for Computational Linguistics.
Wenhan Xiong, Jingyu Liu, Igor Molybog, Hejia Zhang, Prajjwal Bhargava, Rui Hou, Louis Martin, Rashi Rungta, Karthik Abinav Sankararaman, Barlas Oguz, Madian Khabsa, Han Fang, Yashar Mehdad, Sharan Narang, Kshitiz Malik, Angela Fan, Shruti Bhosale, Sergey Edunov, Mike Lewis, Sinong Wang, and Hao Ma. 2024. Effective long-context scaling of foundation models. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 4643-4663, Mexico City, Mexico. Association for Computational Linguistics.
Kai Zhang, Yangyang Kang, Fubang Zhao, and Xiaozhong Liu. 2024. LLM-based medical assistant personalization with short- and long-term memory coordination. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 2386-2398, Mexico City, Mexico. Association for Computational Linguistics.
 Figure 4: Average number of tokens used as an existing information across all turns with limited memory token size on SUMIE.
# A Number of tokens under limited token size scenario
Figure 4 shows the average number of tokens used for existing information in prompts across all turns. We observe that the models effectively compress tokens across all methods. Specifically, when the token limit is set to 200 tokens, the models compress the information to fewer than 130 tokens, and when the limit is set to 300 tokens, they compress it to fewer than 180 tokens.
# B Predefined schema for entity summarization and book summarization tasks
For entity summarization, we define the schema as follows:
```yamlSummary: { attributes: { name: str, values: list[str] } }```
To construct structured representations of book contexts, we define the schema as follows:
```txtSummary: { characters: { name: str, explanations: list[str] }, events: { name: str, explanations: list[str] }, background: { name: str, explanations: list[str] },```
```yamlmotivations: { name: str, explanations: list[str] }, objectives: { name: str, explanations: list[str] }, other: { name: str, explanations: list[str] }```
# C Details about Dataset
SUMIE contains 200 entities and each entity is associated with 7 paragraphs. Each paragraph has aggregated a summary, which includes aggregated attribute-value pairs from the 1st paragraph to $N$ -th paragraph (e.g. 7th paragraph contains aggregated attribute-value pairs from all 7 paragraphs). Each summary contains attribute-value pairs that are relevant to the specific entity. BookScore dataset contains mostly fiction or contemporary books. Refer to Chang et al. (2024) for the full book list.
# D Details about Evaluation
On SUMIE, the evaluation of the final summary comprises attribute-value pairs related to a specific entity, measuring precision, recall, and f1 score. We use Gemini-Pro as an LLM evaluator. The temperature is set to 0.8.
For BookScore dataset, we use their LLM-based evaluation metric that assess summary coherence based on 8 predefined error dimensions (entity omission, event omission, causal omission, discontinuity, salience, language, inconsistency, duplication). Each error measures the following aspects:
```txt- Entity omission: an entity, real or abstract (person, object, $\leftrightarrow$ place, concept, etc.) is mentioned, but key details are missing or unclear- Event omission: an event is mentioned, but key details are missing or unclear- Causal omission: the reason or motivation for something is missing or unclear- Salience: inclusion of trivial details that do not contribute to the main storyline- Discontinuity: an interruption in the flow of the narrative, including but not restricted to: sudden jumps between perspectives, time periods, or settings; poor transition between sentences or paragraphs; sentences or paragraphs that seem out of place; illogical sentence order or summary structure- Duplication: redundant repetition of similar information- Inconsistency: two parts of the summary contain contradicting information- Language: grammar issues; confusing wording or phrasing; etc.```
To evaluate the summary, each sentence is broken down into individual sentences and given to an
<table><tr><td>Method</td><td>Turn</td><td>P</td><td>R</td><td>F1</td></tr><tr><td rowspan="2">GMmarkdown</td><td>last</td><td>83.1</td><td>74.8</td><td>78.3</td></tr><tr><td>Avg.</td><td>80.8</td><td>80.8</td><td>80.4</td></tr><tr><td rowspan="2">GMjson</td><td>last</td><td>84.6</td><td>74.3</td><td>78.6</td></tr><tr><td>Avg.</td><td>84.7</td><td>78.7</td><td>80.9</td></tr><tr><td rowspan="2">CoKjson</td><td>last</td><td>84.6</td><td>83.6</td><td>83.9</td></tr><tr><td>Avg.</td><td>83.7</td><td>83.9</td><td>83.5</td></tr></table>
Table 3: Performance on SUMIE with Gemini-Pro on Generate-Merge (GM) and Chain-of-Key (CoK) update with markdown and json formats.
LLM evaluator along with the original summary. The evaluation prompt includes multiple examples for each error dimension, and the LLM is asked to determine whether any errors are present in the current sentence and summary. If any errors are found, the sentence is marked as a "confusing sentence". The final score is calculated by dividing the total number of confusing sentences identified by the LLM by the total number of sentences in the summary.
Since their evaluation requires an advanced ability of understanding book context to identify 8 predefined error types, we use Gemini-Ultra as an LLM evaluator and the temperature was set to 0.8. To calculate the token size to create a list of smaller book chunks, we use tiktoken library<sup>4</sup>. We used TPU v5e for evaluating the entity summarization and book summarization tasks, with each evaluation taking up to 24 hours. In particular, Gemini-Pro used 8 pods and Gemini-Ultra used 64 pods. All experimental results are based on a single run using the prompts provided in each section.
# E Markdown vs. JSON
In our evaluation, presented in Table 3, we compared the effectiveness of JSON and Markdown in data structuring for summarization tasks. While both formats demonstrated comparable abilities in organizing straightforward data with the Gemini Pro model, JSON distinguished itself in handling more complex scenarios. Its capability to support nested dictionary structures enhances expressibility and summarization precision, particularly in lengthy or hierarchically complex documents. This makes JSON especially valuable for summarizing detailed datasets like family trees, where its hierarchical structuring capabilities far outperform the linear layout of Markdown.
# F Compressing the information
To manage the token size for existing information, we compress the content using 3 criteria with an LLM when the token size exceeds $K$ tokens: 1) Redundancy, 2) Frequency, and 3) Relevance. For redundancy, we remove repetitive information to maintain conciseness. For frequency, the model prioritizes the most frequently mentioned values, as they are likely the most important. For relevance, the model emphasizes information most pertinent to the subject. Figure 13 presents the prompt used for compressing the information.
# G Prompt for Chain-of-Key update
Figure 5 is the prompt used for Chain-of-Key update process. In the case of the book summarization task, we simply replace the instructions and a example given in the prompt:
```txt1. Values have a short and concise information: the values of $\leftrightarrow$ the [PARTIAL_SUMMARY] should have a short, concise, and summarized information. 2. No redundant keys: If information from [NEW_SUMMARY] can be incorporated by updating an existing key in $\leftrightarrow$ [PARTIAL_SUMMARY], then do not introduce a new redundant key. For example, if there's already a field for 'activities' do not introduce a new key for 'other $\leftrightarrow$ activities' or 'water activities', 'hiking'. Update the existing key for 'activities'. 3. No redundant values under the same key: If one value encompasses most of the details in another value, merge them together. For instance, "beautiful views of the Eiffel tower" and "view of the Eiffel tower" should be merged into a single value like "beautiful views of the Eiffel tower". 4. Do not include trivial information or redundant information as a value for its corresponding key. 5. Content Focus: Values should highlight the most important information relevant to the main story. 6. Exclude Ancillary Content: Disregard sections that are not directly part of the main narrative, such as: Title, Acknowledgments, Dedication, Chapter titles, Glossary entries, Timelines, Forewords, Prologues, Epilogues, Appendices, Author notes.```
# H Prompts used for SUMIE baselines
We used Figure 6 for Generate-Once, Figure 6 and 7 for Generate-Update, and Figure 6 and 8 are used for Generate-Merge, which includes removing duplicates. For text baselines, we simply replace the JSON examples in the prompts to text summary examples.
# I Prompts used for BookScore baselines
For the BookScore dataset, we used the prompt in Figure 9 along with special instructions from Figure 10 for JSON format generation and Figure 11 for plain text summary generation during the initial Generate-Update phase and the Generate-Merge phase. In subsequent Generate-Update iterations,
we used the prompt in Figure 12. To remove duplicates during the Generate-Merge step, we used the prompt in Figure 8.
I will provide a JSON format summary in a section called [NEW_SUMMARY], and a class definition [CLASS], which define some fields $\leftrightarrow$ that need to be generated, and an instantiation of that class under [PARTIAL_SUMMARY] that is a response to the question in $\leftrightarrow$ [QUESTION]. Your task is to propose updates to [PARTIAL_SUMMARY] gathered from the information in [NEW_SUMMARY].
There are two types of revisions that you can suggest: ADD and UPDATE.
For UPDATE, follow these instructions:
1. Your proposed updates must be for valid JSONPaths that already exist in [PARTIAL_SUMMARY]. If the JSONPath does not exist, you $\leftrightarrow$ should not propose an update for that JSONPath. 2. Updates can be made by modifying an existing value using content from [NEW_SUMMARY]. 3. Updates should never reduce the amount of information in [PARTIAL_SUMMARY]. 4. Never remove existing information from the [PARTIAL_SUMMARY]. 4. Proposed update must be a `dict[str, ProposedUpdate]` where the key is a valid JSONPath in [CLASS] and `ProposedUpdate` is defined as follows: class ProposedUpdate(TypedDict):
update: Any # The type must be the same type as at the JsonPath in [CLASS].
For ADD, follow these instructions:
1. Proposed additions must be for valid JSONPaths that adhere to the definition in [CLASS]. They are allowed to increase the size $\hookrightarrow$ of lists in the definition, but they must not define new fields which are not defined in the class definition. 2. It is OK to add partial objects. Leave fields unset if [NEW_SUMMARY] does not contain a value for one of the fields in $\hookrightarrow$ [PARTIAL_SUMMARY]. 3. Proposed additions must be a `dict[str, ProposedAdd]` where the key is a valid JSONPath in [CLASS] and `ProposedAdd` is defined $\leftrightarrow$ as follows:
class ProposedAdd(TypedDict):
add: Any # The type must be the same type as at the JsonPath in [CLASS].
For both operations, follow these instructions:
1. Values have sufficient context: the values of the [PARTIAL_SUMMARY] should have enough context so a reader can understand what $\leftrightarrow$ it means. 2. No redundant keys: If information from [NEW_SUMMARY] can be incorporated by updating an existing key in [PARTIAL_SUMMARY], then $\leftrightarrow$ do not introduce a new redundant key. 3. No redundant values under the same key: If one value encompasses most of the details in another value, merge them together.
[QUESTION]
Merge the new summary and existing summary of HOTELO.
[NEW_SUMMARY]
```json{ "attributes": { "Room Amenities": ["pub opens till midnight", "two large pools"], "Noise Level": ["Notable street noise at night"] }}```
[CLASS]
class Summary(TypedDict): attributes: dict[str, list[str]] # Keyed by attribute, with a list of sufficient details about the attribute.
[PARTIAL_SUMMARY]
```json{ "attributes": { "Amenities": ["two pools"], "Food & Beverage": ["limited breakfast options)], } }```
[THOUGHTS FOR UPDATE]
1. I need to figure out which fields and values to update. 2. [PARTIAL_SUMMARY] contains information about the following: ["Amenities", "Food & Beverage"] 3. [NEW_SUMMARY] contains new content relevant to the following existing content: ["Amenities"] 4. The content should be updated at the following JSONPaths: ["$. 'attributes'. 'Amenities'"]
[UPDATED_OBJECTS]
```json{ "$.'attributes'.'Amenities':' {"update": [ "pub opens till midnight" ]} }```
[THOUGHTS FOR ADD]
1. I need to figure out which fields and values to add. 2. [NEW_SUMMARY] mentions information about the following: ["Amenities", "Noise Level"] 3. [PARTIAL_SUMMARY] does not yet have information about: [ "Noise Level"] 3. The content should be added at the following JSONPaths: [ "$.'attributes'.'Noise Level'']
[ADDED_OBJECTS]
```javascript{ "$.'attributes'.Noise Level'": {"add": ["Notable street noise at night"],}```
Figure 5: Prompt used for chain-of-key update
# Task Overview:
Your task involves synthesizing information from detailed descriptive paragraphs about a specific entity into a summary table. This Json will highlight key attributes of the entity along with their detailed descriptions derived from the given texts.
# Instructions:
* Extract Descriptive Values: Focus on extracting specific, detailed information rather than general or vague adjectives like $\leftrightarrow$ "good" or "bad." Ensure that descriptions are precise and informative. * Present a Balanced View: The table should reflect a balanced perspective, including positive, negative, and neutral attributes. $\leftrightarrow$ For attributes with mixed reviews, indicate the sources supporting each viewpoint. \* Attribute Selection:
- Commonly Interested Attributes: Include attributes that are generally of interest for the type of entity being described.- Unique Attributes: Also identify and include unique attributes that are specifically mentioned in the provided descriptions.* Do not include irrelevant sentences about the given entity in the summary. Irrelevant sentences include entity names (HOTEL1, HUMAN) that are different from the given entity (HOTEL0).
# Structure of the Summary Table:
* The Json should contain a dictionary format data, where keys are attributes and values are detailed descriptions of their corresponding attributes. \*List attributes with their corresponding values, indicating the source paragraph and relevant excerpts for substantiation. \* If an attribute has multiple values, include all values as a list of the attribute. * Each value should contain sufficient evidence extracted from the paragraph related to the entity.
# Example:
Entity: HOTELO
# Paragraphs:
P1. Great room and service, but breakfast was lacking. We loved the spacious room and friendly staff, but the breakfast options $\leftrightarrow$ were limited. There are two pools. P2. Poor customer service overshadowed the beautiful location. The beachfront view was amazing, but dealing with unhelpful staff $\leftrightarrow$ was frustrating. Room is comfortable. P3. Exceptional dining and comfortable beds, but noisy at night. The restaurant was five-star, and the beds were very cozy, but $\leftrightarrow$ there was a lot of street noise.
P4. HOTEL1 offers great room service and breakfast was amazing. (Irrelevant sentence for the given entity "HOTEL0")
P5. HUMAN's creativity looks like a great room service offered by the hotel. (Irrelevant sentence for the given entity "HOTEL0")
# Summary JSON:
```txt{ "Room Quality": ["Spacious and comfortable rooms"], "Amenities": ["There are two pools"], "Service": ["Friendly staff", "overshadowed by unhelpful staff"], "Location": ["Beautiful beachfront view"], "Food & Beverage": ["Exceptional dining experience", "limited breakfast options"], "Noise Level": ["Notable street noise at night"] }```
# Your Task:
Generate a similar table based on the following descriptions of the specified entity. Entity: {entity_name}
# Paragraphs:
{paragraph}
Proceed to generate the summary Json.
Figure 6: Prompt used for generating initial summary
Task Overview:
You are tasked with refining and expanding an existing summary table based on new descriptive paragraphs about an entity. This involves updating the table to include new information, modify existing details without removing any, and ensuring all entries $\leftrightarrow$ are supported by evidence from the text.
Instructions:
\* Update Descriptive Values: Carefully read the new paragraph(s) and identify any information that should be added to the current $\hookrightarrow$ table entries or modify them. Focus on specific, descriptive details, avoiding vague adjectives. \*\*Do not remove any existing $\hookrightarrow$ attributes or values\*\*, but rather add to or revise them as necessary. \* Maintain a Balanced View: Ensure the updated table continues to present a balanced perspective, incorporating positive, negative $\hookrightarrow$ and neutral values. For any attribute with mixed evidence, update the count of sources supporting each view. All original $\hookrightarrow$ attributes and values must be preserved in the table, with modifications only to reflect new insights or corrections based on $\hookrightarrow$ the latest information. \* Attribute Revision and Addition: - Commonly Interested Attributes: Update or add attributes that are of general interest for the type of entity being described, $\hookrightarrow$ based on the new information. - Unique Attributes: Identify and incorporate any unique attributes mentioned in the new paragraphs that were not previously $\hookrightarrow$ included in the table.
Structure of the Updated Summary Table:
* Retain the two-column format: Attribute and Value.
* For each attribute, list the updated or new evidence indicating the source paragraph and relevant excerpts. Original attributes
$\hookrightarrow$ and values should remain listed, with additional information appended as necessary.
* If an attribute has multiple values, include all values as a list of the attribute.
* Each value should contain sufficient evidence extracted from the paragraph related to the entity.
Example
Entity: Hotel0
New Paragraph:
P4. The hotel has recently renovated its lobby, which now features a modern design. Guests have also noted improvements in
$\hookrightarrow$ breakfast variety and quality
P5. The hotel boasts impeccably designed rooms, featuring luxurious furnishings.
```txtGiven Existing Summary Table: { "Room Quality": ["Spacious and comfortable rooms"], "Amenities": ["two pools"], "Service": ["Friendly staff", "overshadowed by unhelpful staff"], } Updated Summary Json: { "Room Quality": ["Spacious and comfortable rooms", "Impeccably designed", "luxurious furnishings"], "Amenities": ["Two pools"], "Service": ["Friendly staff", "overshadowed by unhelpful staff"], "Food & Beverage": ["Exceptional dining experience", "limited breakfast options", "improved breakfast variety and quality"], "Lobby Design": ["Modern design"], } Your Task: Update the summary Json with the given new descriptions of the specified entity. Entity: {entity_name} New Paragraph: {paragraph} Given Existing Summary Json: {existing_summary} Proceed to update the summary Json.```
Figure 7: Prompt used for updating a summary with new information and existing summary information.
# Task Overview:
Your task involves removing duplicate information from a detailed summary json about a specific entity. This summary will highlight $\leftrightarrow$ key attributes of the entity along with their detailed descriptions derived from the given texts.
# Instructions:
1. Eliminate repetitive information to ensure the summary is concise. 2. In the given summary json, the keys are attributes of the entity and each attribute has its corresponding values. 3. If one attribute encompasses most of the details in another attribute, merge them together. 4. If one value encompasses most of the details in another value, merge them together.
Here is an example of merging attributes:
```txtGiven Existing Summary: { "Views": ["beautiful views of the Eiffel tower"], "views from hotel": ["visible Eiffel tower"],} New Summary after removing duplicates and merging: { "View": ["beautiful views of the Eiffel tower"]} $= = =$```
Here is an example of merging values:
```pythonGiven Existing Summary: { "Views": ["beautiful views of the Eiffel tower", "view of the Eiffel tower"], "views from hotel": ["visible Eiffel tower"],} New Summary after removing duplicates and merging: { "View": ["beautiful views of the Eiffel tower"] } $= = =$```
Figure 8: Prompt used for removing duplicates.
# Task Overview:
We are analyzing segments of a story sequentially to progressively build a comprehensive summary of the entire plot. Your task is $\leftrightarrow$ to generate a new summary by integrating vital information from the current story segment with the existing summary stored in $\leftrightarrow$ memory. The summary can be provided in either text format or JSON format.
# Instructions:
1. Integrate Key Information: Incorporate new information related to key events, backgrounds, settings, characters, their $\leftrightarrow$ objectives, and motivations from the current segment into the existing summary. 2. Introduction of New Elements: Briefly introduce any new characters, places, or major elements mentioned for the first time in $\hookrightarrow$ the current segment if they are not already included in the memory. 3. Handling Non-Linear Narratives: Account for non-linear narratives, including flashbacks, and switches between alternate worlds $\hookrightarrow$ or viewpoints, ensuring the summary maintains a consistent and chronological narrative. 4. Cohesive Summary: Create a summary that reads as though it was written in one go, despite the step-by-step process of updating $\leftrightarrow$ it with each new segment. 5. Exclude Ancillary Content: Disregard sections that are not directly part of the main narrative, such as: Title, Acknowledgments, $\hookrightarrow$ Dedication, Chapter titles, Glossary entries, Timelines, Forewords, Prologues, Epilogues, Appendices, Author notes.
{special Instruction}
# Your Task:
Generate a summary based on the following segment from a story and the memory of the story up until this point. Ensure the output $\leftrightarrow$ follows the specified format.
A segment from a story:
- - -
{book_chunk}
---
Generated summary in {output_format}:
Figure 9: Prompt used for generating book summaries.
```txtStructure of the JSON Summary: - Fields to Generate: Characters, Events, Backgrounds, $\hookrightarrow$ Motivations, Objectives, Other. - Field Format: Each field should be a dictionary where keys $\hookrightarrow$ are the names of elements and values are their short $\hookrightarrow$ descriptions. - Each key should include a short and concise information as $\hookrightarrow$ values that explain the key. - Content Focus: Values should highlight the most important $\hookrightarrow$ information relevant to the main story. - Do not include trivial information or redundant information $\hookrightarrow$ as a value for its corresponding key. Here is an example of the JSON Summary: { "characters": { "a character's name": [a list of short and summarized $\hookrightarrow$ descriptions] }, "events": { "an event's name": [a list of short and summarized $\hookrightarrow$ descriptions] }, "objectives": { "an objective's name": [a list of short and summarized $\hookrightarrow$ descriptions] }, "motivations": { "a motivation's name": [a list of short and summarized $\hookrightarrow$ descriptions] }, "background": { "a background's name": [a list of short and summarized $\hookrightarrow$ descriptions] }, "other": { "other information's name": [a list of short and summarize $\hookrightarrow$ descriptions] }```
Figure 10: Instructions used for generating JSON format summary.
```txtStructure of the Text Summary: - Key Elements to Include: Incorporate key events, characters, $\hookrightarrow$ backgrounds, motivations, objectives, and other relevant $\hookrightarrow$ details. - Narrative Flow: Ensure the summary flows seamlessly as a $\hookrightarrow$ cohesive and comprehensive narrative.```
```txtHere is an example of the Text Summary format: A summary that reads as though it was written in one go. It can $\hookrightarrow$ consist of multiple paragraphs.```
Figure 11: Instructions used for generating text format summary.
```txtYour Task: Generate a summary based on the following segment from a story $\leftrightarrow$ and the memory of the story up until this point. Ensure the $\leftrightarrow$ output follows the specified format.. A segment from a story: --- {book_chunk} --- A memory of the story up until this point: --- {memory} --- Output Type: {output_format} Updated summary in {output_format}:```
Figure 12: Prompt used for updating a summary with a new information and existing summary.
```txtTask Overview: Your task involves compressing information from a detailed $\leftrightarrow$ summary JSON about a book. This summary will highlight key details of the book that are important when summarizing the whole story of the book. Instructions: - Compress the summary to the specified number of tokens below. - The condensed summary should retain key details about characters, events, backgrounds, motivations, objectives, and other important information. - If the key has multiple values, merge them into a short summarized description.```
```txtCriteria: - Redundancy: Eliminate repetitive information to ensure the $\leftrightarrow$ summary is concise. - Frequency: Emphasize the most frequently mentioned attributes $\leftrightarrow$ or values, as they are likely the most important. - Relevance: Focus on the information that is most pertinent to $\leftrightarrow$ the main story of the book or the overall context of the $\leftrightarrow$ summary. - Remove trivial information that does not frequently appear in $\leftrightarrow$ the other contexts or not relevant to the main story of the $\leftrightarrow$ book based on the overall context of the summary.```
Figure 13: Prompt used to compress the information to fit the existing summary into the limited token size.123version https://git-lfs.github.com/spec/v1oid sha256:e2348c4e168dfdfd6a151e5f0feb337250dd28400e33d012d21d2800ef89265bsize 1953101234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666[ { "type": "text", "text": "Enhancing Large Language Model Based Sequential Recommender Systems with Pseudo Labels Reconstruction", "text_level": 1, "bbox": [ 149, 84, 850, 124 ], "page_idx": 0 }, { "type": "text", "text": "Hyunsoo Na $^{1}$ , Minseok Gang $^{1}$ , Youngrok Ko $^{1}$ , Jinseok Seol $^{2}$ , Sang-goo Lee $^{1,3}$", "bbox": [ 240, 135, 759, 168 ], "page_idx": 0 }, { "type": "text", "text": "$^{1}$ Seoul National University, $^{2}$ Korea Advanced Institute of Science and Technology $^{3}$ IntelliSys, Korea", "bbox": [ 166, 170, 828, 203 ], "page_idx": 0 }, { "type": "text", "text": "{monchana, alstjr3754, yrko1, sglee}@europa.snu.ac.kr jsseol@kaist.ac.kr", "bbox": [ 228, 204, 764, 236 ], "page_idx": 0 }, { "type": "text", "text": "Abstract", "text_level": 1, "bbox": [ 260, 260, 339, 275 ], "page_idx": 0 }, { "type": "text", "text": "Large language models (LLMs) are utilized in various studies, and have demonstrated potential to function independently as a recommendation model. However, training on user-item interaction sequences and additional textual information such as reviews often modifies the pre-trained weights of LLMs, diminishing their inherent strength in constructing and comprehending natural language sentences. In this study, we propose a reconstruction-based LLM recommendation model (ReLURec) that harnesses the feature extraction capability of LLMs, while preserving LLMs' sentence generation abilities. We reconstruct the user and item pseudo-labels generated from user reviews while training on sequential data, aiming to exploit the key features of both users and items. Experimental results demonstrate the efficacy of label reconstruction in sequential recommendation tasks.", "bbox": [ 144, 288, 460, 574 ], "page_idx": 0 }, { "type": "text", "text": "1 Introduction", "text_level": 1, "bbox": [ 114, 588, 258, 602 ], "page_idx": 0 }, { "type": "text", "text": "Recommender systems have achieved significant advancement, becoming essential in various domains such as e-commerce, streaming services, and social media. Despite their widespread application, traditional methods face several limitations, particularly in extracting and effectively utilizing textual information, such as user reviews, in addition to interaction data. Traditional models, (Kang and McAuley, 2018; Jannach and Ludewig, 2017; Sun et al., 2019; Ma et al., 2019; Tang and Wang, 2018), while effective in leveraging numerical data such as ratings and purchase history, often struggle with capturing the nuanced contextual information present in user reviews and other textual data. This limits their ability to fully understand user preferences and provide highly personalized recommendations.", "bbox": [ 115, 614, 489, 885 ], "page_idx": 0 }, { "type": "text", "text": "Large language models (LLMs), like GPT (Brown et al., 2020), have transformed the field", "bbox": [ 112, 889, 487, 920 ], "page_idx": 0 }, { "type": "text", "text": "of recommender systems by excelling in understanding and generating natural languages. They effectively address the limitations of traditional models in handling textual data and are actively studied for their potential in various recommendation tasks. Several efforts have leveraged LLMs for zero/few-shot recommendation by incorporating user history and candidate items as input prompt (Zheng et al., 2023; Zhu et al., 2024; Zhao et al., 2024). Additionally, LLMs have been employed to address cold-start problem (Xi et al., 2023; Wang et al., 2024b) and have been utilized for data augmentation purposes (Wei et al., 2024; Ning et al., 2024; Ren et al., 2024). Moreover, studies that have aimed to train LLMs via efficient measures (Li et al., 2023a,b; Yu et al., 2024; Kaur and Shah, 2024) have demonstrated their potential to function as recommendation models.", "bbox": [ 507, 260, 884, 549 ], "page_idx": 0 }, { "type": "text", "text": "LLM-based recommender systems leverage pretrained knowledge to understand diverse textual inputs and generate rich textual representations (Acharya et al., 2023; Wang et al., 2024a). This allows LLMs to provide contextually relevant suggestions that align closely with user preferences. However, training LLMs on recommendation datasets can disrupt their pre-trained weights, especially their generation capabilities (Li and Hoiem, 2017; Luo et al., 2023). Therefore, new methods are needed to use LLMs effectively while preserving their strengths.", "bbox": [ 507, 551, 884, 743 ], "page_idx": 0 }, { "type": "text", "text": "Our proposed methodology addresses such challenges by leveraging LLMs' advanced textual representation generation in a sequential recommendation framework. To preserve the pre-trained knowledge of the LLM, we implemented separate embeddings for users and items while freezing the LLM's transformer layers and the word embedding. This ensures that the model retains its ability to construct coherent sentences. To train user and item embedding, we generated pseudo-labels for users and items based on their reviews. Finally, we", "bbox": [ 507, 744, 885, 921 ], "page_idx": 0 }, { "type": "page_number", "text": "7213", "bbox": [ 480, 927, 519, 940 ], "page_idx": 0 }, { "type": "footer", "text": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 7213-7222 November 12-16, 2024 ©2024 Association for Computational Linguistics", "bbox": [ 216, 945, 779, 972 ], "page_idx": 0 }, { "type": "image", "img_path": "images/2e2d95089596511e975dca17f6689ebacb652f3e79a4acdeda44e8dc7bf259ab.jpg", "image_caption": [ "(a) User's review on an item.", "(b) Use item pseudo-label generation." ], "image_footnote": [], "bbox": [ 114, 84, 485, 199 ], "page_idx": 1 }, { "type": "text", "text": "trained the model using both sequential data and the pseudo-labels simultaneously.", "bbox": [ 112, 298, 485, 330 ], "page_idx": 1 }, { "type": "text", "text": "The main contributions of this paper are: (1) proposing a reconstruction-based LLM model (ReLURec) that captures and effectively integrates user/item label features for next item predictions; (2) introducing a methodology that leverages the feature extraction capabilities of LLMs while preserving their inherent sentence generation abilities; and (3) demonstrating that encapsulating rich contextual information in labels and integrating it into sequential recommendations enhance the model's ability to understand and predict user preferences.", "bbox": [ 112, 331, 485, 507 ], "page_idx": 1 }, { "type": "text", "text": "2 Proposed Approach", "text_level": 1, "bbox": [ 112, 521, 319, 538 ], "page_idx": 1 }, { "type": "text", "text": "In this study, we propose ReLRec, a model composed of two primary components: the creation of user/item embeddings with pseudo-labels, and the training process that incorporates both sequential data and textual labels.", "bbox": [ 112, 548, 487, 627 ], "page_idx": 1 }, { "type": "text", "text": "2.1 Pseudo-label Generation", "text_level": 1, "bbox": [ 112, 642, 352, 656 ], "page_idx": 1 }, { "type": "text", "text": "We employed the RLMRec profile generation method (Ren et al., 2024) to create pseudo-labels for both users and items. As depicted in Fig. 1, we first aggregated and concatenated reviews associated with each item to construct an item profile. Similarly, user profiles were generated by concatenating the reviews submitted by each user. These concatenated reviews were subsequently passed to ChatGPT (i.e., gpt-3.5-turbo), which was utilized to produce labels for both items and users. Furthermore, the initially generated labels were reprocessed through ChatGPT to obtain variations in different formats. To capture diverse and meaningful features in the labels, we generated multiple label versions, all maintaining consistent contextual meaning, and randomly selected one for each", "bbox": [ 112, 663, 487, 920 ], "page_idx": 1 }, { "type": "image", "img_path": "images/3d7ae66aa13b26c85b890a2748e2bd533c173ad9414d2b0ca699137acaf27e0e.jpg", "image_caption": [ "Figure 1: Pseudo-label generation. (a) refers the review from a user to an item and (b) shows how reviews are concatenated to generate pseudo user/item label.", "Figure 2: Illustration of ReLRec, sequential recommendation with label reconstruction." ], "image_footnote": [], "bbox": [ 512, 84, 880, 277 ], "page_idx": 1 }, { "type": "table", "img_path": "images/d14e9bb69a5dad944f6021181f1853aa2c88e631f87a2f3a1bad43e8f6d9789f.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td>Dataset</td><td>#User</td><td>#Item</td><td>#Inter.</td><td>#Avg.</td><td>Sparsity</td></tr><tr><td>Yelp</td><td>11,092</td><td>11,011</td><td>321,581</td><td>29.0</td><td>99.737%</td></tr><tr><td>Book</td><td>10,830</td><td>9,333</td><td>211,909</td><td>19.6</td><td>99.790%</td></tr></table>", "bbox": [ 512, 332, 880, 388 ], "page_idx": 1 }, { "type": "text", "text": "Table 1: Dataset statistics. #User, #Item, #Inter., #Avg. denote the number of users, items, total interactions, and average user interactions respectively.", "bbox": [ 507, 397, 882, 441 ], "page_idx": 1 }, { "type": "text", "text": "training iteration. This approach ensures that the model is exposed to varied yet coherent label representations during training.", "bbox": [ 507, 467, 882, 514 ], "page_idx": 1 }, { "type": "text", "text": "2.2 RelRec Architecture", "text_level": 1, "bbox": [ 507, 529, 715, 543 ], "page_idx": 1 }, { "type": "text", "text": "LLM-based sequential recommender systems tend to overlook the LLM's capability to construct coherent sentences, focusing primarily on analyzing sequential data. The implementation of fine-tuned transformer layers and adapters to capture sequential patterns frequently results in a diminished capacity to generate relevant sentences and accurately capture contextual meaning. ReLRec leverages the capabilities of LLMs to comprehend and utilize textual information, incorporating rich, nuanced data encapsulated in pseudo-labels generated from user reviews. As shown in Figure 2, we implemented separate embeddings for users and items, initialized with the average of the word token embedding weights. A unique token is assigned to each user/item id (i.e., \"iid-1\" is a single token) to represent the attributes of each user/items. With the transformer layers and word embeddings frozen to preserve the LLM's inherent ability to understand and generate natural language, we added a projection layer to each embedding to map and integrate the pre-trained knowledge with newly trained text labels.", "bbox": [ 505, 551, 882, 919 ], "page_idx": 1 }, { "type": "page_number", "text": "7214", "bbox": [ 480, 928, 519, 940 ], "page_idx": 1 }, { "type": "table", "img_path": "images/5eb9b217e67391d310792220d1f303b4e94f7068ddc3ea3c7e3b2aaa7ccd40c5.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td rowspan=\"2\">Models</td><td colspan=\"6\">Yelp</td><td colspan=\"6\">Amazon-book</td></tr><tr><td>R@5</td><td>N@5</td><td>R@10</td><td>N@10</td><td>R@20</td><td>N@20</td><td>R@5</td><td>N@5</td><td>R@10</td><td>N@10</td><td>R@20</td><td>N@20</td></tr><tr><td>STAMP</td><td>0.0232</td><td>0.0145</td><td>0.0393</td><td>0.0196</td><td>0.0673</td><td>0.0267</td><td>0.0699</td><td>0.0564</td><td>0.0908</td><td>0.0631</td><td>0.1217</td><td>0.0709</td></tr><tr><td>HGN</td><td>0.0229</td><td>0.0140</td><td>0.0433</td><td>0.0205</td><td>0.0764</td><td>0.0288</td><td>0.0356</td><td>0.022</td><td>0.0633</td><td>0.0309</td><td>0.1082</td><td>0.0422</td></tr><tr><td>GRU4Rec</td><td>0.0269</td><td>0.0161</td><td>0.0504</td><td>0.0237</td><td>0.0881</td><td>0.0331</td><td>0.0646</td><td>0.0441</td><td>0.0989</td><td>0.0552</td><td>0.1473</td><td>0.0673</td></tr><tr><td>SASRec</td><td>0.0210</td><td>0.0135</td><td>0.0386</td><td>0.0190</td><td>0.0730</td><td>0.0276</td><td>0.0624</td><td>0.0355</td><td>0.0959</td><td>0.0463</td><td>0.1443</td><td>0.0585</td></tr><tr><td>BERT4Rec</td><td>0.0153</td><td>0.0093</td><td>0.0283</td><td>0.0135</td><td>0.0540</td><td>0.0200</td><td>0.0380</td><td>0.0267</td><td>0.0585</td><td>0.0333</td><td>0.0869</td><td>0.0405</td></tr><tr><td>NARM</td><td>0.0272</td><td>0.0165</td><td>0.0527</td><td>0.0246</td><td>0.0910</td><td>0.0341</td><td>0.0650</td><td>0.0458</td><td>0.0947</td><td>0.0553</td><td>0.1424</td><td>0.0673</td></tr><tr><td>CL4SRec</td><td>0.0277</td><td>0.0171</td><td>0.0449</td><td>0.0226</td><td>0.0793</td><td>0.0312</td><td>0.0396</td><td>0.0235</td><td>0.0595</td><td>0.0299</td><td>0.0888</td><td>0.0372</td></tr><tr><td>ICLRec</td><td>0.0181</td><td>0.0117</td><td>0.0295</td><td>0.0154</td><td>0.0485</td><td>0.0202</td><td>0.0352</td><td>0.0236</td><td>0.0520</td><td>0.0290</td><td>0.0779</td><td>0.0356</td></tr><tr><td>P5</td><td>0.0240</td><td>0.0150</td><td>0.0390</td><td>0.0198</td><td>0.0587</td><td>0.0247</td><td>0.0318</td><td>0.0230</td><td>0.0445</td><td>0.0271</td><td>0.0629</td><td>0.0318</td></tr><tr><td>E4SRec</td><td>0.0180</td><td>0.0102</td><td>0.0541</td><td>0.0212</td><td>0.0902</td><td>0.0306</td><td>0.0369</td><td>0.0317</td><td>0.0831</td><td>0.0467</td><td>0.1570</td><td>0.0650</td></tr><tr><td>Ours</td><td>0.0338</td><td>0.0208</td><td>0.0599</td><td>0.0292</td><td>0.1048</td><td>0.0406</td><td>0.0758</td><td>0.0570</td><td>0.1011</td><td>0.0651</td><td>0.1377</td><td>0.0741</td></tr><tr><td>Improvement</td><td>24.3%</td><td>26.1%</td><td>10.7%</td><td>18.7%</td><td>15.2%</td><td>19.1%</td><td>8.4%</td><td>1.1%</td><td>2.2%</td><td>3.2%</td><td>-12.3%</td><td>4.5%</td></tr></table>", "bbox": [ 115, 82, 884, 280 ], "page_idx": 2 }, { "type": "text", "text": "Table 2: Performance comparison of sequential recommendation models. R stands for Recall, and N refers to NDCG. Bold indicates the best result, while the underline is the runner-up.", "bbox": [ 112, 288, 882, 318 ], "page_idx": 2 }, { "type": "text", "text": "2.3 Label-based Recommendation", "text_level": 1, "bbox": [ 112, 330, 400, 344 ], "page_idx": 2 }, { "type": "text", "text": "ReLRec simultaneously trains on sequential interaction and user/item labels, ensuring that the context and features captured in the labels are reflected in the model's next item prediction. Each batch comprises of the sequential interaction and label of a user, along with a randomly selected item label.", "bbox": [ 112, 350, 487, 445 ], "page_idx": 2 }, { "type": "text", "text": "Suppose $I$ and $U$ denote entire set of items and users. Let $i_{1:t}^{k} = \\{i_{1}^{k},\\dots ,i_{t}^{k}\\}$ represent the user-item interaction sequence, where $i_p^k\\in I$ is the item interacted with by user $u^{k}$ at timestamp $p$ , and $u^{k}\\in U$ . The goal is to predict the next item $i_{t + 1}^{k}$ by training on $i_{1:t}^{k}$ . For the next item prediction, we utilized cross-entropy loss of our backbone LLM.", "bbox": [ 112, 447, 487, 561 ], "page_idx": 2 }, { "type": "equation", "text": "\n$$\n\\mathcal {L} _ {\\mathrm {s e q}} = - \\sum_ {k = 1} ^ {| U |} \\frac {1}{T _ {k}} \\sum_ {t = 1} ^ {T _ {k}} \\log P \\left(i _ {t + 1} \\mid i _ {1: t}, u ^ {k}\\right). \\tag {1}\n$$\n", "text_format": "latex", "bbox": [ 129, 565, 487, 609 ], "page_idx": 2 }, { "type": "text", "text": "Here, $T$ is the total number of time steps for each user. The labels of each user and item are reconstructed along with the next item prediction. Similarly, with $S$ referring the entire set of word tokens, the label reconstruction aims to predict the token $s_{t + 1}$ given tokens $s_{1:t} = \\{s_1,\\ldots ,s_t\\}$ .", "bbox": [ 112, 615, 489, 712 ], "page_idx": 2 }, { "type": "equation", "text": "\n$$\n\\mathcal {L} _ {\\text {i t e m}} = - \\sum_ {i \\in I} \\frac {1}{T _ {i}} \\sum_ {t = 1} ^ {T _ {i}} \\log P \\left(s _ {t + 1} ^ {i} \\mid s _ {1: t} ^ {i}\\right), \\tag {2}\n$$\n", "text_format": "latex", "bbox": [ 141, 717, 487, 760 ], "page_idx": 2 }, { "type": "equation", "text": "\n$$\n\\mathcal {L} _ {\\text {u s e r}} = - \\sum_ {u \\in U} \\frac {1}{T _ {u}} \\sum_ {t = 1} ^ {T _ {u}} \\log P \\left(s _ {t + 1} ^ {u} \\mid s _ {1: t} ^ {u}\\right), \\tag {3}\n$$\n", "text_format": "latex", "bbox": [ 137, 764, 487, 807 ], "page_idx": 2 }, { "type": "text", "text": "where $s^u$ and $s^i$ denotes tokens within the labels of user $u$ and item $i$ , respectively. The overall learning objective function of ReLRec is the sum of the losses for the next item prediction and user/item label reconstruction.", "bbox": [ 112, 813, 487, 892 ], "page_idx": 2 }, { "type": "equation", "text": "\n$$\n\\mathcal {L} = \\alpha \\mathcal {L} _ {\\text {s e q}} + \\beta \\mathcal {L} _ {\\text {i t e m}} + \\gamma \\mathcal {L} _ {\\text {u s e r}}, \\tag {4}\n$$\n", "text_format": "latex", "bbox": [ 184, 900, 487, 917 ], "page_idx": 2 }, { "type": "text", "text": "where $\\alpha$ , $\\beta$ and $\\gamma$ are the loss weights for each task. During inference, we evaluate the model not only on sequential prediction, but also on user/item label reconstruction, to ensure that the model has learned the textual labels of users and items. We provide a randomly selected prompt to the model to reconstruct the user/item label. The Appendix A.1 provides example labels.", "bbox": [ 507, 330, 882, 458 ], "page_idx": 2 }, { "type": "text", "text": "3 Experiment", "text_level": 1, "bbox": [ 507, 470, 648, 486 ], "page_idx": 2 }, { "type": "text", "text": "3.1 Experimental Settings", "text_level": 1, "bbox": [ 507, 495, 729, 512 ], "page_idx": 2 }, { "type": "text", "text": "Datasets and metrics We conducted experiments on two public datasets: Yelp (Asghar, 2016) and Amazon-book (McAuley et al., 2015). Each dataset includes user's reviews on items that user interacted with. We filtered out interactions with a rating below 3 and excluded users with less than 5 interactions. The statistics of each dataset are provided in Table 1. We evaluated recommendation performance using two widely adopted ranking metrics: Recall@k and NDCG@k with $k \\in \\{5,10,20\\}$ .", "bbox": [ 507, 517, 882, 694 ], "page_idx": 2 }, { "type": "text", "text": "Baselines We compared our model with ten baseline sequential recommendations: STAMP (Liu et al., 2018), HGN (Ma et al., 2019), GRU4Rec (Tan et al., 2016), SASRec (Kang and McAuley, 2018), BERT4Rec (Sun et al., 2019), NARM (Li et al., 2017), CL4SRec (Xie et al., 2022), ICLRec (Chen et al., 2022), P5 (Geng et al., 2022) and E4SRec (Li et al., 2023a). STAMP, HGN, GRU4Rec, SASRec, BERT4Rec and NARM experiments are conducted using RecBole v1.2.0 (Xu et al., 2023).", "bbox": [ 507, 702, 884, 879 ], "page_idx": 2 }, { "type": "text", "text": "Setup ReLRec uses Llama-2-7b (Touvron et al., 2023) as the backbone model. Dimension for each", "bbox": [ 507, 889, 882, 920 ], "page_idx": 2 }, { "type": "page_number", "text": "7215", "bbox": [ 480, 927, 519, 940 ], "page_idx": 2 }, { "type": "table", "img_path": "images/b3ba5236605bc363cc99e678dd2f041ce71ddf56ea28d45460670bc9b87a956b.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td colspan=\"3\">Methods</td><td colspan=\"2\">Yelp</td><td colspan=\"2\">Book</td></tr><tr><td>User</td><td>PL</td><td>Recon.</td><td>R@20</td><td>N@20</td><td>R@20</td><td>N@20</td></tr><tr><td>X</td><td>X</td><td>-</td><td>0.0764</td><td>0.0302</td><td>0.1086</td><td>0.0609</td></tr><tr><td>X</td><td>O</td><td>-</td><td>0.0750</td><td>0.0299</td><td>0.1044</td><td>0.0556</td></tr><tr><td>O</td><td>X</td><td>X</td><td>0.0727</td><td>0.0289</td><td>0.1035</td><td>0.0592</td></tr><tr><td>O</td><td>O</td><td>X</td><td>0.0755</td><td>0.0302</td><td>0.1049</td><td>0.0586</td></tr><tr><td>O</td><td>O</td><td>O</td><td>0.0969</td><td>0.0371</td><td>0.1309</td><td>0.0706</td></tr><tr><td colspan=\"3\">Improvement</td><td>28.3%</td><td>22.8%</td><td>20.5%</td><td>15.9%</td></tr></table>", "bbox": [ 119, 82, 485, 209 ], "page_idx": 3 }, { "type": "text", "text": "projection layer is set to 512 for all datasets. $\\alpha$ $\\beta$ and $\\gamma$ are set to 0.75, 0.3 and 0.9, respectively. ReLRec was trained with RTX A6000.", "bbox": [ 112, 288, 489, 336 ], "page_idx": 3 }, { "type": "text", "text": "3.2 Performance Comparison", "text_level": 1, "bbox": [ 112, 351, 363, 367 ], "page_idx": 3 }, { "type": "text", "text": "Table 2 presents the experiment results of ReLRec compared to sequential recommendation baselines. Our model outperforms baseline models in most metrics, by up to $24.3\\%$ in Recall and $26.1\\%$ in NDCG. The performance increase is highlighted especially in Yelp dataset. By incorporating contextual label information into the sequential recommendation, ReLRec suggests items that are similar to the labels of user and answer item. Additional examples and analysis are in the Appendix A.2.1.", "bbox": [ 112, 374, 487, 535 ], "page_idx": 3 }, { "type": "text", "text": "3.3 Ablation and Effectiveness Analysis", "text_level": 1, "bbox": [ 112, 549, 440, 565 ], "page_idx": 3 }, { "type": "text", "text": "Reconstruction loss We conducted an analysis to evaluate the effectiveness of our model, specifically examining whether implementing the user embedding and label reconstruction loss enhance performance. As shown in Table 3, simply adding user embedding to train each user did not necessarily improve results. However, including label reconstruction loss significantly boosted performance, indicating that encapsulating textual information in the labels and integrating it into the sequence prediction was effective. Effect of text projection layer is in the Appendix A.2.2.", "bbox": [ 112, 571, 489, 764 ], "page_idx": 3 }, { "type": "text", "text": "Label inconsistency To evaluate the robustness of our reconstruction-based method, we conducted experiments analyzing the impact of label inconsistency on model performance. Noise was introduced by switching item and user labels across datasets, and the model's ability to learn from these inconsistent labels was assessed. As shown in Table 4, even with the introduction of label noise, the reconstruction method demonstrated notable", "bbox": [ 112, 776, 489, 920 ], "page_idx": 3 }, { "type": "table", "img_path": "images/9ac07e6a2e322711c7de0182cec8115289b677f171d0acb7967fe549d07dcc6e.jpg", "table_caption": [ "Table 3: Comparing methods for using user embedding (User), projection layer (PL) and reconstruction loss (Recon.). All embeddings are randomly initialized." ], "table_footnote": [], "table_body": "<table><tr><td colspan=\"3\">Methods</td><td colspan=\"2\">Yelp</td><td colspan=\"2\">Book</td></tr><tr><td>Recon</td><td>Item</td><td>User</td><td>R@20</td><td>N@20</td><td>R@20</td><td>N@20</td></tr><tr><td>X</td><td>O</td><td>O</td><td>0.0842</td><td>0.0372</td><td>0.1004</td><td>0.0417</td></tr><tr><td>O</td><td>X</td><td>O</td><td>0.0973</td><td>0.0377</td><td>0.1374</td><td>0.0718</td></tr><tr><td>O</td><td>O</td><td>X</td><td>0.1026</td><td>0.0382</td><td>0.1353</td><td>0.0711</td></tr><tr><td>O</td><td>O</td><td>O</td><td>0.1048</td><td>0.0406</td><td>0.1377</td><td>0.0741</td></tr></table>", "bbox": [ 512, 82, 882, 159 ], "page_idx": 3 }, { "type": "table", "img_path": "images/3764052fc21531625c8be4eb75ee5c63a3d53f8cc40b1915b99e5a3390020316.jpg", "table_caption": [ "Table 4: Effect of label inconsistency. X in Item and User column indicates that the label of dataset is switched." ], "table_footnote": [], "table_body": "<table><tr><td colspan=\"3\">Methods</td><td colspan=\"2\">Yelp</td><td colspan=\"2\">Book</td></tr><tr><td>Recon.</td><td>Avg.</td><td>2-stage.</td><td>R@20</td><td>N@20</td><td>R@20</td><td>N@20</td></tr><tr><td>X</td><td>X</td><td>-</td><td>0.0755</td><td>0.0302</td><td>0.1049</td><td>0.0586</td></tr><tr><td>X</td><td>O</td><td>-</td><td>0.0842</td><td>0.0327</td><td>0.1004</td><td>0.0417</td></tr><tr><td>O</td><td>X</td><td>O</td><td>0.0969</td><td>0.0371</td><td>0.1309</td><td>0.0706</td></tr><tr><td>O</td><td>O</td><td>X</td><td>0.0972</td><td>0.0361</td><td>0.1242</td><td>0.0682</td></tr><tr><td>O</td><td>O</td><td>O</td><td>0.1048</td><td>0.0406</td><td>0.1377</td><td>0.0741</td></tr></table>", "bbox": [ 514, 227, 882, 329 ], "page_idx": 3 }, { "type": "text", "text": "Table 5: Effect of average embedding initialization (Avg.) and 2-stage pseudo-label generation (2-stage.) for Yelp and Amazon-book datasets.", "bbox": [ 507, 338, 882, 382 ], "page_idx": 3 }, { "type": "text", "text": "improvements compared to scenarios without reconstruction. Although label inconsistency led to a decline in performance relative to consistent-label conditions, the model still captured meaningful patterns, underscoring the resilience and effectiveness of the label reconstruction approach under suboptimal conditions.", "bbox": [ 507, 397, 882, 508 ], "page_idx": 3 }, { "type": "text", "text": "Pseudo-label Quality To examine the effect of pseudo-label quality on performance, we conducted experiments refining the label generation process with a two-stage method. In the first stage, user and item profiles were generated by aggregating relevant reviews to produce initial labels. In the second stage, these labels were refined by removing noise. Notably, even with the one-stage process, our reconstruction method showed significant improvements in overall performance despite the presence of noise. As shown in Table 5, applying the two-stage label generation further enhanced performance, demonstrating the added value of refined labels, with single-stage process already providing substantial gains.", "bbox": [ 507, 521, 882, 764 ], "page_idx": 3 }, { "type": "text", "text": "Embedding initialization We initialized the user and item embeddings in our model with the average value of pre-trained LLM word embedding. Table 5 compares the effectiveness of this average initialization both with and without reconstruction loss. The results show that average initialization was only consistently effective when reconstruction loss was included. We believe this is because, as ReLRec trains on user/item textual labels, the", "bbox": [ 507, 776, 884, 920 ], "page_idx": 3 }, { "type": "page_number", "text": "7216", "bbox": [ 480, 928, 521, 940 ], "page_idx": 3 }, { "type": "table", "img_path": "images/b431a139a3146e3250c5b56b973bf2203d38cbfc557f20a1a9343be0e4f96c51.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td rowspan=\"2\">Metrics</td><td colspan=\"4\">Sequence Weight α</td></tr><tr><td>0.25</td><td>0.50</td><td>0.75</td><td>1.00</td></tr><tr><td>R@20</td><td>0.0856</td><td>0.1000</td><td>0.1000</td><td>0.0956</td></tr><tr><td>N@20</td><td>0.0337</td><td>0.0390</td><td>0.0396</td><td>0.0373</td></tr></table>", "bbox": [ 119, 82, 485, 155 ], "page_idx": 4 }, { "type": "image", "img_path": "images/d721ff975a780250f01aa42c368668bdfb8e7b38f7b0ca93ec4be7da9d18c138.jpg", "image_caption": [ "Figure 3: Recall/NDCG@20 on change of $\\beta$ and $\\gamma$ ." ], "image_footnote": [], "bbox": [ 117, 212, 482, 319 ], "page_idx": 4 }, { "type": "text", "text": "average value of the pre-trained word embeddings provides a better initialization point compared to random initialization.", "bbox": [ 112, 363, 485, 411 ], "page_idx": 4 }, { "type": "text", "text": "Weight parameter To evaluate the impact of each loss hyperparameters, we conducted experiments with different values of hyperparameters on Yelp dataset. Table 6 shows the performance variations with different values of next item prediction loss weight $\\alpha$ . The results indicate that an $\\alpha$ value of 0.75 yields the best performance. This suggests that a balanced emphasis on sequential interactions and label reconstruction is crucial in optimal performance. Increasing $\\alpha$ beyond this point leads to a decline in performance, likely due to overemphasizing sequential data at the expense of label information.", "bbox": [ 112, 432, 487, 640 ], "page_idx": 4 }, { "type": "text", "text": "Fig. 3 illustrates the performance changes as the item label weight $\\beta$ and user label weight $\\gamma$ vary, respectively. Initially, increasing $\\beta$ improves performance as the item label information integrates into the sequential pattern. However, beyond a certain point, further increases in $\\beta$ cause performance to drop significantly, likely because excessive weight on item labels hinders the item embedding's ability to predict the next item. This is evident from the decline in both Recall and NDCG metrics as shown in Figure 3a.", "bbox": [ 112, 644, 487, 820 ], "page_idx": 4 }, { "type": "text", "text": "For $\\gamma$ , the performance trends differently. As shown in Figure 3b, the best performance is observed at the highest value of $\\gamma$ . This indicates that a higher weight on user labels effectively enhances the model's ability to capture user-specific preferences.", "bbox": [ 112, 824, 487, 921 ], "page_idx": 4 }, { "type": "table", "img_path": "images/af3bf25f01395f45aa6ce303deda679a8f9a7b921770233c40b3b6a5c61e4ed6.jpg", "table_caption": [ "Table 6: Performance variation with different sequence weight $\\alpha$ value on Yelp dataset." ], "table_footnote": [], "table_body": "<table><tr><td>Dataset</td><td>#User</td><td>#Item</td><td>#Inter.</td><td>#Avg.</td><td>Sparsity</td></tr><tr><td>Steam</td><td>23,311</td><td>5,238</td><td>596,560</td><td>113.9</td><td>99.511%</td></tr></table>", "bbox": [ 514, 82, 882, 122 ], "page_idx": 4 }, { "type": "text", "text": "Table 7: Dataset statistics of Steam dataset.", "bbox": [ 546, 131, 842, 146 ], "page_idx": 4 }, { "type": "text", "text": "4 Conclusion", "text_level": 1, "bbox": [ 507, 172, 640, 187 ], "page_idx": 4 }, { "type": "text", "text": "In this paper, we proposed ReLRec, a reconstruction based LLM recommendation model which integrates features of user/item text labels to the next item prediction. Our proposed model, ReLRec, effectively utilizes pseudo-labels generated from user reviews to capture nuanced information and enhance recommendation accuracy by label reconstruction. Experimental results demonstrate the effectiveness of ReLRec.", "bbox": [ 507, 199, 884, 342 ], "page_idx": 4 }, { "type": "text", "text": "Acknowledgments", "text_level": 1, "bbox": [ 509, 357, 672, 372 ], "page_idx": 4 }, { "type": "text", "text": "This work was partly supported by the National Research Foundation of Korea (NRF) [No. RS-2023-00243243] and Institute of Information & communications Technology Planning & Evaluation (IITP) [NO. RS-2021-II211343, Artificial Intelligence Graduate School Program (Seoul National University)], both grant funded by the Korea government (MSIT). Also, the ICT at Seoul National University provided research facilities for this study.", "bbox": [ 507, 382, 882, 542 ], "page_idx": 4 }, { "type": "text", "text": "Limitation", "text_level": 1, "bbox": [ 509, 556, 606, 570 ], "page_idx": 4 }, { "type": "text", "text": "We conducted additional experiments on Steam (Kang and McAuley, 2018) dataset and analyzed our results. The experiments on Steam indicated that the performance of the label reconstruction-based approach may depend on the quality of the labels, and it might not lead to performance improvements on certain conditions.", "bbox": [ 507, 582, 882, 694 ], "page_idx": 4 }, { "type": "text", "text": "Experimental Settings", "text_level": 1, "bbox": [ 507, 707, 689, 722 ], "page_idx": 4 }, { "type": "text", "text": "Statistics about Steam dataset are provided in Table 7. Similar to Yelp and Amazon-book, Steam dataset includes user reviews on items that users have interacted with. However, Steam features a much higher user-to-item ratio, a significantly larger average number of interactions per user, and a much higher total number of interactions. Moreover, unlike Yelp and Amazon-book, Steam does not provide user ratings for each item. Therefore, we could not filter interactions based on ratings and only excluded users with fewer than 5 interactions. The evaluation metrics, baselines, and setup are", "bbox": [ 507, 728, 882, 920 ], "page_idx": 4 }, { "type": "page_number", "text": "7217", "bbox": [ 480, 927, 519, 940 ], "page_idx": 4 }, { "type": "table", "img_path": "images/1c5601ccc28c93cb2a9a9e84a37699399dda366b62b91d449333abb3427cde9d.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td rowspan=\"2\">Models</td><td colspan=\"4\">Steam</td></tr><tr><td>R@10</td><td>N@10</td><td>R@20</td><td>N@20</td></tr><tr><td>STAMP</td><td>0.1613</td><td>0.1317</td><td>0.1924</td><td>0.1395</td></tr><tr><td>HGN</td><td>0.0840</td><td>0.0443</td><td>0.1261</td><td>0.0548</td></tr><tr><td>GRU4Rec</td><td>0.1732</td><td>0.1301</td><td>0.2176</td><td>0.1413</td></tr><tr><td>SASRec</td><td>0.1814</td><td>0.1392</td><td>0.2277</td><td>0.1508</td></tr><tr><td>BERT4Rec</td><td>0.1288</td><td>0.0871</td><td>0.1767</td><td>0.0991</td></tr><tr><td>NARM</td><td>0.1775</td><td>0.1311</td><td>0.2256</td><td>0.1432</td></tr><tr><td>Ours</td><td>0.1521</td><td>0.1135</td><td>0.2002</td><td>0.1255</td></tr><tr><td>Improvement</td><td>-16.2%</td><td>-18.5%</td><td>-12.1%</td><td>-16.8%</td></tr></table>", "bbox": [ 115, 82, 485, 227 ], "page_idx": 5 }, { "type": "table", "img_path": "images/e865a8be60bd666b3479bb088cec78eedcd685e578ec97fa1660876691bc0b92.jpg", "table_caption": [ "Table 8: Performance comparison of sequential recommendation models on Steam dataset." ], "table_footnote": [], "table_body": "<table><tr><td colspan=\"3\">Methods</td><td colspan=\"4\">Steam</td></tr><tr><td>User</td><td>PL</td><td>Recon.</td><td>R@10</td><td>N@10</td><td>R@20</td><td>N@20</td></tr><tr><td>X</td><td>X</td><td>X</td><td>0.1443</td><td>0.1108</td><td>0.1842</td><td>0.1209</td></tr><tr><td>O</td><td>X</td><td>X</td><td>0.1424</td><td>0.1077</td><td>0.1811</td><td>0.1174</td></tr><tr><td>O</td><td>O</td><td>X</td><td>0.1398</td><td>0.1060</td><td>0.1789</td><td>0.1160</td></tr><tr><td>O</td><td>O</td><td>O</td><td>0.1534</td><td>0.1143</td><td>0.2001</td><td>0.1260</td></tr><tr><td colspan=\"3\">Improvement</td><td>6.3%</td><td>3.2%</td><td>8.6%</td><td>4.2%</td></tr></table>", "bbox": [ 119, 278, 485, 394 ], "page_idx": 5 }, { "type": "text", "text": "Table 9: Comparing methods for using user embedding (User), projection layer (PL) and reconstruction loss (Recon.). All embeddings are randomly initialized.", "bbox": [ 112, 403, 485, 447 ], "page_idx": 5 }, { "type": "text", "text": "identical to those used for Yelp and Amazon-book dataset.", "bbox": [ 112, 458, 485, 491 ], "page_idx": 5 }, { "type": "text", "text": "Experiment Analysis", "text_level": 1, "bbox": [ 112, 502, 284, 519 ], "page_idx": 5 }, { "type": "text", "text": "Table 8 shows the performance comparison between our model and baseline models on Steam dataset. We can observe that our model did not achieve the best or the second-best results in any of the metrics on Steam dataset.", "bbox": [ 112, 524, 487, 602 ], "page_idx": 5 }, { "type": "text", "text": "We conducted a similar analysis to that of Yelp and Amazon-book datasets to evaluate the effectiveness of the reconstruction loss on Steam. The results are shown in Table 9. The performance improvement on Steam was much smaller compared to Yelp and Amazon-book.", "bbox": [ 112, 605, 487, 702 ], "page_idx": 5 }, { "type": "text", "text": "Label quality and noises The inclusion of a high volume of interactions without filtering the dataset can introduce noises. Since Steam dataset does not have rating, all reviews were included in the training. This means the model may be learning from labels and interactions that are not truly indicative of user preferences, reducing the effectiveness of the label reconstruction-based approach.", "bbox": [ 112, 711, 487, 840 ], "page_idx": 5 }, { "type": "text", "text": "Limitation Conclusion", "text_level": 1, "bbox": [ 112, 852, 294, 866 ], "page_idx": 5 }, { "type": "text", "text": "The performance of ReLRec model on Steam dataset underscores the challenges of handling high interaction volumes and the need for mechanisms", "bbox": [ 112, 873, 487, 920 ], "page_idx": 5 }, { "type": "text", "text": "that can effectively differentiate and manage low-quality interactions. Future work should focus on enhancing the model's ability to understand and mitigate the impact of negative or irrelevant interactions. By improving the model's capacity to handle diverse interaction data, we can enhance its robustness and overall performance in high-interaction environments like Steam dataset.", "bbox": [ 507, 84, 884, 212 ], "page_idx": 5 }, { "type": "text", "text": "References", "text_level": 1, "bbox": [ 510, 242, 608, 256 ], "page_idx": 5 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "Arkadeep Acharya, Brijraj Singh, and Naoyuki Onoe. 2023. Llm based generation of item-description for recommendation system. In Proceedings of the 17th ACM Conference on Recommender Systems. ACM, 1204-1207.", "Nabiha Asghar. 2016. Yelp dataset challenge: Review rating prediction. arXiv preprint arXiv:1605.05362 (2016).", "Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. 2020. Language models are few-shot learners. Advances in neural information processing systems 33 (2020), 1877-1901.", "Yongjun Chen, Zhiwei Liu, Jia Li, Julian McAuley, and Caiming Xiong. 2022. Intent contrastive learning for sequential recommendation. In Proceedings of the ACM Web Conference 2022. 2172-2182.", "Shijie Geng, Shuchang Liu, Zuohui Fu, Yingqiang Ge, and Yongfeng Zhang. 2022. Recommendation as language processing (rlp): A unified pretrain, personalized prompt & predict paradigm (p5). In Proceedings of the 16th ACM Conference on Recommender Systems. 299-315.", "Dietmar Jannach and Malte Ludewig. 2017. When recurrent neural networks meet the neighborhood for session-based recommendation. In Proceedings of the eleventh ACM conference on recommender systems. 306-310.", "Wang-Cheng Kang and Julian McAuley. 2018. Self-attentive sequential recommendation. In 2018 IEEE international conference on data mining (ICDM). IEEE, 197-206.", "Kirandeep Kaur and Chirag Shah. 2024. Efficient and Responsible Adaptation of Large Language Models for Robust Top-k Recommendations. arXiv preprint arXiv:2405.00824 (2024).", "Jing Li, Pengjie Ren, Zhumin Chen, Zhaochun Ren, Tao Lian, and Jun Ma. 2017. Neural attentive session-based recommendation. In Proceedings of the 2017 ACM on Conference on Information and Knowledge Management. 1419-1428." ], "bbox": [ 510, 266, 884, 920 ], "page_idx": 5 }, { "type": "page_number", "text": "7218", "bbox": [ 480, 928, 519, 940 ], "page_idx": 5 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "Lei Li, Yongfeng Zhang, and Li Chen. 2023b. Prompt distillation for efficient llm-based recommendation. In Proceedings of the 32nd ACM International Conference on Information and Knowledge Management. 1348-1357.", "Xinhang Li, Chong Chen, Xiangyu Zhao, Yong Zhang, and Chunxiao Xing. 2023a. E4SRec: An elegant effective efficient extensible solution of large language models for sequential recommendation. arXiv preprint arXiv:2312.02443 (2023).", "Zhizhong Li and Derek Hoiem. 2017. Learning without forgetting. IEEE transactions on pattern analysis and machine intelligence 40, 12 (2017), 2935-2947.", "Qiao Liu, Yifu Zeng, Refuoe Mokhosi, and Haibin Zhang. 2018. STAMP: short-term attention/memory priority model for session-based recommendation. In Proceedings of the 24th ACM SIGKDD international conference on knowledge discovery & data mining. 1831-1839.", "Yun Luo, Zhen Yang, Fandong Meng, Yafu Li, Jie Zhou, and Yue Zhang. 2023. An empirical study of catastrophic forgetting in large language models during continual fine-tuning. arXiv preprint arXiv:2308.08747 (2023).", "Chen Ma, Peng Kang, and Xue Liu. 2019. Hierarchical gating networks for sequential recommendation. In Proceedings of the 25th ACM SIGKDD international conference on knowledge discovery & data mining. 825-833.", "Julian McAuley, Christopher Targett, Qinfeng Shi, and Anton Van Den Hengel. 2015. Image-based Recommendations on Styles and Substitutes. In Proceedings of the 38th International ACM SIGIR Conference on Research and Development in Information Retrieval. 43-52.", "Lin Ning, Luyang Liu, Jiaxing Wu, Neo Wu, Devora Berlowitz, Sushant Prakash, Bradley Green, Shawn O'Banion, and Jun Xie. 2024. User-LLM: Efficient LLM Contextualization with User Embeddings. arXiv preprint arXiv:2402.13598 (2024).", "Xubin Ren, Wei Wei, Lianghao Xia, Lixin Su, Suqi Cheng, Junfeng Wang, Dawei Yin, and Chao Huang. 2024. Representation learning with large language models for recommendation. In Proceedings of the ACM on Web Conference 2024. 3464-3475.", "Fei Sun, Jun Liu, Jian Wu, Changhua Pei, Xiao Lin, Wenwu Ou, and Peng Jiang. 2019. BERT4Rec: Sequential recommendation with bidirectional encoder representations from transformer. In Proceedings of the 28th ACM international conference on information and knowledge management. 1441-1450.", "Yong Kiam Tan, Xinxing Xu, and Yong Liu. 2016. Improved recurrent neural networks for session-based recommendations. In Proceedings of the 1st workshop on deep learning for recommender systems. 17-22." ], "bbox": [ 115, 85, 489, 917 ], "page_idx": 6 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "Jiaxi Tang and Ke Wang. 2018. Personalized top-n sequential recommendation via convolutional sequence embedding. In Proceedings of the eleventh ACM international conference on web search and data mining. 565-573.", "Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, Dan Bikel, Lukas Blecher, Cristian Canton Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, Brian Fuller, Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony Hartshorn, Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez, Madian Khabsa, Isabel Kloumann, Artem Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee, Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinez, Todor Mihaylov, Pushkar Mishra, Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi, Alan Schelten, Ruan Silva, Eric Michael Smith, Ranjan Subramanian, Xiaoqing Ellen Tan, Binh Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu, Zheng Yan, Iliyan Zarov, Yuchen Zhang, Angela Fan, Melanie Kambadur, Sharan Narang, Aurelien Rodriguez, Robert Stojnic, Sergey Edunov, and Thomas Scialom. 2023. Llama 2: Open Foundation and FineTuned Chat Models. arXiv:2307.09288 [cs.CL]", "Jianling Wang, Haokai Lu, James Caverlee, Ed H Chi, and Minmin Chen. 2024b. Large Language Models as Data Augmenters for Cold-Start Item Recommendation. In Companion Proceedings of the ACM on Web Conference 2024. 726-729.", "Wenhui Wang, Hangbo Bao, Shaohan Huang, Li Dong, and Furu Wei. 2020. Minilmv2: Multihead self-attention relation distillation for compressing pretrained transformers. arXiv preprint arXiv:2012.15828 (2020).", "Xinfeng Wang, Jin Cui, Yoshimi Suzuki, and Fumiyo Fukumoto. 2024a. RDRec: Rationale Distillation for LLM-based Recommendation. arXiv preprint arXiv:2405.10587 (2024).", "Wei Wei, Xubin Ren, Jiabin Tang, Qinyong Wang, Lixin Su, Suqi Cheng, Junfeng Wang, Dawei Yin, and Chao Huang. 2024. Llmrec: Large language models with graph augmentation for recommendation. In Proceedings of the 17th ACM International Conference on Web Search and Data Mining. 806-815.", "Yunjia Xi, Weiwen Liu, Jianghao Lin, Jieming Zhu, Bo Chen, Ruiming Tang, Weinan Zhang, Rui Zhang, and Yong Yu. 2023. Towards open-world recommendation with knowledge augmentation from large language models. arXiv preprint arXiv:2306.10933 (2023).", "Xu Xie, Fei Sun, Zhaoyang Liu, Shiwen Wu, Jinyang Gao, Jiandong Zhang, Bolin Ding, and Bin Cui. 2022. Contrastive Learning for Sequential Recommendation. In 2022 IEEE 38th International Conference on" ], "bbox": [ 510, 85, 882, 920 ], "page_idx": 6 }, { "type": "page_number", "text": "7219", "bbox": [ 480, 928, 519, 940 ], "page_idx": 6 }, { "type": "text", "text": "Data Engineering (ICDE). IEEE Computer Society, 1259-1273.", "bbox": [ 132, 85, 487, 112 ], "page_idx": 7 }, { "type": "text", "text": "Lanling Xu, Zhen Tian, Gaowei Zhang, Junjie Zhang, Lei Wang, Bowen Zheng, Yifan Li, Jiakai Tang, Zeyu Zhang, Yupeng Hou, Xingyu Pan, Wayne Xin Zhao, Xu Chen, and Ji-Rong Wen. 2023. Towards a More User-Friendly and Easy-to-Use Benchmark Library for Recommender Systems. In SIGIR. ACM, 2837-2847.", "bbox": [ 115, 121, 489, 212 ], "page_idx": 7 }, { "type": "text", "text": "Xiaohan Yu, Li Zhang, Xin Zhao, Yue Wang, and Zhongrui Ma. 2024. RA-Rec: An Efficient ID Representation Alignment Framework for LLM-based Recommendation. arXiv preprint arXiv:2402.04527 (2024).", "bbox": [ 114, 223, 487, 288 ], "page_idx": 7 }, { "type": "text", "text": "Jujia Zhao, Wenjie Wang, Chen Xu, Zhaochun Ren, See-Kiong Ng, and Tat-Seng Chua. 2024. LLM-based Federated Recommendation. arXiv preprint arXiv:2402.09959 (2024).", "bbox": [ 114, 299, 487, 351 ], "page_idx": 7 }, { "type": "text", "text": "Bowen Zheng, Yupeng Hou, Hongyu Lu, Yu Chen, Wayne Xin Zhao, and Ji-Rong Wen. 2023. Adapting large language models by integrating collaborative semantics for recommendation. arXiv preprint arXiv:2311.09049 (2023).", "bbox": [ 114, 361, 487, 428 ], "page_idx": 7 }, { "type": "text", "text": "Yaochen Zhu, Liang Wu, Qi Guo, Liangjie Hong, and Jundong Li. 2024. Collaborative large language model for recommender systems. In Proceedings of the ACM on Web Conference 2024. 3162-3172.", "bbox": [ 115, 437, 489, 491 ], "page_idx": 7 }, { "type": "text", "text": "A Appendix", "text_level": 1, "bbox": [ 114, 502, 238, 519 ], "page_idx": 7 }, { "type": "text", "text": "A.1 Pseudo Labels", "text_level": 1, "bbox": [ 114, 527, 278, 542 ], "page_idx": 7 }, { "type": "text", "text": "This section provides additional examples related to the generation and training of pseudo labels. Fig. 4 shows examples of user and item input prompts and their answer labels. A random prompt is selected from the list of prompts, and inserted into the model along with a user/item token. During evaluation, the similarity score between the reconstructed label and the answer label is measured using cosine similarity. The similarity in user and item label reconstruction was assessed using \"all-MiniLM-L6-v2\" model (Wang et al., 2020).", "bbox": [ 112, 549, 489, 726 ], "page_idx": 7 }, { "type": "text", "text": "A.2 Further Analyses", "text_level": 1, "bbox": [ 114, 736, 302, 752 ], "page_idx": 7 }, { "type": "text", "text": "A.2.1 Sequential Prediction Results", "text_level": 1, "bbox": [ 114, 757, 408, 772 ], "page_idx": 7 }, { "type": "text", "text": "Based on our experiments with the Yelp and Amazon-book datasets, most of our performance metrics exceeded those of the baseline models. We examined the user labels and the labels of the top $N$ recommended items. Fig. 5 shows example labels for users, the correct answer items and candidate items, included in the top-5 recommendations.", "bbox": [ 112, 776, 485, 888 ], "page_idx": 7 }, { "type": "text", "text": "From these examples, we can assume that the contextual information of both the user and the", "bbox": [ 112, 890, 485, 919 ], "page_idx": 7 }, { "type": "text", "text": "User Reconstruction", "text_level": 1, "bbox": [ 517, 91, 631, 101 ], "page_idx": 7 }, { "type": "text", "text": "Input: Regarding uid_1, below are the details.", "bbox": [ 517, 101, 759, 110 ], "page_idx": 7 }, { "type": "text", "text": "Answer: This user has a diverse palate and enjoys exploring new and unique dining experiences. They are drawn to traditional bakeries and ice cream parlors, as well as casual and lively bars with a wide selection of food and drinks....", "bbox": [ 517, 111, 870, 149 ], "page_idx": 7 }, { "type": "text", "text": "Item Reconstruction", "text_level": 1, "bbox": [ 517, 158, 631, 168 ], "page_idx": 7 }, { "type": "text", "text": "Input: Specifics about $iid\\_1$ are provided here.", "bbox": [ 517, 168, 761, 178 ], "page_idx": 7 }, { "type": "text", "text": "Answer: With a focus on speed and affordability, iid_1 attracts cust omers who enjoy the efficiency of a fast-food joint but crave the a bility to customize their meals, even if it means accepting...", "bbox": [ 517, 178, 870, 208 ], "page_idx": 7 }, { "type": "table", "img_path": "images/88b36c58322ffdb9c3e3e6c844073e5ef304649d3a689b7faa9c4c61c61a5145.jpg", "table_caption": [ "Figure 4: Examples of user/item reconstruction." ], "table_footnote": [ "Table 10: Comparing methods for using linear projection attached to word token embedding." ], "table_body": "<table><tr><td rowspan=\"2\">Methods</td><td colspan=\"2\">Yelp</td><td colspan=\"2\">Similarity</td></tr><tr><td>R@20</td><td>N@20</td><td>Item</td><td>User</td></tr><tr><td>w/o proj.</td><td>0.0995</td><td>0.0385</td><td>0.5261</td><td>0.7507</td></tr><tr><td>1-layer</td><td>0.1048</td><td>0.0406</td><td>0.4538</td><td>0.7211</td></tr><tr><td>2-layer</td><td>0.1039</td><td>0.0394</td><td>0.0875</td><td>0.3579</td></tr></table>", "bbox": [ 514, 266, 880, 351 ], "page_idx": 7 }, { "type": "text", "text": "items is effectively integrated into the sequential prediction results. ReLRec suggests items that closely match the labels of the users and the correct answer items. The suggested candidates had labels that closely resembled those of the answer items and aligned well with the user's preferences.", "bbox": [ 507, 418, 880, 514 ], "page_idx": 7 }, { "type": "text", "text": "This alignment indicates that ReLRec is capable of capturing and utilizing rich textual information to enhance recommendation accuracy. By integrating both user and item labels into the prediction process, ReLRec is able to provide recommendations that are more likely to match the user's preferences, achieving higher rankings compared to models that only utilize sequential data.", "bbox": [ 507, 514, 882, 644 ], "page_idx": 7 }, { "type": "text", "text": "A.2.2 Text Projection Layer", "text_level": 1, "bbox": [ 507, 657, 744, 673 ], "page_idx": 7 }, { "type": "text", "text": "To preserve the knowledge of LLMs, we froze the word embedding and transformer layers and examined the impact of adding a projection layer. As Table 3 demonstrates, adding projection layer was effective when ReLRec trains textual labels. Additionally, we investigated the optimal number of layers required for the model to effectively train on the contextual information of users/items. As detailed in Table 10, using more than one layer resulted in a decline in performance. This suggests that adding more layers can disrupt the model's ability to reconstruct textual information and degrade overall performance.", "bbox": [ 505, 678, 882, 887 ], "page_idx": 7 }, { "type": "text", "text": "We also conducted experiment to determine the optimal projection layer dimension for ReLRec's", "bbox": [ 507, 889, 880, 921 ], "page_idx": 7 }, { "type": "page_number", "text": "7220", "bbox": [ 480, 927, 519, 940 ], "page_idx": 7 }, { "type": "text", "text": "User-1: User enjoys Italian delis, American classics, high-quality burgers, creative soups, generous deli portions, seafood, and friendly service. Answer item: Mamma Italia's is a casual restaurant in Eagle with diverse menu, generous portions, cozy ambiance, and friendly staff.", "bbox": [ 126, 93, 815, 115 ], "page_idx": 8 }, { "type": "list", "sub_type": "text", "list_items": [ "C1: Upscale grill with classic American dishes, efficient service, trendy atmosphere, and pet-friendly outdoor dining.", "C2: Classic Italian dining in Philadelphia with unassuming ambiance, generous portions, and excellent service in a nostalgic atmosphere.", "C3: Las Palmas offers casual, affordable Tex-Mex with friendly service, quick service, and popular queso, although some find food mediocre.", "C4: iid_9 in Safety Harbor offers high-end wines, build-your-own charcuterie boards, convenient credit card system, cozy atmosphere, and attentive staff." ], "bbox": [ 126, 121, 868, 159 ], "page_idx": 8 }, { "type": "text", "text": "User-2: User seeks high-quality, diverse dining experiences with fresh ingredients, variety of options, cozy ambiance, and attentive service.", "bbox": [ 126, 179, 801, 189 ], "page_idx": 8 }, { "type": "text", "text": "Answer item: Modern, trendy atmosphere with diverse menu, quality food/drink, outdoor seating, attention to detail, budget-friendly, innovative bruc h, well-cooked meats/sauces.", "bbox": [ 126, 189, 863, 208 ], "page_idx": 8 }, { "type": "list", "sub_type": "text", "list_items": [ "C1: Cozy and lively atmosphere with varied menu, wide beer selection, great service, steak and prime rib specialties.", "C2: iid_99 offers diverse pizzas, extensive beer selection, cozy atmosphere, and excellent service for pizza and beer lovers.", "C3: iid_88 in New Orleans offers house beers, bar food, and a lively atmosphere, popular with locals and tourists.", "C4: Versatile venue with good food and large portions, suitable for families, sports fans, and casual dining, but prices can be high." ], "bbox": [ 126, 215, 761, 254 ], "page_idx": 8 }, { "type": "text", "text": "User-3: Enjoys unique dining experiences, colorful food, generous portions, attentive staff, diverse choices, and specialty/organic options.", "bbox": [ 126, 269, 796, 280 ], "page_idx": 8 }, { "type": "text", "text": "Answer item: Offers diverse menu, attentive service, and pleasant atmosphere, suitable for casual or special occasions.", "bbox": [ 126, 280, 707, 290 ], "page_idx": 8 }, { "type": "list", "sub_type": "text", "list_items": [ "C1: iD_2 offers interactive dining with a wide variety of food options, ideal for meat and seafood lovers in a casual upscale setting.", "C2: Popular Philly spot offering delicious breakfast/brunch dishes, attentive service, endless coffee, and cozy atmosphere at reasonable prices.", "C3: Casual Latin American restaurant specializing in Guatemalaan food, with vegetarian options, variety of flavors, and friendly atmosphere.", "C4: Popular comfort food spot in New Orleans' French Quarter with diverse crowd, offering cheap eats, breakfast, burgers, and friendly service." ], "bbox": [ 126, 297, 821, 336 ], "page_idx": 8 }, { "type": "text", "text": "Figure 5: Example labels for user, answer item and candidate item (C) labels from Yelp dataset. Underlined words are features that overlaps with the user and the answer item.", "bbox": [ 112, 356, 880, 384 ], "page_idx": 8 }, { "type": "table", "img_path": "images/7025d0bd635de134e391c272e56770f6b32e0ffbce64eba8a1a2a4ed91301248.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td rowspan=\"2\">Dimension</td><td colspan=\"4\">Yelp</td></tr><tr><td>R@10</td><td>N@10</td><td>R@20</td><td>N@20</td></tr><tr><td>64</td><td>0.0393</td><td>0.0198</td><td>0.0657</td><td>0.0264</td></tr><tr><td>128</td><td>0.0514</td><td>0.0255</td><td>0.0865</td><td>0.0344</td></tr><tr><td>256</td><td>0.0620</td><td>0.0300</td><td>0.1034</td><td>0.0401</td></tr><tr><td>512</td><td>0.0599</td><td>0.0292</td><td>0.1048</td><td>0.0406</td></tr><tr><td>1024</td><td>0.0530</td><td>0.0256</td><td>0.0899</td><td>0.0349</td></tr><tr><td>2048</td><td>0.0487</td><td>0.0233</td><td>0.0889</td><td>0.0334</td></tr><tr><td>4096</td><td>0.0455</td><td>0.0220</td><td>0.0793</td><td>0.0304</td></tr></table>", "bbox": [ 119, 463, 485, 595 ], "page_idx": 8 }, { "type": "table", "img_path": "images/7dd537d17ba9b9a02cc857018713241d753e502aa86fc88e6720214bf9d01a61.jpg", "table_caption": [ "Table 11: Comparing dimensional size of linear projection on Yelp dataset." ], "table_footnote": [], "table_body": "<table><tr><td>Model</td><td>Inference Speed</td></tr><tr><td>Llama2-seq</td><td>0.2521 batch/s</td></tr><tr><td>Ours</td><td>0.2579 batch/s</td></tr></table>", "bbox": [ 173, 756, 430, 821 ], "page_idx": 8 }, { "type": "text", "text": "Table 12: Comparison on inference speed of Llama2 and ReLRec.", "bbox": [ 112, 831, 485, 859 ], "page_idx": 8 }, { "type": "text", "text": "embedding, ranging from 64 to 4096 dimensions. 11 presents the performance results on the Yelp dataset across different dimension sizes. The results demonstrate that a dimension size of 512 achieved the highest performance. While increasing the dimension size from 64 to 512 led to improved performance, further increasing it beyond 512 resulted in diminishing returns. This suggests that while larger dimensions provide more capacity, they may reduce model's ability to generalize effectively. Consequently, we selected 512 as the optimal dimension size for the projection layer in our final model configuration.", "bbox": [ 507, 410, 884, 619 ], "page_idx": 8 }, { "type": "text", "text": "A.3 Inference", "text_level": 1, "bbox": [ 509, 638, 633, 653 ], "page_idx": 8 }, { "type": "text", "text": "In ReLRec, the pre-trained word embeddings and transformer layers remain frozen, with the main modifications being the addition of a linear projection layer, user embedding, and item embedding. Consequently, as shown in Table 12, the inference speed of our model closely matches that of Llama2-seq, which refers to recommendation prediction using Llama2-7b (Touvron et al., 2023) with only the item embedding attached. The inference experiments were conducted on a single NVIDIA RTX A6000 with a batch size of 16. This minimal difference in inference speed highlights the efficiency of our approach, allowing for the potential application of existing techniques to further accelerate the process. Future work will focus on exploring additional methods to optimize inference without", "bbox": [ 507, 663, 884, 921 ], "page_idx": 8 }, { "type": "page_number", "text": "7221", "bbox": [ 480, 927, 517, 940 ], "page_idx": 8 }, { "type": "text", "text": "altering the core transformer architecture.", "bbox": [ 115, 85, 423, 99 ], "page_idx": 9 }, { "type": "page_number", "text": "7222", "bbox": [ 480, 928, 519, 940 ], "page_idx": 9 }]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112[ [ { "type": "title", "bbox": [ 0.15, 0.085, 0.852, 0.126 ], "angle": 0, "content": "Enhancing Large Language Model Based Sequential Recommender Systems with Pseudo Labels Reconstruction" }, { "type": "text", "bbox": [ 0.241, 0.136, 0.761, 0.17 ], "angle": 0, "content": "Hyunsoo Na\\(^{1}\\), Minseok Gang\\(^{1}\\), Youngrok Ko\\(^{1}\\), Jinseok Seol\\(^{2}\\), Sang-goo Lee\\(^{1,3}\\)" }, { "type": "text", "bbox": [ 0.167, 0.171, 0.83, 0.204 ], "angle": 0, "content": "\\(^{1}\\)Seoul National University, \\(^{2}\\)Korea Advanced Institute of Science and Technology \\(^{3}\\)IntelliSys, Korea" }, { "type": "text", "bbox": [ 0.23, 0.205, 0.766, 0.237 ], "angle": 0, "content": "{monchana, alstjr3754, yrko1, sglee}@europa.snu.ac.kr jsseol@kaist.ac.kr" }, { "type": "title", "bbox": [ 0.261, 0.261, 0.341, 0.277 ], "angle": 0, "content": "Abstract" }, { "type": "text", "bbox": [ 0.145, 0.29, 0.461, 0.575 ], "angle": 0, "content": "Large language models (LLMs) are utilized in various studies, and have demonstrated potential to function independently as a recommendation model. However, training on user-item interaction sequences and additional textual information such as reviews often modifies the pre-trained weights of LLMs, diminishing their inherent strength in constructing and comprehending natural language sentences. In this study, we propose a reconstruction-based LLM recommendation model (ReLURec) that harnesses the feature extraction capability of LLMs, while preserving LLMs' sentence generation abilities. We reconstruct the user and item pseudo-labels generated from user reviews while training on sequential data, aiming to exploit the key features of both users and items. Experimental results demonstrate the efficacy of label reconstruction in sequential recommendation tasks." }, { "type": "title", "bbox": [ 0.115, 0.589, 0.26, 0.604 ], "angle": 0, "content": "1 Introduction" }, { "type": "text", "bbox": [ 0.117, 0.615, 0.49, 0.887 ], "angle": 0, "content": "Recommender systems have achieved significant advancement, becoming essential in various domains such as e-commerce, streaming services, and social media. Despite their widespread application, traditional methods face several limitations, particularly in extracting and effectively utilizing textual information, such as user reviews, in addition to interaction data. Traditional models, (Kang and McAuley, 2018; Jannach and Ludewig, 2017; Sun et al., 2019; Ma et al., 2019; Tang and Wang, 2018), while effective in leveraging numerical data such as ratings and purchase history, often struggle with capturing the nuanced contextual information present in user reviews and other textual data. This limits their ability to fully understand user preferences and provide highly personalized recommendations." }, { "type": "text", "bbox": [ 0.114, 0.89, 0.489, 0.921 ], "angle": 0, "content": "Large language models (LLMs), like GPT (Brown et al., 2020), have transformed the field" }, { "type": "text", "bbox": [ 0.508, 0.261, 0.885, 0.55 ], "angle": 0, "content": "of recommender systems by excelling in understanding and generating natural languages. They effectively address the limitations of traditional models in handling textual data and are actively studied for their potential in various recommendation tasks. Several efforts have leveraged LLMs for zero/few-shot recommendation by incorporating user history and candidate items as input prompt (Zheng et al., 2023; Zhu et al., 2024; Zhao et al., 2024). Additionally, LLMs have been employed to address cold-start problem (Xi et al., 2023; Wang et al., 2024b) and have been utilized for data augmentation purposes (Wei et al., 2024; Ning et al., 2024; Ren et al., 2024). Moreover, studies that have aimed to train LLMs via efficient measures (Li et al., 2023a,b; Yu et al., 2024; Kaur and Shah, 2024) have demonstrated their potential to function as recommendation models." }, { "type": "text", "bbox": [ 0.508, 0.552, 0.885, 0.744 ], "angle": 0, "content": "LLM-based recommender systems leverage pretrained knowledge to understand diverse textual inputs and generate rich textual representations (Acharya et al., 2023; Wang et al., 2024a). This allows LLMs to provide contextually relevant suggestions that align closely with user preferences. However, training LLMs on recommendation datasets can disrupt their pre-trained weights, especially their generation capabilities (Li and Hoiem, 2017; Luo et al., 2023). Therefore, new methods are needed to use LLMs effectively while preserving their strengths." }, { "type": "text", "bbox": [ 0.508, 0.745, 0.887, 0.922 ], "angle": 0, "content": "Our proposed methodology addresses such challenges by leveraging LLMs' advanced textual representation generation in a sequential recommendation framework. To preserve the pre-trained knowledge of the LLM, we implemented separate embeddings for users and items while freezing the LLM's transformer layers and the word embedding. This ensures that the model retains its ability to construct coherent sentences. To train user and item embedding, we generated pseudo-labels for users and items based on their reviews. Finally, we" }, { "type": "page_number", "bbox": [ 0.481, 0.928, 0.521, 0.941 ], "angle": 0, "content": "7213" }, { "type": "footer", "bbox": [ 0.218, 0.946, 0.78, 0.973 ], "angle": 0, "content": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 7213-7222 November 12-16, 2024 ©2024 Association for Computational Linguistics" } ], [ { "type": "image", "bbox": [ 0.115, 0.085, 0.486, 0.2 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.117, 0.205, 0.295, 0.219 ], "angle": 0, "content": "(a) User's review on an item." }, { "type": "image_caption", "bbox": [ 0.306, 0.2, 0.486, 0.219 ], "angle": 0, "content": "(b) Use item pseudo-label generation." }, { "type": "image_caption", "bbox": [ 0.114, 0.23, 0.487, 0.272 ], "angle": 0, "content": "Figure 1: Pseudo-label generation. (a) refers the review from a user to an item and (b) shows how reviews are concatenated to generate pseudo user/item label." }, { "type": "text", "bbox": [ 0.113, 0.299, 0.486, 0.331 ], "angle": 0, "content": "trained the model using both sequential data and the pseudo-labels simultaneously." }, { "type": "text", "bbox": [ 0.113, 0.332, 0.487, 0.508 ], "angle": 0, "content": "The main contributions of this paper are: (1) proposing a reconstruction-based LLM model (ReLURec) that captures and effectively integrates user/item label features for next item predictions; (2) introducing a methodology that leverages the feature extraction capabilities of LLMs while preserving their inherent sentence generation abilities; and (3) demonstrating that encapsulating rich contextual information in labels and integrating it into sequential recommendations enhance the model's ability to understand and predict user preferences." }, { "type": "title", "bbox": [ 0.114, 0.522, 0.32, 0.539 ], "angle": 0, "content": "2 Proposed Approach" }, { "type": "text", "bbox": [ 0.113, 0.549, 0.488, 0.629 ], "angle": 0, "content": "In this study, we propose ReLRec, a model composed of two primary components: the creation of user/item embeddings with pseudo-labels, and the training process that incorporates both sequential data and textual labels." }, { "type": "title", "bbox": [ 0.114, 0.643, 0.354, 0.657 ], "angle": 0, "content": "2.1 Pseudo-label Generation" }, { "type": "text", "bbox": [ 0.113, 0.664, 0.489, 0.921 ], "angle": 0, "content": "We employed the RLMRec profile generation method (Ren et al., 2024) to create pseudo-labels for both users and items. As depicted in Fig. 1, we first aggregated and concatenated reviews associated with each item to construct an item profile. Similarly, user profiles were generated by concatenating the reviews submitted by each user. These concatenated reviews were subsequently passed to ChatGPT (i.e., gpt-3.5-turbo), which was utilized to produce labels for both items and users. Furthermore, the initially generated labels were reprocessed through ChatGPT to obtain variations in different formats. To capture diverse and meaningful features in the labels, we generated multiple label versions, all maintaining consistent contextual meaning, and randomly selected one for each" }, { "type": "image", "bbox": [ 0.513, 0.085, 0.882, 0.278 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.509, 0.291, 0.884, 0.319 ], "angle": 0, "content": "Figure 2: Illustration of ReLRec, sequential recommendation with label reconstruction." }, { "type": "table", "bbox": [ 0.514, 0.334, 0.882, 0.389 ], "angle": 0, "content": "<table><tr><td>Dataset</td><td>#User</td><td>#Item</td><td>#Inter.</td><td>#Avg.</td><td>Sparsity</td></tr><tr><td>Yelp</td><td>11,092</td><td>11,011</td><td>321,581</td><td>29.0</td><td>99.737%</td></tr><tr><td>Book</td><td>10,830</td><td>9,333</td><td>211,909</td><td>19.6</td><td>99.790%</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.509, 0.398, 0.884, 0.442 ], "angle": 0, "content": "Table 1: Dataset statistics. #User, #Item, #Inter., #Avg. denote the number of users, items, total interactions, and average user interactions respectively." }, { "type": "text", "bbox": [ 0.508, 0.468, 0.884, 0.516 ], "angle": 0, "content": "training iteration. This approach ensures that the model is exposed to varied yet coherent label representations during training." }, { "type": "title", "bbox": [ 0.509, 0.53, 0.716, 0.544 ], "angle": 0, "content": "2.2 RelRec Architecture" }, { "type": "text", "bbox": [ 0.507, 0.552, 0.884, 0.92 ], "angle": 0, "content": "LLM-based sequential recommender systems tend to overlook the LLM's capability to construct coherent sentences, focusing primarily on analyzing sequential data. The implementation of fine-tuned transformer layers and adapters to capture sequential patterns frequently results in a diminished capacity to generate relevant sentences and accurately capture contextual meaning. ReLRec leverages the capabilities of LLMs to comprehend and utilize textual information, incorporating rich, nuanced data encapsulated in pseudo-labels generated from user reviews. As shown in Figure 2, we implemented separate embeddings for users and items, initialized with the average of the word token embedding weights. A unique token is assigned to each user/item id (i.e., \"iid-1\" is a single token) to represent the attributes of each user/items. With the transformer layers and word embeddings frozen to preserve the LLM's inherent ability to understand and generate natural language, we added a projection layer to each embedding to map and integrate the pre-trained knowledge with newly trained text labels." }, { "type": "page_number", "bbox": [ 0.481, 0.929, 0.521, 0.941 ], "angle": 0, "content": "7214" } ], [ { "type": "table", "bbox": [ 0.116, 0.083, 0.885, 0.281 ], "angle": 0, "content": "<table><tr><td rowspan=\"2\">Models</td><td colspan=\"6\">Yelp</td><td colspan=\"6\">Amazon-book</td></tr><tr><td>R@5</td><td>N@5</td><td>R@10</td><td>N@10</td><td>R@20</td><td>N@20</td><td>R@5</td><td>N@5</td><td>R@10</td><td>N@10</td><td>R@20</td><td>N@20</td></tr><tr><td>STAMP</td><td>0.0232</td><td>0.0145</td><td>0.0393</td><td>0.0196</td><td>0.0673</td><td>0.0267</td><td>0.0699</td><td>0.0564</td><td>0.0908</td><td>0.0631</td><td>0.1217</td><td>0.0709</td></tr><tr><td>HGN</td><td>0.0229</td><td>0.0140</td><td>0.0433</td><td>0.0205</td><td>0.0764</td><td>0.0288</td><td>0.0356</td><td>0.022</td><td>0.0633</td><td>0.0309</td><td>0.1082</td><td>0.0422</td></tr><tr><td>GRU4Rec</td><td>0.0269</td><td>0.0161</td><td>0.0504</td><td>0.0237</td><td>0.0881</td><td>0.0331</td><td>0.0646</td><td>0.0441</td><td>0.0989</td><td>0.0552</td><td>0.1473</td><td>0.0673</td></tr><tr><td>SASRec</td><td>0.0210</td><td>0.0135</td><td>0.0386</td><td>0.0190</td><td>0.0730</td><td>0.0276</td><td>0.0624</td><td>0.0355</td><td>0.0959</td><td>0.0463</td><td>0.1443</td><td>0.0585</td></tr><tr><td>BERT4Rec</td><td>0.0153</td><td>0.0093</td><td>0.0283</td><td>0.0135</td><td>0.0540</td><td>0.0200</td><td>0.0380</td><td>0.0267</td><td>0.0585</td><td>0.0333</td><td>0.0869</td><td>0.0405</td></tr><tr><td>NARM</td><td>0.0272</td><td>0.0165</td><td>0.0527</td><td>0.0246</td><td>0.0910</td><td>0.0341</td><td>0.0650</td><td>0.0458</td><td>0.0947</td><td>0.0553</td><td>0.1424</td><td>0.0673</td></tr><tr><td>CL4SRec</td><td>0.0277</td><td>0.0171</td><td>0.0449</td><td>0.0226</td><td>0.0793</td><td>0.0312</td><td>0.0396</td><td>0.0235</td><td>0.0595</td><td>0.0299</td><td>0.0888</td><td>0.0372</td></tr><tr><td>ICLRec</td><td>0.0181</td><td>0.0117</td><td>0.0295</td><td>0.0154</td><td>0.0485</td><td>0.0202</td><td>0.0352</td><td>0.0236</td><td>0.0520</td><td>0.0290</td><td>0.0779</td><td>0.0356</td></tr><tr><td>P5</td><td>0.0240</td><td>0.0150</td><td>0.0390</td><td>0.0198</td><td>0.0587</td><td>0.0247</td><td>0.0318</td><td>0.0230</td><td>0.0445</td><td>0.0271</td><td>0.0629</td><td>0.0318</td></tr><tr><td>E4SRec</td><td>0.0180</td><td>0.0102</td><td>0.0541</td><td>0.0212</td><td>0.0902</td><td>0.0306</td><td>0.0369</td><td>0.0317</td><td>0.0831</td><td>0.0467</td><td>0.1570</td><td>0.0650</td></tr><tr><td>Ours</td><td>0.0338</td><td>0.0208</td><td>0.0599</td><td>0.0292</td><td>0.1048</td><td>0.0406</td><td>0.0758</td><td>0.0570</td><td>0.1011</td><td>0.0651</td><td>0.1377</td><td>0.0741</td></tr><tr><td>Improvement</td><td>24.3%</td><td>26.1%</td><td>10.7%</td><td>18.7%</td><td>15.2%</td><td>19.1%</td><td>8.4%</td><td>1.1%</td><td>2.2%</td><td>3.2%</td><td>-12.3%</td><td>4.5%</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.113, 0.289, 0.884, 0.319 ], "angle": 0, "content": "Table 2: Performance comparison of sequential recommendation models. R stands for Recall, and N refers to NDCG. Bold indicates the best result, while the underline is the runner-up." }, { "type": "title", "bbox": [ 0.114, 0.331, 0.4, 0.345 ], "angle": 0, "content": "2.3 Label-based Recommendation" }, { "type": "text", "bbox": [ 0.113, 0.351, 0.489, 0.447 ], "angle": 0, "content": "ReLRec simultaneously trains on sequential interaction and user/item labels, ensuring that the context and features captured in the labels are reflected in the model's next item prediction. Each batch comprises of the sequential interaction and label of a user, along with a randomly selected item label." }, { "type": "text", "bbox": [ 0.114, 0.448, 0.489, 0.562 ], "angle": 0, "content": "Suppose \\(I\\) and \\(U\\) denote entire set of items and users. Let \\(i_{1:t}^{k} = \\{i_{1}^{k},\\dots ,i_{t}^{k}\\}\\) represent the user-item interaction sequence, where \\(i_p^k\\in I\\) is the item interacted with by user \\(u^{k}\\) at timestamp \\(p\\), and \\(u^{k}\\in U\\). The goal is to predict the next item \\(i_{t + 1}^{k}\\) by training on \\(i_{1:t}^{k}\\). For the next item prediction, we utilized cross-entropy loss of our backbone LLM." }, { "type": "equation", "bbox": [ 0.13, 0.567, 0.488, 0.611 ], "angle": 0, "content": "\\[\n\\mathcal {L} _ {\\mathrm {s e q}} = - \\sum_ {k = 1} ^ {| U |} \\frac {1}{T _ {k}} \\sum_ {t = 1} ^ {T _ {k}} \\log P \\left(i _ {t + 1} \\mid i _ {1: t}, u ^ {k}\\right). \\tag {1}\n\\]" }, { "type": "text", "bbox": [ 0.114, 0.616, 0.49, 0.713 ], "angle": 0, "content": "Here, \\(T\\) is the total number of time steps for each user. The labels of each user and item are reconstructed along with the next item prediction. Similarly, with \\(S\\) referring the entire set of word tokens, the label reconstruction aims to predict the token \\(s_{t + 1}\\) given tokens \\(s_{1:t} = \\{s_1,\\ldots ,s_t\\}\\)." }, { "type": "equation", "bbox": [ 0.142, 0.718, 0.488, 0.761 ], "angle": 0, "content": "\\[\n\\mathcal {L} _ {\\text {i t e m}} = - \\sum_ {i \\in I} \\frac {1}{T _ {i}} \\sum_ {t = 1} ^ {T _ {i}} \\log P \\left(s _ {t + 1} ^ {i} \\mid s _ {1: t} ^ {i}\\right), \\tag {2}\n\\]" }, { "type": "equation", "bbox": [ 0.138, 0.765, 0.488, 0.808 ], "angle": 0, "content": "\\[\n\\mathcal {L} _ {\\text {u s e r}} = - \\sum_ {u \\in U} \\frac {1}{T _ {u}} \\sum_ {t = 1} ^ {T _ {u}} \\log P \\left(s _ {t + 1} ^ {u} \\mid s _ {1: t} ^ {u}\\right), \\tag {3}\n\\]" }, { "type": "text", "bbox": [ 0.113, 0.814, 0.489, 0.893 ], "angle": 0, "content": "where \\( s^u \\) and \\( s^i \\) denotes tokens within the labels of user \\( u \\) and item \\( i \\), respectively. The overall learning objective function of ReLRec is the sum of the losses for the next item prediction and user/item label reconstruction." }, { "type": "equation", "bbox": [ 0.185, 0.901, 0.488, 0.918 ], "angle": 0, "content": "\\[\n\\mathcal {L} = \\alpha \\mathcal {L} _ {\\text {s e q}} + \\beta \\mathcal {L} _ {\\text {i t e m}} + \\gamma \\mathcal {L} _ {\\text {u s e r}}, \\tag {4}\n\\]" }, { "type": "text", "bbox": [ 0.508, 0.331, 0.883, 0.46 ], "angle": 0, "content": "where \\(\\alpha\\), \\(\\beta\\) and \\(\\gamma\\) are the loss weights for each task. During inference, we evaluate the model not only on sequential prediction, but also on user/item label reconstruction, to ensure that the model has learned the textual labels of users and items. We provide a randomly selected prompt to the model to reconstruct the user/item label. The Appendix A.1 provides example labels." }, { "type": "title", "bbox": [ 0.509, 0.471, 0.649, 0.487 ], "angle": 0, "content": "3 Experiment" }, { "type": "title", "bbox": [ 0.509, 0.497, 0.731, 0.513 ], "angle": 0, "content": "3.1 Experimental Settings" }, { "type": "text", "bbox": [ 0.508, 0.518, 0.884, 0.695 ], "angle": 0, "content": "Datasets and metrics We conducted experiments on two public datasets: Yelp (Asghar, 2016) and Amazon-book (McAuley et al., 2015). Each dataset includes user's reviews on items that user interacted with. We filtered out interactions with a rating below 3 and excluded users with less than 5 interactions. The statistics of each dataset are provided in Table 1. We evaluated recommendation performance using two widely adopted ranking metrics: Recall@k and NDCG@k with \\( k \\in \\{5,10,20\\} \\)." }, { "type": "text", "bbox": [ 0.508, 0.703, 0.885, 0.88 ], "angle": 0, "content": "Baselines We compared our model with ten baseline sequential recommendations: STAMP (Liu et al., 2018), HGN (Ma et al., 2019), GRU4Rec (Tan et al., 2016), SASRec (Kang and McAuley, 2018), BERT4Rec (Sun et al., 2019), NARM (Li et al., 2017), CL4SRec (Xie et al., 2022), ICLRec (Chen et al., 2022), P5 (Geng et al., 2022) and E4SRec (Li et al., 2023a). STAMP, HGN, GRU4Rec, SASRec, BERT4Rec and NARM experiments are conducted using RecBole v1.2.0 (Xu et al., 2023)." }, { "type": "text", "bbox": [ 0.509, 0.89, 0.884, 0.921 ], "angle": 0, "content": "Setup ReLRec uses Llama-2-7b (Touvron et al., 2023) as the backbone model. Dimension for each" }, { "type": "page_number", "bbox": [ 0.481, 0.928, 0.521, 0.941 ], "angle": 0, "content": "7215" } ], [ { "type": "table", "bbox": [ 0.12, 0.083, 0.486, 0.21 ], "angle": 0, "content": "<table><tr><td colspan=\"3\">Methods</td><td colspan=\"2\">Yelp</td><td colspan=\"2\">Book</td></tr><tr><td>User</td><td>PL</td><td>Recon.</td><td>R@20</td><td>N@20</td><td>R@20</td><td>N@20</td></tr><tr><td>X</td><td>X</td><td>-</td><td>0.0764</td><td>0.0302</td><td>0.1086</td><td>0.0609</td></tr><tr><td>X</td><td>O</td><td>-</td><td>0.0750</td><td>0.0299</td><td>0.1044</td><td>0.0556</td></tr><tr><td>O</td><td>X</td><td>X</td><td>0.0727</td><td>0.0289</td><td>0.1035</td><td>0.0592</td></tr><tr><td>O</td><td>O</td><td>X</td><td>0.0755</td><td>0.0302</td><td>0.1049</td><td>0.0586</td></tr><tr><td>O</td><td>O</td><td>O</td><td>0.0969</td><td>0.0371</td><td>0.1309</td><td>0.0706</td></tr><tr><td colspan=\"3\">Improvement</td><td>28.3%</td><td>22.8%</td><td>20.5%</td><td>15.9%</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.113, 0.22, 0.486, 0.263 ], "angle": 0, "content": "Table 3: Comparing methods for using user embedding (User), projection layer (PL) and reconstruction loss (Recon.). All embeddings are randomly initialized." }, { "type": "text", "bbox": [ 0.113, 0.29, 0.49, 0.337 ], "angle": 0, "content": "projection layer is set to 512 for all datasets. \\(\\alpha\\) \\(\\beta\\) and \\(\\gamma\\) are set to 0.75, 0.3 and 0.9, respectively. ReLRec was trained with RTX A6000." }, { "type": "title", "bbox": [ 0.114, 0.352, 0.364, 0.368 ], "angle": 0, "content": "3.2 Performance Comparison" }, { "type": "text", "bbox": [ 0.113, 0.375, 0.489, 0.536 ], "angle": 0, "content": "Table 2 presents the experiment results of ReLRec compared to sequential recommendation baselines. Our model outperforms baseline models in most metrics, by up to \\(24.3\\%\\) in Recall and \\(26.1\\%\\) in NDCG. The performance increase is highlighted especially in Yelp dataset. By incorporating contextual label information into the sequential recommendation, ReLRec suggests items that are similar to the labels of user and answer item. Additional examples and analysis are in the Appendix A.2.1." }, { "type": "title", "bbox": [ 0.114, 0.55, 0.442, 0.566 ], "angle": 0, "content": "3.3 Ablation and Effectiveness Analysis" }, { "type": "text", "bbox": [ 0.113, 0.572, 0.49, 0.765 ], "angle": 0, "content": "Reconstruction loss We conducted an analysis to evaluate the effectiveness of our model, specifically examining whether implementing the user embedding and label reconstruction loss enhance performance. As shown in Table 3, simply adding user embedding to train each user did not necessarily improve results. However, including label reconstruction loss significantly boosted performance, indicating that encapsulating textual information in the labels and integrating it into the sequence prediction was effective. Effect of text projection layer is in the Appendix A.2.2." }, { "type": "text", "bbox": [ 0.113, 0.777, 0.49, 0.921 ], "angle": 0, "content": "Label inconsistency To evaluate the robustness of our reconstruction-based method, we conducted experiments analyzing the impact of label inconsistency on model performance. Noise was introduced by switching item and user labels across datasets, and the model's ability to learn from these inconsistent labels was assessed. As shown in Table 4, even with the introduction of label noise, the reconstruction method demonstrated notable" }, { "type": "table", "bbox": [ 0.514, 0.083, 0.883, 0.16 ], "angle": 0, "content": "<table><tr><td colspan=\"3\">Methods</td><td colspan=\"2\">Yelp</td><td colspan=\"2\">Book</td></tr><tr><td>Recon</td><td>Item</td><td>User</td><td>R@20</td><td>N@20</td><td>R@20</td><td>N@20</td></tr><tr><td>X</td><td>O</td><td>O</td><td>0.0842</td><td>0.0372</td><td>0.1004</td><td>0.0417</td></tr><tr><td>O</td><td>X</td><td>O</td><td>0.0973</td><td>0.0377</td><td>0.1374</td><td>0.0718</td></tr><tr><td>O</td><td>O</td><td>X</td><td>0.1026</td><td>0.0382</td><td>0.1353</td><td>0.0711</td></tr><tr><td>O</td><td>O</td><td>O</td><td>0.1048</td><td>0.0406</td><td>0.1377</td><td>0.0741</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.509, 0.17, 0.883, 0.212 ], "angle": 0, "content": "Table 4: Effect of label inconsistency. X in Item and User column indicates that the label of dataset is switched." }, { "type": "table", "bbox": [ 0.515, 0.228, 0.883, 0.33 ], "angle": 0, "content": "<table><tr><td colspan=\"3\">Methods</td><td colspan=\"2\">Yelp</td><td colspan=\"2\">Book</td></tr><tr><td>Recon.</td><td>Avg.</td><td>2-stage.</td><td>R@20</td><td>N@20</td><td>R@20</td><td>N@20</td></tr><tr><td>X</td><td>X</td><td>-</td><td>0.0755</td><td>0.0302</td><td>0.1049</td><td>0.0586</td></tr><tr><td>X</td><td>O</td><td>-</td><td>0.0842</td><td>0.0327</td><td>0.1004</td><td>0.0417</td></tr><tr><td>O</td><td>X</td><td>O</td><td>0.0969</td><td>0.0371</td><td>0.1309</td><td>0.0706</td></tr><tr><td>O</td><td>O</td><td>X</td><td>0.0972</td><td>0.0361</td><td>0.1242</td><td>0.0682</td></tr><tr><td>O</td><td>O</td><td>O</td><td>0.1048</td><td>0.0406</td><td>0.1377</td><td>0.0741</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.508, 0.34, 0.884, 0.383 ], "angle": 0, "content": "Table 5: Effect of average embedding initialization (Avg.) and 2-stage pseudo-label generation (2-stage.) for Yelp and Amazon-book datasets." }, { "type": "text", "bbox": [ 0.508, 0.398, 0.884, 0.51 ], "angle": 0, "content": "improvements compared to scenarios without reconstruction. Although label inconsistency led to a decline in performance relative to consistent-label conditions, the model still captured meaningful patterns, underscoring the resilience and effectiveness of the label reconstruction approach under suboptimal conditions." }, { "type": "text", "bbox": [ 0.508, 0.523, 0.884, 0.765 ], "angle": 0, "content": "Pseudo-label Quality To examine the effect of pseudo-label quality on performance, we conducted experiments refining the label generation process with a two-stage method. In the first stage, user and item profiles were generated by aggregating relevant reviews to produce initial labels. In the second stage, these labels were refined by removing noise. Notably, even with the one-stage process, our reconstruction method showed significant improvements in overall performance despite the presence of noise. As shown in Table 5, applying the two-stage label generation further enhanced performance, demonstrating the added value of refined labels, with single-stage process already providing substantial gains." }, { "type": "text", "bbox": [ 0.508, 0.777, 0.885, 0.921 ], "angle": 0, "content": "Embedding initialization We initialized the user and item embeddings in our model with the average value of pre-trained LLM word embedding. Table 5 compares the effectiveness of this average initialization both with and without reconstruction loss. The results show that average initialization was only consistently effective when reconstruction loss was included. We believe this is because, as ReLRec trains on user/item textual labels, the" }, { "type": "page_number", "bbox": [ 0.481, 0.929, 0.522, 0.941 ], "angle": 0, "content": "7216" } ], [ { "type": "table", "bbox": [ 0.12, 0.083, 0.486, 0.156 ], "angle": 0, "content": "<table><tr><td rowspan=\"2\">Metrics</td><td colspan=\"4\">Sequence Weight α</td></tr><tr><td>0.25</td><td>0.50</td><td>0.75</td><td>1.00</td></tr><tr><td>R@20</td><td>0.0856</td><td>0.1000</td><td>0.1000</td><td>0.0956</td></tr><tr><td>N@20</td><td>0.0337</td><td>0.0390</td><td>0.0396</td><td>0.0373</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.114, 0.166, 0.486, 0.195 ], "angle": 0, "content": "Table 6: Performance variation with different sequence weight \\( \\alpha \\) value on Yelp dataset." }, { "type": "image", "bbox": [ 0.118, 0.214, 0.484, 0.321 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.125, 0.331, 0.476, 0.346 ], "angle": 0, "content": "Figure 3: Recall/NDCG@20 on change of \\(\\beta\\) and \\(\\gamma\\)." }, { "type": "text", "bbox": [ 0.114, 0.364, 0.487, 0.412 ], "angle": 0, "content": "average value of the pre-trained word embeddings provides a better initialization point compared to random initialization." }, { "type": "text", "bbox": [ 0.113, 0.433, 0.489, 0.641 ], "angle": 0, "content": "Weight parameter To evaluate the impact of each loss hyperparameters, we conducted experiments with different values of hyperparameters on Yelp dataset. Table 6 shows the performance variations with different values of next item prediction loss weight \\(\\alpha\\). The results indicate that an \\(\\alpha\\) value of 0.75 yields the best performance. This suggests that a balanced emphasis on sequential interactions and label reconstruction is crucial in optimal performance. Increasing \\(\\alpha\\) beyond this point leads to a decline in performance, likely due to overemphasizing sequential data at the expense of label information." }, { "type": "text", "bbox": [ 0.113, 0.645, 0.489, 0.821 ], "angle": 0, "content": "Fig. 3 illustrates the performance changes as the item label weight \\(\\beta\\) and user label weight \\(\\gamma\\) vary, respectively. Initially, increasing \\(\\beta\\) improves performance as the item label information integrates into the sequential pattern. However, beyond a certain point, further increases in \\(\\beta\\) cause performance to drop significantly, likely because excessive weight on item labels hinders the item embedding's ability to predict the next item. This is evident from the decline in both Recall and NDCG metrics as shown in Figure 3a." }, { "type": "text", "bbox": [ 0.113, 0.825, 0.489, 0.922 ], "angle": 0, "content": "For \\(\\gamma\\), the performance trends differently. As shown in Figure 3b, the best performance is observed at the highest value of \\(\\gamma\\). This indicates that a higher weight on user labels effectively enhances the model's ability to capture user-specific preferences." }, { "type": "table", "bbox": [ 0.515, 0.083, 0.883, 0.123 ], "angle": 0, "content": "<table><tr><td>Dataset</td><td>#User</td><td>#Item</td><td>#Inter.</td><td>#Avg.</td><td>Sparsity</td></tr><tr><td>Steam</td><td>23,311</td><td>5,238</td><td>596,560</td><td>113.9</td><td>99.511%</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.547, 0.133, 0.843, 0.147 ], "angle": 0, "content": "Table 7: Dataset statistics of Steam dataset." }, { "type": "title", "bbox": [ 0.509, 0.173, 0.642, 0.188 ], "angle": 0, "content": "4 Conclusion" }, { "type": "text", "bbox": [ 0.508, 0.2, 0.885, 0.343 ], "angle": 0, "content": "In this paper, we proposed ReLRec, a reconstruction based LLM recommendation model which integrates features of user/item text labels to the next item prediction. Our proposed model, ReLRec, effectively utilizes pseudo-labels generated from user reviews to capture nuanced information and enhance recommendation accuracy by label reconstruction. Experimental results demonstrate the effectiveness of ReLRec." }, { "type": "title", "bbox": [ 0.51, 0.358, 0.673, 0.373 ], "angle": 0, "content": "Acknowledgments" }, { "type": "text", "bbox": [ 0.508, 0.383, 0.884, 0.543 ], "angle": 0, "content": "This work was partly supported by the National Research Foundation of Korea (NRF) [No. RS-2023-00243243] and Institute of Information & communications Technology Planning & Evaluation (IITP) [NO. RS-2021-II211343, Artificial Intelligence Graduate School Program (Seoul National University)], both grant funded by the Korea government (MSIT). Also, the ICT at Seoul National University provided research facilities for this study." }, { "type": "title", "bbox": [ 0.51, 0.557, 0.608, 0.571 ], "angle": 0, "content": "Limitation" }, { "type": "text", "bbox": [ 0.508, 0.583, 0.884, 0.695 ], "angle": 0, "content": "We conducted additional experiments on Steam (Kang and McAuley, 2018) dataset and analyzed our results. The experiments on Steam indicated that the performance of the label reconstruction-based approach may depend on the quality of the labels, and it might not lead to performance improvements on certain conditions." }, { "type": "title", "bbox": [ 0.509, 0.708, 0.69, 0.723 ], "angle": 0, "content": "Experimental Settings" }, { "type": "text", "bbox": [ 0.508, 0.729, 0.884, 0.921 ], "angle": 0, "content": "Statistics about Steam dataset are provided in Table 7. Similar to Yelp and Amazon-book, Steam dataset includes user reviews on items that users have interacted with. However, Steam features a much higher user-to-item ratio, a significantly larger average number of interactions per user, and a much higher total number of interactions. Moreover, unlike Yelp and Amazon-book, Steam does not provide user ratings for each item. Therefore, we could not filter interactions based on ratings and only excluded users with fewer than 5 interactions. The evaluation metrics, baselines, and setup are" }, { "type": "page_number", "bbox": [ 0.481, 0.928, 0.521, 0.941 ], "angle": 0, "content": "7217" } ], [ { "type": "table", "bbox": [ 0.116, 0.083, 0.487, 0.228 ], "angle": 0, "content": "<table><tr><td rowspan=\"2\">Models</td><td colspan=\"4\">Steam</td></tr><tr><td>R@10</td><td>N@10</td><td>R@20</td><td>N@20</td></tr><tr><td>STAMP</td><td>0.1613</td><td>0.1317</td><td>0.1924</td><td>0.1395</td></tr><tr><td>HGN</td><td>0.0840</td><td>0.0443</td><td>0.1261</td><td>0.0548</td></tr><tr><td>GRU4Rec</td><td>0.1732</td><td>0.1301</td><td>0.2176</td><td>0.1413</td></tr><tr><td>SASRec</td><td>0.1814</td><td>0.1392</td><td>0.2277</td><td>0.1508</td></tr><tr><td>BERT4Rec</td><td>0.1288</td><td>0.0871</td><td>0.1767</td><td>0.0991</td></tr><tr><td>NARM</td><td>0.1775</td><td>0.1311</td><td>0.2256</td><td>0.1432</td></tr><tr><td>Ours</td><td>0.1521</td><td>0.1135</td><td>0.2002</td><td>0.1255</td></tr><tr><td>Improvement</td><td>-16.2%</td><td>-18.5%</td><td>-12.1%</td><td>-16.8%</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.114, 0.237, 0.49, 0.266 ], "angle": 0, "content": "Table 8: Performance comparison of sequential recommendation models on Steam dataset." }, { "type": "table", "bbox": [ 0.12, 0.279, 0.487, 0.395 ], "angle": 0, "content": "<table><tr><td colspan=\"3\">Methods</td><td colspan=\"4\">Steam</td></tr><tr><td>User</td><td>PL</td><td>Recon.</td><td>R@10</td><td>N@10</td><td>R@20</td><td>N@20</td></tr><tr><td>X</td><td>X</td><td>X</td><td>0.1443</td><td>0.1108</td><td>0.1842</td><td>0.1209</td></tr><tr><td>O</td><td>X</td><td>X</td><td>0.1424</td><td>0.1077</td><td>0.1811</td><td>0.1174</td></tr><tr><td>O</td><td>O</td><td>X</td><td>0.1398</td><td>0.1060</td><td>0.1789</td><td>0.1160</td></tr><tr><td>O</td><td>O</td><td>O</td><td>0.1534</td><td>0.1143</td><td>0.2001</td><td>0.1260</td></tr><tr><td colspan=\"3\">Improvement</td><td>6.3%</td><td>3.2%</td><td>8.6%</td><td>4.2%</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.113, 0.404, 0.487, 0.448 ], "angle": 0, "content": "Table 9: Comparing methods for using user embedding (User), projection layer (PL) and reconstruction loss (Recon.). All embeddings are randomly initialized." }, { "type": "text", "bbox": [ 0.113, 0.46, 0.487, 0.492 ], "angle": 0, "content": "identical to those used for Yelp and Amazon-book dataset." }, { "type": "title", "bbox": [ 0.114, 0.504, 0.285, 0.52 ], "angle": 0, "content": "Experiment Analysis" }, { "type": "text", "bbox": [ 0.113, 0.525, 0.489, 0.604 ], "angle": 0, "content": "Table 8 shows the performance comparison between our model and baseline models on Steam dataset. We can observe that our model did not achieve the best or the second-best results in any of the metrics on Steam dataset." }, { "type": "text", "bbox": [ 0.113, 0.606, 0.489, 0.703 ], "angle": 0, "content": "We conducted a similar analysis to that of Yelp and Amazon-book datasets to evaluate the effectiveness of the reconstruction loss on Steam. The results are shown in Table 9. The performance improvement on Steam was much smaller compared to Yelp and Amazon-book." }, { "type": "text", "bbox": [ 0.113, 0.712, 0.489, 0.841 ], "angle": 0, "content": "Label quality and noises The inclusion of a high volume of interactions without filtering the dataset can introduce noises. Since Steam dataset does not have rating, all reviews were included in the training. This means the model may be learning from labels and interactions that are not truly indicative of user preferences, reducing the effectiveness of the label reconstruction-based approach." }, { "type": "title", "bbox": [ 0.114, 0.853, 0.295, 0.867 ], "angle": 0, "content": "Limitation Conclusion" }, { "type": "text", "bbox": [ 0.113, 0.874, 0.489, 0.921 ], "angle": 0, "content": "The performance of ReLRec model on Steam dataset underscores the challenges of handling high interaction volumes and the need for mechanisms" }, { "type": "text", "bbox": [ 0.508, 0.085, 0.885, 0.213 ], "angle": 0, "content": "that can effectively differentiate and manage low-quality interactions. Future work should focus on enhancing the model's ability to understand and mitigate the impact of negative or irrelevant interactions. By improving the model's capacity to handle diverse interaction data, we can enhance its robustness and overall performance in high-interaction environments like Steam dataset." }, { "type": "title", "bbox": [ 0.511, 0.243, 0.61, 0.258 ], "angle": 0, "content": "References" }, { "type": "ref_text", "bbox": [ 0.511, 0.267, 0.885, 0.333 ], "angle": 0, "content": "Arkadeep Acharya, Brijraj Singh, and Naoyuki Onoe. 2023. Llm based generation of item-description for recommendation system. In Proceedings of the 17th ACM Conference on Recommender Systems. ACM, 1204-1207." }, { "type": "ref_text", "bbox": [ 0.511, 0.345, 0.884, 0.386 ], "angle": 0, "content": "Nabiha Asghar. 2016. Yelp dataset challenge: Review rating prediction. arXiv preprint arXiv:1605.05362 (2016)." }, { "type": "ref_text", "bbox": [ 0.511, 0.398, 0.883, 0.476 ], "angle": 0, "content": "Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. 2020. Language models are few-shot learners. Advances in neural information processing systems 33 (2020), 1877-1901." }, { "type": "ref_text", "bbox": [ 0.511, 0.489, 0.883, 0.542 ], "angle": 0, "content": "Yongjun Chen, Zhiwei Liu, Jia Li, Julian McAuley, and Caiming Xiong. 2022. Intent contrastive learning for sequential recommendation. In Proceedings of the ACM Web Conference 2022. 2172-2182." }, { "type": "ref_text", "bbox": [ 0.511, 0.554, 0.884, 0.633 ], "angle": 0, "content": "Shijie Geng, Shuchang Liu, Zuohui Fu, Yingqiang Ge, and Yongfeng Zhang. 2022. Recommendation as language processing (rlp): A unified pretrain, personalized prompt & predict paradigm (p5). In Proceedings of the 16th ACM Conference on Recommender Systems. 299-315." }, { "type": "ref_text", "bbox": [ 0.511, 0.645, 0.883, 0.712 ], "angle": 0, "content": "Dietmar Jannach and Malte Ludewig. 2017. When recurrent neural networks meet the neighborhood for session-based recommendation. In Proceedings of the eleventh ACM conference on recommender systems. 306-310." }, { "type": "ref_text", "bbox": [ 0.511, 0.724, 0.884, 0.777 ], "angle": 0, "content": "Wang-Cheng Kang and Julian McAuley. 2018. Self-attentive sequential recommendation. In 2018 IEEE international conference on data mining (ICDM). IEEE, 197-206." }, { "type": "ref_text", "bbox": [ 0.511, 0.789, 0.883, 0.843 ], "angle": 0, "content": "Kirandeep Kaur and Chirag Shah. 2024. Efficient and Responsible Adaptation of Large Language Models for Robust Top-k Recommendations. arXiv preprint arXiv:2405.00824 (2024)." }, { "type": "ref_text", "bbox": [ 0.511, 0.854, 0.883, 0.921 ], "angle": 0, "content": "Jing Li, Pengjie Ren, Zhumin Chen, Zhaochun Ren, Tao Lian, and Jun Ma. 2017. Neural attentive session-based recommendation. In Proceedings of the 2017 ACM on Conference on Information and Knowledge Management. 1419-1428." }, { "type": "list", "bbox": [ 0.511, 0.267, 0.885, 0.921 ], "angle": 0, "content": null }, { "type": "page_number", "bbox": [ 0.481, 0.929, 0.521, 0.941 ], "angle": 0, "content": "7218" } ], [ { "type": "ref_text", "bbox": [ 0.117, 0.086, 0.49, 0.152 ], "angle": 0, "content": "Lei Li, Yongfeng Zhang, and Li Chen. 2023b. Prompt distillation for efficient llm-based recommendation. In Proceedings of the 32nd ACM International Conference on Information and Knowledge Management. 1348-1357." }, { "type": "ref_text", "bbox": [ 0.117, 0.162, 0.488, 0.228 ], "angle": 0, "content": "Xinhang Li, Chong Chen, Xiangyu Zhao, Yong Zhang, and Chunxiao Xing. 2023a. E4SRec: An elegant effective efficient extensible solution of large language models for sequential recommendation. arXiv preprint arXiv:2312.02443 (2023)." }, { "type": "ref_text", "bbox": [ 0.117, 0.238, 0.487, 0.277 ], "angle": 0, "content": "Zhizhong Li and Derek Hoiem. 2017. Learning without forgetting. IEEE transactions on pattern analysis and machine intelligence 40, 12 (2017), 2935-2947." }, { "type": "ref_text", "bbox": [ 0.117, 0.287, 0.488, 0.365 ], "angle": 0, "content": "Qiao Liu, Yifu Zeng, Refuoe Mokhosi, and Haibin Zhang. 2018. STAMP: short-term attention/memory priority model for session-based recommendation. In Proceedings of the 24th ACM SIGKDD international conference on knowledge discovery & data mining. 1831-1839." }, { "type": "ref_text", "bbox": [ 0.117, 0.376, 0.488, 0.441 ], "angle": 0, "content": "Yun Luo, Zhen Yang, Fandong Meng, Yafu Li, Jie Zhou, and Yue Zhang. 2023. An empirical study of catastrophic forgetting in large language models during continual fine-tuning. arXiv preprint arXiv:2308.08747 (2023)." }, { "type": "ref_text", "bbox": [ 0.117, 0.451, 0.488, 0.516 ], "angle": 0, "content": "Chen Ma, Peng Kang, and Xue Liu. 2019. Hierarchical gating networks for sequential recommendation. In Proceedings of the 25th ACM SIGKDD international conference on knowledge discovery & data mining. 825-833." }, { "type": "ref_text", "bbox": [ 0.117, 0.526, 0.488, 0.605 ], "angle": 0, "content": "Julian McAuley, Christopher Targett, Qinfeng Shi, and Anton Van Den Hengel. 2015. Image-based Recommendations on Styles and Substitutes. In Proceedings of the 38th International ACM SIGIR Conference on Research and Development in Information Retrieval. 43-52." }, { "type": "ref_text", "bbox": [ 0.117, 0.615, 0.488, 0.681 ], "angle": 0, "content": "Lin Ning, Luyang Liu, Jiaxing Wu, Neo Wu, Devora Berlowitz, Sushant Prakash, Bradley Green, Shawn O'Banion, and Jun Xie. 2024. User-LLM: Efficient LLM Contextualization with User Embeddings. arXiv preprint arXiv:2402.13598 (2024)." }, { "type": "ref_text", "bbox": [ 0.117, 0.69, 0.488, 0.756 ], "angle": 0, "content": "Xubin Ren, Wei Wei, Lianghao Xia, Lixin Su, Suqi Cheng, Junfeng Wang, Dawei Yin, and Chao Huang. 2024. Representation learning with large language models for recommendation. In Proceedings of the ACM on Web Conference 2024. 3464-3475." }, { "type": "ref_text", "bbox": [ 0.117, 0.766, 0.488, 0.845 ], "angle": 0, "content": "Fei Sun, Jun Liu, Jian Wu, Changhua Pei, Xiao Lin, Wenwu Ou, and Peng Jiang. 2019. BERT4Rec: Sequential recommendation with bidirectional encoder representations from transformer. In Proceedings of the 28th ACM international conference on information and knowledge management. 1441-1450." }, { "type": "ref_text", "bbox": [ 0.117, 0.854, 0.488, 0.919 ], "angle": 0, "content": "Yong Kiam Tan, Xinxing Xu, and Yong Liu. 2016. Improved recurrent neural networks for session-based recommendations. In Proceedings of the 1st workshop on deep learning for recommender systems. 17-22." }, { "type": "list", "bbox": [ 0.117, 0.086, 0.49, 0.919 ], "angle": 0, "content": null }, { "type": "ref_text", "bbox": [ 0.512, 0.086, 0.883, 0.152 ], "angle": 0, "content": "Jiaxi Tang and Ke Wang. 2018. Personalized top-n sequential recommendation via convolutional sequence embedding. In Proceedings of the eleventh ACM international conference on web search and data mining. 565-573." }, { "type": "ref_text", "bbox": [ 0.512, 0.163, 0.883, 0.463 ], "angle": 0, "content": "Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, Dan Bikel, Lukas Blecher, Cristian Canton Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, Brian Fuller, Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony Hartshorn, Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez, Madian Khabsa, Isabel Kloumann, Artem Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee, Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinez, Todor Mihaylov, Pushkar Mishra, Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi, Alan Schelten, Ruan Silva, Eric Michael Smith, Ranjan Subramanian, Xiaoqing Ellen Tan, Binh Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu, Zheng Yan, Iliyan Zarov, Yuchen Zhang, Angela Fan, Melanie Kambadur, Sharan Narang, Aurelien Rodriguez, Robert Stojnic, Sergey Edunov, and Thomas Scialom. 2023. Llama 2: Open Foundation and FineTuned Chat Models. arXiv:2307.09288 [cs.CL]" }, { "type": "ref_text", "bbox": [ 0.512, 0.473, 0.883, 0.539 ], "angle": 0, "content": "Jianling Wang, Haokai Lu, James Caverlee, Ed H Chi, and Minmin Chen. 2024b. Large Language Models as Data Augmenters for Cold-Start Item Recommendation. In Companion Proceedings of the ACM on Web Conference 2024. 726-729." }, { "type": "ref_text", "bbox": [ 0.512, 0.549, 0.883, 0.615 ], "angle": 0, "content": "Wenhui Wang, Hangbo Bao, Shaohan Huang, Li Dong, and Furu Wei. 2020. Minilmv2: Multihead self-attention relation distillation for compressing pretrained transformers. arXiv preprint arXiv:2012.15828 (2020)." }, { "type": "ref_text", "bbox": [ 0.512, 0.626, 0.883, 0.678 ], "angle": 0, "content": "Xinfeng Wang, Jin Cui, Yoshimi Suzuki, and Fumiyo Fukumoto. 2024a. RDRec: Rationale Distillation for LLM-based Recommendation. arXiv preprint arXiv:2405.10587 (2024)." }, { "type": "ref_text", "bbox": [ 0.512, 0.689, 0.883, 0.768 ], "angle": 0, "content": "Wei Wei, Xubin Ren, Jiabin Tang, Qinyong Wang, Lixin Su, Suqi Cheng, Junfeng Wang, Dawei Yin, and Chao Huang. 2024. Llmrec: Large language models with graph augmentation for recommendation. In Proceedings of the 17th ACM International Conference on Web Search and Data Mining. 806-815." }, { "type": "ref_text", "bbox": [ 0.512, 0.779, 0.883, 0.857 ], "angle": 0, "content": "Yunjia Xi, Weiwen Liu, Jianghao Lin, Jieming Zhu, Bo Chen, Ruiming Tang, Weinan Zhang, Rui Zhang, and Yong Yu. 2023. Towards open-world recommendation with knowledge augmentation from large language models. arXiv preprint arXiv:2306.10933 (2023)." }, { "type": "ref_text", "bbox": [ 0.512, 0.868, 0.883, 0.921 ], "angle": 0, "content": "Xu Xie, Fei Sun, Zhaoyang Liu, Shiwen Wu, Jinyang Gao, Jiandong Zhang, Bolin Ding, and Bin Cui. 2022. Contrastive Learning for Sequential Recommendation. In 2022 IEEE 38th International Conference on" }, { "type": "list", "bbox": [ 0.512, 0.086, 0.883, 0.921 ], "angle": 0, "content": null }, { "type": "page_number", "bbox": [ 0.481, 0.929, 0.521, 0.941 ], "angle": 0, "content": "7219" } ], [ { "type": "text", "bbox": [ 0.133, 0.086, 0.489, 0.113 ], "angle": 0, "content": "Data Engineering (ICDE). IEEE Computer Society, 1259-1273." }, { "type": "text", "bbox": [ 0.116, 0.122, 0.49, 0.214 ], "angle": 0, "content": "Lanling Xu, Zhen Tian, Gaowei Zhang, Junjie Zhang, Lei Wang, Bowen Zheng, Yifan Li, Jiakai Tang, Zeyu Zhang, Yupeng Hou, Xingyu Pan, Wayne Xin Zhao, Xu Chen, and Ji-Rong Wen. 2023. Towards a More User-Friendly and Easy-to-Use Benchmark Library for Recommender Systems. In SIGIR. ACM, 2837-2847." }, { "type": "text", "bbox": [ 0.115, 0.224, 0.489, 0.29 ], "angle": 0, "content": "Xiaohan Yu, Li Zhang, Xin Zhao, Yue Wang, and Zhongrui Ma. 2024. RA-Rec: An Efficient ID Representation Alignment Framework for LLM-based Recommendation. arXiv preprint arXiv:2402.04527 (2024)." }, { "type": "text", "bbox": [ 0.115, 0.3, 0.489, 0.353 ], "angle": 0, "content": "Jujia Zhao, Wenjie Wang, Chen Xu, Zhaochun Ren, See-Kiong Ng, and Tat-Seng Chua. 2024. LLM-based Federated Recommendation. arXiv preprint arXiv:2402.09959 (2024)." }, { "type": "text", "bbox": [ 0.115, 0.362, 0.489, 0.429 ], "angle": 0, "content": "Bowen Zheng, Yupeng Hou, Hongyu Lu, Yu Chen, Wayne Xin Zhao, and Ji-Rong Wen. 2023. Adapting large language models by integrating collaborative semantics for recommendation. arXiv preprint arXiv:2311.09049 (2023)." }, { "type": "text", "bbox": [ 0.116, 0.438, 0.49, 0.492 ], "angle": 0, "content": "Yaochen Zhu, Liang Wu, Qi Guo, Liangjie Hong, and Jundong Li. 2024. Collaborative large language model for recommender systems. In Proceedings of the ACM on Web Conference 2024. 3162-3172." }, { "type": "title", "bbox": [ 0.115, 0.504, 0.239, 0.52 ], "angle": 0, "content": "A Appendix" }, { "type": "title", "bbox": [ 0.115, 0.529, 0.279, 0.543 ], "angle": 0, "content": "A.1 Pseudo Labels" }, { "type": "text", "bbox": [ 0.113, 0.55, 0.49, 0.727 ], "angle": 0, "content": "This section provides additional examples related to the generation and training of pseudo labels. Fig. 4 shows examples of user and item input prompts and their answer labels. A random prompt is selected from the list of prompts, and inserted into the model along with a user/item token. During evaluation, the similarity score between the reconstructed label and the answer label is measured using cosine similarity. The similarity in user and item label reconstruction was assessed using \"all-MiniLM-L6-v2\" model (Wang et al., 2020)." }, { "type": "title", "bbox": [ 0.115, 0.737, 0.303, 0.753 ], "angle": 0, "content": "A.2 Further Analyses" }, { "type": "title", "bbox": [ 0.115, 0.758, 0.41, 0.773 ], "angle": 0, "content": "A.2.1 Sequential Prediction Results" }, { "type": "text", "bbox": [ 0.113, 0.777, 0.486, 0.889 ], "angle": 0, "content": "Based on our experiments with the Yelp and Amazon-book datasets, most of our performance metrics exceeded those of the baseline models. We examined the user labels and the labels of the top \\(N\\) recommended items. Fig. 5 shows example labels for users, the correct answer items and candidate items, included in the top-5 recommendations." }, { "type": "text", "bbox": [ 0.114, 0.891, 0.486, 0.92 ], "angle": 0, "content": "From these examples, we can assume that the contextual information of both the user and the" }, { "type": "title", "bbox": [ 0.518, 0.092, 0.633, 0.102 ], "angle": 0, "content": "User Reconstruction" }, { "type": "text", "bbox": [ 0.518, 0.102, 0.76, 0.111 ], "angle": 0, "content": "Input: Regarding uid_1, below are the details." }, { "type": "text", "bbox": [ 0.518, 0.112, 0.871, 0.15 ], "angle": 0, "content": "Answer: This user has a diverse palate and enjoys exploring new and unique dining experiences. They are drawn to traditional bakeries and ice cream parlors, as well as casual and lively bars with a wide selection of food and drinks...." }, { "type": "title", "bbox": [ 0.519, 0.159, 0.633, 0.169 ], "angle": 0, "content": "Item Reconstruction" }, { "type": "text", "bbox": [ 0.519, 0.17, 0.762, 0.179 ], "angle": 0, "content": "Input: Specifics about \\( iid\\_1 \\) are provided here." }, { "type": "text", "bbox": [ 0.519, 0.179, 0.872, 0.209 ], "angle": 0, "content": "Answer: With a focus on speed and affordability, iid_1 attracts cust omers who enjoy the efficiency of a fast-food joint but crave the a bility to customize their meals, even if it means accepting..." }, { "type": "table_caption", "bbox": [ 0.532, 0.237, 0.858, 0.251 ], "angle": 0, "content": "Figure 4: Examples of user/item reconstruction." }, { "type": "table", "bbox": [ 0.515, 0.267, 0.882, 0.352 ], "angle": 0, "content": "<table><tr><td rowspan=\"2\">Methods</td><td colspan=\"2\">Yelp</td><td colspan=\"2\">Similarity</td></tr><tr><td>R@20</td><td>N@20</td><td>Item</td><td>User</td></tr><tr><td>w/o proj.</td><td>0.0995</td><td>0.0385</td><td>0.5261</td><td>0.7507</td></tr><tr><td>1-layer</td><td>0.1048</td><td>0.0406</td><td>0.4538</td><td>0.7211</td></tr><tr><td>2-layer</td><td>0.1039</td><td>0.0394</td><td>0.0875</td><td>0.3579</td></tr></table>" }, { "type": "table_footnote", "bbox": [ 0.509, 0.362, 0.884, 0.391 ], "angle": 0, "content": "Table 10: Comparing methods for using linear projection attached to word token embedding." }, { "type": "text", "bbox": [ 0.508, 0.419, 0.882, 0.515 ], "angle": 0, "content": "items is effectively integrated into the sequential prediction results. ReLRec suggests items that closely match the labels of the users and the correct answer items. The suggested candidates had labels that closely resembled those of the answer items and aligned well with the user's preferences." }, { "type": "text", "bbox": [ 0.508, 0.516, 0.884, 0.645 ], "angle": 0, "content": "This alignment indicates that ReLRec is capable of capturing and utilizing rich textual information to enhance recommendation accuracy. By integrating both user and item labels into the prediction process, ReLRec is able to provide recommendations that are more likely to match the user's preferences, achieving higher rankings compared to models that only utilize sequential data." }, { "type": "title", "bbox": [ 0.509, 0.658, 0.746, 0.674 ], "angle": 0, "content": "A.2.2 Text Projection Layer" }, { "type": "text", "bbox": [ 0.507, 0.679, 0.884, 0.888 ], "angle": 0, "content": "To preserve the knowledge of LLMs, we froze the word embedding and transformer layers and examined the impact of adding a projection layer. As Table 3 demonstrates, adding projection layer was effective when ReLRec trains textual labels. Additionally, we investigated the optimal number of layers required for the model to effectively train on the contextual information of users/items. As detailed in Table 10, using more than one layer resulted in a decline in performance. This suggests that adding more layers can disrupt the model's ability to reconstruct textual information and degrade overall performance." }, { "type": "text", "bbox": [ 0.509, 0.89, 0.882, 0.922 ], "angle": 0, "content": "We also conducted experiment to determine the optimal projection layer dimension for ReLRec's" }, { "type": "page_number", "bbox": [ 0.481, 0.928, 0.521, 0.941 ], "angle": 0, "content": "7220" } ], [ { "type": "text", "bbox": [ 0.127, 0.095, 0.816, 0.116 ], "angle": 0, "content": "User-1: User enjoys Italian delis, American classics, high-quality burgers, creative soups, generous deli portions, seafood, and friendly service. Answer item: Mamma Italia's is a casual restaurant in Eagle with diverse menu, generous portions, cozy ambiance, and friendly staff." }, { "type": "text", "bbox": [ 0.127, 0.122, 0.69, 0.133 ], "angle": 0, "content": "C1: Upscale grill with classic American dishes, efficient service, trendy atmosphere, and pet-friendly outdoor dining." }, { "type": "text", "bbox": [ 0.127, 0.133, 0.792, 0.142 ], "angle": 0, "content": "C2: Classic Italian dining in Philadelphia with unassuming ambiance, generous portions, and excellent service in a nostalgic atmosphere." }, { "type": "text", "bbox": [ 0.127, 0.142, 0.808, 0.151 ], "angle": 0, "content": "C3: Las Palmas offers casual, affordable Tex-Mex with friendly service, quick service, and popular queso, although some find food mediocre." }, { "type": "text", "bbox": [ 0.127, 0.151, 0.87, 0.16 ], "angle": 0, "content": "C4: iid_9 in Safety Harbor offers high-end wines, build-your-own charcuterie boards, convenient credit card system, cozy atmosphere, and attentive staff." }, { "type": "list", "bbox": [ 0.127, 0.122, 0.87, 0.16 ], "angle": 0, "content": null }, { "type": "text", "bbox": [ 0.127, 0.18, 0.802, 0.19 ], "angle": 0, "content": "User-2: User seeks high-quality, diverse dining experiences with fresh ingredients, variety of options, cozy ambiance, and attentive service." }, { "type": "text", "bbox": [ 0.127, 0.19, 0.865, 0.209 ], "angle": 0, "content": "Answer item: Modern, trendy atmosphere with diverse menu, quality food/drink, outdoor seating, attention to detail, budget-friendly, innovative bruc h, well-cooked meats/sauces." }, { "type": "text", "bbox": [ 0.127, 0.216, 0.694, 0.226 ], "angle": 0, "content": "C1: Cozy and lively atmosphere with varied menu, wide beer selection, great service, steak and prime rib specialties." }, { "type": "text", "bbox": [ 0.127, 0.226, 0.722, 0.236 ], "angle": 0, "content": "C2: iid_99 offers diverse pizzas, extensive beer selection, cozy atmosphere, and excellent service for pizza and beer lovers." }, { "type": "text", "bbox": [ 0.127, 0.236, 0.679, 0.245 ], "angle": 0, "content": "C3: iid_88 in New Orleans offers house beers, bar food, and a lively atmosphere, popular with locals and tourists." }, { "type": "text", "bbox": [ 0.127, 0.245, 0.763, 0.255 ], "angle": 0, "content": "C4: Versatile venue with good food and large portions, suitable for families, sports fans, and casual dining, but prices can be high." }, { "type": "list", "bbox": [ 0.127, 0.216, 0.763, 0.255 ], "angle": 0, "content": null }, { "type": "text", "bbox": [ 0.127, 0.271, 0.798, 0.281 ], "angle": 0, "content": "User-3: Enjoys unique dining experiences, colorful food, generous portions, attentive staff, diverse choices, and specialty/organic options." }, { "type": "text", "bbox": [ 0.127, 0.281, 0.708, 0.291 ], "angle": 0, "content": "Answer item: Offers diverse menu, attentive service, and pleasant atmosphere, suitable for casual or special occasions." }, { "type": "text", "bbox": [ 0.127, 0.298, 0.766, 0.309 ], "angle": 0, "content": "C1: iD_2 offers interactive dining with a wide variety of food options, ideal for meat and seafood lovers in a casual upscale setting." }, { "type": "text", "bbox": [ 0.127, 0.309, 0.818, 0.318 ], "angle": 0, "content": "C2: Popular Philly spot offering delicious breakfast/brunch dishes, attentive service, endless coffee, and cozy atmosphere at reasonable prices." }, { "type": "text", "bbox": [ 0.127, 0.318, 0.798, 0.327 ], "angle": 0, "content": "C3: Casual Latin American restaurant specializing in Guatemalaan food, with vegetarian options, variety of flavors, and friendly atmosphere." }, { "type": "text", "bbox": [ 0.127, 0.327, 0.823, 0.337 ], "angle": 0, "content": "C4: Popular comfort food spot in New Orleans' French Quarter with diverse crowd, offering cheap eats, breakfast, burgers, and friendly service." }, { "type": "list", "bbox": [ 0.127, 0.298, 0.823, 0.337 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.113, 0.357, 0.882, 0.385 ], "angle": 0, "content": "Figure 5: Example labels for user, answer item and candidate item (C) labels from Yelp dataset. Underlined words are features that overlaps with the user and the answer item." }, { "type": "table", "bbox": [ 0.12, 0.464, 0.487, 0.596 ], "angle": 0, "content": "<table><tr><td rowspan=\"2\">Dimension</td><td colspan=\"4\">Yelp</td></tr><tr><td>R@10</td><td>N@10</td><td>R@20</td><td>N@20</td></tr><tr><td>64</td><td>0.0393</td><td>0.0198</td><td>0.0657</td><td>0.0264</td></tr><tr><td>128</td><td>0.0514</td><td>0.0255</td><td>0.0865</td><td>0.0344</td></tr><tr><td>256</td><td>0.0620</td><td>0.0300</td><td>0.1034</td><td>0.0401</td></tr><tr><td>512</td><td>0.0599</td><td>0.0292</td><td>0.1048</td><td>0.0406</td></tr><tr><td>1024</td><td>0.0530</td><td>0.0256</td><td>0.0899</td><td>0.0349</td></tr><tr><td>2048</td><td>0.0487</td><td>0.0233</td><td>0.0889</td><td>0.0334</td></tr><tr><td>4096</td><td>0.0455</td><td>0.0220</td><td>0.0793</td><td>0.0304</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.114, 0.605, 0.489, 0.634 ], "angle": 0, "content": "Table 11: Comparing dimensional size of linear projection on Yelp dataset." }, { "type": "table", "bbox": [ 0.174, 0.757, 0.431, 0.822 ], "angle": 0, "content": "<table><tr><td>Model</td><td>Inference Speed</td></tr><tr><td>Llama2-seq</td><td>0.2521 batch/s</td></tr><tr><td>Ours</td><td>0.2579 batch/s</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.114, 0.832, 0.486, 0.86 ], "angle": 0, "content": "Table 12: Comparison on inference speed of Llama2 and ReLRec." }, { "type": "text", "bbox": [ 0.508, 0.411, 0.885, 0.62 ], "angle": 0, "content": "embedding, ranging from 64 to 4096 dimensions. 11 presents the performance results on the Yelp dataset across different dimension sizes. The results demonstrate that a dimension size of 512 achieved the highest performance. While increasing the dimension size from 64 to 512 led to improved performance, further increasing it beyond 512 resulted in diminishing returns. This suggests that while larger dimensions provide more capacity, they may reduce model's ability to generalize effectively. Consequently, we selected 512 as the optimal dimension size for the projection layer in our final model configuration." }, { "type": "title", "bbox": [ 0.51, 0.639, 0.635, 0.654 ], "angle": 0, "content": "A.3 Inference" }, { "type": "text", "bbox": [ 0.508, 0.664, 0.885, 0.922 ], "angle": 0, "content": "In ReLRec, the pre-trained word embeddings and transformer layers remain frozen, with the main modifications being the addition of a linear projection layer, user embedding, and item embedding. Consequently, as shown in Table 12, the inference speed of our model closely matches that of Llama2-seq, which refers to recommendation prediction using Llama2-7b (Touvron et al., 2023) with only the item embedding attached. The inference experiments were conducted on a single NVIDIA RTX A6000 with a batch size of 16. This minimal difference in inference speed highlights the efficiency of our approach, allowing for the potential application of existing techniques to further accelerate the process. Future work will focus on exploring additional methods to optimize inference without" }, { "type": "page_number", "bbox": [ 0.481, 0.928, 0.519, 0.941 ], "angle": 0, "content": "7221" } ], [ { "type": "text", "bbox": [ 0.116, 0.086, 0.424, 0.101 ], "angle": 0, "content": "altering the core transformer architecture." }, { "type": "page_number", "bbox": [ 0.481, 0.929, 0.521, 0.941 ], "angle": 0, "content": "7222" } ]]123version https://git-lfs.github.com/spec/v1oid sha256:78aaad857a66f3165dfac593fe4f5fd366326ecb49731e8bbc32af5e5dcc44e0size 1706911123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314# Enhancing Large Language Model Based Sequential Recommender Systems with Pseudo Labels Reconstruction
Hyunsoo Na $^{1}$ , Minseok Gang $^{1}$ , Youngrok Ko $^{1}$ , Jinseok Seol $^{2}$ , Sang-goo Lee $^{1,3}$
$^{1}$ Seoul National University, $^{2}$ Korea Advanced Institute of Science and Technology $^{3}$ IntelliSys, Korea
{monchana, alstjr3754, yrko1, sglee}@europa.snu.ac.kr jsseol@kaist.ac.kr
# Abstract
Large language models (LLMs) are utilized in various studies, and have demonstrated potential to function independently as a recommendation model. However, training on user-item interaction sequences and additional textual information such as reviews often modifies the pre-trained weights of LLMs, diminishing their inherent strength in constructing and comprehending natural language sentences. In this study, we propose a reconstruction-based LLM recommendation model (ReLURec) that harnesses the feature extraction capability of LLMs, while preserving LLMs' sentence generation abilities. We reconstruct the user and item pseudo-labels generated from user reviews while training on sequential data, aiming to exploit the key features of both users and items. Experimental results demonstrate the efficacy of label reconstruction in sequential recommendation tasks.
# 1 Introduction
Recommender systems have achieved significant advancement, becoming essential in various domains such as e-commerce, streaming services, and social media. Despite their widespread application, traditional methods face several limitations, particularly in extracting and effectively utilizing textual information, such as user reviews, in addition to interaction data. Traditional models, (Kang and McAuley, 2018; Jannach and Ludewig, 2017; Sun et al., 2019; Ma et al., 2019; Tang and Wang, 2018), while effective in leveraging numerical data such as ratings and purchase history, often struggle with capturing the nuanced contextual information present in user reviews and other textual data. This limits their ability to fully understand user preferences and provide highly personalized recommendations.
Large language models (LLMs), like GPT (Brown et al., 2020), have transformed the field
of recommender systems by excelling in understanding and generating natural languages. They effectively address the limitations of traditional models in handling textual data and are actively studied for their potential in various recommendation tasks. Several efforts have leveraged LLMs for zero/few-shot recommendation by incorporating user history and candidate items as input prompt (Zheng et al., 2023; Zhu et al., 2024; Zhao et al., 2024). Additionally, LLMs have been employed to address cold-start problem (Xi et al., 2023; Wang et al., 2024b) and have been utilized for data augmentation purposes (Wei et al., 2024; Ning et al., 2024; Ren et al., 2024). Moreover, studies that have aimed to train LLMs via efficient measures (Li et al., 2023a,b; Yu et al., 2024; Kaur and Shah, 2024) have demonstrated their potential to function as recommendation models.
LLM-based recommender systems leverage pretrained knowledge to understand diverse textual inputs and generate rich textual representations (Acharya et al., 2023; Wang et al., 2024a). This allows LLMs to provide contextually relevant suggestions that align closely with user preferences. However, training LLMs on recommendation datasets can disrupt their pre-trained weights, especially their generation capabilities (Li and Hoiem, 2017; Luo et al., 2023). Therefore, new methods are needed to use LLMs effectively while preserving their strengths.
Our proposed methodology addresses such challenges by leveraging LLMs' advanced textual representation generation in a sequential recommendation framework. To preserve the pre-trained knowledge of the LLM, we implemented separate embeddings for users and items while freezing the LLM's transformer layers and the word embedding. This ensures that the model retains its ability to construct coherent sentences. To train user and item embedding, we generated pseudo-labels for users and items based on their reviews. Finally, we
 (a) User's review on an item. (b) Use item pseudo-label generation.
trained the model using both sequential data and the pseudo-labels simultaneously.
The main contributions of this paper are: (1) proposing a reconstruction-based LLM model (ReLURec) that captures and effectively integrates user/item label features for next item predictions; (2) introducing a methodology that leverages the feature extraction capabilities of LLMs while preserving their inherent sentence generation abilities; and (3) demonstrating that encapsulating rich contextual information in labels and integrating it into sequential recommendations enhance the model's ability to understand and predict user preferences.
# 2 Proposed Approach
In this study, we propose ReLRec, a model composed of two primary components: the creation of user/item embeddings with pseudo-labels, and the training process that incorporates both sequential data and textual labels.
# 2.1 Pseudo-label Generation
We employed the RLMRec profile generation method (Ren et al., 2024) to create pseudo-labels for both users and items. As depicted in Fig. 1, we first aggregated and concatenated reviews associated with each item to construct an item profile. Similarly, user profiles were generated by concatenating the reviews submitted by each user. These concatenated reviews were subsequently passed to ChatGPT (i.e., gpt-3.5-turbo), which was utilized to produce labels for both items and users. Furthermore, the initially generated labels were reprocessed through ChatGPT to obtain variations in different formats. To capture diverse and meaningful features in the labels, we generated multiple label versions, all maintaining consistent contextual meaning, and randomly selected one for each
 Figure 1: Pseudo-label generation. (a) refers the review from a user to an item and (b) shows how reviews are concatenated to generate pseudo user/item label. Figure 2: Illustration of ReLRec, sequential recommendation with label reconstruction.
<table><tr><td>Dataset</td><td>#User</td><td>#Item</td><td>#Inter.</td><td>#Avg.</td><td>Sparsity</td></tr><tr><td>Yelp</td><td>11,092</td><td>11,011</td><td>321,581</td><td>29.0</td><td>99.737%</td></tr><tr><td>Book</td><td>10,830</td><td>9,333</td><td>211,909</td><td>19.6</td><td>99.790%</td></tr></table>
Table 1: Dataset statistics. #User, #Item, #Inter., #Avg. denote the number of users, items, total interactions, and average user interactions respectively.
training iteration. This approach ensures that the model is exposed to varied yet coherent label representations during training.
# 2.2 RelRec Architecture
LLM-based sequential recommender systems tend to overlook the LLM's capability to construct coherent sentences, focusing primarily on analyzing sequential data. The implementation of fine-tuned transformer layers and adapters to capture sequential patterns frequently results in a diminished capacity to generate relevant sentences and accurately capture contextual meaning. ReLRec leverages the capabilities of LLMs to comprehend and utilize textual information, incorporating rich, nuanced data encapsulated in pseudo-labels generated from user reviews. As shown in Figure 2, we implemented separate embeddings for users and items, initialized with the average of the word token embedding weights. A unique token is assigned to each user/item id (i.e., "iid-1" is a single token) to represent the attributes of each user/items. With the transformer layers and word embeddings frozen to preserve the LLM's inherent ability to understand and generate natural language, we added a projection layer to each embedding to map and integrate the pre-trained knowledge with newly trained text labels.
<table><tr><td rowspan="2">Models</td><td colspan="6">Yelp</td><td colspan="6">Amazon-book</td></tr><tr><td>R@5</td><td>N@5</td><td>R@10</td><td>N@10</td><td>R@20</td><td>N@20</td><td>R@5</td><td>N@5</td><td>R@10</td><td>N@10</td><td>R@20</td><td>N@20</td></tr><tr><td>STAMP</td><td>0.0232</td><td>0.0145</td><td>0.0393</td><td>0.0196</td><td>0.0673</td><td>0.0267</td><td>0.0699</td><td>0.0564</td><td>0.0908</td><td>0.0631</td><td>0.1217</td><td>0.0709</td></tr><tr><td>HGN</td><td>0.0229</td><td>0.0140</td><td>0.0433</td><td>0.0205</td><td>0.0764</td><td>0.0288</td><td>0.0356</td><td>0.022</td><td>0.0633</td><td>0.0309</td><td>0.1082</td><td>0.0422</td></tr><tr><td>GRU4Rec</td><td>0.0269</td><td>0.0161</td><td>0.0504</td><td>0.0237</td><td>0.0881</td><td>0.0331</td><td>0.0646</td><td>0.0441</td><td>0.0989</td><td>0.0552</td><td>0.1473</td><td>0.0673</td></tr><tr><td>SASRec</td><td>0.0210</td><td>0.0135</td><td>0.0386</td><td>0.0190</td><td>0.0730</td><td>0.0276</td><td>0.0624</td><td>0.0355</td><td>0.0959</td><td>0.0463</td><td>0.1443</td><td>0.0585</td></tr><tr><td>BERT4Rec</td><td>0.0153</td><td>0.0093</td><td>0.0283</td><td>0.0135</td><td>0.0540</td><td>0.0200</td><td>0.0380</td><td>0.0267</td><td>0.0585</td><td>0.0333</td><td>0.0869</td><td>0.0405</td></tr><tr><td>NARM</td><td>0.0272</td><td>0.0165</td><td>0.0527</td><td>0.0246</td><td>0.0910</td><td>0.0341</td><td>0.0650</td><td>0.0458</td><td>0.0947</td><td>0.0553</td><td>0.1424</td><td>0.0673</td></tr><tr><td>CL4SRec</td><td>0.0277</td><td>0.0171</td><td>0.0449</td><td>0.0226</td><td>0.0793</td><td>0.0312</td><td>0.0396</td><td>0.0235</td><td>0.0595</td><td>0.0299</td><td>0.0888</td><td>0.0372</td></tr><tr><td>ICLRec</td><td>0.0181</td><td>0.0117</td><td>0.0295</td><td>0.0154</td><td>0.0485</td><td>0.0202</td><td>0.0352</td><td>0.0236</td><td>0.0520</td><td>0.0290</td><td>0.0779</td><td>0.0356</td></tr><tr><td>P5</td><td>0.0240</td><td>0.0150</td><td>0.0390</td><td>0.0198</td><td>0.0587</td><td>0.0247</td><td>0.0318</td><td>0.0230</td><td>0.0445</td><td>0.0271</td><td>0.0629</td><td>0.0318</td></tr><tr><td>E4SRec</td><td>0.0180</td><td>0.0102</td><td>0.0541</td><td>0.0212</td><td>0.0902</td><td>0.0306</td><td>0.0369</td><td>0.0317</td><td>0.0831</td><td>0.0467</td><td>0.1570</td><td>0.0650</td></tr><tr><td>Ours</td><td>0.0338</td><td>0.0208</td><td>0.0599</td><td>0.0292</td><td>0.1048</td><td>0.0406</td><td>0.0758</td><td>0.0570</td><td>0.1011</td><td>0.0651</td><td>0.1377</td><td>0.0741</td></tr><tr><td>Improvement</td><td>24.3%</td><td>26.1%</td><td>10.7%</td><td>18.7%</td><td>15.2%</td><td>19.1%</td><td>8.4%</td><td>1.1%</td><td>2.2%</td><td>3.2%</td><td>-12.3%</td><td>4.5%</td></tr></table>
Table 2: Performance comparison of sequential recommendation models. R stands for Recall, and N refers to NDCG. Bold indicates the best result, while the underline is the runner-up.
# 2.3 Label-based Recommendation
ReLRec simultaneously trains on sequential interaction and user/item labels, ensuring that the context and features captured in the labels are reflected in the model's next item prediction. Each batch comprises of the sequential interaction and label of a user, along with a randomly selected item label.
Suppose $I$ and $U$ denote entire set of items and users. Let $i_{1:t}^{k} = \{i_{1}^{k},\dots ,i_{t}^{k}\}$ represent the user-item interaction sequence, where $i_p^k\in I$ is the item interacted with by user $u^{k}$ at timestamp $p$ , and $u^{k}\in U$ . The goal is to predict the next item $i_{t + 1}^{k}$ by training on $i_{1:t}^{k}$ . For the next item prediction, we utilized cross-entropy loss of our backbone LLM.
$$\mathcal {L} _ {\mathrm {s e q}} = - \sum_ {k = 1} ^ {| U |} \frac {1}{T _ {k}} \sum_ {t = 1} ^ {T _ {k}} \log P \left(i _ {t + 1} \mid i _ {1: t}, u ^ {k}\right). \tag {1}$$
Here, $T$ is the total number of time steps for each user. The labels of each user and item are reconstructed along with the next item prediction. Similarly, with $S$ referring the entire set of word tokens, the label reconstruction aims to predict the token $s_{t + 1}$ given tokens $s_{1:t} = \{s_1,\ldots ,s_t\}$ .
$$\mathcal {L} _ {\text {i t e m}} = - \sum_ {i \in I} \frac {1}{T _ {i}} \sum_ {t = 1} ^ {T _ {i}} \log P \left(s _ {t + 1} ^ {i} \mid s _ {1: t} ^ {i}\right), \tag {2}$$
$$\mathcal {L} _ {\text {u s e r}} = - \sum_ {u \in U} \frac {1}{T _ {u}} \sum_ {t = 1} ^ {T _ {u}} \log P \left(s _ {t + 1} ^ {u} \mid s _ {1: t} ^ {u}\right), \tag {3}$$
where $s^u$ and $s^i$ denotes tokens within the labels of user $u$ and item $i$ , respectively. The overall learning objective function of ReLRec is the sum of the losses for the next item prediction and user/item label reconstruction.
$$\mathcal {L} = \alpha \mathcal {L} _ {\text {s e q}} + \beta \mathcal {L} _ {\text {i t e m}} + \gamma \mathcal {L} _ {\text {u s e r}}, \tag {4}$$
where $\alpha$ , $\beta$ and $\gamma$ are the loss weights for each task. During inference, we evaluate the model not only on sequential prediction, but also on user/item label reconstruction, to ensure that the model has learned the textual labels of users and items. We provide a randomly selected prompt to the model to reconstruct the user/item label. The Appendix A.1 provides example labels.
# 3 Experiment
# 3.1 Experimental Settings
Datasets and metrics We conducted experiments on two public datasets: Yelp (Asghar, 2016) and Amazon-book (McAuley et al., 2015). Each dataset includes user's reviews on items that user interacted with. We filtered out interactions with a rating below 3 and excluded users with less than 5 interactions. The statistics of each dataset are provided in Table 1. We evaluated recommendation performance using two widely adopted ranking metrics: Recall@k and NDCG@k with $k \in \{5,10,20\}$ .
Baselines We compared our model with ten baseline sequential recommendations: STAMP (Liu et al., 2018), HGN (Ma et al., 2019), GRU4Rec (Tan et al., 2016), SASRec (Kang and McAuley, 2018), BERT4Rec (Sun et al., 2019), NARM (Li et al., 2017), CL4SRec (Xie et al., 2022), ICLRec (Chen et al., 2022), P5 (Geng et al., 2022) and E4SRec (Li et al., 2023a). STAMP, HGN, GRU4Rec, SASRec, BERT4Rec and NARM experiments are conducted using RecBole v1.2.0 (Xu et al., 2023).
Setup ReLRec uses Llama-2-7b (Touvron et al., 2023) as the backbone model. Dimension for each
<table><tr><td colspan="3">Methods</td><td colspan="2">Yelp</td><td colspan="2">Book</td></tr><tr><td>User</td><td>PL</td><td>Recon.</td><td>R@20</td><td>N@20</td><td>R@20</td><td>N@20</td></tr><tr><td>X</td><td>X</td><td>-</td><td>0.0764</td><td>0.0302</td><td>0.1086</td><td>0.0609</td></tr><tr><td>X</td><td>O</td><td>-</td><td>0.0750</td><td>0.0299</td><td>0.1044</td><td>0.0556</td></tr><tr><td>O</td><td>X</td><td>X</td><td>0.0727</td><td>0.0289</td><td>0.1035</td><td>0.0592</td></tr><tr><td>O</td><td>O</td><td>X</td><td>0.0755</td><td>0.0302</td><td>0.1049</td><td>0.0586</td></tr><tr><td>O</td><td>O</td><td>O</td><td>0.0969</td><td>0.0371</td><td>0.1309</td><td>0.0706</td></tr><tr><td colspan="3">Improvement</td><td>28.3%</td><td>22.8%</td><td>20.5%</td><td>15.9%</td></tr></table>
projection layer is set to 512 for all datasets. $\alpha$ $\beta$ and $\gamma$ are set to 0.75, 0.3 and 0.9, respectively. ReLRec was trained with RTX A6000.
# 3.2 Performance Comparison
Table 2 presents the experiment results of ReLRec compared to sequential recommendation baselines. Our model outperforms baseline models in most metrics, by up to $24.3\%$ in Recall and $26.1\%$ in NDCG. The performance increase is highlighted especially in Yelp dataset. By incorporating contextual label information into the sequential recommendation, ReLRec suggests items that are similar to the labels of user and answer item. Additional examples and analysis are in the Appendix A.2.1.
# 3.3 Ablation and Effectiveness Analysis
Reconstruction loss We conducted an analysis to evaluate the effectiveness of our model, specifically examining whether implementing the user embedding and label reconstruction loss enhance performance. As shown in Table 3, simply adding user embedding to train each user did not necessarily improve results. However, including label reconstruction loss significantly boosted performance, indicating that encapsulating textual information in the labels and integrating it into the sequence prediction was effective. Effect of text projection layer is in the Appendix A.2.2.
Label inconsistency To evaluate the robustness of our reconstruction-based method, we conducted experiments analyzing the impact of label inconsistency on model performance. Noise was introduced by switching item and user labels across datasets, and the model's ability to learn from these inconsistent labels was assessed. As shown in Table 4, even with the introduction of label noise, the reconstruction method demonstrated notable
Table 3: Comparing methods for using user embedding (User), projection layer (PL) and reconstruction loss (Recon.). All embeddings are randomly initialized.
<table><tr><td colspan="3">Methods</td><td colspan="2">Yelp</td><td colspan="2">Book</td></tr><tr><td>Recon</td><td>Item</td><td>User</td><td>R@20</td><td>N@20</td><td>R@20</td><td>N@20</td></tr><tr><td>X</td><td>O</td><td>O</td><td>0.0842</td><td>0.0372</td><td>0.1004</td><td>0.0417</td></tr><tr><td>O</td><td>X</td><td>O</td><td>0.0973</td><td>0.0377</td><td>0.1374</td><td>0.0718</td></tr><tr><td>O</td><td>O</td><td>X</td><td>0.1026</td><td>0.0382</td><td>0.1353</td><td>0.0711</td></tr><tr><td>O</td><td>O</td><td>O</td><td>0.1048</td><td>0.0406</td><td>0.1377</td><td>0.0741</td></tr></table>
Table 4: Effect of label inconsistency. X in Item and User column indicates that the label of dataset is switched.
<table><tr><td colspan="3">Methods</td><td colspan="2">Yelp</td><td colspan="2">Book</td></tr><tr><td>Recon.</td><td>Avg.</td><td>2-stage.</td><td>R@20</td><td>N@20</td><td>R@20</td><td>N@20</td></tr><tr><td>X</td><td>X</td><td>-</td><td>0.0755</td><td>0.0302</td><td>0.1049</td><td>0.0586</td></tr><tr><td>X</td><td>O</td><td>-</td><td>0.0842</td><td>0.0327</td><td>0.1004</td><td>0.0417</td></tr><tr><td>O</td><td>X</td><td>O</td><td>0.0969</td><td>0.0371</td><td>0.1309</td><td>0.0706</td></tr><tr><td>O</td><td>O</td><td>X</td><td>0.0972</td><td>0.0361</td><td>0.1242</td><td>0.0682</td></tr><tr><td>O</td><td>O</td><td>O</td><td>0.1048</td><td>0.0406</td><td>0.1377</td><td>0.0741</td></tr></table>
Table 5: Effect of average embedding initialization (Avg.) and 2-stage pseudo-label generation (2-stage.) for Yelp and Amazon-book datasets.
improvements compared to scenarios without reconstruction. Although label inconsistency led to a decline in performance relative to consistent-label conditions, the model still captured meaningful patterns, underscoring the resilience and effectiveness of the label reconstruction approach under suboptimal conditions.
Pseudo-label Quality To examine the effect of pseudo-label quality on performance, we conducted experiments refining the label generation process with a two-stage method. In the first stage, user and item profiles were generated by aggregating relevant reviews to produce initial labels. In the second stage, these labels were refined by removing noise. Notably, even with the one-stage process, our reconstruction method showed significant improvements in overall performance despite the presence of noise. As shown in Table 5, applying the two-stage label generation further enhanced performance, demonstrating the added value of refined labels, with single-stage process already providing substantial gains.
Embedding initialization We initialized the user and item embeddings in our model with the average value of pre-trained LLM word embedding. Table 5 compares the effectiveness of this average initialization both with and without reconstruction loss. The results show that average initialization was only consistently effective when reconstruction loss was included. We believe this is because, as ReLRec trains on user/item textual labels, the
<table><tr><td rowspan="2">Metrics</td><td colspan="4">Sequence Weight α</td></tr><tr><td>0.25</td><td>0.50</td><td>0.75</td><td>1.00</td></tr><tr><td>R@20</td><td>0.0856</td><td>0.1000</td><td>0.1000</td><td>0.0956</td></tr><tr><td>N@20</td><td>0.0337</td><td>0.0390</td><td>0.0396</td><td>0.0373</td></tr></table>
 Figure 3: Recall/NDCG@20 on change of $\beta$ and $\gamma$ .
average value of the pre-trained word embeddings provides a better initialization point compared to random initialization.
Weight parameter To evaluate the impact of each loss hyperparameters, we conducted experiments with different values of hyperparameters on Yelp dataset. Table 6 shows the performance variations with different values of next item prediction loss weight $\alpha$ . The results indicate that an $\alpha$ value of 0.75 yields the best performance. This suggests that a balanced emphasis on sequential interactions and label reconstruction is crucial in optimal performance. Increasing $\alpha$ beyond this point leads to a decline in performance, likely due to overemphasizing sequential data at the expense of label information.
Fig. 3 illustrates the performance changes as the item label weight $\beta$ and user label weight $\gamma$ vary, respectively. Initially, increasing $\beta$ improves performance as the item label information integrates into the sequential pattern. However, beyond a certain point, further increases in $\beta$ cause performance to drop significantly, likely because excessive weight on item labels hinders the item embedding's ability to predict the next item. This is evident from the decline in both Recall and NDCG metrics as shown in Figure 3a.
For $\gamma$ , the performance trends differently. As shown in Figure 3b, the best performance is observed at the highest value of $\gamma$ . This indicates that a higher weight on user labels effectively enhances the model's ability to capture user-specific preferences.
Table 6: Performance variation with different sequence weight $\alpha$ value on Yelp dataset.
<table><tr><td>Dataset</td><td>#User</td><td>#Item</td><td>#Inter.</td><td>#Avg.</td><td>Sparsity</td></tr><tr><td>Steam</td><td>23,311</td><td>5,238</td><td>596,560</td><td>113.9</td><td>99.511%</td></tr></table>
Table 7: Dataset statistics of Steam dataset.
# 4 Conclusion
In this paper, we proposed ReLRec, a reconstruction based LLM recommendation model which integrates features of user/item text labels to the next item prediction. Our proposed model, ReLRec, effectively utilizes pseudo-labels generated from user reviews to capture nuanced information and enhance recommendation accuracy by label reconstruction. Experimental results demonstrate the effectiveness of ReLRec.
# Acknowledgments
This work was partly supported by the National Research Foundation of Korea (NRF) [No. RS-2023-00243243] and Institute of Information & communications Technology Planning & Evaluation (IITP) [NO. RS-2021-II211343, Artificial Intelligence Graduate School Program (Seoul National University)], both grant funded by the Korea government (MSIT). Also, the ICT at Seoul National University provided research facilities for this study.
# Limitation
We conducted additional experiments on Steam (Kang and McAuley, 2018) dataset and analyzed our results. The experiments on Steam indicated that the performance of the label reconstruction-based approach may depend on the quality of the labels, and it might not lead to performance improvements on certain conditions.
# Experimental Settings
Statistics about Steam dataset are provided in Table 7. Similar to Yelp and Amazon-book, Steam dataset includes user reviews on items that users have interacted with. However, Steam features a much higher user-to-item ratio, a significantly larger average number of interactions per user, and a much higher total number of interactions. Moreover, unlike Yelp and Amazon-book, Steam does not provide user ratings for each item. Therefore, we could not filter interactions based on ratings and only excluded users with fewer than 5 interactions. The evaluation metrics, baselines, and setup are
<table><tr><td rowspan="2">Models</td><td colspan="4">Steam</td></tr><tr><td>R@10</td><td>N@10</td><td>R@20</td><td>N@20</td></tr><tr><td>STAMP</td><td>0.1613</td><td>0.1317</td><td>0.1924</td><td>0.1395</td></tr><tr><td>HGN</td><td>0.0840</td><td>0.0443</td><td>0.1261</td><td>0.0548</td></tr><tr><td>GRU4Rec</td><td>0.1732</td><td>0.1301</td><td>0.2176</td><td>0.1413</td></tr><tr><td>SASRec</td><td>0.1814</td><td>0.1392</td><td>0.2277</td><td>0.1508</td></tr><tr><td>BERT4Rec</td><td>0.1288</td><td>0.0871</td><td>0.1767</td><td>0.0991</td></tr><tr><td>NARM</td><td>0.1775</td><td>0.1311</td><td>0.2256</td><td>0.1432</td></tr><tr><td>Ours</td><td>0.1521</td><td>0.1135</td><td>0.2002</td><td>0.1255</td></tr><tr><td>Improvement</td><td>-16.2%</td><td>-18.5%</td><td>-12.1%</td><td>-16.8%</td></tr></table>
Table 8: Performance comparison of sequential recommendation models on Steam dataset.
<table><tr><td colspan="3">Methods</td><td colspan="4">Steam</td></tr><tr><td>User</td><td>PL</td><td>Recon.</td><td>R@10</td><td>N@10</td><td>R@20</td><td>N@20</td></tr><tr><td>X</td><td>X</td><td>X</td><td>0.1443</td><td>0.1108</td><td>0.1842</td><td>0.1209</td></tr><tr><td>O</td><td>X</td><td>X</td><td>0.1424</td><td>0.1077</td><td>0.1811</td><td>0.1174</td></tr><tr><td>O</td><td>O</td><td>X</td><td>0.1398</td><td>0.1060</td><td>0.1789</td><td>0.1160</td></tr><tr><td>O</td><td>O</td><td>O</td><td>0.1534</td><td>0.1143</td><td>0.2001</td><td>0.1260</td></tr><tr><td colspan="3">Improvement</td><td>6.3%</td><td>3.2%</td><td>8.6%</td><td>4.2%</td></tr></table>
Table 9: Comparing methods for using user embedding (User), projection layer (PL) and reconstruction loss (Recon.). All embeddings are randomly initialized.
identical to those used for Yelp and Amazon-book dataset.
# Experiment Analysis
Table 8 shows the performance comparison between our model and baseline models on Steam dataset. We can observe that our model did not achieve the best or the second-best results in any of the metrics on Steam dataset.
We conducted a similar analysis to that of Yelp and Amazon-book datasets to evaluate the effectiveness of the reconstruction loss on Steam. The results are shown in Table 9. The performance improvement on Steam was much smaller compared to Yelp and Amazon-book.
Label quality and noises The inclusion of a high volume of interactions without filtering the dataset can introduce noises. Since Steam dataset does not have rating, all reviews were included in the training. This means the model may be learning from labels and interactions that are not truly indicative of user preferences, reducing the effectiveness of the label reconstruction-based approach.
# Limitation Conclusion
The performance of ReLRec model on Steam dataset underscores the challenges of handling high interaction volumes and the need for mechanisms
that can effectively differentiate and manage low-quality interactions. Future work should focus on enhancing the model's ability to understand and mitigate the impact of negative or irrelevant interactions. By improving the model's capacity to handle diverse interaction data, we can enhance its robustness and overall performance in high-interaction environments like Steam dataset.
# References
Arkadeep Acharya, Brijraj Singh, and Naoyuki Onoe. 2023. Llm based generation of item-description for recommendation system. In Proceedings of the 17th ACM Conference on Recommender Systems. ACM, 1204-1207. Nabiha Asghar. 2016. Yelp dataset challenge: Review rating prediction. arXiv preprint arXiv:1605.05362 (2016). Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. 2020. Language models are few-shot learners. Advances in neural information processing systems 33 (2020), 1877-1901. Yongjun Chen, Zhiwei Liu, Jia Li, Julian McAuley, and Caiming Xiong. 2022. Intent contrastive learning for sequential recommendation. In Proceedings of the ACM Web Conference 2022. 2172-2182. Shijie Geng, Shuchang Liu, Zuohui Fu, Yingqiang Ge, and Yongfeng Zhang. 2022. Recommendation as language processing (rlp): A unified pretrain, personalized prompt & predict paradigm (p5). In Proceedings of the 16th ACM Conference on Recommender Systems. 299-315. Dietmar Jannach and Malte Ludewig. 2017. When recurrent neural networks meet the neighborhood for session-based recommendation. In Proceedings of the eleventh ACM conference on recommender systems. 306-310. Wang-Cheng Kang and Julian McAuley. 2018. Self-attentive sequential recommendation. In 2018 IEEE international conference on data mining (ICDM). IEEE, 197-206. Kirandeep Kaur and Chirag Shah. 2024. Efficient and Responsible Adaptation of Large Language Models for Robust Top-k Recommendations. arXiv preprint arXiv:2405.00824 (2024). Jing Li, Pengjie Ren, Zhumin Chen, Zhaochun Ren, Tao Lian, and Jun Ma. 2017. Neural attentive session-based recommendation. In Proceedings of the 2017 ACM on Conference on Information and Knowledge Management. 1419-1428.
Lei Li, Yongfeng Zhang, and Li Chen. 2023b. Prompt distillation for efficient llm-based recommendation. In Proceedings of the 32nd ACM International Conference on Information and Knowledge Management. 1348-1357. Xinhang Li, Chong Chen, Xiangyu Zhao, Yong Zhang, and Chunxiao Xing. 2023a. E4SRec: An elegant effective efficient extensible solution of large language models for sequential recommendation. arXiv preprint arXiv:2312.02443 (2023). Zhizhong Li and Derek Hoiem. 2017. Learning without forgetting. IEEE transactions on pattern analysis and machine intelligence 40, 12 (2017), 2935-2947. Qiao Liu, Yifu Zeng, Refuoe Mokhosi, and Haibin Zhang. 2018. STAMP: short-term attention/memory priority model for session-based recommendation. In Proceedings of the 24th ACM SIGKDD international conference on knowledge discovery & data mining. 1831-1839. Yun Luo, Zhen Yang, Fandong Meng, Yafu Li, Jie Zhou, and Yue Zhang. 2023. An empirical study of catastrophic forgetting in large language models during continual fine-tuning. arXiv preprint arXiv:2308.08747 (2023). Chen Ma, Peng Kang, and Xue Liu. 2019. Hierarchical gating networks for sequential recommendation. In Proceedings of the 25th ACM SIGKDD international conference on knowledge discovery & data mining. 825-833. Julian McAuley, Christopher Targett, Qinfeng Shi, and Anton Van Den Hengel. 2015. Image-based Recommendations on Styles and Substitutes. In Proceedings of the 38th International ACM SIGIR Conference on Research and Development in Information Retrieval. 43-52. Lin Ning, Luyang Liu, Jiaxing Wu, Neo Wu, Devora Berlowitz, Sushant Prakash, Bradley Green, Shawn O'Banion, and Jun Xie. 2024. User-LLM: Efficient LLM Contextualization with User Embeddings. arXiv preprint arXiv:2402.13598 (2024). Xubin Ren, Wei Wei, Lianghao Xia, Lixin Su, Suqi Cheng, Junfeng Wang, Dawei Yin, and Chao Huang. 2024. Representation learning with large language models for recommendation. In Proceedings of the ACM on Web Conference 2024. 3464-3475. Fei Sun, Jun Liu, Jian Wu, Changhua Pei, Xiao Lin, Wenwu Ou, and Peng Jiang. 2019. BERT4Rec: Sequential recommendation with bidirectional encoder representations from transformer. In Proceedings of the 28th ACM international conference on information and knowledge management. 1441-1450. Yong Kiam Tan, Xinxing Xu, and Yong Liu. 2016. Improved recurrent neural networks for session-based recommendations. In Proceedings of the 1st workshop on deep learning for recommender systems. 17-22.
Jiaxi Tang and Ke Wang. 2018. Personalized top-n sequential recommendation via convolutional sequence embedding. In Proceedings of the eleventh ACM international conference on web search and data mining. 565-573. Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, Dan Bikel, Lukas Blecher, Cristian Canton Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, Brian Fuller, Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony Hartshorn, Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez, Madian Khabsa, Isabel Kloumann, Artem Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee, Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinez, Todor Mihaylov, Pushkar Mishra, Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi, Alan Schelten, Ruan Silva, Eric Michael Smith, Ranjan Subramanian, Xiaoqing Ellen Tan, Binh Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu, Zheng Yan, Iliyan Zarov, Yuchen Zhang, Angela Fan, Melanie Kambadur, Sharan Narang, Aurelien Rodriguez, Robert Stojnic, Sergey Edunov, and Thomas Scialom. 2023. Llama 2: Open Foundation and FineTuned Chat Models. arXiv:2307.09288 [cs.CL] Jianling Wang, Haokai Lu, James Caverlee, Ed H Chi, and Minmin Chen. 2024b. Large Language Models as Data Augmenters for Cold-Start Item Recommendation. In Companion Proceedings of the ACM on Web Conference 2024. 726-729. Wenhui Wang, Hangbo Bao, Shaohan Huang, Li Dong, and Furu Wei. 2020. Minilmv2: Multihead self-attention relation distillation for compressing pretrained transformers. arXiv preprint arXiv:2012.15828 (2020). Xinfeng Wang, Jin Cui, Yoshimi Suzuki, and Fumiyo Fukumoto. 2024a. RDRec: Rationale Distillation for LLM-based Recommendation. arXiv preprint arXiv:2405.10587 (2024). Wei Wei, Xubin Ren, Jiabin Tang, Qinyong Wang, Lixin Su, Suqi Cheng, Junfeng Wang, Dawei Yin, and Chao Huang. 2024. Llmrec: Large language models with graph augmentation for recommendation. In Proceedings of the 17th ACM International Conference on Web Search and Data Mining. 806-815. Yunjia Xi, Weiwen Liu, Jianghao Lin, Jieming Zhu, Bo Chen, Ruiming Tang, Weinan Zhang, Rui Zhang, and Yong Yu. 2023. Towards open-world recommendation with knowledge augmentation from large language models. arXiv preprint arXiv:2306.10933 (2023). Xu Xie, Fei Sun, Zhaoyang Liu, Shiwen Wu, Jinyang Gao, Jiandong Zhang, Bolin Ding, and Bin Cui. 2022. Contrastive Learning for Sequential Recommendation. In 2022 IEEE 38th International Conference on
Data Engineering (ICDE). IEEE Computer Society, 1259-1273.
Lanling Xu, Zhen Tian, Gaowei Zhang, Junjie Zhang, Lei Wang, Bowen Zheng, Yifan Li, Jiakai Tang, Zeyu Zhang, Yupeng Hou, Xingyu Pan, Wayne Xin Zhao, Xu Chen, and Ji-Rong Wen. 2023. Towards a More User-Friendly and Easy-to-Use Benchmark Library for Recommender Systems. In SIGIR. ACM, 2837-2847.
Xiaohan Yu, Li Zhang, Xin Zhao, Yue Wang, and Zhongrui Ma. 2024. RA-Rec: An Efficient ID Representation Alignment Framework for LLM-based Recommendation. arXiv preprint arXiv:2402.04527 (2024).
Jujia Zhao, Wenjie Wang, Chen Xu, Zhaochun Ren, See-Kiong Ng, and Tat-Seng Chua. 2024. LLM-based Federated Recommendation. arXiv preprint arXiv:2402.09959 (2024).
Bowen Zheng, Yupeng Hou, Hongyu Lu, Yu Chen, Wayne Xin Zhao, and Ji-Rong Wen. 2023. Adapting large language models by integrating collaborative semantics for recommendation. arXiv preprint arXiv:2311.09049 (2023).
Yaochen Zhu, Liang Wu, Qi Guo, Liangjie Hong, and Jundong Li. 2024. Collaborative large language model for recommender systems. In Proceedings of the ACM on Web Conference 2024. 3162-3172.
# A Appendix
# A.1 Pseudo Labels
This section provides additional examples related to the generation and training of pseudo labels. Fig. 4 shows examples of user and item input prompts and their answer labels. A random prompt is selected from the list of prompts, and inserted into the model along with a user/item token. During evaluation, the similarity score between the reconstructed label and the answer label is measured using cosine similarity. The similarity in user and item label reconstruction was assessed using "all-MiniLM-L6-v2" model (Wang et al., 2020).
# A.2 Further Analyses
# A.2.1 Sequential Prediction Results
Based on our experiments with the Yelp and Amazon-book datasets, most of our performance metrics exceeded those of the baseline models. We examined the user labels and the labels of the top $N$ recommended items. Fig. 5 shows example labels for users, the correct answer items and candidate items, included in the top-5 recommendations.
From these examples, we can assume that the contextual information of both the user and the
# User Reconstruction
Input: Regarding uid_1, below are the details.
Answer: This user has a diverse palate and enjoys exploring new and unique dining experiences. They are drawn to traditional bakeries and ice cream parlors, as well as casual and lively bars with a wide selection of food and drinks....
# Item Reconstruction
Input: Specifics about $iid\_1$ are provided here.
Answer: With a focus on speed and affordability, iid_1 attracts cust omers who enjoy the efficiency of a fast-food joint but crave the a bility to customize their meals, even if it means accepting...
Figure 4: Examples of user/item reconstruction.
<table><tr><td rowspan="2">Methods</td><td colspan="2">Yelp</td><td colspan="2">Similarity</td></tr><tr><td>R@20</td><td>N@20</td><td>Item</td><td>User</td></tr><tr><td>w/o proj.</td><td>0.0995</td><td>0.0385</td><td>0.5261</td><td>0.7507</td></tr><tr><td>1-layer</td><td>0.1048</td><td>0.0406</td><td>0.4538</td><td>0.7211</td></tr><tr><td>2-layer</td><td>0.1039</td><td>0.0394</td><td>0.0875</td><td>0.3579</td></tr></table>
Table 10: Comparing methods for using linear projection attached to word token embedding.
items is effectively integrated into the sequential prediction results. ReLRec suggests items that closely match the labels of the users and the correct answer items. The suggested candidates had labels that closely resembled those of the answer items and aligned well with the user's preferences.
This alignment indicates that ReLRec is capable of capturing and utilizing rich textual information to enhance recommendation accuracy. By integrating both user and item labels into the prediction process, ReLRec is able to provide recommendations that are more likely to match the user's preferences, achieving higher rankings compared to models that only utilize sequential data.
# A.2.2 Text Projection Layer
To preserve the knowledge of LLMs, we froze the word embedding and transformer layers and examined the impact of adding a projection layer. As Table 3 demonstrates, adding projection layer was effective when ReLRec trains textual labels. Additionally, we investigated the optimal number of layers required for the model to effectively train on the contextual information of users/items. As detailed in Table 10, using more than one layer resulted in a decline in performance. This suggests that adding more layers can disrupt the model's ability to reconstruct textual information and degrade overall performance.
We also conducted experiment to determine the optimal projection layer dimension for ReLRec's
User-1: User enjoys Italian delis, American classics, high-quality burgers, creative soups, generous deli portions, seafood, and friendly service. Answer item: Mamma Italia's is a casual restaurant in Eagle with diverse menu, generous portions, cozy ambiance, and friendly staff.
C1: Upscale grill with classic American dishes, efficient service, trendy atmosphere, and pet-friendly outdoor dining. C2: Classic Italian dining in Philadelphia with unassuming ambiance, generous portions, and excellent service in a nostalgic atmosphere. C3: Las Palmas offers casual, affordable Tex-Mex with friendly service, quick service, and popular queso, although some find food mediocre. C4: iid_9 in Safety Harbor offers high-end wines, build-your-own charcuterie boards, convenient credit card system, cozy atmosphere, and attentive staff.
User-2: User seeks high-quality, diverse dining experiences with fresh ingredients, variety of options, cozy ambiance, and attentive service.
Answer item: Modern, trendy atmosphere with diverse menu, quality food/drink, outdoor seating, attention to detail, budget-friendly, innovative bruc h, well-cooked meats/sauces.
C1: Cozy and lively atmosphere with varied menu, wide beer selection, great service, steak and prime rib specialties. C2: iid_99 offers diverse pizzas, extensive beer selection, cozy atmosphere, and excellent service for pizza and beer lovers. C3: iid_88 in New Orleans offers house beers, bar food, and a lively atmosphere, popular with locals and tourists. C4: Versatile venue with good food and large portions, suitable for families, sports fans, and casual dining, but prices can be high.
User-3: Enjoys unique dining experiences, colorful food, generous portions, attentive staff, diverse choices, and specialty/organic options.
Answer item: Offers diverse menu, attentive service, and pleasant atmosphere, suitable for casual or special occasions.
C1: iD_2 offers interactive dining with a wide variety of food options, ideal for meat and seafood lovers in a casual upscale setting. C2: Popular Philly spot offering delicious breakfast/brunch dishes, attentive service, endless coffee, and cozy atmosphere at reasonable prices. C3: Casual Latin American restaurant specializing in Guatemalaan food, with vegetarian options, variety of flavors, and friendly atmosphere. C4: Popular comfort food spot in New Orleans' French Quarter with diverse crowd, offering cheap eats, breakfast, burgers, and friendly service.
Figure 5: Example labels for user, answer item and candidate item (C) labels from Yelp dataset. Underlined words are features that overlaps with the user and the answer item.
<table><tr><td rowspan="2">Dimension</td><td colspan="4">Yelp</td></tr><tr><td>R@10</td><td>N@10</td><td>R@20</td><td>N@20</td></tr><tr><td>64</td><td>0.0393</td><td>0.0198</td><td>0.0657</td><td>0.0264</td></tr><tr><td>128</td><td>0.0514</td><td>0.0255</td><td>0.0865</td><td>0.0344</td></tr><tr><td>256</td><td>0.0620</td><td>0.0300</td><td>0.1034</td><td>0.0401</td></tr><tr><td>512</td><td>0.0599</td><td>0.0292</td><td>0.1048</td><td>0.0406</td></tr><tr><td>1024</td><td>0.0530</td><td>0.0256</td><td>0.0899</td><td>0.0349</td></tr><tr><td>2048</td><td>0.0487</td><td>0.0233</td><td>0.0889</td><td>0.0334</td></tr><tr><td>4096</td><td>0.0455</td><td>0.0220</td><td>0.0793</td><td>0.0304</td></tr></table>
Table 11: Comparing dimensional size of linear projection on Yelp dataset.
<table><tr><td>Model</td><td>Inference Speed</td></tr><tr><td>Llama2-seq</td><td>0.2521 batch/s</td></tr><tr><td>Ours</td><td>0.2579 batch/s</td></tr></table>
Table 12: Comparison on inference speed of Llama2 and ReLRec.
embedding, ranging from 64 to 4096 dimensions. 11 presents the performance results on the Yelp dataset across different dimension sizes. The results demonstrate that a dimension size of 512 achieved the highest performance. While increasing the dimension size from 64 to 512 led to improved performance, further increasing it beyond 512 resulted in diminishing returns. This suggests that while larger dimensions provide more capacity, they may reduce model's ability to generalize effectively. Consequently, we selected 512 as the optimal dimension size for the projection layer in our final model configuration.
# A.3 Inference
In ReLRec, the pre-trained word embeddings and transformer layers remain frozen, with the main modifications being the addition of a linear projection layer, user embedding, and item embedding. Consequently, as shown in Table 12, the inference speed of our model closely matches that of Llama2-seq, which refers to recommendation prediction using Llama2-7b (Touvron et al., 2023) with only the item embedding attached. The inference experiments were conducted on a single NVIDIA RTX A6000 with a batch size of 16. This minimal difference in inference speed highlights the efficiency of our approach, allowing for the potential application of existing techniques to further accelerate the process. Future work will focus on exploring additional methods to optimize inference without
altering the core transformer architecture.123version https://git-lfs.github.com/spec/v1oid sha256:18e2efea32b7fdd9ea9a948d9b18915463926727959ba1d30fed7d7885026ba9size 50308712345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646[ { "type": "text", "text": "Enhancing Learning-Based Binary Code Similarity Detection Model through Adversarial Training with Multiple Function Variants", "text_level": 1, "bbox": [ 144, 79, 852, 118 ], "page_idx": 0 }, { "type": "text", "text": "Lichen Jia $^{1,2}$ , Chenggang Wu $^{1,2}$ , Bowen Tang $^{3}$ , Peihua Zhang $^{7}$ , Zihan Jiang $^{3}$ , Yang Yang $^{4}$ , Ning Liu $^{5}$ , Jingfeng Zhang $^{6}$ , Zhe Wang $^{*1,2}$", "bbox": [ 193, 124, 794, 158 ], "page_idx": 0 }, { "type": "text", "text": "$^{1}$ SKLP, Institute of Computing Technology, CAS, $^{2}$ University of Chinese Academy of Sciences", "bbox": [ 112, 159, 882, 175 ], "page_idx": 0 }, { "type": "text", "text": "<sup>3</sup>Huawei Technologies Co., Ltd., <sup>4</sup>China University of Petroleum", "bbox": [ 233, 175, 761, 191 ], "page_idx": 0 }, { "type": "text", "text": "$^{5}$ School of Software, Shandong University $^{6}$ University of Auckland $^{7}$ WeChat, Tencent Inc, lcjia457@gmail.com, {wucg, tangbowen, peihuazhang, wangzhe12, jiangzihan} @ict.ac.cn, yyawesom@gmail.com, liun21cs@sdu.edu.cn, jingfeng.zhang9660@gmail.com", "bbox": [ 129, 192, 863, 242 ], "page_idx": 0 }, { "type": "text", "text": "Abstract", "text_level": 1, "bbox": [ 260, 260, 339, 275 ], "page_idx": 0 }, { "type": "text", "text": "Compared to identifying binary versions of the same function under different compilation options, existing Learning-Based Binary Code Similarity Detection (LB-BCSD) methods exhibit lower accuracy in recognizing functions with the same functionality but different implementations. To address this issue, we introduces an adversarial attack method called FuncFooler, which focuses on perturbing critical code to generate multiple variants of the same function. These variants are then used to retrain the model to enhance its robustness. Current adversarial attacks against LB-BCSD mainly draw inspiration from the FGSM (Fast Gradient Sign Method) method in the image domain, which involves generating adversarial bytes and appending them to the end of the executable file. However, this approach has a significant drawback: the appended bytes do not affect the actual code of the executable file, thus failing to create diverse code variants. To overcome this limitation, we proposes a gradient-guided adversarial attack method based on critical code—FuncFooler. This method designs a series of strategies to perturb the code while preserving the program's semantics. Specifically, we first utilizes gradient information to locate critical nodes in the control flow graph. Then, fine-grained perturbations are applied to these nodes, including control flow, data flow, and internal node perturbations, to obtain adversarial samples. The experimental results show that the application of the FuncFooler method can increase the accuracy of the state-of-the-art (SOTA) LB-BCSD model by $5\\% - 7\\%$ .", "bbox": [ 142, 291, 460, 789 ], "page_idx": 0 }, { "type": "text", "text": "1 Introduction", "text_level": 1, "bbox": [ 114, 804, 258, 820 ], "page_idx": 0 }, { "type": "text", "text": "Binary code similarity detection methods can identify and return a set of functions most similar to a given binary function. These functions usually originate from the same source code but differ due", "bbox": [ 112, 832, 489, 896 ], "page_idx": 0 }, { "type": "text", "text": "to various compilation settings. Binary code similarity detection plays a crucial role in various security applications such as malware detection (Cesare et al., 2013; Ming et al., 2015; Chandramohan et al., 2016; You et al., 2020; Jia et al., 2023a; Lucas et al., 2021), software plagiarism detection (Luo et al., 2017; Yu et al., 2020; Luo et al., 2017; Sajnani et al., 2016; Walker et al., 2020; Zhang et al., 2023), vulnerability discovery (David et al., 2016; Jia et al., 2024; David and Yahav, 2014), and patch analysis (Mashhadi and Hemmati, 2021; Pewny et al., 2014; Hu et al., 2016; Wang and Wu, 2017).", "bbox": [ 507, 261, 884, 454 ], "page_idx": 0 }, { "type": "text", "text": "In recent years, with the rise of artificial intelligence technologies, Learning-Based Binary Code Similarity Detection (LB-BCSD) techniques have emerged. Leveraging the powerful learning capabilities of machine learning models, these techniques excel in instruction semantic recognition, significantly improving detection accuracy and speed compared to traditional methods (Ding et al., 2019; Jia et al., 2023b; Zhang et al., 2024). However, in the field of software development, differences in programmers' coding habits, skill levels, and design approaches lead to various implementations of functions with the same functionality. This diversity is already evident at the source code level and becomes even more complex at the compiled binary code level. Although these different code implementations functionally align, their internal structures and design logics may differ significantly. This situation presents substantial challenges for software analysis, maintenance, and security detection.", "bbox": [ 507, 455, 884, 790 ], "page_idx": 0 }, { "type": "text", "text": "Currently, LB-BCSD methods are primarily used to assess the similarity of the same function under different compilation options. However, this study reveals that when the LB-BCSD model encounters functions with identical functionality but different implementations, its identification accuracy decreases by $13\\%$ compared to identifying versions of the same function compiled under dif", "bbox": [ 507, 791, 884, 920 ], "page_idx": 0 }, { "type": "page_footnote", "text": "*Corresponding author.", "bbox": [ 136, 906, 280, 920 ], "page_idx": 0 }, { "type": "page_number", "text": "11508", "bbox": [ 475, 927, 524, 940 ], "page_idx": 0 }, { "type": "footer", "text": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 11508-11518 November 12-16, 2024 ©2024 Association for Computational Linguistics", "bbox": [ 210, 945, 786, 972 ], "page_idx": 0 }, { "type": "text", "text": "ferent options (O2 and O3). This finding highlights the limitations of existing LB-BCSD methods in handling diverse code implementations.", "bbox": [ 112, 84, 487, 131 ], "page_idx": 1 }, { "type": "text", "text": "To improve the model's capability in recognizing such function variants, an intuitive solution is to retrain the model using a large number of function samples with the same functionality but different implementations. However, implementing this strategy faces several challenges. The primary challenge is collecting a sufficient number of function samples with the same functionality but different implementations. Although online coding platforms like LeetCode offer many implementations of functions with the same functionality, these are mainly concentrated on specific coding problems and do not fully reflect the diversity of real-world programs. For more extensive real-world programs, collecting samples with the same functionality but significantly different implementations is extremely difficult. When implementing the same function, each programmer may choose different algorithms, data structures, or coding techniques based on specific requirements and their own experience, leading to a myriad of implementation methods. Theoretically, the different implementation methods for a function are infinite. Another important consideration is that not all different implementations will interfere with the LB-BCSD model's identification. Therefore, it is crucial to explore which subtle code variations mislead the model, as this has significant practical implications.", "bbox": [ 115, 135, 489, 583 ], "page_idx": 1 }, { "type": "text", "text": "To address the above issues, this study proposes a gradient-guided white-box attack method based on critical code, called FuncFollower. This method generates multiple variants of the same function by designing perturbation strategies for the control flow, data flow, and internal nodes of executable files, such as altering control flow structures. Additionally, this study transforms the generation process of adversarial examples into an optimization problem and uses gradient algorithms to select critical nodes in the executable file's control flow graph for perturbation. Experimental results show that FuncFollower can improve the SOTA LB-BCSD model's accuracy by $5\\% -7\\%$ , demonstrating the effectiveness of this method in enhancing model robustness.", "bbox": [ 112, 585, 487, 840 ], "page_idx": 1 }, { "type": "text", "text": "The main contributions of this paper are as follows:", "bbox": [ 112, 841, 489, 873 ], "page_idx": 1 }, { "type": "text", "text": "- This study finds that the existing LB-BCSD method overly focuses on the accuracy of", "bbox": [ 136, 889, 489, 921 ], "page_idx": 1 }, { "type": "text", "text": "functions with the same functionality and implementation method, while neglecting the accuracy of functions with the same functionality but different implementation methods. When the LB-BCSD model handles functions that have the same functionality but different implementation methods, its recognition accuracy decreases by $13\\%$ compared to recognizing different versions of the same function under different compilation options (O2 and O3).", "bbox": [ 544, 84, 884, 260 ], "page_idx": 1 }, { "type": "text", "text": "- We thoroughly explore the limitations of FGSM in the field of important code identification in binary programs, pointing out that it cannot be directly applied to this scenario. To overcome this issue, we innovatively propose an important code identification method based on dominator nodes, which generates multiple variants of the same function by perturbing the important code.", "bbox": [ 531, 269, 884, 414 ], "page_idx": 1 }, { "type": "text", "text": "- This study retrans the model using adversarial samples generated by FuncFooler, and experimental results indicate that FuncFooler can improve the accuracy of the SOTA LB-BCSD model by $5\\% - 7\\%$ , demonstrating its effectiveness in enhancing model robustness.", "bbox": [ 531, 423, 885, 520 ], "page_idx": 1 }, { "type": "text", "text": "2 Related Work", "text_level": 1, "bbox": [ 509, 526, 665, 541 ], "page_idx": 1 }, { "type": "text", "text": "Researchers have explored the field of white-box adversarial attacks and pointed out issues with adversarial samples in LB-BCSD methods. Early studies (Al-Dujaili et al., 2018; Verwer et al., 2020) drew inspiration from attack methods such as FGSM in the image domain, using gradients to locate and modify critical bytes in executable files to construct adversarial samples. However, these methods have not been very effective when applied to binary programs. The reason lies in the highly structured nature of binary programs, which are extremely sensitive to minor modifications. The ELF file includes complex structures such as executable file header tables, data section information, code section information, etc. Any arbitrary modification of these bytes can disrupt the integrity of the executable file's functionality.", "bbox": [ 507, 551, 884, 824 ], "page_idx": 1 }, { "type": "text", "text": "To generate adversarial samples without compromising the functionality of executable files, researchers (Kolosnjaji et al., 2018; Demetrio et al., 2021) have started modifying non-functional areas in the executable file that are not loaded into memory, such as appending invalid bytes at the end of", "bbox": [ 507, 825, 885, 921 ], "page_idx": 1 }, { "type": "page_number", "text": "11509", "bbox": [ 477, 927, 524, 940 ], "page_idx": 1 }, { "type": "text", "text": "the executable file or adding new sections in the sections that are not loaded. However, these perturbations do not affect the program's execution logic or code regions significantly, thus failing to meet the requirement of generating multiple code variants for the same function.", "bbox": [ 112, 84, 487, 180 ], "page_idx": 2 }, { "type": "text", "text": "3 Challenges", "text_level": 1, "bbox": [ 112, 196, 243, 212 ], "page_idx": 2 }, { "type": "text", "text": "In the field of image processing, white-box adversarial attacks induce misclassification in image recognition systems by making imperceptible adjustments to the image. The core challenge lies in creating adversarial samples that cause model misjudgments while ensuring the samples remain visually indistinguishable to humans. Methods like FGSM in image processing calculate gradients of the model's loss function with respect to the input, take their sign, multiply by a small step size (perturbation magnitude), and add this perturbation to the original input to generate adversarial samples. FGSM uses gradient information to pinpoint critical pixels that are most likely to affect the model's accuracy.", "bbox": [ 112, 225, 489, 464 ], "page_idx": 2 }, { "type": "text", "text": "In contrast, this study perturbs binary functions, posing unique challenges compared to image-based approaches:", "bbox": [ 112, 468, 487, 514 ], "page_idx": 2 }, { "type": "text", "text": "Challenge 1: Identifying critical code in functions. In the LB-BCSD domain, a similar white-box attack strategy can theoretically be employed, utilizing gradient information to identify critical code and perturb it to generate adversarial samples. However, to enhance the accuracy of LB-BCSD methods, approaches such as Asm2Vec and JTrans encode the control flow information of functions into vector embeddings. The Asm2Vec method, for instance, adopts the concept of random walks, starting from the entry point of a function and randomly sampling edges in the control flow graph. For each sampled edge, the corresponding assembly code is concatenated to construct a new instruction sequence. This random walk strategy simulates the actual execution flow of the program. By performing multiple random walk operations, it covers as many edges in the control flow graph as possible, thereby revealing and expressing the semantic features of the function more comprehensively.", "bbox": [ 112, 518, 489, 839 ], "page_idx": 2 }, { "type": "text", "text": "However, random walk makes gradient information inconsistent, making it challenging to identify and perturb the critical code effectively. Every random walk randomly samples a subgraph from the control flow graph, resulting in unique instruction", "bbox": [ 112, 841, 489, 921 ], "page_idx": 2 }, { "type": "text", "text": "sequences per walk. This means that if a specific subgraph is selected for perturbation and subsequently attacked using an adversarial sample, the model might embark on a new random walk, which may not resample the previously perturbed node, hence failing to achieve an attack. Therefore, to resolve the instability caused by random walk, a corresponding strategy must be developed to ensure an effective implementation of the attack.", "bbox": [ 507, 84, 884, 227 ], "page_idx": 2 }, { "type": "text", "text": "Challenge 2: Designing the perturbation method. In image processing, adversarial samples can be generated by directly adjusting the values of critical pixels and limiting the perturbation magnitude to ensure the adversarial samples look similar to the original image. However, in the domain of binary code, it is crucial to ensure the functionality of the code remains intact. Directly modifying byte values of instructions can potentially destroy the functionality of the code. Therefore, the design of the perturbation method must ensure that the original function's functionality is not adversely affected.", "bbox": [ 507, 229, 884, 437 ], "page_idx": 2 }, { "type": "text", "text": "4 Design", "text_level": 1, "bbox": [ 507, 450, 603, 466 ], "page_idx": 2 }, { "type": "text", "text": "The workflow of FuncFooler is illustrated in Figure 1. At the top of the process, the training phase of the model is shown, which includes initial training and fine-tuning on the training dataset, followed by evaluation of the model's accuracy on the test dataset.", "bbox": [ 507, 475, 882, 570 ], "page_idx": 2 }, { "type": "image", "img_path": "images/f642d2599ed1f1f8002fdc570fde555a17cd7df2ceb339e059853fe5e5f4e037.jpg", "image_caption": [ "Figure 1: Workflow of FuncFooler" ], "image_footnote": [], "bbox": [ 515, 580, 885, 765 ], "page_idx": 2 }, { "type": "text", "text": "FuncFooler takes the training set as input with the goal of generating multiple variants of the original samples and enhancing the robustness of the model through fine-tuning. Specifically, FuncFooler first identifies dominating nodes in the original samples and uses gradient information to determine critical dominating nodes. Then, it evaluates", "bbox": [ 507, 809, 884, 921 ], "page_idx": 2 }, { "type": "page_number", "text": "11510", "bbox": [ 477, 927, 524, 940 ], "page_idx": 2 }, { "type": "text", "text": "different perturbation methods and selects the most effective method to perturb the original samples. If the perturbed sample can cause the target model to make incorrect judgments, it is considered an effective adversarial sample and is added to the training set to augment it. Finally, the model is retrained using the augmented training set to improve its robustness and generalization ability.", "bbox": [ 112, 84, 489, 212 ], "page_idx": 3 }, { "type": "text", "text": "4.1 Node Gradient Calculation Method", "text_level": 1, "bbox": [ 112, 229, 438, 243 ], "page_idx": 3 }, { "type": "text", "text": "The LB-BCSD method employs random walks to sample nodes in the function's control flow graph. Each random walk generates a sequence of instructions that represent the execution flow of the function. This random walk strategy aims to simulate the actual execution process of the program. By conducting multiple random walks, the LB-BCSD method can cover the majority of edges in the control flow graph, thereby revealing and expressing the function's semantics more comprehensively.", "bbox": [ 112, 253, 489, 414 ], "page_idx": 3 }, { "type": "text", "text": "However, the inherent uncertainty in the results of random walks can lead to instability in the generated adversarial samples. To address this issue, we first calculate the dominator nodes in the function. Dominator nodes are those that are guaranteed to be executed in any path from the function's entry to its exit. Therefore, perturbing these dominator nodes ensures that the perturbations will be sampled during the random walks. In the control flow graph of the function, certain dominator nodes will be accessed in any execution path from entry to exit, resulting in a $100\\%$ access probability for these nodes.", "bbox": [ 112, 416, 489, 623 ], "page_idx": 3 }, { "type": "code", "sub_type": "algorithm", "code_caption": [ "Algorithm 1: Node Gradient Calculation" ], "code_body": "Input: $G$ is the model to be attacked, $f = [I_1,I_2,\\dots ,I_M]$ is a function $f$ composed of instructions Output: Gradients of nodes in function $f$ \n1 DN $\\leftarrow$ Compute dominant nodes in function $f$ using the algorithm \n2 $v\\gets$ Embedding $(G,f)$ \n3 $g_{f}\\gets \\frac{\\partial L(f)}{\\partial v}$ ## Compute gradients of each instruction in function $f$ \n4 grads $= []$ \n5 foreach node in CFG(f) do \n6 grad(node) $=$ sum of gradients of instructions in node \n7 grads.append(grad(node)) \n8 return grads", "bbox": [ 115, 659, 485, 910 ], "page_idx": 3 }, { "type": "text", "text": "This process is described by Algorithm 1. The algorithm takes as input the LB-BCSD model $G$ to be attacked and a function $f = [I_1, I_2, \\dots, I_M]$ composed of M instructions. First, the algorithm identifies and extracts all dominant nodes in function $f$ . Next, it uses model $G$ to encode function $f$ , obtaining its embedding representation $v$ . Then, it computes the gradients of each instruction in function $f$ with respect to the loss function of model $G$ through backpropagation. Finally, the algorithm sums the gradients of all instructions within each node in the control flow graph of function $f$ to obtain the total gradient value for each node.", "bbox": [ 507, 84, 884, 294 ], "page_idx": 3 }, { "type": "text", "text": "4.2 Disturbance Method Design", "text_level": 1, "bbox": [ 507, 305, 774, 321 ], "page_idx": 3 }, { "type": "text", "text": "To address the challenges outlined in Section 3, this paper proposes a targeted comprehensive perturbation method. By fine-tuning the control flow, data flow, and internal nodes of functions, this approach effectively generates multiple code variants.", "bbox": [ 507, 326, 882, 407 ], "page_idx": 3 }, { "type": "text", "text": "4.2.1 Control Flow Disturbance", "text_level": 1, "bbox": [ 507, 418, 774, 432 ], "page_idx": 3 }, { "type": "text", "text": "Control flow disturbance is a method aimed at perturbing the program's control flow paths and structure, thereby increasing the complexity and analysis difficulty of the program. We designs five control flow disturbance methods: edge hiding, code cloning, loop fabrication, termination node transformation, and function entry point obfuscation.", "bbox": [ 507, 437, 884, 549 ], "page_idx": 3 }, { "type": "text", "text": "Edge Hiding: In order to hinder the LB-BCSD method from accurately capturing the real execution flow of programs, we proposes a new perturbation method — edge concealment perturbation. As shown in Figure 2(a), this method changes direct jumps between basic blocks to indirect jumps, preventing the LB-BCSD method from statically analyzing the jump targets, effectively \"eliminating\" edges in the control flow graph.", "bbox": [ 507, 550, 884, 695 ], "page_idx": 3 }, { "type": "text", "text": "Code Cloning: To increase the complexity of the function control flow graph, we proposes a code cloning technique. As shown in Figure 2(b), this technique involves cloning existing code and causing the control flow to alternate between the original and the clone.", "bbox": [ 507, 696, 882, 791 ], "page_idx": 3 }, { "type": "text", "text": "Loop Forgery: Loops are important structures in programs, typically used for processing core data or implementing core logic. In a control flow graph, a loop is represented as a closed loop of nodes and edges, which represents the looping execution path in the program. Given that many binary code similarity detection methods rely on loops to assess the similarity between two functions, as shown in", "bbox": [ 507, 793, 882, 920 ], "page_idx": 3 }, { "type": "page_number", "text": "11511", "bbox": [ 477, 927, 522, 940 ], "page_idx": 3 }, { "type": "text", "text": "Figure 2(c), we introduces loop forging techniques aimed at disrupting the accuracy of the LB-BCSD method by forging loops.", "bbox": [ 112, 84, 485, 131 ], "page_idx": 4 }, { "type": "text", "text": "Termination Node Transformation: Termination nodes are the exits of functions, representing the end points of functions and are important features on the control flow graph. As shown in Figure 2(d), we proposes a termination node transformation technique, which can convert ordinary nodes in a function into termination nodes, thereby affecting the accuracy of the LB-BCSD method.", "bbox": [ 112, 133, 485, 261 ], "page_idx": 4 }, { "type": "text", "text": "Function Entry Point Obfuscation: Unlike edge hiding perturbation, function entry hiding conceals the actual entry point of a function within a meticulously designed complex control flow. As shown in Figure 2(e), the purpose of this method is to make it difficult for the LB-BCSD method to locate the true starting point of the function, thereby preventing accurate tracking of the function's execution flow.", "bbox": [ 112, 263, 487, 405 ], "page_idx": 4 }, { "type": "text", "text": "4.2.2 Data Flow Perturbation", "text_level": 1, "bbox": [ 112, 418, 361, 432 ], "page_idx": 4 }, { "type": "text", "text": "To perturb the data flow of functions, we proposes a constant expansion technique. As shown in Figure 2(f), this technique converts a simple constant expression into a series of complex calculations to increase the complexity of the function's data flow.", "bbox": [ 112, 438, 487, 518 ], "page_idx": 4 }, { "type": "text", "text": "4.2.3 Intra-Node Perturbation Design", "text_level": 1, "bbox": [ 112, 530, 425, 545 ], "page_idx": 4 }, { "type": "text", "text": "In addition to perturbing the number of nodes and edges in the control flow graph and data flow graph of executable files, we also delves into intra-node perturbation methods. These methods further increase the complexity of analysis by hiding function calls within the code and adding ways to invoke functions in the code.", "bbox": [ 112, 549, 487, 659 ], "page_idx": 4 }, { "type": "text", "text": "Function Call Hiding: A function call is the process of one function calling another to accomplish a specific task. Since many binary code similarity detection methods rely on function calls to assess the similarity between different codes, we introduce a function call hiding technique. As shown in Figure 3(a), this technique aims to disrupt the accuracy of the LB-BCSD method by replacing direct function calls with indirect calls.", "bbox": [ 112, 663, 487, 806 ], "page_idx": 4 }, { "type": "text", "text": "Function Call Expansion: Since function calls are a key feature in the control flow graph, this paper designs a function call augmentation technique to increase the number of function calls in the code. As shown in Figure 3(b), this technique increases the function call count by extracting instructions from the code and encapsulating them into new", "bbox": [ 112, 808, 487, 920 ], "page_idx": 4 }, { "type": "image", "img_path": "images/22b7950252afde8287cfa75db8e317f1d28440ece43527a4587269cefe01b995.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 517, 80, 852, 195 ], "page_idx": 4 }, { "type": "image", "img_path": "images/029d31616f36335b01bc866742a2b5660f31f1b9d1d6a0247fa7aa9111e96210.jpg", "image_caption": [ "(a) Edge hiding" ], "image_footnote": [], "bbox": [ 521, 212, 870, 324 ], "page_idx": 4 }, { "type": "image", "img_path": "images/113c1f99c0d2b1cd85719aa574e2ad4863c46c6fc9d0ed319efdee833869e9cb.jpg", "image_caption": [ "(b) Code cloning" ], "image_footnote": [], "bbox": [ 522, 341, 870, 462 ], "page_idx": 4 }, { "type": "image", "img_path": "images/5cecbff481054ef522d6f980cf6c55913602ecd93a85d8f5ed5e3b9748cc5d18.jpg", "image_caption": [ "(c) Loop fabrication" ], "image_footnote": [], "bbox": [ 541, 479, 850, 590 ], "page_idx": 4 }, { "type": "image", "img_path": "images/4a6e0e4f5ebf8a8d03d5c8cc05d4e357cbadc20d3493975e83fc535867ab9c05.jpg", "image_caption": [ "(d) Termination node transformation" ], "image_footnote": [], "bbox": [ 510, 608, 894, 734 ], "page_idx": 4 }, { "type": "image", "img_path": "images/b058f8f2614741df6961be5e0e15df14e930d507f81e9862fb9bf248cdf01cf2.jpg", "image_caption": [ "(e) Function entry hiding", "(f) Constant expansion", "Figure 2: Design diagram of perturbation methods at the control flow and data flow levels" ], "image_footnote": [], "bbox": [ 527, 753, 836, 871 ], "page_idx": 4 }, { "type": "page_number", "text": "11512", "bbox": [ 477, 928, 524, 940 ], "page_idx": 4 }, { "type": "image", "img_path": "images/91035d3424fc0f2f1e1ee0d6ed5bdc16ec10d9e80903ee447df37f2ff4751008.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 139, 79, 460, 211 ], "page_idx": 5 }, { "type": "image", "img_path": "images/0cd88b02c006074b4843b15a68de94451dac2a34f4b395627884d9bb2f5f7715.jpg", "image_caption": [ "(a) Function call hiding", "(b) Function call expansion", "Figure 3: Illustration of disturbance strategy design inside the node" ], "image_footnote": [], "bbox": [ 137, 228, 467, 360 ], "page_idx": 5 }, { "type": "text", "text": "functions.", "bbox": [ 114, 445, 191, 458 ], "page_idx": 5 }, { "type": "text", "text": "4.3 Adversarial Example Generation", "text_level": 1, "bbox": [ 112, 476, 420, 493 ], "page_idx": 5 }, { "type": "text", "text": "Algorithm 2 details how to generate adversarial examples in a white-box setting. The input to the algorithm is a function $f = [I_1, I_2, \\dots, I_M]$ . The algorithm perturbs the function $f$ and outputs the adversarial example $\\hat{f}$ . Additionally, this algorithm can be applied to attack binary executables by processing each function in the binary file one by one using Algorithm 2.", "bbox": [ 112, 501, 487, 629 ], "page_idx": 5 }, { "type": "text", "text": "The algorithm starts by using the node gradient computation algorithm to calculate the gradient value for each dominating node. Next, this paper selects the top N nodes with the largest gradients, which are considered important nodes. This strategy aims to efficiently generate adversarial samples by minimizing the number of necessary perturbations. Although perturbing dominator nodes beyond the top N can also yield adversarial samples, it typically requires more perturbations. Subsequently, control flow, data flow, and intranode perturbations are applied to these important nodes. When choosing specific perturbation methods, FuncFollower tries each perturbation method and selects the one that causes the greatest reduction in similarity as the final perturbation strategy for the ith important node in the sample. This process iterates until $\\hat{f}$ is no longer similar to the original", "bbox": [ 112, 631, 489, 921 ], "page_idx": 5 }, { "type": "text", "text": "function $f$ , or until the preset maximum number of perturbations $N$ is reached (in practice, $N$ is set to 10). To measure the similarity between two functions, in line with the approach in the literature (Sato et al., 2018), we uses top-10 accuracy as the criterion. This criterion focuses on whether, when $\\hat{f}$ is used as input, the correct answer (i.e., the original function $f$ ) appears within the top 10 scoring options among all prediction results. We designs five control flow perturbation methods, one data flow perturbation method, and two intra-node perturbation methods. Each perturbation method increases the complexity of the executable file to some extent. These perturbation methods can be used collaboratively and repeatedly, thus constructing a large search space of $(5 \\times 1 \\times 2)^i$ , where $i$ represents the number of iterations.", "bbox": [ 507, 84, 884, 357 ], "page_idx": 5 }, { "type": "text", "text": "Algorithm 2: Adversarial Example Generation Algorithm", "text_level": 1, "bbox": [ 517, 373, 838, 404 ], "page_idx": 5 }, { "type": "text", "text": "Input : $f = \\left\\lbrack {{I}_{1},{I}_{2},\\ldots ,{I}_{M}}\\right\\rbrack$ ,Function $f$ consisting of instructions", "bbox": [ 527, 407, 840, 439 ], "page_idx": 5 }, { "type": "text", "text": "Output:Adversarial example $\\hat{f}$", "bbox": [ 527, 439, 768, 456 ], "page_idx": 5 }, { "type": "list", "sub_type": "text", "list_items": [ "1.1 grads $\\leftarrow$ Compute gradients of dominating nodes using the node gradient computation algorithm", "2 Sort dominating nodes in the control flow by gradient and select the top $N$ nodes as important nodes" ], "bbox": [ 512, 456, 853, 550 ], "page_idx": 5 }, { "type": "text", "text": "3 $\\hat{f}\\gets f$", "bbox": [ 512, 552, 584, 567 ], "page_idx": 5 }, { "type": "text", "text": "4 $i\\gets 0$", "bbox": [ 514, 569, 576, 582 ], "page_idx": 5 }, { "type": "text", "text": "5 while $i < N$ do", "bbox": [ 514, 583, 650, 598 ], "page_idx": 5 }, { "type": "list", "sub_type": "text", "list_items": [ "6 $t\\gets$ Compute the effect of each perturbation method and assign the method that causes the greatest reduction in similarity to t \n7 $\\hat{f}\\gets$ Transform $(\\hat{f},t,i)$ ## Perturb the ith important node in $\\hat{f}$ \n8 $i\\gets i + 1$ \n9 if Similar $(f,\\hat{f}) = =$ False then \n10 return", "11 return None" ], "bbox": [ 509, 600, 840, 776 ], "page_idx": 5 }, { "type": "text", "text": "5 Experimental Evaluation", "text_level": 1, "bbox": [ 507, 809, 761, 825 ], "page_idx": 5 }, { "type": "text", "text": "The experimental evaluation in this paper primarily revolves around the following core research questions:", "bbox": [ 507, 834, 882, 879 ], "page_idx": 5 }, { "type": "text", "text": "- RQ1: Does the implementation of functions with the same functionality but different ap", "bbox": [ 531, 889, 882, 921 ], "page_idx": 5 }, { "type": "page_number", "text": "11513", "bbox": [ 477, 927, 524, 940 ], "page_idx": 5 }, { "type": "text", "text": "proaches affect the accuracy of the LB-BCSD model?", "bbox": [ 149, 84, 487, 116 ], "page_idx": 6 }, { "type": "text", "text": "- RQ2: Can adversarial examples generated by FuncFooler enhance the robustness of the LB-BCSD model?", "bbox": [ 136, 124, 489, 171 ], "page_idx": 6 }, { "type": "text", "text": "5.1 Experimental Setup", "text_level": 1, "bbox": [ 112, 179, 317, 195 ], "page_idx": 6 }, { "type": "text", "text": "5.1.1 Baseline Models and Evaluation Metric", "text_level": 1, "bbox": [ 112, 199, 482, 214 ], "page_idx": 6 }, { "type": "text", "text": "We selects three LB-BCSD models as baseline models: a) Safe (Massarelli et al., 2019), which uses an RNN structure with a self-attention mechanism to generate semantic embeddings for functions; b) Asm2Vec (Ding et al., 2019), which uses the PV-DM model combined with control flow information of executable files to generate semantic embeddings for functions; c) JTrans (Wang et al., 2022) encodes control flow information into a Transformer to generate semantic embeddings for functions, with JTrans being the SOTA approach. For each model, we use the authors' provided models and fine-tunes them on the public dataset BinaryCorp-3M (Wang et al., 2022) to better suit the needs of binary code similarity detection tasks. The BinaryCorp-3M dataset covers approximately 3 million binary functions. During finetuning, the default hyperparameters of the models are used to fine-tune both the original models and the FuncFooler-enhanced models. In the experimental evaluation process, we used top-10 accuracy as the primary evaluation metric. This metric focuses on whether the correct answer appears within the top 10 ranked predictions.", "bbox": [ 112, 218, 490, 605 ], "page_idx": 6 }, { "type": "text", "text": "5.1.2 Test Datasets", "text_level": 1, "bbox": [ 112, 613, 278, 627 ], "page_idx": 6 }, { "type": "text", "text": "We construct two test datasets to comprehensively evaluate the model's accuracy in binary code similarity detection. Dataset I contains functions that have the same functionality but different implementations. In creating this dataset, 400 programs were selected from LeetCode and GitHub, with 10 different implementations collected for each program. When choosing these different implementations, performance scores from online programming platforms like LeetCode were referenced to ensure diversity in the selected solutions. The primary objective of this dataset is to assess the model's accuracy when handling functions with identical functionality but varying implementations. Dataset II is derived from six real-world projects, including Curl, Coreutils, Binutils, SQLite, OpenSSL, and Putty. This dataset aims to evaluate the enhancement effect of FuncFooer on the model's accuracy", "bbox": [ 112, 631, 489, 921 ], "page_idx": 6 }, { "type": "text", "text": "with real programs. Given that O0 completely disables compiler optimizations, while O1 enables basic optimizations such as dead code elimination and simple loop optimizations, the code differences between O0 and O1 are significant. Therefore, this paper employs the lvm-10 compiler with O2 and O3 optimization options to compile the programs in both datasets. This design aims to test the model's accuracy in recognizing functions optimized to varying degrees, striving to minimize the discriminative differences caused by compilation optimizations.", "bbox": [ 507, 84, 884, 277 ], "page_idx": 6 }, { "type": "text", "text": "5.2 Impact of Functionally Equivalent but Differently Implemented Functions on Model Accuracy", "text_level": 1, "bbox": [ 507, 288, 855, 337 ], "page_idx": 6 }, { "type": "text", "text": "In this experiment, we evaluate the impact of different implementations of the same function on the accuracy of the LB-BCSD model. The experiment is conducted in two steps: first, we assess the accuracy of the LB-BCSD model in recognizing the same function compiled with different options (O2 and O3). In this step, only functions compiled with the O3 option are considered as correct answers. Secondly, we evaluate the model's accuracy in recognizing functions with the same functionality but different implementations. In this step, the other 9 implementations of the function are considered correct answers, and the model's average accuracy for these 9 implementations is calculated as accuracy indicator. By comparing the accuracy differences between the O2 and O3 compilation options and the average accuracy for functionally equivalent but differently implemented functions, we can quantify the impact of different implementations on the robustness of the LB-BCSD model.", "bbox": [ 507, 342, 884, 663 ], "page_idx": 6 }, { "type": "table", "img_path": "images/e6ff7fb7196850b908d29729baf9499c29b119b28fa69088f6b20c4d92e7544a.jpg", "table_caption": [ "Table 1: The impact of functionally equivalent but differently implemented functions on model accuracy. Here, DCO refers to the accuracy of the model for the same function with different compilation options, while DI refers to the accuracy of the model for different implementation functions with the same functionality." ], "table_footnote": [], "table_body": "<table><tr><td></td><td>Asm2Vec</td><td>SAFE</td><td>JTrans</td></tr><tr><td>DCO</td><td>0.76</td><td>0.72</td><td>0.81</td></tr><tr><td>DI</td><td>0.64</td><td>0.6</td><td>0.65</td></tr></table>", "bbox": [ 552, 769, 840, 822 ], "page_idx": 6 }, { "type": "text", "text": "For this study, we use Dataset I and randomly select 50 programs from it. Since each program contains 10 different implementations, a test pool of 500 functions is constructed. We follow the experimental design consistent with existing stud", "bbox": [ 507, 841, 882, 921 ], "page_idx": 6 }, { "type": "page_number", "text": "11514", "bbox": [ 477, 927, 524, 940 ], "page_idx": 6 }, { "type": "table", "img_path": "images/0952a0ef39f4b5c1b829985825c30c598abb397ba10e9169455f33fa2431dc29.jpg", "table_caption": [ "Table 2: This table illustrates the impact of FuncFloater on model accuracy. \"Ori.\" represents the original accuracy of the models, while \"FF\" denotes the accuracy after fine-tuning the models with adversarial examples generated by FuncFloater. \"Impr.\" indicates the difference between the fine-tuned accuracy and the original accuracy." ], "table_footnote": [], "table_body": "<table><tr><td rowspan=\"2\">Program</td><td colspan=\"3\">Asm2Vec</td><td colspan=\"3\">SAFE</td><td colspan=\"3\">JTrans</td></tr><tr><td>Ori.</td><td>FF</td><td>impr.</td><td>Ori.</td><td>FF</td><td>impr.</td><td>Ori.</td><td>FF</td><td>impr.</td></tr><tr><td>Curl</td><td>0.78</td><td>0.81</td><td>0.03</td><td>0.75</td><td>0.76</td><td>0.01</td><td>0.79</td><td>0.83</td><td>0.04</td></tr><tr><td>Binutils</td><td>0.75</td><td>0.78</td><td>0.03</td><td>0.73</td><td>0.75</td><td>0.02</td><td>0.77</td><td>0.8</td><td>0.03</td></tr><tr><td>Coreutils</td><td>0.81</td><td>0.82</td><td>0.01</td><td>0.78</td><td>0.79</td><td>0.01</td><td>0.8</td><td>0.86</td><td>0.06</td></tr><tr><td>SQLite</td><td>0.71</td><td>0.77</td><td>0.06</td><td>0.68</td><td>0.7</td><td>0.02</td><td>0.76</td><td>0.84</td><td>0.08</td></tr><tr><td>OpenSSL</td><td>0.74</td><td>0.78</td><td>0.04</td><td>0.76</td><td>0.77</td><td>0.01</td><td>0.79</td><td>0.85</td><td>0.06</td></tr><tr><td>Putty</td><td>0.78</td><td>0.81</td><td>0.03</td><td>0.77</td><td>0.78</td><td>0.01</td><td>0.8</td><td>0.84</td><td>0.04</td></tr><tr><td>Average</td><td>0.76</td><td>0.79</td><td>0.03</td><td>0.75</td><td>0.77</td><td>0.01</td><td>0.79</td><td>0.83</td><td>0.05</td></tr><tr><td>Dataset I</td><td>0.64</td><td>0.7</td><td>0.06</td><td>0.6</td><td>0.63</td><td>0.03</td><td>0.65</td><td>0.72</td><td>0.07</td></tr></table>", "bbox": [ 206, 134, 793, 302 ], "page_idx": 7 }, { "type": "text", "text": "ies (Hu et al., 2018; Marcelli et al., 2022; Wang and Wu, 2017; Xu et al., 2023) to ensure comparability and consistency. During the experiment, each function in the dataset is compiled with the O2 option, and the search matches are conducted within a test pool of 500 functions generated by the O3 option.", "bbox": [ 110, 325, 487, 436 ], "page_idx": 7 }, { "type": "text", "text": "The experimental results are shown in Table 1. As can be seen, the LB-BCSD models exhibit high accuracy in recognizing different versions of the same function generated by the same functionality but different compilation options (O2 and O3), with an average accuracy of $76\\%$ . However, when recognizing functions with the same functionality but different implementations, the models' average accuracy drops to $63\\%$ , a decrease of $13\\%$ compared to recognizing the same function. It is noteworthy that although these functionally equivalent functions were also obtained through O2 and O3 compilation options, the implementation differences by different programmers lead to a decrease in the accuracy of the LB-BCSD models during recognition.", "bbox": [ 110, 438, 489, 695 ], "page_idx": 7 }, { "type": "text", "text": "5.3 Effectiveness of FuncFooler in Improving Model Accuracy", "text_level": 1, "bbox": [ 112, 707, 485, 739 ], "page_idx": 7 }, { "type": "text", "text": "In this experiment, we evaluate the effectiveness of FuncFollower in improving model accuracy. For each function in the original training set BinaryCorp-3M, adversarial examples are generated using FuncFollower, and these samples are used to fine-tune the models. To ensure comprehensive and accurate evaluation, we use two datasets for testing. Dataset I focuses on evaluating the accuracy of the models for functionally equivalent but differently implemented functions. Dataset II is derived from six real-world projects, focusing on evaluating the", "bbox": [ 112, 744, 489, 921 ], "page_idx": 7 }, { "type": "text", "text": "models' accuracy for functions in real applications. Other settings in this experiment are the same as those in Section 5.2.", "bbox": [ 507, 325, 884, 370 ], "page_idx": 7 }, { "type": "text", "text": "The experimental results are shown in Table 2. In this table, \"Ori.\" represents the original accuracy of the model. \"FF\" indicates the accuracy after fine-tuning the model with adversarial samples generated by FuncFooler. \"Impr.\" denotes the difference between the fine-tuned accuracy and the original accuracy. From the data in the table, it can be seen that for the JTrans model, by applying the method proposed in this paper, we successfully achieved accuracy improvements of $5\\%$ and $7\\%$ on two different datasets, demonstrating the effectiveness and potential of our approach. In contrast, the accuracy improvements on the SAFE and Asm2Vec models were relatively limited. This is primarily due to the relatively simple structure of these two models, which may have limitations in capturing subtle changes in the code, making it difficult to significantly enhance their accuracy.", "bbox": [ 507, 376, 884, 667 ], "page_idx": 7 }, { "type": "text", "text": "6 Conclusion", "text_level": 1, "bbox": [ 507, 693, 640, 708 ], "page_idx": 7 }, { "type": "text", "text": "To improve the model's ability to recognize function variants, we designed FuncFloater to generate multiple variants of a function and then use these code variants to retrain the model to enhance its robustness. When given a function, FuncFloater first uses gradient information to determine the importance of each node in its control flow graph. Subsequently, specific control flow, data flow, and intra-node perturbations are applied to these key nodes to generate adversarial samples. Experimental results show that FuncFloater can improve the accuracy of SOTA LB-BCSD models by $5\\% -7\\%$ .", "bbox": [ 507, 728, 884, 921 ], "page_idx": 7 }, { "type": "page_number", "text": "11515", "bbox": [ 477, 927, 524, 940 ], "page_idx": 7 }, { "type": "text", "text": "7 Limitation", "text_level": 1, "bbox": [ 114, 84, 240, 98 ], "page_idx": 8 }, { "type": "text", "text": "In our study, we are committed to enhancing the robustness of the LB-BCSD model. To achieve this goal, we generate multiple variants of the same function and fine-tune the model with these variants in order to improve its generalization capabilities. Specifically, we create multiple variants of the same function through control flow, data flow, and perturbations within nodes.", "bbox": [ 112, 110, 487, 236 ], "page_idx": 8 }, { "type": "text", "text": "However, our method has its limitations. Although we can generate functionally equivalent variants for a given function, we are unable to generate variants that have the same functionality but drastically different implementation logic. Programmers may use different algorithms or logical structures to implement the same functionality. This diversity is not fully reflected in our method. When faced with functions that have the same functionality but different implementations, the accuracy of the LB-BCSD model decreases by $13\\%$ . In contrast, using variants generated by FuncFooer only improves the SOTA model's accuracy by $5\\%$ to $7\\%$ . This finding highlights an important direction for future research: exploring how to generate functionally identical but logically distinct function variants.", "bbox": [ 115, 239, 489, 510 ], "page_idx": 8 }, { "type": "text", "text": "In terms of experimental design, we also encountered challenges. Due to the lack of programs with various different implementations in real-world environments, we constructed a test dataset using different solutions to the same problem from programming websites. Currently, the LB-BCSD method primarily focuses on evaluating the similarity of the same function under different compilation options, and existing datasets are mainly built on this basis, lacking datasets that reflect different implementations of the same functionality. Therefore, in future work, we aim to collect and analyze different implementations of real programs to more accurately assess the impact of FuncFollower on improving the accuracy of the LB-BCSD model. This will help us to more comprehensively understand the model's performance and provide stronger support for its deployment in practical applications.", "bbox": [ 115, 513, 489, 802 ], "page_idx": 8 }, { "type": "text", "text": "8 Ethics Statement", "text_level": 1, "bbox": [ 112, 815, 294, 829 ], "page_idx": 8 }, { "type": "text", "text": "Our work focuses on enhancing the robustness of the LB-BCSD model. To achieve this goal, our approach generates multiple variants of the same function and fine-tunes the model using these variants to improve its generalization capability. This experi", "bbox": [ 112, 841, 489, 921 ], "page_idx": 8 }, { "type": "text", "text": "iment was conducted on a high-performance server with the following configuration: an Intel Xeon Gold 6132 CPU (2.60 GHz), 256 GB of memory, eight Tesla V100 GPUs, and running the Ubuntu 18.04 operating system.", "bbox": [ 507, 84, 882, 164 ], "page_idx": 8 }, { "type": "text", "text": "References", "text_level": 1, "bbox": [ 510, 191, 608, 206 ], "page_idx": 8 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "Abdullah Al-Dujaili, Alex Huang, Erik Hemberg, and Una-May O'Reilly. 2018. Adversarial deep learning for robust detection of binary encoded malware. In 2018 IEEE Security and Privacy Workshops (SPW), pages 76-82.", "Silvio Cesare, Yang Xiang, and Wanlei Zhou. 2013. Control flow-based malware variantdetection. IEEE Transactions on Dependable and Secure Computing, 11(4):307-317.", "Mahinthan Chandramohan, Yinxing Xue, Zhengzi Xu, Yang Liu, Chia Yuan Cho, and Hee Beng Kuan Tan. 2016. Bingo: Cross-architecture cross-os binary search. In Proceedings of the 2016 24th ACM SIG-SOFT International Symposium on Foundations of Software Engineering, pages 678-689.", "Yaniv David, Nimrod Partush, and Eran Yahav. 2016. Statistical similarity of binaries. *Acm Sigplan Notices*, 51(6):266-280.", "Yaniv David and Eran Yahav. 2014. Tracelet-based code search in executables. Acm Sigplan Notices, 49(6):349-360.", "Luca Demetrio, Battista Biggio, Giovanni Lagoon, Fabio Roli, and Alessandro Armando. 2021. Functionality-preserving black-box optimization of adversarial windows malware. IEEE Transactions on Information Forensics and Security, 16:3469-3478.", "Steven HH Ding, Benjamin CM Fung, and Philippe Charland. 2019. Asm2vec: Boosting static representation robustness for binary clone search against code obfuscation and compiler optimization. In 2019 IEEE Symposium on Security and Privacy (SP), pages 472-489.", "Yikun Hu, Yuanyuan Zhang, Juanru Li, and Dawu Gu. 2016. Cross-architecture binary semantics understanding via similar code comparison. In 2016 IEEE 23rd International Conference on Software Analysis, Evolution, and Reengineering (SANER), pages 57-67.", "Yikun Hu, Yuanyuan Zhang, Juanru Li, Hui Wang, Bodong Li, and Dawu Gu. 2018. Binmatch: A semantics-based hybrid approach on binary code clone analysis. In 2018 IEEE international conference on software maintenance and evolution (IC-SME), pages 104-114. IEEE.", "Lichen Jia, Chenggang Wu, Peihua Zhang, and Zhe Wang. 2024. Codeextract: Enhancing binary code similarity detection with code extraction techniques." ], "bbox": [ 510, 212, 884, 921 ], "page_idx": 8 }, { "type": "page_number", "text": "11516", "bbox": [ 477, 928, 524, 940 ], "page_idx": 8 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "In Proceedings of the 25th ACM SIGPLAN/SIGBED International Conference on Languages, Compilers, and Tools for Embedded Systems, pages 143-154.", "Lichen Jia, Yang Yang, Jiansong Li, Hao Ding, Jiajun Li, Ting Yuan, Lei Liu, and Zihan Jiang. 2023a. Mtmg: A framework for generating adversarial examples targeting multiple learning-based malware detection systems. In Pacific Rim International Conference on Artificial Intelligence, pages 249-261. Springer.", "Lichen Jia, Yang Yang, Bowen Tang, and Zihan Jiang. 2023b. Ermds: A obfuscation dataset for evaluating robustness of learning-based malware detection system. BenchCouncil Transactions on Benchmarks, Standards and Evaluations, 3(1):100106.", "Bojan Kolosnjaji, Ambra Demontis, Battista Biggio, Davide Maiorca, Giorgio Giacinto, Claudia Eckert, and Fabio Roli. 2018. Adversarial malware binaries: Evading deep learning for malware detection in executables. In 2018 26th European signal processing conference (EUSIPCO), pages 533-537.", "Keane Lucas, Mahmood Sharif, Lujo Bauer, Michael K Reiter, and Saurabh Shintre. 2021. Malware makeover: Breaking ml-based static analysis by modifying executable bytes. In Proceedings of the 2021 ACM Asia Conference on Computer and Communications Security, pages 744-758.", "Lannan Luo, Jiang Ming, Dinghao Wu, Peng Liu, and Sencun Zhu. 2017. Semantics-based obfuscation-resilient binary code similarity comparison with applications to software and algorithm plagiarism detection. IEEE Transactions on Software Engineering, 43(12):1157-1177.", "Andrea Marcelli, Mariano Graziano, Xabier Ugarte-Pedrero, Yanick Fratantonio, Mohamad Mansouri, and Davide Balzarotti. 2022. How machine learning is solving the binary function similarity problem. In 31st USENIX Security Symposium (USENIX Security 22), pages 2099-2116.", "Ehsan Mashhadi and Hadi Hemmati. 2021. Applying codebert for automated program repair of java simple bugs. In 2021 IEEE/ACM 18th International Conference on Mining Software Repositories (MSR), pages 505-509.", "Luca Massarelli, Giuseppe Antonio Di Luna, Fabio Petroni, Roberto Baldoni, and Leonardo Querzoni. 2019. Safe: Self-attentive function embeddings for binary similarity. In International Conference on Detection of Intrusions and Malware, and Vulnerability Assessment, pages 309-329.", "Jiang Ming, Dongpeng Xu, and Dinghao Wu. 2015. Memoized semantics-based binary diffing with application to malware lineage inference. In IFIP International Information Security and Privacy Conference, pages 416-430." ], "bbox": [ 115, 85, 487, 919 ], "page_idx": 9 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "Jannik Pewny, Felix Schuster, Lukas Bernhard, Thorsten Holz, and Christian Rossow. 2014. Leveraging semantic signatures for bug search in binary programs. In Proceedings of the 30th Annual Computer Security Applications Conference, pages 406-415.", "Hitesh Sajnani, Vaibhav Saini, Jeffrey Svajlenko, Chanchal K Roy, and Cristina V Lopes. 2016. Sourcerercc: Scaling code clone detection to big-code. In Proceedings of the 38th international conference on software engineering, pages 1157-1168.", "Motoki Sato, Jun Suzuki, Hiroyuki Shindo, and Yuji Matsumoto. 2018. Interpretable adversarial perturbation in input embedding space for text. arXiv preprint arXiv:1805.02917.", "Sicco Verwer, Azqa Nadeem, Christian Hammerschmidt, Laurens Bliek, Abdullah Al-Dujaili, and Una-May O'Reilly. 2020. The robust malware detection challenge and greedy random accelerated multi-bit search. In Proceedings of the 13th ACM Workshop on Artificial Intelligence and Security, pages 61-70.", "Andrew Walker, Tomas Cerny, and Eungee Song. 2020. Open-source tools and benchmarks for code-clone detection: past, present, and future trends. ACM SIGAPP Applied Computing Review, 19(4):28-39.", "Hao Wang, Wenjie Qu, Gilad Katz, Wenyu Zhu, Zeyu Gao, Han Qiu, Jianwei Zhuge, and Chao Zhang. 2022. jtrans: jump-aware transformer for binary code similarity detection. In Proceedings of the 31st ACM SIGSOFT International Symposium on Software Testing and Analysis, pages 1-13.", "Shuai Wang and Dinghao Wu. 2017. In-memory fuzzing for binary code similarity analysis. In 2017 32nd IEEE/ACM International Conference on Automated Software Engineering (ASE), pages 319-330.", "Xiangzhe Xu, Shiwei Feng, Yapeng Ye, Guangyu Shen, Zian Su, Siyuan Cheng, Guanhong Tao, Qingkai Shi, Zhuo Zhang, and Xiangyu Zhang. 2023. Improving binary code similarity transformer models by semantics-driven instruction deemphasis. In Proceedings of the 32nd ACM SIGSOFT International Symposium on Software Testing and Analysis, pages 1106-1118.", "Wei You, Zhuo Zhang, Yonghwi Kwon, Yousra Aafer, Fei Peng, Yu Shi, Carson Harmon, and Xiangyu Zhang. 2020. Pmp: Cost-effective forced execution with probabilistic memory pre-planning. In 2020 IEEE Symposium on Security and Privacy (SP), pages 1121-1138.", "Zeping Yu, Rui Cao, Qiyi Tang, Sen Nie, Junzhou Huang, and Shi Wu. 2020. Order matters: semantic-aware neural networks for binary code similarity detection. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 1145-1152.", "Peihua Zhang, Chenggang Wu, Mingfan Peng, Kai Zeng, Ding Yu, Yuanming Lai, Yan Kang, Wei Wang," ], "bbox": [ 510, 85, 880, 920 ], "page_idx": 9 }, { "type": "page_number", "text": "11517", "bbox": [ 477, 928, 524, 940 ], "page_idx": 9 }, { "type": "text", "text": "and Zhe Wang. 2023. Khaos: The impact of interprocedural code obfuscation on binary diffing techniques. In Proceedings of the 21st ACM/IEEE International Symposium on Code Generation and Optimization, pages 55-67.", "bbox": [ 131, 85, 487, 152 ], "page_idx": 10 }, { "type": "text", "text": "Peihua Zhang, Chenggang Wu, and Zhe Wang. 2024. Bincodex: A comprehensive and multi-level dataset for evaluating binary code similarity detection techniques. BenchCouncil Transactions on Benchmarks, Standards and Evaluations, 4(2):100163.", "bbox": [ 114, 158, 489, 225 ], "page_idx": 10 }, { "type": "text", "text": ".1 Ablation Study", "text_level": 1, "bbox": [ 114, 231, 272, 247 ], "page_idx": 10 }, { "type": "text", "text": "In this experiment, it is demonstrated that the model's accuracy is enhanced by FuncFollower rather than by the random walk strategy. For each function in the original training set, BinaryCorp-3M, the training set was expanded using both the random walk strategy and FuncFollower, followed by retraining the model. Dataset II was then used as a test set to evaluate the accuracy of both models, with the differences in accuracy relative to the original model reflecting the effectiveness of these two approaches.", "bbox": [ 112, 252, 489, 429 ], "page_idx": 10 }, { "type": "text", "text": "Table 3: This table demonstrates that the accuracy of the model is improved by FuncFollower rather than the random walk strategy. Here, \"Ori.\" represents the original accuracy of the models, while \"FF\" represents the accuracy after fine-tuning the models with adversarial examples generated by FuncFollower, and \"RW\" represents the accuracy after fine-tuning the models with adversarial examples generated by the random walk strategy.", "bbox": [ 112, 438, 489, 552 ], "page_idx": 10 }, { "type": "table", "img_path": "images/4750e1c519c69365f830467b6d0e1c52e34dcb259d1fec077b3b8b89279bd3ff.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td colspan=\"3\">Asm2Vec</td><td colspan=\"3\">SAFE</td><td colspan=\"3\">JTrans</td></tr><tr><td>ori.</td><td>FF</td><td>RW</td><td>ori.</td><td>FF</td><td>RW</td><td>ori.</td><td>FF</td><td>RW</td></tr><tr><td>0.76</td><td>0.79</td><td>0.76</td><td>0.75</td><td>0.77</td><td>0.69</td><td>0.79</td><td>0.83</td><td>0.71</td></tr></table>", "bbox": [ 119, 562, 484, 619 ], "page_idx": 10 }, { "type": "text", "text": "The experimental results are shown in Table 3. The results indicate that when the training set is expanded using the random walk strategy and the model is retrained, the accuracy of SAFE decreases by $6\\%$ , the accuracy of Asm2Vec remains unchanged, and the accuracy of JTrans decreases by $8\\%$ . This is because SAFE and JTrans encode the instructions within basic blocks and the control flow transfer relationships between them, while the random walk produces a sequence of instructions, disrupting the original model's design and potentially introducing noise that interferes with the learning process. In contrast, the Asm2Vec model is trained based on the concept of random walks, which is why its accuracy is unaffected in the ablation study. This suggests that the random walk strategy decreases model accuracy, while FuncFollower enhances it.", "bbox": [ 112, 631, 489, 920 ], "page_idx": 10 }, { "type": "text", "text": ".2 The Enhancement Effect of FuncFooer on Model Robustness", "text_level": 1, "bbox": [ 509, 84, 880, 115 ], "page_idx": 10 }, { "type": "text", "text": "In this experiment, we investigate the enhancement effect of FuncFollower on model robustness. Specifically, adversarial samples generated by FuncFollower were used to conduct adversarial testing on both the original model and the fine-tuned optimized model. For each baseline model, function samples were carefully perturbed using FuncFollower, and the changes in accuracy of the LB-BCSD model on these samples were compared to evaluate the enhancement of model robustness by FuncFollower.", "bbox": [ 507, 121, 882, 282 ], "page_idx": 10 }, { "type": "text", "text": "Table 4: This table demonstrates the enhancement effect of FuncFloater on model robustness. In this context, adversarial samples generated by FuncFloater are used to attack both the original model (labeled as Ori.) and the model retrained with FuncFloater, and their respective accuracy rates are provided.", "bbox": [ 507, 293, 882, 380 ], "page_idx": 10 }, { "type": "table", "img_path": "images/8f5001364da5e3e3815336bc2b7c7555a8ffb503c6645ca454f82d752af09285.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td colspan=\"2\">Asm2Vec</td><td colspan=\"2\">SAFE</td><td colspan=\"2\">JTrans</td></tr><tr><td>ori.</td><td>FF</td><td>ori.</td><td>FF</td><td>ori.</td><td>FF</td></tr><tr><td>0.03</td><td>0.25</td><td>0.03</td><td>0.22</td><td>0.04</td><td>0.26</td></tr></table>", "bbox": [ 526, 388, 867, 463 ], "page_idx": 10 }, { "type": "text", "text": "The experimental results are shown in Table 4: for the original model, FuncFollower significantly reduces its accuracy, causing the average accuracy of the three models to drop below $4\\%$ ; for the fine-tuned model, the attack effectiveness of FuncFollower is weakened, only lowering the average accuracy of the three models to below $26\\%$ . This indicates that the fine-tuned model exhibits a robustness improvement of $22\\%$ against FuncFollower attacks compared to the original model.", "bbox": [ 507, 476, 882, 637 ], "page_idx": 10 }, { "type": "page_number", "text": "11518", "bbox": [ 477, 927, 524, 940 ], "page_idx": 10 }]12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081[ [ { "type": "title", "bbox": [ 0.146, 0.08, 0.853, 0.12 ], "angle": 0, "content": "Enhancing Learning-Based Binary Code Similarity Detection Model through Adversarial Training with Multiple Function Variants" }, { "type": "text", "bbox": [ 0.194, 0.125, 0.796, 0.159 ], "angle": 0, "content": "Lichen Jia\\(^{1,2}\\), Chenggang Wu\\(^{1,2}\\), Bowen Tang\\(^{3}\\), Peihua Zhang\\(^{7}\\), Zihan Jiang\\(^{3}\\), Yang Yang\\(^{4}\\), Ning Liu\\(^{5}\\), Jingfeng Zhang\\(^{6}\\), Zhe Wang\\(^{*1,2}\\)" }, { "type": "text", "bbox": [ 0.114, 0.16, 0.884, 0.176 ], "angle": 0, "content": "\\(^{1}\\)SKLP, Institute of Computing Technology, CAS, \\(^{2}\\)University of Chinese Academy of Sciences" }, { "type": "text", "bbox": [ 0.234, 0.177, 0.763, 0.192 ], "angle": 0, "content": "<sup>3</sup>Huawei Technologies Co., Ltd., <sup>4</sup>China University of Petroleum" }, { "type": "text", "bbox": [ 0.13, 0.193, 0.865, 0.243 ], "angle": 0, "content": "\\(^{5}\\)School of Software, Shandong University \\(^{6}\\)University of Auckland \\(^{7}\\)WeChat, Tencent Inc, lcjia457@gmail.com, {wucg, tangbowen, peihuazhang, wangzhe12, jiangzihan} @ict.ac.cn, yyawesom@gmail.com, liun21cs@sdu.edu.cn, jingfeng.zhang9660@gmail.com" }, { "type": "title", "bbox": [ 0.261, 0.261, 0.341, 0.277 ], "angle": 0, "content": "Abstract" }, { "type": "text", "bbox": [ 0.144, 0.292, 0.461, 0.79 ], "angle": 0, "content": "Compared to identifying binary versions of the same function under different compilation options, existing Learning-Based Binary Code Similarity Detection (LB-BCSD) methods exhibit lower accuracy in recognizing functions with the same functionality but different implementations. To address this issue, we introduces an adversarial attack method called FuncFooler, which focuses on perturbing critical code to generate multiple variants of the same function. These variants are then used to retrain the model to enhance its robustness. Current adversarial attacks against LB-BCSD mainly draw inspiration from the FGSM (Fast Gradient Sign Method) method in the image domain, which involves generating adversarial bytes and appending them to the end of the executable file. However, this approach has a significant drawback: the appended bytes do not affect the actual code of the executable file, thus failing to create diverse code variants. To overcome this limitation, we proposes a gradient-guided adversarial attack method based on critical code—FuncFooler. This method designs a series of strategies to perturb the code while preserving the program's semantics. Specifically, we first utilizes gradient information to locate critical nodes in the control flow graph. Then, fine-grained perturbations are applied to these nodes, including control flow, data flow, and internal node perturbations, to obtain adversarial samples. The experimental results show that the application of the FuncFooler method can increase the accuracy of the state-of-the-art (SOTA) LB-BCSD model by \\(5\\% - 7\\%\\)." }, { "type": "title", "bbox": [ 0.115, 0.806, 0.26, 0.821 ], "angle": 0, "content": "1 Introduction" }, { "type": "text", "bbox": [ 0.114, 0.833, 0.49, 0.897 ], "angle": 0, "content": "Binary code similarity detection methods can identify and return a set of functions most similar to a given binary function. These functions usually originate from the same source code but differ due" }, { "type": "text", "bbox": [ 0.508, 0.262, 0.885, 0.455 ], "angle": 0, "content": "to various compilation settings. Binary code similarity detection plays a crucial role in various security applications such as malware detection (Cesare et al., 2013; Ming et al., 2015; Chandramohan et al., 2016; You et al., 2020; Jia et al., 2023a; Lucas et al., 2021), software plagiarism detection (Luo et al., 2017; Yu et al., 2020; Luo et al., 2017; Sajnani et al., 2016; Walker et al., 2020; Zhang et al., 2023), vulnerability discovery (David et al., 2016; Jia et al., 2024; David and Yahav, 2014), and patch analysis (Mashhadi and Hemmati, 2021; Pewny et al., 2014; Hu et al., 2016; Wang and Wu, 2017)." }, { "type": "text", "bbox": [ 0.508, 0.456, 0.885, 0.791 ], "angle": 0, "content": "In recent years, with the rise of artificial intelligence technologies, Learning-Based Binary Code Similarity Detection (LB-BCSD) techniques have emerged. Leveraging the powerful learning capabilities of machine learning models, these techniques excel in instruction semantic recognition, significantly improving detection accuracy and speed compared to traditional methods (Ding et al., 2019; Jia et al., 2023b; Zhang et al., 2024). However, in the field of software development, differences in programmers' coding habits, skill levels, and design approaches lead to various implementations of functions with the same functionality. This diversity is already evident at the source code level and becomes even more complex at the compiled binary code level. Although these different code implementations functionally align, their internal structures and design logics may differ significantly. This situation presents substantial challenges for software analysis, maintenance, and security detection." }, { "type": "text", "bbox": [ 0.508, 0.793, 0.885, 0.921 ], "angle": 0, "content": "Currently, LB-BCSD methods are primarily used to assess the similarity of the same function under different compilation options. However, this study reveals that when the LB-BCSD model encounters functions with identical functionality but different implementations, its identification accuracy decreases by \\(13\\%\\) compared to identifying versions of the same function compiled under dif" }, { "type": "page_footnote", "bbox": [ 0.137, 0.907, 0.282, 0.921 ], "angle": 0, "content": "*Corresponding author." }, { "type": "page_number", "bbox": [ 0.477, 0.928, 0.526, 0.941 ], "angle": 0, "content": "11508" }, { "type": "footer", "bbox": [ 0.211, 0.946, 0.788, 0.973 ], "angle": 0, "content": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 11508-11518 November 12-16, 2024 ©2024 Association for Computational Linguistics" } ], [ { "type": "text", "bbox": [ 0.113, 0.085, 0.489, 0.132 ], "angle": 0, "content": "ferent options (O2 and O3). This finding highlights the limitations of existing LB-BCSD methods in handling diverse code implementations." }, { "type": "text", "bbox": [ 0.117, 0.136, 0.49, 0.584 ], "angle": 0, "content": "To improve the model's capability in recognizing such function variants, an intuitive solution is to retrain the model using a large number of function samples with the same functionality but different implementations. However, implementing this strategy faces several challenges. The primary challenge is collecting a sufficient number of function samples with the same functionality but different implementations. Although online coding platforms like LeetCode offer many implementations of functions with the same functionality, these are mainly concentrated on specific coding problems and do not fully reflect the diversity of real-world programs. For more extensive real-world programs, collecting samples with the same functionality but significantly different implementations is extremely difficult. When implementing the same function, each programmer may choose different algorithms, data structures, or coding techniques based on specific requirements and their own experience, leading to a myriad of implementation methods. Theoretically, the different implementation methods for a function are infinite. Another important consideration is that not all different implementations will interfere with the LB-BCSD model's identification. Therefore, it is crucial to explore which subtle code variations mislead the model, as this has significant practical implications." }, { "type": "text", "bbox": [ 0.113, 0.586, 0.489, 0.841 ], "angle": 0, "content": "To address the above issues, this study proposes a gradient-guided white-box attack method based on critical code, called FuncFollower. This method generates multiple variants of the same function by designing perturbation strategies for the control flow, data flow, and internal nodes of executable files, such as altering control flow structures. Additionally, this study transforms the generation process of adversarial examples into an optimization problem and uses gradient algorithms to select critical nodes in the executable file's control flow graph for perturbation. Experimental results show that FuncFollower can improve the SOTA LB-BCSD model's accuracy by \\(5\\% -7\\%\\), demonstrating the effectiveness of this method in enhancing model robustness." }, { "type": "text", "bbox": [ 0.113, 0.843, 0.49, 0.874 ], "angle": 0, "content": "The main contributions of this paper are as follows:" }, { "type": "text", "bbox": [ 0.137, 0.89, 0.49, 0.922 ], "angle": 0, "content": "- This study finds that the existing LB-BCSD method overly focuses on the accuracy of" }, { "type": "text", "bbox": [ 0.545, 0.085, 0.885, 0.261 ], "angle": 0, "content": "functions with the same functionality and implementation method, while neglecting the accuracy of functions with the same functionality but different implementation methods. When the LB-BCSD model handles functions that have the same functionality but different implementation methods, its recognition accuracy decreases by \\(13\\%\\) compared to recognizing different versions of the same function under different compilation options (O2 and O3)." }, { "type": "text", "bbox": [ 0.532, 0.271, 0.885, 0.416 ], "angle": 0, "content": "- We thoroughly explore the limitations of FGSM in the field of important code identification in binary programs, pointing out that it cannot be directly applied to this scenario. To overcome this issue, we innovatively propose an important code identification method based on dominator nodes, which generates multiple variants of the same function by perturbing the important code." }, { "type": "text", "bbox": [ 0.532, 0.424, 0.887, 0.521 ], "angle": 0, "content": "- This study retrans the model using adversarial samples generated by FuncFooler, and experimental results indicate that FuncFooler can improve the accuracy of the SOTA LB-BCSD model by \\(5\\% - 7\\%\\), demonstrating its effectiveness in enhancing model robustness." }, { "type": "title", "bbox": [ 0.51, 0.527, 0.667, 0.542 ], "angle": 0, "content": "2 Related Work" }, { "type": "text", "bbox": [ 0.508, 0.552, 0.885, 0.825 ], "angle": 0, "content": "Researchers have explored the field of white-box adversarial attacks and pointed out issues with adversarial samples in LB-BCSD methods. Early studies (Al-Dujaili et al., 2018; Verwer et al., 2020) drew inspiration from attack methods such as FGSM in the image domain, using gradients to locate and modify critical bytes in executable files to construct adversarial samples. However, these methods have not been very effective when applied to binary programs. The reason lies in the highly structured nature of binary programs, which are extremely sensitive to minor modifications. The ELF file includes complex structures such as executable file header tables, data section information, code section information, etc. Any arbitrary modification of these bytes can disrupt the integrity of the executable file's functionality." }, { "type": "text", "bbox": [ 0.508, 0.826, 0.887, 0.922 ], "angle": 0, "content": "To generate adversarial samples without compromising the functionality of executable files, researchers (Kolosnjaji et al., 2018; Demetrio et al., 2021) have started modifying non-functional areas in the executable file that are not loaded into memory, such as appending invalid bytes at the end of" }, { "type": "page_number", "bbox": [ 0.478, 0.928, 0.526, 0.941 ], "angle": 0, "content": "11509" } ], [ { "type": "text", "bbox": [ 0.113, 0.085, 0.488, 0.181 ], "angle": 0, "content": "the executable file or adding new sections in the sections that are not loaded. However, these perturbations do not affect the program's execution logic or code regions significantly, thus failing to meet the requirement of generating multiple code variants for the same function." }, { "type": "title", "bbox": [ 0.114, 0.197, 0.245, 0.214 ], "angle": 0, "content": "3 Challenges" }, { "type": "text", "bbox": [ 0.113, 0.226, 0.49, 0.466 ], "angle": 0, "content": "In the field of image processing, white-box adversarial attacks induce misclassification in image recognition systems by making imperceptible adjustments to the image. The core challenge lies in creating adversarial samples that cause model misjudgments while ensuring the samples remain visually indistinguishable to humans. Methods like FGSM in image processing calculate gradients of the model's loss function with respect to the input, take their sign, multiply by a small step size (perturbation magnitude), and add this perturbation to the original input to generate adversarial samples. FGSM uses gradient information to pinpoint critical pixels that are most likely to affect the model's accuracy." }, { "type": "text", "bbox": [ 0.114, 0.469, 0.489, 0.516 ], "angle": 0, "content": "In contrast, this study perturbs binary functions, posing unique challenges compared to image-based approaches:" }, { "type": "text", "bbox": [ 0.113, 0.519, 0.49, 0.84 ], "angle": 0, "content": "Challenge 1: Identifying critical code in functions. In the LB-BCSD domain, a similar white-box attack strategy can theoretically be employed, utilizing gradient information to identify critical code and perturb it to generate adversarial samples. However, to enhance the accuracy of LB-BCSD methods, approaches such as Asm2Vec and JTrans encode the control flow information of functions into vector embeddings. The Asm2Vec method, for instance, adopts the concept of random walks, starting from the entry point of a function and randomly sampling edges in the control flow graph. For each sampled edge, the corresponding assembly code is concatenated to construct a new instruction sequence. This random walk strategy simulates the actual execution flow of the program. By performing multiple random walk operations, it covers as many edges in the control flow graph as possible, thereby revealing and expressing the semantic features of the function more comprehensively." }, { "type": "text", "bbox": [ 0.113, 0.842, 0.49, 0.922 ], "angle": 0, "content": "However, random walk makes gradient information inconsistent, making it challenging to identify and perturb the critical code effectively. Every random walk randomly samples a subgraph from the control flow graph, resulting in unique instruction" }, { "type": "text", "bbox": [ 0.508, 0.085, 0.885, 0.228 ], "angle": 0, "content": "sequences per walk. This means that if a specific subgraph is selected for perturbation and subsequently attacked using an adversarial sample, the model might embark on a new random walk, which may not resample the previously perturbed node, hence failing to achieve an attack. Therefore, to resolve the instability caused by random walk, a corresponding strategy must be developed to ensure an effective implementation of the attack." }, { "type": "text", "bbox": [ 0.508, 0.23, 0.885, 0.438 ], "angle": 0, "content": "Challenge 2: Designing the perturbation method. In image processing, adversarial samples can be generated by directly adjusting the values of critical pixels and limiting the perturbation magnitude to ensure the adversarial samples look similar to the original image. However, in the domain of binary code, it is crucial to ensure the functionality of the code remains intact. Directly modifying byte values of instructions can potentially destroy the functionality of the code. Therefore, the design of the perturbation method must ensure that the original function's functionality is not adversely affected." }, { "type": "title", "bbox": [ 0.509, 0.451, 0.604, 0.467 ], "angle": 0, "content": "4 Design" }, { "type": "text", "bbox": [ 0.508, 0.476, 0.884, 0.571 ], "angle": 0, "content": "The workflow of FuncFooler is illustrated in Figure 1. At the top of the process, the training phase of the model is shown, which includes initial training and fine-tuning on the training dataset, followed by evaluation of the model's accuracy on the test dataset." }, { "type": "image", "bbox": [ 0.517, 0.581, 0.886, 0.766 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.577, 0.776, 0.816, 0.79 ], "angle": 0, "content": "Figure 1: Workflow of FuncFooler" }, { "type": "text", "bbox": [ 0.508, 0.81, 0.885, 0.922 ], "angle": 0, "content": "FuncFooler takes the training set as input with the goal of generating multiple variants of the original samples and enhancing the robustness of the model through fine-tuning. Specifically, FuncFooler first identifies dominating nodes in the original samples and uses gradient information to determine critical dominating nodes. Then, it evaluates" }, { "type": "page_number", "bbox": [ 0.478, 0.928, 0.526, 0.941 ], "angle": 0, "content": "11510" } ], [ { "type": "text", "bbox": [ 0.113, 0.085, 0.49, 0.214 ], "angle": 0, "content": "different perturbation methods and selects the most effective method to perturb the original samples. If the perturbed sample can cause the target model to make incorrect judgments, it is considered an effective adversarial sample and is added to the training set to augment it. Finally, the model is retrained using the augmented training set to improve its robustness and generalization ability." }, { "type": "title", "bbox": [ 0.114, 0.23, 0.44, 0.244 ], "angle": 0, "content": "4.1 Node Gradient Calculation Method" }, { "type": "text", "bbox": [ 0.113, 0.254, 0.49, 0.415 ], "angle": 0, "content": "The LB-BCSD method employs random walks to sample nodes in the function's control flow graph. Each random walk generates a sequence of instructions that represent the execution flow of the function. This random walk strategy aims to simulate the actual execution process of the program. By conducting multiple random walks, the LB-BCSD method can cover the majority of edges in the control flow graph, thereby revealing and expressing the function's semantics more comprehensively." }, { "type": "text", "bbox": [ 0.113, 0.417, 0.49, 0.624 ], "angle": 0, "content": "However, the inherent uncertainty in the results of random walks can lead to instability in the generated adversarial samples. To address this issue, we first calculate the dominator nodes in the function. Dominator nodes are those that are guaranteed to be executed in any path from the function's entry to its exit. Therefore, perturbing these dominator nodes ensures that the perturbations will be sampled during the random walks. In the control flow graph of the function, certain dominator nodes will be accessed in any execution path from entry to exit, resulting in a \\(100\\%\\) access probability for these nodes." }, { "type": "code_caption", "bbox": [ 0.125, 0.644, 0.431, 0.658 ], "angle": 0, "content": "Algorithm 1: Node Gradient Calculation" }, { "type": "algorithm", "bbox": [ 0.117, 0.66, 0.487, 0.912 ], "angle": 0, "content": "Input: \\(G\\) is the model to be attacked, \\(f = [I_1,I_2,\\dots ,I_M]\\) is a function \\(f\\) composed of instructions Output: Gradients of nodes in function \\(f\\) \n1 DN \\(\\leftarrow\\) Compute dominant nodes in function \\(f\\) using the algorithm \n2 \\(v\\gets\\) Embedding \\((G,f)\\) \n3 \\(g_{f}\\gets \\frac{\\partial L(f)}{\\partial v}\\) ## Compute gradients of each instruction in function \\(f\\) \n4 grads \\(= []\\) \n5 foreach node in CFG(f) do \n6 grad(node) \\(=\\) sum of gradients of instructions in node \n7 grads.append(grad(node)) \n8 return grads" }, { "type": "text", "bbox": [ 0.508, 0.085, 0.885, 0.295 ], "angle": 0, "content": "This process is described by Algorithm 1. The algorithm takes as input the LB-BCSD model \\( G \\) to be attacked and a function \\( f = [I_1, I_2, \\dots, I_M] \\) composed of M instructions. First, the algorithm identifies and extracts all dominant nodes in function \\( f \\). Next, it uses model \\( G \\) to encode function \\( f \\), obtaining its embedding representation \\( v \\). Then, it computes the gradients of each instruction in function \\( f \\) with respect to the loss function of model \\( G \\) through backpropagation. Finally, the algorithm sums the gradients of all instructions within each node in the control flow graph of function \\( f \\) to obtain the total gradient value for each node." }, { "type": "title", "bbox": [ 0.509, 0.306, 0.776, 0.322 ], "angle": 0, "content": "4.2 Disturbance Method Design" }, { "type": "text", "bbox": [ 0.508, 0.328, 0.884, 0.408 ], "angle": 0, "content": "To address the challenges outlined in Section 3, this paper proposes a targeted comprehensive perturbation method. By fine-tuning the control flow, data flow, and internal nodes of functions, this approach effectively generates multiple code variants." }, { "type": "title", "bbox": [ 0.509, 0.419, 0.776, 0.433 ], "angle": 0, "content": "4.2.1 Control Flow Disturbance" }, { "type": "text", "bbox": [ 0.508, 0.438, 0.885, 0.55 ], "angle": 0, "content": "Control flow disturbance is a method aimed at perturbing the program's control flow paths and structure, thereby increasing the complexity and analysis difficulty of the program. We designs five control flow disturbance methods: edge hiding, code cloning, loop fabrication, termination node transformation, and function entry point obfuscation." }, { "type": "text", "bbox": [ 0.508, 0.551, 0.885, 0.696 ], "angle": 0, "content": "Edge Hiding: In order to hinder the LB-BCSD method from accurately capturing the real execution flow of programs, we proposes a new perturbation method — edge concealment perturbation. As shown in Figure 2(a), this method changes direct jumps between basic blocks to indirect jumps, preventing the LB-BCSD method from statically analyzing the jump targets, effectively \"eliminating\" edges in the control flow graph." }, { "type": "text", "bbox": [ 0.508, 0.697, 0.884, 0.792 ], "angle": 0, "content": "Code Cloning: To increase the complexity of the function control flow graph, we proposes a code cloning technique. As shown in Figure 2(b), this technique involves cloning existing code and causing the control flow to alternate between the original and the clone." }, { "type": "text", "bbox": [ 0.508, 0.794, 0.884, 0.921 ], "angle": 0, "content": "Loop Forgery: Loops are important structures in programs, typically used for processing core data or implementing core logic. In a control flow graph, a loop is represented as a closed loop of nodes and edges, which represents the looping execution path in the program. Given that many binary code similarity detection methods rely on loops to assess the similarity between two functions, as shown in" }, { "type": "page_number", "bbox": [ 0.478, 0.928, 0.524, 0.941 ], "angle": 0, "content": "11511" } ], [ { "type": "text", "bbox": [ 0.114, 0.085, 0.486, 0.132 ], "angle": 0, "content": "Figure 2(c), we introduces loop forging techniques aimed at disrupting the accuracy of the LB-BCSD method by forging loops." }, { "type": "text", "bbox": [ 0.114, 0.134, 0.487, 0.262 ], "angle": 0, "content": "Termination Node Transformation: Termination nodes are the exits of functions, representing the end points of functions and are important features on the control flow graph. As shown in Figure 2(d), we proposes a termination node transformation technique, which can convert ordinary nodes in a function into termination nodes, thereby affecting the accuracy of the LB-BCSD method." }, { "type": "text", "bbox": [ 0.113, 0.264, 0.489, 0.406 ], "angle": 0, "content": "Function Entry Point Obfuscation: Unlike edge hiding perturbation, function entry hiding conceals the actual entry point of a function within a meticulously designed complex control flow. As shown in Figure 2(e), the purpose of this method is to make it difficult for the LB-BCSD method to locate the true starting point of the function, thereby preventing accurate tracking of the function's execution flow." }, { "type": "title", "bbox": [ 0.114, 0.419, 0.362, 0.433 ], "angle": 0, "content": "4.2.2 Data Flow Perturbation" }, { "type": "text", "bbox": [ 0.113, 0.439, 0.489, 0.519 ], "angle": 0, "content": "To perturb the data flow of functions, we proposes a constant expansion technique. As shown in Figure 2(f), this technique converts a simple constant expression into a series of complex calculations to increase the complexity of the function's data flow." }, { "type": "title", "bbox": [ 0.114, 0.531, 0.426, 0.546 ], "angle": 0, "content": "4.2.3 Intra-Node Perturbation Design" }, { "type": "text", "bbox": [ 0.113, 0.55, 0.489, 0.661 ], "angle": 0, "content": "In addition to perturbing the number of nodes and edges in the control flow graph and data flow graph of executable files, we also delves into intra-node perturbation methods. These methods further increase the complexity of analysis by hiding function calls within the code and adding ways to invoke functions in the code." }, { "type": "text", "bbox": [ 0.113, 0.664, 0.489, 0.807 ], "angle": 0, "content": "Function Call Hiding: A function call is the process of one function calling another to accomplish a specific task. Since many binary code similarity detection methods rely on function calls to assess the similarity between different codes, we introduce a function call hiding technique. As shown in Figure 3(a), this technique aims to disrupt the accuracy of the LB-BCSD method by replacing direct function calls with indirect calls." }, { "type": "text", "bbox": [ 0.113, 0.809, 0.489, 0.921 ], "angle": 0, "content": "Function Call Expansion: Since function calls are a key feature in the control flow graph, this paper designs a function call augmentation technique to increase the number of function calls in the code. As shown in Figure 3(b), this technique increases the function call count by extracting instructions from the code and encapsulating them into new" }, { "type": "image", "bbox": [ 0.518, 0.081, 0.853, 0.196 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.648, 0.2, 0.745, 0.213 ], "angle": 0, "content": "(a) Edge hiding" }, { "type": "image", "bbox": [ 0.522, 0.213, 0.871, 0.325 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.644, 0.329, 0.749, 0.342 ], "angle": 0, "content": "(b) Code cloning" }, { "type": "image", "bbox": [ 0.523, 0.342, 0.871, 0.463 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.635, 0.467, 0.758, 0.479 ], "angle": 0, "content": "(c) Loop fabrication" }, { "type": "image", "bbox": [ 0.542, 0.48, 0.851, 0.591 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.585, 0.596, 0.808, 0.608 ], "angle": 0, "content": "(d) Termination node transformation" }, { "type": "image", "bbox": [ 0.512, 0.609, 0.895, 0.735 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.627, 0.741, 0.78, 0.754 ], "angle": 0, "content": "(e) Function entry hiding" }, { "type": "image", "bbox": [ 0.528, 0.755, 0.837, 0.872 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.612, 0.877, 0.752, 0.89 ], "angle": 0, "content": "(f) Constant expansion" }, { "type": "image_caption", "bbox": [ 0.509, 0.901, 0.882, 0.928 ], "angle": 0, "content": "Figure 2: Design diagram of perturbation methods at the control flow and data flow levels" }, { "type": "page_number", "bbox": [ 0.478, 0.929, 0.525, 0.941 ], "angle": 0, "content": "11512" } ], [ { "type": "image", "bbox": [ 0.141, 0.08, 0.462, 0.212 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.229, 0.215, 0.375, 0.229 ], "angle": 0, "content": "(a) Function call hiding" }, { "type": "image", "bbox": [ 0.139, 0.229, 0.468, 0.361 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.217, 0.365, 0.386, 0.379 ], "angle": 0, "content": "(b) Function call expansion" }, { "type": "image_caption", "bbox": [ 0.114, 0.389, 0.489, 0.417 ], "angle": 0, "content": "Figure 3: Illustration of disturbance strategy design inside the node" }, { "type": "text", "bbox": [ 0.115, 0.447, 0.192, 0.46 ], "angle": 0, "content": "functions." }, { "type": "title", "bbox": [ 0.114, 0.478, 0.421, 0.494 ], "angle": 0, "content": "4.3 Adversarial Example Generation" }, { "type": "text", "bbox": [ 0.113, 0.502, 0.489, 0.63 ], "angle": 0, "content": "Algorithm 2 details how to generate adversarial examples in a white-box setting. The input to the algorithm is a function \\( f = [I_1, I_2, \\dots, I_M] \\). The algorithm perturbs the function \\( f \\) and outputs the adversarial example \\( \\hat{f} \\). Additionally, this algorithm can be applied to attack binary executables by processing each function in the binary file one by one using Algorithm 2." }, { "type": "text", "bbox": [ 0.113, 0.632, 0.49, 0.922 ], "angle": 0, "content": "The algorithm starts by using the node gradient computation algorithm to calculate the gradient value for each dominating node. Next, this paper selects the top N nodes with the largest gradients, which are considered important nodes. This strategy aims to efficiently generate adversarial samples by minimizing the number of necessary perturbations. Although perturbing dominator nodes beyond the top N can also yield adversarial samples, it typically requires more perturbations. Subsequently, control flow, data flow, and intranode perturbations are applied to these important nodes. When choosing specific perturbation methods, FuncFollower tries each perturbation method and selects the one that causes the greatest reduction in similarity as the final perturbation strategy for the ith important node in the sample. This process iterates until \\(\\hat{f}\\) is no longer similar to the original" }, { "type": "text", "bbox": [ 0.508, 0.085, 0.885, 0.358 ], "angle": 0, "content": "function \\( f \\), or until the preset maximum number of perturbations \\( N \\) is reached (in practice, \\( N \\) is set to 10). To measure the similarity between two functions, in line with the approach in the literature (Sato et al., 2018), we uses top-10 accuracy as the criterion. This criterion focuses on whether, when \\( \\hat{f} \\) is used as input, the correct answer (i.e., the original function \\( f \\)) appears within the top 10 scoring options among all prediction results. We designs five control flow perturbation methods, one data flow perturbation method, and two intra-node perturbation methods. Each perturbation method increases the complexity of the executable file to some extent. These perturbation methods can be used collaboratively and repeatedly, thus constructing a large search space of \\( (5 \\times 1 \\times 2)^i \\), where \\( i \\) represents the number of iterations." }, { "type": "title", "bbox": [ 0.519, 0.374, 0.839, 0.405 ], "angle": 0, "content": "Algorithm 2: Adversarial Example Generation Algorithm" }, { "type": "text", "bbox": [ 0.528, 0.408, 0.842, 0.44 ], "angle": 0, "content": "Input : \\( f = \\left\\lbrack {{I}_{1},{I}_{2},\\ldots ,{I}_{M}}\\right\\rbrack \\) ,Function \\( f \\) consisting of instructions" }, { "type": "text", "bbox": [ 0.529, 0.44, 0.769, 0.457 ], "angle": 0, "content": "Output:Adversarial example \\(\\hat{f}\\)" }, { "type": "text", "bbox": [ 0.515, 0.457, 0.855, 0.503 ], "angle": 0, "content": "1.1 grads \\(\\leftarrow\\) Compute gradients of dominating nodes using the node gradient computation algorithm" }, { "type": "text", "bbox": [ 0.514, 0.505, 0.855, 0.551 ], "angle": 0, "content": "2 Sort dominating nodes in the control flow by gradient and select the top \\(N\\) nodes as important nodes" }, { "type": "list", "bbox": [ 0.514, 0.457, 0.855, 0.551 ], "angle": 0, "content": null }, { "type": "text", "bbox": [ 0.514, 0.553, 0.585, 0.568 ], "angle": 0, "content": "3 \\(\\hat{f}\\gets f\\)" }, { "type": "text", "bbox": [ 0.515, 0.57, 0.578, 0.583 ], "angle": 0, "content": "4 \\(i\\gets 0\\)" }, { "type": "text", "bbox": [ 0.515, 0.585, 0.652, 0.599 ], "angle": 0, "content": "5 while \\(i < N\\) do" }, { "type": "text", "bbox": [ 0.514, 0.601, 0.842, 0.755 ], "angle": 0, "content": "6 \\(t\\gets\\) Compute the effect of each perturbation method and assign the method that causes the greatest reduction in similarity to t \n7 \\(\\hat{f}\\gets\\) Transform \\((\\hat{f},t,i)\\) ## Perturb the ith important node in \\(\\hat{f}\\) \n8 \\(i\\gets i + 1\\) \n9 if Similar \\((f,\\hat{f}) = =\\) False then \n10 return" }, { "type": "text", "bbox": [ 0.51, 0.763, 0.634, 0.777 ], "angle": 0, "content": "11 return None" }, { "type": "list", "bbox": [ 0.51, 0.601, 0.842, 0.777 ], "angle": 0, "content": null }, { "type": "title", "bbox": [ 0.509, 0.81, 0.762, 0.826 ], "angle": 0, "content": "5 Experimental Evaluation" }, { "type": "text", "bbox": [ 0.508, 0.835, 0.884, 0.881 ], "angle": 0, "content": "The experimental evaluation in this paper primarily revolves around the following core research questions:" }, { "type": "text", "bbox": [ 0.532, 0.89, 0.884, 0.922 ], "angle": 0, "content": "- RQ1: Does the implementation of functions with the same functionality but different ap" }, { "type": "page_number", "bbox": [ 0.478, 0.928, 0.525, 0.941 ], "angle": 0, "content": "11513" } ], [ { "type": "text", "bbox": [ 0.15, 0.085, 0.488, 0.117 ], "angle": 0, "content": "proaches affect the accuracy of the LB-BCSD model?" }, { "type": "text", "bbox": [ 0.137, 0.126, 0.49, 0.172 ], "angle": 0, "content": "- RQ2: Can adversarial examples generated by FuncFooler enhance the robustness of the LB-BCSD model?" }, { "type": "title", "bbox": [ 0.114, 0.18, 0.318, 0.196 ], "angle": 0, "content": "5.1 Experimental Setup" }, { "type": "title", "bbox": [ 0.114, 0.2, 0.484, 0.215 ], "angle": 0, "content": "5.1.1 Baseline Models and Evaluation Metric" }, { "type": "text", "bbox": [ 0.113, 0.219, 0.491, 0.606 ], "angle": 0, "content": "We selects three LB-BCSD models as baseline models: a) Safe (Massarelli et al., 2019), which uses an RNN structure with a self-attention mechanism to generate semantic embeddings for functions; b) Asm2Vec (Ding et al., 2019), which uses the PV-DM model combined with control flow information of executable files to generate semantic embeddings for functions; c) JTrans (Wang et al., 2022) encodes control flow information into a Transformer to generate semantic embeddings for functions, with JTrans being the SOTA approach. For each model, we use the authors' provided models and fine-tunes them on the public dataset BinaryCorp-3M (Wang et al., 2022) to better suit the needs of binary code similarity detection tasks. The BinaryCorp-3M dataset covers approximately 3 million binary functions. During finetuning, the default hyperparameters of the models are used to fine-tune both the original models and the FuncFooler-enhanced models. In the experimental evaluation process, we used top-10 accuracy as the primary evaluation metric. This metric focuses on whether the correct answer appears within the top 10 ranked predictions." }, { "type": "title", "bbox": [ 0.114, 0.614, 0.279, 0.628 ], "angle": 0, "content": "5.1.2 Test Datasets" }, { "type": "text", "bbox": [ 0.113, 0.632, 0.49, 0.922 ], "angle": 0, "content": "We construct two test datasets to comprehensively evaluate the model's accuracy in binary code similarity detection. Dataset I contains functions that have the same functionality but different implementations. In creating this dataset, 400 programs were selected from LeetCode and GitHub, with 10 different implementations collected for each program. When choosing these different implementations, performance scores from online programming platforms like LeetCode were referenced to ensure diversity in the selected solutions. The primary objective of this dataset is to assess the model's accuracy when handling functions with identical functionality but varying implementations. Dataset II is derived from six real-world projects, including Curl, Coreutils, Binutils, SQLite, OpenSSL, and Putty. This dataset aims to evaluate the enhancement effect of FuncFooer on the model's accuracy" }, { "type": "text", "bbox": [ 0.508, 0.085, 0.885, 0.278 ], "angle": 0, "content": "with real programs. Given that O0 completely disables compiler optimizations, while O1 enables basic optimizations such as dead code elimination and simple loop optimizations, the code differences between O0 and O1 are significant. Therefore, this paper employs the lvm-10 compiler with O2 and O3 optimization options to compile the programs in both datasets. This design aims to test the model's accuracy in recognizing functions optimized to varying degrees, striving to minimize the discriminative differences caused by compilation optimizations." }, { "type": "title", "bbox": [ 0.509, 0.29, 0.857, 0.338 ], "angle": 0, "content": "5.2 Impact of Functionally Equivalent but Differently Implemented Functions on Model Accuracy" }, { "type": "text", "bbox": [ 0.508, 0.343, 0.885, 0.664 ], "angle": 0, "content": "In this experiment, we evaluate the impact of different implementations of the same function on the accuracy of the LB-BCSD model. The experiment is conducted in two steps: first, we assess the accuracy of the LB-BCSD model in recognizing the same function compiled with different options (O2 and O3). In this step, only functions compiled with the O3 option are considered as correct answers. Secondly, we evaluate the model's accuracy in recognizing functions with the same functionality but different implementations. In this step, the other 9 implementations of the function are considered correct answers, and the model's average accuracy for these 9 implementations is calculated as accuracy indicator. By comparing the accuracy differences between the O2 and O3 compilation options and the average accuracy for functionally equivalent but differently implemented functions, we can quantify the impact of different implementations on the robustness of the LB-BCSD model." }, { "type": "table_caption", "bbox": [ 0.508, 0.675, 0.885, 0.761 ], "angle": 0, "content": "Table 1: The impact of functionally equivalent but differently implemented functions on model accuracy. Here, DCO refers to the accuracy of the model for the same function with different compilation options, while DI refers to the accuracy of the model for different implementation functions with the same functionality." }, { "type": "table", "bbox": [ 0.553, 0.77, 0.842, 0.823 ], "angle": 0, "content": "<table><tr><td></td><td>Asm2Vec</td><td>SAFE</td><td>JTrans</td></tr><tr><td>DCO</td><td>0.76</td><td>0.72</td><td>0.81</td></tr><tr><td>DI</td><td>0.64</td><td>0.6</td><td>0.65</td></tr></table>" }, { "type": "text", "bbox": [ 0.508, 0.842, 0.884, 0.922 ], "angle": 0, "content": "For this study, we use Dataset I and randomly select 50 programs from it. Since each program contains 10 different implementations, a test pool of 500 functions is constructed. We follow the experimental design consistent with existing stud" }, { "type": "page_number", "bbox": [ 0.478, 0.928, 0.526, 0.941 ], "angle": 0, "content": "11514" } ], [ { "type": "table_caption", "bbox": [ 0.113, 0.083, 0.885, 0.127 ], "angle": 0, "content": "Table 2: This table illustrates the impact of FuncFloater on model accuracy. \"Ori.\" represents the original accuracy of the models, while \"FF\" denotes the accuracy after fine-tuning the models with adversarial examples generated by FuncFloater. \"Impr.\" indicates the difference between the fine-tuned accuracy and the original accuracy." }, { "type": "table", "bbox": [ 0.207, 0.135, 0.794, 0.303 ], "angle": 0, "content": "<table><tr><td rowspan=\"2\">Program</td><td colspan=\"3\">Asm2Vec</td><td colspan=\"3\">SAFE</td><td colspan=\"3\">JTrans</td></tr><tr><td>Ori.</td><td>FF</td><td>impr.</td><td>Ori.</td><td>FF</td><td>impr.</td><td>Ori.</td><td>FF</td><td>impr.</td></tr><tr><td>Curl</td><td>0.78</td><td>0.81</td><td>0.03</td><td>0.75</td><td>0.76</td><td>0.01</td><td>0.79</td><td>0.83</td><td>0.04</td></tr><tr><td>Binutils</td><td>0.75</td><td>0.78</td><td>0.03</td><td>0.73</td><td>0.75</td><td>0.02</td><td>0.77</td><td>0.8</td><td>0.03</td></tr><tr><td>Coreutils</td><td>0.81</td><td>0.82</td><td>0.01</td><td>0.78</td><td>0.79</td><td>0.01</td><td>0.8</td><td>0.86</td><td>0.06</td></tr><tr><td>SQLite</td><td>0.71</td><td>0.77</td><td>0.06</td><td>0.68</td><td>0.7</td><td>0.02</td><td>0.76</td><td>0.84</td><td>0.08</td></tr><tr><td>OpenSSL</td><td>0.74</td><td>0.78</td><td>0.04</td><td>0.76</td><td>0.77</td><td>0.01</td><td>0.79</td><td>0.85</td><td>0.06</td></tr><tr><td>Putty</td><td>0.78</td><td>0.81</td><td>0.03</td><td>0.77</td><td>0.78</td><td>0.01</td><td>0.8</td><td>0.84</td><td>0.04</td></tr><tr><td>Average</td><td>0.76</td><td>0.79</td><td>0.03</td><td>0.75</td><td>0.77</td><td>0.01</td><td>0.79</td><td>0.83</td><td>0.05</td></tr><tr><td>Dataset I</td><td>0.64</td><td>0.7</td><td>0.06</td><td>0.6</td><td>0.63</td><td>0.03</td><td>0.65</td><td>0.72</td><td>0.07</td></tr></table>" }, { "type": "text", "bbox": [ 0.112, 0.326, 0.489, 0.437 ], "angle": 0, "content": "ies (Hu et al., 2018; Marcelli et al., 2022; Wang and Wu, 2017; Xu et al., 2023) to ensure comparability and consistency. During the experiment, each function in the dataset is compiled with the O2 option, and the search matches are conducted within a test pool of 500 functions generated by the O3 option." }, { "type": "text", "bbox": [ 0.112, 0.439, 0.49, 0.696 ], "angle": 0, "content": "The experimental results are shown in Table 1. As can be seen, the LB-BCSD models exhibit high accuracy in recognizing different versions of the same function generated by the same functionality but different compilation options (O2 and O3), with an average accuracy of \\(76\\%\\). However, when recognizing functions with the same functionality but different implementations, the models' average accuracy drops to \\(63\\%\\), a decrease of \\(13\\%\\) compared to recognizing the same function. It is noteworthy that although these functionally equivalent functions were also obtained through O2 and O3 compilation options, the implementation differences by different programmers lead to a decrease in the accuracy of the LB-BCSD models during recognition." }, { "type": "title", "bbox": [ 0.114, 0.708, 0.486, 0.74 ], "angle": 0, "content": "5.3 Effectiveness of FuncFooler in Improving Model Accuracy" }, { "type": "text", "bbox": [ 0.113, 0.745, 0.49, 0.922 ], "angle": 0, "content": "In this experiment, we evaluate the effectiveness of FuncFollower in improving model accuracy. For each function in the original training set BinaryCorp-3M, adversarial examples are generated using FuncFollower, and these samples are used to fine-tune the models. To ensure comprehensive and accurate evaluation, we use two datasets for testing. Dataset I focuses on evaluating the accuracy of the models for functionally equivalent but differently implemented functions. Dataset II is derived from six real-world projects, focusing on evaluating the" }, { "type": "text", "bbox": [ 0.508, 0.326, 0.885, 0.372 ], "angle": 0, "content": "models' accuracy for functions in real applications. Other settings in this experiment are the same as those in Section 5.2." }, { "type": "text", "bbox": [ 0.508, 0.378, 0.885, 0.668 ], "angle": 0, "content": "The experimental results are shown in Table 2. In this table, \"Ori.\" represents the original accuracy of the model. \"FF\" indicates the accuracy after fine-tuning the model with adversarial samples generated by FuncFooler. \"Impr.\" denotes the difference between the fine-tuned accuracy and the original accuracy. From the data in the table, it can be seen that for the JTrans model, by applying the method proposed in this paper, we successfully achieved accuracy improvements of \\(5\\%\\) and \\(7\\%\\) on two different datasets, demonstrating the effectiveness and potential of our approach. In contrast, the accuracy improvements on the SAFE and Asm2Vec models were relatively limited. This is primarily due to the relatively simple structure of these two models, which may have limitations in capturing subtle changes in the code, making it difficult to significantly enhance their accuracy." }, { "type": "title", "bbox": [ 0.509, 0.694, 0.642, 0.709 ], "angle": 0, "content": "6 Conclusion" }, { "type": "text", "bbox": [ 0.508, 0.729, 0.885, 0.922 ], "angle": 0, "content": "To improve the model's ability to recognize function variants, we designed FuncFloater to generate multiple variants of a function and then use these code variants to retrain the model to enhance its robustness. When given a function, FuncFloater first uses gradient information to determine the importance of each node in its control flow graph. Subsequently, specific control flow, data flow, and intra-node perturbations are applied to these key nodes to generate adversarial samples. Experimental results show that FuncFloater can improve the accuracy of SOTA LB-BCSD models by \\(5\\% -7\\%\\)." }, { "type": "page_number", "bbox": [ 0.478, 0.928, 0.526, 0.941 ], "angle": 0, "content": "11515" } ], [ { "type": "title", "bbox": [ 0.115, 0.085, 0.241, 0.099 ], "angle": 0, "content": "7 Limitation" }, { "type": "text", "bbox": [ 0.113, 0.111, 0.488, 0.237 ], "angle": 0, "content": "In our study, we are committed to enhancing the robustness of the LB-BCSD model. To achieve this goal, we generate multiple variants of the same function and fine-tune the model with these variants in order to improve its generalization capabilities. Specifically, we create multiple variants of the same function through control flow, data flow, and perturbations within nodes." }, { "type": "text", "bbox": [ 0.117, 0.24, 0.49, 0.511 ], "angle": 0, "content": "However, our method has its limitations. Although we can generate functionally equivalent variants for a given function, we are unable to generate variants that have the same functionality but drastically different implementation logic. Programmers may use different algorithms or logical structures to implement the same functionality. This diversity is not fully reflected in our method. When faced with functions that have the same functionality but different implementations, the accuracy of the LB-BCSD model decreases by \\(13\\%\\). In contrast, using variants generated by FuncFooer only improves the SOTA model's accuracy by \\(5\\%\\) to \\(7\\%\\). This finding highlights an important direction for future research: exploring how to generate functionally identical but logically distinct function variants." }, { "type": "text", "bbox": [ 0.117, 0.514, 0.49, 0.803 ], "angle": 0, "content": "In terms of experimental design, we also encountered challenges. Due to the lack of programs with various different implementations in real-world environments, we constructed a test dataset using different solutions to the same problem from programming websites. Currently, the LB-BCSD method primarily focuses on evaluating the similarity of the same function under different compilation options, and existing datasets are mainly built on this basis, lacking datasets that reflect different implementations of the same functionality. Therefore, in future work, we aim to collect and analyze different implementations of real programs to more accurately assess the impact of FuncFollower on improving the accuracy of the LB-BCSD model. This will help us to more comprehensively understand the model's performance and provide stronger support for its deployment in practical applications." }, { "type": "title", "bbox": [ 0.114, 0.816, 0.295, 0.831 ], "angle": 0, "content": "8 Ethics Statement" }, { "type": "text", "bbox": [ 0.113, 0.842, 0.49, 0.922 ], "angle": 0, "content": "Our work focuses on enhancing the robustness of the LB-BCSD model. To achieve this goal, our approach generates multiple variants of the same function and fine-tunes the model using these variants to improve its generalization capability. This experi" }, { "type": "text", "bbox": [ 0.508, 0.085, 0.883, 0.165 ], "angle": 0, "content": "iment was conducted on a high-performance server with the following configuration: an Intel Xeon Gold 6132 CPU (2.60 GHz), 256 GB of memory, eight Tesla V100 GPUs, and running the Ubuntu 18.04 operating system." }, { "type": "title", "bbox": [ 0.511, 0.192, 0.609, 0.208 ], "angle": 0, "content": "References" }, { "type": "ref_text", "bbox": [ 0.511, 0.214, 0.884, 0.282 ], "angle": 0, "content": "Abdullah Al-Dujaili, Alex Huang, Erik Hemberg, and Una-May O'Reilly. 2018. Adversarial deep learning for robust detection of binary encoded malware. In 2018 IEEE Security and Privacy Workshops (SPW), pages 76-82." }, { "type": "ref_text", "bbox": [ 0.511, 0.289, 0.885, 0.343 ], "angle": 0, "content": "Silvio Cesare, Yang Xiang, and Wanlei Zhou. 2013. Control flow-based malware variantdetection. IEEE Transactions on Dependable and Secure Computing, 11(4):307-317." }, { "type": "ref_text", "bbox": [ 0.511, 0.352, 0.885, 0.433 ], "angle": 0, "content": "Mahinthan Chandramohan, Yinxing Xue, Zhengzi Xu, Yang Liu, Chia Yuan Cho, and Hee Beng Kuan Tan. 2016. Bingo: Cross-architecture cross-os binary search. In Proceedings of the 2016 24th ACM SIG-SOFT International Symposium on Foundations of Software Engineering, pages 678-689." }, { "type": "ref_text", "bbox": [ 0.511, 0.44, 0.884, 0.481 ], "angle": 0, "content": "Yaniv David, Nimrod Partush, and Eran Yahav. 2016. Statistical similarity of binaries. *Acm Sigplan Notices*, 51(6):266-280." }, { "type": "ref_text", "bbox": [ 0.511, 0.49, 0.884, 0.53 ], "angle": 0, "content": "Yaniv David and Eran Yahav. 2014. Tracelet-based code search in executables. Acm Sigplan Notices, 49(6):349-360." }, { "type": "ref_text", "bbox": [ 0.511, 0.54, 0.884, 0.607 ], "angle": 0, "content": "Luca Demetrio, Battista Biggio, Giovanni Lagoon, Fabio Roli, and Alessandro Armando. 2021. Functionality-preserving black-box optimization of adversarial windows malware. IEEE Transactions on Information Forensics and Security, 16:3469-3478." }, { "type": "ref_text", "bbox": [ 0.511, 0.615, 0.885, 0.695 ], "angle": 0, "content": "Steven HH Ding, Benjamin CM Fung, and Philippe Charland. 2019. Asm2vec: Boosting static representation robustness for binary clone search against code obfuscation and compiler optimization. In 2019 IEEE Symposium on Security and Privacy (SP), pages 472-489." }, { "type": "ref_text", "bbox": [ 0.511, 0.703, 0.884, 0.782 ], "angle": 0, "content": "Yikun Hu, Yuanyuan Zhang, Juanru Li, and Dawu Gu. 2016. Cross-architecture binary semantics understanding via similar code comparison. In 2016 IEEE 23rd International Conference on Software Analysis, Evolution, and Reengineering (SANER), pages 57-67." }, { "type": "ref_text", "bbox": [ 0.511, 0.792, 0.884, 0.872 ], "angle": 0, "content": "Yikun Hu, Yuanyuan Zhang, Juanru Li, Hui Wang, Bodong Li, and Dawu Gu. 2018. Binmatch: A semantics-based hybrid approach on binary code clone analysis. In 2018 IEEE international conference on software maintenance and evolution (IC-SME), pages 104-114. IEEE." }, { "type": "ref_text", "bbox": [ 0.511, 0.88, 0.884, 0.922 ], "angle": 0, "content": "Lichen Jia, Chenggang Wu, Peihua Zhang, and Zhe Wang. 2024. Codeextract: Enhancing binary code similarity detection with code extraction techniques." }, { "type": "list", "bbox": [ 0.511, 0.214, 0.885, 0.922 ], "angle": 0, "content": null }, { "type": "page_number", "bbox": [ 0.478, 0.929, 0.526, 0.941 ], "angle": 0, "content": "11516" } ], [ { "type": "ref_text", "bbox": [ 0.135, 0.086, 0.489, 0.126 ], "angle": 0, "content": "In Proceedings of the 25th ACM SIGPLAN/SIGBED International Conference on Languages, Compilers, and Tools for Embedded Systems, pages 143-154." }, { "type": "ref_text", "bbox": [ 0.117, 0.14, 0.487, 0.219 ], "angle": 0, "content": "Lichen Jia, Yang Yang, Jiansong Li, Hao Ding, Jiajun Li, Ting Yuan, Lei Liu, and Zihan Jiang. 2023a. Mtmg: A framework for generating adversarial examples targeting multiple learning-based malware detection systems. In Pacific Rim International Conference on Artificial Intelligence, pages 249-261. Springer." }, { "type": "ref_text", "bbox": [ 0.117, 0.232, 0.487, 0.297 ], "angle": 0, "content": "Lichen Jia, Yang Yang, Bowen Tang, and Zihan Jiang. 2023b. Ermds: A obfuscation dataset for evaluating robustness of learning-based malware detection system. BenchCouncil Transactions on Benchmarks, Standards and Evaluations, 3(1):100106." }, { "type": "ref_text", "bbox": [ 0.117, 0.312, 0.487, 0.391 ], "angle": 0, "content": "Bojan Kolosnjaji, Ambra Demontis, Battista Biggio, Davide Maiorca, Giorgio Giacinto, Claudia Eckert, and Fabio Roli. 2018. Adversarial malware binaries: Evading deep learning for malware detection in executables. In 2018 26th European signal processing conference (EUSIPCO), pages 533-537." }, { "type": "ref_text", "bbox": [ 0.117, 0.404, 0.487, 0.483 ], "angle": 0, "content": "Keane Lucas, Mahmood Sharif, Lujo Bauer, Michael K Reiter, and Saurabh Shintre. 2021. Malware makeover: Breaking ml-based static analysis by modifying executable bytes. In Proceedings of the 2021 ACM Asia Conference on Computer and Communications Security, pages 744-758." }, { "type": "ref_text", "bbox": [ 0.117, 0.497, 0.487, 0.575 ], "angle": 0, "content": "Lannan Luo, Jiang Ming, Dinghao Wu, Peng Liu, and Sencun Zhu. 2017. Semantics-based obfuscation-resilient binary code similarity comparison with applications to software and algorithm plagiarism detection. IEEE Transactions on Software Engineering, 43(12):1157-1177." }, { "type": "ref_text", "bbox": [ 0.117, 0.59, 0.487, 0.668 ], "angle": 0, "content": "Andrea Marcelli, Mariano Graziano, Xabier Ugarte-Pedrero, Yanick Fratantonio, Mohamad Mansouri, and Davide Balzarotti. 2022. How machine learning is solving the binary function similarity problem. In 31st USENIX Security Symposium (USENIX Security 22), pages 2099-2116." }, { "type": "ref_text", "bbox": [ 0.117, 0.682, 0.487, 0.747 ], "angle": 0, "content": "Ehsan Mashhadi and Hadi Hemmati. 2021. Applying codebert for automated program repair of java simple bugs. In 2021 IEEE/ACM 18th International Conference on Mining Software Repositories (MSR), pages 505-509." }, { "type": "ref_text", "bbox": [ 0.117, 0.762, 0.487, 0.841 ], "angle": 0, "content": "Luca Massarelli, Giuseppe Antonio Di Luna, Fabio Petroni, Roberto Baldoni, and Leonardo Querzoni. 2019. Safe: Self-attentive function embeddings for binary similarity. In International Conference on Detection of Intrusions and Malware, and Vulnerability Assessment, pages 309-329." }, { "type": "ref_text", "bbox": [ 0.117, 0.854, 0.487, 0.92 ], "angle": 0, "content": "Jiang Ming, Dongpeng Xu, and Dinghao Wu. 2015. Memoized semantics-based binary diffing with application to malware lineage inference. In IFIP International Information Security and Privacy Conference, pages 416-430." }, { "type": "list", "bbox": [ 0.117, 0.086, 0.489, 0.92 ], "angle": 0, "content": null }, { "type": "ref_text", "bbox": [ 0.511, 0.086, 0.882, 0.152 ], "angle": 0, "content": "Jannik Pewny, Felix Schuster, Lukas Bernhard, Thorsten Holz, and Christian Rossow. 2014. Leveraging semantic signatures for bug search in binary programs. In Proceedings of the 30th Annual Computer Security Applications Conference, pages 406-415." }, { "type": "ref_text", "bbox": [ 0.511, 0.163, 0.882, 0.229 ], "angle": 0, "content": "Hitesh Sajnani, Vaibhav Saini, Jeffrey Svajlenko, Chanchal K Roy, and Cristina V Lopes. 2016. Sourcerercc: Scaling code clone detection to big-code. In Proceedings of the 38th international conference on software engineering, pages 1157-1168." }, { "type": "ref_text", "bbox": [ 0.511, 0.24, 0.882, 0.291 ], "angle": 0, "content": "Motoki Sato, Jun Suzuki, Hiroyuki Shindo, and Yuji Matsumoto. 2018. Interpretable adversarial perturbation in input embedding space for text. arXiv preprint arXiv:1805.02917." }, { "type": "ref_text", "bbox": [ 0.511, 0.304, 0.882, 0.383 ], "angle": 0, "content": "Sicco Verwer, Azqa Nadeem, Christian Hammerschmidt, Laurens Bliek, Abdullah Al-Dujaili, and Una-May O'Reilly. 2020. The robust malware detection challenge and greedy random accelerated multi-bit search. In Proceedings of the 13th ACM Workshop on Artificial Intelligence and Security, pages 61-70." }, { "type": "ref_text", "bbox": [ 0.511, 0.394, 0.882, 0.447 ], "angle": 0, "content": "Andrew Walker, Tomas Cerny, and Eungee Song. 2020. Open-source tools and benchmarks for code-clone detection: past, present, and future trends. ACM SIGAPP Applied Computing Review, 19(4):28-39." }, { "type": "ref_text", "bbox": [ 0.511, 0.458, 0.882, 0.536 ], "angle": 0, "content": "Hao Wang, Wenjie Qu, Gilad Katz, Wenyu Zhu, Zeyu Gao, Han Qiu, Jianwei Zhuge, and Chao Zhang. 2022. jtrans: jump-aware transformer for binary code similarity detection. In Proceedings of the 31st ACM SIGSOFT International Symposium on Software Testing and Analysis, pages 1-13." }, { "type": "ref_text", "bbox": [ 0.511, 0.547, 0.882, 0.6 ], "angle": 0, "content": "Shuai Wang and Dinghao Wu. 2017. In-memory fuzzing for binary code similarity analysis. In 2017 32nd IEEE/ACM International Conference on Automated Software Engineering (ASE), pages 319-330." }, { "type": "ref_text", "bbox": [ 0.511, 0.611, 0.882, 0.715 ], "angle": 0, "content": "Xiangzhe Xu, Shiwei Feng, Yapeng Ye, Guangyu Shen, Zian Su, Siyuan Cheng, Guanhong Tao, Qingkai Shi, Zhuo Zhang, and Xiangyu Zhang. 2023. Improving binary code similarity transformer models by semantics-driven instruction deemphasis. In Proceedings of the 32nd ACM SIGSOFT International Symposium on Software Testing and Analysis, pages 1106-1118." }, { "type": "ref_text", "bbox": [ 0.511, 0.727, 0.882, 0.806 ], "angle": 0, "content": "Wei You, Zhuo Zhang, Yonghwi Kwon, Yousra Aafer, Fei Peng, Yu Shi, Carson Harmon, and Xiangyu Zhang. 2020. Pmp: Cost-effective forced execution with probabilistic memory pre-planning. In 2020 IEEE Symposium on Security and Privacy (SP), pages 1121-1138." }, { "type": "ref_text", "bbox": [ 0.511, 0.817, 0.882, 0.883 ], "angle": 0, "content": "Zeping Yu, Rui Cao, Qiyi Tang, Sen Nie, Junzhou Huang, and Shi Wu. 2020. Order matters: semantic-aware neural networks for binary code similarity detection. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 1145-1152." }, { "type": "ref_text", "bbox": [ 0.511, 0.894, 0.882, 0.921 ], "angle": 0, "content": "Peihua Zhang, Chenggang Wu, Mingfan Peng, Kai Zeng, Ding Yu, Yuanming Lai, Yan Kang, Wei Wang," }, { "type": "list", "bbox": [ 0.511, 0.086, 0.882, 0.921 ], "angle": 0, "content": null }, { "type": "page_number", "bbox": [ 0.478, 0.929, 0.525, 0.941 ], "angle": 0, "content": "11517" } ], [ { "type": "text", "bbox": [ 0.132, 0.086, 0.489, 0.153 ], "angle": 0, "content": "and Zhe Wang. 2023. Khaos: The impact of interprocedural code obfuscation on binary diffing techniques. In Proceedings of the 21st ACM/IEEE International Symposium on Code Generation and Optimization, pages 55-67." }, { "type": "text", "bbox": [ 0.115, 0.159, 0.49, 0.226 ], "angle": 0, "content": "Peihua Zhang, Chenggang Wu, and Zhe Wang. 2024. Bincodex: A comprehensive and multi-level dataset for evaluating binary code similarity detection techniques. BenchCouncil Transactions on Benchmarks, Standards and Evaluations, 4(2):100163." }, { "type": "title", "bbox": [ 0.115, 0.232, 0.273, 0.248 ], "angle": 0, "content": ".1 Ablation Study" }, { "type": "text", "bbox": [ 0.113, 0.253, 0.49, 0.43 ], "angle": 0, "content": "In this experiment, it is demonstrated that the model's accuracy is enhanced by FuncFollower rather than by the random walk strategy. For each function in the original training set, BinaryCorp-3M, the training set was expanded using both the random walk strategy and FuncFollower, followed by retraining the model. Dataset II was then used as a test set to evaluate the accuracy of both models, with the differences in accuracy relative to the original model reflecting the effectiveness of these two approaches." }, { "type": "text", "bbox": [ 0.113, 0.439, 0.49, 0.554 ], "angle": 0, "content": "Table 3: This table demonstrates that the accuracy of the model is improved by FuncFollower rather than the random walk strategy. Here, \"Ori.\" represents the original accuracy of the models, while \"FF\" represents the accuracy after fine-tuning the models with adversarial examples generated by FuncFollower, and \"RW\" represents the accuracy after fine-tuning the models with adversarial examples generated by the random walk strategy." }, { "type": "table", "bbox": [ 0.12, 0.563, 0.485, 0.62 ], "angle": 0, "content": "<table><tr><td colspan=\"3\">Asm2Vec</td><td colspan=\"3\">SAFE</td><td colspan=\"3\">JTrans</td></tr><tr><td>ori.</td><td>FF</td><td>RW</td><td>ori.</td><td>FF</td><td>RW</td><td>ori.</td><td>FF</td><td>RW</td></tr><tr><td>0.76</td><td>0.79</td><td>0.76</td><td>0.75</td><td>0.77</td><td>0.69</td><td>0.79</td><td>0.83</td><td>0.71</td></tr></table>" }, { "type": "text", "bbox": [ 0.113, 0.632, 0.49, 0.921 ], "angle": 0, "content": "The experimental results are shown in Table 3. The results indicate that when the training set is expanded using the random walk strategy and the model is retrained, the accuracy of SAFE decreases by \\(6\\%\\), the accuracy of Asm2Vec remains unchanged, and the accuracy of JTrans decreases by \\(8\\%\\). This is because SAFE and JTrans encode the instructions within basic blocks and the control flow transfer relationships between them, while the random walk produces a sequence of instructions, disrupting the original model's design and potentially introducing noise that interferes with the learning process. In contrast, the Asm2Vec model is trained based on the concept of random walks, which is why its accuracy is unaffected in the ablation study. This suggests that the random walk strategy decreases model accuracy, while FuncFollower enhances it." }, { "type": "title", "bbox": [ 0.51, 0.085, 0.882, 0.116 ], "angle": 0, "content": ".2 The Enhancement Effect of FuncFooer on Model Robustness" }, { "type": "text", "bbox": [ 0.508, 0.122, 0.884, 0.283 ], "angle": 0, "content": "In this experiment, we investigate the enhancement effect of FuncFollower on model robustness. Specifically, adversarial samples generated by FuncFollower were used to conduct adversarial testing on both the original model and the fine-tuned optimized model. For each baseline model, function samples were carefully perturbed using FuncFollower, and the changes in accuracy of the LB-BCSD model on these samples were compared to evaluate the enhancement of model robustness by FuncFollower." }, { "type": "text", "bbox": [ 0.508, 0.294, 0.884, 0.381 ], "angle": 0, "content": "Table 4: This table demonstrates the enhancement effect of FuncFloater on model robustness. In this context, adversarial samples generated by FuncFloater are used to attack both the original model (labeled as Ori.) and the model retrained with FuncFloater, and their respective accuracy rates are provided." }, { "type": "table", "bbox": [ 0.527, 0.39, 0.868, 0.464 ], "angle": 0, "content": "<table><tr><td colspan=\"2\">Asm2Vec</td><td colspan=\"2\">SAFE</td><td colspan=\"2\">JTrans</td></tr><tr><td>ori.</td><td>FF</td><td>ori.</td><td>FF</td><td>ori.</td><td>FF</td></tr><tr><td>0.03</td><td>0.25</td><td>0.03</td><td>0.22</td><td>0.04</td><td>0.26</td></tr></table>" }, { "type": "text", "bbox": [ 0.508, 0.478, 0.884, 0.638 ], "angle": 0, "content": "The experimental results are shown in Table 4: for the original model, FuncFollower significantly reduces its accuracy, causing the average accuracy of the three models to drop below \\(4\\%\\); for the fine-tuned model, the attack effectiveness of FuncFollower is weakened, only lowering the average accuracy of the three models to below \\(26\\%\\). This indicates that the fine-tuned model exhibits a robustness improvement of \\(22\\%\\) against FuncFollower attacks compared to the original model." }, { "type": "page_number", "bbox": [ 0.478, 0.928, 0.526, 0.941 ], "angle": 0, "content": "11518" } ]]123version https://git-lfs.github.com/spec/v1oid sha256:2b37273f5a330b11caf8bafcb3ef83ecf20e20925b9988c95d3de088e24646f9size 629282123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307# Enhancing Learning-Based Binary Code Similarity Detection Model through Adversarial Training with Multiple Function Variants
Lichen Jia $^{1,2}$ , Chenggang Wu $^{1,2}$ , Bowen Tang $^{3}$ , Peihua Zhang $^{7}$ , Zihan Jiang $^{3}$ , Yang Yang $^{4}$ , Ning Liu $^{5}$ , Jingfeng Zhang $^{6}$ , Zhe Wang $^{*1,2}$
$^{1}$ SKLP, Institute of Computing Technology, CAS, $^{2}$ University of Chinese Academy of Sciences
<sup>3</sup>Huawei Technologies Co., Ltd., <sup>4</sup>China University of Petroleum
$^{5}$ School of Software, Shandong University $^{6}$ University of Auckland $^{7}$ WeChat, Tencent Inc, lcjia457@gmail.com, {wucg, tangbowen, peihuazhang, wangzhe12, jiangzihan} @ict.ac.cn, yyawesom@gmail.com, liun21cs@sdu.edu.cn, jingfeng.zhang9660@gmail.com
# Abstract
Compared to identifying binary versions of the same function under different compilation options, existing Learning-Based Binary Code Similarity Detection (LB-BCSD) methods exhibit lower accuracy in recognizing functions with the same functionality but different implementations. To address this issue, we introduces an adversarial attack method called FuncFooler, which focuses on perturbing critical code to generate multiple variants of the same function. These variants are then used to retrain the model to enhance its robustness. Current adversarial attacks against LB-BCSD mainly draw inspiration from the FGSM (Fast Gradient Sign Method) method in the image domain, which involves generating adversarial bytes and appending them to the end of the executable file. However, this approach has a significant drawback: the appended bytes do not affect the actual code of the executable file, thus failing to create diverse code variants. To overcome this limitation, we proposes a gradient-guided adversarial attack method based on critical code—FuncFooler. This method designs a series of strategies to perturb the code while preserving the program's semantics. Specifically, we first utilizes gradient information to locate critical nodes in the control flow graph. Then, fine-grained perturbations are applied to these nodes, including control flow, data flow, and internal node perturbations, to obtain adversarial samples. The experimental results show that the application of the FuncFooler method can increase the accuracy of the state-of-the-art (SOTA) LB-BCSD model by $5\% - 7\%$ .
# 1 Introduction
Binary code similarity detection methods can identify and return a set of functions most similar to a given binary function. These functions usually originate from the same source code but differ due
to various compilation settings. Binary code similarity detection plays a crucial role in various security applications such as malware detection (Cesare et al., 2013; Ming et al., 2015; Chandramohan et al., 2016; You et al., 2020; Jia et al., 2023a; Lucas et al., 2021), software plagiarism detection (Luo et al., 2017; Yu et al., 2020; Luo et al., 2017; Sajnani et al., 2016; Walker et al., 2020; Zhang et al., 2023), vulnerability discovery (David et al., 2016; Jia et al., 2024; David and Yahav, 2014), and patch analysis (Mashhadi and Hemmati, 2021; Pewny et al., 2014; Hu et al., 2016; Wang and Wu, 2017).
In recent years, with the rise of artificial intelligence technologies, Learning-Based Binary Code Similarity Detection (LB-BCSD) techniques have emerged. Leveraging the powerful learning capabilities of machine learning models, these techniques excel in instruction semantic recognition, significantly improving detection accuracy and speed compared to traditional methods (Ding et al., 2019; Jia et al., 2023b; Zhang et al., 2024). However, in the field of software development, differences in programmers' coding habits, skill levels, and design approaches lead to various implementations of functions with the same functionality. This diversity is already evident at the source code level and becomes even more complex at the compiled binary code level. Although these different code implementations functionally align, their internal structures and design logics may differ significantly. This situation presents substantial challenges for software analysis, maintenance, and security detection.
Currently, LB-BCSD methods are primarily used to assess the similarity of the same function under different compilation options. However, this study reveals that when the LB-BCSD model encounters functions with identical functionality but different implementations, its identification accuracy decreases by $13\%$ compared to identifying versions of the same function compiled under dif
ferent options (O2 and O3). This finding highlights the limitations of existing LB-BCSD methods in handling diverse code implementations.
To improve the model's capability in recognizing such function variants, an intuitive solution is to retrain the model using a large number of function samples with the same functionality but different implementations. However, implementing this strategy faces several challenges. The primary challenge is collecting a sufficient number of function samples with the same functionality but different implementations. Although online coding platforms like LeetCode offer many implementations of functions with the same functionality, these are mainly concentrated on specific coding problems and do not fully reflect the diversity of real-world programs. For more extensive real-world programs, collecting samples with the same functionality but significantly different implementations is extremely difficult. When implementing the same function, each programmer may choose different algorithms, data structures, or coding techniques based on specific requirements and their own experience, leading to a myriad of implementation methods. Theoretically, the different implementation methods for a function are infinite. Another important consideration is that not all different implementations will interfere with the LB-BCSD model's identification. Therefore, it is crucial to explore which subtle code variations mislead the model, as this has significant practical implications.
To address the above issues, this study proposes a gradient-guided white-box attack method based on critical code, called FuncFollower. This method generates multiple variants of the same function by designing perturbation strategies for the control flow, data flow, and internal nodes of executable files, such as altering control flow structures. Additionally, this study transforms the generation process of adversarial examples into an optimization problem and uses gradient algorithms to select critical nodes in the executable file's control flow graph for perturbation. Experimental results show that FuncFollower can improve the SOTA LB-BCSD model's accuracy by $5\% -7\%$ , demonstrating the effectiveness of this method in enhancing model robustness.
The main contributions of this paper are as follows:
- This study finds that the existing LB-BCSD method overly focuses on the accuracy of
functions with the same functionality and implementation method, while neglecting the accuracy of functions with the same functionality but different implementation methods. When the LB-BCSD model handles functions that have the same functionality but different implementation methods, its recognition accuracy decreases by $13\%$ compared to recognizing different versions of the same function under different compilation options (O2 and O3).
- We thoroughly explore the limitations of FGSM in the field of important code identification in binary programs, pointing out that it cannot be directly applied to this scenario. To overcome this issue, we innovatively propose an important code identification method based on dominator nodes, which generates multiple variants of the same function by perturbing the important code.
- This study retrans the model using adversarial samples generated by FuncFooler, and experimental results indicate that FuncFooler can improve the accuracy of the SOTA LB-BCSD model by $5\% - 7\%$ , demonstrating its effectiveness in enhancing model robustness.
# 2 Related Work
Researchers have explored the field of white-box adversarial attacks and pointed out issues with adversarial samples in LB-BCSD methods. Early studies (Al-Dujaili et al., 2018; Verwer et al., 2020) drew inspiration from attack methods such as FGSM in the image domain, using gradients to locate and modify critical bytes in executable files to construct adversarial samples. However, these methods have not been very effective when applied to binary programs. The reason lies in the highly structured nature of binary programs, which are extremely sensitive to minor modifications. The ELF file includes complex structures such as executable file header tables, data section information, code section information, etc. Any arbitrary modification of these bytes can disrupt the integrity of the executable file's functionality.
To generate adversarial samples without compromising the functionality of executable files, researchers (Kolosnjaji et al., 2018; Demetrio et al., 2021) have started modifying non-functional areas in the executable file that are not loaded into memory, such as appending invalid bytes at the end of
the executable file or adding new sections in the sections that are not loaded. However, these perturbations do not affect the program's execution logic or code regions significantly, thus failing to meet the requirement of generating multiple code variants for the same function.
# 3 Challenges
In the field of image processing, white-box adversarial attacks induce misclassification in image recognition systems by making imperceptible adjustments to the image. The core challenge lies in creating adversarial samples that cause model misjudgments while ensuring the samples remain visually indistinguishable to humans. Methods like FGSM in image processing calculate gradients of the model's loss function with respect to the input, take their sign, multiply by a small step size (perturbation magnitude), and add this perturbation to the original input to generate adversarial samples. FGSM uses gradient information to pinpoint critical pixels that are most likely to affect the model's accuracy.
In contrast, this study perturbs binary functions, posing unique challenges compared to image-based approaches:
Challenge 1: Identifying critical code in functions. In the LB-BCSD domain, a similar white-box attack strategy can theoretically be employed, utilizing gradient information to identify critical code and perturb it to generate adversarial samples. However, to enhance the accuracy of LB-BCSD methods, approaches such as Asm2Vec and JTrans encode the control flow information of functions into vector embeddings. The Asm2Vec method, for instance, adopts the concept of random walks, starting from the entry point of a function and randomly sampling edges in the control flow graph. For each sampled edge, the corresponding assembly code is concatenated to construct a new instruction sequence. This random walk strategy simulates the actual execution flow of the program. By performing multiple random walk operations, it covers as many edges in the control flow graph as possible, thereby revealing and expressing the semantic features of the function more comprehensively.
However, random walk makes gradient information inconsistent, making it challenging to identify and perturb the critical code effectively. Every random walk randomly samples a subgraph from the control flow graph, resulting in unique instruction
sequences per walk. This means that if a specific subgraph is selected for perturbation and subsequently attacked using an adversarial sample, the model might embark on a new random walk, which may not resample the previously perturbed node, hence failing to achieve an attack. Therefore, to resolve the instability caused by random walk, a corresponding strategy must be developed to ensure an effective implementation of the attack.
Challenge 2: Designing the perturbation method. In image processing, adversarial samples can be generated by directly adjusting the values of critical pixels and limiting the perturbation magnitude to ensure the adversarial samples look similar to the original image. However, in the domain of binary code, it is crucial to ensure the functionality of the code remains intact. Directly modifying byte values of instructions can potentially destroy the functionality of the code. Therefore, the design of the perturbation method must ensure that the original function's functionality is not adversely affected.
# 4 Design
The workflow of FuncFooler is illustrated in Figure 1. At the top of the process, the training phase of the model is shown, which includes initial training and fine-tuning on the training dataset, followed by evaluation of the model's accuracy on the test dataset.
 Figure 1: Workflow of FuncFooler
FuncFooler takes the training set as input with the goal of generating multiple variants of the original samples and enhancing the robustness of the model through fine-tuning. Specifically, FuncFooler first identifies dominating nodes in the original samples and uses gradient information to determine critical dominating nodes. Then, it evaluates
different perturbation methods and selects the most effective method to perturb the original samples. If the perturbed sample can cause the target model to make incorrect judgments, it is considered an effective adversarial sample and is added to the training set to augment it. Finally, the model is retrained using the augmented training set to improve its robustness and generalization ability.
# 4.1 Node Gradient Calculation Method
The LB-BCSD method employs random walks to sample nodes in the function's control flow graph. Each random walk generates a sequence of instructions that represent the execution flow of the function. This random walk strategy aims to simulate the actual execution process of the program. By conducting multiple random walks, the LB-BCSD method can cover the majority of edges in the control flow graph, thereby revealing and expressing the function's semantics more comprehensively.
However, the inherent uncertainty in the results of random walks can lead to instability in the generated adversarial samples. To address this issue, we first calculate the dominator nodes in the function. Dominator nodes are those that are guaranteed to be executed in any path from the function's entry to its exit. Therefore, perturbing these dominator nodes ensures that the perturbations will be sampled during the random walks. In the control flow graph of the function, certain dominator nodes will be accessed in any execution path from entry to exit, resulting in a $100\%$ access probability for these nodes.
Algorithm 1: Node Gradient Calculation Input: $G$ is the model to be attacked, $f = [I_1,I_2,\dots ,I_M]$ is a function $f$ composed of instructions Output: Gradients of nodes in function $f$ 1 DN $\leftarrow$ Compute dominant nodes in function $f$ using the algorithm 2 $v\gets$ Embedding $(G,f)$ 3 $g_{f}\gets \frac{\partial L(f)}{\partial v}$ ## Compute gradients of each instruction in function $f$ 4 grads $= []$ 5 foreach node in CFG(f) do 6 grad(node) $=$ sum of gradients of instructions in node 7 grads.append(grad(node)) 8 return grads
This process is described by Algorithm 1. The algorithm takes as input the LB-BCSD model $G$ to be attacked and a function $f = [I_1, I_2, \dots, I_M]$ composed of M instructions. First, the algorithm identifies and extracts all dominant nodes in function $f$ . Next, it uses model $G$ to encode function $f$ , obtaining its embedding representation $v$ . Then, it computes the gradients of each instruction in function $f$ with respect to the loss function of model $G$ through backpropagation. Finally, the algorithm sums the gradients of all instructions within each node in the control flow graph of function $f$ to obtain the total gradient value for each node.
# 4.2 Disturbance Method Design
To address the challenges outlined in Section 3, this paper proposes a targeted comprehensive perturbation method. By fine-tuning the control flow, data flow, and internal nodes of functions, this approach effectively generates multiple code variants.
# 4.2.1 Control Flow Disturbance
Control flow disturbance is a method aimed at perturbing the program's control flow paths and structure, thereby increasing the complexity and analysis difficulty of the program. We designs five control flow disturbance methods: edge hiding, code cloning, loop fabrication, termination node transformation, and function entry point obfuscation.
Edge Hiding: In order to hinder the LB-BCSD method from accurately capturing the real execution flow of programs, we proposes a new perturbation method — edge concealment perturbation. As shown in Figure 2(a), this method changes direct jumps between basic blocks to indirect jumps, preventing the LB-BCSD method from statically analyzing the jump targets, effectively "eliminating" edges in the control flow graph.
Code Cloning: To increase the complexity of the function control flow graph, we proposes a code cloning technique. As shown in Figure 2(b), this technique involves cloning existing code and causing the control flow to alternate between the original and the clone.
Loop Forgery: Loops are important structures in programs, typically used for processing core data or implementing core logic. In a control flow graph, a loop is represented as a closed loop of nodes and edges, which represents the looping execution path in the program. Given that many binary code similarity detection methods rely on loops to assess the similarity between two functions, as shown in
Figure 2(c), we introduces loop forging techniques aimed at disrupting the accuracy of the LB-BCSD method by forging loops.
Termination Node Transformation: Termination nodes are the exits of functions, representing the end points of functions and are important features on the control flow graph. As shown in Figure 2(d), we proposes a termination node transformation technique, which can convert ordinary nodes in a function into termination nodes, thereby affecting the accuracy of the LB-BCSD method.
Function Entry Point Obfuscation: Unlike edge hiding perturbation, function entry hiding conceals the actual entry point of a function within a meticulously designed complex control flow. As shown in Figure 2(e), the purpose of this method is to make it difficult for the LB-BCSD method to locate the true starting point of the function, thereby preventing accurate tracking of the function's execution flow.
# 4.2.2 Data Flow Perturbation
To perturb the data flow of functions, we proposes a constant expansion technique. As shown in Figure 2(f), this technique converts a simple constant expression into a series of complex calculations to increase the complexity of the function's data flow.
# 4.2.3 Intra-Node Perturbation Design
In addition to perturbing the number of nodes and edges in the control flow graph and data flow graph of executable files, we also delves into intra-node perturbation methods. These methods further increase the complexity of analysis by hiding function calls within the code and adding ways to invoke functions in the code.
Function Call Hiding: A function call is the process of one function calling another to accomplish a specific task. Since many binary code similarity detection methods rely on function calls to assess the similarity between different codes, we introduce a function call hiding technique. As shown in Figure 3(a), this technique aims to disrupt the accuracy of the LB-BCSD method by replacing direct function calls with indirect calls.
Function Call Expansion: Since function calls are a key feature in the control flow graph, this paper designs a function call augmentation technique to increase the number of function calls in the code. As shown in Figure 3(b), this technique increases the function call count by extracting instructions from the code and encapsulating them into new

 (a) Edge hiding
 (b) Code cloning
 (c) Loop fabrication
 (d) Termination node transformation
 (e) Function entry hiding (f) Constant expansion Figure 2: Design diagram of perturbation methods at the control flow and data flow levels

 (a) Function call hiding (b) Function call expansion Figure 3: Illustration of disturbance strategy design inside the node
functions.
# 4.3 Adversarial Example Generation
Algorithm 2 details how to generate adversarial examples in a white-box setting. The input to the algorithm is a function $f = [I_1, I_2, \dots, I_M]$ . The algorithm perturbs the function $f$ and outputs the adversarial example $\hat{f}$ . Additionally, this algorithm can be applied to attack binary executables by processing each function in the binary file one by one using Algorithm 2.
The algorithm starts by using the node gradient computation algorithm to calculate the gradient value for each dominating node. Next, this paper selects the top N nodes with the largest gradients, which are considered important nodes. This strategy aims to efficiently generate adversarial samples by minimizing the number of necessary perturbations. Although perturbing dominator nodes beyond the top N can also yield adversarial samples, it typically requires more perturbations. Subsequently, control flow, data flow, and intranode perturbations are applied to these important nodes. When choosing specific perturbation methods, FuncFollower tries each perturbation method and selects the one that causes the greatest reduction in similarity as the final perturbation strategy for the ith important node in the sample. This process iterates until $\hat{f}$ is no longer similar to the original
function $f$ , or until the preset maximum number of perturbations $N$ is reached (in practice, $N$ is set to 10). To measure the similarity between two functions, in line with the approach in the literature (Sato et al., 2018), we uses top-10 accuracy as the criterion. This criterion focuses on whether, when $\hat{f}$ is used as input, the correct answer (i.e., the original function $f$ ) appears within the top 10 scoring options among all prediction results. We designs five control flow perturbation methods, one data flow perturbation method, and two intra-node perturbation methods. Each perturbation method increases the complexity of the executable file to some extent. These perturbation methods can be used collaboratively and repeatedly, thus constructing a large search space of $(5 \times 1 \times 2)^i$ , where $i$ represents the number of iterations.
# Algorithm 2: Adversarial Example Generation Algorithm
Input : $f = \left\lbrack {{I}_{1},{I}_{2},\ldots ,{I}_{M}}\right\rbrack$ ,Function $f$ consisting of instructions
Output:Adversarial example $\hat{f}$
1.1 grads $\leftarrow$ Compute gradients of dominating nodes using the node gradient computation algorithm 2 Sort dominating nodes in the control flow by gradient and select the top $N$ nodes as important nodes
3 $\hat{f}\gets f$
4 $i\gets 0$
5 while $i < N$ do
6 $t\gets$ Compute the effect of each perturbation method and assign the method that causes the greatest reduction in similarity to t 7 $\hat{f}\gets$ Transform $(\hat{f},t,i)$ ## Perturb the ith important node in $\hat{f}$ 8 $i\gets i + 1$ 9 if Similar $(f,\hat{f}) = =$ False then 10 return 11 return None
# 5 Experimental Evaluation
The experimental evaluation in this paper primarily revolves around the following core research questions:
- RQ1: Does the implementation of functions with the same functionality but different ap
proaches affect the accuracy of the LB-BCSD model?
- RQ2: Can adversarial examples generated by FuncFooler enhance the robustness of the LB-BCSD model?
# 5.1 Experimental Setup
# 5.1.1 Baseline Models and Evaluation Metric
We selects three LB-BCSD models as baseline models: a) Safe (Massarelli et al., 2019), which uses an RNN structure with a self-attention mechanism to generate semantic embeddings for functions; b) Asm2Vec (Ding et al., 2019), which uses the PV-DM model combined with control flow information of executable files to generate semantic embeddings for functions; c) JTrans (Wang et al., 2022) encodes control flow information into a Transformer to generate semantic embeddings for functions, with JTrans being the SOTA approach. For each model, we use the authors' provided models and fine-tunes them on the public dataset BinaryCorp-3M (Wang et al., 2022) to better suit the needs of binary code similarity detection tasks. The BinaryCorp-3M dataset covers approximately 3 million binary functions. During finetuning, the default hyperparameters of the models are used to fine-tune both the original models and the FuncFooler-enhanced models. In the experimental evaluation process, we used top-10 accuracy as the primary evaluation metric. This metric focuses on whether the correct answer appears within the top 10 ranked predictions.
# 5.1.2 Test Datasets
We construct two test datasets to comprehensively evaluate the model's accuracy in binary code similarity detection. Dataset I contains functions that have the same functionality but different implementations. In creating this dataset, 400 programs were selected from LeetCode and GitHub, with 10 different implementations collected for each program. When choosing these different implementations, performance scores from online programming platforms like LeetCode were referenced to ensure diversity in the selected solutions. The primary objective of this dataset is to assess the model's accuracy when handling functions with identical functionality but varying implementations. Dataset II is derived from six real-world projects, including Curl, Coreutils, Binutils, SQLite, OpenSSL, and Putty. This dataset aims to evaluate the enhancement effect of FuncFooer on the model's accuracy
with real programs. Given that O0 completely disables compiler optimizations, while O1 enables basic optimizations such as dead code elimination and simple loop optimizations, the code differences between O0 and O1 are significant. Therefore, this paper employs the lvm-10 compiler with O2 and O3 optimization options to compile the programs in both datasets. This design aims to test the model's accuracy in recognizing functions optimized to varying degrees, striving to minimize the discriminative differences caused by compilation optimizations.
# 5.2 Impact of Functionally Equivalent but Differently Implemented Functions on Model Accuracy
In this experiment, we evaluate the impact of different implementations of the same function on the accuracy of the LB-BCSD model. The experiment is conducted in two steps: first, we assess the accuracy of the LB-BCSD model in recognizing the same function compiled with different options (O2 and O3). In this step, only functions compiled with the O3 option are considered as correct answers. Secondly, we evaluate the model's accuracy in recognizing functions with the same functionality but different implementations. In this step, the other 9 implementations of the function are considered correct answers, and the model's average accuracy for these 9 implementations is calculated as accuracy indicator. By comparing the accuracy differences between the O2 and O3 compilation options and the average accuracy for functionally equivalent but differently implemented functions, we can quantify the impact of different implementations on the robustness of the LB-BCSD model.
Table 1: The impact of functionally equivalent but differently implemented functions on model accuracy. Here, DCO refers to the accuracy of the model for the same function with different compilation options, while DI refers to the accuracy of the model for different implementation functions with the same functionality.
<table><tr><td></td><td>Asm2Vec</td><td>SAFE</td><td>JTrans</td></tr><tr><td>DCO</td><td>0.76</td><td>0.72</td><td>0.81</td></tr><tr><td>DI</td><td>0.64</td><td>0.6</td><td>0.65</td></tr></table>
For this study, we use Dataset I and randomly select 50 programs from it. Since each program contains 10 different implementations, a test pool of 500 functions is constructed. We follow the experimental design consistent with existing stud
Table 2: This table illustrates the impact of FuncFloater on model accuracy. "Ori." represents the original accuracy of the models, while "FF" denotes the accuracy after fine-tuning the models with adversarial examples generated by FuncFloater. "Impr." indicates the difference between the fine-tuned accuracy and the original accuracy.
<table><tr><td rowspan="2">Program</td><td colspan="3">Asm2Vec</td><td colspan="3">SAFE</td><td colspan="3">JTrans</td></tr><tr><td>Ori.</td><td>FF</td><td>impr.</td><td>Ori.</td><td>FF</td><td>impr.</td><td>Ori.</td><td>FF</td><td>impr.</td></tr><tr><td>Curl</td><td>0.78</td><td>0.81</td><td>0.03</td><td>0.75</td><td>0.76</td><td>0.01</td><td>0.79</td><td>0.83</td><td>0.04</td></tr><tr><td>Binutils</td><td>0.75</td><td>0.78</td><td>0.03</td><td>0.73</td><td>0.75</td><td>0.02</td><td>0.77</td><td>0.8</td><td>0.03</td></tr><tr><td>Coreutils</td><td>0.81</td><td>0.82</td><td>0.01</td><td>0.78</td><td>0.79</td><td>0.01</td><td>0.8</td><td>0.86</td><td>0.06</td></tr><tr><td>SQLite</td><td>0.71</td><td>0.77</td><td>0.06</td><td>0.68</td><td>0.7</td><td>0.02</td><td>0.76</td><td>0.84</td><td>0.08</td></tr><tr><td>OpenSSL</td><td>0.74</td><td>0.78</td><td>0.04</td><td>0.76</td><td>0.77</td><td>0.01</td><td>0.79</td><td>0.85</td><td>0.06</td></tr><tr><td>Putty</td><td>0.78</td><td>0.81</td><td>0.03</td><td>0.77</td><td>0.78</td><td>0.01</td><td>0.8</td><td>0.84</td><td>0.04</td></tr><tr><td>Average</td><td>0.76</td><td>0.79</td><td>0.03</td><td>0.75</td><td>0.77</td><td>0.01</td><td>0.79</td><td>0.83</td><td>0.05</td></tr><tr><td>Dataset I</td><td>0.64</td><td>0.7</td><td>0.06</td><td>0.6</td><td>0.63</td><td>0.03</td><td>0.65</td><td>0.72</td><td>0.07</td></tr></table>
ies (Hu et al., 2018; Marcelli et al., 2022; Wang and Wu, 2017; Xu et al., 2023) to ensure comparability and consistency. During the experiment, each function in the dataset is compiled with the O2 option, and the search matches are conducted within a test pool of 500 functions generated by the O3 option.
The experimental results are shown in Table 1. As can be seen, the LB-BCSD models exhibit high accuracy in recognizing different versions of the same function generated by the same functionality but different compilation options (O2 and O3), with an average accuracy of $76\%$ . However, when recognizing functions with the same functionality but different implementations, the models' average accuracy drops to $63\%$ , a decrease of $13\%$ compared to recognizing the same function. It is noteworthy that although these functionally equivalent functions were also obtained through O2 and O3 compilation options, the implementation differences by different programmers lead to a decrease in the accuracy of the LB-BCSD models during recognition.
# 5.3 Effectiveness of FuncFooler in Improving Model Accuracy
In this experiment, we evaluate the effectiveness of FuncFollower in improving model accuracy. For each function in the original training set BinaryCorp-3M, adversarial examples are generated using FuncFollower, and these samples are used to fine-tune the models. To ensure comprehensive and accurate evaluation, we use two datasets for testing. Dataset I focuses on evaluating the accuracy of the models for functionally equivalent but differently implemented functions. Dataset II is derived from six real-world projects, focusing on evaluating the
models' accuracy for functions in real applications. Other settings in this experiment are the same as those in Section 5.2.
The experimental results are shown in Table 2. In this table, "Ori." represents the original accuracy of the model. "FF" indicates the accuracy after fine-tuning the model with adversarial samples generated by FuncFooler. "Impr." denotes the difference between the fine-tuned accuracy and the original accuracy. From the data in the table, it can be seen that for the JTrans model, by applying the method proposed in this paper, we successfully achieved accuracy improvements of $5\%$ and $7\%$ on two different datasets, demonstrating the effectiveness and potential of our approach. In contrast, the accuracy improvements on the SAFE and Asm2Vec models were relatively limited. This is primarily due to the relatively simple structure of these two models, which may have limitations in capturing subtle changes in the code, making it difficult to significantly enhance their accuracy.
# 6 Conclusion
To improve the model's ability to recognize function variants, we designed FuncFloater to generate multiple variants of a function and then use these code variants to retrain the model to enhance its robustness. When given a function, FuncFloater first uses gradient information to determine the importance of each node in its control flow graph. Subsequently, specific control flow, data flow, and intra-node perturbations are applied to these key nodes to generate adversarial samples. Experimental results show that FuncFloater can improve the accuracy of SOTA LB-BCSD models by $5\% -7\%$ .
# 7 Limitation
In our study, we are committed to enhancing the robustness of the LB-BCSD model. To achieve this goal, we generate multiple variants of the same function and fine-tune the model with these variants in order to improve its generalization capabilities. Specifically, we create multiple variants of the same function through control flow, data flow, and perturbations within nodes.
However, our method has its limitations. Although we can generate functionally equivalent variants for a given function, we are unable to generate variants that have the same functionality but drastically different implementation logic. Programmers may use different algorithms or logical structures to implement the same functionality. This diversity is not fully reflected in our method. When faced with functions that have the same functionality but different implementations, the accuracy of the LB-BCSD model decreases by $13\%$ . In contrast, using variants generated by FuncFooer only improves the SOTA model's accuracy by $5\%$ to $7\%$ . This finding highlights an important direction for future research: exploring how to generate functionally identical but logically distinct function variants.
In terms of experimental design, we also encountered challenges. Due to the lack of programs with various different implementations in real-world environments, we constructed a test dataset using different solutions to the same problem from programming websites. Currently, the LB-BCSD method primarily focuses on evaluating the similarity of the same function under different compilation options, and existing datasets are mainly built on this basis, lacking datasets that reflect different implementations of the same functionality. Therefore, in future work, we aim to collect and analyze different implementations of real programs to more accurately assess the impact of FuncFollower on improving the accuracy of the LB-BCSD model. This will help us to more comprehensively understand the model's performance and provide stronger support for its deployment in practical applications.
# 8 Ethics Statement
Our work focuses on enhancing the robustness of the LB-BCSD model. To achieve this goal, our approach generates multiple variants of the same function and fine-tunes the model using these variants to improve its generalization capability. This experi
iment was conducted on a high-performance server with the following configuration: an Intel Xeon Gold 6132 CPU (2.60 GHz), 256 GB of memory, eight Tesla V100 GPUs, and running the Ubuntu 18.04 operating system.
# References
Abdullah Al-Dujaili, Alex Huang, Erik Hemberg, and Una-May O'Reilly. 2018. Adversarial deep learning for robust detection of binary encoded malware. In 2018 IEEE Security and Privacy Workshops (SPW), pages 76-82. Silvio Cesare, Yang Xiang, and Wanlei Zhou. 2013. Control flow-based malware variantdetection. IEEE Transactions on Dependable and Secure Computing, 11(4):307-317. Mahinthan Chandramohan, Yinxing Xue, Zhengzi Xu, Yang Liu, Chia Yuan Cho, and Hee Beng Kuan Tan. 2016. Bingo: Cross-architecture cross-os binary search. In Proceedings of the 2016 24th ACM SIG-SOFT International Symposium on Foundations of Software Engineering, pages 678-689. Yaniv David, Nimrod Partush, and Eran Yahav. 2016. Statistical similarity of binaries. *Acm Sigplan Notices*, 51(6):266-280. Yaniv David and Eran Yahav. 2014. Tracelet-based code search in executables. Acm Sigplan Notices, 49(6):349-360. Luca Demetrio, Battista Biggio, Giovanni Lagoon, Fabio Roli, and Alessandro Armando. 2021. Functionality-preserving black-box optimization of adversarial windows malware. IEEE Transactions on Information Forensics and Security, 16:3469-3478. Steven HH Ding, Benjamin CM Fung, and Philippe Charland. 2019. Asm2vec: Boosting static representation robustness for binary clone search against code obfuscation and compiler optimization. In 2019 IEEE Symposium on Security and Privacy (SP), pages 472-489. Yikun Hu, Yuanyuan Zhang, Juanru Li, and Dawu Gu. 2016. Cross-architecture binary semantics understanding via similar code comparison. In 2016 IEEE 23rd International Conference on Software Analysis, Evolution, and Reengineering (SANER), pages 57-67. Yikun Hu, Yuanyuan Zhang, Juanru Li, Hui Wang, Bodong Li, and Dawu Gu. 2018. Binmatch: A semantics-based hybrid approach on binary code clone analysis. In 2018 IEEE international conference on software maintenance and evolution (IC-SME), pages 104-114. IEEE. Lichen Jia, Chenggang Wu, Peihua Zhang, and Zhe Wang. 2024. Codeextract: Enhancing binary code similarity detection with code extraction techniques.
In Proceedings of the 25th ACM SIGPLAN/SIGBED International Conference on Languages, Compilers, and Tools for Embedded Systems, pages 143-154. Lichen Jia, Yang Yang, Jiansong Li, Hao Ding, Jiajun Li, Ting Yuan, Lei Liu, and Zihan Jiang. 2023a. Mtmg: A framework for generating adversarial examples targeting multiple learning-based malware detection systems. In Pacific Rim International Conference on Artificial Intelligence, pages 249-261. Springer. Lichen Jia, Yang Yang, Bowen Tang, and Zihan Jiang. 2023b. Ermds: A obfuscation dataset for evaluating robustness of learning-based malware detection system. BenchCouncil Transactions on Benchmarks, Standards and Evaluations, 3(1):100106. Bojan Kolosnjaji, Ambra Demontis, Battista Biggio, Davide Maiorca, Giorgio Giacinto, Claudia Eckert, and Fabio Roli. 2018. Adversarial malware binaries: Evading deep learning for malware detection in executables. In 2018 26th European signal processing conference (EUSIPCO), pages 533-537. Keane Lucas, Mahmood Sharif, Lujo Bauer, Michael K Reiter, and Saurabh Shintre. 2021. Malware makeover: Breaking ml-based static analysis by modifying executable bytes. In Proceedings of the 2021 ACM Asia Conference on Computer and Communications Security, pages 744-758. Lannan Luo, Jiang Ming, Dinghao Wu, Peng Liu, and Sencun Zhu. 2017. Semantics-based obfuscation-resilient binary code similarity comparison with applications to software and algorithm plagiarism detection. IEEE Transactions on Software Engineering, 43(12):1157-1177. Andrea Marcelli, Mariano Graziano, Xabier Ugarte-Pedrero, Yanick Fratantonio, Mohamad Mansouri, and Davide Balzarotti. 2022. How machine learning is solving the binary function similarity problem. In 31st USENIX Security Symposium (USENIX Security 22), pages 2099-2116. Ehsan Mashhadi and Hadi Hemmati. 2021. Applying codebert for automated program repair of java simple bugs. In 2021 IEEE/ACM 18th International Conference on Mining Software Repositories (MSR), pages 505-509. Luca Massarelli, Giuseppe Antonio Di Luna, Fabio Petroni, Roberto Baldoni, and Leonardo Querzoni. 2019. Safe: Self-attentive function embeddings for binary similarity. In International Conference on Detection of Intrusions and Malware, and Vulnerability Assessment, pages 309-329. Jiang Ming, Dongpeng Xu, and Dinghao Wu. 2015. Memoized semantics-based binary diffing with application to malware lineage inference. In IFIP International Information Security and Privacy Conference, pages 416-430.
Jannik Pewny, Felix Schuster, Lukas Bernhard, Thorsten Holz, and Christian Rossow. 2014. Leveraging semantic signatures for bug search in binary programs. In Proceedings of the 30th Annual Computer Security Applications Conference, pages 406-415. Hitesh Sajnani, Vaibhav Saini, Jeffrey Svajlenko, Chanchal K Roy, and Cristina V Lopes. 2016. Sourcerercc: Scaling code clone detection to big-code. In Proceedings of the 38th international conference on software engineering, pages 1157-1168. Motoki Sato, Jun Suzuki, Hiroyuki Shindo, and Yuji Matsumoto. 2018. Interpretable adversarial perturbation in input embedding space for text. arXiv preprint arXiv:1805.02917. Sicco Verwer, Azqa Nadeem, Christian Hammerschmidt, Laurens Bliek, Abdullah Al-Dujaili, and Una-May O'Reilly. 2020. The robust malware detection challenge and greedy random accelerated multi-bit search. In Proceedings of the 13th ACM Workshop on Artificial Intelligence and Security, pages 61-70. Andrew Walker, Tomas Cerny, and Eungee Song. 2020. Open-source tools and benchmarks for code-clone detection: past, present, and future trends. ACM SIGAPP Applied Computing Review, 19(4):28-39. Hao Wang, Wenjie Qu, Gilad Katz, Wenyu Zhu, Zeyu Gao, Han Qiu, Jianwei Zhuge, and Chao Zhang. 2022. jtrans: jump-aware transformer for binary code similarity detection. In Proceedings of the 31st ACM SIGSOFT International Symposium on Software Testing and Analysis, pages 1-13. Shuai Wang and Dinghao Wu. 2017. In-memory fuzzing for binary code similarity analysis. In 2017 32nd IEEE/ACM International Conference on Automated Software Engineering (ASE), pages 319-330. Xiangzhe Xu, Shiwei Feng, Yapeng Ye, Guangyu Shen, Zian Su, Siyuan Cheng, Guanhong Tao, Qingkai Shi, Zhuo Zhang, and Xiangyu Zhang. 2023. Improving binary code similarity transformer models by semantics-driven instruction deemphasis. In Proceedings of the 32nd ACM SIGSOFT International Symposium on Software Testing and Analysis, pages 1106-1118. Wei You, Zhuo Zhang, Yonghwi Kwon, Yousra Aafer, Fei Peng, Yu Shi, Carson Harmon, and Xiangyu Zhang. 2020. Pmp: Cost-effective forced execution with probabilistic memory pre-planning. In 2020 IEEE Symposium on Security and Privacy (SP), pages 1121-1138. Zeping Yu, Rui Cao, Qiyi Tang, Sen Nie, Junzhou Huang, and Shi Wu. 2020. Order matters: semantic-aware neural networks for binary code similarity detection. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 1145-1152. Peihua Zhang, Chenggang Wu, Mingfan Peng, Kai Zeng, Ding Yu, Yuanming Lai, Yan Kang, Wei Wang,
and Zhe Wang. 2023. Khaos: The impact of interprocedural code obfuscation on binary diffing techniques. In Proceedings of the 21st ACM/IEEE International Symposium on Code Generation and Optimization, pages 55-67.
Peihua Zhang, Chenggang Wu, and Zhe Wang. 2024. Bincodex: A comprehensive and multi-level dataset for evaluating binary code similarity detection techniques. BenchCouncil Transactions on Benchmarks, Standards and Evaluations, 4(2):100163.
# .1 Ablation Study
In this experiment, it is demonstrated that the model's accuracy is enhanced by FuncFollower rather than by the random walk strategy. For each function in the original training set, BinaryCorp-3M, the training set was expanded using both the random walk strategy and FuncFollower, followed by retraining the model. Dataset II was then used as a test set to evaluate the accuracy of both models, with the differences in accuracy relative to the original model reflecting the effectiveness of these two approaches.
Table 3: This table demonstrates that the accuracy of the model is improved by FuncFollower rather than the random walk strategy. Here, "Ori." represents the original accuracy of the models, while "FF" represents the accuracy after fine-tuning the models with adversarial examples generated by FuncFollower, and "RW" represents the accuracy after fine-tuning the models with adversarial examples generated by the random walk strategy.
<table><tr><td colspan="3">Asm2Vec</td><td colspan="3">SAFE</td><td colspan="3">JTrans</td></tr><tr><td>ori.</td><td>FF</td><td>RW</td><td>ori.</td><td>FF</td><td>RW</td><td>ori.</td><td>FF</td><td>RW</td></tr><tr><td>0.76</td><td>0.79</td><td>0.76</td><td>0.75</td><td>0.77</td><td>0.69</td><td>0.79</td><td>0.83</td><td>0.71</td></tr></table>
The experimental results are shown in Table 3. The results indicate that when the training set is expanded using the random walk strategy and the model is retrained, the accuracy of SAFE decreases by $6\%$ , the accuracy of Asm2Vec remains unchanged, and the accuracy of JTrans decreases by $8\%$ . This is because SAFE and JTrans encode the instructions within basic blocks and the control flow transfer relationships between them, while the random walk produces a sequence of instructions, disrupting the original model's design and potentially introducing noise that interferes with the learning process. In contrast, the Asm2Vec model is trained based on the concept of random walks, which is why its accuracy is unaffected in the ablation study. This suggests that the random walk strategy decreases model accuracy, while FuncFollower enhances it.
# .2 The Enhancement Effect of FuncFooer on Model Robustness
In this experiment, we investigate the enhancement effect of FuncFollower on model robustness. Specifically, adversarial samples generated by FuncFollower were used to conduct adversarial testing on both the original model and the fine-tuned optimized model. For each baseline model, function samples were carefully perturbed using FuncFollower, and the changes in accuracy of the LB-BCSD model on these samples were compared to evaluate the enhancement of model robustness by FuncFollower.
Table 4: This table demonstrates the enhancement effect of FuncFloater on model robustness. In this context, adversarial samples generated by FuncFloater are used to attack both the original model (labeled as Ori.) and the model retrained with FuncFloater, and their respective accuracy rates are provided.
<table><tr><td colspan="2">Asm2Vec</td><td colspan="2">SAFE</td><td colspan="2">JTrans</td></tr><tr><td>ori.</td><td>FF</td><td>ori.</td><td>FF</td><td>ori.</td><td>FF</td></tr><tr><td>0.03</td><td>0.25</td><td>0.03</td><td>0.22</td><td>0.04</td><td>0.26</td></tr></table>
The experimental results are shown in Table 4: for the original model, FuncFollower significantly reduces its accuracy, causing the average accuracy of the three models to drop below $4\%$ ; for the fine-tuned model, the attack effectiveness of FuncFollower is weakened, only lowering the average accuracy of the three models to below $26\%$ . This indicates that the fine-tuned model exhibits a robustness improvement of $22\%$ against FuncFollower attacks compared to the original model.123version https://git-lfs.github.com/spec/v1oid sha256:fe2138ab0837a4f4f88fcf6fcb270586fd07517f74bc188ad2249369f3287fe6size 303204123version https://git-lfs.github.com/spec/v1oid sha256:65eb5cc2e914f1e5df7061094f145037a9f2e4c4de0f23f0da520073b7347332size 901343123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488# Enhancing Multi-Label Text Classification under Label-Dependent Noise: A Label-Specific Denoising Framework
Pengyu Xu, Liping Jing*, Jian Yu
Beijing Key Lab of Traffic Data Analysis and Mining
Beijing Jiaotong University, Beijing, China
pengyu@bjtu.edu.cn
# Abstract
Recent advancements in noisy multi-label text classification have primarily relied on the class-conditional noise (CCN) assumption, which treats each label independently undergoing label flipping to generate noisy labels. However, in real-world scenarios, noisy labels often exhibit dependencies with true labels. In this study, we validate through hypothesis testing that real-world datasets are unlikely to adhere to the CCN assumption, indicating that label noise is dependent on the current labels. To address this, we introduce a label-specific denoising framework designed to counteract label-dependent noise. The framework initially presents a holistic selection metric that evaluates noisy labels by concurrently considering loss information, ranking information, and feature centroid. Subsequently, it identifies and corrects noisy labels individually for each label category in a fine-grained manner. Extensive experiments on benchmark datasets demonstrate the effectiveness of our method under both synthetic and real-world noise conditions, significantly improving performance over existing state-of-the-art models.
# 1 Introduction
Multi-label text classification (MLTC) aims to predict the most relevant labels for each text from a label set. In real applications, noise is inevitably present in the data of MLTC (Snow et al., 2008; Chen et al., 2023). It poses a significant challenge for machine learning models, particularly deep learning models (Frenay and Verleysen, 2014; Arazo et al., 2019). In noisy multi-label classification, most existing methods rely on the class-conditional noise (CCN) assumption (Li et al., 2022b; Xia et al., 2023; Xie and Huang, 2023; Song et al., 2024). This assumption posits that label noise originates from independent label flipping for each
 Figure 1: An illustration of noisy multi-label text classification.
category, with each category having a distinct flipping probability.
However, in practice, noisy labels often exhibit a certain degree of correlation with the true labels (Cui et al., 2020; Xie and Huang, 2022). As shown in Figure 1, due to category ambiguity, lack of expert knowledge, or the influence of attention shift (Wu et al., 2023), annotators are more likely to mis-label the current document as "Moon" or "Earth" instead of unrelated labels such as "Pytorch" or "Tensorflow".
In this paper, our first contribution (Section 2) is to propose a theoretical hypothesis test on the real-world dataset Riedel (Chen et al., 2023) to demonstrate that real-world multi-label noise is less likely to be CCN, and more likely to be label-dependent noise (LDN), where the occurrence of label noise depends on the positive labels associated with the current sample. To mitigate noisy multi-label text classification under LDN, our second contribution (Section 2) is to introduce for generating controllable LDN and analyze the characteristics of training under LDN. Our third contribution (Section 3) is the proposal of a Label-Specific Denoising (LeD) framework to address LDN. LeD initially introduces a holistic selection metric (HSM), incor
poring ranking-enhanced loss (REL) and centroid distance (CD) to assess labels from both output and feature perspectives. Following this, LeD employs the HSM to conduct label-specific noise identification and correction for each label category. The superior performance of LeD is verified in extensive experiments, under LDN with varying noise fractions, including on real-world benchmarks.
# 2 From CCN to LDN
In this section, we introduce the problem setting of noisy multi-label classification from traditional class-conditional noise (CCN) assumption to our proposed label-dependent noise (LDN) assumption. In what follows, sets are in calligraphic letters (e.g., $\mathcal{A}$ ), matrices are in capital bold letters(e.g., $\mathbf{A}$ ), vectors are in lower-case bold letters (e.g., a), and scalars are in capital or lower-case letters (e.g. $A$ , $a$ ). For simplicity, let $[L] = \{1,\dots,L\}$ . Additionally, proofs of theorems can be found in Appendix A.1.
# 2.1 Preliminaries
Considering a multi-label classification problem, the input of training stage includes $N$ instances $\mathcal{D} = \{(\mathbf{x}_i,\mathbf{y}_i)\}_{i = 1}^N$ , each of which consists of an input vector $\mathbf{x}_i$ and output labels $\mathbf{y}_i = (Y_{i,1},Y_{i,2},\dots,Y_{i,L})\in \{0,1\} ^L$ related to the input. Here $L$ is the total number of candidate labels. In real-world scenarios, it is often not possible to directly observe the true labels $\mathbf{y}$ . Instead, we have an observable distribution of noisy labels $\tilde{\mathbf{y}}$ and a noisy training set $\tilde{\mathcal{D}} = \{(\mathbf{x}_i,\tilde{\mathbf{y}}_i)\}_{i = 1}^N$ . In noisy multi-label classification, our goal is to predict proper labels for each unseen instance by only using the noisy training set.
# 2.2 Class-Conditional Noise Assumption
The class-conditional noise assumption is commonly used in previous works (Chen et al., 2019; Li et al., 2022b; Xie and Huang, 2023; Chen et al., 2023) on noisy multi-label classification.
Definition 1. (Noise transition matrix) In multilabel classification, the random variables $\tilde{Y}_{\cdot,j}$ and $Y_{\cdot,j}$ for the label $j$ are related through a noise transition matrix $\mathbf{T}^j \in [0,1]^{2*2}, j \in [L]$ . Generally, the transition matrix depends on instances (feature $\mathbf{x}$ and labels $\mathbf{y}$ ), i.e., $\mathbf{T}_{k,l}^j(\mathbf{x},\mathbf{y}) = P(\tilde{Y}_j = k|Y_j = l,\mathbf{x},\mathbf{y})$ , where $k$ and $l \in \{0,1\}$ .
Definition 2. (Class-conditional noise) Under the class-conditional assumption, the transition
matrix is assumed class-conditional and instance-independent, i.e., $\mathbf{T}_{k,l}^{j}(\mathbf{x},\mathbf{y}) = \mathbf{T}_{k,l}^{j} = P(\tilde{Y}_{j} = k|Y_{j} = l)$ .
As illustrated in Figure 1, in the context of noisy multi-label learning, there exist two types of noise: false positives and false negatives. Among them, false positives often exhibit a strong label correlation with the ground truth $\mathbf{y}$ . Therefore, we argue that real-world multi-label noise should at least be label-dependent, i.e., $\mathbf{T}_{k,l}^{j}(\mathbf{y}) = P(\tilde{Y}_{j} = k|Y_{j} = l,\mathbf{y})$ . To underscore the importance of moving beyond the CCN assumption, which pertains to label-independent noise (LIN), we theoretically validate its significance through hypothesis testing.
Definition 3. (Label flip) Given the noisy dataset $\tilde{\mathcal{D}}$ , consider randomly sampling a validation set $\tilde{\mathcal{D}}' = \{(x_i, \tilde{y}_i)\}_{i=1}^n$ , and assume we also know the clean labels $\{y_i\}_{i=1}^n$ corresponding to the validation set. We define the random variable $Z_j = \{\tilde{Y}_j | Y_j = 0\}$ , where $Z_j$ represents the event that the $j^{th}$ class of the current sample flip from a negative label to a positive label. Here, $Z_j \in \{0,1\}$ , with a flip probability of $\mathbf{T}_{1,0}^j(\mathbf{x}, \mathbf{y})$ .
Theorem 1. If CCN assumption holds, then for $\forall j_0,j_1\in [L]$ , random variables $Z_{j_0}$ and $Z_{j_1}$ are independent.
Next, we verify the independence of $Z_{j_0}$ and $Z_{j_1}$ through hypothesis testing. The null hypothesis $H_0$ and the corresponding alternative hypothesis $H_1$ are defined as follows:
$$\mathbf {H} _ {\mathbf {0}}: Z _ {j _ {0}}, Z _ {j _ {1}} \text {a r e i n d e p e n d e n t};$$
$$\mathbf {H} _ {1}: Z _ {j _ {0}}, Z _ {j _ {1}} \text {a r e d e p e n d e n t}.$$
By applying the chi-square test to the real-world noisy multi-label benchmark Riedel (Chen et al., 2019, 2023), the hypothesis testing results show that $\chi^2 = 940.5$ with a p-value of $1.5e^{-206}$ , indicating that the result is highly statistically significant. Thus, the null hypothesis $\mathbf{H}_0$ is rejected with the significance value. Hypothesis “ $\mathbf{H}_1: Z_{j_0}, Z_{j_1}$ are dependent.” is accepted. Therefore, based on Theorem 1, we can conclude that the CCN assumption does not hold on Riedel. Please refer to Appendix A.2 for more details.
# 2.3 Label-Dependent Noise
Now both the intuition and theoretical evidence imply that multi-label noise should be dependent on labels. As presented in Definition 4, we can model label-dependent mislabelling among given labels.
Definition 4. (Label-dependent noise) Under the
label-dependent assumption, the transition matrix is $\mathbf{T}_{k,l}^{j}(\mathbf{x},\mathbf{y}) = \mathbf{T}_{k,l}^{j}(\mathbf{y}) = P(\tilde{Y}_{j} = k|Y_{j} = l,\mathbf{y})$
CCN can be seen as a degenerated case of LDN assumption such that all instances have the same noise transition matrix. By assuming LDN, we can better model the label correlation of real-world multi-label noise, as depicted in Figure 1. Note that LDN is also a special case of instance-dependent noise (IDN) (Chen et al., 2021). Its noise transition depends on the labels corresponding to each instance.
Previous works on noisy multi-label classification under CCN assumption often conducted experiments on synthetic noise with varying noise fractions (Li et al., 2022b; Chen et al., 2023). They randomly flip an element $Y_{i,j}$ in the label vector $\mathbf{y}_i$ from 0 to 1 or 1 to 0 by the probability $\mathbf{T}_{1,0}^j$ and $\mathbf{T}_{0,1}^j$ respectively, thereby generating noise labels of false positives and false negatives. Similarly, it is desired to easily generate LDN with any noise fraction for any given benchmark dataset. To stimulate the development of theory and methodology, we propose a novel LDN generator.
As shown in Figure 1, the LDN assumption primarily manifests in the generation of false positive noise. for the generation of false negative noise labels, we adopt the method used in previous studies (Li et al., 2022b), which involves a fixed transition probability $\mathbf{T}_{0,1}^{j} = \mathbf{T}_{0,1} = \rho_{+}$ . For the generation of false positive noise, we follow a label dependency approach, meaning that true negative labels with strong label correlation to the ground truth are more likely to be flipped to false positive labels (Liang et al., 2023). We simulate the label flips based on a label correlation matrix $\mathbf{C}$ , which can be obtained through the label co-occurrence matrix (Su et al., 2022). Each element $C_{j_0,j_1}$ of $\mathbf{C}$ is defined as:
$$C _ {j _ {0}, j _ {1}} = \frac {c _ {j _ {0} , j _ {1}}}{\sum_ {j = 1} ^ {L} c _ {j _ {0} , j}}, j _ {0}, j _ {1} \in [ L ] \tag {1}$$
$$c _ {j _ {0}, j _ {1}} = \left\{ \begin{array}{l l} 0 & j _ {0} = j _ {1} \\ \sum_ {i = 1} ^ {N} Y _ {i, j _ {0}} \cdot Y _ {i, j _ {1}} & j _ {0} \neq j _ {1} \end{array} \right. \tag {2}$$
The probability $\mathbf{T}_{0,1}^{j}(\mathbf{y})$ of a true negative label $j$ transitioning to a false positive label should be related to the current set of positive labels for the
sample.
$$\mathbf {T} _ {1, 0} ^ {j} (\mathbf {y}) = \rho_ {-} * p ^ {j} (\mathbf {y}, \mathbf {C}) \tag {3}$$
$$p ^ {j} (\mathbf {y}, \mathbf {C}) = \left\{ \begin{array}{l l} 0 & y _ {j} = 1 \\ \sum_ {j _ {0}: y _ {j _ {0}} = 1} \frac {C _ {j _ {0} , j}}{\sum_ {j _ {0}: y _ {j _ {0}} = 1} 1} & y _ {j} = 0 \end{array} \right. \tag {4}$$
Here, $\rho_{-}$ controls the extent of negative labels transitioning. $p^j (\mathbf{y},\mathbf{C})$ denotes the probability of a negative label $j$ transitioning to a positive label given the current set of labels and the label correlation matrix. The label noise is label-dependent since it takes into account the label set of each instance.
In some works (Chen et al., 2023; Ghiassi et al., 2022), it was assumed that $\rho_{-} = \rho_{+}$ . However, we argue against this approach because in MLTC, the label dimension $L$ is usually much larger than the average number of labels per instance $L_{\mathrm{avg}}$ . Therefore, if $\rho_{-} = \rho_{+}$ , the number of false positive (FP) labels would be much greater than the number of false negative (FN) labels. This situation does not accurately reflect the challenges of NMLTC problems. Hence, we adopt the approach proposed in Multi-T (Li et al., 2022b), setting $\rho_{+} = \rho$ and $\rho_{-} = \frac{L_{\mathrm{avg}}}{L - L_{\mathrm{avg}}} \rho$ . This configuration is designed to ensure that the difference between the number of FP labels and FN labels is relatively small. The noise rate $\rho$ is set to 0.2, 0.4, and 0.6. The algorithm of LDN generation can be found in the Appendix B.1.
# 2.4 Characterizations of Training with LDN
In noisy label learning, a simple yet effective method to identify label noise is to utilize the memorization effect (Arazo et al., 2019). This effect highlights that DNNs tend to learn simple and general patterns before memorizing the noise, inspiring many sample selection based approaches (Lu et al., 2023; Song et al., 2024). Existing methods have confirmed that this approach can also be applied under CCN conditions (Li et al., 2022b; Song et al., 2024). However, can this method be used in NMLTC under LDN conditions? Here, we conduct an empirical study to compare the performance of these two types of noise. We generate $40\%$ LDN noise and conduct experiments on the AAPD dataset. Simultaneously, we generate $40\%$ CCN noise for comparison. In all experiments presented in this paper, the DNN model and training hyperparameters we use are consistent.
 (a) CCN
 (b) LDN
 Figure 2: Individual loss curves on AAPD. (a) CCN Figure 3: Loss distributions on AAPD.
 (b) LDN
LDN is harder to identify Figure 2 shows the changes in loss values for randomly sampled clean and noisy labels during training (under both CCN and LDN conditions). If we use the small loss criterion (Li et al., 2022b; Song et al., 2024) to filter noisy samples, we find that noisy samples are relatively easier to identify under CCN. During the early epochs of training, clean and noisy labels exhibit a significant difference. However, under LDN, clean and noisy labels are not easily distinguishable. In addition, we carried out a quantitative analysis, as shown in Figure 3. We illustrate the contrast in distribution of loss between labels affected by noise versus clean ones. It can be seen that under CCN noise, the overlap between the clean region and the noisy region is small, indicating that it is easier to identify the noise. In contrast, under LDN, it is relatively difficult to identify the noise due to the larger overlap. The reason is that LDN is very similar to the correct labels, making it prone to overfitting and thus difficult to distinguish from the correct labels. Additional observations can be found in Appendix B.2.
# 3 Method
Previous work (Han et al., 2018; Northcutt et al., 2021; Song et al., 2024) has identified noisy labels based on the "memorization effect", using the loss values from early epochs of deep learning models. However, as shown in section 2, this approach faces challenges with LDN due to its similarity to the true labels. Therefore, in this section, we propose a Label-Specific Denoising (LeD) framework. This framework considers various aspects of neural net
work training, including loss, ranking, and feature space neighbors, which provide a more comprehensive reflection of the likelihood that a label is noisy. Specifically, we introduce a holistic selection metric (HSM) that includes ranking-enhanced loss (REL) and centroid distance (CD). We then identify noisy labels for each label category from the perspective of each individual label category. We use a Gaussian mixture model (GMM) to identify noisy labels among positive and negative labels for each category, resulting in a noise probability for each label. Based on these noise probabilities, we refine the original labels in a fine-grained manner. The corrected labels are then used for retraining the model. The overall framework is shown in Figure 4.
# 3.1 Noisy Multi-Label Text Classification
The goal of noisy multi-label text classification (NMLTC) is to learn a function $f$ that maps the input instance $\mathbf{x}_i$ and a label $l$ to a relevance score $\hat{Y}_{i,j} = f(\mathbf{x}_i,j)$ . We constructed the scoring function $f$ by combining a text encoder $\phi$ and a multi-label classifier $\psi$ . Following the approach of previous works (Su et al., 2022; Tan et al., 2024; Chai et al., 2024), we employed a BERT-based text encoder $\phi$ and adopted a multi-layer MLP as our multi-label classifier $\psi$ . We then employed binary cross entropy (BCE) $L_{\mathrm{BCE}} = \sum_{i=1}^{N} \sum_{l=1}^{L} L_{i,j}$ as the loss function, where
$$L _ {i, j} = - \left(\tilde {Y} _ {i, j} \log \left(\hat {Y} _ {i, j}\right) + \left(1 - \tilde {Y} _ {i, j}\right) \log \left(1 - \hat {Y} _ {i, j}\right)\right). \tag {5}$$
The notation $L_{i,j}$ represents the loss value associated with the $j$ -th label for the $i$ -th instance.
# 3.2 Holistic Selection Metric
Due to the presence of LDN, noisy labels and correct labels appear more similar, making it difficult to effectively identify noisy samples using a single metric, such as loss information. Therefore, we propose to jointly use two metrics from different perspectives: ranking-enhanced loss (REL) and centroid distance (CD). REL fully utilizes the information from prediction confidence, while CD relies on the distance in the feature space.
# 3.2.1 Ranking-Enhanced Loss
When learning with noisy labels, it is commonly observed that instances with clean labels typically have smaller loss values than those with noisy labels (Han et al., 2018; Northcutt et al., 2021).
 Figure 4: The overall framework of LeD. $\hat{\mathbf{y}}$ represents the predicted labels, $\tilde{\mathbf{y}}$ denotes the observed labels, and $\check{\mathbf{y}}$ stands for the corrected pseudo-labels. CD refers to centroid distance, REL stands for ranking-enhanced loss, and HSM denotes the holistic selection metric.

However, relying solely on the loss value $L_{i,j}$ to identify LDN, we may overlook differences between samples. For instance, some difficult labels may have a relatively high loss $L_{i,j}$ , but their prediction $\hat{Y}_{i,j} \in \hat{\mathbf{y}}_i$ could still be correct. Therefore, we propose using the model's predicted ranking of labels as an additional metric. A smaller predicted ranking for a label indicates it is more likely to be clean. Label ranking can reveal distinctions between labels at the sample level. For each instance $\mathbf{x}_i$ and its predicted label $\hat{\mathbf{y}}_i$ , we can obtain the rank of each label using the rank function $\mathrm{Rank}(\hat{\mathbf{y}}_i) = (R_{i,1}, R_{i,2}, \dots, R_{i,L})$ , where $R_{i,j}$ is the rank metric for $\hat{Y}_{i,j}$ . To combine ranking information with loss information, we propose the ranking-enhanced loss (REL) by adding an extra weight to the loss information. Thus, REL $E_{i,j}$ can be calculated by:
$$W \left(\hat {Y} _ {i, j}\right) = \min \left(\log \left(R _ {i, j}\right) + 1, \theta\right), \tag {6}$$
$$E _ {i, j} = W \left(\hat {Y} _ {i, j}\right) \times L _ {i, j}. \tag {7}$$
The logarithmic function is used to constrain the scale of the rank values, and a fixed value $\theta$ is employed for truncation to ensure that it has a limited impact on the loss information.
# 3.2.2 Centroid Distance
Although the sample separability achieved through REL is better, the separation metric still relies on model prediction. This reliance means there is still a risk of overfitting the classifier, especially in the case of LDN, where label noise often occurs among similar labels, increasing the likelihood of classifier overfitting. Consequently, this leads to low discrimination between the model predictions of clean and noisy labels. Therefore, solely using REL may not
be sufficient to distinguish clean labels from noisy ones when model predictions are close.
Except for separating the samples in the output space, we propose an additional metric computed in the feature space to mitigate the bias introduced by the classifier, as the learned features can handle noise labels better. Specifically, we proposed the centroid distance (CD) metric. For a given sample, we can compute the distance between its feature and the class feature centroid to assess the extent to which the sample's feature differs from its class centroid. To improve the quality of the class feature centroid for distance calculation, we construct the feature centroid by incorporating high-confidence samples from the observed class. The class centroid $\mathbf{c}_j$ based on a high-confidence sample set $\mathcal{H}_j$ is calculated by:
$$\mathbf {c} _ {j} = \frac {1}{| \mathcal {H} _ {j} |} \sum_ {i = 1} ^ {| \mathcal {H} _ {j} |} \mathbf {v} _ {i}, \tag {8}$$
$$\mathcal {H} _ {j} = \left\{\mathbf {x} _ {i} \mid \mathbf {x} _ {i} \in \mathcal {S} _ {j}, \hat {Y} _ {i, j} > h _ {j} \right\}, \tag {9}$$
where $\mathbf{v}_i$ is the feature of $\mathbf{x}_i$ and $\mathcal{S}_j = \{\mathbf{x}_i|\tilde{Y}_{i,j} = 1\}$ . we can use the prediction confidence of class $j$ for sample $\mathbf{x}_i$ , e.g., $\hat{Y}_{i,j}$ , as the selection criteria compare with the threshold $h_j$ . $\mathcal{H}_j$ is constructed by the samples in $\mathcal{S}_j$ whose corresponding prediction confidence of class $\hat{Y}_{i,j}$ is higher than $h_j$ . The high-confidence threshold $h_j$ is defined as:
$$h _ {j} = \frac {1}{| \mathcal {S} _ {j} |} \sum_ {i = 1} ^ {| \mathcal {S} _ {j} |} w _ {i} \times \hat {Y} _ {i, j} \tag {10}$$
$$w _ {i} = \max \left(1, \hat {Y} _ {i, j} / \bar {Y} _ {j}\right). \tag {11}$$
$h_j$ is calculated by the weighted sum of the prediction confidence of class $j$ for all samples. The
weight $w_{i}$ increases when a sample's prediction confidence of class $j$ is higher than its class average $\bar{Y}_j$ . Thus, the threshold is high enough to ensure the quality of the selected samples. Therefore, the proposed metric CD $D_{i,j}$ can be calculated by $D_{i,j} = -\cos (\mathbf{v}_i,\mathbf{c}_j)$ .
To facilitate the integration of these two metrics, we perform min-max normalization on them (Hu et al., 2022), obtaining normalized results $\hat{E}_{i,j}$ and $\hat{D}_{i,j}$ respectively. The linear combination of both metrics results in a new holistic selection metric (HSM) $M_{i,j} = \alpha \cdot \hat{E}_{i,j} + (1 - \alpha)\hat{D}_{i,j}$ . The combination coefficient $\alpha$ plays a crucial role in determining the balance between the two metrics. By combining the advantages of both metrics, HSM effectively captures both the confidence from model predictions and the robustness from the feature space, thus improving the discrimination between clean and noisy labels.
# 3.3 Fine-Grained Label-Specific Correction
As previously mentioned, there are two types of noise in noisy multi-labels: false positive and false negative. In this section, we take false positive noise as an example, with the method for handling false negative noise being similar. After obtaining the HSM for each label, we proceed with the identification and fine-grained correction of noisy labels based on each label category. Fine-grained label-specific correction involves re-labeling the noisy dataset based on the HSM values to create a cleaner training set.
If noisy labels are divided globally (without distinguishing between categories), the differences between categories will be ignored. Some difficult categories may all be classified as noise, while some simple categories may not be classified as noise at all. Therefore, we individually identify noisy labels for each class. We first obtain the HSM set $\mathcal{M}_j^+$ corresponding to all positive labels for label j, i.e., $\mathcal{M}_j^+ = \{M_{i,j}|\tilde{Y}_{i,j} = 1\}$ . True labels have lower HSM values compared to noisy ones due to DNNs' memorization effect (Arpit et al., 2017; Hu et al., 2023). Therefore, we employ a bi-modal univariate Gaussian mixture model (GMM) for each HSM set using the expectation-maximization (EM) algorithm, resulting in $L$ GMM models for positive labels.
Given the HSM, its clean-label probability is obtained by the posterior probability $P_{\mathcal{G}}(\tilde{Y}_{i,j})$ of the corresponding GMM, Since distinguishing
<table><tr><td>Datasets</td><td>\(N_{\mathrm{tm}}\)</td><td>\(N_{\mathrm{tst}}\)</td><td>L</td><td>\(L_{\mathrm{avg}}\)</td><td>\(N_{\mathrm{avg}}\)</td></tr><tr><td>MOVIE</td><td>105,616</td><td>11,736</td><td>28</td><td>2.1</td><td>112</td></tr><tr><td>AAPD</td><td>54,840</td><td>1,000</td><td>54</td><td>2.4</td><td>163</td></tr><tr><td>RCV1</td><td>23,149</td><td>781,028</td><td>103</td><td>3.2</td><td>124</td></tr></table>
Table 1: Data statistics. $N_{\mathrm{trn}}$ , $N_{\mathrm{tst}}$ refer to the number of documents in the training and test sets, respectively. $L$ is the number of labels. $L_{\mathrm{avg}}$ is the average number of labels per documents. $N_{\mathrm{avg}}$ refers to the average number of words per document.
between noisy and clean labels near the decision boundary is challenging, we have employed a fine-grained correction strategy, as opposed to using hard pseudo-labels (Li et al., 2020). The specific approach is as follows:
$$\check {Y} _ {i, j} = \left\{ \begin{array}{l l} 1 - \tilde {Y} _ {i, j} & P _ {\mathcal {G}} \left(\tilde {Y} _ {i, j}\right) \leq 0. 5 - \epsilon , \\ P _ {\mathcal {G}} \left(\tilde {Y} _ {i, j}\right) & 0. 5 - \epsilon < P _ {\mathcal {G}} \left(\tilde {Y} _ {i, j}\right) \leq 0. 5 + \epsilon \\ \tilde {Y} _ {i, j} & P _ {\mathcal {G}} \left(\tilde {Y} _ {i, j}\right) > 0. 5 + \epsilon \end{array} \right. \tag {12}$$
The corrected pseudo-label $\tilde{Y}_{i,j}$ is obtained. The implication is that if $P_{\mathcal{G}}(\tilde{Y}_{i,j})$ is large, we consider the label to be likely a clean label and thus keep it unchanged. Conversely, if $P_{\mathcal{G}}(\tilde{Y}_{i,j})$ is small, we consider the label to be likely incorrect and thus perform label flipping. When the value of $P_{\mathcal{G}}(\tilde{Y}_{i,j})$ is close to 0.5, it is difficult to determine the noise situation, so we adopt a soft label approach.
# 4 Experiment
# 4.1 Experimental Setup
Datasets Following previous work (Chen et al., 2023), we evaluate the proposed model on three synthetic benchmark datasets namely MOVIE, AAPD, and RCV1 with varying LDN fractions. Table 1 contains the statistics of these three benchmark datasets.
Evaluation Metrics For a comprehensive and reliable evaluation, we follow conventional settings (Chen et al., 2019, 2023) and report the following metrics: micro-F1 (mi-F1), macro-F1 (ma-F1) and mean Average Precision (mAP). Note that only the training set is affected by noise, whereas the evaluation metrics are computed on the clean testing set. The best results are in bold, and the second-best results are in underscore.
Baselines To verify the effectiveness of LeD, we selected the nine most representative baseline models in three groups. (1) MLTC methods: AttXML (You et al., 2019), HTTN (Xiao et al., 2021) and
<table><tr><td>Noise Rate</td><td colspan="3">ρ = 0.2</td><td colspan="3">ρ = 0.4</td><td colspan="3">ρ = 0.6</td></tr><tr><td>Methods</td><td>mi-F1</td><td>ma-F1</td><td>mAP</td><td>mi-F1</td><td>ma-F1</td><td>mAP</td><td>mi-F1</td><td>ma-F1</td><td>mAP</td></tr><tr><td>AttXML</td><td>61.89</td><td>34.56</td><td>51.70</td><td>56.72</td><td>33.50</td><td>44.32</td><td>50.16</td><td>29.79</td><td>40.83</td></tr><tr><td>HTTN</td><td>61.13</td><td>34.45</td><td>51.16</td><td>56.59</td><td>32.82</td><td>44.24</td><td>49.26</td><td>28.58</td><td>39.10</td></tr><tr><td>LSFA</td><td>62.81</td><td>37.40</td><td>53.26</td><td>58.84</td><td>33.53</td><td>47.87</td><td>52.13</td><td>29.92</td><td>38.45</td></tr><tr><td>GCE</td><td>65.68</td><td>39.65</td><td>53.17</td><td>61.80</td><td>35.95</td><td>48.92</td><td>52.76</td><td>31.37</td><td>41.98</td></tr><tr><td>WSIC</td><td>62.82</td><td>38.94</td><td>52.82</td><td>60.26</td><td>35.89</td><td>46.89</td><td>53.93</td><td>31.37</td><td>39.38</td></tr><tr><td>RTM</td><td>64.79</td><td>39.15</td><td>54.70</td><td>62.02</td><td>36.26</td><td>46.97</td><td>53.66</td><td>32.18</td><td>41.79</td></tr><tr><td>MLLSC</td><td>63.85</td><td>38.48</td><td>51.41</td><td>60.83</td><td>36.46</td><td>47.74</td><td>53.09</td><td>31.57</td><td>39.22</td></tr><tr><td>Multi-T</td><td>65.54</td><td>38.84</td><td>52.79</td><td>60.36</td><td>36.06</td><td>46.15</td><td>52.67</td><td>30.87</td><td>41.20</td></tr><tr><td>nEM</td><td>65.37</td><td>40.92</td><td>54.00</td><td>62.45</td><td>36.91</td><td>48.76</td><td>53.15</td><td>31.70</td><td>42.23</td></tr><tr><td>LeD</td><td>66.74</td><td>42.15</td><td>55.29</td><td>63.77</td><td>37.89</td><td>49.32</td><td>56.66</td><td>34.26</td><td>44.57</td></tr></table>
Table 2: Performance on MOVIE with different LDN ratios.
<table><tr><td colspan="2">Noise Rate</td><td colspan="2">ρ = 0.2</td><td colspan="3">ρ = 0.4</td><td colspan="3">ρ = 0.6</td></tr><tr><td>Methods</td><td>mi-F1</td><td>ma-F1</td><td>mAP</td><td>mi-F1</td><td>ma-F1</td><td>mAP</td><td>mi-F1</td><td>ma-F1</td><td>mAP</td></tr><tr><td>AttXML</td><td>52.16</td><td>18.80</td><td>43.10</td><td>42.65</td><td>8.74</td><td>32.02</td><td>37.49</td><td>5.28</td><td>28.12</td></tr><tr><td>HTTN</td><td>55.15</td><td>21.16</td><td>43.84</td><td>46.37</td><td>11.98</td><td>35.59</td><td>40.68</td><td>8.69</td><td>32.33</td></tr><tr><td>LSFA</td><td>56.53</td><td>22.51</td><td>45.90</td><td>47.94</td><td>11.31</td><td>36.32</td><td>41.72</td><td>9.19</td><td>32.90</td></tr><tr><td>GCE</td><td>54.31</td><td>23.59</td><td>43.28</td><td>47.09</td><td>13.20</td><td>35.45</td><td>42.94</td><td>8.74</td><td>32.87</td></tr><tr><td>WSIC</td><td>56.11</td><td>23.44</td><td>44.56</td><td>49.34</td><td>13.71</td><td>36.63</td><td>42.15</td><td>9.78</td><td>32.67</td></tr><tr><td>RTM</td><td>54.76</td><td>22.20</td><td>44.70</td><td>49.18</td><td>13.39</td><td>36.37</td><td>42.91</td><td>8.82</td><td>34.14</td></tr><tr><td>MLLSC</td><td>55.16</td><td>22.67</td><td>45.47</td><td>47.41</td><td>13.59</td><td>36.38</td><td>41.34</td><td>8.41</td><td>32.22</td></tr><tr><td>Multi-T</td><td>56.87</td><td>23.16</td><td>44.68</td><td>49.93</td><td>11.78</td><td>37.01</td><td>43.77</td><td>10.61</td><td>33.70</td></tr><tr><td>nEM</td><td>55.46</td><td>22.99</td><td>46.43</td><td>48.89</td><td>16.16</td><td>39.76</td><td>43.84</td><td>9.89</td><td>34.80</td></tr><tr><td>LeD</td><td>57.34</td><td>24.33</td><td>46.30</td><td>50.26</td><td>17.75</td><td>41.27</td><td>45.30</td><td>11.62</td><td>36.18</td></tr></table>
Table 3: Performance on AAPD with different LDN ratios.
LSFA (Xu et al., 2023). (2) Noisy multi-label learning (NMLL) methods: GCE (Zhang and Sabuncu, 2018), WSIC (Hu et al., 2019), RTM (Patrini et al., 2017), Multi-T (Li et al., 2022b), and MLLSC (Ghiassi et al., 2022). (3) NMLTC method: nEM (Chen et al., 2023). More details about the implementation setting can be found in Appendix C.3.
# 4.2 Experimental Results
Main Results As depicted in Tables 2-4, we have observed the following phenomena: (1) In all cases, our method shows significant improvements compared to other methods. By utilizing a holistic selection metric, we evaluate labels from multiple perspectives, enabling finer-grained identification and correction of noisy labels, which leads to optimal experimental results. (2) Due to overfitting to noisy labels, most existing MLTC methods tend to perform worse compared to NMLL methods.
(3) NMLL methods like RTM and Multi-T depend only on loss for noise rate estimation, which is inadequate under LDN. Similarly, nEM and MLLSC are constrained by insufficiently sensitive metrics to detect noisy labels.
Experiments on the Real-world Dataset The Riedel dataset (Chen et al., 2023) is a large-scale real-world NMLTC dataset, containing 53 classes, each representing a different relation. It is derived from the New York Times corpus. The training data consists of 281,270 instances, while the test set includes 3,762 instances. We used the same backbone as nEM to ensure a fair comparison. The results, shown in Table 5, indicate that our method outperforms the best baseline by $10\%$ in terms of the ma-F1 metric, demonstrating the effectiveness of our approach on the real-world NMLTC dataset.
<table><tr><td>Noise Rate</td><td colspan="3">ρ = 0.2</td><td colspan="3">ρ = 0.4</td><td colspan="3">ρ = 0.6</td></tr><tr><td>Methods</td><td>mi-F1</td><td>ma-F1</td><td>mAP</td><td>mi-F1</td><td>ma-F1</td><td>mAP</td><td>mi-F1</td><td>ma-F1</td><td>mAP</td></tr><tr><td>AttXML</td><td>71.30</td><td>32.10</td><td>60.99</td><td>65.69</td><td>22.23</td><td>58.01</td><td>64.18</td><td>20.20</td><td>52.70</td></tr><tr><td>HTTN</td><td>64.59</td><td>27.19</td><td>54.87</td><td>62.87</td><td>20.44</td><td>54.16</td><td>63.18</td><td>19.67</td><td>51.78</td></tr><tr><td>LSFA</td><td>69.67</td><td>30.87</td><td>59.43</td><td>64.55</td><td>21.73</td><td>56.25</td><td>64.23</td><td>20.46</td><td>53.17</td></tr><tr><td>GCE</td><td>68.08</td><td>27.95</td><td>56.93</td><td>61.94</td><td>20.81</td><td>54.78</td><td>64.41</td><td>21.66</td><td>53.70</td></tr><tr><td>WSIC</td><td>72.69</td><td>32.89</td><td>63.54</td><td>64.36</td><td>23.35</td><td>57.66</td><td>65.02</td><td>21.16</td><td>53.38</td></tr><tr><td>RTM</td><td>72.15</td><td>33.48</td><td>63.41</td><td>66.44</td><td>21.11</td><td>57.75</td><td>64.48</td><td>20.16</td><td>54.11</td></tr><tr><td>MLLSC</td><td>71.03</td><td>32.97</td><td>63.18</td><td>67.53</td><td>20.03</td><td>57.85</td><td>64.92</td><td>19.03</td><td>52.56</td></tr><tr><td>Multi-T</td><td>72.99</td><td>31.89</td><td>62.75</td><td>66.49</td><td>19.41</td><td>56.65</td><td>62.85</td><td>19.31</td><td>50.95</td></tr><tr><td>nEM</td><td>71.86</td><td>32.93</td><td>62.47</td><td>67.67</td><td>20.92</td><td>57.79</td><td>63.61</td><td>20.71</td><td>52.86</td></tr><tr><td>LeD</td><td>74.66</td><td>35.32</td><td>64.90</td><td>69.61</td><td>24.70</td><td>62.29</td><td>67.65</td><td>23.33</td><td>56.42</td></tr></table>
Table 4: Performance on RCV1 with different LDN ratios.
<table><tr><td>Methods</td><td>mi-F1</td><td>ma-F1</td><td>mAP</td></tr><tr><td>AttXML</td><td>56.77</td><td>33.78</td><td>50.81</td></tr><tr><td>GCE</td><td>55.60</td><td>32.95</td><td>47.93</td></tr><tr><td>WSIC</td><td>58.96</td><td>35.57</td><td>54.06</td></tr><tr><td>Multi-T</td><td>57.15</td><td>34.40</td><td>52.87</td></tr><tr><td>nEM</td><td>59.58</td><td>35.70</td><td>54.51</td></tr><tr><td>LeD</td><td>63.72</td><td>39.40</td><td>57.82</td></tr></table>
Ablation Study In the following experiments, we aim to analyze the effectiveness of each component of the proposed LeD method on three datasets. The LDN ratio is 0.4. We compare the complete LeD method with the following variants: (a) HSM (Loss): This variant uses only the loss as the metric for identifying noisy labels. (b) HSM (REL): This variant uses the REL metric for identifying. (c) HSM (CD): This variant uses the CD metric for identifying. According to Table 6, we observe that the different components of the HSM metric collectively contribute to enhancing the quality of noise identification. By incorporating instance-level rank information, the model gains the ability to differentiate between different instances, enabling a more accurate distinction between clean and corrupted labels. Additionally, the introduction of the feature-based metric, CD, significantly contributes to noise identification.
Effectiveness of HSM In Figure 5, we present the distributions of the positive label "cs.IT" in the AAPD dataset using HSM(Loss), HSM(REL), and HSM(CD). Firstly, as shown in (a) and (b), loss
Table 5: Performance comparison on Riedel.
<table><tr><td colspan="3">HSM</td><td colspan="3">Dataset</td></tr><tr><td>Loss</td><td>REL</td><td>CD</td><td>MOVIE</td><td>AAPD</td><td>RCV1</td></tr><tr><td>✓</td><td></td><td></td><td>60.15</td><td>48.06</td><td>68.75</td></tr><tr><td>✓</td><td>✓</td><td></td><td>62.15</td><td>48.95</td><td>69.16</td></tr><tr><td></td><td></td><td>✓</td><td>59.87</td><td>47.88</td><td>66.29</td></tr><tr><td>✓</td><td>✓</td><td>✓</td><td>63.77</td><td>50.26</td><td>69.61</td></tr></table>
Table 6: Performance comparison of HSM components based on mi-F1 scores across various datasets.
information demonstrates a certain capability in noise identification. When rank information is introduced, using REL as a metric, the noise identification capability is significantly enhanced (reduced overlapping areas). From (c), we can observe the complementary nature of the prediction-based REL metric and the feature-based CD metric. Finally, in (d), it is evident that combining both metrics in HSM results in a significantly improved noise identification capability (minimal overlapping areas).
# 5 Related Work
Learning from Noisy Labels In multi-class classification with noisy labels, most approaches leverage the memorization effect of deep neural networks (DNNs) (Arpit et al., 2017), where simple and generalized patterns are learned before overfitting to noisy patterns. Specifically, small-loss instances are likely to be clean instances (Han et al., 2018; Jiang et al., 2018; Wei et al., 2020). Another approach involves sample selection based on feature distributions (Li et al., 2022a, 2023). Recent methods (Hu et al., 2023; Lu et al., 2023) have proposed more comprehensive evaluation metrics to distinguish between clean and corrupted data,
 (a) HSM(Loss)
 (b) HSM(REL)
 Figure 5: The visualization of metric distribution on AAPD with $40\%$ LDN noise.
 (c) HSM(REL)&HSM(CD) (d) HSM
considering aspects such as information throughout the training process and prediction confidence. Inspired by these approaches, we propose a holistic selection metric for noisy MLTC that integrates various noise label characteristics, including multi-label ranking and feature information.
Noisy Multi-Label Learning Noisy Multi-Label Learning is an emerging research topic due to the complexity of noise mechanisms in multi-label settings compared to multi-class problems. Zhao et al. (2021) introduced pre-trained label embeddings for regularization, achieving robust learning. GCE (Zhang and Sabuncu, 2018), WISC (Hu et al., 2019), and MLLSC (Ghiassi et al., 2022) developed robust loss functions by weighting labels. Methods like RTM (Patrini et al., 2017) and Multi-T (Li et al., 2022b) address the estimation problem of noise transition matrices in the multi-label context. The nEM method (Chen et al., 2023) uses latent variable models to model the transition process of noisy labels, achieving robust MLTC. Xia et al. (2023) identifies noisy labels through label correlation. Song et al. (2024) employs the small loss trick for noisy label selection and correction. However, existing methods either assume label noise is entirely random or class conditional, neglecting the fact that label noise is often correlated with current labels in real-world scenarios.
# 6 Conclusions
In this paper, we first verify that real-world datasets often deviate from the class-conditional noise assumption. Based on this observation, we introduce label-dependent noise (LDN), revealing the characteristics of label-dependent noise and designing a method to generate controllable LDN. Subsequently, we propose a novel label-specific denoising framework to enhance multi-label text classification under label-dependent noise. Extensive experiments on benchmark datasets demonstrate that our method significantly improves performance under both synthetic and real-world noise conditions,
outperforming existing state-of-the-art models.
# 7 Limitations
Our method leverages the memorization effect (Arpit et al., 2017) observed in deep learning models for sample selection and correction. This effect has not been observed in other traditional machine learning methods, limiting the applicability of our framework to deep learning-based approaches only. Although label-dependent noise (LDN) can be considered a special case of instance-dependent noise (IDN) (Chen et al., 2021; Wang et al., 2024), our framework has not been explicitly validated for handling IDN in our experiments. Calculating the HSM for each label can be computationally demanding, particularly with larger label size datasets. This could limit the scalability of our approach for significantly larger datasets.
# 8 Acknowledgement
This work was partly supported by the National Natural Science Foundation of China under Grant 62176020; the Joint Foundation of the Ministry of Education for Innovation team (8091B042235); the Beijing Natural Science Foundation under Grant L211016; the Fundamental Research Funds for the Central Universities (2019JBZ110); and the State Key Laboratory of Rail Traffic Control and Safety (Contract No. RCS2023K006), Beijing Jiaotong University.
# References
Eric Arazo, Diego Ortega, Paul Albert, Noel E. O'Connor, and Kevin McGuinness. 2019. Unsupervised label noise modeling and loss correction. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, volume 97 of Proceedings of Machine Learning Research, pages 312-321. PMLR. Devansh Arpit, Stanislaw Jastrzebski, Nicolas Ballas, David Krueger, Emmanuel Bengio, Maxinder S. Kanwal, Tegan Maharaj, Asja Fischer, Aaron C.
Courville, Yoshua Bengio, and Simon Lacoste-Julien. 2017. A closer look at memorization in deep networks. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, volume 70 of Proceedings of Machine Learning Research, pages 233-242. PMLR. Yuyang Chai, Zhuang Li, Jiahui Liu, Lei Chen, Fei Li, Donghong Ji, and Chong Teng. 2024. Compositional generalization for multi-label text classification: A data-augmentation approach. In Thirty-Eighth AAAI Conference on Artificial Intelligence, AAAI 2024, Thirty-Sixth Conference on Innovative Applications of Artificial Intelligence, IAAI 2024, Fourteenth Symposium on Educational Advances in Artificial Intelligence, EAAI 2014, February 20-27, 2024, Vancouver, Canada, pages 17727-17735. AAAI Press. Junfan Chen, Richong Zhang, Yongyi Mao, Hongyu Guo, and Jie Xu. 2019. Uncover the ground-truth relations in distant supervision: A neural expectation-maximization framework. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, EMNLP-IJCNLP 2019, Hong Kong, China, November 3-7, 2019, pages 326-336. Association for Computational Linguistics. Junfan Chen, Richong Zhang, Jie Xu, Chunming Hu, and Yongyi Mao. 2023. A neural expectation-maximization framework for noisy multi-label text classification. IEEE Trans. Knowl. Data Eng., 35(11):10992-11003. Pengfei Chen, Junjie Ye, Guangyong Chen, Jingwei Zhao, and Pheng-Ann Heng. 2021. Beyond class-conditional assumption: A primary attempt to combat instance-dependent label noise. In Thirty-Fifth AAAI Conference on Artificial Intelligence, AAAI 2021, Thirty-Third Conference on Innovative Applications of Artificial Intelligence, IAAI 2021, The Eleventh Symposium on Educational Advances in Artificial Intelligence, EAAI 2021, Virtual Event, February 2-9, 2021, pages 11442-11450. AAAI Press. Zijun Cui, Yong Zhang, and Qiang Ji. 2020. Label error correction and generation through label relationships. In The Thirty-Fourth AAAI Conference on Artificial Intelligence, AAAI 2020, The Thirty-Second Innovative Applications of Artificial Intelligence Conference, IAAI 2020, The Tenth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2020, New York, NY, USA, February 7-12, 2020, pages 3693-3700. AAAI Press. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages
4171-4186, Minneapolis, Minnesota. Association for Computational Linguistics. Benoit Frénay and Michel Verleysen. 2014. Classification in the presence of label noise: A survey. IEEE Trans. Neural Networks Learn. Syst., 25(5):845-869. Amirmasoud Ghiassi, Robert Birke, and Lydia Y. Chen. 2022. Multi label loss correction against missing and corrupted labels. In *Asian Conference on Machine Learning*, ACML 2022, 12-14 December 2022, Hyderabad, India, volume 189 of Proceedings of Machine Learning Research, pages 359-374. PMLR. Bo Han, Quanming Yao, Xingrui Yu, Gang Niu, Miao Xu, Weihua Hu, Ivor W. Tsang, and Masashi Sugiyama. 2018. Co-teaching: Robust training of deep neural networks with extremely noisy labels. In Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, December 3-8, 2018, Montreal, Canada, pages 8536-8546. Chuanyang Hu, Shipeng Yan, Zhitong Gao, and Xuming He. 2023. MILD: modeling the instance learning dynamics for learning with noisy labels. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, IJCAI 2023, 19th-25th August 2023, Macao, SAR, China, pages 828-836. ijcai.org. Hengtong Hu, Lingxi Xie, Xinyue Huo, Richang Hong, and Qi Tian. 2022. Vibration-based uncertainty estimation for learning from limited supervision. In Computer Vision - ECCV 2022 - 17th European Conference, Tel Aviv, Israel, October 23-27, 2022, Proceedings, Part XXX, volume 13690 of Lecture Notes in Computer Science, pages 160-176. Springer. Mengying Hu, Hu Han, Shiguang Shan, and Xilin Chen. 2019. Weakly supervised image classification through noise regularization. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019, pages 11517-11525. Computer Vision Foundation / IEEE. Lu Jiang, Zhengyuan Zhou, Thomas Leung, Li-Jia Li, and Li Fei-Fei. 2018. Mentornet: Learning data-driven curriculum for very deep neural networks on corrupted labels. In Proceedings of the 35th International Conference on Machine Learning, ICML 2018, Stockholm, Sweden, July 10-15, 2018, volume 80 of Proceedings of Machine Learning Research, pages 2309-2318. PMLR. Diederik P. Kingma and Jimmy Ba. 2015. Adam: A method for stochastic optimization. In 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings. David D. Lewis, Yiming Yang, Tony G. Rose, and Fan Li. 2004. RCV1: A new benchmark collection for text categorization research. J. Mach. Learn. Res., 5:361-397.
Junnan Li, Richard Socher, and Steven C. H. Hoi. 2020. Dividemix: Learning with noisy labels as semi-supervised learning. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net. Shikun Li, Xiaobo Xia, Shiming Ge, and Tongliang Liu. 2022a. Selective-supervised contrastive learning with noisy labels. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2022, New Orleans, LA, USA, June 18-24, 2022, pages 316-325. IEEE. Shikun Li, Xiaobo Xia, Hansong Zhang, Yibing Zhan, Shiming Ge, and Tongliang Liu. 2022b. Estimating noise transition matrix with label correlations for noisy multi-label learning. In NeurIPS. Yifan Li, Hu Han, Shiguang Shan, and Xilin Chen. 2023. DISC: learning from noisy labels via dynamic instance-specific selection and correction. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2023, Vancouver, BC, Canada, June 17-24, 2023, pages 24070-24079. IEEE. Chao Liang, Zongxin Yang, Linchao Zhu, and Yi Yang. 2023. Co-learning meets stitch-up for noisy multi-label visual recognition. IEEE Trans. Image Process., 32:2508-2519. Nankai Lin, Guanqiu Qin, Gang Wang, Dong Zhou, and Aimin Yang. 2023. An effective deployment of contrastive learning in multi-label text classification. In *Findings of the Association for Computational Linguistics: ACL* 2023, Toronto, Canada, July 9-14, 2023, pages 8730-8744. Association for Computational Linguistics. Jingzhou Liu, Wei-Cheng Chang, Yuexin Wu, and Yiming Yang. 2017. Deep learning for extreme multi-label text classification. In Proceedings of the 40th International ACM SIGIR Conference on Research and Development in Information Retrieval, Shinjuku, Tokyo, Japan, August 7-11, 2017, pages 115-124. ACM. Yang Lu, Yiliang Zhang, Bo Han, Yiu-Ming Cheung, and Hanzi Wang. 2023. Label-noise learning with intrinsically long-tailed data. In IEEE/CVF International Conference on Computer Vision, ICCV 2023, Paris, France, October 1-6, 2023, pages 1369-1378. IEEE. Qianwen Ma, Chunyuan Yuan, Wei Zhou, and Songlin Hu. 2021. Label-specific dual graph neural network for multi-label text classification. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, ACL/IJCNLP 2021, (Volume 1: Long Papers), Virtual Event, August 1-6, 2021, pages 3855-3864. Association for Computational Linguistics.
Curtis G. Northcutt, Anish Athalye, and Jonas Mueller. 2021. Pervasive label errors in test sets destabilize machine learning benchmarks. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks 1, NeurIPS Datasets and Benchmarks 2021, December 2021, virtual. Giorgio Patrini, Alessandro Rozza, Aditya Krishna Menon, Richard Nock, and Lizhen Qu. 2017. Making deep neural networks robust to label noise: A loss correction approach. In 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, pages 2233-2241. IEEE Computer Society. Rion Snow, Brendan O'Connor, Daniel Jurafsky, and Andrew Y. Ng. 2008. Cheap and fast - but is it good? evaluating non-expert annotations for natural language tasks. In 2008 Conference on Empirical Methods in Natural Language Processing, EMNLP 2008, Proceedings of the Conference, 25-27 October 2008, Honolulu, Hawaii, USA, A meeting of SIGDAT, a Special Interest Group of the ACL, pages 254-263. ACL. Hwanjun Song, Minseok Kim, and Jae-Gil Lee. 2024. Toward robustness in multi-label classification: A data augmentation strategy against imbalance and noise. In Thirty-Eighth AAAI Conference on Artificial Intelligence, AAAI 2024, Thirty-Sixth Conference on Innovative Applications of Artificial Intelligence, IAAI 2024, Fourteenth Symposium on Educational Advances in Artificial Intelligence, EAAI 2014, February 20-27, 2024, Vancouver, Canada, pages 21592-21601. AAAI Press. Xi'ao Su, Ran Wang, and Xinyu Dai. 2022. Contrastive learning-enhanced nearest neighbor mechanism for multi-label text classification. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), ACL 2022, Dublin, Ireland, May 22-27, 2022, pages 672-679. Association for Computational Linguistics. Wei Tan, Ngoc Dang Nguyen, Lan Du, and Wray L. Buntine. 2024. Harnessing the power of beta scoring in deep active learning for multi-label text classification. In Thirty-Eighth AAAI Conference on Artificial Intelligence, AAAI 2024, Thirty-Sixth Conference on Innovative Applications of Artificial Intelligence, IAAI 2024, Fourteenth Symposium on Educational Advances in Artificial Intelligence, EAAI 2014, February 20-27, 2024, Vancouver, Canada, pages 15240-15248. AAAI Press. Yejiang Wang, Yuhai Zhao, Zhengkui Wang, Wen Shan, and Xingwei Wang. 2024. Limited-supervised multi-label learning with dependency noise. In Thirty-Eighth AAAI Conference on Artificial Intelligence, AAAI 2024, Thirty-Sixth Conference on Innovative Applications of Artificial Intelligence, IAAI 2024, Fourteenth Symposium on Educational Advances in Artificial Intelligence, EAAI 2014, February 20-27, 2024, Vancouver, Canada, pages 15662-15670. AAAI Press.
Hongxin Wei, Lei Feng, Xiangyu Chen, and Bo An. 2020. Combating noisy labels by agreement: A joint training method with co-regularization. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2020, Seattle, WA, USA, June 13-19, 2020, pages 13723-13732. Computer Vision Foundation / IEEE. Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumont, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, and Jamie Brew. 2019. Huggingface's transformers: State-of-the-art natural language processing. CoRR, abs/1910.03771. Tingting Wu, Xiao Ding, Minji Tang, Hao Zhang, Bing Qin, and Ting Liu. 2023. Noisywikihow: A benchmark for learning with real-world noisy labels in natural language processing. In *Findings of the Association for Computational Linguistics: ACL* 2023, Toronto, Canada, July 9-14, 2023, pages 4856-4873. Association for Computational Linguistics. Xiaobo Xia, Jiankang Deng, Wei Bao, Yuxuan Du, Bo Han, Shiguang Shan, and Tongliang Liu. 2023. Holistic label correction for noisy multi-label classification. In IEEE/CVF International Conference on Computer Vision, ICCV 2023, Paris, France, October 1-6, 2023, pages 1483-1493. IEEE. Lin Xiao, Xin Huang, Boli Chen, and Liping Jing. 2019. Label-specific document representation for multi-label text classification. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, EMNLP-IJCNLP 2019, Hong Kong, China, November 3-7, 2019, pages 466-475. Association for Computational Linguistics. Lin Xiao, Xiangliang Zhang, Liping Jing, Chi Huang, and Mingyang Song. 2021. Does head label help for long-tailed multi-label text classification. In Thirty-Fifth AAAI Conference on Artificial Intelligence, AAAI 2021, Thirty-Third Conference on Innovative Applications of Artificial Intelligence, IAAI 2021, The Eleventh Symposium on Educational Advances in Artificial Intelligence, EAAI 2021, Virtual Event, February 2-9, 2021, pages 14103-14111. AAAI Press. Ming-Kun Xie and Sheng-Jun Huang. 2022. Partial multi-label learning with noisy label identification. IEEE Trans. Pattern Anal. Mach. Intell., 44(7):3676-3687. Ming-Kun Xie and Sheng-Jun Huang. 2023. CCMN: A general framework for learning with class-conditional multi-label noise. IEEE Trans. Pattern Anal. Mach. Intell., 45(1):154-166. Pengyu Xu, Lin Xiao, Bing Liu, Sijin Lu, Liping Jing, and Jian Yu. 2023. Label-specific feature augmentation for long-tailed multi-label text classification. In
Thirty-Seventh AAAI Conference on Artificial Intelligence, AAAI 2023, Thirty-Fifth Conference on Innovative Applications of Artificial Intelligence, IAAI 2023, Thirteenth Symposium on Educational Advances in Artificial Intelligence, EAAI 2023, Washington, DC, USA, February 7-14, 2023, pages 10602-10610. AAAI Press. Pengcheng Yang, Xu Sun, Wei Li, Shuming Ma, Wei Wu, and Houfeng Wang. 2018. SGM: sequence generation model for multi-label classification. In Proceedings of the 27th International Conference on Computational Linguistics, COLING 2018, Santa Fe, New Mexico, USA, August 20-26, 2018, pages 3915-3926. Association for Computational Linguistics. Ronghui You, Zihan Zhang, Ziye Wang, Suyang Dai, Hiroshi Mamitsuka, and Shanfeng Zhu. 2019. Attentionxml: Label tree-based attention-aware deep model for high-performance extreme multi-label text classification. In Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 5812-5822. Qian-Wen Zhang, Ximing Zhang, Zhao Yan, Ruifang Liu, Yunbo Cao, and Min-Ling Zhang. 2021. Correlation-guided representation for multi-label text classification. In Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, IJCAI 2021, Virtual Event / Montreal, Canada, 19-27 August 2021, pages 3363-3369. ijcai.org. Zhilu Zhang and Mert R. Sabuncu. 2018. Generalized cross entropy loss for training deep neural networks with noisy labels. In Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, December 3-8, 2018, Montréal, Canada, pages 8792-8802. Wenting Zhao, Shufeng Kong, Junwen Bai, Daniel Fink, and Carla P. Gomes. 2021. HOT-VAE: learning high-order label correlation for multi-label classification via attention-based variational autoencoders. In Thirty-Fifth AAAI Conference on Artificial Intelligence, AAAI 2021, Thirty-Third Conference on Innovative Applications of Artificial Intelligence, IAAI 2021, The Eleventh Symposium on Educational Advances in Artificial Intelligence, EAAI 2021, Virtual Event, February 2-9, 2021, pages 15016-15024. AAAI Press.
# A From CCN to LDN
# A.1 Proof of Theorem 1
Proof. If the CCN assumption is satisfied, then by Definition 2, the random variable $Z_{j}$ follows a Bernoulli distribution with parameters $\mathbf{T}_{0,1}^{j}$ . For the joint probability of $Z_{j_0}$ and $Z_{j_1}$ , we have:
$$\begin{array}{l} P \left(Z _ {j _ {0}} = l, Z _ {j _ {1}} = k\right) \\ = P \left(\tilde {Y} _ {j _ {0}} = l, \tilde {Y} _ {j _ {1}} = k \mid Y _ {j _ {0}} = 0, Y _ {j _ {1}} = 0\right) \\ = P \left(\tilde {Y} _ {j _ {0}} = l \mid Y _ {j _ {0}} = 0, Y _ {j _ {1}} = 0\right) \\ \cdot P \left(\tilde {Y} _ {j _ {1}} = k \mid Y _ {j _ {0}} = 0, Y _ {j _ {1}} = 0\right) \\ = P \left(\tilde {Y} _ {j _ {0}} = l \mid Y _ {j _ {0}} = 0\right) \cdot P \left(\tilde {Y} _ {j _ {1}} = k \mid Y _ {j _ {1}} = 0\right) \\ = P \left(Z _ {j _ {0}} = l\right) \cdot P \left(Z _ {j _ {1}} = k\right) \\ \end{array}$$

# A.2 Hypothesis Test
It is assumed that in the actual data, $n_{k,l}$ represents the number of samples for the joint distribution $\{Z_{j_0} = k,Z_{j_1} = l\}$ , where $k,l\in \{0,1\}$ . And the total sample size is denoted as $n = \sum_{i = 0}^{1}\sum_{j = 0}^{1}n_{k,l}$ . Under the assumption of $\mathbf{H}_0$ we can estimate the maximum likelihood estimates of the parameters:
$$\hat {P} (Z _ {j _ {0}} = k) = \frac {n _ {k , 0} + n _ {k , 1}}{n},$$
$$\hat {P} (Z _ {j _ {1}} = l) = \frac {n _ {0 , l} + n _ {1 , l}}{n}$$
Therefore,
$$\hat {P} (Z _ {j _ {0}} = k, Z _ {j _ {1}} = l) = \hat {P} (Z _ {j _ {0}} = k) \cdot \hat {P} (Z _ {j _ {1}} = l)$$
From this, we can calculate the test statistic:
$$\chi^ {2} = \sum_ {k = 0} ^ {1} \sum_ {l = 0} ^ {1} \frac {\left(n _ {k , l} - n \cdot \hat {P} \left(Z _ {j _ {0}} = k , Z _ {j _ {1}} = l\right)\right) ^ {2}}{n \cdot \hat {P} \left(Z _ {j _ {0}} = k , Z _ {j _ {1}} = l\right)}$$
Now we apply the chi-square test to the real-world noise multi-label benchmark Riedel (Chen et al., 2019). We select the labels "nationality" and "place_lived" from the Riedel validation set as $j_0$ and $j_1$ , respectively. Hypothesis testing results show that $\chi^2 = 940.5$ , with a p-value of $1.5e^{-206}$ .
# B Label-Dependent Noise
# B.1 LDN Generation Algorithm
# Algorithm 1 LDN Generation.
Input: Clean training set $\mathcal{D} = \{\left(\mathbf{x}_i,\mathbf{y}_i\right)\}_{i = 1}^N$ noise fraction parameters $\rho_{+}$ and $\rho_{-}$ .
Output: A dataset with LDN $\tilde{\mathcal{D}} = \{(\mathbf{x}_i,\tilde{\mathbf{y}}_i)\}_{i = 1}^N$ 1: Calculate correlation matrix C by Eq.(1).
2: for $\mathbf{x}_i, \mathbf{y}_i$ in $\mathcal{D}$ do 3: for $Y_{i,j}$ in $\mathbf{y}_i$ do 4: if $Y_{i,j} = 0$ then 5: Calculate $\mathbf{T}_{0,1}^{J}(\mathbf{y}_i)$ by Eq.(3). 6: $\tilde{Y}_{i,j}\sim \mathrm{Bernoulli}(1,\mathbf{T}_{0,1}^{j}(\mathbf{y}_{i}))$ 7: else 8: $\tilde{Y}_{i,j} \sim \text{Bernoulli}(1, 1 - \rho_{+})$ 9: Record $Y_{i,j}$
10: end if
11: end for 12: $\tilde{\mathbf{y}}_i = \{\tilde{Y}_{i,1},\tilde{Y}_{i,2},\dots,\tilde{Y}_{i,L}\}$ 13: Record $\tilde{\mathbf{y}}_i$ 14: end for 15: return $\tilde{\mathcal{D}} = \{(\mathbf{x}_i, \tilde{\mathbf{y}}_i)\}_{i=1}^N$ .
 (a) Training
 (b) Validation Figure 6: Loss curves with varying types of $40\%$ noise on AAPD.
# B.2 Characterizations of Training with LDN
LDN is easier to fit Figure 6 shows the training and validation loss curves under different noise settings. It can be observed that the training and validation loss is lower under LDN compared to CCN. This suggests that DNNs find it easier to fit LDN. This finding aligns with our intuition since the noisy labels under LDN are closely related to the output labels and can mislead DNNs. In this regard, LDN is more challenging to mitigate because the label-dependent noise significantly confuses DNNs, potentially leading to overfitting.
LDN causes relatively less harm Precisely because LDN is closely related to the output labels, it causes relatively less harm compared to CCN noise, as illustrated in Figure 6b. In CCN, many irrelevant noisy labels significantly affect the model's training, leading to greater harm.
# C Experiments
# C.1 Datasets
We evaluate the proposed model on three synthetic benchmark datasets and one real-world dataset for noisy multi-label text classification (NMLTC), namely MOVIE, AAPD, RCV1, and Riedel.
MOVIE: The MOVIE dataset is designed for movie genre classification. It contains movie plots and genre types extracted from the IMDB database and is publicly available - AAPD: The AAPD dataset (Yang et al., 2018) includes abstracts and corresponding subjects of 55,840 publications in the field of computer science from arXiv ${}^{2}$ . - RCV1: The Reuters Corpus Volume I (RCV1) (Lewis et al., 2004) is a benchmark dataset for text categorization, consisting of newswire articles produced by Reuters from 1996 to $1997^{3}$ . - Riedel: The Riedel dataset (Chen et al., 2019, 2023) was created by aligning entity pairs from Freebase (a large knowledge graph) with the New York Times (NYT) corpus. The dataset includes 53 relations, with training data from the 2005-2006 corpus and test data from the 2007 corpus ${}^{4}$ .
# C.2 Evaluation Metrics
Following previous works (Chen et al., 2023), we use three main metrics which are commonly used in MLTC evaluations: micro-F1 (mi-F1), macro-F1 (ma-F1), and mAP.
Micro-F1: This metric is calculated by aggregating the contributions of all classes to compute the average F1 score. It is particularly useful when dealing with imbalanced datasets, as it gives equal weight to each instance. The micro-F1 score is defined as:
$$\mathrm {m i c r o - F 1} = \frac {2 \times \text {P r e c i s i o n} \times \text {R e c a l l}}{\text {P r e c i s i o n} + \text {R e c a l l}}$$
where Precision and Recall are computed globally over all instances.
Macro-F1: Unlike micro-F1, macro-F1 calculates the F1 score for each class independently and then takes the average. This metric treats all classes equally, regardless of their frequencies. It is defined as:
$$\mathrm {m a c r o - F 1} = \frac {1}{L} \sum_ {i = 1} ^ {L} \mathrm {F 1} _ {i}$$
where $L$ is the number of classes and $\mathrm{F1}_i$ is the F1 score of class $i$ .
Mean Average Precision (mAP): mAP is a measure used to evaluate the ranking quality of the model's predictions. It calculates the average precision across all classes and then averages these values. It is particularly useful for tasks where the order of the predictions matters. The mAP is defined as:
$$\mathrm {m A P} = \frac {1}{L} \sum_ {i = 1} ^ {L} \mathrm {A P} _ {i}$$
where $\mathrm{AP}_i$ is the average precision of class $i$ .
# C.3 Implementation Details
Backbone Given that the Riedel dataset is a multi-instance MLTC dataset, we use the same backbone as nEM (Chen et al., 2023) for fair comparison, i.e., PCNN+ATT. For the other three synthetic datasets, we adopt the pre-trained BERT (Devlin et al., 2019) as the backbone of our model, using the PyTorch implementation from Hugging-Face Transformers (Wolf et al., 2019). The maximum document length is set to 512 due to BERT's limitations (Devlin et al., 2019), and documents are either zero-padded or truncated to this length.
All experiments are conducted in a Linux environment with a single Tesla A100 GPU (40GB). Our model is trained using AdamW (Kingma and Ba, 2015). To optimize GPU memory usage and enhance training efficiency, we use automatic mixed precision (AMP).
The training time for the MOVIE and AAPD datasets is approximately 5.4 hours and 7.7 hours, respectively. For the RCV1 and Riedel datasets, the training time is approximately 9.0 hours and 14.5 hours, respectively.
Hyperparameters Regarding the key hyperparameters of our proposed method, the coefficient $\alpha$ and threshold $\epsilon$ , we set $\alpha = 0.7$ and $\epsilon = 0.1$ for MOVIE. For AAPD and RCV1, we set $\alpha = 0.7$
and $\epsilon = 0.05$ . For the Riedel dataset, we set $\alpha = 0.6$ and $\epsilon = 0.15$ . We set $\theta = 3$ for all datasets. All experiments are run at least three times with different random seeds, and we report the average values of the results.
# D Related Work
Multi-Label Text Classification Early multi-label text classification (MLTC) primarily focused on learning better text representations (Liu et al., 2017) and capturing label correlations (Zhang et al., 2021). Label-specific feature learning (You et al., 2019; Xiao et al., 2019; Ma et al., 2021) introduced label representations to learn specific text representations for different labels, improving label differentiation. Recently, some methods (Su et al., 2022; Xu et al., 2023; Lin et al., 2023) have used contrastive learning to achieve more stable text representations, mitigating the impact of label imbalance. In contrast, we focus on improving MLTC performance in the presence of noisy labels.123version https://git-lfs.github.com/spec/v1oid sha256:adc6b04480ba8c8c678ada64b7d14ca0d9c5e1e71a8a452235b3202f6f5cdcfasize 66162212345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424[ { "type": "text", "text": "Enhancing Polyglot Voices by Leveraging Cross-Lingual Fine-Tuning in Any-to-One Voice Conversion", "text_level": 1, "bbox": [ 129, 89, 868, 129 ], "page_idx": 0 }, { "type": "text", "text": "Giuseppe Ruggiero $^{1,2}$ , Matteo Testa $^{2}$ , Jurgen Van de Walle $^{2}$ , Luigi Di Caro $^{1}$", "bbox": [ 176, 145, 823, 164 ], "page_idx": 0 }, { "type": "text", "text": "<sup>1</sup>Università degli studi di Torino, Turin, Italy", "bbox": [ 319, 164, 678, 179 ], "page_idx": 0 }, { "type": "text", "text": "$^{2}$ Cerence Inc, Turin Italy", "bbox": [ 396, 180, 600, 196 ], "page_idx": 0 }, { "type": "text", "text": "{giuseppe.ruggiero,luigi DICaro} $@$ unito.it", "bbox": [ 327, 197, 670, 212 ], "page_idx": 0 }, { "type": "text", "text": "{matteo.testa, jurgen.vandewalle} @cerence.com", "bbox": [ 302, 214, 695, 229 ], "page_idx": 0 }, { "type": "text", "text": "Abstract", "text_level": 1, "bbox": [ 260, 260, 339, 275 ], "page_idx": 0 }, { "type": "text", "text": "The creation of artificial polyglot voices remains a challenging task, despite considerable progress in recent years. This paper investigates self-supervised learning for voice conversion to create native-sounding polyglot voices. We introduce a novel cross-lingual any-to-one voice conversion system that is able to preserve the source accent without the need for multilingual data from the target speaker. In addition, we show a novel cross-lingual fine-tuning strategy that further improves the accent and reduces the training data requirements. Objective and subjective evaluations with English, Spanish, French and Mandarin Chinese confirm that our approach improves on state-of-the-art methods, enhancing the speech intelligibility and overall quality of the converted speech, especially in cross-lingual scenarios.", "bbox": [ 141, 291, 460, 548 ], "page_idx": 0 }, { "type": "text", "text": "1 Introduction", "text_level": 1, "bbox": [ 114, 563, 258, 577 ], "page_idx": 0 }, { "type": "text", "text": "In recent years, advancements in speech synthesis (Zhang et al., 2023; Qin et al., 2023; van Niekerk et al., 2021a) have significantly improved the quality of artificial polyglot voices. Several noteworthy studies in cross-lingual voice conversion (XVC) merit attention, especially some any-to-one $(\\mathrm{A}20\\mathrm{VC})^{2}$ variants (van Niekerk et al., 2021a; Huang et al., 2021). The aim of XVC is to convert source voices into target voices without changing the linguistic content, even when source and target speak different languages (Abe et al., 1990). From an information perspective, VC can be accomplished by initially disentangling the source speech into representations describing the linguistic content and speaker characteristics and then synthesizing the converted speech from the extracted", "bbox": [ 112, 590, 489, 847 ], "page_idx": 0 }, { "type": "text", "text": "linguistic content while incorporating the identity of the target speaker (Huang et al., 2021).", "bbox": [ 507, 261, 880, 293 ], "page_idx": 0 }, { "type": "text", "text": "To disentangle content and speaker information, an ASR model trained on a labeled dataset is frequently employed to extract the supervised spoken content representation, such as text (Huang et al., 2020) or phonetic posteriogram (PPG) (Sun et al., 2016). However, despite its promising results in VC, this approach encounters several limitations. First, the assembly of labeled datasets can be prohibitively expensive, especially in low-resource settings like the XVC scenario (Zhao et al., 2020). Second, the system's sensitivity to ASR errors can lead to potential mispronunciations or inaccuracies in conversion. Finally, text and PPG do not capture all linguistic nuances such as accent, expressions and style resulting in neutral-sounding synthesized speech (Hussain et al., 2023).", "bbox": [ 507, 294, 884, 549 ], "page_idx": 0 }, { "type": "text", "text": "In several recent works (van Niekerk et al., 2021a; Huang et al., 2021; Polyak et al., 2021), self-supervised learning (SSL) is used to train models for speech synthesis. This approach is primarily driven by the following advantages offered by SSL: 1) It requires only large-scale unlabeled data to learn rich and compact speech representations; 2) Numerous large-scale pre-trained SSL models are publicly available, including Wav2vec2 (Baevski et al., 2020), HuBERT (Hsu et al., 2021a), and WavLM (Chen et al., 2021b); 3) These models have been shown to generalize well across various languages, even though some of them have been trained on English data only. Since SSL representations contain a significant amount of information, including phonetic and speaker details, many studies (Huang et al., 2021; Polyak et al., 2021) have attempted to discretize them to extract disentangled linguistic content. However, while effective at removing speaker information, discretizing SSL representations results in lossy compression, which leads to mispronunciations in the converted speech (Qian et al., 2022).", "bbox": [ 507, 551, 882, 920 ], "page_idx": 0 }, { "type": "page_footnote", "text": "1Audio samples are available at: https://giuseppe-ruggiero.github.io/a2o-vc-demo/", "bbox": [ 112, 857, 487, 883 ], "page_idx": 0 }, { "type": "page_footnote", "text": "2The aim of A2O VC is to convert speech from any speaker, including those unseen during training, to that of a fixed target speaker.", "bbox": [ 112, 883, 487, 920 ], "page_idx": 0 }, { "type": "page_number", "text": "2237", "bbox": [ 478, 927, 519, 940 ], "page_idx": 0 }, { "type": "footer", "text": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 2237-2246 November 12-16, 2024 ©2024 Association for Computational Linguistics", "bbox": [ 216, 945, 779, 972 ], "page_idx": 0 }, { "type": "image", "img_path": "images/828451a59c37b5771c6af1d7916126bbc2683a06145e4ff12d437eda8be31536.jpg", "image_caption": [ "Figure 1: High-level overview of the voice conversion system." ], "image_footnote": [], "bbox": [ 136, 83, 862, 133 ], "page_idx": 1 }, { "type": "text", "text": "To address this issue, alternative disentanglement strategies have been proposed. Soft-VC (van Niekerk et al., 2021a) creates soft speech units starting from discrete ones, which are obtained by applying k-means (Jin and Han, 2010) clustering over the output of a pre-trained HuBERT model. Specifically, a network is trained to predict a distribution over the discrete units to preserve more content information and thus correct mispronunciations. Neural Analysis and Synthesis (NANSY) (Choi et al., 2021) introduces information perturbation (prior to the SSL model) as a way to disentangle speaker-related information from other aspects of speech. In van Niekerk et al. (2021b), utterance-level standardization is used to remove speaker-specific information. However, while these methods are better at improving intelligibility than discretization, our findings indicate that the linguistic content is still compromised, especially in cross-lingual scenarios. Furthermore, other speaker-related features (e.g., the accent) are also distorted, as highlighted in Qian et al. (2022).", "bbox": [ 112, 184, 489, 536 ], "page_idx": 1 }, { "type": "text", "text": "Recently, a variety of more versatile systems have emerged. One such example is kNN-VC (Baas et al., 2023), an any-to-any VC (A2A VC) approach that extracts frame-wise WavLM representations for both source and target speech. It then converts by directly replacing each frame of the source representation with its nearest neighbors in the target representation set. This strategy allows SSL features to be used without any further disentanglement step.", "bbox": [ 112, 538, 489, 697 ], "page_idx": 1 }, { "type": "text", "text": "We propose an A2O VC system similar to that of van Niekerk et al. (2021a) except it learns to disentangle content information without the need for supplementary steps like discretization, and it can both enhance cross-lingual generation and reduce the training data requisites. Our main contributions are as follows:", "bbox": [ 112, 699, 489, 810 ], "page_idx": 1 }, { "type": "list", "sub_type": "text", "list_items": [ "- We show that a bottleneck information extractor similar to that of Li et al. (2022) is sufficient to improve intelligibility in cross-lingual scenarios without compromising on speech quality and target speaker identity.", "- We propose a cross-lingual pre-training fine" ], "bbox": [ 134, 816, 489, 921 ], "page_idx": 1 }, { "type": "text", "text": "tuning strategy. This approach not only further enhances VC performance in cross-lingual scenarios but also allows low-quality data to be used for data intensive pre-training.", "bbox": [ 544, 184, 884, 249 ], "page_idx": 1 }, { "type": "text", "text": "2 Model Architecture", "text_level": 1, "bbox": [ 507, 259, 714, 274 ], "page_idx": 1 }, { "type": "text", "text": "The system consists of three components: a content encoder, an acoustic model, and a vocoder (Figure 1). The content encoder extracts speech representations from an audio of any speaker, the acoustic model translates these representations into a mel spectrogram of the target speaker, and the vocoder converts the resulting mel spectrogram into a time-domain waveform. For both training and inference, only audio data is required.", "bbox": [ 507, 285, 884, 430 ], "page_idx": 1 }, { "type": "text", "text": "2.1 Problem Definition", "text_level": 1, "bbox": [ 507, 439, 705, 455 ], "page_idx": 1 }, { "type": "text", "text": "Consider a dataset $D$ of a target speaker containing $M$ utterances in the time domain. Let us denote the $i$ -th utterance of the target speaker as $u_{i}$ , its features extracted by a pre-trained SSL model as $v_{i} \\in \\mathbb{R}^{s}$ , and its mel spectrogram as $x_{i}$ , where $i \\in [1, M]$ . The content encoder $\\mathcal{C}$ takes $u_{i}$ as its input and generates $v_{i}$ :", "bbox": [ 507, 460, 882, 573 ], "page_idx": 1 }, { "type": "equation", "text": "\n$$\nv _ {i} = \\mathcal {C} \\left(u _ {i}; w _ {\\mathcal {C}}\\right) \\tag {1}\n$$\n", "text_format": "latex", "bbox": [ 636, 585, 882, 602 ], "page_idx": 1 }, { "type": "text", "text": "where $w_{\\mathcal{C}}$ represents the content encoder parameters. To remove speaker information in $v_{i}$ while minimizing its impact on other components (e.g., linguistic content), the acoustic model $\\mathcal{A}$ uses a pre-net $\\mathcal{P}$ which projects $v_{i}$ into a space $\\mathbb{R}^d$ , where $d \\ll s$ . This dimensionality gap imposes an information bottleneck, which allows the acoustic model to discard content-irrelevant information such as noise and speaker identity (Li et al., 2022). Thus, the acoustic model $\\mathcal{A}$ predicts $\\hat{x}_i$ :", "bbox": [ 507, 614, 884, 775 ], "page_idx": 1 }, { "type": "equation", "text": "\n$$\n\\hat {x} _ {i} = \\mathcal {A} (\\mathcal {P} (v _ {i}; w _ {\\mathcal {P}}); w _ {\\mathcal {A}}) \\qquad (2)\n$$\n", "text_format": "latex", "bbox": [ 601, 787, 882, 804 ], "page_idx": 1 }, { "type": "text", "text": "where $w_{\\mathcal{P}}$ represents the parameters of the pre-net, while $w_{\\mathcal{A}}$ represents those of the acoustic model. Finally, the vocoder $\\nu$ , given $\\hat{x}_i$ , generates $\\hat{u}_i$ :", "bbox": [ 507, 816, 884, 864 ], "page_idx": 1 }, { "type": "equation", "text": "\n$$\n\\hat {u} _ {i} = \\mathcal {V} (\\hat {x} _ {i}; w _ {\\mathcal {V}}) \\tag {3}\n$$\n", "text_format": "latex", "bbox": [ 633, 876, 882, 892 ], "page_idx": 1 }, { "type": "text", "text": "where $w_{\\mathcal{V}}$ represents the vocoder parameters.", "bbox": [ 507, 904, 845, 921 ], "page_idx": 1 }, { "type": "page_number", "text": "2238", "bbox": [ 480, 927, 519, 940 ], "page_idx": 1 }, { "type": "text", "text": "The three components of the VC system are trained independently. The content encoder $\\mathcal{C}$ is an off-the-shelf model pre-trained on a large set of multi-speaker data whereas the acoustic model $\\mathcal{A}$ and the vocoder $\\mathcal{V}$ are trained only on target speaker data. After generating pairs $(v_{i},x_{i})$ for each $u_{i}$ of the dataset $D$ , the acoustic model $\\mathcal{A}$ is trained by optimizing the following objective function:", "bbox": [ 112, 84, 489, 212 ], "page_idx": 2 }, { "type": "equation", "text": "\n$$\n\\min _ {w _ {\\mathcal {P}}, w _ {\\mathcal {A}}} L _ {\\mathcal {A}} \\left(x _ {i}, \\mathcal {A} \\left(\\mathcal {P} \\left(v _ {i}; w _ {\\mathcal {P}}; w _ {\\mathcal {A}}\\right)\\right)\\right) \\tag {4}\n$$\n", "text_format": "latex", "bbox": [ 168, 225, 487, 249 ], "page_idx": 2 }, { "type": "text", "text": "where $L_{\\mathcal{A}}$ is a loss function in the time-frequency domain such as the $L_{1}$ distance between target and predicted mel spectrograms.", "bbox": [ 112, 261, 487, 307 ], "page_idx": 2 }, { "type": "text", "text": "The vocoder $\\mathcal{V}$ is trained either directly on ground truth mel spectrograms or on the mel spectrograms predicted by the acoustic model:", "bbox": [ 112, 309, 489, 357 ], "page_idx": 2 }, { "type": "equation", "text": "\n$$\n\\min _ {w _ {\\mathcal {V}}} L _ {\\mathcal {V}} \\left(u _ {i}, \\mathcal {V} \\left(x _ {i}; w _ {\\mathcal {V}}\\right)\\right) \\text {o r} \\min _ {w _ {\\mathcal {V}}} L _ {\\mathcal {V}} \\left(u _ {i}, \\mathcal {V} \\left(\\hat {x} _ {i}; w _ {\\mathcal {V}}\\right)\\right) \\tag {5}\n$$\n", "text_format": "latex", "bbox": [ 112, 370, 487, 409 ], "page_idx": 2 }, { "type": "text", "text": "where $L_{\\mathcal{V}}$ is a loss function in the time domain.", "bbox": [ 112, 422, 465, 436 ], "page_idx": 2 }, { "type": "text", "text": "By training only on target speaker data, the loss function in Eq. 4 makes the acoustic model target speaker specific: it generates spectrograms of that speaker. The primary objective is to convert the source speaker's identity into that of the target speaker. Consequently, it is possible to perform XVC by converting a source utterance from a language different from that spoken by the target speaker, thereby enabling the target speaker to become polyglot.", "bbox": [ 112, 439, 489, 599 ], "page_idx": 2 }, { "type": "text", "text": "2.2 Cross-Lingual Fine-Tuning", "text_level": 1, "bbox": [ 112, 609, 374, 626 ], "page_idx": 2 }, { "type": "text", "text": "Although the system achieves intra- and cross-lingual A2O VC with good intelligibility and high quality overall, some phonemes are mispronounced or colored by the accent of the target speaker, especially in cross-lingual scenarios. To tackle this issue, we opted for a hybrid approach, leveraging the phonetic knowledge of a model trained on a specific language (e.g., French) to enhance the pronunciation and linguistic content of the target speaker (e.g., an English speaker) when it speaks that language. Let us consider a lang1-lang2 cross-lingual scenario. Our objective is to enhance the acoustic model on lang1 without compromising the intra-lingual and other cross-lingual tasks.", "bbox": [ 112, 632, 489, 854 ], "page_idx": 2 }, { "type": "text", "text": "In addition to the target speaker dataset $D$ (lang2), let us also consider a dataset $D^{\\prime}$ consisting of $N$ speakers, each of whom has $M^{\\prime}$ utterances in lang1. Let us denote the $i$ -th utterance of", "bbox": [ 112, 857, 489, 920 ], "page_idx": 2 }, { "type": "text", "text": "the $j$ -th speaker as $u_{ji}^{\\prime}$ , its SSL vector as $v_{ji}^{\\prime}$ , and its mel spectrogram as $x_{ji}^{\\prime}$ , where $j \\in [1, N]$ and $i \\in [1, M^{\\prime}]$ .", "bbox": [ 507, 84, 880, 131 ], "page_idx": 2 }, { "type": "text", "text": "First, we pre-train the acoustic model $\\mathcal{A}$ using the loss in Eq. 4 but employing pairs $(v_{ji}^{\\prime}, x_{ji}^{\\prime})$ for each $u_{ji}^{\\prime}$ from the dataset $D$ . Eq. 4 becomes:", "bbox": [ 507, 133, 880, 183 ], "page_idx": 2 }, { "type": "equation", "text": "\n$$\n\\min _ {w _ {\\mathcal {P}} ^ {\\prime}, w _ {\\mathcal {A}} ^ {\\prime}} L _ {\\mathcal {A}} \\left(x _ {j i} ^ {\\prime}, \\mathcal {A} \\left(\\mathcal {P} \\left(v _ {j i} ^ {\\prime}; w _ {\\mathcal {P}} ^ {\\prime}\\right); w _ {\\mathcal {A}} ^ {\\prime}\\right)\\right) \\tag {6}\n$$\n", "text_format": "latex", "bbox": [ 557, 195, 880, 223 ], "page_idx": 2 }, { "type": "text", "text": "Second, we fine-tune $\\mathcal{A}$ using the dataset $D$ (or a subset thereof) from the target speaker, as explained in Section 2.1. This allows the acoustic model to acquire phonetic coverage of lang1 during the pre-training, which can be leveraged during the fine-tuning on lang2. Consequently, the lang2 target speaker will exhibit improved lang1 linguistic characteristics after the conversion.", "bbox": [ 507, 235, 882, 362 ], "page_idx": 2 }, { "type": "text", "text": "The cross-lingual fine-tuning technique offers several advantages. It enhances the linguistic content and pronunciation in XVC and reduces the amount of training data needed from the target speaker. While training the acoustic model without fine-tuning typically requires at least 10-12h of high-quality audio from the target speaker, the fine-tuning only requires 2h.", "bbox": [ 507, 363, 882, 492 ], "page_idx": 2 }, { "type": "text", "text": "2.3 Content encoder", "text_level": 1, "bbox": [ 507, 505, 687, 518 ], "page_idx": 2 }, { "type": "text", "text": "The content encoder transforms an input waveform into a more concise and information-dense representation known as SSL vector. We chose WavLM as pretrained SSL model. WavLM was pre-trained by Microsoft using a self-supervised strategy similar to that of Hsu et al. (2021a) on 60,000 hours of Libri-Light (Kahn et al., 2019), 10,000 hours of GigaSpeech (Chen et al., 2021a) and 24,000 hours of VoxPopuli (Wang et al., 2021), for a total of 94,000 hours of audio data. We used a publicly available WavLM-Large $^3$ model employing the output of its 15th transformer layer as the representation for speech audio $v_{i}$ in all of our experiments. This decision was motivated by the findings of Hsu et al. (2021b); Baevski et al. (2021), which demonstrated the efficacy of this layer in phone discrimination tests. Accordingly, $s$ in Subsection 2.1 is configured to 1024, that is the dimension of the output vectors of WavLM-Large.", "bbox": [ 507, 526, 882, 831 ], "page_idx": 2 }, { "type": "text", "text": "2.4 Acoustic Model and Vocoder", "text_level": 1, "bbox": [ 507, 844, 781, 857 ], "page_idx": 2 }, { "type": "text", "text": "The acoustic model and vocoder are typical components in a text-to-speech (TTS) system.", "bbox": [ 507, 865, 882, 897 ], "page_idx": 2 }, { "type": "page_footnote", "text": "<sup>3</sup>https://huggingface.co/microsoft/wavlm-large", "bbox": [ 529, 906, 873, 920 ], "page_idx": 2 }, { "type": "page_number", "text": "2239", "bbox": [ 480, 927, 519, 940 ], "page_idx": 2 }, { "type": "text", "text": "The proposed acoustic model takes as input SSL vectors rather than graphemes or phonemes, and outputs target speaker mel spectrograms. Following van Niekerk et al. (2021a), the model's architecture resembles that of Tacotron 2 (Shen et al., 2017) as it features an encoder and an autoregressive decoder. Both the encoder and decoder are preceded by a feed-forward pre-net, while a final linear layer with $n$ -MELs units follows the decoder. No attention module is used (Huang et al., 2021). The encoder pre-net is a feed-forward neural net composed of a stack of two linear layers with 256 units, ReLU activations, and dropout (Srivastava et al., 2014). The encoder consists of a stack of three 1D-convolutional layers with 512 units, kernel size 5, stride 1, padding 2, and ReLU activations. Following Chou and Lee (2019), we added an Instance Normalization (IN) layer after each Conv1D layer, as this helps to further reduce speaker identity while preserving content information. The decoder predicts each spectrogram frame from the output of the encoder and the previously generated frames. First, a decoder pre-net, similar to the encoder one, is applied and then three LSTMs with 768 units each followed by a final linear layer with $n$ -MELs units are used.", "bbox": [ 115, 84, 490, 501 ], "page_idx": 3 }, { "type": "text", "text": "The vocoder transforms the predicted mel spectrograms into audio waveforms. We used a HiFiGAN (Kong et al., 2020) model, a state-of-the-art real-time neural vocoder.", "bbox": [ 112, 507, 489, 570 ], "page_idx": 3 }, { "type": "text", "text": "2.5 Length Regulator", "text_level": 1, "bbox": [ 114, 596, 302, 614 ], "page_idx": 3 }, { "type": "text", "text": "As there is no attention mechanism, we use an optional duration adjustment strategy to mitigate potential length mismatches between the SSL input features and the target spectrogram sequence. Indeed, WavLM generates features at a $20\\mathrm{ms}$ frame rate for audio sampled at $16\\mathrm{kHz}$ (resulting in a hop length of 320), which might lead to a length mismatch when generating spectrograms with different time resolutions (e.g., different hop lengths and/or higher sample rates). This strategy involves integrating a length regulator module between the encoder and the decoder of the acoustic model which interpolates the SSL features extracted from the source speech. To do this, we leverage PyTorch's interpolate4 function with its default settings.", "bbox": [ 112, 627, 489, 868 ], "page_idx": 3 }, { "type": "text", "text": "3 Experiments", "text_level": 1, "bbox": [ 509, 83, 655, 99 ], "page_idx": 3 }, { "type": "text", "text": "To evaluate the effectiveness of our VC approach, experiments across a range of different tasks and datasets were conducted. All the experiments were run on a Linux machine with a single NVIDIA Titan RTX GPU with 24 GB of RAM.", "bbox": [ 507, 109, 884, 187 ], "page_idx": 3 }, { "type": "text", "text": "The proposed system was tested as two variants: Proposed, our VC method using the conventional training strategy, and Proposed-F, the alternative system employing the cross-lingual finetuning strategy. We selected two baseline models for comparison: Soft-VC $^5$ (van Niekerk et al., 2021a) and kNN-VC $^6$ (Baas et al., 2023). Both excel in cross-lingual voice conversion tasks, demonstrating strong content intelligibility, accent preservation, and speech quality.", "bbox": [ 507, 190, 885, 351 ], "page_idx": 3 }, { "type": "text", "text": "3.1 Experimental Setup", "text_level": 1, "bbox": [ 507, 363, 714, 379 ], "page_idx": 3 }, { "type": "text", "text": "We conducted experiments for both intra- and crosslingual settings using LJSpeech (Ito and Johnson, 2017) as the target speaker dataset. We selected four languages for our evaluation: American English, European French, European Spanish, and Mandarin Chinese. For English, we used LibriSpeech (Panayotov et al., 2015); for French and Spanish, we used Multilingual LibriSpeech (MLS) (Pratap et al., 2020); for Mandarin Chinese, we used Aishell (Bu et al., 2017).", "bbox": [ 507, 384, 884, 545 ], "page_idx": 3 }, { "type": "text", "text": "To ensure a fair comparison, when training the LJSpeech model we used the same configuration as van Niekerk et al. (2021a), including their HiFiGAN vocoder pre-trained on LJSpeech, unless otherwise stated. More specifically, we used a $16\\mathrm{kHz}$ sampling rate and we set $n$ -MELs to 128, $s$ to 1024 and $d$ to 256.", "bbox": [ 507, 546, 882, 656 ], "page_idx": 3 }, { "type": "text", "text": "For cross-lingual fine-tuning, we initially pretrained three distinct acoustic models for each language using randomly selected 150h of audio data from the training sets of LibriSpeech, French MLS, Spanish MLS, and Aishell, respectively. The choice of 150h was based on Aishell's training set size in order to ensure that each language gets the same amount of training hours. Each pre-trained acoustic model was fine-tuned with only 2h of LJSpeech data for 15k steps using a batch size of 8. We found this number of hours to be optimal for the fine-tuning step through several experiments conducted using a validation set composed of 100 utterances from LJSpeech. We also observed that", "bbox": [ 507, 659, 882, 883 ], "page_idx": 3 }, { "type": "page_footnote", "text": "4https://pytorch.org/docs/stable/generated/ torch(nn.).functional.interpolate.html", "bbox": [ 114, 894, 463, 919 ], "page_idx": 3 }, { "type": "page_footnote", "text": "<sup>5</sup>https://github.com/bshall/soft-vc", "bbox": [ 529, 892, 791, 906 ], "page_idx": 3 }, { "type": "page_footnote", "text": "$^{6}$ https://github.com/bshall/knn-vc", "bbox": [ 529, 906, 784, 919 ], "page_idx": 3 }, { "type": "page_number", "text": "2240", "bbox": [ 480, 927, 521, 940 ], "page_idx": 3 }, { "type": "text", "text": "using less than $2\\mathrm{h}$ of data was insufficient to obtain a good overall quality.", "bbox": [ 112, 84, 487, 116 ], "page_idx": 4 }, { "type": "text", "text": "3.2 Evaluation Metrics", "text_level": 1, "bbox": [ 114, 128, 310, 142 ], "page_idx": 4 }, { "type": "text", "text": "We assessed intelligibility, speaker similarity, accent preservation and overall speech quality in subjective and objective evaluations.", "bbox": [ 112, 149, 489, 197 ], "page_idx": 4 }, { "type": "text", "text": "We created a test set for each language to be used as the source speech for conversion into LJSpeech. Each set consists of 60 utterances obtained by randomly selecting 3 utterances from 20 speakers (10 male and 10 female) extracted from: the test-clean set of LibriSpeech for English; the test set of Spanish MLS for Spanish; a set composed of the dev and test sets of French MLS combined for French; and a set composed of the dev and test sets of Aishell combined for Chinese.", "bbox": [ 112, 199, 489, 357 ], "page_idx": 4 }, { "type": "text", "text": "3.2.1 Objective Evaluations", "text_level": 1, "bbox": [ 112, 370, 346, 385 ], "page_idx": 4 }, { "type": "text", "text": "To evaluate the intelligibility of the converted speech, we measured word error rate (WER) and phoneme error rate (PER) between the source and converted speech using the Whisper Medium ASR model $^{7}$ (Radford et al., 2023) for English, French and Spanish and the FunASR model $^{8}$ (Gao et al., 2023) for Chinese. Lower error rates indicate more intelligible speech, as the original words/phonemes are still recognizable after conversion. We measured speaker similarity (SSIM) by using a trained speaker verification model $^{9}$ . Specifically, we computed the cosine similarity between the d-vectors (Heigold et al., 2015) of each converted sample and that of the target speaker. The target speaker embedding is generated by averaging the d-vectors of 50 utterances from LJSpeech.", "bbox": [ 112, 388, 489, 646 ], "page_idx": 4 }, { "type": "text", "text": "3.2.2 Subjective Evaluations", "text_level": 1, "bbox": [ 114, 658, 352, 671 ], "page_idx": 4 }, { "type": "text", "text": "We conducted subjective evaluations to assess both the overall quality and the native accent level of the converted audio.", "bbox": [ 112, 677, 487, 722 ], "page_idx": 4 }, { "type": "text", "text": "For each language, we selected all 60 utterances from the corresponding test set and converted them into LJSpeech with our two proposed methods and the two baselines, resulting in a total of 300 utterances per language (60 ground truth + 240 generated). Then, for both tests, 20 native-language participants were asked to listen to the samples, randomly mixed, and rate them. To evaluate the overall quality, we gathered a mean opinion score", "bbox": [ 112, 726, 489, 871 ], "page_idx": 4 }, { "type": "text", "text": "(MOS) based on a 5-point scale, where 1 stands for \"very poor\" and 5 for \"excellent\". The question asked was: \"How do you rate the overall quality of this sample?\". For accent assessment, we conducted an accent comparative mean opinion score (ACMOS) by asking all the participants to rate the samples based on how convincing the accent was perceived to be on a 5-point scale, where 1 stood for \"strong foreign accent\" and 5 for \"native\". The question asked was: \"Does the voice sound like that of a native speaker?\". For this test, Proposed-F was set as the baseline. A negative $\\Delta$ -ACMOS indicates that a system performs worse than the baseline, zero either refers to the baseline itself or indicates the same performance, and a positive value indicates an improvement over the baseline. The intra-lingual English-English scenario was not considered as the accent is consistent and correct after conversion.", "bbox": [ 507, 84, 884, 388 ], "page_idx": 4 }, { "type": "text", "text": "3.3 Results", "text_level": 1, "bbox": [ 507, 401, 613, 416 ], "page_idx": 4 }, { "type": "text", "text": "In this section, we demonstrate the effectiveness of our proposed approaches evaluating both intra- and cross-lingual scenarios. Additionally, we show that our systems are also capable of preserving the emotions of the source speakers.", "bbox": [ 507, 423, 882, 502 ], "page_idx": 4 }, { "type": "text", "text": "3.3.1 Speaker and Content Disentanglement", "text_level": 1, "bbox": [ 507, 514, 870, 530 ], "page_idx": 4 }, { "type": "text", "text": "First, we show that any disentanglement step applied to the SSL representations, while effective in intra-lingual scenario, results in a significant performance loss in cross-lingual tasks. We compared the results obtained by directly using the output of the content encoder against some disentanglement strategies applied on top of the output of the 15th layer of WavLM-Large: discretization, perturbation, and per-utterance standardization. We omitted the soft strategy as it is included in Soft-VC.", "bbox": [ 507, 533, 882, 694 ], "page_idx": 4 }, { "type": "text", "text": "For discretization, we followed the procedure outlined in van Niekerk et al. (2021a); for perturbation, we followed the procedure presented in Choi et al. (2021); and for per-utterance standardization, we followed the procedure described in van Niekerk et al. (2021b). Table 1 (middle) reports intelligibility in terms of WER and PER, and speaker similarity (SSIM) of each model. Compared to the other methods, the proposed systems significantly enhance the intelligibility across all languages in cross-lingual scenarios while also maintaining very good performance for English. Particularly notable is the significant improvement for Mandarin Chinese, with the WER decreasing from around", "bbox": [ 507, 696, 884, 920 ], "page_idx": 4 }, { "type": "page_footnote", "text": "<sup>7</sup>https://huggingface.co/openai/whisper-medium", "bbox": [ 134, 879, 478, 892 ], "page_idx": 4 }, { "type": "page_footnote", "text": "<sup>8</sup>https://github.com/modelscope/FunASR", "bbox": [ 136, 894, 416, 906 ], "page_idx": 4 }, { "type": "page_footnote", "text": "<sup>9</sup>https://github.com/resemble-ai/Resemblyzer", "bbox": [ 136, 906, 462, 919 ], "page_idx": 4 }, { "type": "page_number", "text": "2241", "bbox": [ 480, 928, 517, 940 ], "page_idx": 4 }, { "type": "table", "img_path": "images/4c08b8f968fe2a7e8259f8c891970b67cc0294547314906f64cab222b64516db.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td></td><td colspan=\"5\">English</td><td colspan=\"5\">French</td></tr><tr><td></td><td>WER</td><td>PER</td><td>SSIM</td><td>MOS</td><td>Δ-ACMOS</td><td>WER</td><td>PER</td><td>SSIM</td><td>MOS</td><td>Δ-ACMOS</td></tr><tr><td>Ground truth</td><td>1.25</td><td>0.22</td><td>-</td><td>3.75 ± 0.04</td><td>-</td><td>8.74</td><td>2.70</td><td>-</td><td>3.77 ± 0.05</td><td>-</td></tr><tr><td>Discretization</td><td>18.81</td><td>10.28</td><td>90.86</td><td>-</td><td>-</td><td>70.00</td><td>60.54</td><td>90.54</td><td>-</td><td>-</td></tr><tr><td>Perturbation</td><td>2.82</td><td>0.88</td><td>92.42</td><td>-</td><td>-</td><td>27.17</td><td>12.08</td><td>90.84</td><td>-</td><td>-</td></tr><tr><td>Utterance std</td><td>4.76</td><td>2.56</td><td>88.62</td><td>-</td><td>-</td><td>15.75</td><td>5.58</td><td>84.03</td><td>-</td><td>-</td></tr><tr><td>Soft-VC</td><td>2.63</td><td>0.73</td><td>91.12</td><td>3.88 ± 0.04</td><td>-</td><td>19.13</td><td>6.91</td><td>89.16</td><td>3.73 ± 0.05</td><td>-0.13</td></tr><tr><td>kNN-VC</td><td>2.75</td><td>0.99</td><td>84.70</td><td>3.94 ± 0.04</td><td>-</td><td>16.55</td><td>6.24</td><td>81.26</td><td>3.82 ± 0.05</td><td>-0.10</td></tr><tr><td>Proposed</td><td>3.01</td><td>1.09</td><td>90.22</td><td>3.94 ± 0.05</td><td>-</td><td>14.16</td><td>5.00</td><td>88.67</td><td>3.85 ± 0.05</td><td>-0.09</td></tr><tr><td>Proposed-F</td><td>2.85</td><td>0.88</td><td>89.70</td><td>3.96 ± 0.04</td><td>-</td><td>12.43</td><td>4.02</td><td>88.25</td><td>3.83 ± 0.04</td><td>0.0</td></tr><tr><td></td><td colspan=\"5\">Spanish</td><td colspan=\"5\">Mandarin Chinese</td></tr><tr><td>Ground truth</td><td>6.31</td><td>1.52</td><td>-</td><td>3.95 ± 0.04</td><td>-</td><td>7.72</td><td>0.43</td><td>-</td><td>4.07 ± 0.08</td><td>-</td></tr><tr><td>Discretization</td><td>75.04</td><td>66.74</td><td>92.33</td><td>-</td><td>-</td><td>90.01</td><td>77.35</td><td>87.26</td><td>-</td><td>-</td></tr><tr><td>Perturbation</td><td>17.95</td><td>6.52</td><td>89.64</td><td>-</td><td>-</td><td>47.73</td><td>20.03</td><td>87.14</td><td>-</td><td>-</td></tr><tr><td>Utterance std</td><td>12.51</td><td>3.66</td><td>85.43</td><td>-</td><td>-</td><td>28.34</td><td>5.47</td><td>82.27</td><td>-</td><td>-</td></tr><tr><td>Soft-VC</td><td>14.78</td><td>5.02</td><td>89.17</td><td>3.80 ± 0.04</td><td>-0.08</td><td>51.82</td><td>21.04</td><td>86.15</td><td>3.01 ± 0.08</td><td>-1.25</td></tr><tr><td>kNN-VC</td><td>11.91</td><td>3.47</td><td>80.31</td><td>3.83 ± 0.04</td><td>-0.06</td><td>35.24</td><td>9.78</td><td>77.50</td><td>3.25 ± 0.08</td><td>-0.47</td></tr><tr><td>Proposed</td><td>9.78</td><td>2.56</td><td>88.13</td><td>3.87 ± 0.03</td><td>-0.05</td><td>19.95</td><td>3.64</td><td>84.78</td><td>3.67 ± 0.08</td><td>-0.03</td></tr><tr><td>Proposed-F</td><td>8.61</td><td>2.21</td><td>86.53</td><td>3.86 ± 0.04</td><td>0.0</td><td>18.39</td><td>3.33</td><td>83.02</td><td>3.73 ± 0.08</td><td>0.0</td></tr></table>", "bbox": [ 117, 82, 878, 397 ], "page_idx": 5 }, { "type": "text", "text": "Table 1: Objective and subjective evaluation. (middle) Results (\\%) in terms of intelligibility (W/PER ↓) and speaker similarity (SSMI ↑) considering three speaker and content disentanglement strategies: discretization, perturbation and per-utterance standardization. (bottom) W/PER, SSIM, overall quality (MOS ↑) with 95% confidence intervals, and the delta of the Accent Comparative MOS ( $\\Delta$ -ACMOS) for the proposed approaches and the baseline systems.", "bbox": [ 112, 406, 882, 464 ], "page_idx": 5 }, { "type": "text", "text": "$30\\%$ to $80\\%$ , and the PER decreasing from approximately $34\\%$ to $95\\%$ . Unlike perturbation, which fails to maintain the same performance observed for English, the overall effectiveness of the per-utterance standardization is significant. However, it does not adequately capture the target speaker's identity like the alternative approaches do. On the other hand, the speaker identity of our systems is comparable to that of other techniques, indicating that in an A2O VC setup, the disentanglement steps are not strictly required.", "bbox": [ 112, 495, 489, 671 ], "page_idx": 5 }, { "type": "text", "text": "3.3.2 Objective and Subjective Evaluation", "text_level": 1, "bbox": [ 112, 688, 460, 703 ], "page_idx": 5 }, { "type": "text", "text": "After the initial assessment, we evaluated the quality of the two proposed methods by comparing our outcomes with those of the baselines. Table 1 (bottom) reports WER/PER and SSIM, along with MOS and ACMOS for each model. As observed previously, intelligibility remains clearly superior for the proposed systems for all the cross-lingual tasks and is comparable to that of the baselines for English. In addition, the MOS scores show that both proposed approaches outperform the baselines in terms of overall quality. While kNN-VC shows comparable MOS values, it fails to maintain good speaker similarity. Interestingly, the MOS values", "bbox": [ 112, 711, 489, 921 ], "page_idx": 5 }, { "type": "text", "text": "of the ground truth are lower than those of all models for English and French. We hypothesize that VC systems can act as denoisers over noisy inputs and that most likely influenced listeners' assignment of MOS scores. As for the accent assessment, Soft-VC and kNN-VC consistently exhibit negative delta values for the ACMOS, meaning that the generated samples are perceived as \"less native-sounding\" across all languages. In conclusion, while both proposed approaches outperform the baselines, Proposed-F leads to better intelligibility, higher MOS, and is also data efficient.", "bbox": [ 507, 495, 884, 688 ], "page_idx": 5 }, { "type": "text", "text": "3.3.3 Ablation: Emotions Maintenance", "text_level": 1, "bbox": [ 507, 703, 831, 719 ], "page_idx": 5 }, { "type": "text", "text": "In this section we show our system's ability to preserve source emotions during VC. To achieve this, we extended the LJSpeech dataset by incorporating the four emotions in the Emotional Speech Dataset (ESD) (Zhou et al., 2022): angry, surprise, sad, and happy. As we exclusively focus on English for this experiment, we converted all emotional utterances from the 10 English speakers of ESD into LJSpeech using our highest quality setup. The resulting corpus, referred to as Emo-LJSpeech, consists of roughly 35h of data, 11h of which are created through VC.", "bbox": [ 505, 728, 884, 921 ], "page_idx": 5 }, { "type": "page_number", "text": "2242", "bbox": [ 480, 927, 521, 940 ], "page_idx": 5 }, { "type": "table", "img_path": "images/8978ee99c94046cbc769dda9366055ba50e4e1f0f0dbbff5179a6e06d6a66c97.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td></td><td>WER</td><td>PER</td><td>SSIM</td><td>MOS</td><td>Δ-ECMOS Angry</td><td>Δ-ECMOS Happy</td><td>Δ-ECMOS Sad</td><td>Δ-ECMOS Surprise</td></tr><tr><td>Ground truth</td><td>10.08</td><td>4.89</td><td>-</td><td>3.95 ± 0.04</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Proposed</td><td>11.01</td><td>5.53</td><td>89.54</td><td>3.90 ± 0.05</td><td>+0.39</td><td>+0.63</td><td>+0.41</td><td>+0.92</td></tr><tr><td>Proposed-F</td><td>11.55</td><td>5.80</td><td>88.37</td><td>3.80 ± 0.04</td><td>+0.86</td><td>+0.74</td><td>+0.24</td><td>+0.80</td></tr></table>", "bbox": [ 117, 82, 878, 149 ], "page_idx": 6 }, { "type": "text", "text": "Table 2: Results (%) measuring intelligibility (W/PER ↓), speaker similarity (SSMI ↑), overall quality (MOS ↑) with 95% confidence intervals, and the delta of the Emotion Comparative Mean Opinion Score (Δ-ECMOS) vs neutral samples for the emotional experiment.", "bbox": [ 112, 158, 882, 202 ], "page_idx": 6 }, { "type": "text", "text": "To ensure compatibility with the original sample rate of LJSpeech (22050 Hz), we implemented the approach outlined in Section 2.5 to address length disparities between source and target features. We set $n$ -MELs to 80, $n$ -fft to 1024, window length to 1024, and hop length to 256. The acoustic model was trained on LJSpeech with a batch size of 32 using AdamW (Loshchilov and Hutter, 2019) with an initial learning rate of 0.0001 and a weight decay of 0.01 for 200k steps. Throughout the training, the learning rate was linearly decreased after a warm-up period in which it was linearly increased for the first 4k training steps. The above hyper-parameters are the results of an extensive hyper-parameters search phase conducted using a validation set of 100 utterances from LJSpeech. For cross-lingual fine-tuning, we pre-trained the acoustic model on 13h of data from the English subset of ESD (including neutral data). We then fine-tuned it with 2h of LJSpeech for 15k steps using a batch size of 8. For the vocoder, we used an internal implementation of HiFi-GAN working at 22050 Hz trained on a proprietary multi-speaker dataset.", "bbox": [ 115, 233, 490, 602 ], "page_idx": 6 }, { "type": "text", "text": "To assess the quality of the newly generated emotional corpus, we created a test set by randomly selecting, for each of the 4 emotions, 3 utterances from 5 speakers extracted from the ESD English subset, resulting in a total of 60 emotional utterances. We then conducted objective and subjective evaluations by comparing the ground truth recordings with the 60 utterances converted into LJSpeech using the Proposed and Proposed-F models, trained as explained earlier. In addition to assessing WER/PER, SSIM, and MOS, we also analysed the proposed systems' capacity to preserve source emotions through an emotion comparative mean opinion score (ECMOS). The test was conducted over each of the four emotions (referred to as $e$ ). 20 native participants rated the samples on a 5-point scale, indicating the extent to which the corresponding emotion (e.g., happy) was perceived, with 1 denoting \"totally not $e$ \" and 5 representing", "bbox": [ 112, 615, 489, 921 ], "page_idx": 6 }, { "type": "text", "text": "\"very $e$ \". The question was: \"Does the voice sound $e$ ?\" For this test, alongside the 60 emotional utterances, 60 corresponding neutral-style utterances were also generated using both models. These neutral samples served as reference data. We report the $\\Delta$ -ECMOS which reflects the extent to which a certain emotion was perceived after VC compared to its neutral counterpart. The results are shown in Table 2. The intelligibility and overall quality are very similar to those of the ground truth recordings. Unlike previous experiments, Proposed outperformed Proposed-F. This could be attributed to the limited amount of data used for the pre-training (13h compared to the 150h used in previous experiments). We defer more detailed analysis of this to future work. However, both systems effectively preserve source emotions, as indicated by consistently positive $\\Delta$ -ECMOS scores.", "bbox": [ 505, 233, 885, 521 ], "page_idx": 6 }, { "type": "text", "text": "4 Conclusion", "text_level": 1, "bbox": [ 507, 548, 640, 563 ], "page_idx": 6 }, { "type": "text", "text": "With this work we have developed an A2O VC system capable of generating human-level native-sounding polyglot voices without relying on multilingual data from the target speaker. We showed how several content and speaker disentanglement strategies applied to SSL features do not perform well in cross-lingual scenarios. To overcome this, we have demonstrated that by directly leveraging SSL features and performing cross-lingual fine-tuning, we are able to enhance the intelligibility and accent of the converted voices. Furthermore, we have illustrated that our models can preserve source emotions throughout the conversion process. Our experiments showcased improvements over strong baseline methods across all the examined metrics. Moreover, MOS tests conducted with multiple native participants revealed that our outcomes closely approximate human recordings in terms of overall quality. For future research, our aim is to explore the creation of high-quality polyglot voices in an A2A setup to further reduce data requirements.", "bbox": [ 505, 583, 884, 921 ], "page_idx": 6 }, { "type": "page_number", "text": "2243", "bbox": [ 480, 928, 519, 940 ], "page_idx": 6 }, { "type": "text", "text": "Limitations", "text_level": 1, "bbox": [ 114, 84, 220, 98 ], "page_idx": 7 }, { "type": "text", "text": "To achieve high-quality polyglot voices, we focused on A2O and thus target-specific acoustic model. This approach requires a substantial amount of training data. While fine-tuning has helped reduce the required data, 2h can still be considered a significant amount. We leave to future research the development of approaches aimed at further reducing the amount of data needed to train models for specific target speakers.", "bbox": [ 112, 110, 489, 254 ], "page_idx": 7 }, { "type": "text", "text": "We conducted our experiments on a single female speaker dataset (LJSpeech). Having limited testing resources, we decided to prioritize the number of experiments on the polyglot aspect over having multiple speakers. This allowed us to show that our model can work correctly with significantly different languages.", "bbox": [ 112, 255, 489, 367 ], "page_idx": 7 }, { "type": "text", "text": "Based on the experiments conducted, the SSIM of the proposed methods is slightly lower, though comparable, to that of other approaches. This discrepancy likely stems from our direct use of SSL features without additional refinements. However, sacrificing a small degree of speaker similarity enhances other aspects such as intelligibility and accent, particularly in cross-lingual tasks. We believe that implementing a more efficient disentanglement scheme will enable us to achieve optimal quality across all components. This is a direction we plan to pursue in future research.", "bbox": [ 115, 369, 489, 561 ], "page_idx": 7 }, { "type": "text", "text": "Acknowledgments", "text_level": 1, "bbox": [ 114, 574, 278, 590 ], "page_idx": 7 }, { "type": "text", "text": "(Portions of) the research in this paper used the ESD Database made available by the HLT lab, National University of Singapore, Singapore.", "bbox": [ 112, 600, 489, 650 ], "page_idx": 7 }, { "type": "text", "text": "References", "text_level": 1, "bbox": [ 114, 677, 213, 690 ], "page_idx": 7 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "Masanobu Abe, Kiyohiro Shikano, and Hisao Kuwabara. 1990. Cross-language voice conversion. International Conference on Acoustics, Speech, and Signal Processing, pages 345-348 vol.1.", "Matthew Baas, Benjamin van Niekerk, and Herman Kamper. 2023. Voice Conversion With Just Nearest Neighbors. In Proc. INTERSPEECH 2023, pages 2053-2057.", "Alexei Baevski, Wei-Ning Hsu, Alexis Conneau, and Michael Auli. 2021. Unsupervised speech recognition. Advances in Neural Information Processing Systems, 34:27826-27839.", "Alexei Baevski, Henry Zhou, Abdel rahman Mohamed, and Michael Auli. 2020. wav2vec 2.0: A framework" ], "bbox": [ 115, 700, 489, 919 ], "page_idx": 7 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "for self-supervised learning of speech representations. ArXiv, abs/2006.11477.", "Hui Bu, Jiayu Du, Xingyu Na, Bengu Wu, and Hao Zheng. 2017. Aishell-1: An open-source mandarin speech corpus and a speech recognition baseline. 2017 20th Conference of the Oriental Chapter of the International Coordinating Committee on Speech Databases and Speech I/O Systems and Assessment (O-COCOSDA), pages 1-5.", "Guoguo Chen, Shuzhou Chai, Guan-Bo Wang, Jiayu Du, Wei-Qiang Zhang, Chao Weng, Dan Su, Daniel Povey, Jan Trmal, Junbo Zhang, Mingjie Jin, Sanjeev Khudanpur, Shinji Watanabe, Shuaijiang Zhao, Wei Zou, Xiangang Li, Xuchen Yao, Yongqing Wang, Zhao You, and Zhiyong Yan. 2021a. Gigaspeech: An evolving, multi-domain asr corpus with 10,000 hours of transcribed audio. In Proc. Interspeech 2021.", "Sanyuan Chen, Chengyi Wang, Zhengyang Chen, Yu Wu, Shujie Liu, Zhuo Chen, Jinyu Li, Naoyuki Kanda, Takuya Yoshioka, Xiong Xiao, Jian Wu, Long Zhou, Shuo Ren, Yanmin Qian, Yao Qian, Micheal Zeng, and Furu Wei. 2021b. Wavlm: Large-scale self-supervised pre-training for full stack speech processing. IEEE Journal of Selected Topics in Signal Processing, 16:1505-1518.", "Hyeong-Seok Choi, Juheon Lee, Wan Soo Kim, Jie Hwan Lee, Hoon Heo, and Kyogu Lee. 2021. Neural analysis and synthesis: Reconstructing speech from self-supervised representations. ArXiv, abs/2110.14513.", "Ju-chieh Chou and Hung-yi Lee. 2019. One-shot voice conversion by separating speaker and content representations with instance normalization. In INTER-SPEECH, pages 664-668.", "Zhifu Gao, Zerui Li, Jiaming Wang, Haoneng Luo, Xian Shi, Mengzhe Chen, Yabin Li, Lingyun Zuo, Zhihao Du, Zhangyu Xiao, and Shiliang Zhang. 2023. Funasr: A fundamental end-to-end speech recognition toolkit. In INTERSPEECH.", "Georg Heigold, Ignacio Moreno, Samy Bengio, and Noam M. Shazeer. 2015. End-to-end text-dependent speaker verification. 2016 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5115-5119.", "Wei-Ning Hsu, Benjamin Bolte, Yao-Hung Hubert Tsai, Kushal Lakhotia, Ruslan Salakhutdinov, and Abdel rahman Mohamed. 2021a. Hubert: Self-supervised speech representation learning by masked prediction of hidden units. IEEE/ACM Transactions on Audio, Speech, and Language Processing, 29:3451-3460.", "Wei-Ning Hsu, Yao-Hung Hubert Tsai, Benjamin Bolte, Ruslan Salakhutdinov, and Abdel rahman Mohamed. 2021b. Hubert: How much can a bad teacher benefit asr pre-training? ICASSP 2021 - 2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6533-6537." ], "bbox": [ 510, 85, 884, 920 ], "page_idx": 7 }, { "type": "page_number", "text": "2244", "bbox": [ 480, 928, 519, 940 ], "page_idx": 7 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "Wen-Chin Huang, Tomoki Hayashi, Shinji Watanabe, and Tomoki Toda. 2020. The sequence-to-sequence baseline for the voice conversion challenge 2020: Cascading asr and tts. ArXiv, abs/2010.02434.", "Wen-Chin Huang, Shu wen Yang, Tomoki Hayashi, Hung yi Lee, Shinji Watanabe, and Tomoki Toda. 2021. S3prl-vc: Open-source voice conversion framework with self-supervised speech representations. ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6552-6556.", "Shehzeen Samarah Hussain, Paarth Neekhara, Jocelyn Huang, Jason Li, and Boris Ginsburg. 2023. Acevc: Adaptive and controllable voice conversion using explicitly disentangled self-supervised speech representations. ICASSP 2023 - 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1-5.", "Keith Ito and Linda Johnson. 2017. The LJ speech dataset. https://keithito.com/LJ-Speech-Dataset/.", "Xin Jin and Jiawei Han. 2010. K-Means Clustering, pages 563-564. Springer US, Boston, MA.", "Jacob Kahn, Morgane Rivière, Weiyi Zheng, Evgeny Kharitonov, Qiantong Xu, Pierre-Emmanuel Mazar'e, Julien Karadayi, Vitaliy Liptchinsky, Ronan Collobert, Christian Fuegen, Tatiana Likhomanenko, Gabriel Synnaeve, Armand Joulin, Abdel rahman Mohamed, and Emmanuel Dupoux. 2019. Librilight: A benchmark for asr with limited or no supervision. ICASSP 2020 - 2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 7669-7673.", "Jungil Kong, Jaehyeon Kim, and Jaekyoung Bae. 2020. Hifi-gan: Generative adversarial networks for efficient and high fidelity speech synthesis. In Advances in Neural Information Processing Systems, volume 33, pages 17022-17033. Curran Associates, Inc.", "Jingyi Li, Weiping Tu, and Li Xiao. 2022. Freevc: Towards high-quality text-free one-shot voice conversion. ICASSP 2023 - 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1-5.", "Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In International Conference on Learning Representations.", "Vassil Panayotov, Guoguo Chen, Daniel Povey, and Sanjeev Khudanpur. 2015. Librispeech: An asr corpus based on public domain audio books. In 2015 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5206-5210.", "Adam Polyak, Yossi Adi, Jade Copet, Eugene Kharitonov, Kushal Lakhotia, Wei-Ning Hsu, Abdel rahman Mohamed, and Emmanuel Dupoux. 2021. Speech resynthesis from discrete disentangled self-supervised representations. In Interspeech." ], "bbox": [ 115, 85, 485, 920 ], "page_idx": 8 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "Vineel Pratap, Qiantong Xu, Anuroop Sriram, Gabriel Synnaeve, and Ronan Collobert. 2020. Mls: A large-scale multilingual dataset for speech research. In *Interspeech* 2020, 21st Annual Conference of the International Speech Communication Association, Virtual Event, Shanghai, China, 25-29 October 2020, pages 2757-2761. ISCA.", "Kaizhi Qian, Yang Zhang, Heting Gao, Junrui Ni, Cheng-I Lai, David Cox, Mark A. Hasegawa-Johnson, and Shiyu Chang. 2022. Contentvec: An improved self-supervised speech representation by disentangling speakers. In International Conference on Machine Learning.", "Zengyi Qin, Wenliang Zhao, Xumin Yu, and Xin Sun. 2023. Openvoice: Versatile instant voice cloning. ArXiv, abs/2312.01479.", "Alec Radford, Jong Wook Kim, Tao Xu, Greg Brockman, Christine McLeavey, and Ilya Sutskever. 2023. Robust speech recognition via large-scale weak supervision. In International Conference on Machine Learning, pages 28492-28518. PMLR.", "Jonathan Shen, Ruoming Pang, Ron J. Weiss, Mike Schuster, Navdeep Jaitly, Zongheng Yang, Z. Chen, Yu Zhang, Yuxuan Wang, R. J. Skerry-Ryan, Rif A. Saurous, Yannis Agiomyrgiannakis, and Yonghui Wu. 2017. Natural tts synthesis by conditioning wavenet on mel spectrogram predictions. 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 4779-4783.", "Nitish Srivastava, Geoffrey E. Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. 2014. Dropout: a simple way to prevent neural networks from overfitting. J. Mach. Learn. Res., 15:1929-1958.", "Lifa Sun, Kun Li, Hao Wang, Shiyin Kang, and Helen M. Meng. 2016. Phonetic posteriograms for many-to-one voice conversion without parallel data training. 2016 IEEE International Conference on Multimedia and Expo (ICME), pages 1-6.", "Benjamin van Niekerk, Marc-Andre Carbonneau, Julian Zaidi, Matthew Baas, Hugo Seute, and Herman Kamper. 2021a. A comparison of discrete and soft speech units for improved voice conversion. ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6562-6566.", "Benjamin van Niekerk, Leanne Nortje, Matthias Baas, and Herman Kamper. 2021b. Analyzing speaker information in self-supervised models to improve zero-resource speech processing. ArXiv, abs/2108.00917.", "Changhan Wang, Morgane Riviere, Ann Lee, Anne Wu, Chaitanya Talnikar, Daniel Haziza, Mary Williamson, Juan Pino, and Emmanuel Dupoux. 2021. VoxPopuli: A large-scale multilingual speech corpus for representation learning, semi-supervised learning and interpretation. In Proceedings of the 59th Annual" ], "bbox": [ 510, 85, 880, 920 ], "page_idx": 8 }, { "type": "page_number", "text": "2245", "bbox": [ 480, 928, 519, 940 ], "page_idx": 8 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 993-1003, Online. Association for Computational Linguistics.", "Zi-Hua Zhang, Long Zhou, Chengyi Wang, Sanyuan Chen, Yu Wu, Shujie Liu, Zhuo Chen, Yanqing Liu, Huaming Wang, Jinyu Li, Lei He, Sheng Zhao, and Furu Wei. 2023. Speak foreign languages with your own voice: Cross-lingual neural codec language modeling. ArXiv, abs/2303.03926.", "Yi Zhao, Wen-Chin Huang, Xiaohai Tian, Junichi Yamagishi, Rohan Kumar Das, Tomi H. Kinnunen, Zhenhua Ling, and Tomoki Toda. 2020. Voice conversion challenge 2020: Intra-lingual semi-parallel and cross-lingual voice conversion. ArXiv, abs/2008.12527.", "Kun Zhou, Terrak Sisman, Rui Liu, and Haizhou Li. 2022. Emotional voice conversion: Theory, databases and esd. Speech Communication, 137:1-18." ], "bbox": [ 115, 85, 487, 376 ], "page_idx": 9 }, { "type": "page_number", "text": "2246", "bbox": [ 480, 928, 519, 940 ], "page_idx": 9 }]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848[ [ { "type": "title", "bbox": [ 0.13, 0.09, 0.87, 0.13 ], "angle": 0, "content": "Enhancing Polyglot Voices by Leveraging Cross-Lingual Fine-Tuning in Any-to-One Voice Conversion" }, { "type": "text", "bbox": [ 0.178, 0.146, 0.825, 0.165 ], "angle": 0, "content": "Giuseppe Ruggiero\\(^{1,2}\\), Matteo Testa\\(^{2}\\), Jurgen Van de Walle\\(^{2}\\), Luigi Di Caro\\(^{1}\\)" }, { "type": "text", "bbox": [ 0.32, 0.165, 0.68, 0.18 ], "angle": 0, "content": "<sup>1</sup>Università degli studi di Torino, Turin, Italy" }, { "type": "text", "bbox": [ 0.398, 0.181, 0.6, 0.197 ], "angle": 0, "content": "\\(^{2}\\)Cerence Inc, Turin Italy" }, { "type": "text", "bbox": [ 0.328, 0.198, 0.672, 0.214 ], "angle": 0, "content": "{giuseppe.ruggiero,luigi DICaro} \\(@\\) unito.it" }, { "type": "text", "bbox": [ 0.303, 0.215, 0.696, 0.23 ], "angle": 0, "content": "{matteo.testa, jurgen.vandewalle} @cerence.com" }, { "type": "title", "bbox": [ 0.261, 0.261, 0.341, 0.277 ], "angle": 0, "content": "Abstract" }, { "type": "text", "bbox": [ 0.142, 0.292, 0.461, 0.549 ], "angle": 0, "content": "The creation of artificial polyglot voices remains a challenging task, despite considerable progress in recent years. This paper investigates self-supervised learning for voice conversion to create native-sounding polyglot voices. We introduce a novel cross-lingual any-to-one voice conversion system that is able to preserve the source accent without the need for multilingual data from the target speaker. In addition, we show a novel cross-lingual fine-tuning strategy that further improves the accent and reduces the training data requirements. Objective and subjective evaluations with English, Spanish, French and Mandarin Chinese confirm that our approach improves on state-of-the-art methods, enhancing the speech intelligibility and overall quality of the converted speech, especially in cross-lingual scenarios." }, { "type": "title", "bbox": [ 0.115, 0.564, 0.26, 0.579 ], "angle": 0, "content": "1 Introduction" }, { "type": "text", "bbox": [ 0.113, 0.591, 0.49, 0.848 ], "angle": 0, "content": "In recent years, advancements in speech synthesis (Zhang et al., 2023; Qin et al., 2023; van Niekerk et al., 2021a) have significantly improved the quality of artificial polyglot voices. Several noteworthy studies in cross-lingual voice conversion (XVC) merit attention, especially some any-to-one \\((\\mathrm{A}20\\mathrm{VC})^{2}\\) variants (van Niekerk et al., 2021a; Huang et al., 2021). The aim of XVC is to convert source voices into target voices without changing the linguistic content, even when source and target speak different languages (Abe et al., 1990). From an information perspective, VC can be accomplished by initially disentangling the source speech into representations describing the linguistic content and speaker characteristics and then synthesizing the converted speech from the extracted" }, { "type": "text", "bbox": [ 0.509, 0.262, 0.882, 0.294 ], "angle": 0, "content": "linguistic content while incorporating the identity of the target speaker (Huang et al., 2021)." }, { "type": "text", "bbox": [ 0.508, 0.295, 0.885, 0.55 ], "angle": 0, "content": "To disentangle content and speaker information, an ASR model trained on a labeled dataset is frequently employed to extract the supervised spoken content representation, such as text (Huang et al., 2020) or phonetic posteriogram (PPG) (Sun et al., 2016). However, despite its promising results in VC, this approach encounters several limitations. First, the assembly of labeled datasets can be prohibitively expensive, especially in low-resource settings like the XVC scenario (Zhao et al., 2020). Second, the system's sensitivity to ASR errors can lead to potential mispronunciations or inaccuracies in conversion. Finally, text and PPG do not capture all linguistic nuances such as accent, expressions and style resulting in neutral-sounding synthesized speech (Hussain et al., 2023)." }, { "type": "text", "bbox": [ 0.508, 0.552, 0.884, 0.921 ], "angle": 0, "content": "In several recent works (van Niekerk et al., 2021a; Huang et al., 2021; Polyak et al., 2021), self-supervised learning (SSL) is used to train models for speech synthesis. This approach is primarily driven by the following advantages offered by SSL: 1) It requires only large-scale unlabeled data to learn rich and compact speech representations; 2) Numerous large-scale pre-trained SSL models are publicly available, including Wav2vec2 (Baevski et al., 2020), HuBERT (Hsu et al., 2021a), and WavLM (Chen et al., 2021b); 3) These models have been shown to generalize well across various languages, even though some of them have been trained on English data only. Since SSL representations contain a significant amount of information, including phonetic and speaker details, many studies (Huang et al., 2021; Polyak et al., 2021) have attempted to discretize them to extract disentangled linguistic content. However, while effective at removing speaker information, discretizing SSL representations results in lossy compression, which leads to mispronunciations in the converted speech (Qian et al., 2022)." }, { "type": "page_footnote", "bbox": [ 0.113, 0.858, 0.488, 0.884 ], "angle": 0, "content": "1Audio samples are available at: https://giuseppe-ruggiero.github.io/a2o-vc-demo/" }, { "type": "page_footnote", "bbox": [ 0.113, 0.884, 0.488, 0.921 ], "angle": 0, "content": "2The aim of A2O VC is to convert speech from any speaker, including those unseen during training, to that of a fixed target speaker." }, { "type": "list", "bbox": [ 0.113, 0.858, 0.488, 0.921 ], "angle": 0, "content": null }, { "type": "page_number", "bbox": [ 0.48, 0.928, 0.521, 0.941 ], "angle": 0, "content": "2237" }, { "type": "footer", "bbox": [ 0.218, 0.946, 0.78, 0.973 ], "angle": 0, "content": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 2237-2246 November 12-16, 2024 ©2024 Association for Computational Linguistics" } ], [ { "type": "image", "bbox": [ 0.137, 0.084, 0.863, 0.134 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.286, 0.144, 0.71, 0.16 ], "angle": 0, "content": "Figure 1: High-level overview of the voice conversion system." }, { "type": "text", "bbox": [ 0.113, 0.185, 0.49, 0.537 ], "angle": 0, "content": "To address this issue, alternative disentanglement strategies have been proposed. Soft-VC (van Niekerk et al., 2021a) creates soft speech units starting from discrete ones, which are obtained by applying k-means (Jin and Han, 2010) clustering over the output of a pre-trained HuBERT model. Specifically, a network is trained to predict a distribution over the discrete units to preserve more content information and thus correct mispronunciations. Neural Analysis and Synthesis (NANSY) (Choi et al., 2021) introduces information perturbation (prior to the SSL model) as a way to disentangle speaker-related information from other aspects of speech. In van Niekerk et al. (2021b), utterance-level standardization is used to remove speaker-specific information. However, while these methods are better at improving intelligibility than discretization, our findings indicate that the linguistic content is still compromised, especially in cross-lingual scenarios. Furthermore, other speaker-related features (e.g., the accent) are also distorted, as highlighted in Qian et al. (2022)." }, { "type": "text", "bbox": [ 0.113, 0.539, 0.49, 0.699 ], "angle": 0, "content": "Recently, a variety of more versatile systems have emerged. One such example is kNN-VC (Baas et al., 2023), an any-to-any VC (A2A VC) approach that extracts frame-wise WavLM representations for both source and target speech. It then converts by directly replacing each frame of the source representation with its nearest neighbors in the target representation set. This strategy allows SSL features to be used without any further disentanglement step." }, { "type": "text", "bbox": [ 0.113, 0.7, 0.49, 0.811 ], "angle": 0, "content": "We propose an A2O VC system similar to that of van Niekerk et al. (2021a) except it learns to disentangle content information without the need for supplementary steps like discretization, and it can both enhance cross-lingual generation and reduce the training data requisites. Our main contributions are as follows:" }, { "type": "text", "bbox": [ 0.136, 0.817, 0.49, 0.898 ], "angle": 0, "content": "- We show that a bottleneck information extractor similar to that of Li et al. (2022) is sufficient to improve intelligibility in cross-lingual scenarios without compromising on speech quality and target speaker identity." }, { "type": "text", "bbox": [ 0.136, 0.906, 0.49, 0.922 ], "angle": 0, "content": "- We propose a cross-lingual pre-training fine" }, { "type": "list", "bbox": [ 0.136, 0.817, 0.49, 0.922 ], "angle": 0, "content": null }, { "type": "text", "bbox": [ 0.545, 0.185, 0.885, 0.25 ], "angle": 0, "content": "tuning strategy. This approach not only further enhances VC performance in cross-lingual scenarios but also allows low-quality data to be used for data intensive pre-training." }, { "type": "title", "bbox": [ 0.509, 0.26, 0.715, 0.275 ], "angle": 0, "content": "2 Model Architecture" }, { "type": "text", "bbox": [ 0.508, 0.286, 0.885, 0.431 ], "angle": 0, "content": "The system consists of three components: a content encoder, an acoustic model, and a vocoder (Figure 1). The content encoder extracts speech representations from an audio of any speaker, the acoustic model translates these representations into a mel spectrogram of the target speaker, and the vocoder converts the resulting mel spectrogram into a time-domain waveform. For both training and inference, only audio data is required." }, { "type": "title", "bbox": [ 0.509, 0.441, 0.706, 0.456 ], "angle": 0, "content": "2.1 Problem Definition" }, { "type": "text", "bbox": [ 0.508, 0.461, 0.884, 0.574 ], "angle": 0, "content": "Consider a dataset \\(D\\) of a target speaker containing \\(M\\) utterances in the time domain. Let us denote the \\(i\\)-th utterance of the target speaker as \\(u_{i}\\), its features extracted by a pre-trained SSL model as \\(v_{i} \\in \\mathbb{R}^{s}\\), and its mel spectrogram as \\(x_{i}\\), where \\(i \\in [1, M]\\). The content encoder \\(\\mathcal{C}\\) takes \\(u_{i}\\) as its input and generates \\(v_{i}\\):" }, { "type": "equation", "bbox": [ 0.638, 0.586, 0.884, 0.603 ], "angle": 0, "content": "\\[\nv _ {i} = \\mathcal {C} \\left(u _ {i}; w _ {\\mathcal {C}}\\right) \\tag {1}\n\\]" }, { "type": "text", "bbox": [ 0.508, 0.615, 0.885, 0.776 ], "angle": 0, "content": "where \\(w_{\\mathcal{C}}\\) represents the content encoder parameters. To remove speaker information in \\(v_{i}\\) while minimizing its impact on other components (e.g., linguistic content), the acoustic model \\(\\mathcal{A}\\) uses a pre-net \\(\\mathcal{P}\\) which projects \\(v_{i}\\) into a space \\(\\mathbb{R}^d\\), where \\(d \\ll s\\). This dimensionality gap imposes an information bottleneck, which allows the acoustic model to discard content-irrelevant information such as noise and speaker identity (Li et al., 2022). Thus, the acoustic model \\(\\mathcal{A}\\) predicts \\(\\hat{x}_i\\):" }, { "type": "equation", "bbox": [ 0.602, 0.788, 0.884, 0.806 ], "angle": 0, "content": "\\[\n\\hat {x} _ {i} = \\mathcal {A} (\\mathcal {P} (v _ {i}; w _ {\\mathcal {P}}); w _ {\\mathcal {A}}) \\qquad (2)\n\\]" }, { "type": "text", "bbox": [ 0.508, 0.817, 0.885, 0.865 ], "angle": 0, "content": "where \\(w_{\\mathcal{P}}\\) represents the parameters of the pre-net, while \\(w_{\\mathcal{A}}\\) represents those of the acoustic model. Finally, the vocoder \\(\\nu\\), given \\(\\hat{x}_i\\), generates \\(\\hat{u}_i\\):" }, { "type": "equation", "bbox": [ 0.635, 0.877, 0.883, 0.894 ], "angle": 0, "content": "\\[\n\\hat {u} _ {i} = \\mathcal {V} (\\hat {x} _ {i}; w _ {\\mathcal {V}}) \\tag {3}\n\\]" }, { "type": "text", "bbox": [ 0.509, 0.906, 0.847, 0.922 ], "angle": 0, "content": "where \\(w_{\\mathcal{V}}\\) represents the vocoder parameters." }, { "type": "page_number", "bbox": [ 0.481, 0.928, 0.521, 0.941 ], "angle": 0, "content": "2238" } ], [ { "type": "text", "bbox": [ 0.113, 0.085, 0.49, 0.214 ], "angle": 0, "content": "The three components of the VC system are trained independently. The content encoder \\(\\mathcal{C}\\) is an off-the-shelf model pre-trained on a large set of multi-speaker data whereas the acoustic model \\(\\mathcal{A}\\) and the vocoder \\(\\mathcal{V}\\) are trained only on target speaker data. After generating pairs \\((v_{i},x_{i})\\) for each \\(u_{i}\\) of the dataset \\(D\\), the acoustic model \\(\\mathcal{A}\\) is trained by optimizing the following objective function:" }, { "type": "equation", "bbox": [ 0.169, 0.227, 0.488, 0.25 ], "angle": 0, "content": "\\[\n\\min _ {w _ {\\mathcal {P}}, w _ {\\mathcal {A}}} L _ {\\mathcal {A}} \\left(x _ {i}, \\mathcal {A} \\left(\\mathcal {P} \\left(v _ {i}; w _ {\\mathcal {P}}; w _ {\\mathcal {A}}\\right)\\right)\\right) \\tag {4}\n\\]" }, { "type": "text", "bbox": [ 0.113, 0.262, 0.489, 0.308 ], "angle": 0, "content": "where \\(L_{\\mathcal{A}}\\) is a loss function in the time-frequency domain such as the \\(L_{1}\\) distance between target and predicted mel spectrograms." }, { "type": "text", "bbox": [ 0.113, 0.31, 0.49, 0.358 ], "angle": 0, "content": "The vocoder \\(\\mathcal{V}\\) is trained either directly on ground truth mel spectrograms or on the mel spectrograms predicted by the acoustic model:" }, { "type": "equation", "bbox": [ 0.114, 0.371, 0.488, 0.41 ], "angle": 0, "content": "\\[\n\\min _ {w _ {\\mathcal {V}}} L _ {\\mathcal {V}} \\left(u _ {i}, \\mathcal {V} \\left(x _ {i}; w _ {\\mathcal {V}}\\right)\\right) \\text {o r} \\min _ {w _ {\\mathcal {V}}} L _ {\\mathcal {V}} \\left(u _ {i}, \\mathcal {V} \\left(\\hat {x} _ {i}; w _ {\\mathcal {V}}\\right)\\right) \\tag {5}\n\\]" }, { "type": "text", "bbox": [ 0.113, 0.423, 0.467, 0.437 ], "angle": 0, "content": "where \\(L_{\\mathcal{V}}\\) is a loss function in the time domain." }, { "type": "text", "bbox": [ 0.113, 0.44, 0.49, 0.6 ], "angle": 0, "content": "By training only on target speaker data, the loss function in Eq. 4 makes the acoustic model target speaker specific: it generates spectrograms of that speaker. The primary objective is to convert the source speaker's identity into that of the target speaker. Consequently, it is possible to perform XVC by converting a source utterance from a language different from that spoken by the target speaker, thereby enabling the target speaker to become polyglot." }, { "type": "title", "bbox": [ 0.114, 0.611, 0.376, 0.627 ], "angle": 0, "content": "2.2 Cross-Lingual Fine-Tuning" }, { "type": "text", "bbox": [ 0.113, 0.633, 0.49, 0.856 ], "angle": 0, "content": "Although the system achieves intra- and cross-lingual A2O VC with good intelligibility and high quality overall, some phonemes are mispronounced or colored by the accent of the target speaker, especially in cross-lingual scenarios. To tackle this issue, we opted for a hybrid approach, leveraging the phonetic knowledge of a model trained on a specific language (e.g., French) to enhance the pronunciation and linguistic content of the target speaker (e.g., an English speaker) when it speaks that language. Let us consider a lang1-lang2 cross-lingual scenario. Our objective is to enhance the acoustic model on lang1 without compromising the intra-lingual and other cross-lingual tasks." }, { "type": "text", "bbox": [ 0.113, 0.858, 0.49, 0.921 ], "angle": 0, "content": "In addition to the target speaker dataset \\(D\\) (lang2), let us also consider a dataset \\(D^{\\prime}\\) consisting of \\(N\\) speakers, each of whom has \\(M^{\\prime}\\) utterances in lang1. Let us denote the \\(i\\)-th utterance of" }, { "type": "text", "bbox": [ 0.508, 0.085, 0.882, 0.133 ], "angle": 0, "content": "the \\(j\\)-th speaker as \\(u_{ji}^{\\prime}\\), its SSL vector as \\(v_{ji}^{\\prime}\\), and its mel spectrogram as \\(x_{ji}^{\\prime}\\), where \\(j \\in [1, N]\\) and \\(i \\in [1, M^{\\prime}]\\)." }, { "type": "text", "bbox": [ 0.508, 0.134, 0.882, 0.184 ], "angle": 0, "content": "First, we pre-train the acoustic model \\(\\mathcal{A}\\) using the loss in Eq. 4 but employing pairs \\((v_{ji}^{\\prime}, x_{ji}^{\\prime})\\) for each \\(u_{ji}^{\\prime}\\) from the dataset \\(D\\). Eq. 4 becomes:" }, { "type": "equation", "bbox": [ 0.558, 0.196, 0.882, 0.224 ], "angle": 0, "content": "\\[\n\\min _ {w _ {\\mathcal {P}} ^ {\\prime}, w _ {\\mathcal {A}} ^ {\\prime}} L _ {\\mathcal {A}} \\left(x _ {j i} ^ {\\prime}, \\mathcal {A} \\left(\\mathcal {P} \\left(v _ {j i} ^ {\\prime}; w _ {\\mathcal {P}} ^ {\\prime}\\right); w _ {\\mathcal {A}} ^ {\\prime}\\right)\\right) \\tag {6}\n\\]" }, { "type": "text", "bbox": [ 0.508, 0.236, 0.884, 0.363 ], "angle": 0, "content": "Second, we fine-tune \\(\\mathcal{A}\\) using the dataset \\(D\\) (or a subset thereof) from the target speaker, as explained in Section 2.1. This allows the acoustic model to acquire phonetic coverage of lang1 during the pre-training, which can be leveraged during the fine-tuning on lang2. Consequently, the lang2 target speaker will exhibit improved lang1 linguistic characteristics after the conversion." }, { "type": "text", "bbox": [ 0.508, 0.365, 0.884, 0.493 ], "angle": 0, "content": "The cross-lingual fine-tuning technique offers several advantages. It enhances the linguistic content and pronunciation in XVC and reduces the amount of training data needed from the target speaker. While training the acoustic model without fine-tuning typically requires at least 10-12h of high-quality audio from the target speaker, the fine-tuning only requires 2h." }, { "type": "title", "bbox": [ 0.509, 0.506, 0.688, 0.519 ], "angle": 0, "content": "2.3 Content encoder" }, { "type": "text", "bbox": [ 0.508, 0.527, 0.884, 0.832 ], "angle": 0, "content": "The content encoder transforms an input waveform into a more concise and information-dense representation known as SSL vector. We chose WavLM as pretrained SSL model. WavLM was pre-trained by Microsoft using a self-supervised strategy similar to that of Hsu et al. (2021a) on 60,000 hours of Libri-Light (Kahn et al., 2019), 10,000 hours of GigaSpeech (Chen et al., 2021a) and 24,000 hours of VoxPopuli (Wang et al., 2021), for a total of 94,000 hours of audio data. We used a publicly available WavLM-Large\\(^3\\) model employing the output of its 15th transformer layer as the representation for speech audio \\( v_{i} \\) in all of our experiments. This decision was motivated by the findings of Hsu et al. (2021b); Baevski et al. (2021), which demonstrated the efficacy of this layer in phone discrimination tests. Accordingly, \\( s \\) in Subsection 2.1 is configured to 1024, that is the dimension of the output vectors of WavLM-Large." }, { "type": "title", "bbox": [ 0.509, 0.845, 0.783, 0.858 ], "angle": 0, "content": "2.4 Acoustic Model and Vocoder" }, { "type": "text", "bbox": [ 0.508, 0.866, 0.884, 0.898 ], "angle": 0, "content": "The acoustic model and vocoder are typical components in a text-to-speech (TTS) system." }, { "type": "page_footnote", "bbox": [ 0.53, 0.907, 0.875, 0.921 ], "angle": 0, "content": "<sup>3</sup>https://huggingface.co/microsoft/wavlm-large" }, { "type": "page_number", "bbox": [ 0.481, 0.928, 0.521, 0.941 ], "angle": 0, "content": "2239" } ], [ { "type": "text", "bbox": [ 0.117, 0.085, 0.491, 0.502 ], "angle": 0, "content": "The proposed acoustic model takes as input SSL vectors rather than graphemes or phonemes, and outputs target speaker mel spectrograms. Following van Niekerk et al. (2021a), the model's architecture resembles that of Tacotron 2 (Shen et al., 2017) as it features an encoder and an autoregressive decoder. Both the encoder and decoder are preceded by a feed-forward pre-net, while a final linear layer with \\( n \\)-MELs units follows the decoder. No attention module is used (Huang et al., 2021). The encoder pre-net is a feed-forward neural net composed of a stack of two linear layers with 256 units, ReLU activations, and dropout (Srivastava et al., 2014). The encoder consists of a stack of three 1D-convolutional layers with 512 units, kernel size 5, stride 1, padding 2, and ReLU activations. Following Chou and Lee (2019), we added an Instance Normalization (IN) layer after each Conv1D layer, as this helps to further reduce speaker identity while preserving content information. The decoder predicts each spectrogram frame from the output of the encoder and the previously generated frames. First, a decoder pre-net, similar to the encoder one, is applied and then three LSTMs with 768 units each followed by a final linear layer with \\( n \\)-MELs units are used." }, { "type": "text", "bbox": [ 0.114, 0.508, 0.49, 0.571 ], "angle": 0, "content": "The vocoder transforms the predicted mel spectrograms into audio waveforms. We used a HiFiGAN (Kong et al., 2020) model, a state-of-the-art real-time neural vocoder." }, { "type": "title", "bbox": [ 0.115, 0.598, 0.303, 0.615 ], "angle": 0, "content": "2.5 Length Regulator" }, { "type": "text", "bbox": [ 0.113, 0.628, 0.49, 0.869 ], "angle": 0, "content": "As there is no attention mechanism, we use an optional duration adjustment strategy to mitigate potential length mismatches between the SSL input features and the target spectrogram sequence. Indeed, WavLM generates features at a \\(20\\mathrm{ms}\\) frame rate for audio sampled at \\(16\\mathrm{kHz}\\) (resulting in a hop length of 320), which might lead to a length mismatch when generating spectrograms with different time resolutions (e.g., different hop lengths and/or higher sample rates). This strategy involves integrating a length regulator module between the encoder and the decoder of the acoustic model which interpolates the SSL features extracted from the source speech. To do this, we leverage PyTorch's interpolate4 function with its default settings." }, { "type": "title", "bbox": [ 0.51, 0.084, 0.657, 0.101 ], "angle": 0, "content": "3 Experiments" }, { "type": "text", "bbox": [ 0.508, 0.11, 0.885, 0.189 ], "angle": 0, "content": "To evaluate the effectiveness of our VC approach, experiments across a range of different tasks and datasets were conducted. All the experiments were run on a Linux machine with a single NVIDIA Titan RTX GPU with 24 GB of RAM." }, { "type": "text", "bbox": [ 0.508, 0.191, 0.886, 0.352 ], "angle": 0, "content": "The proposed system was tested as two variants: Proposed, our VC method using the conventional training strategy, and Proposed-F, the alternative system employing the cross-lingual finetuning strategy. We selected two baseline models for comparison: Soft-VC\\(^5\\) (van Niekerk et al., 2021a) and kNN-VC\\(^6\\) (Baas et al., 2023). Both excel in cross-lingual voice conversion tasks, demonstrating strong content intelligibility, accent preservation, and speech quality." }, { "type": "title", "bbox": [ 0.509, 0.364, 0.715, 0.38 ], "angle": 0, "content": "3.1 Experimental Setup" }, { "type": "text", "bbox": [ 0.508, 0.385, 0.885, 0.546 ], "angle": 0, "content": "We conducted experiments for both intra- and crosslingual settings using LJSpeech (Ito and Johnson, 2017) as the target speaker dataset. We selected four languages for our evaluation: American English, European French, European Spanish, and Mandarin Chinese. For English, we used LibriSpeech (Panayotov et al., 2015); for French and Spanish, we used Multilingual LibriSpeech (MLS) (Pratap et al., 2020); for Mandarin Chinese, we used Aishell (Bu et al., 2017)." }, { "type": "text", "bbox": [ 0.508, 0.547, 0.884, 0.657 ], "angle": 0, "content": "To ensure a fair comparison, when training the LJSpeech model we used the same configuration as van Niekerk et al. (2021a), including their HiFiGAN vocoder pre-trained on LJSpeech, unless otherwise stated. More specifically, we used a \\(16\\mathrm{kHz}\\) sampling rate and we set \\(n\\) -MELs to 128, \\(s\\) to 1024 and \\(d\\) to 256." }, { "type": "text", "bbox": [ 0.508, 0.66, 0.884, 0.884 ], "angle": 0, "content": "For cross-lingual fine-tuning, we initially pretrained three distinct acoustic models for each language using randomly selected 150h of audio data from the training sets of LibriSpeech, French MLS, Spanish MLS, and Aishell, respectively. The choice of 150h was based on Aishell's training set size in order to ensure that each language gets the same amount of training hours. Each pre-trained acoustic model was fine-tuned with only 2h of LJSpeech data for 15k steps using a batch size of 8. We found this number of hours to be optimal for the fine-tuning step through several experiments conducted using a validation set composed of 100 utterances from LJSpeech. We also observed that" }, { "type": "page_footnote", "bbox": [ 0.115, 0.895, 0.465, 0.92 ], "angle": 0, "content": "4https://pytorch.org/docs/stable/generated/ torch(nn.).functional.interpolate.html" }, { "type": "page_footnote", "bbox": [ 0.53, 0.894, 0.792, 0.907 ], "angle": 0, "content": "<sup>5</sup>https://github.com/bshall/soft-vc" }, { "type": "page_footnote", "bbox": [ 0.53, 0.907, 0.786, 0.92 ], "angle": 0, "content": "\\(^{6}\\)https://github.com/bshall/knn-vc" }, { "type": "list", "bbox": [ 0.53, 0.894, 0.792, 0.92 ], "angle": 0, "content": null }, { "type": "page_number", "bbox": [ 0.481, 0.928, 0.522, 0.941 ], "angle": 0, "content": "2240" } ], [ { "type": "text", "bbox": [ 0.114, 0.085, 0.488, 0.117 ], "angle": 0, "content": "using less than \\(2\\mathrm{h}\\) of data was insufficient to obtain a good overall quality." }, { "type": "title", "bbox": [ 0.115, 0.129, 0.312, 0.143 ], "angle": 0, "content": "3.2 Evaluation Metrics" }, { "type": "text", "bbox": [ 0.113, 0.151, 0.49, 0.198 ], "angle": 0, "content": "We assessed intelligibility, speaker similarity, accent preservation and overall speech quality in subjective and objective evaluations." }, { "type": "text", "bbox": [ 0.113, 0.2, 0.49, 0.358 ], "angle": 0, "content": "We created a test set for each language to be used as the source speech for conversion into LJSpeech. Each set consists of 60 utterances obtained by randomly selecting 3 utterances from 20 speakers (10 male and 10 female) extracted from: the test-clean set of LibriSpeech for English; the test set of Spanish MLS for Spanish; a set composed of the dev and test sets of French MLS combined for French; and a set composed of the dev and test sets of Aishell combined for Chinese." }, { "type": "title", "bbox": [ 0.114, 0.371, 0.347, 0.386 ], "angle": 0, "content": "3.2.1 Objective Evaluations" }, { "type": "text", "bbox": [ 0.113, 0.39, 0.49, 0.648 ], "angle": 0, "content": "To evaluate the intelligibility of the converted speech, we measured word error rate (WER) and phoneme error rate (PER) between the source and converted speech using the Whisper Medium ASR model\\(^{7}\\) (Radford et al., 2023) for English, French and Spanish and the FunASR model\\(^{8}\\) (Gao et al., 2023) for Chinese. Lower error rates indicate more intelligible speech, as the original words/phonemes are still recognizable after conversion. We measured speaker similarity (SSIM) by using a trained speaker verification model\\(^{9}\\). Specifically, we computed the cosine similarity between the d-vectors (Heigold et al., 2015) of each converted sample and that of the target speaker. The target speaker embedding is generated by averaging the d-vectors of 50 utterances from LJSpeech." }, { "type": "title", "bbox": [ 0.115, 0.659, 0.354, 0.673 ], "angle": 0, "content": "3.2.2 Subjective Evaluations" }, { "type": "text", "bbox": [ 0.114, 0.678, 0.489, 0.724 ], "angle": 0, "content": "We conducted subjective evaluations to assess both the overall quality and the native accent level of the converted audio." }, { "type": "text", "bbox": [ 0.113, 0.727, 0.49, 0.872 ], "angle": 0, "content": "For each language, we selected all 60 utterances from the corresponding test set and converted them into LJSpeech with our two proposed methods and the two baselines, resulting in a total of 300 utterances per language (60 ground truth + 240 generated). Then, for both tests, 20 native-language participants were asked to listen to the samples, randomly mixed, and rate them. To evaluate the overall quality, we gathered a mean opinion score" }, { "type": "text", "bbox": [ 0.508, 0.085, 0.885, 0.39 ], "angle": 0, "content": "(MOS) based on a 5-point scale, where 1 stands for \"very poor\" and 5 for \"excellent\". The question asked was: \"How do you rate the overall quality of this sample?\". For accent assessment, we conducted an accent comparative mean opinion score (ACMOS) by asking all the participants to rate the samples based on how convincing the accent was perceived to be on a 5-point scale, where 1 stood for \"strong foreign accent\" and 5 for \"native\". The question asked was: \"Does the voice sound like that of a native speaker?\". For this test, Proposed-F was set as the baseline. A negative \\(\\Delta\\)-ACMOS indicates that a system performs worse than the baseline, zero either refers to the baseline itself or indicates the same performance, and a positive value indicates an improvement over the baseline. The intra-lingual English-English scenario was not considered as the accent is consistent and correct after conversion." }, { "type": "title", "bbox": [ 0.509, 0.403, 0.614, 0.417 ], "angle": 0, "content": "3.3 Results" }, { "type": "text", "bbox": [ 0.508, 0.424, 0.884, 0.504 ], "angle": 0, "content": "In this section, we demonstrate the effectiveness of our proposed approaches evaluating both intra- and cross-lingual scenarios. Additionally, we show that our systems are also capable of preserving the emotions of the source speakers." }, { "type": "title", "bbox": [ 0.509, 0.516, 0.872, 0.531 ], "angle": 0, "content": "3.3.1 Speaker and Content Disentanglement" }, { "type": "text", "bbox": [ 0.508, 0.535, 0.884, 0.695 ], "angle": 0, "content": "First, we show that any disentanglement step applied to the SSL representations, while effective in intra-lingual scenario, results in a significant performance loss in cross-lingual tasks. We compared the results obtained by directly using the output of the content encoder against some disentanglement strategies applied on top of the output of the 15th layer of WavLM-Large: discretization, perturbation, and per-utterance standardization. We omitted the soft strategy as it is included in Soft-VC." }, { "type": "text", "bbox": [ 0.508, 0.697, 0.885, 0.921 ], "angle": 0, "content": "For discretization, we followed the procedure outlined in van Niekerk et al. (2021a); for perturbation, we followed the procedure presented in Choi et al. (2021); and for per-utterance standardization, we followed the procedure described in van Niekerk et al. (2021b). Table 1 (middle) reports intelligibility in terms of WER and PER, and speaker similarity (SSIM) of each model. Compared to the other methods, the proposed systems significantly enhance the intelligibility across all languages in cross-lingual scenarios while also maintaining very good performance for English. Particularly notable is the significant improvement for Mandarin Chinese, with the WER decreasing from around" }, { "type": "page_footnote", "bbox": [ 0.136, 0.881, 0.48, 0.894 ], "angle": 0, "content": "<sup>7</sup>https://huggingface.co/openai/whisper-medium" }, { "type": "page_footnote", "bbox": [ 0.137, 0.895, 0.418, 0.907 ], "angle": 0, "content": "<sup>8</sup>https://github.com/modelscope/FunASR" }, { "type": "page_footnote", "bbox": [ 0.137, 0.907, 0.463, 0.92 ], "angle": 0, "content": "<sup>9</sup>https://github.com/resemble-ai/Resemblyzer" }, { "type": "list", "bbox": [ 0.136, 0.881, 0.48, 0.92 ], "angle": 0, "content": null }, { "type": "page_number", "bbox": [ 0.481, 0.929, 0.519, 0.941 ], "angle": 0, "content": "2241" } ], [ { "type": "table", "bbox": [ 0.118, 0.083, 0.88, 0.398 ], "angle": 0, "content": "<table><tr><td></td><td colspan=\"5\">English</td><td colspan=\"5\">French</td></tr><tr><td></td><td>WER</td><td>PER</td><td>SSIM</td><td>MOS</td><td>Δ-ACMOS</td><td>WER</td><td>PER</td><td>SSIM</td><td>MOS</td><td>Δ-ACMOS</td></tr><tr><td>Ground truth</td><td>1.25</td><td>0.22</td><td>-</td><td>3.75 ± 0.04</td><td>-</td><td>8.74</td><td>2.70</td><td>-</td><td>3.77 ± 0.05</td><td>-</td></tr><tr><td>Discretization</td><td>18.81</td><td>10.28</td><td>90.86</td><td>-</td><td>-</td><td>70.00</td><td>60.54</td><td>90.54</td><td>-</td><td>-</td></tr><tr><td>Perturbation</td><td>2.82</td><td>0.88</td><td>92.42</td><td>-</td><td>-</td><td>27.17</td><td>12.08</td><td>90.84</td><td>-</td><td>-</td></tr><tr><td>Utterance std</td><td>4.76</td><td>2.56</td><td>88.62</td><td>-</td><td>-</td><td>15.75</td><td>5.58</td><td>84.03</td><td>-</td><td>-</td></tr><tr><td>Soft-VC</td><td>2.63</td><td>0.73</td><td>91.12</td><td>3.88 ± 0.04</td><td>-</td><td>19.13</td><td>6.91</td><td>89.16</td><td>3.73 ± 0.05</td><td>-0.13</td></tr><tr><td>kNN-VC</td><td>2.75</td><td>0.99</td><td>84.70</td><td>3.94 ± 0.04</td><td>-</td><td>16.55</td><td>6.24</td><td>81.26</td><td>3.82 ± 0.05</td><td>-0.10</td></tr><tr><td>Proposed</td><td>3.01</td><td>1.09</td><td>90.22</td><td>3.94 ± 0.05</td><td>-</td><td>14.16</td><td>5.00</td><td>88.67</td><td>3.85 ± 0.05</td><td>-0.09</td></tr><tr><td>Proposed-F</td><td>2.85</td><td>0.88</td><td>89.70</td><td>3.96 ± 0.04</td><td>-</td><td>12.43</td><td>4.02</td><td>88.25</td><td>3.83 ± 0.04</td><td>0.0</td></tr><tr><td></td><td colspan=\"5\">Spanish</td><td colspan=\"5\">Mandarin Chinese</td></tr><tr><td>Ground truth</td><td>6.31</td><td>1.52</td><td>-</td><td>3.95 ± 0.04</td><td>-</td><td>7.72</td><td>0.43</td><td>-</td><td>4.07 ± 0.08</td><td>-</td></tr><tr><td>Discretization</td><td>75.04</td><td>66.74</td><td>92.33</td><td>-</td><td>-</td><td>90.01</td><td>77.35</td><td>87.26</td><td>-</td><td>-</td></tr><tr><td>Perturbation</td><td>17.95</td><td>6.52</td><td>89.64</td><td>-</td><td>-</td><td>47.73</td><td>20.03</td><td>87.14</td><td>-</td><td>-</td></tr><tr><td>Utterance std</td><td>12.51</td><td>3.66</td><td>85.43</td><td>-</td><td>-</td><td>28.34</td><td>5.47</td><td>82.27</td><td>-</td><td>-</td></tr><tr><td>Soft-VC</td><td>14.78</td><td>5.02</td><td>89.17</td><td>3.80 ± 0.04</td><td>-0.08</td><td>51.82</td><td>21.04</td><td>86.15</td><td>3.01 ± 0.08</td><td>-1.25</td></tr><tr><td>kNN-VC</td><td>11.91</td><td>3.47</td><td>80.31</td><td>3.83 ± 0.04</td><td>-0.06</td><td>35.24</td><td>9.78</td><td>77.50</td><td>3.25 ± 0.08</td><td>-0.47</td></tr><tr><td>Proposed</td><td>9.78</td><td>2.56</td><td>88.13</td><td>3.87 ± 0.03</td><td>-0.05</td><td>19.95</td><td>3.64</td><td>84.78</td><td>3.67 ± 0.08</td><td>-0.03</td></tr><tr><td>Proposed-F</td><td>8.61</td><td>2.21</td><td>86.53</td><td>3.86 ± 0.04</td><td>0.0</td><td>18.39</td><td>3.33</td><td>83.02</td><td>3.73 ± 0.08</td><td>0.0</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.113, 0.407, 0.884, 0.466 ], "angle": 0, "content": "Table 1: Objective and subjective evaluation. (middle) Results (\\%) in terms of intelligibility (W/PER ↓) and speaker similarity (SSMI ↑) considering three speaker and content disentanglement strategies: discretization, perturbation and per-utterance standardization. (bottom) W/PER, SSIM, overall quality (MOS ↑) with 95% confidence intervals, and the delta of the Accent Comparative MOS (\\(\\Delta\\)-ACMOS) for the proposed approaches and the baseline systems." }, { "type": "text", "bbox": [ 0.113, 0.496, 0.49, 0.673 ], "angle": 0, "content": "\\(30\\%\\) to \\(80\\%\\), and the PER decreasing from approximately \\(34\\%\\) to \\(95\\%\\). Unlike perturbation, which fails to maintain the same performance observed for English, the overall effectiveness of the per-utterance standardization is significant. However, it does not adequately capture the target speaker's identity like the alternative approaches do. On the other hand, the speaker identity of our systems is comparable to that of other techniques, indicating that in an A2O VC setup, the disentanglement steps are not strictly required." }, { "type": "title", "bbox": [ 0.114, 0.689, 0.461, 0.705 ], "angle": 0, "content": "3.3.2 Objective and Subjective Evaluation" }, { "type": "text", "bbox": [ 0.113, 0.712, 0.49, 0.922 ], "angle": 0, "content": "After the initial assessment, we evaluated the quality of the two proposed methods by comparing our outcomes with those of the baselines. Table 1 (bottom) reports WER/PER and SSIM, along with MOS and ACMOS for each model. As observed previously, intelligibility remains clearly superior for the proposed systems for all the cross-lingual tasks and is comparable to that of the baselines for English. In addition, the MOS scores show that both proposed approaches outperform the baselines in terms of overall quality. While kNN-VC shows comparable MOS values, it fails to maintain good speaker similarity. Interestingly, the MOS values" }, { "type": "text", "bbox": [ 0.508, 0.496, 0.885, 0.689 ], "angle": 0, "content": "of the ground truth are lower than those of all models for English and French. We hypothesize that VC systems can act as denoisers over noisy inputs and that most likely influenced listeners' assignment of MOS scores. As for the accent assessment, Soft-VC and kNN-VC consistently exhibit negative delta values for the ACMOS, meaning that the generated samples are perceived as \"less native-sounding\" across all languages. In conclusion, while both proposed approaches outperform the baselines, Proposed-F leads to better intelligibility, higher MOS, and is also data efficient." }, { "type": "title", "bbox": [ 0.509, 0.705, 0.833, 0.72 ], "angle": 0, "content": "3.3.3 Ablation: Emotions Maintenance" }, { "type": "text", "bbox": [ 0.507, 0.729, 0.885, 0.922 ], "angle": 0, "content": "In this section we show our system's ability to preserve source emotions during VC. To achieve this, we extended the LJSpeech dataset by incorporating the four emotions in the Emotional Speech Dataset (ESD) (Zhou et al., 2022): angry, surprise, sad, and happy. As we exclusively focus on English for this experiment, we converted all emotional utterances from the 10 English speakers of ESD into LJSpeech using our highest quality setup. The resulting corpus, referred to as Emo-LJSpeech, consists of roughly 35h of data, 11h of which are created through VC." }, { "type": "page_number", "bbox": [ 0.481, 0.928, 0.522, 0.941 ], "angle": 0, "content": "2242" } ], [ { "type": "table", "bbox": [ 0.119, 0.083, 0.88, 0.15 ], "angle": 0, "content": "<table><tr><td></td><td>WER</td><td>PER</td><td>SSIM</td><td>MOS</td><td>Δ-ECMOS Angry</td><td>Δ-ECMOS Happy</td><td>Δ-ECMOS Sad</td><td>Δ-ECMOS Surprise</td></tr><tr><td>Ground truth</td><td>10.08</td><td>4.89</td><td>-</td><td>3.95 ± 0.04</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Proposed</td><td>11.01</td><td>5.53</td><td>89.54</td><td>3.90 ± 0.05</td><td>+0.39</td><td>+0.63</td><td>+0.41</td><td>+0.92</td></tr><tr><td>Proposed-F</td><td>11.55</td><td>5.80</td><td>88.37</td><td>3.80 ± 0.04</td><td>+0.86</td><td>+0.74</td><td>+0.24</td><td>+0.80</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.113, 0.159, 0.884, 0.203 ], "angle": 0, "content": "Table 2: Results (%) measuring intelligibility (W/PER ↓), speaker similarity (SSMI ↑), overall quality (MOS ↑) with 95% confidence intervals, and the delta of the Emotion Comparative Mean Opinion Score (Δ-ECMOS) vs neutral samples for the emotional experiment." }, { "type": "text", "bbox": [ 0.117, 0.234, 0.491, 0.604 ], "angle": 0, "content": "To ensure compatibility with the original sample rate of LJSpeech (22050 Hz), we implemented the approach outlined in Section 2.5 to address length disparities between source and target features. We set \\( n \\)-MELs to 80, \\( n \\)-fft to 1024, window length to 1024, and hop length to 256. The acoustic model was trained on LJSpeech with a batch size of 32 using AdamW (Loshchilov and Hutter, 2019) with an initial learning rate of 0.0001 and a weight decay of 0.01 for 200k steps. Throughout the training, the learning rate was linearly decreased after a warm-up period in which it was linearly increased for the first 4k training steps. The above hyper-parameters are the results of an extensive hyper-parameters search phase conducted using a validation set of 100 utterances from LJSpeech. For cross-lingual fine-tuning, we pre-trained the acoustic model on 13h of data from the English subset of ESD (including neutral data). We then fine-tuned it with 2h of LJSpeech for 15k steps using a batch size of 8. For the vocoder, we used an internal implementation of HiFi-GAN working at 22050 Hz trained on a proprietary multi-speaker dataset." }, { "type": "text", "bbox": [ 0.113, 0.616, 0.49, 0.922 ], "angle": 0, "content": "To assess the quality of the newly generated emotional corpus, we created a test set by randomly selecting, for each of the 4 emotions, 3 utterances from 5 speakers extracted from the ESD English subset, resulting in a total of 60 emotional utterances. We then conducted objective and subjective evaluations by comparing the ground truth recordings with the 60 utterances converted into LJSpeech using the Proposed and Proposed-F models, trained as explained earlier. In addition to assessing WER/PER, SSIM, and MOS, we also analysed the proposed systems' capacity to preserve source emotions through an emotion comparative mean opinion score (ECMOS). The test was conducted over each of the four emotions (referred to as \\( e \\)). 20 native participants rated the samples on a 5-point scale, indicating the extent to which the corresponding emotion (e.g., happy) was perceived, with 1 denoting \"totally not \\( e \\)\" and 5 representing" }, { "type": "text", "bbox": [ 0.507, 0.234, 0.886, 0.523 ], "angle": 0, "content": "\"very \\( e \\)\". The question was: \"Does the voice sound \\( e \\)?\" For this test, alongside the 60 emotional utterances, 60 corresponding neutral-style utterances were also generated using both models. These neutral samples served as reference data. We report the \\( \\Delta \\)-ECMOS which reflects the extent to which a certain emotion was perceived after VC compared to its neutral counterpart. The results are shown in Table 2. The intelligibility and overall quality are very similar to those of the ground truth recordings. Unlike previous experiments, Proposed outperformed Proposed-F. This could be attributed to the limited amount of data used for the pre-training (13h compared to the 150h used in previous experiments). We defer more detailed analysis of this to future work. However, both systems effectively preserve source emotions, as indicated by consistently positive \\( \\Delta \\)-ECMOS scores." }, { "type": "title", "bbox": [ 0.509, 0.549, 0.642, 0.564 ], "angle": 0, "content": "4 Conclusion" }, { "type": "text", "bbox": [ 0.507, 0.584, 0.885, 0.922 ], "angle": 0, "content": "With this work we have developed an A2O VC system capable of generating human-level native-sounding polyglot voices without relying on multilingual data from the target speaker. We showed how several content and speaker disentanglement strategies applied to SSL features do not perform well in cross-lingual scenarios. To overcome this, we have demonstrated that by directly leveraging SSL features and performing cross-lingual fine-tuning, we are able to enhance the intelligibility and accent of the converted voices. Furthermore, we have illustrated that our models can preserve source emotions throughout the conversion process. Our experiments showcased improvements over strong baseline methods across all the examined metrics. Moreover, MOS tests conducted with multiple native participants revealed that our outcomes closely approximate human recordings in terms of overall quality. For future research, our aim is to explore the creation of high-quality polyglot voices in an A2A setup to further reduce data requirements." }, { "type": "page_number", "bbox": [ 0.481, 0.929, 0.521, 0.941 ], "angle": 0, "content": "2243" } ], [ { "type": "title", "bbox": [ 0.115, 0.085, 0.221, 0.099 ], "angle": 0, "content": "Limitations" }, { "type": "text", "bbox": [ 0.113, 0.111, 0.49, 0.255 ], "angle": 0, "content": "To achieve high-quality polyglot voices, we focused on A2O and thus target-specific acoustic model. This approach requires a substantial amount of training data. While fine-tuning has helped reduce the required data, 2h can still be considered a significant amount. We leave to future research the development of approaches aimed at further reducing the amount of data needed to train models for specific target speakers." }, { "type": "text", "bbox": [ 0.113, 0.256, 0.49, 0.368 ], "angle": 0, "content": "We conducted our experiments on a single female speaker dataset (LJSpeech). Having limited testing resources, we decided to prioritize the number of experiments on the polyglot aspect over having multiple speakers. This allowed us to show that our model can work correctly with significantly different languages." }, { "type": "text", "bbox": [ 0.117, 0.37, 0.49, 0.562 ], "angle": 0, "content": "Based on the experiments conducted, the SSIM of the proposed methods is slightly lower, though comparable, to that of other approaches. This discrepancy likely stems from our direct use of SSL features without additional refinements. However, sacrificing a small degree of speaker similarity enhances other aspects such as intelligibility and accent, particularly in cross-lingual tasks. We believe that implementing a more efficient disentanglement scheme will enable us to achieve optimal quality across all components. This is a direction we plan to pursue in future research." }, { "type": "title", "bbox": [ 0.115, 0.575, 0.279, 0.592 ], "angle": 0, "content": "Acknowledgments" }, { "type": "text", "bbox": [ 0.114, 0.601, 0.49, 0.651 ], "angle": 0, "content": "(Portions of) the research in this paper used the ESD Database made available by the HLT lab, National University of Singapore, Singapore." }, { "type": "title", "bbox": [ 0.115, 0.678, 0.214, 0.692 ], "angle": 0, "content": "References" }, { "type": "ref_text", "bbox": [ 0.117, 0.701, 0.49, 0.755 ], "angle": 0, "content": "Masanobu Abe, Kiyohiro Shikano, and Hisao Kuwabara. 1990. Cross-language voice conversion. International Conference on Acoustics, Speech, and Signal Processing, pages 345-348 vol.1." }, { "type": "ref_text", "bbox": [ 0.117, 0.766, 0.488, 0.819 ], "angle": 0, "content": "Matthew Baas, Benjamin van Niekerk, and Herman Kamper. 2023. Voice Conversion With Just Nearest Neighbors. In Proc. INTERSPEECH 2023, pages 2053-2057." }, { "type": "ref_text", "bbox": [ 0.117, 0.83, 0.488, 0.883 ], "angle": 0, "content": "Alexei Baevski, Wei-Ning Hsu, Alexis Conneau, and Michael Auli. 2021. Unsupervised speech recognition. Advances in Neural Information Processing Systems, 34:27826-27839." }, { "type": "ref_text", "bbox": [ 0.117, 0.894, 0.488, 0.92 ], "angle": 0, "content": "Alexei Baevski, Henry Zhou, Abdel rahman Mohamed, and Michael Auli. 2020. wav2vec 2.0: A framework" }, { "type": "list", "bbox": [ 0.117, 0.701, 0.49, 0.92 ], "angle": 0, "content": null }, { "type": "ref_text", "bbox": [ 0.529, 0.086, 0.884, 0.113 ], "angle": 0, "content": "for self-supervised learning of speech representations. ArXiv, abs/2006.11477." }, { "type": "ref_text", "bbox": [ 0.512, 0.124, 0.885, 0.216 ], "angle": 0, "content": "Hui Bu, Jiayu Du, Xingyu Na, Bengu Wu, and Hao Zheng. 2017. Aishell-1: An open-source mandarin speech corpus and a speech recognition baseline. 2017 20th Conference of the Oriental Chapter of the International Coordinating Committee on Speech Databases and Speech I/O Systems and Assessment (O-COCOSDA), pages 1-5." }, { "type": "ref_text", "bbox": [ 0.512, 0.227, 0.885, 0.332 ], "angle": 0, "content": "Guoguo Chen, Shuzhou Chai, Guan-Bo Wang, Jiayu Du, Wei-Qiang Zhang, Chao Weng, Dan Su, Daniel Povey, Jan Trmal, Junbo Zhang, Mingjie Jin, Sanjeev Khudanpur, Shinji Watanabe, Shuaijiang Zhao, Wei Zou, Xiangang Li, Xuchen Yao, Yongqing Wang, Zhao You, and Zhiyong Yan. 2021a. Gigaspeech: An evolving, multi-domain asr corpus with 10,000 hours of transcribed audio. In Proc. Interspeech 2021." }, { "type": "ref_text", "bbox": [ 0.512, 0.343, 0.885, 0.448 ], "angle": 0, "content": "Sanyuan Chen, Chengyi Wang, Zhengyang Chen, Yu Wu, Shujie Liu, Zhuo Chen, Jinyu Li, Naoyuki Kanda, Takuya Yoshioka, Xiong Xiao, Jian Wu, Long Zhou, Shuo Ren, Yanmin Qian, Yao Qian, Micheal Zeng, and Furu Wei. 2021b. Wavlm: Large-scale self-supervised pre-training for full stack speech processing. IEEE Journal of Selected Topics in Signal Processing, 16:1505-1518." }, { "type": "ref_text", "bbox": [ 0.512, 0.458, 0.885, 0.523 ], "angle": 0, "content": "Hyeong-Seok Choi, Juheon Lee, Wan Soo Kim, Jie Hwan Lee, Hoon Heo, and Kyogu Lee. 2021. Neural analysis and synthesis: Reconstructing speech from self-supervised representations. ArXiv, abs/2110.14513." }, { "type": "ref_text", "bbox": [ 0.512, 0.535, 0.885, 0.588 ], "angle": 0, "content": "Ju-chieh Chou and Hung-yi Lee. 2019. One-shot voice conversion by separating speaker and content representations with instance normalization. In INTER-SPEECH, pages 664-668." }, { "type": "ref_text", "bbox": [ 0.512, 0.599, 0.885, 0.664 ], "angle": 0, "content": "Zhifu Gao, Zerui Li, Jiaming Wang, Haoneng Luo, Xian Shi, Mengzhe Chen, Yabin Li, Lingyun Zuo, Zhihao Du, Zhangyu Xiao, and Shiliang Zhang. 2023. Funasr: A fundamental end-to-end speech recognition toolkit. In INTERSPEECH." }, { "type": "ref_text", "bbox": [ 0.512, 0.676, 0.885, 0.742 ], "angle": 0, "content": "Georg Heigold, Ignacio Moreno, Samy Bengio, and Noam M. Shazeer. 2015. End-to-end text-dependent speaker verification. 2016 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5115-5119." }, { "type": "ref_text", "bbox": [ 0.512, 0.752, 0.885, 0.831 ], "angle": 0, "content": "Wei-Ning Hsu, Benjamin Bolte, Yao-Hung Hubert Tsai, Kushal Lakhotia, Ruslan Salakhutdinov, and Abdel rahman Mohamed. 2021a. Hubert: Self-supervised speech representation learning by masked prediction of hidden units. IEEE/ACM Transactions on Audio, Speech, and Language Processing, 29:3451-3460." }, { "type": "ref_text", "bbox": [ 0.512, 0.842, 0.885, 0.921 ], "angle": 0, "content": "Wei-Ning Hsu, Yao-Hung Hubert Tsai, Benjamin Bolte, Ruslan Salakhutdinov, and Abdel rahman Mohamed. 2021b. Hubert: How much can a bad teacher benefit asr pre-training? ICASSP 2021 - 2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6533-6537." }, { "type": "list", "bbox": [ 0.512, 0.086, 0.885, 0.921 ], "angle": 0, "content": null }, { "type": "page_number", "bbox": [ 0.481, 0.929, 0.521, 0.941 ], "angle": 0, "content": "2244" } ], [ { "type": "ref_text", "bbox": [ 0.117, 0.086, 0.487, 0.139 ], "angle": 0, "content": "Wen-Chin Huang, Tomoki Hayashi, Shinji Watanabe, and Tomoki Toda. 2020. The sequence-to-sequence baseline for the voice conversion challenge 2020: Cascading asr and tts. ArXiv, abs/2010.02434." }, { "type": "ref_text", "bbox": [ 0.117, 0.147, 0.487, 0.239 ], "angle": 0, "content": "Wen-Chin Huang, Shu wen Yang, Tomoki Hayashi, Hung yi Lee, Shinji Watanabe, and Tomoki Toda. 2021. S3prl-vc: Open-source voice conversion framework with self-supervised speech representations. ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6552-6556." }, { "type": "ref_text", "bbox": [ 0.117, 0.248, 0.487, 0.34 ], "angle": 0, "content": "Shehzeen Samarah Hussain, Paarth Neekhara, Jocelyn Huang, Jason Li, and Boris Ginsburg. 2023. Acevc: Adaptive and controllable voice conversion using explicitly disentangled self-supervised speech representations. ICASSP 2023 - 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1-5." }, { "type": "ref_text", "bbox": [ 0.117, 0.348, 0.487, 0.387 ], "angle": 0, "content": "Keith Ito and Linda Johnson. 2017. The LJ speech dataset. https://keithito.com/LJ-Speech-Dataset/." }, { "type": "ref_text", "bbox": [ 0.117, 0.396, 0.487, 0.424 ], "angle": 0, "content": "Xin Jin and Jiawei Han. 2010. K-Means Clustering, pages 563-564. Springer US, Boston, MA." }, { "type": "ref_text", "bbox": [ 0.117, 0.431, 0.487, 0.562 ], "angle": 0, "content": "Jacob Kahn, Morgane Rivière, Weiyi Zheng, Evgeny Kharitonov, Qiantong Xu, Pierre-Emmanuel Mazar'e, Julien Karadayi, Vitaliy Liptchinsky, Ronan Collobert, Christian Fuegen, Tatiana Likhomanenko, Gabriel Synnaeve, Armand Joulin, Abdel rahman Mohamed, and Emmanuel Dupoux. 2019. Librilight: A benchmark for asr with limited or no supervision. ICASSP 2020 - 2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 7669-7673." }, { "type": "ref_text", "bbox": [ 0.117, 0.571, 0.487, 0.648 ], "angle": 0, "content": "Jungil Kong, Jaehyeon Kim, and Jaekyoung Bae. 2020. Hifi-gan: Generative adversarial networks for efficient and high fidelity speech synthesis. In Advances in Neural Information Processing Systems, volume 33, pages 17022-17033. Curran Associates, Inc." }, { "type": "ref_text", "bbox": [ 0.117, 0.658, 0.487, 0.724 ], "angle": 0, "content": "Jingyi Li, Weiping Tu, and Li Xiao. 2022. Freevc: Towards high-quality text-free one-shot voice conversion. ICASSP 2023 - 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1-5." }, { "type": "ref_text", "bbox": [ 0.117, 0.732, 0.487, 0.772 ], "angle": 0, "content": "Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In International Conference on Learning Representations." }, { "type": "ref_text", "bbox": [ 0.117, 0.78, 0.487, 0.846 ], "angle": 0, "content": "Vassil Panayotov, Guoguo Chen, Daniel Povey, and Sanjeev Khudanpur. 2015. Librispeech: An asr corpus based on public domain audio books. In 2015 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5206-5210." }, { "type": "ref_text", "bbox": [ 0.117, 0.855, 0.487, 0.921 ], "angle": 0, "content": "Adam Polyak, Yossi Adi, Jade Copet, Eugene Kharitonov, Kushal Lakhotia, Wei-Ning Hsu, Abdel rahman Mohamed, and Emmanuel Dupoux. 2021. Speech resynthesis from discrete disentangled self-supervised representations. In Interspeech." }, { "type": "list", "bbox": [ 0.117, 0.086, 0.487, 0.921 ], "angle": 0, "content": null }, { "type": "ref_text", "bbox": [ 0.512, 0.086, 0.882, 0.178 ], "angle": 0, "content": "Vineel Pratap, Qiantong Xu, Anuroop Sriram, Gabriel Synnaeve, and Ronan Collobert. 2020. Mls: A large-scale multilingual dataset for speech research. In *Interspeech* 2020, 21st Annual Conference of the International Speech Communication Association, Virtual Event, Shanghai, China, 25-29 October 2020, pages 2757-2761. ISCA." }, { "type": "ref_text", "bbox": [ 0.512, 0.189, 0.882, 0.268 ], "angle": 0, "content": "Kaizhi Qian, Yang Zhang, Heting Gao, Junrui Ni, Cheng-I Lai, David Cox, Mark A. Hasegawa-Johnson, and Shiyu Chang. 2022. Contentvec: An improved self-supervised speech representation by disentangling speakers. In International Conference on Machine Learning." }, { "type": "ref_text", "bbox": [ 0.512, 0.279, 0.882, 0.318 ], "angle": 0, "content": "Zengyi Qin, Wenliang Zhao, Xumin Yu, and Xin Sun. 2023. Openvoice: Versatile instant voice cloning. ArXiv, abs/2312.01479." }, { "type": "ref_text", "bbox": [ 0.512, 0.33, 0.882, 0.395 ], "angle": 0, "content": "Alec Radford, Jong Wook Kim, Tao Xu, Greg Brockman, Christine McLeavey, and Ilya Sutskever. 2023. Robust speech recognition via large-scale weak supervision. In International Conference on Machine Learning, pages 28492-28518. PMLR." }, { "type": "ref_text", "bbox": [ 0.512, 0.406, 0.882, 0.511 ], "angle": 0, "content": "Jonathan Shen, Ruoming Pang, Ron J. Weiss, Mike Schuster, Navdeep Jaitly, Zongheng Yang, Z. Chen, Yu Zhang, Yuxuan Wang, R. J. Skerry-Ryan, Rif A. Saurous, Yannis Agiomyrgiannakis, and Yonghui Wu. 2017. Natural tts synthesis by conditioning wavenet on mel spectrogram predictions. 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 4779-4783." }, { "type": "ref_text", "bbox": [ 0.512, 0.522, 0.882, 0.586 ], "angle": 0, "content": "Nitish Srivastava, Geoffrey E. Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. 2014. Dropout: a simple way to prevent neural networks from overfitting. J. Mach. Learn. Res., 15:1929-1958." }, { "type": "ref_text", "bbox": [ 0.512, 0.598, 0.882, 0.664 ], "angle": 0, "content": "Lifa Sun, Kun Li, Hao Wang, Shiyin Kang, and Helen M. Meng. 2016. Phonetic posteriograms for many-to-one voice conversion without parallel data training. 2016 IEEE International Conference on Multimedia and Expo (ICME), pages 1-6." }, { "type": "ref_text", "bbox": [ 0.512, 0.676, 0.882, 0.766 ], "angle": 0, "content": "Benjamin van Niekerk, Marc-Andre Carbonneau, Julian Zaidi, Matthew Baas, Hugo Seute, and Herman Kamper. 2021a. A comparison of discrete and soft speech units for improved voice conversion. ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6562-6566." }, { "type": "ref_text", "bbox": [ 0.512, 0.778, 0.882, 0.831 ], "angle": 0, "content": "Benjamin van Niekerk, Leanne Nortje, Matthias Baas, and Herman Kamper. 2021b. Analyzing speaker information in self-supervised models to improve zero-resource speech processing. ArXiv, abs/2108.00917." }, { "type": "ref_text", "bbox": [ 0.512, 0.842, 0.882, 0.921 ], "angle": 0, "content": "Changhan Wang, Morgane Riviere, Ann Lee, Anne Wu, Chaitanya Talnikar, Daniel Haziza, Mary Williamson, Juan Pino, and Emmanuel Dupoux. 2021. VoxPopuli: A large-scale multilingual speech corpus for representation learning, semi-supervised learning and interpretation. In Proceedings of the 59th Annual" }, { "type": "list", "bbox": [ 0.512, 0.086, 0.882, 0.921 ], "angle": 0, "content": null }, { "type": "page_number", "bbox": [ 0.481, 0.929, 0.52, 0.941 ], "angle": 0, "content": "2245" } ], [ { "type": "ref_text", "bbox": [ 0.135, 0.086, 0.487, 0.152 ], "angle": 0, "content": "Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 993-1003, Online. Association for Computational Linguistics." }, { "type": "ref_text", "bbox": [ 0.117, 0.162, 0.488, 0.241 ], "angle": 0, "content": "Zi-Hua Zhang, Long Zhou, Chengyi Wang, Sanyuan Chen, Yu Wu, Shujie Liu, Zhuo Chen, Yanqing Liu, Huaming Wang, Jinyu Li, Lei He, Sheng Zhao, and Furu Wei. 2023. Speak foreign languages with your own voice: Cross-lingual neural codec language modeling. ArXiv, abs/2303.03926." }, { "type": "ref_text", "bbox": [ 0.117, 0.25, 0.488, 0.316 ], "angle": 0, "content": "Yi Zhao, Wen-Chin Huang, Xiaohai Tian, Junichi Yamagishi, Rohan Kumar Das, Tomi H. Kinnunen, Zhenhua Ling, and Tomoki Toda. 2020. Voice conversion challenge 2020: Intra-lingual semi-parallel and cross-lingual voice conversion. ArXiv, abs/2008.12527." }, { "type": "ref_text", "bbox": [ 0.117, 0.326, 0.488, 0.378 ], "angle": 0, "content": "Kun Zhou, Terrak Sisman, Rui Liu, and Haizhou Li. 2022. Emotional voice conversion: Theory, databases and esd. Speech Communication, 137:1-18." }, { "type": "list", "bbox": [ 0.117, 0.086, 0.488, 0.378 ], "angle": 0, "content": null }, { "type": "page_number", "bbox": [ 0.481, 0.929, 0.521, 0.941 ], "angle": 0, "content": "2246" } ]]123version https://git-lfs.github.com/spec/v1oid sha256:bfeee82c7f1846cfb4cd9cc350dbf640ffd45b96b39eee6664604f1f6d096c17size 307438123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249# Enhancing Polyglot Voices by Leveraging Cross-Lingual Fine-Tuning in Any-to-One Voice Conversion
Giuseppe Ruggiero $^{1,2}$ , Matteo Testa $^{2}$ , Jurgen Van de Walle $^{2}$ , Luigi Di Caro $^{1}$
<sup>1</sup>Università degli studi di Torino, Turin, Italy
$^{2}$ Cerence Inc, Turin Italy
{giuseppe.ruggiero,luigi DICaro} $@$ unito.it
{matteo.testa, jurgen.vandewalle} @cerence.com
# Abstract
The creation of artificial polyglot voices remains a challenging task, despite considerable progress in recent years. This paper investigates self-supervised learning for voice conversion to create native-sounding polyglot voices. We introduce a novel cross-lingual any-to-one voice conversion system that is able to preserve the source accent without the need for multilingual data from the target speaker. In addition, we show a novel cross-lingual fine-tuning strategy that further improves the accent and reduces the training data requirements. Objective and subjective evaluations with English, Spanish, French and Mandarin Chinese confirm that our approach improves on state-of-the-art methods, enhancing the speech intelligibility and overall quality of the converted speech, especially in cross-lingual scenarios.
# 1 Introduction
In recent years, advancements in speech synthesis (Zhang et al., 2023; Qin et al., 2023; van Niekerk et al., 2021a) have significantly improved the quality of artificial polyglot voices. Several noteworthy studies in cross-lingual voice conversion (XVC) merit attention, especially some any-to-one $(\mathrm{A}20\mathrm{VC})^{2}$ variants (van Niekerk et al., 2021a; Huang et al., 2021). The aim of XVC is to convert source voices into target voices without changing the linguistic content, even when source and target speak different languages (Abe et al., 1990). From an information perspective, VC can be accomplished by initially disentangling the source speech into representations describing the linguistic content and speaker characteristics and then synthesizing the converted speech from the extracted
linguistic content while incorporating the identity of the target speaker (Huang et al., 2021).
To disentangle content and speaker information, an ASR model trained on a labeled dataset is frequently employed to extract the supervised spoken content representation, such as text (Huang et al., 2020) or phonetic posteriogram (PPG) (Sun et al., 2016). However, despite its promising results in VC, this approach encounters several limitations. First, the assembly of labeled datasets can be prohibitively expensive, especially in low-resource settings like the XVC scenario (Zhao et al., 2020). Second, the system's sensitivity to ASR errors can lead to potential mispronunciations or inaccuracies in conversion. Finally, text and PPG do not capture all linguistic nuances such as accent, expressions and style resulting in neutral-sounding synthesized speech (Hussain et al., 2023).
In several recent works (van Niekerk et al., 2021a; Huang et al., 2021; Polyak et al., 2021), self-supervised learning (SSL) is used to train models for speech synthesis. This approach is primarily driven by the following advantages offered by SSL: 1) It requires only large-scale unlabeled data to learn rich and compact speech representations; 2) Numerous large-scale pre-trained SSL models are publicly available, including Wav2vec2 (Baevski et al., 2020), HuBERT (Hsu et al., 2021a), and WavLM (Chen et al., 2021b); 3) These models have been shown to generalize well across various languages, even though some of them have been trained on English data only. Since SSL representations contain a significant amount of information, including phonetic and speaker details, many studies (Huang et al., 2021; Polyak et al., 2021) have attempted to discretize them to extract disentangled linguistic content. However, while effective at removing speaker information, discretizing SSL representations results in lossy compression, which leads to mispronunciations in the converted speech (Qian et al., 2022).
 Figure 1: High-level overview of the voice conversion system.
To address this issue, alternative disentanglement strategies have been proposed. Soft-VC (van Niekerk et al., 2021a) creates soft speech units starting from discrete ones, which are obtained by applying k-means (Jin and Han, 2010) clustering over the output of a pre-trained HuBERT model. Specifically, a network is trained to predict a distribution over the discrete units to preserve more content information and thus correct mispronunciations. Neural Analysis and Synthesis (NANSY) (Choi et al., 2021) introduces information perturbation (prior to the SSL model) as a way to disentangle speaker-related information from other aspects of speech. In van Niekerk et al. (2021b), utterance-level standardization is used to remove speaker-specific information. However, while these methods are better at improving intelligibility than discretization, our findings indicate that the linguistic content is still compromised, especially in cross-lingual scenarios. Furthermore, other speaker-related features (e.g., the accent) are also distorted, as highlighted in Qian et al. (2022).
Recently, a variety of more versatile systems have emerged. One such example is kNN-VC (Baas et al., 2023), an any-to-any VC (A2A VC) approach that extracts frame-wise WavLM representations for both source and target speech. It then converts by directly replacing each frame of the source representation with its nearest neighbors in the target representation set. This strategy allows SSL features to be used without any further disentanglement step.
We propose an A2O VC system similar to that of van Niekerk et al. (2021a) except it learns to disentangle content information without the need for supplementary steps like discretization, and it can both enhance cross-lingual generation and reduce the training data requisites. Our main contributions are as follows:
- We show that a bottleneck information extractor similar to that of Li et al. (2022) is sufficient to improve intelligibility in cross-lingual scenarios without compromising on speech quality and target speaker identity. - We propose a cross-lingual pre-training fine
tuning strategy. This approach not only further enhances VC performance in cross-lingual scenarios but also allows low-quality data to be used for data intensive pre-training.
# 2 Model Architecture
The system consists of three components: a content encoder, an acoustic model, and a vocoder (Figure 1). The content encoder extracts speech representations from an audio of any speaker, the acoustic model translates these representations into a mel spectrogram of the target speaker, and the vocoder converts the resulting mel spectrogram into a time-domain waveform. For both training and inference, only audio data is required.
# 2.1 Problem Definition
Consider a dataset $D$ of a target speaker containing $M$ utterances in the time domain. Let us denote the $i$ -th utterance of the target speaker as $u_{i}$ , its features extracted by a pre-trained SSL model as $v_{i} \in \mathbb{R}^{s}$ , and its mel spectrogram as $x_{i}$ , where $i \in [1, M]$ . The content encoder $\mathcal{C}$ takes $u_{i}$ as its input and generates $v_{i}$ :
$$v _ {i} = \mathcal {C} \left(u _ {i}; w _ {\mathcal {C}}\right) \tag {1}$$
where $w_{\mathcal{C}}$ represents the content encoder parameters. To remove speaker information in $v_{i}$ while minimizing its impact on other components (e.g., linguistic content), the acoustic model $\mathcal{A}$ uses a pre-net $\mathcal{P}$ which projects $v_{i}$ into a space $\mathbb{R}^d$ , where $d \ll s$ . This dimensionality gap imposes an information bottleneck, which allows the acoustic model to discard content-irrelevant information such as noise and speaker identity (Li et al., 2022). Thus, the acoustic model $\mathcal{A}$ predicts $\hat{x}_i$ :
$$\hat {x} _ {i} = \mathcal {A} (\mathcal {P} (v _ {i}; w _ {\mathcal {P}}); w _ {\mathcal {A}}) \qquad (2)$$
where $w_{\mathcal{P}}$ represents the parameters of the pre-net, while $w_{\mathcal{A}}$ represents those of the acoustic model. Finally, the vocoder $\nu$ , given $\hat{x}_i$ , generates $\hat{u}_i$ :
$$\hat {u} _ {i} = \mathcal {V} (\hat {x} _ {i}; w _ {\mathcal {V}}) \tag {3}$$
where $w_{\mathcal{V}}$ represents the vocoder parameters.
The three components of the VC system are trained independently. The content encoder $\mathcal{C}$ is an off-the-shelf model pre-trained on a large set of multi-speaker data whereas the acoustic model $\mathcal{A}$ and the vocoder $\mathcal{V}$ are trained only on target speaker data. After generating pairs $(v_{i},x_{i})$ for each $u_{i}$ of the dataset $D$ , the acoustic model $\mathcal{A}$ is trained by optimizing the following objective function:
$$\min _ {w _ {\mathcal {P}}, w _ {\mathcal {A}}} L _ {\mathcal {A}} \left(x _ {i}, \mathcal {A} \left(\mathcal {P} \left(v _ {i}; w _ {\mathcal {P}}; w _ {\mathcal {A}}\right)\right)\right) \tag {4}$$
where $L_{\mathcal{A}}$ is a loss function in the time-frequency domain such as the $L_{1}$ distance between target and predicted mel spectrograms.
The vocoder $\mathcal{V}$ is trained either directly on ground truth mel spectrograms or on the mel spectrograms predicted by the acoustic model:
$$\min _ {w _ {\mathcal {V}}} L _ {\mathcal {V}} \left(u _ {i}, \mathcal {V} \left(x _ {i}; w _ {\mathcal {V}}\right)\right) \text {o r} \min _ {w _ {\mathcal {V}}} L _ {\mathcal {V}} \left(u _ {i}, \mathcal {V} \left(\hat {x} _ {i}; w _ {\mathcal {V}}\right)\right) \tag {5}$$
where $L_{\mathcal{V}}$ is a loss function in the time domain.
By training only on target speaker data, the loss function in Eq. 4 makes the acoustic model target speaker specific: it generates spectrograms of that speaker. The primary objective is to convert the source speaker's identity into that of the target speaker. Consequently, it is possible to perform XVC by converting a source utterance from a language different from that spoken by the target speaker, thereby enabling the target speaker to become polyglot.
# 2.2 Cross-Lingual Fine-Tuning
Although the system achieves intra- and cross-lingual A2O VC with good intelligibility and high quality overall, some phonemes are mispronounced or colored by the accent of the target speaker, especially in cross-lingual scenarios. To tackle this issue, we opted for a hybrid approach, leveraging the phonetic knowledge of a model trained on a specific language (e.g., French) to enhance the pronunciation and linguistic content of the target speaker (e.g., an English speaker) when it speaks that language. Let us consider a lang1-lang2 cross-lingual scenario. Our objective is to enhance the acoustic model on lang1 without compromising the intra-lingual and other cross-lingual tasks.
In addition to the target speaker dataset $D$ (lang2), let us also consider a dataset $D^{\prime}$ consisting of $N$ speakers, each of whom has $M^{\prime}$ utterances in lang1. Let us denote the $i$ -th utterance of
the $j$ -th speaker as $u_{ji}^{\prime}$ , its SSL vector as $v_{ji}^{\prime}$ , and its mel spectrogram as $x_{ji}^{\prime}$ , where $j \in [1, N]$ and $i \in [1, M^{\prime}]$ .
First, we pre-train the acoustic model $\mathcal{A}$ using the loss in Eq. 4 but employing pairs $(v_{ji}^{\prime}, x_{ji}^{\prime})$ for each $u_{ji}^{\prime}$ from the dataset $D$ . Eq. 4 becomes:
$$\min _ {w _ {\mathcal {P}} ^ {\prime}, w _ {\mathcal {A}} ^ {\prime}} L _ {\mathcal {A}} \left(x _ {j i} ^ {\prime}, \mathcal {A} \left(\mathcal {P} \left(v _ {j i} ^ {\prime}; w _ {\mathcal {P}} ^ {\prime}\right); w _ {\mathcal {A}} ^ {\prime}\right)\right) \tag {6}$$
Second, we fine-tune $\mathcal{A}$ using the dataset $D$ (or a subset thereof) from the target speaker, as explained in Section 2.1. This allows the acoustic model to acquire phonetic coverage of lang1 during the pre-training, which can be leveraged during the fine-tuning on lang2. Consequently, the lang2 target speaker will exhibit improved lang1 linguistic characteristics after the conversion.
The cross-lingual fine-tuning technique offers several advantages. It enhances the linguistic content and pronunciation in XVC and reduces the amount of training data needed from the target speaker. While training the acoustic model without fine-tuning typically requires at least 10-12h of high-quality audio from the target speaker, the fine-tuning only requires 2h.
# 2.3 Content encoder
The content encoder transforms an input waveform into a more concise and information-dense representation known as SSL vector. We chose WavLM as pretrained SSL model. WavLM was pre-trained by Microsoft using a self-supervised strategy similar to that of Hsu et al. (2021a) on 60,000 hours of Libri-Light (Kahn et al., 2019), 10,000 hours of GigaSpeech (Chen et al., 2021a) and 24,000 hours of VoxPopuli (Wang et al., 2021), for a total of 94,000 hours of audio data. We used a publicly available WavLM-Large $^3$ model employing the output of its 15th transformer layer as the representation for speech audio $v_{i}$ in all of our experiments. This decision was motivated by the findings of Hsu et al. (2021b); Baevski et al. (2021), which demonstrated the efficacy of this layer in phone discrimination tests. Accordingly, $s$ in Subsection 2.1 is configured to 1024, that is the dimension of the output vectors of WavLM-Large.
# 2.4 Acoustic Model and Vocoder
The acoustic model and vocoder are typical components in a text-to-speech (TTS) system.
The proposed acoustic model takes as input SSL vectors rather than graphemes or phonemes, and outputs target speaker mel spectrograms. Following van Niekerk et al. (2021a), the model's architecture resembles that of Tacotron 2 (Shen et al., 2017) as it features an encoder and an autoregressive decoder. Both the encoder and decoder are preceded by a feed-forward pre-net, while a final linear layer with $n$ -MELs units follows the decoder. No attention module is used (Huang et al., 2021). The encoder pre-net is a feed-forward neural net composed of a stack of two linear layers with 256 units, ReLU activations, and dropout (Srivastava et al., 2014). The encoder consists of a stack of three 1D-convolutional layers with 512 units, kernel size 5, stride 1, padding 2, and ReLU activations. Following Chou and Lee (2019), we added an Instance Normalization (IN) layer after each Conv1D layer, as this helps to further reduce speaker identity while preserving content information. The decoder predicts each spectrogram frame from the output of the encoder and the previously generated frames. First, a decoder pre-net, similar to the encoder one, is applied and then three LSTMs with 768 units each followed by a final linear layer with $n$ -MELs units are used.
The vocoder transforms the predicted mel spectrograms into audio waveforms. We used a HiFiGAN (Kong et al., 2020) model, a state-of-the-art real-time neural vocoder.
# 2.5 Length Regulator
As there is no attention mechanism, we use an optional duration adjustment strategy to mitigate potential length mismatches between the SSL input features and the target spectrogram sequence. Indeed, WavLM generates features at a $20\mathrm{ms}$ frame rate for audio sampled at $16\mathrm{kHz}$ (resulting in a hop length of 320), which might lead to a length mismatch when generating spectrograms with different time resolutions (e.g., different hop lengths and/or higher sample rates). This strategy involves integrating a length regulator module between the encoder and the decoder of the acoustic model which interpolates the SSL features extracted from the source speech. To do this, we leverage PyTorch's interpolate4 function with its default settings.
# 3 Experiments
To evaluate the effectiveness of our VC approach, experiments across a range of different tasks and datasets were conducted. All the experiments were run on a Linux machine with a single NVIDIA Titan RTX GPU with 24 GB of RAM.
The proposed system was tested as two variants: Proposed, our VC method using the conventional training strategy, and Proposed-F, the alternative system employing the cross-lingual finetuning strategy. We selected two baseline models for comparison: Soft-VC $^5$ (van Niekerk et al., 2021a) and kNN-VC $^6$ (Baas et al., 2023). Both excel in cross-lingual voice conversion tasks, demonstrating strong content intelligibility, accent preservation, and speech quality.
# 3.1 Experimental Setup
We conducted experiments for both intra- and crosslingual settings using LJSpeech (Ito and Johnson, 2017) as the target speaker dataset. We selected four languages for our evaluation: American English, European French, European Spanish, and Mandarin Chinese. For English, we used LibriSpeech (Panayotov et al., 2015); for French and Spanish, we used Multilingual LibriSpeech (MLS) (Pratap et al., 2020); for Mandarin Chinese, we used Aishell (Bu et al., 2017).
To ensure a fair comparison, when training the LJSpeech model we used the same configuration as van Niekerk et al. (2021a), including their HiFiGAN vocoder pre-trained on LJSpeech, unless otherwise stated. More specifically, we used a $16\mathrm{kHz}$ sampling rate and we set $n$ -MELs to 128, $s$ to 1024 and $d$ to 256.
For cross-lingual fine-tuning, we initially pretrained three distinct acoustic models for each language using randomly selected 150h of audio data from the training sets of LibriSpeech, French MLS, Spanish MLS, and Aishell, respectively. The choice of 150h was based on Aishell's training set size in order to ensure that each language gets the same amount of training hours. Each pre-trained acoustic model was fine-tuned with only 2h of LJSpeech data for 15k steps using a batch size of 8. We found this number of hours to be optimal for the fine-tuning step through several experiments conducted using a validation set composed of 100 utterances from LJSpeech. We also observed that
using less than $2\mathrm{h}$ of data was insufficient to obtain a good overall quality.
# 3.2 Evaluation Metrics
We assessed intelligibility, speaker similarity, accent preservation and overall speech quality in subjective and objective evaluations.
We created a test set for each language to be used as the source speech for conversion into LJSpeech. Each set consists of 60 utterances obtained by randomly selecting 3 utterances from 20 speakers (10 male and 10 female) extracted from: the test-clean set of LibriSpeech for English; the test set of Spanish MLS for Spanish; a set composed of the dev and test sets of French MLS combined for French; and a set composed of the dev and test sets of Aishell combined for Chinese.
# 3.2.1 Objective Evaluations
To evaluate the intelligibility of the converted speech, we measured word error rate (WER) and phoneme error rate (PER) between the source and converted speech using the Whisper Medium ASR model $^{7}$ (Radford et al., 2023) for English, French and Spanish and the FunASR model $^{8}$ (Gao et al., 2023) for Chinese. Lower error rates indicate more intelligible speech, as the original words/phonemes are still recognizable after conversion. We measured speaker similarity (SSIM) by using a trained speaker verification model $^{9}$ . Specifically, we computed the cosine similarity between the d-vectors (Heigold et al., 2015) of each converted sample and that of the target speaker. The target speaker embedding is generated by averaging the d-vectors of 50 utterances from LJSpeech.
# 3.2.2 Subjective Evaluations
We conducted subjective evaluations to assess both the overall quality and the native accent level of the converted audio.
For each language, we selected all 60 utterances from the corresponding test set and converted them into LJSpeech with our two proposed methods and the two baselines, resulting in a total of 300 utterances per language (60 ground truth + 240 generated). Then, for both tests, 20 native-language participants were asked to listen to the samples, randomly mixed, and rate them. To evaluate the overall quality, we gathered a mean opinion score
(MOS) based on a 5-point scale, where 1 stands for "very poor" and 5 for "excellent". The question asked was: "How do you rate the overall quality of this sample?". For accent assessment, we conducted an accent comparative mean opinion score (ACMOS) by asking all the participants to rate the samples based on how convincing the accent was perceived to be on a 5-point scale, where 1 stood for "strong foreign accent" and 5 for "native". The question asked was: "Does the voice sound like that of a native speaker?". For this test, Proposed-F was set as the baseline. A negative $\Delta$ -ACMOS indicates that a system performs worse than the baseline, zero either refers to the baseline itself or indicates the same performance, and a positive value indicates an improvement over the baseline. The intra-lingual English-English scenario was not considered as the accent is consistent and correct after conversion.
# 3.3 Results
In this section, we demonstrate the effectiveness of our proposed approaches evaluating both intra- and cross-lingual scenarios. Additionally, we show that our systems are also capable of preserving the emotions of the source speakers.
# 3.3.1 Speaker and Content Disentanglement
First, we show that any disentanglement step applied to the SSL representations, while effective in intra-lingual scenario, results in a significant performance loss in cross-lingual tasks. We compared the results obtained by directly using the output of the content encoder against some disentanglement strategies applied on top of the output of the 15th layer of WavLM-Large: discretization, perturbation, and per-utterance standardization. We omitted the soft strategy as it is included in Soft-VC.
For discretization, we followed the procedure outlined in van Niekerk et al. (2021a); for perturbation, we followed the procedure presented in Choi et al. (2021); and for per-utterance standardization, we followed the procedure described in van Niekerk et al. (2021b). Table 1 (middle) reports intelligibility in terms of WER and PER, and speaker similarity (SSIM) of each model. Compared to the other methods, the proposed systems significantly enhance the intelligibility across all languages in cross-lingual scenarios while also maintaining very good performance for English. Particularly notable is the significant improvement for Mandarin Chinese, with the WER decreasing from around
<table><tr><td></td><td colspan="5">English</td><td colspan="5">French</td></tr><tr><td></td><td>WER</td><td>PER</td><td>SSIM</td><td>MOS</td><td>Δ-ACMOS</td><td>WER</td><td>PER</td><td>SSIM</td><td>MOS</td><td>Δ-ACMOS</td></tr><tr><td>Ground truth</td><td>1.25</td><td>0.22</td><td>-</td><td>3.75 ± 0.04</td><td>-</td><td>8.74</td><td>2.70</td><td>-</td><td>3.77 ± 0.05</td><td>-</td></tr><tr><td>Discretization</td><td>18.81</td><td>10.28</td><td>90.86</td><td>-</td><td>-</td><td>70.00</td><td>60.54</td><td>90.54</td><td>-</td><td>-</td></tr><tr><td>Perturbation</td><td>2.82</td><td>0.88</td><td>92.42</td><td>-</td><td>-</td><td>27.17</td><td>12.08</td><td>90.84</td><td>-</td><td>-</td></tr><tr><td>Utterance std</td><td>4.76</td><td>2.56</td><td>88.62</td><td>-</td><td>-</td><td>15.75</td><td>5.58</td><td>84.03</td><td>-</td><td>-</td></tr><tr><td>Soft-VC</td><td>2.63</td><td>0.73</td><td>91.12</td><td>3.88 ± 0.04</td><td>-</td><td>19.13</td><td>6.91</td><td>89.16</td><td>3.73 ± 0.05</td><td>-0.13</td></tr><tr><td>kNN-VC</td><td>2.75</td><td>0.99</td><td>84.70</td><td>3.94 ± 0.04</td><td>-</td><td>16.55</td><td>6.24</td><td>81.26</td><td>3.82 ± 0.05</td><td>-0.10</td></tr><tr><td>Proposed</td><td>3.01</td><td>1.09</td><td>90.22</td><td>3.94 ± 0.05</td><td>-</td><td>14.16</td><td>5.00</td><td>88.67</td><td>3.85 ± 0.05</td><td>-0.09</td></tr><tr><td>Proposed-F</td><td>2.85</td><td>0.88</td><td>89.70</td><td>3.96 ± 0.04</td><td>-</td><td>12.43</td><td>4.02</td><td>88.25</td><td>3.83 ± 0.04</td><td>0.0</td></tr><tr><td></td><td colspan="5">Spanish</td><td colspan="5">Mandarin Chinese</td></tr><tr><td>Ground truth</td><td>6.31</td><td>1.52</td><td>-</td><td>3.95 ± 0.04</td><td>-</td><td>7.72</td><td>0.43</td><td>-</td><td>4.07 ± 0.08</td><td>-</td></tr><tr><td>Discretization</td><td>75.04</td><td>66.74</td><td>92.33</td><td>-</td><td>-</td><td>90.01</td><td>77.35</td><td>87.26</td><td>-</td><td>-</td></tr><tr><td>Perturbation</td><td>17.95</td><td>6.52</td><td>89.64</td><td>-</td><td>-</td><td>47.73</td><td>20.03</td><td>87.14</td><td>-</td><td>-</td></tr><tr><td>Utterance std</td><td>12.51</td><td>3.66</td><td>85.43</td><td>-</td><td>-</td><td>28.34</td><td>5.47</td><td>82.27</td><td>-</td><td>-</td></tr><tr><td>Soft-VC</td><td>14.78</td><td>5.02</td><td>89.17</td><td>3.80 ± 0.04</td><td>-0.08</td><td>51.82</td><td>21.04</td><td>86.15</td><td>3.01 ± 0.08</td><td>-1.25</td></tr><tr><td>kNN-VC</td><td>11.91</td><td>3.47</td><td>80.31</td><td>3.83 ± 0.04</td><td>-0.06</td><td>35.24</td><td>9.78</td><td>77.50</td><td>3.25 ± 0.08</td><td>-0.47</td></tr><tr><td>Proposed</td><td>9.78</td><td>2.56</td><td>88.13</td><td>3.87 ± 0.03</td><td>-0.05</td><td>19.95</td><td>3.64</td><td>84.78</td><td>3.67 ± 0.08</td><td>-0.03</td></tr><tr><td>Proposed-F</td><td>8.61</td><td>2.21</td><td>86.53</td><td>3.86 ± 0.04</td><td>0.0</td><td>18.39</td><td>3.33</td><td>83.02</td><td>3.73 ± 0.08</td><td>0.0</td></tr></table>
Table 1: Objective and subjective evaluation. (middle) Results (\%) in terms of intelligibility (W/PER ↓) and speaker similarity (SSMI ↑) considering three speaker and content disentanglement strategies: discretization, perturbation and per-utterance standardization. (bottom) W/PER, SSIM, overall quality (MOS ↑) with 95% confidence intervals, and the delta of the Accent Comparative MOS ( $\Delta$ -ACMOS) for the proposed approaches and the baseline systems.
$30\%$ to $80\%$ , and the PER decreasing from approximately $34\%$ to $95\%$ . Unlike perturbation, which fails to maintain the same performance observed for English, the overall effectiveness of the per-utterance standardization is significant. However, it does not adequately capture the target speaker's identity like the alternative approaches do. On the other hand, the speaker identity of our systems is comparable to that of other techniques, indicating that in an A2O VC setup, the disentanglement steps are not strictly required.
# 3.3.2 Objective and Subjective Evaluation
After the initial assessment, we evaluated the quality of the two proposed methods by comparing our outcomes with those of the baselines. Table 1 (bottom) reports WER/PER and SSIM, along with MOS and ACMOS for each model. As observed previously, intelligibility remains clearly superior for the proposed systems for all the cross-lingual tasks and is comparable to that of the baselines for English. In addition, the MOS scores show that both proposed approaches outperform the baselines in terms of overall quality. While kNN-VC shows comparable MOS values, it fails to maintain good speaker similarity. Interestingly, the MOS values
of the ground truth are lower than those of all models for English and French. We hypothesize that VC systems can act as denoisers over noisy inputs and that most likely influenced listeners' assignment of MOS scores. As for the accent assessment, Soft-VC and kNN-VC consistently exhibit negative delta values for the ACMOS, meaning that the generated samples are perceived as "less native-sounding" across all languages. In conclusion, while both proposed approaches outperform the baselines, Proposed-F leads to better intelligibility, higher MOS, and is also data efficient.
# 3.3.3 Ablation: Emotions Maintenance
In this section we show our system's ability to preserve source emotions during VC. To achieve this, we extended the LJSpeech dataset by incorporating the four emotions in the Emotional Speech Dataset (ESD) (Zhou et al., 2022): angry, surprise, sad, and happy. As we exclusively focus on English for this experiment, we converted all emotional utterances from the 10 English speakers of ESD into LJSpeech using our highest quality setup. The resulting corpus, referred to as Emo-LJSpeech, consists of roughly 35h of data, 11h of which are created through VC.
<table><tr><td></td><td>WER</td><td>PER</td><td>SSIM</td><td>MOS</td><td>Δ-ECMOS Angry</td><td>Δ-ECMOS Happy</td><td>Δ-ECMOS Sad</td><td>Δ-ECMOS Surprise</td></tr><tr><td>Ground truth</td><td>10.08</td><td>4.89</td><td>-</td><td>3.95 ± 0.04</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Proposed</td><td>11.01</td><td>5.53</td><td>89.54</td><td>3.90 ± 0.05</td><td>+0.39</td><td>+0.63</td><td>+0.41</td><td>+0.92</td></tr><tr><td>Proposed-F</td><td>11.55</td><td>5.80</td><td>88.37</td><td>3.80 ± 0.04</td><td>+0.86</td><td>+0.74</td><td>+0.24</td><td>+0.80</td></tr></table>
Table 2: Results (%) measuring intelligibility (W/PER ↓), speaker similarity (SSMI ↑), overall quality (MOS ↑) with 95% confidence intervals, and the delta of the Emotion Comparative Mean Opinion Score (Δ-ECMOS) vs neutral samples for the emotional experiment.
To ensure compatibility with the original sample rate of LJSpeech (22050 Hz), we implemented the approach outlined in Section 2.5 to address length disparities between source and target features. We set $n$ -MELs to 80, $n$ -fft to 1024, window length to 1024, and hop length to 256. The acoustic model was trained on LJSpeech with a batch size of 32 using AdamW (Loshchilov and Hutter, 2019) with an initial learning rate of 0.0001 and a weight decay of 0.01 for 200k steps. Throughout the training, the learning rate was linearly decreased after a warm-up period in which it was linearly increased for the first 4k training steps. The above hyper-parameters are the results of an extensive hyper-parameters search phase conducted using a validation set of 100 utterances from LJSpeech. For cross-lingual fine-tuning, we pre-trained the acoustic model on 13h of data from the English subset of ESD (including neutral data). We then fine-tuned it with 2h of LJSpeech for 15k steps using a batch size of 8. For the vocoder, we used an internal implementation of HiFi-GAN working at 22050 Hz trained on a proprietary multi-speaker dataset.
To assess the quality of the newly generated emotional corpus, we created a test set by randomly selecting, for each of the 4 emotions, 3 utterances from 5 speakers extracted from the ESD English subset, resulting in a total of 60 emotional utterances. We then conducted objective and subjective evaluations by comparing the ground truth recordings with the 60 utterances converted into LJSpeech using the Proposed and Proposed-F models, trained as explained earlier. In addition to assessing WER/PER, SSIM, and MOS, we also analysed the proposed systems' capacity to preserve source emotions through an emotion comparative mean opinion score (ECMOS). The test was conducted over each of the four emotions (referred to as $e$ ). 20 native participants rated the samples on a 5-point scale, indicating the extent to which the corresponding emotion (e.g., happy) was perceived, with 1 denoting "totally not $e$ " and 5 representing
"very $e$ ". The question was: "Does the voice sound $e$ ?" For this test, alongside the 60 emotional utterances, 60 corresponding neutral-style utterances were also generated using both models. These neutral samples served as reference data. We report the $\Delta$ -ECMOS which reflects the extent to which a certain emotion was perceived after VC compared to its neutral counterpart. The results are shown in Table 2. The intelligibility and overall quality are very similar to those of the ground truth recordings. Unlike previous experiments, Proposed outperformed Proposed-F. This could be attributed to the limited amount of data used for the pre-training (13h compared to the 150h used in previous experiments). We defer more detailed analysis of this to future work. However, both systems effectively preserve source emotions, as indicated by consistently positive $\Delta$ -ECMOS scores.
# 4 Conclusion
With this work we have developed an A2O VC system capable of generating human-level native-sounding polyglot voices without relying on multilingual data from the target speaker. We showed how several content and speaker disentanglement strategies applied to SSL features do not perform well in cross-lingual scenarios. To overcome this, we have demonstrated that by directly leveraging SSL features and performing cross-lingual fine-tuning, we are able to enhance the intelligibility and accent of the converted voices. Furthermore, we have illustrated that our models can preserve source emotions throughout the conversion process. Our experiments showcased improvements over strong baseline methods across all the examined metrics. Moreover, MOS tests conducted with multiple native participants revealed that our outcomes closely approximate human recordings in terms of overall quality. For future research, our aim is to explore the creation of high-quality polyglot voices in an A2A setup to further reduce data requirements.
# Limitations
To achieve high-quality polyglot voices, we focused on A2O and thus target-specific acoustic model. This approach requires a substantial amount of training data. While fine-tuning has helped reduce the required data, 2h can still be considered a significant amount. We leave to future research the development of approaches aimed at further reducing the amount of data needed to train models for specific target speakers.
We conducted our experiments on a single female speaker dataset (LJSpeech). Having limited testing resources, we decided to prioritize the number of experiments on the polyglot aspect over having multiple speakers. This allowed us to show that our model can work correctly with significantly different languages.
Based on the experiments conducted, the SSIM of the proposed methods is slightly lower, though comparable, to that of other approaches. This discrepancy likely stems from our direct use of SSL features without additional refinements. However, sacrificing a small degree of speaker similarity enhances other aspects such as intelligibility and accent, particularly in cross-lingual tasks. We believe that implementing a more efficient disentanglement scheme will enable us to achieve optimal quality across all components. This is a direction we plan to pursue in future research.
# Acknowledgments
(Portions of) the research in this paper used the ESD Database made available by the HLT lab, National University of Singapore, Singapore.
# References
Masanobu Abe, Kiyohiro Shikano, and Hisao Kuwabara. 1990. Cross-language voice conversion. International Conference on Acoustics, Speech, and Signal Processing, pages 345-348 vol.1. Matthew Baas, Benjamin van Niekerk, and Herman Kamper. 2023. Voice Conversion With Just Nearest Neighbors. In Proc. INTERSPEECH 2023, pages 2053-2057. Alexei Baevski, Wei-Ning Hsu, Alexis Conneau, and Michael Auli. 2021. Unsupervised speech recognition. Advances in Neural Information Processing Systems, 34:27826-27839. Alexei Baevski, Henry Zhou, Abdel rahman Mohamed, and Michael Auli. 2020. wav2vec 2.0: A framework
for self-supervised learning of speech representations. ArXiv, abs/2006.11477. Hui Bu, Jiayu Du, Xingyu Na, Bengu Wu, and Hao Zheng. 2017. Aishell-1: An open-source mandarin speech corpus and a speech recognition baseline. 2017 20th Conference of the Oriental Chapter of the International Coordinating Committee on Speech Databases and Speech I/O Systems and Assessment (O-COCOSDA), pages 1-5. Guoguo Chen, Shuzhou Chai, Guan-Bo Wang, Jiayu Du, Wei-Qiang Zhang, Chao Weng, Dan Su, Daniel Povey, Jan Trmal, Junbo Zhang, Mingjie Jin, Sanjeev Khudanpur, Shinji Watanabe, Shuaijiang Zhao, Wei Zou, Xiangang Li, Xuchen Yao, Yongqing Wang, Zhao You, and Zhiyong Yan. 2021a. Gigaspeech: An evolving, multi-domain asr corpus with 10,000 hours of transcribed audio. In Proc. Interspeech 2021. Sanyuan Chen, Chengyi Wang, Zhengyang Chen, Yu Wu, Shujie Liu, Zhuo Chen, Jinyu Li, Naoyuki Kanda, Takuya Yoshioka, Xiong Xiao, Jian Wu, Long Zhou, Shuo Ren, Yanmin Qian, Yao Qian, Micheal Zeng, and Furu Wei. 2021b. Wavlm: Large-scale self-supervised pre-training for full stack speech processing. IEEE Journal of Selected Topics in Signal Processing, 16:1505-1518. Hyeong-Seok Choi, Juheon Lee, Wan Soo Kim, Jie Hwan Lee, Hoon Heo, and Kyogu Lee. 2021. Neural analysis and synthesis: Reconstructing speech from self-supervised representations. ArXiv, abs/2110.14513. Ju-chieh Chou and Hung-yi Lee. 2019. One-shot voice conversion by separating speaker and content representations with instance normalization. In INTER-SPEECH, pages 664-668. Zhifu Gao, Zerui Li, Jiaming Wang, Haoneng Luo, Xian Shi, Mengzhe Chen, Yabin Li, Lingyun Zuo, Zhihao Du, Zhangyu Xiao, and Shiliang Zhang. 2023. Funasr: A fundamental end-to-end speech recognition toolkit. In INTERSPEECH. Georg Heigold, Ignacio Moreno, Samy Bengio, and Noam M. Shazeer. 2015. End-to-end text-dependent speaker verification. 2016 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5115-5119. Wei-Ning Hsu, Benjamin Bolte, Yao-Hung Hubert Tsai, Kushal Lakhotia, Ruslan Salakhutdinov, and Abdel rahman Mohamed. 2021a. Hubert: Self-supervised speech representation learning by masked prediction of hidden units. IEEE/ACM Transactions on Audio, Speech, and Language Processing, 29:3451-3460. Wei-Ning Hsu, Yao-Hung Hubert Tsai, Benjamin Bolte, Ruslan Salakhutdinov, and Abdel rahman Mohamed. 2021b. Hubert: How much can a bad teacher benefit asr pre-training? ICASSP 2021 - 2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6533-6537.
Wen-Chin Huang, Tomoki Hayashi, Shinji Watanabe, and Tomoki Toda. 2020. The sequence-to-sequence baseline for the voice conversion challenge 2020: Cascading asr and tts. ArXiv, abs/2010.02434. Wen-Chin Huang, Shu wen Yang, Tomoki Hayashi, Hung yi Lee, Shinji Watanabe, and Tomoki Toda. 2021. S3prl-vc: Open-source voice conversion framework with self-supervised speech representations. ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6552-6556. Shehzeen Samarah Hussain, Paarth Neekhara, Jocelyn Huang, Jason Li, and Boris Ginsburg. 2023. Acevc: Adaptive and controllable voice conversion using explicitly disentangled self-supervised speech representations. ICASSP 2023 - 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1-5. Keith Ito and Linda Johnson. 2017. The LJ speech dataset. https://keithito.com/LJ-Speech-Dataset/. Xin Jin and Jiawei Han. 2010. K-Means Clustering, pages 563-564. Springer US, Boston, MA. Jacob Kahn, Morgane Rivière, Weiyi Zheng, Evgeny Kharitonov, Qiantong Xu, Pierre-Emmanuel Mazar'e, Julien Karadayi, Vitaliy Liptchinsky, Ronan Collobert, Christian Fuegen, Tatiana Likhomanenko, Gabriel Synnaeve, Armand Joulin, Abdel rahman Mohamed, and Emmanuel Dupoux. 2019. Librilight: A benchmark for asr with limited or no supervision. ICASSP 2020 - 2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 7669-7673. Jungil Kong, Jaehyeon Kim, and Jaekyoung Bae. 2020. Hifi-gan: Generative adversarial networks for efficient and high fidelity speech synthesis. In Advances in Neural Information Processing Systems, volume 33, pages 17022-17033. Curran Associates, Inc. Jingyi Li, Weiping Tu, and Li Xiao. 2022. Freevc: Towards high-quality text-free one-shot voice conversion. ICASSP 2023 - 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1-5. Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In International Conference on Learning Representations. Vassil Panayotov, Guoguo Chen, Daniel Povey, and Sanjeev Khudanpur. 2015. Librispeech: An asr corpus based on public domain audio books. In 2015 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5206-5210. Adam Polyak, Yossi Adi, Jade Copet, Eugene Kharitonov, Kushal Lakhotia, Wei-Ning Hsu, Abdel rahman Mohamed, and Emmanuel Dupoux. 2021. Speech resynthesis from discrete disentangled self-supervised representations. In Interspeech.
Vineel Pratap, Qiantong Xu, Anuroop Sriram, Gabriel Synnaeve, and Ronan Collobert. 2020. Mls: A large-scale multilingual dataset for speech research. In *Interspeech* 2020, 21st Annual Conference of the International Speech Communication Association, Virtual Event, Shanghai, China, 25-29 October 2020, pages 2757-2761. ISCA. Kaizhi Qian, Yang Zhang, Heting Gao, Junrui Ni, Cheng-I Lai, David Cox, Mark A. Hasegawa-Johnson, and Shiyu Chang. 2022. Contentvec: An improved self-supervised speech representation by disentangling speakers. In International Conference on Machine Learning. Zengyi Qin, Wenliang Zhao, Xumin Yu, and Xin Sun. 2023. Openvoice: Versatile instant voice cloning. ArXiv, abs/2312.01479. Alec Radford, Jong Wook Kim, Tao Xu, Greg Brockman, Christine McLeavey, and Ilya Sutskever. 2023. Robust speech recognition via large-scale weak supervision. In International Conference on Machine Learning, pages 28492-28518. PMLR. Jonathan Shen, Ruoming Pang, Ron J. Weiss, Mike Schuster, Navdeep Jaitly, Zongheng Yang, Z. Chen, Yu Zhang, Yuxuan Wang, R. J. Skerry-Ryan, Rif A. Saurous, Yannis Agiomyrgiannakis, and Yonghui Wu. 2017. Natural tts synthesis by conditioning wavenet on mel spectrogram predictions. 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 4779-4783. Nitish Srivastava, Geoffrey E. Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. 2014. Dropout: a simple way to prevent neural networks from overfitting. J. Mach. Learn. Res., 15:1929-1958. Lifa Sun, Kun Li, Hao Wang, Shiyin Kang, and Helen M. Meng. 2016. Phonetic posteriograms for many-to-one voice conversion without parallel data training. 2016 IEEE International Conference on Multimedia and Expo (ICME), pages 1-6. Benjamin van Niekerk, Marc-Andre Carbonneau, Julian Zaidi, Matthew Baas, Hugo Seute, and Herman Kamper. 2021a. A comparison of discrete and soft speech units for improved voice conversion. ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6562-6566. Benjamin van Niekerk, Leanne Nortje, Matthias Baas, and Herman Kamper. 2021b. Analyzing speaker information in self-supervised models to improve zero-resource speech processing. ArXiv, abs/2108.00917. Changhan Wang, Morgane Riviere, Ann Lee, Anne Wu, Chaitanya Talnikar, Daniel Haziza, Mary Williamson, Juan Pino, and Emmanuel Dupoux. 2021. VoxPopuli: A large-scale multilingual speech corpus for representation learning, semi-supervised learning and interpretation. In Proceedings of the 59th Annual
Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 993-1003, Online. Association for Computational Linguistics. Zi-Hua Zhang, Long Zhou, Chengyi Wang, Sanyuan Chen, Yu Wu, Shujie Liu, Zhuo Chen, Yanqing Liu, Huaming Wang, Jinyu Li, Lei He, Sheng Zhao, and Furu Wei. 2023. Speak foreign languages with your own voice: Cross-lingual neural codec language modeling. ArXiv, abs/2303.03926. Yi Zhao, Wen-Chin Huang, Xiaohai Tian, Junichi Yamagishi, Rohan Kumar Das, Tomi H. Kinnunen, Zhenhua Ling, and Tomoki Toda. 2020. Voice conversion challenge 2020: Intra-lingual semi-parallel and cross-lingual voice conversion. ArXiv, abs/2008.12527. Kun Zhou, Terrak Sisman, Rui Liu, and Haizhou Li. 2022. Emotional voice conversion: Theory, databases and esd. Speech Communication, 137:1-18.123version https://git-lfs.github.com/spec/v1oid sha256:20051ef7c110ee4bb6abc9601b4eb22a7300f79169dcf4b1d508597b40eb3f9esize 197153.gitattributes+64
2024/Enhancing Healthcare LLM Trust with Atypical Presentations Recalibration/17ec7f20-2d49-42cd-ae5b-0732762276cf_content_list.jsonAdded
2024/Enhancing Healthcare LLM Trust with Atypical Presentations Recalibration/17ec7f20-2d49-42cd-ae5b-0732762276cf_model.jsonAdded
2024/Enhancing Healthcare LLM Trust with Atypical Presentations Recalibration/17ec7f20-2d49-42cd-ae5b-0732762276cf_origin.pdfAdded+3
2024/Enhancing Healthcare LLM Trust with Atypical Presentations Recalibration/full.mdAdded+439
2024/Enhancing Healthcare LLM Trust with Atypical Presentations Recalibration/images.zipAdded+3
2024/Enhancing Healthcare LLM Trust with Atypical Presentations Recalibration/layout.jsonAdded
2024/Enhancing Incremental Summarization with Structured Representations/8653e353-8f1f-4214-9cbf-09d01f8972cf_content_list.jsonAdded+2529
2024/Enhancing Incremental Summarization with Structured Representations/8653e353-8f1f-4214-9cbf-09d01f8972cf_model.jsonAdded
2024/Enhancing Incremental Summarization with Structured Representations/8653e353-8f1f-4214-9cbf-09d01f8972cf_origin.pdfAdded+3
2024/Enhancing Incremental Summarization with Structured Representations/full.mdAdded+570
2024/Enhancing Incremental Summarization with Structured Representations/images.zipAdded+3
2024/Enhancing Incremental Summarization with Structured Representations/layout.jsonAdded
2024/Enhancing Large Language Model Based Sequential Recommender Systems with Pseudo Labels Reconstruction/d8390418-9816-48d9-8756-5a4b9fab7dad_content_list.jsonAdded+1666
2024/Enhancing Large Language Model Based Sequential Recommender Systems with Pseudo Labels Reconstruction/d8390418-9816-48d9-8756-5a4b9fab7dad_model.jsonAdded+2112
2024/Enhancing Large Language Model Based Sequential Recommender Systems with Pseudo Labels Reconstruction/d8390418-9816-48d9-8756-5a4b9fab7dad_origin.pdfAdded+3
2024/Enhancing Large Language Model Based Sequential Recommender Systems with Pseudo Labels Reconstruction/full.mdAdded+314
2024/Enhancing Large Language Model Based Sequential Recommender Systems with Pseudo Labels Reconstruction/images.zipAdded+3
2024/Enhancing Large Language Model Based Sequential Recommender Systems with Pseudo Labels Reconstruction/layout.jsonAdded
2024/Enhancing Learning-Based Binary Code Similarity Detection Model through Adversarial Training with Multiple Function Variants/60adc150-5809-4fe3-9995-47468de3f8aa_content_list.jsonAdded+1646
2024/Enhancing Learning-Based Binary Code Similarity Detection Model through Adversarial Training with Multiple Function Variants/60adc150-5809-4fe3-9995-47468de3f8aa_model.jsonAdded+2081
2024/Enhancing Learning-Based Binary Code Similarity Detection Model through Adversarial Training with Multiple Function Variants/60adc150-5809-4fe3-9995-47468de3f8aa_origin.pdfAdded+3
2024/Enhancing Learning-Based Binary Code Similarity Detection Model through Adversarial Training with Multiple Function Variants/full.mdAdded+307
2024/Enhancing Learning-Based Binary Code Similarity Detection Model through Adversarial Training with Multiple Function Variants/images.zipAdded+3
2024/Enhancing Learning-Based Binary Code Similarity Detection Model through Adversarial Training with Multiple Function Variants/layout.jsonAdded
2024/Enhancing Multi-Label Text Classification under Label-Dependent Noise_ A Label-Specific Denoising Framework/853a02cc-e7bc-4ccb-a3fc-1f3bd9fce229_content_list.jsonAdded
2024/Enhancing Multi-Label Text Classification under Label-Dependent Noise_ A Label-Specific Denoising Framework/853a02cc-e7bc-4ccb-a3fc-1f3bd9fce229_model.jsonAdded
2024/Enhancing Multi-Label Text Classification under Label-Dependent Noise_ A Label-Specific Denoising Framework/853a02cc-e7bc-4ccb-a3fc-1f3bd9fce229_origin.pdfAdded+3
2024/Enhancing Multi-Label Text Classification under Label-Dependent Noise_ A Label-Specific Denoising Framework/full.mdAdded+488
2024/Enhancing Multi-Label Text Classification under Label-Dependent Noise_ A Label-Specific Denoising Framework/images.zipAdded+3
2024/Enhancing Multi-Label Text Classification under Label-Dependent Noise_ A Label-Specific Denoising Framework/layout.jsonAdded
2024/Enhancing Polyglot Voices by Leveraging Cross-Lingual Fine-Tuning in Any-to-One Voice Conversion/3dcf681b-a779-483e-94de-6396a194a241_content_list.jsonAdded+1424
2024/Enhancing Polyglot Voices by Leveraging Cross-Lingual Fine-Tuning in Any-to-One Voice Conversion/3dcf681b-a779-483e-94de-6396a194a241_model.jsonAdded+1848
2024/Enhancing Polyglot Voices by Leveraging Cross-Lingual Fine-Tuning in Any-to-One Voice Conversion/3dcf681b-a779-483e-94de-6396a194a241_origin.pdfAdded+3
2024/Enhancing Polyglot Voices by Leveraging Cross-Lingual Fine-Tuning in Any-to-One Voice Conversion/full.mdAdded+249
2024/Enhancing Polyglot Voices by Leveraging Cross-Lingual Fine-Tuning in Any-to-One Voice Conversion/images.zipAdded+3
2024/Enhancing Polyglot Voices by Leveraging Cross-Lingual Fine-Tuning in Any-to-One Voice Conversion/layout.jsonAdded
2024/Enhancing Short-Text Topic Modeling with LLM-Driven Context Expansion and Prefix-Tuned VAEs/b492108e-737d-4457-aa24-43abcb7c1250_content_list.jsonAdded
2024/Enhancing Short-Text Topic Modeling with LLM-Driven Context Expansion and Prefix-Tuned VAEs/b492108e-737d-4457-aa24-43abcb7c1250_model.jsonAdded
2024/Enhancing Short-Text Topic Modeling with LLM-Driven Context Expansion and Prefix-Tuned VAEs/b492108e-737d-4457-aa24-43abcb7c1250_origin.pdfAdded
2024/Enhancing Short-Text Topic Modeling with LLM-Driven Context Expansion and Prefix-Tuned VAEs/full.mdAdded
2024/Enhancing Short-Text Topic Modeling with LLM-Driven Context Expansion and Prefix-Tuned VAEs/images.zipAdded
2024/Enhancing Short-Text Topic Modeling with LLM-Driven Context Expansion and Prefix-Tuned VAEs/layout.jsonAdded
2024/Enhancing Temporal Modeling of Video LLMs via Time Gating/3396d994-72e8-4416-8e98-970f8651e540_content_list.jsonAdded
2024/Enhancing Temporal Modeling of Video LLMs via Time Gating/3396d994-72e8-4416-8e98-970f8651e540_model.jsonAdded
2024/Enhancing Temporal Modeling of Video LLMs via Time Gating/3396d994-72e8-4416-8e98-970f8651e540_origin.pdfAdded
2024/Enhancing Temporal Modeling of Video LLMs via Time Gating/full.mdAdded
2024/Enhancing Temporal Modeling of Video LLMs via Time Gating/images.zipAdded
2024/Enhancing Temporal Modeling of Video LLMs via Time Gating/layout.jsonAdded
2024/Enhancing Temporal Sensitivity and Reasoning for Time-Sensitive Question Answering/0da014d0-8561-4020-960b-9f3020bb0b25_content_list.jsonAdded