Add Batch bb64c846-ae9e-4bd2-8061-08f84bae28ff data
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +64 -0
- 2025/TACLR_ A Scalable and Efficient Retrieval-based Method for Industrial Product Attribute Value Identification/939f3cd5-94e9-46cf-8def-cb09a1fd834c_content_list.json +1854 -0
- 2025/TACLR_ A Scalable and Efficient Retrieval-based Method for Industrial Product Attribute Value Identification/939f3cd5-94e9-46cf-8def-cb09a1fd834c_model.json +0 -0
- 2025/TACLR_ A Scalable and Efficient Retrieval-based Method for Industrial Product Attribute Value Identification/939f3cd5-94e9-46cf-8def-cb09a1fd834c_origin.pdf +3 -0
- 2025/TACLR_ A Scalable and Efficient Retrieval-based Method for Industrial Product Attribute Value Identification/full.md +341 -0
- 2025/TACLR_ A Scalable and Efficient Retrieval-based Method for Industrial Product Attribute Value Identification/images.zip +3 -0
- 2025/TACLR_ A Scalable and Efficient Retrieval-based Method for Industrial Product Attribute Value Identification/layout.json +0 -0
- 2025/TARGA_ Targeted Synthetic Data Generation for Practical Reasoning over Structured Data/9e5b56f3-c8f5-4eb7-be25-daa4af06471e_content_list.json +0 -0
- 2025/TARGA_ Targeted Synthetic Data Generation for Practical Reasoning over Structured Data/9e5b56f3-c8f5-4eb7-be25-daa4af06471e_model.json +0 -0
- 2025/TARGA_ Targeted Synthetic Data Generation for Practical Reasoning over Structured Data/9e5b56f3-c8f5-4eb7-be25-daa4af06471e_origin.pdf +3 -0
- 2025/TARGA_ Targeted Synthetic Data Generation for Practical Reasoning over Structured Data/full.md +671 -0
- 2025/TARGA_ Targeted Synthetic Data Generation for Practical Reasoning over Structured Data/images.zip +3 -0
- 2025/TARGA_ Targeted Synthetic Data Generation for Practical Reasoning over Structured Data/layout.json +0 -0
- 2025/TC–RAG_ Turing–Complete RAG’s Case study on Medical LLM Systems/08530356-6e71-43b5-b2a0-ddb4582c96bf_content_list.json +0 -0
- 2025/TC–RAG_ Turing–Complete RAG’s Case study on Medical LLM Systems/08530356-6e71-43b5-b2a0-ddb4582c96bf_model.json +0 -0
- 2025/TC–RAG_ Turing–Complete RAG’s Case study on Medical LLM Systems/08530356-6e71-43b5-b2a0-ddb4582c96bf_origin.pdf +3 -0
- 2025/TC–RAG_ Turing–Complete RAG’s Case study on Medical LLM Systems/full.md +0 -0
- 2025/TC–RAG_ Turing–Complete RAG’s Case study on Medical LLM Systems/images.zip +3 -0
- 2025/TC–RAG_ Turing–Complete RAG’s Case study on Medical LLM Systems/layout.json +0 -0
- 2025/TEACH_ A Contrastive Knowledge Adaptive Distillation Framework for Classical Chinese Understanding/aecc946d-77dc-4482-aa73-533ce4e2f50d_content_list.json +0 -0
- 2025/TEACH_ A Contrastive Knowledge Adaptive Distillation Framework for Classical Chinese Understanding/aecc946d-77dc-4482-aa73-533ce4e2f50d_model.json +0 -0
- 2025/TEACH_ A Contrastive Knowledge Adaptive Distillation Framework for Classical Chinese Understanding/aecc946d-77dc-4482-aa73-533ce4e2f50d_origin.pdf +3 -0
- 2025/TEACH_ A Contrastive Knowledge Adaptive Distillation Framework for Classical Chinese Understanding/full.md +462 -0
- 2025/TEACH_ A Contrastive Knowledge Adaptive Distillation Framework for Classical Chinese Understanding/images.zip +3 -0
- 2025/TEACH_ A Contrastive Knowledge Adaptive Distillation Framework for Classical Chinese Understanding/layout.json +0 -0
- 2025/TESS 2_ A Large-Scale Generalist Diffusion Language Model/cc3a7cf6-9b0a-4a89-a779-2019421a1045_content_list.json +0 -0
- 2025/TESS 2_ A Large-Scale Generalist Diffusion Language Model/cc3a7cf6-9b0a-4a89-a779-2019421a1045_model.json +0 -0
- 2025/TESS 2_ A Large-Scale Generalist Diffusion Language Model/cc3a7cf6-9b0a-4a89-a779-2019421a1045_origin.pdf +3 -0
- 2025/TESS 2_ A Large-Scale Generalist Diffusion Language Model/full.md +503 -0
- 2025/TESS 2_ A Large-Scale Generalist Diffusion Language Model/images.zip +3 -0
- 2025/TESS 2_ A Large-Scale Generalist Diffusion Language Model/layout.json +0 -0
- 2025/TETRIS_ Optimal Draft Token Selection for Batch Speculative Decoding/d8ef7f64-1cd8-42f9-93b1-aca035fdf587_content_list.json +0 -0
- 2025/TETRIS_ Optimal Draft Token Selection for Batch Speculative Decoding/d8ef7f64-1cd8-42f9-93b1-aca035fdf587_model.json +0 -0
- 2025/TETRIS_ Optimal Draft Token Selection for Batch Speculative Decoding/d8ef7f64-1cd8-42f9-93b1-aca035fdf587_origin.pdf +3 -0
- 2025/TETRIS_ Optimal Draft Token Selection for Batch Speculative Decoding/full.md +498 -0
- 2025/TETRIS_ Optimal Draft Token Selection for Batch Speculative Decoding/images.zip +3 -0
- 2025/TETRIS_ Optimal Draft Token Selection for Batch Speculative Decoding/layout.json +0 -0
- 2025/THOR-MoE_ Hierarchical Task-Guided and Context-Responsive Routing for Neural Machine Translation/f6520cf3-9239-4e76-8a25-131bf94b31d7_content_list.json +2083 -0
- 2025/THOR-MoE_ Hierarchical Task-Guided and Context-Responsive Routing for Neural Machine Translation/f6520cf3-9239-4e76-8a25-131bf94b31d7_model.json +0 -0
- 2025/THOR-MoE_ Hierarchical Task-Guided and Context-Responsive Routing for Neural Machine Translation/f6520cf3-9239-4e76-8a25-131bf94b31d7_origin.pdf +3 -0
- 2025/THOR-MoE_ Hierarchical Task-Guided and Context-Responsive Routing for Neural Machine Translation/full.md +408 -0
- 2025/THOR-MoE_ Hierarchical Task-Guided and Context-Responsive Routing for Neural Machine Translation/images.zip +3 -0
- 2025/THOR-MoE_ Hierarchical Task-Guided and Context-Responsive Routing for Neural Machine Translation/layout.json +0 -0
- 2025/TRACT_ Regression-Aware Fine-tuning Meets Chain-of-Thought Reasoning for LLM-as-a-Judge/142e9116-0830-41df-88fb-0f4abce5fead_content_list.json +0 -0
- 2025/TRACT_ Regression-Aware Fine-tuning Meets Chain-of-Thought Reasoning for LLM-as-a-Judge/142e9116-0830-41df-88fb-0f4abce5fead_model.json +0 -0
- 2025/TRACT_ Regression-Aware Fine-tuning Meets Chain-of-Thought Reasoning for LLM-as-a-Judge/142e9116-0830-41df-88fb-0f4abce5fead_origin.pdf +3 -0
- 2025/TRACT_ Regression-Aware Fine-tuning Meets Chain-of-Thought Reasoning for LLM-as-a-Judge/full.md +549 -0
- 2025/TRACT_ Regression-Aware Fine-tuning Meets Chain-of-Thought Reasoning for LLM-as-a-Judge/images.zip +3 -0
- 2025/TRACT_ Regression-Aware Fine-tuning Meets Chain-of-Thought Reasoning for LLM-as-a-Judge/layout.json +0 -0
- 2025/TRIDENT_ Enhancing Large Language Model Safety with Tri-Dimensional Diversified Red-Teaming Data Synthesis/f7ba882e-850d-4f46-b2a6-c075e0c61de6_content_list.json +0 -0
.gitattributes
CHANGED
|
@@ -2741,3 +2741,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 2741 |
2025/T-REG_[[:space:]]Preference[[:space:]]Optimization[[:space:]]with[[:space:]]Token-Level[[:space:]]Reward[[:space:]]Regularization/fed22e5e-5a1b-40b5-8fb6-1526941f903a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2742 |
2025/T2A-Feedback_[[:space:]]Improving[[:space:]]Basic[[:space:]]Capabilities[[:space:]]of[[:space:]]Text-to-Audio[[:space:]]Generation[[:space:]]via[[:space:]]Fine-grained[[:space:]]AI[[:space:]]Feedback/4172e218-60f8-4fb5-b2d9-f899a2be6a02_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2743 |
2025/T2I-FactualBench_[[:space:]]Benchmarking[[:space:]]the[[:space:]]Factuality[[:space:]]of[[:space:]]Text-to-Image[[:space:]]Models[[:space:]]with[[:space:]]Knowledge-Intensive[[:space:]]Concepts/435f957e-e61f-401d-b1c3-262c1ca9ea55_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2741 |
2025/T-REG_[[:space:]]Preference[[:space:]]Optimization[[:space:]]with[[:space:]]Token-Level[[:space:]]Reward[[:space:]]Regularization/fed22e5e-5a1b-40b5-8fb6-1526941f903a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2742 |
2025/T2A-Feedback_[[:space:]]Improving[[:space:]]Basic[[:space:]]Capabilities[[:space:]]of[[:space:]]Text-to-Audio[[:space:]]Generation[[:space:]]via[[:space:]]Fine-grained[[:space:]]AI[[:space:]]Feedback/4172e218-60f8-4fb5-b2d9-f899a2be6a02_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2743 |
2025/T2I-FactualBench_[[:space:]]Benchmarking[[:space:]]the[[:space:]]Factuality[[:space:]]of[[:space:]]Text-to-Image[[:space:]]Models[[:space:]]with[[:space:]]Knowledge-Intensive[[:space:]]Concepts/435f957e-e61f-401d-b1c3-262c1ca9ea55_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2744 |
+
2025/TACLR_[[:space:]]A[[:space:]]Scalable[[:space:]]and[[:space:]]Efficient[[:space:]]Retrieval-based[[:space:]]Method[[:space:]]for[[:space:]]Industrial[[:space:]]Product[[:space:]]Attribute[[:space:]]Value[[:space:]]Identification/939f3cd5-94e9-46cf-8def-cb09a1fd834c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2745 |
+
2025/TARGA_[[:space:]]Targeted[[:space:]]Synthetic[[:space:]]Data[[:space:]]Generation[[:space:]]for[[:space:]]Practical[[:space:]]Reasoning[[:space:]]over[[:space:]]Structured[[:space:]]Data/9e5b56f3-c8f5-4eb7-be25-daa4af06471e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2746 |
+
2025/TC–RAG_[[:space:]]Turing–Complete[[:space:]]RAG’s[[:space:]]Case[[:space:]]study[[:space:]]on[[:space:]]Medical[[:space:]]LLM[[:space:]]Systems/08530356-6e71-43b5-b2a0-ddb4582c96bf_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2747 |
+
2025/TEACH_[[:space:]]A[[:space:]]Contrastive[[:space:]]Knowledge[[:space:]]Adaptive[[:space:]]Distillation[[:space:]]Framework[[:space:]]for[[:space:]]Classical[[:space:]]Chinese[[:space:]]Understanding/aecc946d-77dc-4482-aa73-533ce4e2f50d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2748 |
+
2025/TESS[[:space:]]2_[[:space:]]A[[:space:]]Large-Scale[[:space:]]Generalist[[:space:]]Diffusion[[:space:]]Language[[:space:]]Model/cc3a7cf6-9b0a-4a89-a779-2019421a1045_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2749 |
+
2025/TETRIS_[[:space:]]Optimal[[:space:]]Draft[[:space:]]Token[[:space:]]Selection[[:space:]]for[[:space:]]Batch[[:space:]]Speculative[[:space:]]Decoding/d8ef7f64-1cd8-42f9-93b1-aca035fdf587_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2750 |
+
2025/THOR-MoE_[[:space:]]Hierarchical[[:space:]]Task-Guided[[:space:]]and[[:space:]]Context-Responsive[[:space:]]Routing[[:space:]]for[[:space:]]Neural[[:space:]]Machine[[:space:]]Translation/f6520cf3-9239-4e76-8a25-131bf94b31d7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2751 |
+
2025/TRACT_[[:space:]]Regression-Aware[[:space:]]Fine-tuning[[:space:]]Meets[[:space:]]Chain-of-Thought[[:space:]]Reasoning[[:space:]]for[[:space:]]LLM-as-a-Judge/142e9116-0830-41df-88fb-0f4abce5fead_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2752 |
+
2025/TRIDENT_[[:space:]]Enhancing[[:space:]]Large[[:space:]]Language[[:space:]]Model[[:space:]]Safety[[:space:]]with[[:space:]]Tri-Dimensional[[:space:]]Diversified[[:space:]]Red-Teaming[[:space:]]Data[[:space:]]Synthesis/f7ba882e-850d-4f46-b2a6-c075e0c61de6_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2753 |
+
2025/TROVE_[[:space:]]A[[:space:]]Challenge[[:space:]]for[[:space:]]Fine-Grained[[:space:]]Text[[:space:]]Provenance[[:space:]]via[[:space:]]Source[[:space:]]Sentence[[:space:]]Tracing[[:space:]]and[[:space:]]Relationship[[:space:]]Classification/0070d482-101d-4114-9d35-65f77b3fcfaa_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2754 |
+
2025/TST_[[:space:]]A[[:space:]]Schema-Based[[:space:]]Top-Down[[:space:]]and[[:space:]]Dynamic-Aware[[:space:]]Agent[[:space:]]of[[:space:]]Text-to-Table[[:space:]]Tasks/70927308-302c-47c0-89de-e5f8e5f9c9ba_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2755 |
+
2025/TUMLU_[[:space:]]A[[:space:]]Unified[[:space:]]and[[:space:]]Native[[:space:]]Language[[:space:]]Understanding[[:space:]]Benchmark[[:space:]]for[[:space:]]Turkic[[:space:]]Languages/e19285ce-f019-47db-bc4e-ca86890ea20b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2756 |
+
2025/TUNA_[[:space:]]Comprehensive[[:space:]]Fine-grained[[:space:]]Temporal[[:space:]]Understanding[[:space:]]Evaluation[[:space:]]on[[:space:]]Dense[[:space:]]Dynamic[[:space:]]Videos/a4359d10-5e61-4364-9c79-6f90b4b9987e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2757 |
+
2025/TWIST_[[:space:]]Text-encoder[[:space:]]Weight-editing[[:space:]]for[[:space:]]Inserting[[:space:]]Secret[[:space:]]Trojans[[:space:]]in[[:space:]]Text-to-Image[[:space:]]Models/eef8989b-066a-44df-88d9-cf70a3684ac2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2758 |
+
2025/Table-Critic_[[:space:]]A[[:space:]]Multi-Agent[[:space:]]Framework[[:space:]]for[[:space:]]Collaborative[[:space:]]Criticism[[:space:]]and[[:space:]]Refinement[[:space:]]in[[:space:]]Table[[:space:]]Reasoning/57614786-45cd-4dd8-82f1-0f480483559a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2759 |
+
2025/TableLoRA_[[:space:]]Low-rank[[:space:]]Adaptation[[:space:]]on[[:space:]]Table[[:space:]]Structure[[:space:]]Understanding[[:space:]]for[[:space:]]Large[[:space:]]Language[[:space:]]Models/95f9f758-2327-40ad-b5ce-2cc3f82cf2e8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2760 |
+
2025/Takin-VC_[[:space:]]Expressive[[:space:]]Zero-Shot[[:space:]]Voice[[:space:]]Conversion[[:space:]]via[[:space:]]Adaptive[[:space:]]Hybrid[[:space:]]Content[[:space:]]Encoding[[:space:]]and[[:space:]]Enhanced[[:space:]]Timbre[[:space:]]Modeling/0df3e726-f843-4654-8e90-45e292537d22_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2761 |
+
2025/Taming[[:space:]]LLMs[[:space:]]with[[:space:]]Gradient[[:space:]]Grouping/9cf2debc-6405-42bb-8932-6ac33661dede_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2762 |
+
2025/Taming[[:space:]]Language[[:space:]]Models[[:space:]]for[[:space:]]Text-attributed[[:space:]]Graph[[:space:]]Learning[[:space:]]with[[:space:]]Decoupled[[:space:]]Aggregation/4fbd717e-ceea-4a86-b9bf-174a48710094_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2763 |
+
2025/Targeted[[:space:]]Syntactic[[:space:]]Evaluation[[:space:]]for[[:space:]]Grammatical[[:space:]]Error[[:space:]]Correction/44ec2577-dd22-4ff9-849c-cdcaa1be17c7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2764 |
+
2025/Task-Specific[[:space:]]Information[[:space:]]Decomposition[[:space:]]for[[:space:]]End-to-End[[:space:]]Dense[[:space:]]Video[[:space:]]Captioning/b6dd80bf-53bc-423a-a51a-0d93afde763a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2765 |
+
2025/TaxoAdapt_[[:space:]]Aligning[[:space:]]LLM-Based[[:space:]]Multidimensional[[:space:]]Taxonomy[[:space:]]Construction[[:space:]]to[[:space:]]Evolving[[:space:]]Research[[:space:]]Corpora/1dd7375e-4dba-496a-9fac-a82596391dbc_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2766 |
+
2025/TeRDy_[[:space:]]Temporal[[:space:]]Relation[[:space:]]Dynamics[[:space:]]through[[:space:]]Frequency[[:space:]]Decomposition[[:space:]]for[[:space:]]Temporal[[:space:]]Knowledge[[:space:]]Graph[[:space:]]Completion/966c115d-5a5d-40cb-8b8f-cc6b3f9b4a01_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2767 |
+
2025/Teaching[[:space:]]Text[[:space:]]Agents[[:space:]]to[[:space:]]Learn[[:space:]]Sequential[[:space:]]Decision[[:space:]]Making[[:space:]]from[[:space:]]Failure/e2c046f7-2bbe-4990-9af2-b11184614735_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2768 |
+
2025/Teaching[[:space:]]Vision-Language[[:space:]]Models[[:space:]]to[[:space:]]Ask_[[:space:]]Resolving[[:space:]]Ambiguity[[:space:]]in[[:space:]]Visual[[:space:]]Questions/86ef37d4-a907-4041-92ba-a45bd87bf065_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2769 |
+
2025/Teaching[[:space:]]an[[:space:]]Old[[:space:]]LLM[[:space:]]Secure[[:space:]]Coding_[[:space:]]Localized[[:space:]]Preference[[:space:]]Optimization[[:space:]]on[[:space:]]Distilled[[:space:]]Preferences/a90efc6c-04b6-4f30-b21a-96c02b75a26b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2770 |
+
2025/TeamLoRA_[[:space:]]Boosting[[:space:]]Low-Rank[[:space:]]Adaptation[[:space:]]with[[:space:]]Expert[[:space:]]Collaboration[[:space:]]and[[:space:]]Competition/fdd0a622-7cd8-4c40-b323-b47314dc4392_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2771 |
+
2025/Temporal[[:space:]]Relation[[:space:]]Extraction[[:space:]]in[[:space:]]Clinical[[:space:]]Texts_[[:space:]]A[[:space:]]Span-based[[:space:]]Graph[[:space:]]Transformer[[:space:]]Approach/3bb3f196-68bc-4189-9b96-f216d84250e8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2772 |
+
2025/Temporal[[:space:]]reasoning[[:space:]]for[[:space:]]timeline[[:space:]]summarisation[[:space:]]in[[:space:]]social[[:space:]]media/6c718f78-4ea5-42e7-ad1f-bcb4d3d3362f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2773 |
+
2025/TestNUC_[[:space:]]Enhancing[[:space:]]Test-Time[[:space:]]Computing[[:space:]]Approaches[[:space:]]and[[:space:]]Scaling[[:space:]]through[[:space:]]Neighboring[[:space:]]Unlabeled[[:space:]]Data[[:space:]]Consistency/601e447f-2bde-485c-b1db-94d3d0dc96de_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2774 |
+
2025/Text[[:space:]]is[[:space:]]All[[:space:]]You[[:space:]]Need_[[:space:]]LLM-enhanced[[:space:]]Incremental[[:space:]]Social[[:space:]]Event[[:space:]]Detection/c9a296b5-8c82-4f86-821a-b6a8c99cb62c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2775 |
+
2025/Text-to-ES[[:space:]]Bench_[[:space:]]A[[:space:]]Comprehensive[[:space:]]Benchmark[[:space:]]for[[:space:]]Converting[[:space:]]Natural[[:space:]]Language[[:space:]]to[[:space:]]Elasticsearch[[:space:]]Query/f11c7154-3746-4822-9f90-7b27e7c3e093_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2776 |
+
2025/That[[:space:]]is[[:space:]]Unacceptable_[[:space:]]the[[:space:]]Moral[[:space:]]Foundations[[:space:]]of[[:space:]]Canceling/158cf7c0-79cf-4487-9e55-178d74dea12c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2777 |
+
2025/The[[:space:]]AI[[:space:]]Gap_[[:space:]]How[[:space:]]Socioeconomic[[:space:]]Status[[:space:]]Affects[[:space:]]Language[[:space:]]Technology[[:space:]]Interactions/9b68bb85-f6dc-424a-8d6a-ba2f55d24621_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2778 |
+
2025/The[[:space:]]Alternative[[:space:]]Annotator[[:space:]]Test[[:space:]]for[[:space:]]LLM-as-a-Judge_[[:space:]]How[[:space:]]to[[:space:]]Statistically[[:space:]]Justify[[:space:]]Replacing[[:space:]]Human[[:space:]]Annotators[[:space:]]with[[:space:]]LLMs/91c1ef4d-2216-493f-b9d0-d3f9d6585aac_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2779 |
+
2025/The[[:space:]]Cross-linguistic[[:space:]]Role[[:space:]]of[[:space:]]Animacy[[:space:]]in[[:space:]]Grammar[[:space:]]Structures/91a93f02-0ea5-4a12-8530-71fc051c3166_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2780 |
+
2025/The[[:space:]]Distracting[[:space:]]Effect_[[:space:]]Understanding[[:space:]]Irrelevant[[:space:]]Passages[[:space:]]in[[:space:]]RAG/314fd01e-2c04-4cf0-9bb8-1f0574c22cbc_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2781 |
+
2025/The[[:space:]]Efficiency[[:space:]]vs.[[:space:]]Accuracy[[:space:]]Trade-off_[[:space:]]Optimizing[[:space:]]RAG-Enhanced[[:space:]]LLM[[:space:]]Recommender[[:space:]]Systems[[:space:]]Using[[:space:]]Multi-Head[[:space:]]Early[[:space:]]Exit/77e98168-bba4-4c26-ae9b-11516a742066_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2782 |
+
2025/The[[:space:]]Esethu[[:space:]]Framework_[[:space:]]Reimagining[[:space:]]Sustainable[[:space:]]Dataset[[:space:]]Governance[[:space:]]and[[:space:]]Curation[[:space:]]for[[:space:]]Low-Resource[[:space:]]Languages/58e334dd-25d6-4075-a2f8-88accb213a83_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2783 |
+
2025/The[[:space:]]Essence[[:space:]]of[[:space:]]Contextual[[:space:]]Understanding[[:space:]]in[[:space:]]Theory[[:space:]]of[[:space:]]Mind_[[:space:]]A[[:space:]]Study[[:space:]]on[[:space:]]Question[[:space:]]Answering[[:space:]]with[[:space:]]Story[[:space:]]Characters/5a2038c4-0354-4b58-9821-ef8891da5ac3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2784 |
+
2025/The[[:space:]]Harmonic[[:space:]]Structure[[:space:]]of[[:space:]]Information[[:space:]]Contours/40f942f2-5503-44eb-8bb0-8ad3899776df_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2785 |
+
2025/The[[:space:]]Hidden[[:space:]]Attention[[:space:]]of[[:space:]]Mamba[[:space:]]Models/357a4739-9796-4837-85cc-7f5e37144bd9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2786 |
+
2025/The[[:space:]]Impact[[:space:]]of[[:space:]]Auxiliary[[:space:]]Patient[[:space:]]Data[[:space:]]on[[:space:]]Automated[[:space:]]Chest[[:space:]]X-Ray[[:space:]]Report[[:space:]]Generation[[:space:]]and[[:space:]]How[[:space:]]to[[:space:]]Incorporate[[:space:]]It/10a9a6c7-806c-40f9-83da-343ca66a15e9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2787 |
+
2025/The[[:space:]]Impact[[:space:]]of[[:space:]]Token[[:space:]]Granularity[[:space:]]on[[:space:]]the[[:space:]]Predictive[[:space:]]Power[[:space:]]of[[:space:]]Language[[:space:]]Model[[:space:]]Surprisal/e4e2a3c4-737a-4677-a966-d9329ac45925_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2788 |
+
2025/The[[:space:]]Impossibility[[:space:]]of[[:space:]]Fair[[:space:]]LLMs/3ece0b06-d3cb-4900-8046-100726f767c5_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2789 |
+
2025/The[[:space:]]Invisible[[:space:]]Hand_[[:space:]]Unveiling[[:space:]]Provider[[:space:]]Bias[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]for[[:space:]]Code[[:space:]]Generation/58e28e99-f37d-483d-8bd2-c61b9a341141_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2790 |
+
2025/The[[:space:]]Knowledge[[:space:]]Microscope_[[:space:]]Features[[:space:]]as[[:space:]]Better[[:space:]]Analytical[[:space:]]Lenses[[:space:]]than[[:space:]]Neurons/39cb7702-b5de-4bd5-9f09-444ef0915060_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2791 |
+
2025/The[[:space:]]Lawyer[[:space:]]That[[:space:]]Never[[:space:]]Thinks_[[:space:]]Consistency[[:space:]]and[[:space:]]Fairness[[:space:]]as[[:space:]]Keys[[:space:]]to[[:space:]]Reliable[[:space:]]AI/25154214-228c-4ffe-9629-9d6af8d88b6a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2792 |
+
2025/The[[:space:]]Male[[:space:]]CEO[[:space:]]and[[:space:]]the[[:space:]]Female[[:space:]]Assistant_[[:space:]]Evaluation[[:space:]]and[[:space:]]Mitigation[[:space:]]of[[:space:]]Gender[[:space:]]Biases[[:space:]]in[[:space:]]Text-To-Image[[:space:]]Generation[[:space:]]of[[:space:]]Dual[[:space:]]Subjects/29eb85c1-4277-4be1-bb2e-e2e9b672fbda_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2793 |
+
2025/The[[:space:]]Mirage[[:space:]]of[[:space:]]Model[[:space:]]Editing_[[:space:]]Revisiting[[:space:]]Evaluation[[:space:]]in[[:space:]]the[[:space:]]Wild/d7b05e12-ebd1-4f8a-826a-2a0f9ec35d08_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2794 |
+
2025/The[[:space:]]Nature[[:space:]]of[[:space:]]NLP_[[:space:]]Analyzing[[:space:]]Contributions[[:space:]]in[[:space:]]NLP[[:space:]]Papers/356fd903-0d78-4562-b61a-c5f560d3b98a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2795 |
+
2025/The[[:space:]]Noisy[[:space:]]Path[[:space:]]from[[:space:]]Source[[:space:]]to[[:space:]]Citation_[[:space:]]Measuring[[:space:]]How[[:space:]]Scholars[[:space:]]Engage[[:space:]]with[[:space:]]Past[[:space:]]Research/71b3db0c-db8b-4e0c-a9d2-6335d1cbd90f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2796 |
+
2025/The[[:space:]]Role[[:space:]]of[[:space:]]Deductive[[:space:]]and[[:space:]]Inductive[[:space:]]Reasoning[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models/a2241299-17e4-4c52-9ae8-e45ed2b00bb9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2797 |
+
2025/The[[:space:]]Role[[:space:]]of[[:space:]]Visual[[:space:]]Modality[[:space:]]in[[:space:]]Multimodal[[:space:]]Mathematical[[:space:]]Reasoning_[[:space:]]Challenges[[:space:]]and[[:space:]]Insights/e3d6e248-c8db-4d35-8c7f-154a4823fb52_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2798 |
+
2025/The[[:space:]]TIP[[:space:]]of[[:space:]]the[[:space:]]Iceberg_[[:space:]]Revealing[[:space:]]a[[:space:]]Hidden[[:space:]]Class[[:space:]]of[[:space:]]Task-in-Prompt[[:space:]]Adversarial[[:space:]]Attacks[[:space:]]on[[:space:]]LLMs/3840bbbf-57c6-4849-bc8e-0cda9a8422c9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2799 |
+
2025/The[[:space:]]Task[[:space:]]Shield_[[:space:]]Enforcing[[:space:]]Task[[:space:]]Alignment[[:space:]]to[[:space:]]Defend[[:space:]]Against[[:space:]]Indirect[[:space:]]Prompt[[:space:]]Injection[[:space:]]in[[:space:]]LLM[[:space:]]Agents/01290c52-9bbd-4c1c-b62b-6ca046db1bcf_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2800 |
+
2025/The[[:space:]]Tug[[:space:]]of[[:space:]]War[[:space:]]Within_[[:space:]]Mitigating[[:space:]]the[[:space:]]Fairness-Privacy[[:space:]]Conflicts[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models/d015762d-b7c7-489c-9494-7ad9a3af97f1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2801 |
+
2025/The[[:space:]]UD-NewsCrawl[[:space:]]Treebank_[[:space:]]Reflections[[:space:]]and[[:space:]]Challenges[[:space:]]from[[:space:]]a[[:space:]]Large-scale[[:space:]]Tagalog[[:space:]]Syntactic[[:space:]]Annotation[[:space:]]Project/2999d476-e72b-4898-9d87-2328219323b2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2802 |
+
2025/The[[:space:]]time[[:space:]]scale[[:space:]]of[[:space:]]redundancy[[:space:]]between[[:space:]]prosody[[:space:]]and[[:space:]]linguistic[[:space:]]context/d3312170-d2cd-48d7-a05d-158473ed3905_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2803 |
+
2025/Theorem[[:space:]]Prover[[:space:]]as[[:space:]]a[[:space:]]Judge[[:space:]]for[[:space:]]Synthetic[[:space:]]Data[[:space:]]Generation/7706a68a-e369-4e81-b540-b86dad5ab89d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2804 |
+
2025/TheoremExplainAgent_[[:space:]]Towards[[:space:]]Video-based[[:space:]]Multimodal[[:space:]]Explanations[[:space:]]for[[:space:]]LLM[[:space:]]Theorem[[:space:]]Understanding/82226f43-5575-455b-8bde-7976df337ae9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2805 |
+
2025/Theoretical[[:space:]]Analysis[[:space:]]of[[:space:]]Hierarchical[[:space:]]Language[[:space:]]Recognition[[:space:]]and[[:space:]]Generation[[:space:]]by[[:space:]]Transformers[[:space:]]without[[:space:]]Positional[[:space:]]Encoding/7a8fb798-15b2-42e7-b7c2-aac02636fc72_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2806 |
+
2025/Theoretical[[:space:]]Guarantees[[:space:]]for[[:space:]]Minimum[[:space:]]Bayes[[:space:]]Risk[[:space:]]Decoding/df47d240-dd06-448a-a178-630e18bed0dc_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2807 |
+
2025/Theory[[:space:]]of[[:space:]]Mind[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models_[[:space:]]Assessment[[:space:]]and[[:space:]]Enhancement/d0723338-4675-4710-925a-332bf35a49c0_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
2025/TACLR_ A Scalable and Efficient Retrieval-based Method for Industrial Product Attribute Value Identification/939f3cd5-94e9-46cf-8def-cb09a1fd834c_content_list.json
ADDED
|
@@ -0,0 +1,1854 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "TACLR: A Scalable and Efficient Retrieval-Based Method for Industrial Product Attribute Value Identification",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
196,
|
| 8 |
+
89,
|
| 9 |
+
801,
|
| 10 |
+
129
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Yindu Su $^{1,2}$ , Huike Zou $^{1}$ , Lin Sun $^{3}$ , Ting Zhang $^{2}$ , Haiyang Yang $^{1}$ , Liu Chen $^{1}$ , David Lo $^{2}$ , Qingheng Zhang $^{1}$ , Shuguang Han $^{1}$ , Jufeng Chen $^{1}$ ,",
|
| 17 |
+
"bbox": [
|
| 18 |
+
166,
|
| 19 |
+
145,
|
| 20 |
+
836,
|
| 21 |
+
180
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "$^{1}$ Xianyu of Alibaba $^{2}$ Singapore Management University $^{3}$ Hangzhou City University",
|
| 28 |
+
"bbox": [
|
| 29 |
+
141,
|
| 30 |
+
180,
|
| 31 |
+
855,
|
| 32 |
+
199
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "yindusu@foxmail.com, tingzhang.2019@phdcs.smu.edu.sg",
|
| 39 |
+
"bbox": [
|
| 40 |
+
240,
|
| 41 |
+
197,
|
| 42 |
+
757,
|
| 43 |
+
212
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "qingheng.zqh@alibaba-inc.com,shuguang.sh@alibaba-inc.com",
|
| 50 |
+
"bbox": [
|
| 51 |
+
211,
|
| 52 |
+
214,
|
| 53 |
+
786,
|
| 54 |
+
229
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "Abstract",
|
| 61 |
+
"text_level": 1,
|
| 62 |
+
"bbox": [
|
| 63 |
+
260,
|
| 64 |
+
260,
|
| 65 |
+
339,
|
| 66 |
+
275
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "Product Attribute Value Identification (PAVI) involves identifying attribute values from product profiles, a key task for improving product search, recommendation, and business analytics on e-commerce platforms. However, existing PAVI methods face critical challenges, such as inferring implicit values, handling out-of-distribution (OOD) values, and producing normalized outputs. To address these limitations, we introduce Taxonomy-Aware Contrastive Learning Retrieval (TACLR), the first retrieval-based method for PAVI. TACLR formulates PAVI as an information retrieval task by encoding product profiles and candidate values into embeddings and retrieving values based on their similarity. It leverages contrastive training with taxonomy-aware hard negative sampling and employs adaptive inference with dynamic thresholds. TACLR offers three key advantages: (1) it effectively handles implicit and OOD values while producing normalized outputs; (2) it scales to thousands of categories, tens of thousands of attributes, and millions of values; and (3) it supports efficient inference for high-load industrial deployment. Extensive experiments on proprietary and public datasets validate the effectiveness and efficiency of TACLR. Further, it has been successfully deployed on the real-world e-commerce platform Xianyu, processing millions of product listings daily with frequently updated, large-scale attribute taxonomies. We release the code to facilitate reproducibility and future research at https://github.com/SuYindu/TACLR.",
|
| 73 |
+
"bbox": [
|
| 74 |
+
141,
|
| 75 |
+
287,
|
| 76 |
+
460,
|
| 77 |
+
771
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "1 Introduction",
|
| 84 |
+
"text_level": 1,
|
| 85 |
+
"bbox": [
|
| 86 |
+
114,
|
| 87 |
+
783,
|
| 88 |
+
258,
|
| 89 |
+
797
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Product attribute values are key components that support the operation of e-commerce platforms. They provide essential structural information, aiding customers in making informed purchasing decisions and enabling product listing (Chen et al., 2024), recommendation (Truong et al., 2022; Sun et al., 2020), retrieval (Magnani et al., 2019; Huang",
|
| 96 |
+
"bbox": [
|
| 97 |
+
112,
|
| 98 |
+
808,
|
| 99 |
+
489,
|
| 100 |
+
921
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "image",
|
| 106 |
+
"img_path": "images/2a3df4355fa37b992a862a63ad8fedfc58e8f8c71ba29f228a10c8b5d1373f3b.jpg",
|
| 107 |
+
"image_caption": [
|
| 108 |
+
"Figure 1: Illustration of the PAVE and PAVI tasks. Unlike PAVE, which extracts raw value spans from product profiles, PAVI requires outputs to be normalized and supports both the identification of implicit values and the assignment of null to unavailable attribute values."
|
| 109 |
+
],
|
| 110 |
+
"image_footnote": [],
|
| 111 |
+
"bbox": [
|
| 112 |
+
512,
|
| 113 |
+
258,
|
| 114 |
+
877,
|
| 115 |
+
479
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 0
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "et al., 2014), and question answering (Kulkarni et al., 2019; Gao et al., 2019).",
|
| 122 |
+
"bbox": [
|
| 123 |
+
507,
|
| 124 |
+
587,
|
| 125 |
+
880,
|
| 126 |
+
618
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 0
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "However, seller-provided attribute values are often incomplete or even inaccurate—an issue that is particularly severe on second-hand e-commerce platforms such as $Xianyu^{1}$ . This undermines the effectiveness of downstream applications, making the automatic identification of product attribute values a fundamental requirement. Researchers have explored Product Attribute Value Extraction (PAVE), which involves extracting spans from product profiles using Named Entity Recognition (NER) (Zheng et al., 2018) or Question Answering (QA) (Wang et al., 2020) models. The upper part of Figure 1 illustrates an example of NER-based PAVE.",
|
| 133 |
+
"bbox": [
|
| 134 |
+
507,
|
| 135 |
+
620,
|
| 136 |
+
882,
|
| 137 |
+
828
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 0
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "Although these approaches effectively extract value spans, the outputs remain raw text subsequences. Presenting attribute values in a standardized format is crucial for facilitating data aggrega",
|
| 144 |
+
"bbox": [
|
| 145 |
+
507,
|
| 146 |
+
829,
|
| 147 |
+
884,
|
| 148 |
+
894
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 0
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "page_footnote",
|
| 154 |
+
"text": "1https://www.goofish.com",
|
| 155 |
+
"bbox": [
|
| 156 |
+
531,
|
| 157 |
+
906,
|
| 158 |
+
715,
|
| 159 |
+
920
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 0
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "page_number",
|
| 165 |
+
"text": "31526",
|
| 166 |
+
"bbox": [
|
| 167 |
+
473,
|
| 168 |
+
927,
|
| 169 |
+
524,
|
| 170 |
+
940
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 0
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "footer",
|
| 176 |
+
"text": "Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 31526-31538",
|
| 177 |
+
"bbox": [
|
| 178 |
+
82,
|
| 179 |
+
945,
|
| 180 |
+
912,
|
| 181 |
+
957
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 0
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "footer",
|
| 187 |
+
"text": "July 27 - August 1, 2025 ©2025 Association for Computational Linguistics",
|
| 188 |
+
"bbox": [
|
| 189 |
+
268,
|
| 190 |
+
957,
|
| 191 |
+
727,
|
| 192 |
+
971
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 0
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "tion in business analytics and enhancing the user experience by providing clear and consistent information. To produce standardized values, a normalization step (Putthividhya and Hu, 2011; Zhang et al., 2021) is required to map these spans to predefined formats, as shown in the lower part of Figure 1. However, implicit values, such as Apple, cannot be directly extracted and must instead be inferred from context or prior knowledge.",
|
| 199 |
+
"bbox": [
|
| 200 |
+
112,
|
| 201 |
+
84,
|
| 202 |
+
489,
|
| 203 |
+
228
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "Therefore, in this work, we focus on Product Attribute Value Identification (PAVI) (Shinzato et al., 2023), which aims to associate predefined attribute values from attribute taxonomy (illustrated in Figure 2) with products. The input for PAVI includes the product category and profile, where the profile includes textual data, such as the title and description, and may optionally incorporate visual information, such as images or videos. The output is a dictionary with predefined attributes as keys and their inferred values as corresponding entries. In addition, PAVI requires determining when attribute values are missing. For instance, as shown in Figure 1, the value for Version is unavailable and is therefore assigned an empty result or null value.",
|
| 210 |
+
"bbox": [
|
| 211 |
+
115,
|
| 212 |
+
230,
|
| 213 |
+
489,
|
| 214 |
+
469
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 1
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "text",
|
| 220 |
+
"text": "Beyond adapting PAVE approaches, researchers have investigated classification-based (Chen et al., 2022) and generation-based paradigms (Sabeh et al., 2024b) for PAVI. Classification-based methods treat each value as a class; while this approach is straightforward, it is fundamentally limited by the inability to identify out-of-distribution (OOD) values not present in the training data, making such methods impractical for the continuously evolving nature of e-commerce platforms. In contrast, generation-based methods reformulate PAVI as a sequence-to-sequence task. Although these methods can handle implicit and OOD values, they face significant challenges, such as generating uncontrollable outputs and incurring substantial computational costs in high-load scenarios due to their reliance on Large Language Models (LLMs). In summary, existing approaches face distinct challenges, including difficulties in identifying implicit values, generalizing to OOD values, producing normalized outputs, and ensuring scalability and efficiency for large-scale industrial applications.",
|
| 221 |
+
"bbox": [
|
| 222 |
+
115,
|
| 223 |
+
470,
|
| 224 |
+
489,
|
| 225 |
+
824
|
| 226 |
+
],
|
| 227 |
+
"page_idx": 1
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "text",
|
| 231 |
+
"text": "To address these limitations, we propose a novel retrieval-based method, Taxonomy-Aware Contrastive Learning Retrieval (TACLR). Our approach formulates PAVI as an information retrieval task: the product item serves as the query, and the attribute taxonomy acts as the corpus, enabling",
|
| 232 |
+
"bbox": [
|
| 233 |
+
112,
|
| 234 |
+
825,
|
| 235 |
+
489,
|
| 236 |
+
921
|
| 237 |
+
],
|
| 238 |
+
"page_idx": 1
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "image",
|
| 242 |
+
"img_path": "images/d000e51ed45ea60b8795afc47bb3adc8796089f8fb316f60104054e705f50170.jpg",
|
| 243 |
+
"image_caption": [
|
| 244 |
+
"Figure 2: An illustration of a portion of the attribute taxonomy. Each category, such as Phone, is linked to multiple attributes, including Brand, Model, and Capacity, with standardized values enumerated for each attribute (e.g., Apple, Huawei, and Samsung for Brand)."
|
| 245 |
+
],
|
| 246 |
+
"image_footnote": [],
|
| 247 |
+
"bbox": [
|
| 248 |
+
547,
|
| 249 |
+
83,
|
| 250 |
+
847,
|
| 251 |
+
204
|
| 252 |
+
],
|
| 253 |
+
"page_idx": 1
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"type": "text",
|
| 257 |
+
"text": "efficient retrieval of relevant attribute values as matched documents. We use a shared encoder to generate embeddings for both the input product and candidate values from the attribute taxonomy. Our method adopts a contrastive learning framework inspired by CLIP (Radford et al., 2021). Rather than relying on in-batch negatives, we implement taxonomy-aware negative sampling, which selects hard negative values from the same category and attribute to generate a more challenging and precise contrastive signal. Additionally, learnable null values are explicitly incorporated as the ground truth for product-attribute pairs without associated values. During inference, we address the limitations of static thresholds by introducing dynamic thresholds derived from the relevance score of null values. This adaptive inference mechanism improves the model's ability to generalize across a large-scale attribute taxonomy.",
|
| 258 |
+
"bbox": [
|
| 259 |
+
507,
|
| 260 |
+
332,
|
| 261 |
+
884,
|
| 262 |
+
636
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 1
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "Our contributions are threefold: (1) We propose a novel retrieval-based paradigm for PAVI, introducing a scalable and efficient framework capable of handling implicit values, generalizing to OOD values, and producing normalized outputs. (2) We incorporate contrastive training into TACLR, using a taxonomy-aware negative sampling strategy to improve representation discrimination, and introduce an adaptive inference mechanism that dynamically balances precision and recall in large-scale industrial applications. (3) We validate the effectiveness of TACLR through extensive experiments on proprietary and public datasets, and demonstrate its successful deployment in a real-world industrial environment, processing millions of product listings across thousands of categories and millions of attribute values.",
|
| 269 |
+
"bbox": [
|
| 270 |
+
507,
|
| 271 |
+
646,
|
| 272 |
+
884,
|
| 273 |
+
920
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 1
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "page_number",
|
| 279 |
+
"text": "31527",
|
| 280 |
+
"bbox": [
|
| 281 |
+
475,
|
| 282 |
+
927,
|
| 283 |
+
524,
|
| 284 |
+
940
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 1
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "2 Related Work",
|
| 291 |
+
"text_level": 1,
|
| 292 |
+
"bbox": [
|
| 293 |
+
114,
|
| 294 |
+
83,
|
| 295 |
+
270,
|
| 296 |
+
98
|
| 297 |
+
],
|
| 298 |
+
"page_idx": 2
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"type": "text",
|
| 302 |
+
"text": "2.1 Product Attribute Value Extraction",
|
| 303 |
+
"text_level": 1,
|
| 304 |
+
"bbox": [
|
| 305 |
+
112,
|
| 306 |
+
110,
|
| 307 |
+
438,
|
| 308 |
+
124
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 2
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "PAVE as Named Entity Recognition. PAVE can be formulated as NER by identifying subsequences in product texts as entity spans and associating them with attributes as entity types. Early methods, such as OpenTag (Zheng et al., 2018), trained individual models for each category-attribute pair. Subsequent efforts generalized this approach to support multiple attributes or categories. For instance, SUOpenTag (Xu et al., 2019) incorporated attribute embeddings into an attention layer to handle multiple attributes, while AdaTag (Yan et al., 2021) used attribute embeddings to parameterize the decoder. TXtract (Karamanolakis et al., 2020) introduced a category encoder and a category attention mechanism to tackle various categories effectively. Additionally, M-JAVE (Zhu et al., 2020) jointly modeled attribute prediction and value extraction tasks while also incorporating visual information. More recently, Chen et al. (2023) scaled BERTNER by expanding the number of entity types to support a broader range of attributes.",
|
| 315 |
+
"bbox": [
|
| 316 |
+
112,
|
| 317 |
+
131,
|
| 318 |
+
489,
|
| 319 |
+
468
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 2
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "text",
|
| 325 |
+
"text": "PAVE as Question Answering. The QA framework can also be adapted for PAVE by treating the product profile as context, attributes as questions, and value spans extracted from the context as answers. Wang et al. (2020) first introduced AVEQA for QA-based PAVE. Subsequent work extended this framework by incorporating multi-source information (Yang et al., 2022), multi-modal feature (Wang et al., 2022), and trainable prompts (Yang et al., 2023). Moreover, the question can be extended by appending candidate values as demonstrated by (Shinzato et al., 2022). Combining NER and QA paradigms, Ding et al. (2022) proposed a two-stage framework, which first identifies candidate values and then filters them.",
|
| 326 |
+
"bbox": [
|
| 327 |
+
112,
|
| 328 |
+
470,
|
| 329 |
+
489,
|
| 330 |
+
709
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 2
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "While NER- and QA-based paradigms have proven effective for PAVE, they struggle to identify implicit attribute values. Additionally, both paradigms rely on post-extraction normalization to standardize values, using either lexical (Putthividhya and Hu, 2011) or semantic methods (Zhang et al., 2021). Furthermore, extraction-based models require token-level annotations (e.g., BIO tags) for training and evaluation. Producing such annotations is significantly more resource-intensive than generating the value-level annotations used by TACLR, further limiting the scalability of these extraction-based methods.",
|
| 337 |
+
"bbox": [
|
| 338 |
+
112,
|
| 339 |
+
711,
|
| 340 |
+
489,
|
| 341 |
+
920
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 2
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "table",
|
| 347 |
+
"img_path": "images/f5fca30ada4d67d53736efda575284d7a62e894867e78482db0b7a6de142ed8d.jpg",
|
| 348 |
+
"table_caption": [
|
| 349 |
+
"Table 1: Comparison of different paradigms for identifying implicit, OOD, and normalized values."
|
| 350 |
+
],
|
| 351 |
+
"table_footnote": [],
|
| 352 |
+
"table_body": "<table><tr><td>Paradigm</td><td>Implicit</td><td>OOD</td><td>Normalized</td></tr><tr><td>Extraction</td><td>X</td><td>✓</td><td>X</td></tr><tr><td>Classification</td><td>✓</td><td>X</td><td>✓</td></tr><tr><td>Generation</td><td>✓</td><td>✓</td><td>X</td></tr><tr><td>Retrieval</td><td>✓</td><td>✓</td><td>✓</td></tr></table>",
|
| 353 |
+
"bbox": [
|
| 354 |
+
534,
|
| 355 |
+
121,
|
| 356 |
+
853,
|
| 357 |
+
205
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 2
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "text",
|
| 363 |
+
"text": "2.2 Product Attribute Value Identification",
|
| 364 |
+
"text_level": 1,
|
| 365 |
+
"bbox": [
|
| 366 |
+
507,
|
| 367 |
+
233,
|
| 368 |
+
855,
|
| 369 |
+
247
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 2
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "Classification-Based PAVI. A straightforward approach is to frame PAVI as a multi-label classification problem over a finite set of values. Chen et al. (2022) trained a unified classification model that masks invalid labels based on the product category. However, a significant limitation of this classification-based paradigm is its inability to recognize OOD values not included in the training set. Consequently, its practicality is limited in dynamic e-commerce environments, where new categories and values frequently emerge.",
|
| 376 |
+
"bbox": [
|
| 377 |
+
505,
|
| 378 |
+
256,
|
| 379 |
+
884,
|
| 380 |
+
434
|
| 381 |
+
],
|
| 382 |
+
"page_idx": 2
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"type": "text",
|
| 386 |
+
"text": "Generation-Based PAVI. Recent advancements in LLM have spurred the exploration of generation-based PAVI methods (Sabeh et al., 2024b). Some methods (Roy et al., 2021; Nikolakopoulos et al., 2023; Blume et al., 2023) construct attribute-aware prompts to generate values for each attribute individually. In contrast, others generate values for multiple attributes simultaneously, either in a linearized sequence format (Shinzato et al., 2023) or as a hierarchical tree structure (Li et al., 2023). Multimodal information has also been integrated into LLMs to identify implicit attribute values from product images (Lin et al., 2021; Khandelwal et al., 2023). More recently, Brinkmann et al. (2024) explored the use of LLMs for both the extraction and normalization of attribute values. Additionally, Zou et al. (2024) introduced the learning-by-comparison technique to reduce model confusion, and Sabeh et al. (2024a) investigated Retrieval-Augmented Generation (RAG) technologies for PAVI.",
|
| 387 |
+
"bbox": [
|
| 388 |
+
507,
|
| 389 |
+
436,
|
| 390 |
+
884,
|
| 391 |
+
758
|
| 392 |
+
],
|
| 393 |
+
"page_idx": 2
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"type": "text",
|
| 397 |
+
"text": "Although generation-based methods can infer implicit and OOD attribute values from product profiles, they face several challenges in real-world scenarios. A key issue is the potential for the LLMs to produce uncontrollable or hallucinated outputs, a known limitation of LLMs (Huang et al., 2024). Additionally, these methods often rely on large, computationally intensive models to achieve strong performance, making them inefficient and costly for large-scale industrial deployment.",
|
| 398 |
+
"bbox": [
|
| 399 |
+
507,
|
| 400 |
+
760,
|
| 401 |
+
885,
|
| 402 |
+
921
|
| 403 |
+
],
|
| 404 |
+
"page_idx": 2
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"type": "page_number",
|
| 408 |
+
"text": "31528",
|
| 409 |
+
"bbox": [
|
| 410 |
+
475,
|
| 411 |
+
927,
|
| 412 |
+
524,
|
| 413 |
+
940
|
| 414 |
+
],
|
| 415 |
+
"page_idx": 2
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"type": "image",
|
| 419 |
+
"img_path": "images/c4a96c6d30ecc506333876c61811570c3dcc294f57f1c80df239ba8d3ab13cc9.jpg",
|
| 420 |
+
"image_caption": [
|
| 421 |
+
"Figure 3: Overview of the training and inference process of TACLR, our retrieval-based method for the PAVI task. The left section illustrates contrastive training with taxonomy-aware negative sampling, while the right section demonstrates adaptive inference with pre-computed value embeddings."
|
| 422 |
+
],
|
| 423 |
+
"image_footnote": [],
|
| 424 |
+
"bbox": [
|
| 425 |
+
114,
|
| 426 |
+
83,
|
| 427 |
+
467,
|
| 428 |
+
233
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 3
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "image",
|
| 434 |
+
"img_path": "images/1d853a5f379894a50e542bf2833f9e7d16c22c18c3f8100744a99aaceccedbe3.jpg",
|
| 435 |
+
"image_caption": [],
|
| 436 |
+
"image_footnote": [],
|
| 437 |
+
"bbox": [
|
| 438 |
+
475,
|
| 439 |
+
83,
|
| 440 |
+
880,
|
| 441 |
+
233
|
| 442 |
+
],
|
| 443 |
+
"page_idx": 3
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"type": "text",
|
| 447 |
+
"text": "3 Taxonomy-Aware Contrastive Learning Retrieval",
|
| 448 |
+
"text_level": 1,
|
| 449 |
+
"bbox": [
|
| 450 |
+
112,
|
| 451 |
+
319,
|
| 452 |
+
485,
|
| 453 |
+
353
|
| 454 |
+
],
|
| 455 |
+
"page_idx": 3
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"type": "text",
|
| 459 |
+
"text": "This section defines the PAVI task with an attribute taxonomy (§3.1) and presents our retrieval-based paradigm for PAVI (§3.2). We then detail the use of contrastive training with taxonomy-aware negative sampling (§3.3) and an adaptive inference mechanism with dynamic thresholds (§3.4). Figure 3 provides an overview of our approach TACLR.",
|
| 460 |
+
"bbox": [
|
| 461 |
+
112,
|
| 462 |
+
363,
|
| 463 |
+
487,
|
| 464 |
+
476
|
| 465 |
+
],
|
| 466 |
+
"page_idx": 3
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"type": "text",
|
| 470 |
+
"text": "3.1 PAVI Task Definition",
|
| 471 |
+
"text_level": 1,
|
| 472 |
+
"bbox": [
|
| 473 |
+
112,
|
| 474 |
+
488,
|
| 475 |
+
326,
|
| 476 |
+
504
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 3
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "PAVI is grounded in an attribute taxonomy that encompasses numerous product categories. For each category $c$ , the taxonomy specifies a set of attributes $\\mathcal{A}_c = \\{a_1, a_2, \\ldots\\}$ relevant to products in that category. For each attribute $a \\in \\mathcal{A}_c$ , it provides a predefined set of standard values $\\mathcal{V}_a = \\{v_1, v_2, \\ldots\\}$ . Figure 2 illustrates this structure<sup>2</sup>.",
|
| 483 |
+
"bbox": [
|
| 484 |
+
112,
|
| 485 |
+
510,
|
| 486 |
+
487,
|
| 487 |
+
621
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 3
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "text",
|
| 493 |
+
"text": "For a given product item $i$ , with its title $t$ and description $d$ , the item is assigned to a category $c$ with associated attributes $\\mathcal{A}_c$ . The objective of the PAVI task is to identify a relevant set of values $\\mathcal{V}_a^+\\subseteq \\mathcal{V}_a$ for each attribute $a\\in \\mathcal{A}_c$ . The set $\\mathcal{V}_a^+$ can take one of three forms: a singleton $(\\{v\\})$ , multiple values $(\\{v_{1},v_{2},\\ldots \\})$ , or an empty set $(\\varnothing)$ if no information about $a$ is available in the product profile. Notably, a standard value may not always appear verbatim as a text span in $t$ or $d$ ; it may instead be present in a paraphrased or synonymous form, which we refer to as an unnormalized value (e.g., the standard value iPhone 12 Pro Max expressed as iphone12pm in Figure 1). In other",
|
| 494 |
+
"bbox": [
|
| 495 |
+
112,
|
| 496 |
+
624,
|
| 497 |
+
489,
|
| 498 |
+
848
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 3
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "text",
|
| 504 |
+
"text": "cases, a value may not be explicitly mentioned in the product profile but can be inferred from the context; these are referred to as implicit values (e.g., Apple in Figure 1).",
|
| 505 |
+
"bbox": [
|
| 506 |
+
507,
|
| 507 |
+
321,
|
| 508 |
+
884,
|
| 509 |
+
385
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 3
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"text": "3.2 Retrieval-Based PAVI",
|
| 516 |
+
"text_level": 1,
|
| 517 |
+
"bbox": [
|
| 518 |
+
507,
|
| 519 |
+
398,
|
| 520 |
+
726,
|
| 521 |
+
413
|
| 522 |
+
],
|
| 523 |
+
"page_idx": 3
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"type": "text",
|
| 527 |
+
"text": "In a standard information retrieval setting, given a query, the objective is to retrieve a list of relevant documents from a corpus. Similarly, for PAVI, we treat the input item as the query and the attribute taxonomy as the corpus, aiming to retrieve relevant attribute values as the output documents.",
|
| 528 |
+
"bbox": [
|
| 529 |
+
505,
|
| 530 |
+
420,
|
| 531 |
+
882,
|
| 532 |
+
517
|
| 533 |
+
],
|
| 534 |
+
"page_idx": 3
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"type": "text",
|
| 538 |
+
"text": "Encoding of items and values. We preprocess both item profiles and candidate values as textual inputs, utilizing a shared text encoder. For each item, we concatenate its title $(t)$ and description $(d)$ into a single input sentence formatted as: title: {title} description: {description}. Each candidate value is represented as a context-rich prompt, structured as: A {category} with {attribute} being {value}, e.g., A phone with brand being Apple. We explore the impact of various prompt templates in §5.3<sup>3</sup>.",
|
| 539 |
+
"bbox": [
|
| 540 |
+
505,
|
| 541 |
+
519,
|
| 542 |
+
882,
|
| 543 |
+
696
|
| 544 |
+
],
|
| 545 |
+
"page_idx": 3
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"type": "text",
|
| 549 |
+
"text": "Inference pipeline. During the deployment process, all value embeddings within the attribute taxonomy are pre-computed offline and indexed using the Faiss library4. During online inference, each item is encoded into an embedding, which is then compared against groups of indexed candidate value embeddings for various attributes. For each attribute $a\\in \\mathcal{A}_c$ , the top- $k$ most similar values are retrieved whose similarity scores exceed an adaptive threshold (3.4).",
|
| 550 |
+
"bbox": [
|
| 551 |
+
507,
|
| 552 |
+
697,
|
| 553 |
+
884,
|
| 554 |
+
858
|
| 555 |
+
],
|
| 556 |
+
"page_idx": 3
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"type": "page_footnote",
|
| 560 |
+
"text": "2Our approach focuses on attribute value identification, leveraging an existing attribute taxonomy as input rather than constructing or updating the taxonomy itself. In the Xianyu platform, a dedicated team and supporting system are responsible for maintaining the taxonomy (i.e., \"attribute mining\").",
|
| 561 |
+
"bbox": [
|
| 562 |
+
112,
|
| 563 |
+
858,
|
| 564 |
+
487,
|
| 565 |
+
921
|
| 566 |
+
],
|
| 567 |
+
"page_idx": 3
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"type": "page_footnote",
|
| 571 |
+
"text": "This framework can be extended to multimodal scenarios by replacing the text encoder with a multimodal encoder to incorporate features such as images.",
|
| 572 |
+
"bbox": [
|
| 573 |
+
507,
|
| 574 |
+
870,
|
| 575 |
+
882,
|
| 576 |
+
906
|
| 577 |
+
],
|
| 578 |
+
"page_idx": 3
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"type": "page_footnote",
|
| 582 |
+
"text": "<sup>4</sup>https://github.com/facebookresearch/faiss",
|
| 583 |
+
"bbox": [
|
| 584 |
+
532,
|
| 585 |
+
906,
|
| 586 |
+
850,
|
| 587 |
+
919
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 3
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "page_number",
|
| 593 |
+
"text": "31529",
|
| 594 |
+
"bbox": [
|
| 595 |
+
475,
|
| 596 |
+
927,
|
| 597 |
+
524,
|
| 598 |
+
940
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 3
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "3.3 Contrastive Training",
|
| 605 |
+
"text_level": 1,
|
| 606 |
+
"bbox": [
|
| 607 |
+
112,
|
| 608 |
+
84,
|
| 609 |
+
326,
|
| 610 |
+
99
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 4
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "Inspired by CLIP (Radford et al., 2021), we employ contrastive learning to train the shared encoder. Rather than relying on in-batch negatives, we compare each positive value with hard negative values from the same category and attribute in the taxonomy, providing a more challenging and precise training signal.",
|
| 617 |
+
"bbox": [
|
| 618 |
+
112,
|
| 619 |
+
105,
|
| 620 |
+
489,
|
| 621 |
+
217
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 4
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "text",
|
| 627 |
+
"text": "Formally, the subset of values matched with the item is referred to as the ground truth value set, $\\mathcal{V}_a^+ \\subseteq \\mathcal{V}_a$ . If no matched values exist for a given attribute, i.e., $\\mathcal{V}_a^+ = \\emptyset$ , we assign a specific null value $v_0^a$ for this attribute as the positive value, i.e. $v_a^+ = v_0^a$ . Otherwise, a positive value is randomly drawn from the ground truth value set, i.e. $v_a^+ \\sim \\mathcal{V}_a^+$ . For negative sampling, we select values as $\\mathcal{V}_a^- = \\{v_1^-, v_2^-, \\ldots\\} \\subseteq \\mathcal{V}_a - \\mathcal{V}_a^+$ , ensuring a maximum of $K$ values. The contrastive loss is then computed as follows:",
|
| 628 |
+
"bbox": [
|
| 629 |
+
112,
|
| 630 |
+
217,
|
| 631 |
+
489,
|
| 632 |
+
394
|
| 633 |
+
],
|
| 634 |
+
"page_idx": 4
|
| 635 |
+
},
|
| 636 |
+
{
|
| 637 |
+
"type": "equation",
|
| 638 |
+
"text": "\n$$\n\\mathcal {L} _ {a} = - \\log \\left(\\frac {\\exp (\\frac {s (i , v _ {a} ^ {+})}{\\tau})}{\\exp (\\frac {s (i , v _ {a} ^ {+})}{\\tau}) + \\sum_ {v \\in \\mathcal {V} _ {a} ^ {-}} \\exp (\\frac {s (i , v)}{\\tau})}\\right)\n$$\n",
|
| 639 |
+
"text_format": "latex",
|
| 640 |
+
"bbox": [
|
| 641 |
+
117,
|
| 642 |
+
404,
|
| 643 |
+
480,
|
| 644 |
+
472
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 4
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "text",
|
| 650 |
+
"text": "where $s(i,v) = \\frac{I\\cdot V}{\\|I\\|\\|V\\|}$ denotes the cosine similarity between the item embedding $I$ and the value embedding $V$ , and $\\tau$ is the temperature hyperparameter. It is important to note that each item typically includes multiple attributes, all of which share the same item embedding $I$ while being individually compared against corresponding values. Therefore, the loss for item $i$ is the sum of losses over all attributes from $\\mathcal{A}_c$ :",
|
| 651 |
+
"bbox": [
|
| 652 |
+
112,
|
| 653 |
+
483,
|
| 654 |
+
489,
|
| 655 |
+
627
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 4
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "equation",
|
| 661 |
+
"text": "\n$$\n\\mathcal {L} _ {i} = \\sum_ {a \\in \\mathcal {A} _ {c}} \\mathcal {L} _ {a}\n$$\n",
|
| 662 |
+
"text_format": "latex",
|
| 663 |
+
"bbox": [
|
| 664 |
+
245,
|
| 665 |
+
637,
|
| 666 |
+
356,
|
| 667 |
+
671
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 4
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "text",
|
| 673 |
+
"text": "An example logit matrix is depicted on the left side of Figure 3. Note that the item embedding $I_{1}$ contributes to the loss computations of $\\mathcal{L}_1^1$ , $\\mathcal{L}_1^2$ , and $\\mathcal{L}_1^3$ , which correspond to the attributes $a_1, a_2$ , and $a_3$ within the same product category. We also pad the logit matrix with negative infinity for batched computation if fewer than $K$ values are available.",
|
| 674 |
+
"bbox": [
|
| 675 |
+
112,
|
| 676 |
+
681,
|
| 677 |
+
487,
|
| 678 |
+
793
|
| 679 |
+
],
|
| 680 |
+
"page_idx": 4
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"type": "text",
|
| 684 |
+
"text": "3.4 Adaptive Inference",
|
| 685 |
+
"text_level": 1,
|
| 686 |
+
"bbox": [
|
| 687 |
+
112,
|
| 688 |
+
804,
|
| 689 |
+
310,
|
| 690 |
+
819
|
| 691 |
+
],
|
| 692 |
+
"page_idx": 4
|
| 693 |
+
},
|
| 694 |
+
{
|
| 695 |
+
"type": "text",
|
| 696 |
+
"text": "During retrieval, relevance scores are assigned to every candidate values. To filter output values, a static threshold $T$ can be applied to these scores. However, in real-world e-commerce platforms with a vast number of category-attribute pairs, using a single threshold across all pairs is often suboptimal.",
|
| 697 |
+
"bbox": [
|
| 698 |
+
112,
|
| 699 |
+
825,
|
| 700 |
+
489,
|
| 701 |
+
921
|
| 702 |
+
],
|
| 703 |
+
"page_idx": 4
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"type": "text",
|
| 707 |
+
"text": "Moreover, defining a unique threshold for each pair is tedious or even impractical.",
|
| 708 |
+
"bbox": [
|
| 709 |
+
507,
|
| 710 |
+
84,
|
| 711 |
+
880,
|
| 712 |
+
115
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 4
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "To address this, we introduce an adaptive inference method that uses dynamic thresholds to make cutoff decisions. As discussed in §3.3, we add an explicit null value $v_0^a$ for each category-attribute pair, with its embedding learned during training. In the inference phase, we compute the similarity $s(i,v_0^a)$ between the item and the null value, using it as a dynamic threshold $T_{a}^{\\prime}$ to exclude candidate values for attribute $a$ that have lower scores:",
|
| 719 |
+
"bbox": [
|
| 720 |
+
507,
|
| 721 |
+
116,
|
| 722 |
+
884,
|
| 723 |
+
261
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 4
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "equation",
|
| 729 |
+
"text": "\n$$\n\\mathcal {V} _ {a} ^ {\\mathrm {p r e d}} = \\left\\{v \\mid s (i, v) > T _ {a} ^ {\\prime} \\right\\}\n$$\n",
|
| 730 |
+
"text_format": "latex",
|
| 731 |
+
"bbox": [
|
| 732 |
+
594,
|
| 733 |
+
271,
|
| 734 |
+
794,
|
| 735 |
+
292
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 4
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "Since most category-attribute pairs have exclusive values, meaning that each product can have at most one value for a given attribute, we focus on the top-1 predicted value in this work. The output can be further simplified as follows:",
|
| 742 |
+
"bbox": [
|
| 743 |
+
507,
|
| 744 |
+
302,
|
| 745 |
+
882,
|
| 746 |
+
382
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 4
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "equation",
|
| 752 |
+
"text": "\n$$\nv _ {a} ^ {\\text {p r e d}} = \\left\\{ \\begin{array}{l l} \\arg \\max _ {v \\in \\mathcal {V} _ {a}} s (i, v) & \\text {i f} \\max _ {v \\in \\mathcal {V} _ {a}} s (i, v) > T _ {a} ^ {\\prime} \\\\ n u l l & \\text {o t h e r w i s e} \\end{array} \\right.\n$$\n",
|
| 753 |
+
"text_format": "latex",
|
| 754 |
+
"bbox": [
|
| 755 |
+
514,
|
| 756 |
+
392,
|
| 757 |
+
875,
|
| 758 |
+
444
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 4
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "text",
|
| 764 |
+
"text": "Equivalently, we can include the null value as an explicit candidate and retrieve the top-1 value as:",
|
| 765 |
+
"bbox": [
|
| 766 |
+
507,
|
| 767 |
+
451,
|
| 768 |
+
880,
|
| 769 |
+
483
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 4
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "equation",
|
| 775 |
+
"text": "\n$$\nv _ {a} ^ {\\text {p r e d}} = \\arg \\max _ {v \\in \\mathcal {V} _ {a} \\cup \\{v _ {0} ^ {a} \\}} s (i, v)\n$$\n",
|
| 776 |
+
"text_format": "latex",
|
| 777 |
+
"bbox": [
|
| 778 |
+
586,
|
| 779 |
+
494,
|
| 780 |
+
803,
|
| 781 |
+
521
|
| 782 |
+
],
|
| 783 |
+
"page_idx": 4
|
| 784 |
+
},
|
| 785 |
+
{
|
| 786 |
+
"type": "text",
|
| 787 |
+
"text": "In this case, selecting the $v_{0}^{a}$ corresponds to the scenario where none of the specific candidate values surpass the dynamic threshold.",
|
| 788 |
+
"bbox": [
|
| 789 |
+
507,
|
| 790 |
+
532,
|
| 791 |
+
882,
|
| 792 |
+
579
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 4
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "text",
|
| 798 |
+
"text": "The inference process is illustrated on the right side of Figure 3. In this example, the predictions for $a_3$ and $a_5$ are determined to be empty because the highest-scoring value for these attributes is the null value.",
|
| 799 |
+
"bbox": [
|
| 800 |
+
507,
|
| 801 |
+
580,
|
| 802 |
+
880,
|
| 803 |
+
659
|
| 804 |
+
],
|
| 805 |
+
"page_idx": 4
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"type": "text",
|
| 809 |
+
"text": "4 Experiment Settings",
|
| 810 |
+
"text_level": 1,
|
| 811 |
+
"bbox": [
|
| 812 |
+
507,
|
| 813 |
+
671,
|
| 814 |
+
719,
|
| 815 |
+
688
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 4
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "4.1 Datasets",
|
| 822 |
+
"text_level": 1,
|
| 823 |
+
"bbox": [
|
| 824 |
+
507,
|
| 825 |
+
697,
|
| 826 |
+
621,
|
| 827 |
+
711
|
| 828 |
+
],
|
| 829 |
+
"page_idx": 4
|
| 830 |
+
},
|
| 831 |
+
{
|
| 832 |
+
"type": "text",
|
| 833 |
+
"text": "To evaluate PAVI under the settings described in §3.1, we compare our proposed method against baselines on both proprietary and public datasets with normalized values<sup>5</sup>. Table 2 presents statistics of the attribute taxonomies and datasets.",
|
| 834 |
+
"bbox": [
|
| 835 |
+
507,
|
| 836 |
+
718,
|
| 837 |
+
880,
|
| 838 |
+
797
|
| 839 |
+
],
|
| 840 |
+
"page_idx": 4
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"type": "text",
|
| 844 |
+
"text": "Xianyu-PAVI. This dataset, derived from the e-commerce platform Xianyu, is constructed to evaluate the scalability and generalization of PAVI methods. The platform's attribute taxonomy comprises",
|
| 845 |
+
"bbox": [
|
| 846 |
+
507,
|
| 847 |
+
797,
|
| 848 |
+
884,
|
| 849 |
+
863
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 4
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "page_footnote",
|
| 855 |
+
"text": "5Other popular benchmarks, such as AE-110k (Xu et al., 2019) and MAVE (Yang et al., 2022), provide only unnormalized values as spans extracted from product profiles, making them unsuitable for our experiments.",
|
| 856 |
+
"bbox": [
|
| 857 |
+
507,
|
| 858 |
+
871,
|
| 859 |
+
882,
|
| 860 |
+
921
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 4
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "page_number",
|
| 866 |
+
"text": "31530",
|
| 867 |
+
"bbox": [
|
| 868 |
+
475,
|
| 869 |
+
927,
|
| 870 |
+
524,
|
| 871 |
+
940
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 4
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "table",
|
| 877 |
+
"img_path": "images/1d3fa069674a848d507b1ba5cb40731d4b0f9704152ca65c551ac7ba0b3a12a1.jpg",
|
| 878 |
+
"table_caption": [
|
| 879 |
+
"Table 2: Statistics of the attribute taxonomies and dataset splits from Xianyu-PAVI and WDC-PAVE. \"CA Pairs\" refers to category-attribute pairs, \"CAV Tuples\" denotes category-attribute-value tuples, \"PA Pairs\" represents product-attribute pairs, and \"Null Pairs\" indicates product-attribute pairs with null values. \"Excl.\" refers to the test split excluding measurement attributes.",
|
| 880 |
+
"(a) Statistics of the attribute taxonomies."
|
| 881 |
+
],
|
| 882 |
+
"table_footnote": [],
|
| 883 |
+
"table_body": "<table><tr><td>Statistic</td><td>Xianyu</td><td>WDC</td></tr><tr><td># Categories</td><td>8,803</td><td>5</td></tr><tr><td># Attributes</td><td>3,326</td><td>24</td></tr><tr><td># CA Pairs</td><td>26,645</td><td>37</td></tr><tr><td># CAV Tuples</td><td>6,302,220</td><td>2,297</td></tr></table>",
|
| 884 |
+
"bbox": [
|
| 885 |
+
122,
|
| 886 |
+
168,
|
| 887 |
+
369,
|
| 888 |
+
247
|
| 889 |
+
],
|
| 890 |
+
"page_idx": 5
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"type": "table",
|
| 894 |
+
"img_path": "images/67ed7ca0b2773058a6f14d87cd9203927e2b39d454555eb8870b88d3db2cc7b3.jpg",
|
| 895 |
+
"table_caption": [
|
| 896 |
+
"(b) Statistics of the datasets."
|
| 897 |
+
],
|
| 898 |
+
"table_footnote": [],
|
| 899 |
+
"table_body": "<table><tr><td rowspan=\"2\">Statistic</td><td colspan=\"3\">Xianyu-PAVI</td><td colspan=\"3\">WDC-PAVE</td></tr><tr><td>Train</td><td>Valid</td><td>Test</td><td>Train</td><td>Test</td><td>Excl.</td></tr><tr><td># Products</td><td>809,528</td><td>81,699</td><td>85,024</td><td>1,066</td><td>354</td><td>354</td></tr><tr><td># PA Pairs</td><td>3,584,462</td><td>358,582</td><td>458,954</td><td>8,832</td><td>2,937</td><td>2,285</td></tr><tr><td># Null Pairs</td><td>2,345,577</td><td>228,534</td><td>272,285</td><td>3,973</td><td>1,330</td><td>916</td></tr></table>",
|
| 900 |
+
"bbox": [
|
| 901 |
+
401,
|
| 902 |
+
168,
|
| 903 |
+
880,
|
| 904 |
+
253
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 5
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "8,803 product categories, 26,645 category-attribute pairs, and 6.3 million category-attribute-value tuples. On average, each category is associated with 3 attributes, each attribute has 237 possible values, and there are 716 candidate values per category.",
|
| 911 |
+
"bbox": [
|
| 912 |
+
112,
|
| 913 |
+
275,
|
| 914 |
+
487,
|
| 915 |
+
356
|
| 916 |
+
],
|
| 917 |
+
"page_idx": 5
|
| 918 |
+
},
|
| 919 |
+
{
|
| 920 |
+
"type": "text",
|
| 921 |
+
"text": "For our experiments, we randomly sampled 1 million product items for training, 10,000 for validation, and 10,000 for testing. Each item is annotated with a category label and multiple attribute-value pair labels. Category labels were generated through a multi-step process involving automated classification, seller feedback, and annotator review, during which misclassified samples were discarded. Attribute-value pair labels were obtained through a multi-stage manual annotation process: a pool of annotators conducted the initial labeling, followed by quality checks and a second round of review, with items reassigned to different annotators after shuffling.",
|
| 922 |
+
"bbox": [
|
| 923 |
+
115,
|
| 924 |
+
357,
|
| 925 |
+
489,
|
| 926 |
+
581
|
| 927 |
+
],
|
| 928 |
+
"page_idx": 5
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"type": "text",
|
| 932 |
+
"text": "WDC-PAVE (Brinkmann et al., 2024). This dataset contains 1,066 training and 354 test product items across 5 categories, with 8,832 and 2,937 product attribute pairs (3,973 and 1,330 nulls), respectively. On average, each category is associated with 7.4 attributes, each attribute has 62 values, and there are 459 attribute-value pairs per category. We conduct two evaluations: the first on the original test set, and the second on a test split that excludes measurement attributes, which require complex reasoning for unit conversion.",
|
| 933 |
+
"bbox": [
|
| 934 |
+
112,
|
| 935 |
+
583,
|
| 936 |
+
489,
|
| 937 |
+
758
|
| 938 |
+
],
|
| 939 |
+
"page_idx": 5
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"type": "text",
|
| 943 |
+
"text": "4.2 Metrics",
|
| 944 |
+
"text_level": 1,
|
| 945 |
+
"bbox": [
|
| 946 |
+
112,
|
| 947 |
+
770,
|
| 948 |
+
221,
|
| 949 |
+
784
|
| 950 |
+
],
|
| 951 |
+
"page_idx": 5
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"type": "text",
|
| 955 |
+
"text": "Since most attributes in the taxonomy are exclusive, i.e., each product can have at most one value per attribute, we evaluate PAVI methods using microaveraged precision@1, recall@1, and F1 score@1.",
|
| 956 |
+
"bbox": [
|
| 957 |
+
112,
|
| 958 |
+
791,
|
| 959 |
+
487,
|
| 960 |
+
854
|
| 961 |
+
],
|
| 962 |
+
"page_idx": 5
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"type": "text",
|
| 966 |
+
"text": "For each attribute, the ground truth is a set of values $\\mathcal{V}$ from the taxonomy. If the ground truth set is empty $(\\varnothing)$ , a correct prediction (True Negative, TN) occurs when the model also predicts an empty",
|
| 967 |
+
"bbox": [
|
| 968 |
+
112,
|
| 969 |
+
857,
|
| 970 |
+
487,
|
| 971 |
+
921
|
| 972 |
+
],
|
| 973 |
+
"page_idx": 5
|
| 974 |
+
},
|
| 975 |
+
{
|
| 976 |
+
"type": "table",
|
| 977 |
+
"img_path": "images/fe079ca9cae7c0aac574ab036e56e3264ca32a84e8b8dd2572b98a78af138991.jpg",
|
| 978 |
+
"table_caption": [
|
| 979 |
+
"Table 3: Confusion matrix comparing ground truth value set with predicted top-1 value."
|
| 980 |
+
],
|
| 981 |
+
"table_footnote": [],
|
| 982 |
+
"table_body": "<table><tr><td>Label</td><td>Prediction</td><td>Outcome</td></tr><tr><td>∅</td><td>∅</td><td>True Negative (TN)</td></tr><tr><td>∅</td><td>v</td><td>False Positive (FP)</td></tr><tr><td>V</td><td>v ∈ V</td><td>True Positive (TP)</td></tr><tr><td>V</td><td>∅</td><td>False Negative (FN)</td></tr><tr><td>V</td><td>v'∉ V</td><td>FP & FN</td></tr></table>",
|
| 983 |
+
"bbox": [
|
| 984 |
+
554,
|
| 985 |
+
312,
|
| 986 |
+
836,
|
| 987 |
+
401
|
| 988 |
+
],
|
| 989 |
+
"page_idx": 5
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"type": "text",
|
| 993 |
+
"text": "set; otherwise, it is a False Positive (FP). When the ground truth set is not empty, the model's top-1 output is a True Positive (TP) if it matches any ground truth value. Predicting an empty set in this case results in a False Negative (FN), while mismatched predictions are both False Positives (FP) and False Negatives (FN), as it simultaneously introduces an error and misses the correct value. Table 3 summarizes these outcomes<sup>6</sup>. Final precision, recall, and F1 scores are computed by aggregating TP, FP, and FN counts across the dataset, providing a comprehensive performance evaluation.",
|
| 994 |
+
"bbox": [
|
| 995 |
+
507,
|
| 996 |
+
426,
|
| 997 |
+
882,
|
| 998 |
+
619
|
| 999 |
+
],
|
| 1000 |
+
"page_idx": 5
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"type": "text",
|
| 1004 |
+
"text": "4.3 Baselines",
|
| 1005 |
+
"text_level": 1,
|
| 1006 |
+
"bbox": [
|
| 1007 |
+
507,
|
| 1008 |
+
631,
|
| 1009 |
+
628,
|
| 1010 |
+
645
|
| 1011 |
+
],
|
| 1012 |
+
"page_idx": 5
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "text",
|
| 1016 |
+
"text": "We evaluate our retrieval-based method, TACLR, against classification and generation baselines<sup>7</sup>. For implementation details, refer to Appendix A. BERT-CLS. This baseline frames PAVI as a multi-label classification task, treating each category-attribute-value tuple as an independent label. The model is fine-tuned to predict matches, with label masking applied to exclude irrelevant labels for each category, following (Chen et al., 2022). The model outputs a probability distribution over val",
|
| 1017 |
+
"bbox": [
|
| 1018 |
+
507,
|
| 1019 |
+
652,
|
| 1020 |
+
884,
|
| 1021 |
+
814
|
| 1022 |
+
],
|
| 1023 |
+
"page_idx": 5
|
| 1024 |
+
},
|
| 1025 |
+
{
|
| 1026 |
+
"type": "page_footnote",
|
| 1027 |
+
"text": "In prior work (Shinzato et al., 2023), metrics did not account for the FP case, and FP & FN cases were counted as FP only. We adopt more stringent metrics in this paper.",
|
| 1028 |
+
"bbox": [
|
| 1029 |
+
507,
|
| 1030 |
+
822,
|
| 1031 |
+
882,
|
| 1032 |
+
860
|
| 1033 |
+
],
|
| 1034 |
+
"page_idx": 5
|
| 1035 |
+
},
|
| 1036 |
+
{
|
| 1037 |
+
"type": "page_footnote",
|
| 1038 |
+
"text": "7Extraction baselines, such as NER and QA models, are not included because (1) they produce unnormalized outputs, requiring an established normalization strategy for fair comparison, and (2) the large-scale Xianyu-PAVI lacks token-level annotations (e.g., BIO tags) necessary for these methods.",
|
| 1039 |
+
"bbox": [
|
| 1040 |
+
507,
|
| 1041 |
+
860,
|
| 1042 |
+
882,
|
| 1043 |
+
920
|
| 1044 |
+
],
|
| 1045 |
+
"page_idx": 5
|
| 1046 |
+
},
|
| 1047 |
+
{
|
| 1048 |
+
"type": "page_number",
|
| 1049 |
+
"text": "31531",
|
| 1050 |
+
"bbox": [
|
| 1051 |
+
475,
|
| 1052 |
+
927,
|
| 1053 |
+
522,
|
| 1054 |
+
940
|
| 1055 |
+
],
|
| 1056 |
+
"page_idx": 5
|
| 1057 |
+
},
|
| 1058 |
+
{
|
| 1059 |
+
"type": "table",
|
| 1060 |
+
"img_path": "images/b55cb6f89f0ed09e0a3ef1c1197222eaf6851c8ca154e62a743adef57e046316.jpg",
|
| 1061 |
+
"table_caption": [
|
| 1062 |
+
"Table 4: Performance comparison of classification-, generation-, and retrieval-based methods on Xianyu-PAVI and WDC-PAVE. \"F1 Excl.\" denotes the F1 score computed excluding measurement attributes (e.g., width and height), which require complex unit normalization reasoning."
|
| 1063 |
+
],
|
| 1064 |
+
"table_footnote": [],
|
| 1065 |
+
"table_body": "<table><tr><td rowspan=\"2\">Paradigm</td><td rowspan=\"2\">Method</td><td colspan=\"3\">Xianyu-PAVI</td><td colspan=\"4\">WDC-PAVE</td></tr><tr><td>Precision</td><td>Recall</td><td>F1</td><td>Precision</td><td>Recall</td><td>F1</td><td>F1 Excl.</td></tr><tr><td>Classification</td><td>BERT-CLS</td><td>50.9</td><td>50.1</td><td>50.5</td><td>68.9</td><td>12.0</td><td>20.5</td><td>23.4</td></tr><tr><td rowspan=\"8\">Generation</td><td>Llama3.1 (zero-shot)</td><td>29.1</td><td>46.2</td><td>35.7</td><td>56.6</td><td>60.8</td><td>58.6</td><td>64.6</td></tr><tr><td>Llama3.1 (few-shot)</td><td>31.0</td><td>51.1</td><td>38.6</td><td>76.0</td><td>74.1</td><td>75.0</td><td>79.0</td></tr><tr><td>Llama3.1 (RAG)</td><td>40.8</td><td>57.2</td><td>47.6</td><td>78.2</td><td>76.3</td><td>77.2</td><td>80.1</td></tr><tr><td>Llama3.1 (fine-tune)</td><td>86.9</td><td>82.7</td><td>84.7</td><td>57.7</td><td>60.4</td><td>59.0</td><td>64.5</td></tr><tr><td>Qwen2.5 (zero-shot)</td><td>42.7</td><td>55.7</td><td>48.4</td><td>51.9</td><td>60.3</td><td>55.8</td><td>60.8</td></tr><tr><td>Qwen2.5 (few-shot)</td><td>45.8</td><td>58.6</td><td>51.4</td><td>72.2</td><td>72.3</td><td>72.2</td><td>76.2</td></tr><tr><td>Qwen2.5 (RAG)</td><td>58.3</td><td>69.1</td><td>63.2</td><td>75.1</td><td>73.4</td><td>74.2</td><td>78.3</td></tr><tr><td>Qwen2.5 (fine-tune)</td><td>84.5</td><td>79.1</td><td>81.7</td><td>54.1</td><td>60.0</td><td>56.9</td><td>61.7</td></tr><tr><td>Retrieval</td><td>TACLR</td><td>85.4</td><td>87.1</td><td>86.2</td><td>74.3</td><td>70.9</td><td>72.6</td><td>80.3</td></tr></table>",
|
| 1066 |
+
"bbox": [
|
| 1067 |
+
154,
|
| 1068 |
+
135,
|
| 1069 |
+
843,
|
| 1070 |
+
323
|
| 1071 |
+
],
|
| 1072 |
+
"page_idx": 6
|
| 1073 |
+
},
|
| 1074 |
+
{
|
| 1075 |
+
"type": "text",
|
| 1076 |
+
"text": "ues and selects the highest-probability value for each attribute. If no probability exceeds a specified threshold, the prediction is set to empty.",
|
| 1077 |
+
"bbox": [
|
| 1078 |
+
112,
|
| 1079 |
+
346,
|
| 1080 |
+
487,
|
| 1081 |
+
394
|
| 1082 |
+
],
|
| 1083 |
+
"page_idx": 6
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"type": "text",
|
| 1087 |
+
"text": "LLM. For generation-based baselines, we utilize state-of-the-art open-source LLMs, including Llama3.1-7B (Llama Team, 2024) and Qwen2.5-7B (Qwen Team, 2024). These models are evaluated in zero-shot and few-shot settings using a template adapted from (Brinkmann et al., 2024), which incorporates the category, attribute, product profile, and detailed value normalization guidelines. We further fine-tune the LLMs using LoRA (Hu et al., 2022) to improve performance.",
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
112,
|
| 1090 |
+
395,
|
| 1091 |
+
489,
|
| 1092 |
+
554
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 6
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "text",
|
| 1098 |
+
"text": "RAG. We implement RAG baselines based on both Qwen2.5 and Llama3.1, using BGE embeddings (Xiao et al., 2023) to retrieve the top-5 most similar product items from the training set. The LLM prompt is augmented with the profiles and structured attribute-value pair outputs of these retrieved examples. For all generation baselines, we apply greedy decoding to ensure reproducibility, and model outputs are formatted in JSON.",
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
112,
|
| 1101 |
+
556,
|
| 1102 |
+
489,
|
| 1103 |
+
701
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 6
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "text",
|
| 1109 |
+
"text": "5 Results",
|
| 1110 |
+
"text_level": 1,
|
| 1111 |
+
"bbox": [
|
| 1112 |
+
112,
|
| 1113 |
+
713,
|
| 1114 |
+
213,
|
| 1115 |
+
727
|
| 1116 |
+
],
|
| 1117 |
+
"page_idx": 6
|
| 1118 |
+
},
|
| 1119 |
+
{
|
| 1120 |
+
"type": "text",
|
| 1121 |
+
"text": "5.1 Main Results",
|
| 1122 |
+
"text_level": 1,
|
| 1123 |
+
"bbox": [
|
| 1124 |
+
112,
|
| 1125 |
+
739,
|
| 1126 |
+
265,
|
| 1127 |
+
753
|
| 1128 |
+
],
|
| 1129 |
+
"page_idx": 6
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"type": "text",
|
| 1133 |
+
"text": "Table 4 presents the performance comparison between our retrieval-based method TACLR and classification- and generation-based baselines. On Xianyu-PAVI, TACLR achieves the highest F1 score of $86.2\\%$ , surpassing fine-tuned Llama3.1, which obtains $84.7\\%$ . Notably, TACLR excels in recall, achieving $87.1\\%$ compared to Llama3.1's $82.7\\%$ . On WDC-PAVE, TACLR achieves the highest F1 Excl. score of $80.3\\%$ , which excludes measurement attributes requiring unit normalization",
|
| 1134 |
+
"bbox": [
|
| 1135 |
+
112,
|
| 1136 |
+
760,
|
| 1137 |
+
489,
|
| 1138 |
+
921
|
| 1139 |
+
],
|
| 1140 |
+
"page_idx": 6
|
| 1141 |
+
},
|
| 1142 |
+
{
|
| 1143 |
+
"type": "text",
|
| 1144 |
+
"text": "reasoning. These results highlight TACLR's effectiveness and robustness in addressing general PAVI across diverse datasets.",
|
| 1145 |
+
"bbox": [
|
| 1146 |
+
507,
|
| 1147 |
+
346,
|
| 1148 |
+
884,
|
| 1149 |
+
393
|
| 1150 |
+
],
|
| 1151 |
+
"page_idx": 6
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"type": "text",
|
| 1155 |
+
"text": "The classification-based baseline, BERT-CLS, shows the weakest performance on both datasets. It achieves an F1 score of $50.5\\%$ on Xianyu-PAVI, but its performance drops drastically to $20.5\\%$ on WDC-PAVE, underscoring the limitations of classification approaches in generalization. One contributing factor is the extreme label sparsity in this formulation: there are over 6.3M category-attribute-value labels, but the training set contains fewer than 3.6M instances, making it difficult for the model to learn a reliable classification head.",
|
| 1156 |
+
"bbox": [
|
| 1157 |
+
507,
|
| 1158 |
+
399,
|
| 1159 |
+
885,
|
| 1160 |
+
576
|
| 1161 |
+
],
|
| 1162 |
+
"page_idx": 6
|
| 1163 |
+
},
|
| 1164 |
+
{
|
| 1165 |
+
"type": "text",
|
| 1166 |
+
"text": "Among generation-based methods, performance improves steadily from zero-shot prompting to few-shot prompting, retrieval-augmented generation, and fine-tuning on the large-scale Xianyu-PAVI dataset. Llama3.1 progresses from $35.7\\%$ (zero-shot) to $38.6\\%$ (few-shot), $47.6\\%$ (RAG), and $84.7\\%$ (fine-tune), while Qwen2.5 improves from $48.4\\%$ to $51.4\\%$ , $63.2\\%$ , and $81.7\\%$ , respectively. A similar trend holds on WDC-PAVE, though fine-tuning is less effective due to limited supervision. In this setting, RAG outperforms few-shot prompting for both Llama3.1 ( $77.2\\%$ vs. $75.0\\%$ ) and Qwen2.5 ( $74.2\\%$ vs. $72.2\\%$ ), offering a viable alternative when labeled data is limited. Nonetheless, TACLR consistently surpasses RAG, particularly on Xianyu-PAVI ( $86.2\\%$ vs. $47.6\\%/63.2\\%$ ), demonstrating better scalability for large-scale industrial applications. On WDC-PAVE, TACLR matches or exceeds RAG and retains a slight advantage in non-measurement attributes (F1 Excl.: $80.3\\%$ vs. $80.1\\%/78.3\\%$ ).",
|
| 1167 |
+
"bbox": [
|
| 1168 |
+
507,
|
| 1169 |
+
583,
|
| 1170 |
+
885,
|
| 1171 |
+
920
|
| 1172 |
+
],
|
| 1173 |
+
"page_idx": 6
|
| 1174 |
+
},
|
| 1175 |
+
{
|
| 1176 |
+
"type": "page_number",
|
| 1177 |
+
"text": "31532",
|
| 1178 |
+
"bbox": [
|
| 1179 |
+
475,
|
| 1180 |
+
927,
|
| 1181 |
+
524,
|
| 1182 |
+
940
|
| 1183 |
+
],
|
| 1184 |
+
"page_idx": 6
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"type": "table",
|
| 1188 |
+
"img_path": "images/144c6fbaea4af2a825499897712fe32f60168a216b118155d4b28cf61dd44848.jpg",
|
| 1189 |
+
"table_caption": [
|
| 1190 |
+
"Table 5: Inference efficiency comparison on Xianyu-PAVI (Throughput in samples/second)."
|
| 1191 |
+
],
|
| 1192 |
+
"table_footnote": [],
|
| 1193 |
+
"table_body": "<table><tr><td>Method</td><td>Time (ms)</td><td>Throughput</td></tr><tr><td>BERT-CLS</td><td>8.6</td><td>930</td></tr><tr><td>Llama3.1 (zero-shot)</td><td>101.3</td><td>80</td></tr><tr><td>Llama3.1 (few-shot)</td><td>124.8</td><td>64</td></tr><tr><td>Llama3.1 (RAG)</td><td>137.9</td><td>58</td></tr><tr><td>Qwen2.5 (zero-shot)</td><td>84.0</td><td>95</td></tr><tr><td>Qwen2.5 (few-shot)</td><td>98.4</td><td>81</td></tr><tr><td>Qwen2.5 (RAG)</td><td>108.3</td><td>74</td></tr><tr><td>TACLR</td><td>12.7</td><td>630</td></tr></table>",
|
| 1194 |
+
"bbox": [
|
| 1195 |
+
137,
|
| 1196 |
+
121,
|
| 1197 |
+
463,
|
| 1198 |
+
259
|
| 1199 |
+
],
|
| 1200 |
+
"page_idx": 7
|
| 1201 |
+
},
|
| 1202 |
+
{
|
| 1203 |
+
"type": "table",
|
| 1204 |
+
"img_path": "images/ca355ec1d83184e2cff7ff1c004f12c5ea952d0f41c052d7c6426a995bfbe2ef.jpg",
|
| 1205 |
+
"table_caption": [
|
| 1206 |
+
"Table 6: F1 scores on product-attribute pairs with normalized vs. unnormalized and implicit values."
|
| 1207 |
+
],
|
| 1208 |
+
"table_footnote": [],
|
| 1209 |
+
"table_body": "<table><tr><td>Method</td><td>Normalized</td><td>Unnorm. & Implicit</td></tr><tr><td>Llama3.1</td><td>83.2</td><td>79.4</td></tr><tr><td>Qwen2.5</td><td>82.6</td><td>78.6</td></tr><tr><td>TACLR</td><td>87.9</td><td>82.9</td></tr></table>",
|
| 1210 |
+
"bbox": [
|
| 1211 |
+
144,
|
| 1212 |
+
312,
|
| 1213 |
+
458,
|
| 1214 |
+
385
|
| 1215 |
+
],
|
| 1216 |
+
"page_idx": 7
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"type": "text",
|
| 1220 |
+
"text": "5.2 Inference Efficiency",
|
| 1221 |
+
"text_level": 1,
|
| 1222 |
+
"bbox": [
|
| 1223 |
+
112,
|
| 1224 |
+
410,
|
| 1225 |
+
315,
|
| 1226 |
+
426
|
| 1227 |
+
],
|
| 1228 |
+
"page_idx": 7
|
| 1229 |
+
},
|
| 1230 |
+
{
|
| 1231 |
+
"type": "text",
|
| 1232 |
+
"text": "Table 5 presents a comparison of inference efficiency across different PAVI paradigms under identical conditions, using an unoptimized PyTorch implementation on a single NVIDIA V100 GPU.",
|
| 1233 |
+
"bbox": [
|
| 1234 |
+
112,
|
| 1235 |
+
432,
|
| 1236 |
+
489,
|
| 1237 |
+
495
|
| 1238 |
+
],
|
| 1239 |
+
"page_idx": 7
|
| 1240 |
+
},
|
| 1241 |
+
{
|
| 1242 |
+
"type": "text",
|
| 1243 |
+
"text": "TACLR achieves a strong balance between model capacity and efficiency, processing each sample in $12.7\\mathrm{ms}$ and achieving a throughput of 630 samples per second. In contrast, generation-based methods using Llama3.1 and Qwen2.5 exhibit substantially higher inference times (over $100\\mathrm{ms}$ per sample) and lower throughput (below 100 samples per second), primarily due to the overhead of autoregressive decoding and reliance on large-scale models. The BERT-CLS classification baseline offers the highest raw efficiency $(8.6\\mathrm{ms},$ 930 samples per second), but its inability to handle out-of-distribution values and limited generalization capacity reduce its practical applicability.",
|
| 1244 |
+
"bbox": [
|
| 1245 |
+
112,
|
| 1246 |
+
498,
|
| 1247 |
+
489,
|
| 1248 |
+
722
|
| 1249 |
+
],
|
| 1250 |
+
"page_idx": 7
|
| 1251 |
+
},
|
| 1252 |
+
{
|
| 1253 |
+
"type": "text",
|
| 1254 |
+
"text": "In summary, among these methods, TACLR provides the best trade-off between identification capability and inference efficiency, making it well-suited for scalable industrial deployment.",
|
| 1255 |
+
"bbox": [
|
| 1256 |
+
112,
|
| 1257 |
+
724,
|
| 1258 |
+
489,
|
| 1259 |
+
788
|
| 1260 |
+
],
|
| 1261 |
+
"page_idx": 7
|
| 1262 |
+
},
|
| 1263 |
+
{
|
| 1264 |
+
"type": "text",
|
| 1265 |
+
"text": "5.3 Analysis",
|
| 1266 |
+
"text_level": 1,
|
| 1267 |
+
"bbox": [
|
| 1268 |
+
112,
|
| 1269 |
+
802,
|
| 1270 |
+
226,
|
| 1271 |
+
816
|
| 1272 |
+
],
|
| 1273 |
+
"page_idx": 7
|
| 1274 |
+
},
|
| 1275 |
+
{
|
| 1276 |
+
"type": "text",
|
| 1277 |
+
"text": "This section analyzes our method on the Xianyu-PAVI dataset, selected for its large scale and diverse attribute taxonomy. In contrast, the WDC-PAVE dataset is substantially smaller in both size and coverage, making it insufficient for robust evaluation of scalability and generalization.",
|
| 1278 |
+
"bbox": [
|
| 1279 |
+
112,
|
| 1280 |
+
825,
|
| 1281 |
+
489,
|
| 1282 |
+
921
|
| 1283 |
+
],
|
| 1284 |
+
"page_idx": 7
|
| 1285 |
+
},
|
| 1286 |
+
{
|
| 1287 |
+
"type": "image",
|
| 1288 |
+
"img_path": "images/110c7d7373481da84de0515654173d3e760e0f586de458ce05e148a74a873920.jpg",
|
| 1289 |
+
"image_caption": [
|
| 1290 |
+
"Figure 4: Comparison of negative sampling strategies with increasing number of samples."
|
| 1291 |
+
],
|
| 1292 |
+
"image_footnote": [],
|
| 1293 |
+
"bbox": [
|
| 1294 |
+
578,
|
| 1295 |
+
84,
|
| 1296 |
+
816,
|
| 1297 |
+
193
|
| 1298 |
+
],
|
| 1299 |
+
"page_idx": 7
|
| 1300 |
+
},
|
| 1301 |
+
{
|
| 1302 |
+
"type": "text",
|
| 1303 |
+
"text": "Robustness Evaluation on Diverse Values. To better assess model robustness under various conditions, we partition the test set into three subsets based on the nature of the ground truth: (1) normalized values, appear verbatim in the product profile; (2) null values, where the attribute is marked as unavailable; and (3) unnormalized or implicit values, which either appear in a lexically varied form, or must be inferred. In our Xianyu-PAVI dataset, normalized values account for approximately $15.2\\%$ , unnormalized or implicit values for $27.2\\%$ , and null values for $57.6\\%$ .",
|
| 1304 |
+
"bbox": [
|
| 1305 |
+
507,
|
| 1306 |
+
260,
|
| 1307 |
+
884,
|
| 1308 |
+
451
|
| 1309 |
+
],
|
| 1310 |
+
"page_idx": 7
|
| 1311 |
+
},
|
| 1312 |
+
{
|
| 1313 |
+
"type": "text",
|
| 1314 |
+
"text": "Table 6 reports the F1 scores on the normalized and unnormalized/implicit subsets. TACLR achieves the highest performance on both subsets, with an F1 score of $87.9\\%$ on normalized values and $82.9\\%$ on unnormalized or implicit values. Compared to the fine-tuned LLM baselines, TACLR demonstrates stronger ability to recognize standardized values and better robustness to lexical variation and implicit reasoning.",
|
| 1315 |
+
"bbox": [
|
| 1316 |
+
507,
|
| 1317 |
+
454,
|
| 1318 |
+
882,
|
| 1319 |
+
598
|
| 1320 |
+
],
|
| 1321 |
+
"page_idx": 7
|
| 1322 |
+
},
|
| 1323 |
+
{
|
| 1324 |
+
"type": "text",
|
| 1325 |
+
"text": "Impact of Taxonomy-Aware Negative Sampling. Figure 4 compares the proposed taxonomy-aware negative sampling (§3.3) with in-batch negative sampling across varying sample sizes. As the number of sampled values increases, the F1 score improves consistently, aligning with findings from (Chen et al., 2020). Using in-batch sampling as the baseline, the model achieves an F1 score of $53.3\\%$ with a sample size of 128. In contrast, taxonomy-aware sampling yields substantial improvements, boosting the F1 score from $84.0\\%$ to $86.2\\%$ as the sample size grows from 16 to 128.",
|
| 1326 |
+
"bbox": [
|
| 1327 |
+
507,
|
| 1328 |
+
599,
|
| 1329 |
+
882,
|
| 1330 |
+
791
|
| 1331 |
+
],
|
| 1332 |
+
"page_idx": 7
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"type": "text",
|
| 1336 |
+
"text": "These results demonstrate that taxonomy-aware sampling provides more effective supervision, encouraging the model to distinguish between fine-grained, semantically similar values within the same category and attribute. In contrast, in-batch sampling often yields random negatives that are less relevant and frequently trivial, limiting the efficacy of contrastive learning for PAVI. For example,",
|
| 1337 |
+
"bbox": [
|
| 1338 |
+
507,
|
| 1339 |
+
793,
|
| 1340 |
+
884,
|
| 1341 |
+
921
|
| 1342 |
+
],
|
| 1343 |
+
"page_idx": 7
|
| 1344 |
+
},
|
| 1345 |
+
{
|
| 1346 |
+
"type": "page_number",
|
| 1347 |
+
"text": "31533",
|
| 1348 |
+
"bbox": [
|
| 1349 |
+
475,
|
| 1350 |
+
927,
|
| 1351 |
+
524,
|
| 1352 |
+
940
|
| 1353 |
+
],
|
| 1354 |
+
"page_idx": 7
|
| 1355 |
+
},
|
| 1356 |
+
{
|
| 1357 |
+
"type": "image",
|
| 1358 |
+
"img_path": "images/3db2449ecd459fc902de0035a6c462124b8ceafa2409d8df5b1468c7a031adcc.jpg",
|
| 1359 |
+
"image_caption": [
|
| 1360 |
+
"(a) Comparison of inference thresholds."
|
| 1361 |
+
],
|
| 1362 |
+
"image_footnote": [],
|
| 1363 |
+
"bbox": [
|
| 1364 |
+
119,
|
| 1365 |
+
82,
|
| 1366 |
+
371,
|
| 1367 |
+
215
|
| 1368 |
+
],
|
| 1369 |
+
"page_idx": 8
|
| 1370 |
+
},
|
| 1371 |
+
{
|
| 1372 |
+
"type": "image",
|
| 1373 |
+
"img_path": "images/6501c664b39e2dc3593dde2ff818a5aa3d26d6d994642c74e858a119266379ba.jpg",
|
| 1374 |
+
"image_caption": [
|
| 1375 |
+
"(b) Comparison of prompt templates."
|
| 1376 |
+
],
|
| 1377 |
+
"image_footnote": [],
|
| 1378 |
+
"bbox": [
|
| 1379 |
+
374,
|
| 1380 |
+
82,
|
| 1381 |
+
623,
|
| 1382 |
+
215
|
| 1383 |
+
],
|
| 1384 |
+
"page_idx": 8
|
| 1385 |
+
},
|
| 1386 |
+
{
|
| 1387 |
+
"type": "image",
|
| 1388 |
+
"img_path": "images/8ff9f6144c165ae41cebd84daf7487fc9dc8843d2e17d33bc01e1b10859eacdb.jpg",
|
| 1389 |
+
"image_caption": [
|
| 1390 |
+
"(c) Comparison of data domains.",
|
| 1391 |
+
"Figure 5: Performance analysis across inference thresholds, prompt templates, and data domains."
|
| 1392 |
+
],
|
| 1393 |
+
"image_footnote": [],
|
| 1394 |
+
"bbox": [
|
| 1395 |
+
628,
|
| 1396 |
+
82,
|
| 1397 |
+
877,
|
| 1398 |
+
215
|
| 1399 |
+
],
|
| 1400 |
+
"page_idx": 8
|
| 1401 |
+
},
|
| 1402 |
+
{
|
| 1403 |
+
"type": "text",
|
| 1404 |
+
"text": "in Figure 1, negatives such as iPhone 12 Pro or iPhone 13 Pro Max, which belong to the model attribute under the phone category, provide more challenging and informative supervision than random values such as L for T-shirt size.",
|
| 1405 |
+
"bbox": [
|
| 1406 |
+
112,
|
| 1407 |
+
285,
|
| 1408 |
+
487,
|
| 1409 |
+
365
|
| 1410 |
+
],
|
| 1411 |
+
"page_idx": 8
|
| 1412 |
+
},
|
| 1413 |
+
{
|
| 1414 |
+
"type": "text",
|
| 1415 |
+
"text": "Comparison of Dynamic and Static Thresholds. Figure 5a compares our dynamic thresholding approach (§3.4) with static thresholds of 0.6, 0.65, and 0.7, selected via validation. The dynamic threshold achieves the highest F1 (86.2%), outperforming the static baselines (75.5%, 80.2%, and 78.2%). Static thresholds exhibit the typical precision-recall trade-off: higher thresholds increase precision (65.1%→84.5%) but reduce recall (90.0%→72.8%). In contrast, the dynamic threshold balances precision (85.4%) and recall (87.1%) without manual tuning. This gain stems from a scalable design: instead of relying on fixed, hand-tuned cutoffs per category-attribute pair, our method learns null value embeddings whose similarity scores act as adaptive thresholds.",
|
| 1416 |
+
"bbox": [
|
| 1417 |
+
112,
|
| 1418 |
+
368,
|
| 1419 |
+
489,
|
| 1420 |
+
626
|
| 1421 |
+
],
|
| 1422 |
+
"page_idx": 8
|
| 1423 |
+
},
|
| 1424 |
+
{
|
| 1425 |
+
"type": "text",
|
| 1426 |
+
"text": "Performance Gains from Context-Rich Prompts. The influence of varying value prompt templates on the PAVI task is shown in Figure 5b. Using only the value as a prompt achieves an F1 score of $83.2\\%$ . Adding category information raises the F1 score to $83.9\\%$ , while incorporating attribute information further improves it to $85.4\\%$ . The most comprehensive template, combining category, attribute, and value information (i.e., A {category} with {attribute} being {value}), achieves the highest F1 score of $86.2\\%$ . These results are consistent with prior work (Radford et al., 2021), highlighting that context-rich prompts enhance the model's discriminative performance.",
|
| 1427 |
+
"bbox": [
|
| 1428 |
+
112,
|
| 1429 |
+
629,
|
| 1430 |
+
489,
|
| 1431 |
+
853
|
| 1432 |
+
],
|
| 1433 |
+
"page_idx": 8
|
| 1434 |
+
},
|
| 1435 |
+
{
|
| 1436 |
+
"type": "text",
|
| 1437 |
+
"text": "Zero-Shot Generalization Across Data Domains. Figure 5c presents zero-shot transfer results on unseen categories and values. The in-domain split achieves an F1 score of $88.7\\%$ , while cross",
|
| 1438 |
+
"bbox": [
|
| 1439 |
+
112,
|
| 1440 |
+
857,
|
| 1441 |
+
489,
|
| 1442 |
+
921
|
| 1443 |
+
],
|
| 1444 |
+
"page_idx": 8
|
| 1445 |
+
},
|
| 1446 |
+
{
|
| 1447 |
+
"type": "text",
|
| 1448 |
+
"text": "category and cross-value splits decline to $80.2\\%$ and $78.2\\%$ , respectively, reflecting the challenges of adapting to evolving attribute taxonomies in out-of-distribution domains. Despite this, TACLR maintains a strong overall F1 of $86.2\\%$ , demonstrating robust generalization. The model's generalization relies on the shared textual encoder's semantic understanding and the retrieval-based approach's capacity to leverage these embeddings for zero-shot matching. Such adaptability is critical for dynamic e-commerce platforms, where new products and attribute-value pairs continuously emerge, reducing the need for frequent retraining and lowering maintenance costs.",
|
| 1449 |
+
"bbox": [
|
| 1450 |
+
507,
|
| 1451 |
+
285,
|
| 1452 |
+
884,
|
| 1453 |
+
510
|
| 1454 |
+
],
|
| 1455 |
+
"page_idx": 8
|
| 1456 |
+
},
|
| 1457 |
+
{
|
| 1458 |
+
"type": "text",
|
| 1459 |
+
"text": "6 Conclusion",
|
| 1460 |
+
"text_level": 1,
|
| 1461 |
+
"bbox": [
|
| 1462 |
+
507,
|
| 1463 |
+
524,
|
| 1464 |
+
640,
|
| 1465 |
+
539
|
| 1466 |
+
],
|
| 1467 |
+
"page_idx": 8
|
| 1468 |
+
},
|
| 1469 |
+
{
|
| 1470 |
+
"type": "text",
|
| 1471 |
+
"text": "In this work, we present TACLR, a novel retrieval-based approach for PAVI. By formulating PAVI as an information retrieval problem, TACLR enables the inference of implicit values, generalization to OOD values, and the production of normalized outputs. Building on this framework, TACLR employs contrastive training with taxonomy-aware sampling and adaptive inference with dynamic thresholds to enhance retrieval performance and scalability.",
|
| 1472 |
+
"bbox": [
|
| 1473 |
+
507,
|
| 1474 |
+
550,
|
| 1475 |
+
884,
|
| 1476 |
+
695
|
| 1477 |
+
],
|
| 1478 |
+
"page_idx": 8
|
| 1479 |
+
},
|
| 1480 |
+
{
|
| 1481 |
+
"type": "text",
|
| 1482 |
+
"text": "Comprehensive experiments on proprietary and public datasets demonstrated TACLR's superiority over classification- and generation-based baselines. Notably, TACLR achieved an F1 score of $86.2\\%$ on the large-scale Xianyu-PAVI dataset. Our efficiency analysis further highlighted its advantage, achieving significantly faster inference speeds than generation-based methods. Beyond these experimental results, TACLR has been successfully deployed on the real-world e-commerce platform Xianyu, processing millions of product listings daily and seamlessly adapting to dynamic attribute taxonomies, making it a practical solution for large-scale industrial applications.",
|
| 1483 |
+
"bbox": [
|
| 1484 |
+
507,
|
| 1485 |
+
696,
|
| 1486 |
+
884,
|
| 1487 |
+
921
|
| 1488 |
+
],
|
| 1489 |
+
"page_idx": 8
|
| 1490 |
+
},
|
| 1491 |
+
{
|
| 1492 |
+
"type": "page_number",
|
| 1493 |
+
"text": "31534",
|
| 1494 |
+
"bbox": [
|
| 1495 |
+
475,
|
| 1496 |
+
927,
|
| 1497 |
+
524,
|
| 1498 |
+
940
|
| 1499 |
+
],
|
| 1500 |
+
"page_idx": 8
|
| 1501 |
+
},
|
| 1502 |
+
{
|
| 1503 |
+
"type": "text",
|
| 1504 |
+
"text": "7 Limitations",
|
| 1505 |
+
"text_level": 1,
|
| 1506 |
+
"bbox": [
|
| 1507 |
+
114,
|
| 1508 |
+
84,
|
| 1509 |
+
250,
|
| 1510 |
+
98
|
| 1511 |
+
],
|
| 1512 |
+
"page_idx": 9
|
| 1513 |
+
},
|
| 1514 |
+
{
|
| 1515 |
+
"type": "text",
|
| 1516 |
+
"text": "TACLR assumes access to a predefined attribute taxonomy, which serves as a foundation for accurate value identification. While this setup is realistic in many e-commerce platforms, where dedicated systems and teams maintain evolving taxonomies, it does require ongoing manual updates to incorporate new categories, attributes, and values. Automating product attribute mining remains an open area for future research (Ghani et al., 2006; Zhang et al., 2022; Xu et al., 2023).",
|
| 1517 |
+
"bbox": [
|
| 1518 |
+
112,
|
| 1519 |
+
109,
|
| 1520 |
+
489,
|
| 1521 |
+
268
|
| 1522 |
+
],
|
| 1523 |
+
"page_idx": 9
|
| 1524 |
+
},
|
| 1525 |
+
{
|
| 1526 |
+
"type": "text",
|
| 1527 |
+
"text": "Another limitation is that TACLR currently operates on textual product profiles and does not incorporate multimodal information, such as images or videos. Multimodal inputs could provide complementary signals for attributes that are difficult to infer from text alone (e.g., color, material, or shape). Extending the method to support multimodal input could further improve its coverage and accuracy in practical applications.",
|
| 1528 |
+
"bbox": [
|
| 1529 |
+
112,
|
| 1530 |
+
269,
|
| 1531 |
+
489,
|
| 1532 |
+
413
|
| 1533 |
+
],
|
| 1534 |
+
"page_idx": 9
|
| 1535 |
+
},
|
| 1536 |
+
{
|
| 1537 |
+
"type": "text",
|
| 1538 |
+
"text": "A further limitation of TACLR, as a retrieval-based approach, is its difficulty in handling measurement attributes that require unit conversion or numerical reasoning. To address this, future work could explore hybrid methods that combine TACLR's retrieval strengths with generative techniques to improve performance in such cases.",
|
| 1539 |
+
"bbox": [
|
| 1540 |
+
112,
|
| 1541 |
+
414,
|
| 1542 |
+
489,
|
| 1543 |
+
526
|
| 1544 |
+
],
|
| 1545 |
+
"page_idx": 9
|
| 1546 |
+
},
|
| 1547 |
+
{
|
| 1548 |
+
"type": "text",
|
| 1549 |
+
"text": "References",
|
| 1550 |
+
"text_level": 1,
|
| 1551 |
+
"bbox": [
|
| 1552 |
+
114,
|
| 1553 |
+
552,
|
| 1554 |
+
213,
|
| 1555 |
+
568
|
| 1556 |
+
],
|
| 1557 |
+
"page_idx": 9
|
| 1558 |
+
},
|
| 1559 |
+
{
|
| 1560 |
+
"type": "list",
|
| 1561 |
+
"sub_type": "ref_text",
|
| 1562 |
+
"list_items": [
|
| 1563 |
+
"Ansel Blume, Nasser Zalmout, Heng Ji, and Xian Li. 2023. Generative models for product attribute extraction. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing: Industry Track, pages 575-585, Singapore. Association for Computational Linguistics.",
|
| 1564 |
+
"Alexander Brinkmann, Nick Baumann, and Christian Bizer. 2024. Using llms for the extraction and normalization of product attribute values. In European Conference on Advances in Databases and Information Systems, pages 217-230. Springer.",
|
| 1565 |
+
"Kang Chen, Qing Heng Zhang, Chengbao Lian, Yixin Ji, Xuwei Liu, Shuguang Han, Guoqiang Wu, Fei Huang, and Jufeng Chen. 2024. IPL: Leveraging multimodal large language models for intelligent product listing. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: Industry Track, pages 697-711, Miami, Florida, US. Association for Computational Linguistics.",
|
| 1566 |
+
"Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. 2020. A simple framework for contrastive learning of visual representations. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings"
|
| 1567 |
+
],
|
| 1568 |
+
"bbox": [
|
| 1569 |
+
115,
|
| 1570 |
+
576,
|
| 1571 |
+
489,
|
| 1572 |
+
920
|
| 1573 |
+
],
|
| 1574 |
+
"page_idx": 9
|
| 1575 |
+
},
|
| 1576 |
+
{
|
| 1577 |
+
"type": "list",
|
| 1578 |
+
"sub_type": "ref_text",
|
| 1579 |
+
"list_items": [
|
| 1580 |
+
"of Machine Learning Research, pages 1597-1607. \nPMLR.",
|
| 1581 |
+
"Wei-Te Chen, Keiji Shinzato, Naoki Yoshinaga, and Yandi Xia. 2023. Does named entity recognition truly not scale up to real-world product attribute extraction? In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing: Industry Track, pages 152-159, Singapore. Association for Computational Linguistics.",
|
| 1582 |
+
"Wei-Te Chen, Yandi Xia, and Keiji Shinzato. 2022. Extreme multi-label classification with label masking for product attribute value extraction. In Proceedings of the Fifth Workshop on e-Commerce and NLP (EC-NLP 5), pages 134–140, Dublin, Ireland. Association for Computational Linguistics.",
|
| 1583 |
+
"Yiming Cui, Wanxiang Che, Ting Liu, Bing Qin, Shijin Wang, and Guoping Hu. 2020. Revisiting pre-trained models for Chinese natural language processing. In *Findings of the Association for Computational Linguistics: EMNLP* 2020, pages 657-668, Online. Association for Computational Linguistics.",
|
| 1584 |
+
"Yifan Ding, Yan Liang, Nasser Zalmout, Xian Li, Christan Grant, and Tim Weninger. 2022. Ask-and-verify: Span candidate generation and verification for attribute value extraction. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing: Industry Track, pages 110–110, Abu Dhabi, UAE. Association for Computational Linguistics.",
|
| 1585 |
+
"Shen Gao, Zhaochun Ren, Yihong Zhao, Dongyan Zhao, Dawei Yin, and Rui Yan. 2019. Product-aware answer generation in e-commerce question-answering. In Proceedings of the Twelfth ACM International Conference on Web Search and Data Mining, WSDM '19, page 429-437, New York, NY, USA. Association for Computing Machinery.",
|
| 1586 |
+
"Rayid Ghani, Katharina Probst, Yan Liu, Marko Krema, and Andrew Fano. 2006. Text mining for product attribute extraction. SIGKDD Explor. Newsl., 8(1):41-48.",
|
| 1587 |
+
"Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. 2020. Momentum contrast for unsupervised visual representation learning. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 9726-9735.",
|
| 1588 |
+
"Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations.",
|
| 1589 |
+
"Junshi Huang, Si Liu, Junliang Xing, Tao Mei, and Shuicheng Yan. 2014. *Circle & search: Attribute-aware shoe retrieval*. ACM Transactions on Multimedia Computing, Communications, and Applications, 11(1)."
|
| 1590 |
+
],
|
| 1591 |
+
"bbox": [
|
| 1592 |
+
510,
|
| 1593 |
+
85,
|
| 1594 |
+
884,
|
| 1595 |
+
920
|
| 1596 |
+
],
|
| 1597 |
+
"page_idx": 9
|
| 1598 |
+
},
|
| 1599 |
+
{
|
| 1600 |
+
"type": "page_number",
|
| 1601 |
+
"text": "31535",
|
| 1602 |
+
"bbox": [
|
| 1603 |
+
475,
|
| 1604 |
+
927,
|
| 1605 |
+
524,
|
| 1606 |
+
940
|
| 1607 |
+
],
|
| 1608 |
+
"page_idx": 9
|
| 1609 |
+
},
|
| 1610 |
+
{
|
| 1611 |
+
"type": "list",
|
| 1612 |
+
"sub_type": "ref_text",
|
| 1613 |
+
"list_items": [
|
| 1614 |
+
"Lei Huang, Weijiang Yu, Weitao Ma, Weihong Zhong, Zhangyin Feng, Haotian Wang, Qianglong Chen, Weihua Peng, Xiaocheng Feng, Bing Qin, and Ting Liu. 2024. A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions. ACM Trans. Inf. Syst. Just Accepted.",
|
| 1615 |
+
"Giannis Karamanolakis, Jun Ma, and Xin Luna Dong. 2020. TXtract: Taxonomy-aware knowledge extraction for thousands of product categories. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 8489-8502, Online. Association for Computational Linguistics.",
|
| 1616 |
+
"Anant Khandelwal, Happy Mittal, Shreyas Kulkarni, and Deepak Gupta. 2023. Large scale generative multimodal attribute extraction for E-commerce attributes. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 5: Industry Track), pages 305-312, Toronto, Canada. Association for Computational Linguistics.",
|
| 1617 |
+
"Ashish Kulkarni, Kartik Mehta, Shweta Garg, Vidit Bansal, Nikhil Rasiwasia, and Srinivasan Sengamedu. 2019. Productqna: Answering user questions on e-commerce product pages. In Companion Proceedings of The 2019 World Wide Web Conference, WWW '19, page 354-360, New York, NY, USA. Association for Computing Machinery.",
|
| 1618 |
+
"Yanzeng Li, Bingcong Xue, Ruoyu Zhang, and Lei Zou. 2023. AtTGen: Attribute tree generation for real-world attribute joint extraction. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2139-2152, Toronto, Canada. Association for Computational Linguistics.",
|
| 1619 |
+
"Rongmei Lin, Xiang He, Jie Feng, Nasser Zalmout, Yan Liang, Li Xiong, and Xin Luna Dong. 2021. Pam: Understanding product images in cross product category attribute extraction. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, KDD '21, page 3262-3270, New York, NY, USA. Association for Computing Machinery.",
|
| 1620 |
+
"Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. ArXiv, abs/1907.11692.",
|
| 1621 |
+
"Meta Llama Team. 2024. The llama 3 herd of models. Preprint, arXiv:2407.21783.",
|
| 1622 |
+
"Alessandro Magnani, Feng Liu, Min Xie, and Somnath Banerjee. 2019. Neural product retrieval at Walmart.com. In Companion Proceedings of The 2019 World Wide Web Conference, WWW '19, page 367-372, New York, NY, USA. Association for Computing Machinery.",
|
| 1623 |
+
"Athanasios N. Nikolakopoulos, Swati Kaul, Siva Karthik Gade, Bella Dubrov, Umit Batur, and Suleiman Ali Khan. 2023. Sage: Structured"
|
| 1624 |
+
],
|
| 1625 |
+
"bbox": [
|
| 1626 |
+
115,
|
| 1627 |
+
85,
|
| 1628 |
+
489,
|
| 1629 |
+
919
|
| 1630 |
+
],
|
| 1631 |
+
"page_idx": 10
|
| 1632 |
+
},
|
| 1633 |
+
{
|
| 1634 |
+
"type": "list",
|
| 1635 |
+
"sub_type": "ref_text",
|
| 1636 |
+
"list_items": [
|
| 1637 |
+
"attribute value generation for billion-scale product catalogs. Preprint, arXiv:2309.05920.",
|
| 1638 |
+
"Duangmanee Putthividhya and Junling Hu. 2011. Bootstrapped named entity recognition for product attribute extraction. In Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing, pages 1557-1567, Edinburgh, Scotland, UK. Association for Computational Linguistics.",
|
| 1639 |
+
"Alibaba Qwen Team. 2024. Qwen2 technical report. Preprint, arXiv:2407.10671.",
|
| 1640 |
+
"Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. 2021. Learning transferable visual models from natural language supervision. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 8748-8763. PMLR.",
|
| 1641 |
+
"Kalyani Roy, Pawan Goyal, and Manish Pandey. 2021. Attribute value generation from product title using language models. In Proceedings of the 4th Workshop on e-Commerce and NLP, pages 13-17, Online. Association for Computational Linguistics.",
|
| 1642 |
+
"Kassem Sabeh, Mouna Kacimi, Johann Gamper, Robert Litschko, and Barbara Plank. 2024a. Exploring large language models for product attribute value identification. Preprint, arXiv:2409.12695.",
|
| 1643 |
+
"Kassem Sabeh, Robert Litschko, Mouna Kacimi, Barbara Plank, and Johann Gamper. 2024b. An empirical comparison of generative approaches for product attribute-value identification. Preprint, arXiv:2407.01137.",
|
| 1644 |
+
"Keiji Shinzato, Naoki Yoshinaga, Yandi Xia, and Wei-Te Chen. 2022. Simple and effective knowledge-driven query expansion for QA-based product attribute extraction. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 227-234, Dublin, Ireland. Association for Computational Linguistics.",
|
| 1645 |
+
"Keiji Shinzato, Naoki Yoshinaga, Yandi Xia, and Wei-Te Chen. 2023. A unified generative approach to product attribute-value identification. In *Findings of the Association for Computational Linguistics: ACL* 2023, pages 6599–6612, Toronto, Canada. Association for Computational Linguistics.",
|
| 1646 |
+
"Changfeng Sun, Han Liu, Meng Liu, Zhaochun Ren, Tian Gan, and Liqiang Nie. 2020. Lara: Attribute-to-feature adversarial learning for new-item recommendation. In Proceedings of the 13th International Conference on Web Search and Data Mining, WSDM '20, page 582-590, New York, NY, USA. Association for Computing Machinery.",
|
| 1647 |
+
"Quoc-Tuan Truong, Tong Zhao, Changhe Yuan, Jin Li, Jim Chan, Soo-Min Pantel, and Hady W. Lauw. 2022."
|
| 1648 |
+
],
|
| 1649 |
+
"bbox": [
|
| 1650 |
+
510,
|
| 1651 |
+
85,
|
| 1652 |
+
882,
|
| 1653 |
+
919
|
| 1654 |
+
],
|
| 1655 |
+
"page_idx": 10
|
| 1656 |
+
},
|
| 1657 |
+
{
|
| 1658 |
+
"type": "page_number",
|
| 1659 |
+
"text": "31536",
|
| 1660 |
+
"bbox": [
|
| 1661 |
+
475,
|
| 1662 |
+
928,
|
| 1663 |
+
524,
|
| 1664 |
+
940
|
| 1665 |
+
],
|
| 1666 |
+
"page_idx": 10
|
| 1667 |
+
},
|
| 1668 |
+
{
|
| 1669 |
+
"type": "list",
|
| 1670 |
+
"sub_type": "ref_text",
|
| 1671 |
+
"list_items": [
|
| 1672 |
+
"Ampsum: Adaptive multiple-product summarization towards improving recommendation captions. In Proceedings of the ACM Web Conference 2022, WWW '22, page 2978-2988, New York, NY, USA. Association for Computing Machinery.",
|
| 1673 |
+
"Qifan Wang, Li Yang, Bhargav Kanagal, Sumit Sanghai, D. Sivakumar, Bin Shu, Zac Yu, and Jon Elsas. 2020. Learning to extract attribute value from product via question answering: A multi-task approach. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD '20, page 47-55, New York, NY, USA. Association for Computing Machinery.",
|
| 1674 |
+
"Qifan Wang, Li Yang, Jingang Wang, Jitin Krishnan, Bo Dai, Sinong Wang, Zenglin Xu, Madian Khabsa, and Hao Ma. 2022. SMARTAVE: Structured multimodal transformer for product attribute value extraction. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 263-276, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.",
|
| 1675 |
+
"Shitao Xiao, Zheng Liu, Peitian Zhang, and Niklas Muennighoff. 2023. C-pack: Packaged resources to advance general chinese embedding. Preprint, arXiv:2309.07597.",
|
| 1676 |
+
"Huimin Xu, Wenting Wang, Xin Mao, Xinyu Jiang, and Man Lan. 2019. Scaling up open tagging from tens to thousands: Comprehension empowered attribute value extraction from product title. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 5214-5223, Florence, Italy. Association for Computational Linguistics.",
|
| 1677 |
+
"Liyan Xu, Chenwei Zhang, Xian Li, Jingbo Shang, and Jinho D. Choi. 2023. Towards open-world product attribute mining: A lightly-supervised approach. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12223-12239, Toronto, Canada. Association for Computational Linguistics.",
|
| 1678 |
+
"Jun Yan, Nasser Zalmout, Yan Liang, Christian Grant, Xiang Ren, and Xin Luna Dong. 2021. AdaTag: Multi-attribute value extraction from product profiles with adaptive decoding. 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 4694–4705, Online. Association for Computational Linguistics.",
|
| 1679 |
+
"Li Yang, Qifan Wang, Jingang Wang, Xiaojun Quan, Fuli Feng, Yu Chen, Madian Khabsa, Sinong Wang, Zenglin Xu, and Dongfang Liu. 2023. MixPAVE: Mix-prompt tuning for few-shot product attribute value extraction. In Findings of the Association for Computational Linguistics: ACL 2023, pages 9978-9991, Toronto, Canada. Association for Computational Linguistics.",
|
| 1680 |
+
"Li Yang, Qifan Wang, Zac Yu, Anand Kulkarni, Sumit Sanghai, Bin Shu, Jon Elsas, and Bhargav Kanagal."
|
| 1681 |
+
],
|
| 1682 |
+
"bbox": [
|
| 1683 |
+
115,
|
| 1684 |
+
85,
|
| 1685 |
+
489,
|
| 1686 |
+
920
|
| 1687 |
+
],
|
| 1688 |
+
"page_idx": 11
|
| 1689 |
+
},
|
| 1690 |
+
{
|
| 1691 |
+
"type": "list",
|
| 1692 |
+
"sub_type": "ref_text",
|
| 1693 |
+
"list_items": [
|
| 1694 |
+
"2022. Mave: A product dataset for multi-source attribute value extraction. In Proceedings of the Fifteenth ACM International Conference on Web Search and Data Mining, WSDM '22, page 1256-1265, New York, NY, USA. Association for Computing Machinery.",
|
| 1695 |
+
"Danqing Zhang, Zheng Li, Tianyu Cao, Chen Luo, Tony Wu, Hanqing Lu, Yiwei Song, Bing Yin, Tuo Zhao, and Qiang Yang. 2021. Queaco: Borrowing treasures from weakly-labeled behavior data for query attribute value extraction. In Proceedings of the 30th ACM International Conference on Information & Knowledge Management, CIKM '21, page 4362-4372, New York, NY, USA. Association for Computing Machinery.",
|
| 1696 |
+
"Xinyang Zhang, Chenwei Zhang, Xian Li, Xin Luna Dong, Jingbo Shang, Christos Faloutsos, and Jiawei Han. 2022. Oa-min: Open-world attribute mining for e-commerce products with weak supervision. In Proceedings of the ACM Web Conference 2022, WWW '22, page 3153-3161, New York, NY, USA. Association for Computing Machinery.",
|
| 1697 |
+
"Guineng Zheng, Subhabrata Mukherjee, Xin Luna Dong, and Feifei Li. 2018. Opentag: Open attribute value extraction from product profiles. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD '18, page 1049-1058, New York, NY, USA. Association for Computing Machinery.",
|
| 1698 |
+
"Tiangang Zhu, Yue Wang, Haoran Li, Youzheng Wu, Xiaodong He, and Bowen Zhou. 2020. Multimodal joint attribute prediction and value extraction for E-commerce product. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 2129-2139, Online. Association for Computational Linguistics.",
|
| 1699 |
+
"Henry Zou, Gavin Yu, Ziwei Fan, Dan Bu, Han Liu, Peng Dai, Dongmei Jia, and Cornelia Caragea. 2024. EIVEN: Efficient implicit attribute value extraction using multimodal LLM. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 6: Industry Track), pages 453-463, Mexico City, Mexico. Association for Computational Linguistics."
|
| 1700 |
+
],
|
| 1701 |
+
"bbox": [
|
| 1702 |
+
510,
|
| 1703 |
+
85,
|
| 1704 |
+
884,
|
| 1705 |
+
722
|
| 1706 |
+
],
|
| 1707 |
+
"page_idx": 11
|
| 1708 |
+
},
|
| 1709 |
+
{
|
| 1710 |
+
"type": "text",
|
| 1711 |
+
"text": "A Implementation Details",
|
| 1712 |
+
"text_level": 1,
|
| 1713 |
+
"bbox": [
|
| 1714 |
+
510,
|
| 1715 |
+
734,
|
| 1716 |
+
749,
|
| 1717 |
+
751
|
| 1718 |
+
],
|
| 1719 |
+
"page_idx": 11
|
| 1720 |
+
},
|
| 1721 |
+
{
|
| 1722 |
+
"type": "text",
|
| 1723 |
+
"text": "For both the BERT-CLS baseline and our TACLR method, we utilize pre-trained RoBERTa-base (Liu et al., 2019; Cui et al., 2020) as the backbone. For TACLR, we augment the model with a linear projection head to map the embedding dimension to 256. For each product-attribute pair, we sample up to 128 values for the contrastive learning setup, including a null value, an optional positive value (if present for the attribute), and negative values sampled from the value set with the same category and",
|
| 1724 |
+
"bbox": [
|
| 1725 |
+
510,
|
| 1726 |
+
760,
|
| 1727 |
+
884,
|
| 1728 |
+
920
|
| 1729 |
+
],
|
| 1730 |
+
"page_idx": 11
|
| 1731 |
+
},
|
| 1732 |
+
{
|
| 1733 |
+
"type": "page_number",
|
| 1734 |
+
"text": "31537",
|
| 1735 |
+
"bbox": [
|
| 1736 |
+
475,
|
| 1737 |
+
928,
|
| 1738 |
+
524,
|
| 1739 |
+
940
|
| 1740 |
+
],
|
| 1741 |
+
"page_idx": 11
|
| 1742 |
+
},
|
| 1743 |
+
{
|
| 1744 |
+
"type": "text",
|
| 1745 |
+
"text": "attribute. In the case of the null value, we replace the value slot in the prompt template with null (e.g., A phone with capacity being null.).",
|
| 1746 |
+
"bbox": [
|
| 1747 |
+
112,
|
| 1748 |
+
84,
|
| 1749 |
+
485,
|
| 1750 |
+
131
|
| 1751 |
+
],
|
| 1752 |
+
"page_idx": 12
|
| 1753 |
+
},
|
| 1754 |
+
{
|
| 1755 |
+
"type": "text",
|
| 1756 |
+
"text": "The temperature parameter is fixed at 0.05. This choice is motivated by both prior research (e.g., SimCLR (Chen et al., 2020) and MoCo (He et al., 2020)) and empirical tuning on our validation set. The encoder is fine-tuned using the AdamW optimizer, with a batch size of 32, a learning rate of $2 \\times 10^{-5}$ , and a maximum of 5 epochs.",
|
| 1757 |
+
"bbox": [
|
| 1758 |
+
112,
|
| 1759 |
+
133,
|
| 1760 |
+
487,
|
| 1761 |
+
243
|
| 1762 |
+
],
|
| 1763 |
+
"page_idx": 12
|
| 1764 |
+
},
|
| 1765 |
+
{
|
| 1766 |
+
"type": "text",
|
| 1767 |
+
"text": "For LLM fine-tuning, we employ LoRA (Hu et al., 2022) for efficient adaptation. The core hyperparameters are as follows: 3 training epochs, batch size of 128, AdamW optimizer, maximum learning rate of $5 \\times 10^{-5}$ , $1\\%$ warmup steps, cosine learning rate scheduler, LoRA rank of 8, LoRA alpha of 16, and LoRA dropout rate of 0.1.",
|
| 1768 |
+
"bbox": [
|
| 1769 |
+
112,
|
| 1770 |
+
244,
|
| 1771 |
+
487,
|
| 1772 |
+
356
|
| 1773 |
+
],
|
| 1774 |
+
"page_idx": 12
|
| 1775 |
+
},
|
| 1776 |
+
{
|
| 1777 |
+
"type": "text",
|
| 1778 |
+
"text": "All hyperparameters and model checkpoints are selected to maximize the F1 score on the validation set. For further details, please refer to our codebase: https://github.com/SuYindu/TACLR.",
|
| 1779 |
+
"bbox": [
|
| 1780 |
+
112,
|
| 1781 |
+
359,
|
| 1782 |
+
487,
|
| 1783 |
+
420
|
| 1784 |
+
],
|
| 1785 |
+
"page_idx": 12
|
| 1786 |
+
},
|
| 1787 |
+
{
|
| 1788 |
+
"type": "text",
|
| 1789 |
+
"text": "B Deployment",
|
| 1790 |
+
"text_level": 1,
|
| 1791 |
+
"bbox": [
|
| 1792 |
+
112,
|
| 1793 |
+
432,
|
| 1794 |
+
257,
|
| 1795 |
+
450
|
| 1796 |
+
],
|
| 1797 |
+
"page_idx": 12
|
| 1798 |
+
},
|
| 1799 |
+
{
|
| 1800 |
+
"type": "text",
|
| 1801 |
+
"text": "The proposed TACLR has been successfully integrated into key functionalities of the e-commerce platform Xianyu, including product listing, search, recommendation, and price estimation. The system is designed to be highly scalable, efficiently processing millions of products daily.",
|
| 1802 |
+
"bbox": [
|
| 1803 |
+
112,
|
| 1804 |
+
458,
|
| 1805 |
+
487,
|
| 1806 |
+
554
|
| 1807 |
+
],
|
| 1808 |
+
"page_idx": 12
|
| 1809 |
+
},
|
| 1810 |
+
{
|
| 1811 |
+
"type": "text",
|
| 1812 |
+
"text": "During the product listing process, TACLR automatically identifies attribute-value pairs from user-provided titles and descriptions. This automation significantly reduces manual effort and errors, while enhancing the quality of structured product information.",
|
| 1813 |
+
"bbox": [
|
| 1814 |
+
112,
|
| 1815 |
+
556,
|
| 1816 |
+
487,
|
| 1817 |
+
649
|
| 1818 |
+
],
|
| 1819 |
+
"page_idx": 12
|
| 1820 |
+
},
|
| 1821 |
+
{
|
| 1822 |
+
"type": "text",
|
| 1823 |
+
"text": "For product search, the improved structured information directly supports more effective lexical retrieval and enables structured search, where items are filtered based on attributes. This leads to more accurate matching with user queries. In addition, the enriched product features enhance the quality of personalized recommendations.",
|
| 1824 |
+
"bbox": [
|
| 1825 |
+
112,
|
| 1826 |
+
653,
|
| 1827 |
+
487,
|
| 1828 |
+
763
|
| 1829 |
+
],
|
| 1830 |
+
"page_idx": 12
|
| 1831 |
+
},
|
| 1832 |
+
{
|
| 1833 |
+
"type": "text",
|
| 1834 |
+
"text": "In the context of price estimation, TACLR identifies key attributes that influence pricing, enabling more accurate price predictions. This functionality provides sellers and buyers with reliable, market-aligned information in the context of second-hand transactions.",
|
| 1835 |
+
"bbox": [
|
| 1836 |
+
112,
|
| 1837 |
+
766,
|
| 1838 |
+
487,
|
| 1839 |
+
859
|
| 1840 |
+
],
|
| 1841 |
+
"page_idx": 12
|
| 1842 |
+
},
|
| 1843 |
+
{
|
| 1844 |
+
"type": "page_number",
|
| 1845 |
+
"text": "31538",
|
| 1846 |
+
"bbox": [
|
| 1847 |
+
475,
|
| 1848 |
+
927,
|
| 1849 |
+
524,
|
| 1850 |
+
940
|
| 1851 |
+
],
|
| 1852 |
+
"page_idx": 12
|
| 1853 |
+
}
|
| 1854 |
+
]
|
2025/TACLR_ A Scalable and Efficient Retrieval-based Method for Industrial Product Attribute Value Identification/939f3cd5-94e9-46cf-8def-cb09a1fd834c_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TACLR_ A Scalable and Efficient Retrieval-based Method for Industrial Product Attribute Value Identification/939f3cd5-94e9-46cf-8def-cb09a1fd834c_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a9870e4c422db5ca147dfdef7cf9030ebb1c7f0a69f5fad2c86f1cdb43510579
|
| 3 |
+
size 1252476
|
2025/TACLR_ A Scalable and Efficient Retrieval-based Method for Industrial Product Attribute Value Identification/full.md
ADDED
|
@@ -0,0 +1,341 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TACLR: A Scalable and Efficient Retrieval-Based Method for Industrial Product Attribute Value Identification
|
| 2 |
+
|
| 3 |
+
Yindu Su $^{1,2}$ , Huike Zou $^{1}$ , Lin Sun $^{3}$ , Ting Zhang $^{2}$ , Haiyang Yang $^{1}$ , Liu Chen $^{1}$ , David Lo $^{2}$ , Qingheng Zhang $^{1}$ , Shuguang Han $^{1}$ , Jufeng Chen $^{1}$ ,
|
| 4 |
+
|
| 5 |
+
$^{1}$ Xianyu of Alibaba $^{2}$ Singapore Management University $^{3}$ Hangzhou City University
|
| 6 |
+
|
| 7 |
+
yindusu@foxmail.com, tingzhang.2019@phdcs.smu.edu.sg
|
| 8 |
+
|
| 9 |
+
qingheng.zqh@alibaba-inc.com,shuguang.sh@alibaba-inc.com
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
Product Attribute Value Identification (PAVI) involves identifying attribute values from product profiles, a key task for improving product search, recommendation, and business analytics on e-commerce platforms. However, existing PAVI methods face critical challenges, such as inferring implicit values, handling out-of-distribution (OOD) values, and producing normalized outputs. To address these limitations, we introduce Taxonomy-Aware Contrastive Learning Retrieval (TACLR), the first retrieval-based method for PAVI. TACLR formulates PAVI as an information retrieval task by encoding product profiles and candidate values into embeddings and retrieving values based on their similarity. It leverages contrastive training with taxonomy-aware hard negative sampling and employs adaptive inference with dynamic thresholds. TACLR offers three key advantages: (1) it effectively handles implicit and OOD values while producing normalized outputs; (2) it scales to thousands of categories, tens of thousands of attributes, and millions of values; and (3) it supports efficient inference for high-load industrial deployment. Extensive experiments on proprietary and public datasets validate the effectiveness and efficiency of TACLR. Further, it has been successfully deployed on the real-world e-commerce platform Xianyu, processing millions of product listings daily with frequently updated, large-scale attribute taxonomies. We release the code to facilitate reproducibility and future research at https://github.com/SuYindu/TACLR.
|
| 14 |
+
|
| 15 |
+
# 1 Introduction
|
| 16 |
+
|
| 17 |
+
Product attribute values are key components that support the operation of e-commerce platforms. They provide essential structural information, aiding customers in making informed purchasing decisions and enabling product listing (Chen et al., 2024), recommendation (Truong et al., 2022; Sun et al., 2020), retrieval (Magnani et al., 2019; Huang
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: Illustration of the PAVE and PAVI tasks. Unlike PAVE, which extracts raw value spans from product profiles, PAVI requires outputs to be normalized and supports both the identification of implicit values and the assignment of null to unavailable attribute values.
|
| 21 |
+
|
| 22 |
+
et al., 2014), and question answering (Kulkarni et al., 2019; Gao et al., 2019).
|
| 23 |
+
|
| 24 |
+
However, seller-provided attribute values are often incomplete or even inaccurate—an issue that is particularly severe on second-hand e-commerce platforms such as $Xianyu^{1}$ . This undermines the effectiveness of downstream applications, making the automatic identification of product attribute values a fundamental requirement. Researchers have explored Product Attribute Value Extraction (PAVE), which involves extracting spans from product profiles using Named Entity Recognition (NER) (Zheng et al., 2018) or Question Answering (QA) (Wang et al., 2020) models. The upper part of Figure 1 illustrates an example of NER-based PAVE.
|
| 25 |
+
|
| 26 |
+
Although these approaches effectively extract value spans, the outputs remain raw text subsequences. Presenting attribute values in a standardized format is crucial for facilitating data aggrega
|
| 27 |
+
|
| 28 |
+
tion in business analytics and enhancing the user experience by providing clear and consistent information. To produce standardized values, a normalization step (Putthividhya and Hu, 2011; Zhang et al., 2021) is required to map these spans to predefined formats, as shown in the lower part of Figure 1. However, implicit values, such as Apple, cannot be directly extracted and must instead be inferred from context or prior knowledge.
|
| 29 |
+
|
| 30 |
+
Therefore, in this work, we focus on Product Attribute Value Identification (PAVI) (Shinzato et al., 2023), which aims to associate predefined attribute values from attribute taxonomy (illustrated in Figure 2) with products. The input for PAVI includes the product category and profile, where the profile includes textual data, such as the title and description, and may optionally incorporate visual information, such as images or videos. The output is a dictionary with predefined attributes as keys and their inferred values as corresponding entries. In addition, PAVI requires determining when attribute values are missing. For instance, as shown in Figure 1, the value for Version is unavailable and is therefore assigned an empty result or null value.
|
| 31 |
+
|
| 32 |
+
Beyond adapting PAVE approaches, researchers have investigated classification-based (Chen et al., 2022) and generation-based paradigms (Sabeh et al., 2024b) for PAVI. Classification-based methods treat each value as a class; while this approach is straightforward, it is fundamentally limited by the inability to identify out-of-distribution (OOD) values not present in the training data, making such methods impractical for the continuously evolving nature of e-commerce platforms. In contrast, generation-based methods reformulate PAVI as a sequence-to-sequence task. Although these methods can handle implicit and OOD values, they face significant challenges, such as generating uncontrollable outputs and incurring substantial computational costs in high-load scenarios due to their reliance on Large Language Models (LLMs). In summary, existing approaches face distinct challenges, including difficulties in identifying implicit values, generalizing to OOD values, producing normalized outputs, and ensuring scalability and efficiency for large-scale industrial applications.
|
| 33 |
+
|
| 34 |
+
To address these limitations, we propose a novel retrieval-based method, Taxonomy-Aware Contrastive Learning Retrieval (TACLR). Our approach formulates PAVI as an information retrieval task: the product item serves as the query, and the attribute taxonomy acts as the corpus, enabling
|
| 35 |
+
|
| 36 |
+

|
| 37 |
+
Figure 2: An illustration of a portion of the attribute taxonomy. Each category, such as Phone, is linked to multiple attributes, including Brand, Model, and Capacity, with standardized values enumerated for each attribute (e.g., Apple, Huawei, and Samsung for Brand).
|
| 38 |
+
|
| 39 |
+
efficient retrieval of relevant attribute values as matched documents. We use a shared encoder to generate embeddings for both the input product and candidate values from the attribute taxonomy. Our method adopts a contrastive learning framework inspired by CLIP (Radford et al., 2021). Rather than relying on in-batch negatives, we implement taxonomy-aware negative sampling, which selects hard negative values from the same category and attribute to generate a more challenging and precise contrastive signal. Additionally, learnable null values are explicitly incorporated as the ground truth for product-attribute pairs without associated values. During inference, we address the limitations of static thresholds by introducing dynamic thresholds derived from the relevance score of null values. This adaptive inference mechanism improves the model's ability to generalize across a large-scale attribute taxonomy.
|
| 40 |
+
|
| 41 |
+
Our contributions are threefold: (1) We propose a novel retrieval-based paradigm for PAVI, introducing a scalable and efficient framework capable of handling implicit values, generalizing to OOD values, and producing normalized outputs. (2) We incorporate contrastive training into TACLR, using a taxonomy-aware negative sampling strategy to improve representation discrimination, and introduce an adaptive inference mechanism that dynamically balances precision and recall in large-scale industrial applications. (3) We validate the effectiveness of TACLR through extensive experiments on proprietary and public datasets, and demonstrate its successful deployment in a real-world industrial environment, processing millions of product listings across thousands of categories and millions of attribute values.
|
| 42 |
+
|
| 43 |
+
# 2 Related Work
|
| 44 |
+
|
| 45 |
+
# 2.1 Product Attribute Value Extraction
|
| 46 |
+
|
| 47 |
+
PAVE as Named Entity Recognition. PAVE can be formulated as NER by identifying subsequences in product texts as entity spans and associating them with attributes as entity types. Early methods, such as OpenTag (Zheng et al., 2018), trained individual models for each category-attribute pair. Subsequent efforts generalized this approach to support multiple attributes or categories. For instance, SUOpenTag (Xu et al., 2019) incorporated attribute embeddings into an attention layer to handle multiple attributes, while AdaTag (Yan et al., 2021) used attribute embeddings to parameterize the decoder. TXtract (Karamanolakis et al., 2020) introduced a category encoder and a category attention mechanism to tackle various categories effectively. Additionally, M-JAVE (Zhu et al., 2020) jointly modeled attribute prediction and value extraction tasks while also incorporating visual information. More recently, Chen et al. (2023) scaled BERTNER by expanding the number of entity types to support a broader range of attributes.
|
| 48 |
+
|
| 49 |
+
PAVE as Question Answering. The QA framework can also be adapted for PAVE by treating the product profile as context, attributes as questions, and value spans extracted from the context as answers. Wang et al. (2020) first introduced AVEQA for QA-based PAVE. Subsequent work extended this framework by incorporating multi-source information (Yang et al., 2022), multi-modal feature (Wang et al., 2022), and trainable prompts (Yang et al., 2023). Moreover, the question can be extended by appending candidate values as demonstrated by (Shinzato et al., 2022). Combining NER and QA paradigms, Ding et al. (2022) proposed a two-stage framework, which first identifies candidate values and then filters them.
|
| 50 |
+
|
| 51 |
+
While NER- and QA-based paradigms have proven effective for PAVE, they struggle to identify implicit attribute values. Additionally, both paradigms rely on post-extraction normalization to standardize values, using either lexical (Putthividhya and Hu, 2011) or semantic methods (Zhang et al., 2021). Furthermore, extraction-based models require token-level annotations (e.g., BIO tags) for training and evaluation. Producing such annotations is significantly more resource-intensive than generating the value-level annotations used by TACLR, further limiting the scalability of these extraction-based methods.
|
| 52 |
+
|
| 53 |
+
Table 1: Comparison of different paradigms for identifying implicit, OOD, and normalized values.
|
| 54 |
+
|
| 55 |
+
<table><tr><td>Paradigm</td><td>Implicit</td><td>OOD</td><td>Normalized</td></tr><tr><td>Extraction</td><td>X</td><td>✓</td><td>X</td></tr><tr><td>Classification</td><td>✓</td><td>X</td><td>✓</td></tr><tr><td>Generation</td><td>✓</td><td>✓</td><td>X</td></tr><tr><td>Retrieval</td><td>✓</td><td>✓</td><td>✓</td></tr></table>
|
| 56 |
+
|
| 57 |
+
# 2.2 Product Attribute Value Identification
|
| 58 |
+
|
| 59 |
+
Classification-Based PAVI. A straightforward approach is to frame PAVI as a multi-label classification problem over a finite set of values. Chen et al. (2022) trained a unified classification model that masks invalid labels based on the product category. However, a significant limitation of this classification-based paradigm is its inability to recognize OOD values not included in the training set. Consequently, its practicality is limited in dynamic e-commerce environments, where new categories and values frequently emerge.
|
| 60 |
+
|
| 61 |
+
Generation-Based PAVI. Recent advancements in LLM have spurred the exploration of generation-based PAVI methods (Sabeh et al., 2024b). Some methods (Roy et al., 2021; Nikolakopoulos et al., 2023; Blume et al., 2023) construct attribute-aware prompts to generate values for each attribute individually. In contrast, others generate values for multiple attributes simultaneously, either in a linearized sequence format (Shinzato et al., 2023) or as a hierarchical tree structure (Li et al., 2023). Multimodal information has also been integrated into LLMs to identify implicit attribute values from product images (Lin et al., 2021; Khandelwal et al., 2023). More recently, Brinkmann et al. (2024) explored the use of LLMs for both the extraction and normalization of attribute values. Additionally, Zou et al. (2024) introduced the learning-by-comparison technique to reduce model confusion, and Sabeh et al. (2024a) investigated Retrieval-Augmented Generation (RAG) technologies for PAVI.
|
| 62 |
+
|
| 63 |
+
Although generation-based methods can infer implicit and OOD attribute values from product profiles, they face several challenges in real-world scenarios. A key issue is the potential for the LLMs to produce uncontrollable or hallucinated outputs, a known limitation of LLMs (Huang et al., 2024). Additionally, these methods often rely on large, computationally intensive models to achieve strong performance, making them inefficient and costly for large-scale industrial deployment.
|
| 64 |
+
|
| 65 |
+

|
| 66 |
+
Figure 3: Overview of the training and inference process of TACLR, our retrieval-based method for the PAVI task. The left section illustrates contrastive training with taxonomy-aware negative sampling, while the right section demonstrates adaptive inference with pre-computed value embeddings.
|
| 67 |
+
|
| 68 |
+

|
| 69 |
+
|
| 70 |
+
# 3 Taxonomy-Aware Contrastive Learning Retrieval
|
| 71 |
+
|
| 72 |
+
This section defines the PAVI task with an attribute taxonomy (§3.1) and presents our retrieval-based paradigm for PAVI (§3.2). We then detail the use of contrastive training with taxonomy-aware negative sampling (§3.3) and an adaptive inference mechanism with dynamic thresholds (§3.4). Figure 3 provides an overview of our approach TACLR.
|
| 73 |
+
|
| 74 |
+
# 3.1 PAVI Task Definition
|
| 75 |
+
|
| 76 |
+
PAVI is grounded in an attribute taxonomy that encompasses numerous product categories. For each category $c$ , the taxonomy specifies a set of attributes $\mathcal{A}_c = \{a_1, a_2, \ldots\}$ relevant to products in that category. For each attribute $a \in \mathcal{A}_c$ , it provides a predefined set of standard values $\mathcal{V}_a = \{v_1, v_2, \ldots\}$ . Figure 2 illustrates this structure<sup>2</sup>.
|
| 77 |
+
|
| 78 |
+
For a given product item $i$ , with its title $t$ and description $d$ , the item is assigned to a category $c$ with associated attributes $\mathcal{A}_c$ . The objective of the PAVI task is to identify a relevant set of values $\mathcal{V}_a^+\subseteq \mathcal{V}_a$ for each attribute $a\in \mathcal{A}_c$ . The set $\mathcal{V}_a^+$ can take one of three forms: a singleton $(\{v\})$ , multiple values $(\{v_{1},v_{2},\ldots \})$ , or an empty set $(\varnothing)$ if no information about $a$ is available in the product profile. Notably, a standard value may not always appear verbatim as a text span in $t$ or $d$ ; it may instead be present in a paraphrased or synonymous form, which we refer to as an unnormalized value (e.g., the standard value iPhone 12 Pro Max expressed as iphone12pm in Figure 1). In other
|
| 79 |
+
|
| 80 |
+
cases, a value may not be explicitly mentioned in the product profile but can be inferred from the context; these are referred to as implicit values (e.g., Apple in Figure 1).
|
| 81 |
+
|
| 82 |
+
# 3.2 Retrieval-Based PAVI
|
| 83 |
+
|
| 84 |
+
In a standard information retrieval setting, given a query, the objective is to retrieve a list of relevant documents from a corpus. Similarly, for PAVI, we treat the input item as the query and the attribute taxonomy as the corpus, aiming to retrieve relevant attribute values as the output documents.
|
| 85 |
+
|
| 86 |
+
Encoding of items and values. We preprocess both item profiles and candidate values as textual inputs, utilizing a shared text encoder. For each item, we concatenate its title $(t)$ and description $(d)$ into a single input sentence formatted as: title: {title} description: {description}. Each candidate value is represented as a context-rich prompt, structured as: A {category} with {attribute} being {value}, e.g., A phone with brand being Apple. We explore the impact of various prompt templates in §5.3<sup>3</sup>.
|
| 87 |
+
|
| 88 |
+
Inference pipeline. During the deployment process, all value embeddings within the attribute taxonomy are pre-computed offline and indexed using the Faiss library4. During online inference, each item is encoded into an embedding, which is then compared against groups of indexed candidate value embeddings for various attributes. For each attribute $a\in \mathcal{A}_c$ , the top- $k$ most similar values are retrieved whose similarity scores exceed an adaptive threshold (3.4).
|
| 89 |
+
|
| 90 |
+
# 3.3 Contrastive Training
|
| 91 |
+
|
| 92 |
+
Inspired by CLIP (Radford et al., 2021), we employ contrastive learning to train the shared encoder. Rather than relying on in-batch negatives, we compare each positive value with hard negative values from the same category and attribute in the taxonomy, providing a more challenging and precise training signal.
|
| 93 |
+
|
| 94 |
+
Formally, the subset of values matched with the item is referred to as the ground truth value set, $\mathcal{V}_a^+ \subseteq \mathcal{V}_a$ . If no matched values exist for a given attribute, i.e., $\mathcal{V}_a^+ = \emptyset$ , we assign a specific null value $v_0^a$ for this attribute as the positive value, i.e. $v_a^+ = v_0^a$ . Otherwise, a positive value is randomly drawn from the ground truth value set, i.e. $v_a^+ \sim \mathcal{V}_a^+$ . For negative sampling, we select values as $\mathcal{V}_a^- = \{v_1^-, v_2^-, \ldots\} \subseteq \mathcal{V}_a - \mathcal{V}_a^+$ , ensuring a maximum of $K$ values. The contrastive loss is then computed as follows:
|
| 95 |
+
|
| 96 |
+
$$
|
| 97 |
+
\mathcal {L} _ {a} = - \log \left(\frac {\exp (\frac {s (i , v _ {a} ^ {+})}{\tau})}{\exp (\frac {s (i , v _ {a} ^ {+})}{\tau}) + \sum_ {v \in \mathcal {V} _ {a} ^ {-}} \exp (\frac {s (i , v)}{\tau})}\right)
|
| 98 |
+
$$
|
| 99 |
+
|
| 100 |
+
where $s(i,v) = \frac{I\cdot V}{\|I\|\|V\|}$ denotes the cosine similarity between the item embedding $I$ and the value embedding $V$ , and $\tau$ is the temperature hyperparameter. It is important to note that each item typically includes multiple attributes, all of which share the same item embedding $I$ while being individually compared against corresponding values. Therefore, the loss for item $i$ is the sum of losses over all attributes from $\mathcal{A}_c$ :
|
| 101 |
+
|
| 102 |
+
$$
|
| 103 |
+
\mathcal {L} _ {i} = \sum_ {a \in \mathcal {A} _ {c}} \mathcal {L} _ {a}
|
| 104 |
+
$$
|
| 105 |
+
|
| 106 |
+
An example logit matrix is depicted on the left side of Figure 3. Note that the item embedding $I_{1}$ contributes to the loss computations of $\mathcal{L}_1^1$ , $\mathcal{L}_1^2$ , and $\mathcal{L}_1^3$ , which correspond to the attributes $a_1, a_2$ , and $a_3$ within the same product category. We also pad the logit matrix with negative infinity for batched computation if fewer than $K$ values are available.
|
| 107 |
+
|
| 108 |
+
# 3.4 Adaptive Inference
|
| 109 |
+
|
| 110 |
+
During retrieval, relevance scores are assigned to every candidate values. To filter output values, a static threshold $T$ can be applied to these scores. However, in real-world e-commerce platforms with a vast number of category-attribute pairs, using a single threshold across all pairs is often suboptimal.
|
| 111 |
+
|
| 112 |
+
Moreover, defining a unique threshold for each pair is tedious or even impractical.
|
| 113 |
+
|
| 114 |
+
To address this, we introduce an adaptive inference method that uses dynamic thresholds to make cutoff decisions. As discussed in §3.3, we add an explicit null value $v_0^a$ for each category-attribute pair, with its embedding learned during training. In the inference phase, we compute the similarity $s(i,v_0^a)$ between the item and the null value, using it as a dynamic threshold $T_{a}^{\prime}$ to exclude candidate values for attribute $a$ that have lower scores:
|
| 115 |
+
|
| 116 |
+
$$
|
| 117 |
+
\mathcal {V} _ {a} ^ {\mathrm {p r e d}} = \left\{v \mid s (i, v) > T _ {a} ^ {\prime} \right\}
|
| 118 |
+
$$
|
| 119 |
+
|
| 120 |
+
Since most category-attribute pairs have exclusive values, meaning that each product can have at most one value for a given attribute, we focus on the top-1 predicted value in this work. The output can be further simplified as follows:
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
v _ {a} ^ {\text {p r e d}} = \left\{ \begin{array}{l l} \arg \max _ {v \in \mathcal {V} _ {a}} s (i, v) & \text {i f} \max _ {v \in \mathcal {V} _ {a}} s (i, v) > T _ {a} ^ {\prime} \\ n u l l & \text {o t h e r w i s e} \end{array} \right.
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
Equivalently, we can include the null value as an explicit candidate and retrieve the top-1 value as:
|
| 127 |
+
|
| 128 |
+
$$
|
| 129 |
+
v _ {a} ^ {\text {p r e d}} = \arg \max _ {v \in \mathcal {V} _ {a} \cup \{v _ {0} ^ {a} \}} s (i, v)
|
| 130 |
+
$$
|
| 131 |
+
|
| 132 |
+
In this case, selecting the $v_{0}^{a}$ corresponds to the scenario where none of the specific candidate values surpass the dynamic threshold.
|
| 133 |
+
|
| 134 |
+
The inference process is illustrated on the right side of Figure 3. In this example, the predictions for $a_3$ and $a_5$ are determined to be empty because the highest-scoring value for these attributes is the null value.
|
| 135 |
+
|
| 136 |
+
# 4 Experiment Settings
|
| 137 |
+
|
| 138 |
+
# 4.1 Datasets
|
| 139 |
+
|
| 140 |
+
To evaluate PAVI under the settings described in §3.1, we compare our proposed method against baselines on both proprietary and public datasets with normalized values<sup>5</sup>. Table 2 presents statistics of the attribute taxonomies and datasets.
|
| 141 |
+
|
| 142 |
+
Xianyu-PAVI. This dataset, derived from the e-commerce platform Xianyu, is constructed to evaluate the scalability and generalization of PAVI methods. The platform's attribute taxonomy comprises
|
| 143 |
+
|
| 144 |
+
Table 2: Statistics of the attribute taxonomies and dataset splits from Xianyu-PAVI and WDC-PAVE. "CA Pairs" refers to category-attribute pairs, "CAV Tuples" denotes category-attribute-value tuples, "PA Pairs" represents product-attribute pairs, and "Null Pairs" indicates product-attribute pairs with null values. "Excl." refers to the test split excluding measurement attributes.
|
| 145 |
+
(a) Statistics of the attribute taxonomies.
|
| 146 |
+
|
| 147 |
+
<table><tr><td>Statistic</td><td>Xianyu</td><td>WDC</td></tr><tr><td># Categories</td><td>8,803</td><td>5</td></tr><tr><td># Attributes</td><td>3,326</td><td>24</td></tr><tr><td># CA Pairs</td><td>26,645</td><td>37</td></tr><tr><td># CAV Tuples</td><td>6,302,220</td><td>2,297</td></tr></table>
|
| 148 |
+
|
| 149 |
+
(b) Statistics of the datasets.
|
| 150 |
+
|
| 151 |
+
<table><tr><td rowspan="2">Statistic</td><td colspan="3">Xianyu-PAVI</td><td colspan="3">WDC-PAVE</td></tr><tr><td>Train</td><td>Valid</td><td>Test</td><td>Train</td><td>Test</td><td>Excl.</td></tr><tr><td># Products</td><td>809,528</td><td>81,699</td><td>85,024</td><td>1,066</td><td>354</td><td>354</td></tr><tr><td># PA Pairs</td><td>3,584,462</td><td>358,582</td><td>458,954</td><td>8,832</td><td>2,937</td><td>2,285</td></tr><tr><td># Null Pairs</td><td>2,345,577</td><td>228,534</td><td>272,285</td><td>3,973</td><td>1,330</td><td>916</td></tr></table>
|
| 152 |
+
|
| 153 |
+
8,803 product categories, 26,645 category-attribute pairs, and 6.3 million category-attribute-value tuples. On average, each category is associated with 3 attributes, each attribute has 237 possible values, and there are 716 candidate values per category.
|
| 154 |
+
|
| 155 |
+
For our experiments, we randomly sampled 1 million product items for training, 10,000 for validation, and 10,000 for testing. Each item is annotated with a category label and multiple attribute-value pair labels. Category labels were generated through a multi-step process involving automated classification, seller feedback, and annotator review, during which misclassified samples were discarded. Attribute-value pair labels were obtained through a multi-stage manual annotation process: a pool of annotators conducted the initial labeling, followed by quality checks and a second round of review, with items reassigned to different annotators after shuffling.
|
| 156 |
+
|
| 157 |
+
WDC-PAVE (Brinkmann et al., 2024). This dataset contains 1,066 training and 354 test product items across 5 categories, with 8,832 and 2,937 product attribute pairs (3,973 and 1,330 nulls), respectively. On average, each category is associated with 7.4 attributes, each attribute has 62 values, and there are 459 attribute-value pairs per category. We conduct two evaluations: the first on the original test set, and the second on a test split that excludes measurement attributes, which require complex reasoning for unit conversion.
|
| 158 |
+
|
| 159 |
+
# 4.2 Metrics
|
| 160 |
+
|
| 161 |
+
Since most attributes in the taxonomy are exclusive, i.e., each product can have at most one value per attribute, we evaluate PAVI methods using microaveraged precision@1, recall@1, and F1 score@1.
|
| 162 |
+
|
| 163 |
+
For each attribute, the ground truth is a set of values $\mathcal{V}$ from the taxonomy. If the ground truth set is empty $(\varnothing)$ , a correct prediction (True Negative, TN) occurs when the model also predicts an empty
|
| 164 |
+
|
| 165 |
+
Table 3: Confusion matrix comparing ground truth value set with predicted top-1 value.
|
| 166 |
+
|
| 167 |
+
<table><tr><td>Label</td><td>Prediction</td><td>Outcome</td></tr><tr><td>∅</td><td>∅</td><td>True Negative (TN)</td></tr><tr><td>∅</td><td>v</td><td>False Positive (FP)</td></tr><tr><td>V</td><td>v ∈ V</td><td>True Positive (TP)</td></tr><tr><td>V</td><td>∅</td><td>False Negative (FN)</td></tr><tr><td>V</td><td>v'∉ V</td><td>FP & FN</td></tr></table>
|
| 168 |
+
|
| 169 |
+
set; otherwise, it is a False Positive (FP). When the ground truth set is not empty, the model's top-1 output is a True Positive (TP) if it matches any ground truth value. Predicting an empty set in this case results in a False Negative (FN), while mismatched predictions are both False Positives (FP) and False Negatives (FN), as it simultaneously introduces an error and misses the correct value. Table 3 summarizes these outcomes<sup>6</sup>. Final precision, recall, and F1 scores are computed by aggregating TP, FP, and FN counts across the dataset, providing a comprehensive performance evaluation.
|
| 170 |
+
|
| 171 |
+
# 4.3 Baselines
|
| 172 |
+
|
| 173 |
+
We evaluate our retrieval-based method, TACLR, against classification and generation baselines<sup>7</sup>. For implementation details, refer to Appendix A. BERT-CLS. This baseline frames PAVI as a multi-label classification task, treating each category-attribute-value tuple as an independent label. The model is fine-tuned to predict matches, with label masking applied to exclude irrelevant labels for each category, following (Chen et al., 2022). The model outputs a probability distribution over val
|
| 174 |
+
|
| 175 |
+
Table 4: Performance comparison of classification-, generation-, and retrieval-based methods on Xianyu-PAVI and WDC-PAVE. "F1 Excl." denotes the F1 score computed excluding measurement attributes (e.g., width and height), which require complex unit normalization reasoning.
|
| 176 |
+
|
| 177 |
+
<table><tr><td rowspan="2">Paradigm</td><td rowspan="2">Method</td><td colspan="3">Xianyu-PAVI</td><td colspan="4">WDC-PAVE</td></tr><tr><td>Precision</td><td>Recall</td><td>F1</td><td>Precision</td><td>Recall</td><td>F1</td><td>F1 Excl.</td></tr><tr><td>Classification</td><td>BERT-CLS</td><td>50.9</td><td>50.1</td><td>50.5</td><td>68.9</td><td>12.0</td><td>20.5</td><td>23.4</td></tr><tr><td rowspan="8">Generation</td><td>Llama3.1 (zero-shot)</td><td>29.1</td><td>46.2</td><td>35.7</td><td>56.6</td><td>60.8</td><td>58.6</td><td>64.6</td></tr><tr><td>Llama3.1 (few-shot)</td><td>31.0</td><td>51.1</td><td>38.6</td><td>76.0</td><td>74.1</td><td>75.0</td><td>79.0</td></tr><tr><td>Llama3.1 (RAG)</td><td>40.8</td><td>57.2</td><td>47.6</td><td>78.2</td><td>76.3</td><td>77.2</td><td>80.1</td></tr><tr><td>Llama3.1 (fine-tune)</td><td>86.9</td><td>82.7</td><td>84.7</td><td>57.7</td><td>60.4</td><td>59.0</td><td>64.5</td></tr><tr><td>Qwen2.5 (zero-shot)</td><td>42.7</td><td>55.7</td><td>48.4</td><td>51.9</td><td>60.3</td><td>55.8</td><td>60.8</td></tr><tr><td>Qwen2.5 (few-shot)</td><td>45.8</td><td>58.6</td><td>51.4</td><td>72.2</td><td>72.3</td><td>72.2</td><td>76.2</td></tr><tr><td>Qwen2.5 (RAG)</td><td>58.3</td><td>69.1</td><td>63.2</td><td>75.1</td><td>73.4</td><td>74.2</td><td>78.3</td></tr><tr><td>Qwen2.5 (fine-tune)</td><td>84.5</td><td>79.1</td><td>81.7</td><td>54.1</td><td>60.0</td><td>56.9</td><td>61.7</td></tr><tr><td>Retrieval</td><td>TACLR</td><td>85.4</td><td>87.1</td><td>86.2</td><td>74.3</td><td>70.9</td><td>72.6</td><td>80.3</td></tr></table>
|
| 178 |
+
|
| 179 |
+
ues and selects the highest-probability value for each attribute. If no probability exceeds a specified threshold, the prediction is set to empty.
|
| 180 |
+
|
| 181 |
+
LLM. For generation-based baselines, we utilize state-of-the-art open-source LLMs, including Llama3.1-7B (Llama Team, 2024) and Qwen2.5-7B (Qwen Team, 2024). These models are evaluated in zero-shot and few-shot settings using a template adapted from (Brinkmann et al., 2024), which incorporates the category, attribute, product profile, and detailed value normalization guidelines. We further fine-tune the LLMs using LoRA (Hu et al., 2022) to improve performance.
|
| 182 |
+
|
| 183 |
+
RAG. We implement RAG baselines based on both Qwen2.5 and Llama3.1, using BGE embeddings (Xiao et al., 2023) to retrieve the top-5 most similar product items from the training set. The LLM prompt is augmented with the profiles and structured attribute-value pair outputs of these retrieved examples. For all generation baselines, we apply greedy decoding to ensure reproducibility, and model outputs are formatted in JSON.
|
| 184 |
+
|
| 185 |
+
# 5 Results
|
| 186 |
+
|
| 187 |
+
# 5.1 Main Results
|
| 188 |
+
|
| 189 |
+
Table 4 presents the performance comparison between our retrieval-based method TACLR and classification- and generation-based baselines. On Xianyu-PAVI, TACLR achieves the highest F1 score of $86.2\%$ , surpassing fine-tuned Llama3.1, which obtains $84.7\%$ . Notably, TACLR excels in recall, achieving $87.1\%$ compared to Llama3.1's $82.7\%$ . On WDC-PAVE, TACLR achieves the highest F1 Excl. score of $80.3\%$ , which excludes measurement attributes requiring unit normalization
|
| 190 |
+
|
| 191 |
+
reasoning. These results highlight TACLR's effectiveness and robustness in addressing general PAVI across diverse datasets.
|
| 192 |
+
|
| 193 |
+
The classification-based baseline, BERT-CLS, shows the weakest performance on both datasets. It achieves an F1 score of $50.5\%$ on Xianyu-PAVI, but its performance drops drastically to $20.5\%$ on WDC-PAVE, underscoring the limitations of classification approaches in generalization. One contributing factor is the extreme label sparsity in this formulation: there are over 6.3M category-attribute-value labels, but the training set contains fewer than 3.6M instances, making it difficult for the model to learn a reliable classification head.
|
| 194 |
+
|
| 195 |
+
Among generation-based methods, performance improves steadily from zero-shot prompting to few-shot prompting, retrieval-augmented generation, and fine-tuning on the large-scale Xianyu-PAVI dataset. Llama3.1 progresses from $35.7\%$ (zero-shot) to $38.6\%$ (few-shot), $47.6\%$ (RAG), and $84.7\%$ (fine-tune), while Qwen2.5 improves from $48.4\%$ to $51.4\%$ , $63.2\%$ , and $81.7\%$ , respectively. A similar trend holds on WDC-PAVE, though fine-tuning is less effective due to limited supervision. In this setting, RAG outperforms few-shot prompting for both Llama3.1 ( $77.2\%$ vs. $75.0\%$ ) and Qwen2.5 ( $74.2\%$ vs. $72.2\%$ ), offering a viable alternative when labeled data is limited. Nonetheless, TACLR consistently surpasses RAG, particularly on Xianyu-PAVI ( $86.2\%$ vs. $47.6\%/63.2\%$ ), demonstrating better scalability for large-scale industrial applications. On WDC-PAVE, TACLR matches or exceeds RAG and retains a slight advantage in non-measurement attributes (F1 Excl.: $80.3\%$ vs. $80.1\%/78.3\%$ ).
|
| 196 |
+
|
| 197 |
+
Table 5: Inference efficiency comparison on Xianyu-PAVI (Throughput in samples/second).
|
| 198 |
+
|
| 199 |
+
<table><tr><td>Method</td><td>Time (ms)</td><td>Throughput</td></tr><tr><td>BERT-CLS</td><td>8.6</td><td>930</td></tr><tr><td>Llama3.1 (zero-shot)</td><td>101.3</td><td>80</td></tr><tr><td>Llama3.1 (few-shot)</td><td>124.8</td><td>64</td></tr><tr><td>Llama3.1 (RAG)</td><td>137.9</td><td>58</td></tr><tr><td>Qwen2.5 (zero-shot)</td><td>84.0</td><td>95</td></tr><tr><td>Qwen2.5 (few-shot)</td><td>98.4</td><td>81</td></tr><tr><td>Qwen2.5 (RAG)</td><td>108.3</td><td>74</td></tr><tr><td>TACLR</td><td>12.7</td><td>630</td></tr></table>
|
| 200 |
+
|
| 201 |
+
Table 6: F1 scores on product-attribute pairs with normalized vs. unnormalized and implicit values.
|
| 202 |
+
|
| 203 |
+
<table><tr><td>Method</td><td>Normalized</td><td>Unnorm. & Implicit</td></tr><tr><td>Llama3.1</td><td>83.2</td><td>79.4</td></tr><tr><td>Qwen2.5</td><td>82.6</td><td>78.6</td></tr><tr><td>TACLR</td><td>87.9</td><td>82.9</td></tr></table>
|
| 204 |
+
|
| 205 |
+
# 5.2 Inference Efficiency
|
| 206 |
+
|
| 207 |
+
Table 5 presents a comparison of inference efficiency across different PAVI paradigms under identical conditions, using an unoptimized PyTorch implementation on a single NVIDIA V100 GPU.
|
| 208 |
+
|
| 209 |
+
TACLR achieves a strong balance between model capacity and efficiency, processing each sample in $12.7\mathrm{ms}$ and achieving a throughput of 630 samples per second. In contrast, generation-based methods using Llama3.1 and Qwen2.5 exhibit substantially higher inference times (over $100\mathrm{ms}$ per sample) and lower throughput (below 100 samples per second), primarily due to the overhead of autoregressive decoding and reliance on large-scale models. The BERT-CLS classification baseline offers the highest raw efficiency $(8.6\mathrm{ms},$ 930 samples per second), but its inability to handle out-of-distribution values and limited generalization capacity reduce its practical applicability.
|
| 210 |
+
|
| 211 |
+
In summary, among these methods, TACLR provides the best trade-off between identification capability and inference efficiency, making it well-suited for scalable industrial deployment.
|
| 212 |
+
|
| 213 |
+
# 5.3 Analysis
|
| 214 |
+
|
| 215 |
+
This section analyzes our method on the Xianyu-PAVI dataset, selected for its large scale and diverse attribute taxonomy. In contrast, the WDC-PAVE dataset is substantially smaller in both size and coverage, making it insufficient for robust evaluation of scalability and generalization.
|
| 216 |
+
|
| 217 |
+

|
| 218 |
+
Figure 4: Comparison of negative sampling strategies with increasing number of samples.
|
| 219 |
+
|
| 220 |
+
Robustness Evaluation on Diverse Values. To better assess model robustness under various conditions, we partition the test set into three subsets based on the nature of the ground truth: (1) normalized values, appear verbatim in the product profile; (2) null values, where the attribute is marked as unavailable; and (3) unnormalized or implicit values, which either appear in a lexically varied form, or must be inferred. In our Xianyu-PAVI dataset, normalized values account for approximately $15.2\%$ , unnormalized or implicit values for $27.2\%$ , and null values for $57.6\%$ .
|
| 221 |
+
|
| 222 |
+
Table 6 reports the F1 scores on the normalized and unnormalized/implicit subsets. TACLR achieves the highest performance on both subsets, with an F1 score of $87.9\%$ on normalized values and $82.9\%$ on unnormalized or implicit values. Compared to the fine-tuned LLM baselines, TACLR demonstrates stronger ability to recognize standardized values and better robustness to lexical variation and implicit reasoning.
|
| 223 |
+
|
| 224 |
+
Impact of Taxonomy-Aware Negative Sampling. Figure 4 compares the proposed taxonomy-aware negative sampling (§3.3) with in-batch negative sampling across varying sample sizes. As the number of sampled values increases, the F1 score improves consistently, aligning with findings from (Chen et al., 2020). Using in-batch sampling as the baseline, the model achieves an F1 score of $53.3\%$ with a sample size of 128. In contrast, taxonomy-aware sampling yields substantial improvements, boosting the F1 score from $84.0\%$ to $86.2\%$ as the sample size grows from 16 to 128.
|
| 225 |
+
|
| 226 |
+
These results demonstrate that taxonomy-aware sampling provides more effective supervision, encouraging the model to distinguish between fine-grained, semantically similar values within the same category and attribute. In contrast, in-batch sampling often yields random negatives that are less relevant and frequently trivial, limiting the efficacy of contrastive learning for PAVI. For example,
|
| 227 |
+
|
| 228 |
+

|
| 229 |
+
(a) Comparison of inference thresholds.
|
| 230 |
+
|
| 231 |
+

|
| 232 |
+
(b) Comparison of prompt templates.
|
| 233 |
+
|
| 234 |
+

|
| 235 |
+
(c) Comparison of data domains.
|
| 236 |
+
Figure 5: Performance analysis across inference thresholds, prompt templates, and data domains.
|
| 237 |
+
|
| 238 |
+
in Figure 1, negatives such as iPhone 12 Pro or iPhone 13 Pro Max, which belong to the model attribute under the phone category, provide more challenging and informative supervision than random values such as L for T-shirt size.
|
| 239 |
+
|
| 240 |
+
Comparison of Dynamic and Static Thresholds. Figure 5a compares our dynamic thresholding approach (§3.4) with static thresholds of 0.6, 0.65, and 0.7, selected via validation. The dynamic threshold achieves the highest F1 (86.2%), outperforming the static baselines (75.5%, 80.2%, and 78.2%). Static thresholds exhibit the typical precision-recall trade-off: higher thresholds increase precision (65.1%→84.5%) but reduce recall (90.0%→72.8%). In contrast, the dynamic threshold balances precision (85.4%) and recall (87.1%) without manual tuning. This gain stems from a scalable design: instead of relying on fixed, hand-tuned cutoffs per category-attribute pair, our method learns null value embeddings whose similarity scores act as adaptive thresholds.
|
| 241 |
+
|
| 242 |
+
Performance Gains from Context-Rich Prompts. The influence of varying value prompt templates on the PAVI task is shown in Figure 5b. Using only the value as a prompt achieves an F1 score of $83.2\%$ . Adding category information raises the F1 score to $83.9\%$ , while incorporating attribute information further improves it to $85.4\%$ . The most comprehensive template, combining category, attribute, and value information (i.e., A {category} with {attribute} being {value}), achieves the highest F1 score of $86.2\%$ . These results are consistent with prior work (Radford et al., 2021), highlighting that context-rich prompts enhance the model's discriminative performance.
|
| 243 |
+
|
| 244 |
+
Zero-Shot Generalization Across Data Domains. Figure 5c presents zero-shot transfer results on unseen categories and values. The in-domain split achieves an F1 score of $88.7\%$ , while cross
|
| 245 |
+
|
| 246 |
+
category and cross-value splits decline to $80.2\%$ and $78.2\%$ , respectively, reflecting the challenges of adapting to evolving attribute taxonomies in out-of-distribution domains. Despite this, TACLR maintains a strong overall F1 of $86.2\%$ , demonstrating robust generalization. The model's generalization relies on the shared textual encoder's semantic understanding and the retrieval-based approach's capacity to leverage these embeddings for zero-shot matching. Such adaptability is critical for dynamic e-commerce platforms, where new products and attribute-value pairs continuously emerge, reducing the need for frequent retraining and lowering maintenance costs.
|
| 247 |
+
|
| 248 |
+
# 6 Conclusion
|
| 249 |
+
|
| 250 |
+
In this work, we present TACLR, a novel retrieval-based approach for PAVI. By formulating PAVI as an information retrieval problem, TACLR enables the inference of implicit values, generalization to OOD values, and the production of normalized outputs. Building on this framework, TACLR employs contrastive training with taxonomy-aware sampling and adaptive inference with dynamic thresholds to enhance retrieval performance and scalability.
|
| 251 |
+
|
| 252 |
+
Comprehensive experiments on proprietary and public datasets demonstrated TACLR's superiority over classification- and generation-based baselines. Notably, TACLR achieved an F1 score of $86.2\%$ on the large-scale Xianyu-PAVI dataset. Our efficiency analysis further highlighted its advantage, achieving significantly faster inference speeds than generation-based methods. Beyond these experimental results, TACLR has been successfully deployed on the real-world e-commerce platform Xianyu, processing millions of product listings daily and seamlessly adapting to dynamic attribute taxonomies, making it a practical solution for large-scale industrial applications.
|
| 253 |
+
|
| 254 |
+
# 7 Limitations
|
| 255 |
+
|
| 256 |
+
TACLR assumes access to a predefined attribute taxonomy, which serves as a foundation for accurate value identification. While this setup is realistic in many e-commerce platforms, where dedicated systems and teams maintain evolving taxonomies, it does require ongoing manual updates to incorporate new categories, attributes, and values. Automating product attribute mining remains an open area for future research (Ghani et al., 2006; Zhang et al., 2022; Xu et al., 2023).
|
| 257 |
+
|
| 258 |
+
Another limitation is that TACLR currently operates on textual product profiles and does not incorporate multimodal information, such as images or videos. Multimodal inputs could provide complementary signals for attributes that are difficult to infer from text alone (e.g., color, material, or shape). Extending the method to support multimodal input could further improve its coverage and accuracy in practical applications.
|
| 259 |
+
|
| 260 |
+
A further limitation of TACLR, as a retrieval-based approach, is its difficulty in handling measurement attributes that require unit conversion or numerical reasoning. To address this, future work could explore hybrid methods that combine TACLR's retrieval strengths with generative techniques to improve performance in such cases.
|
| 261 |
+
|
| 262 |
+
# References
|
| 263 |
+
|
| 264 |
+
Ansel Blume, Nasser Zalmout, Heng Ji, and Xian Li. 2023. Generative models for product attribute extraction. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing: Industry Track, pages 575-585, Singapore. Association for Computational Linguistics.
|
| 265 |
+
Alexander Brinkmann, Nick Baumann, and Christian Bizer. 2024. Using llms for the extraction and normalization of product attribute values. In European Conference on Advances in Databases and Information Systems, pages 217-230. Springer.
|
| 266 |
+
Kang Chen, Qing Heng Zhang, Chengbao Lian, Yixin Ji, Xuwei Liu, Shuguang Han, Guoqiang Wu, Fei Huang, and Jufeng Chen. 2024. IPL: Leveraging multimodal large language models for intelligent product listing. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: Industry Track, pages 697-711, Miami, Florida, US. Association for Computational Linguistics.
|
| 267 |
+
Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. 2020. A simple framework for contrastive learning of visual representations. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings
|
| 268 |
+
|
| 269 |
+
of Machine Learning Research, pages 1597-1607.
|
| 270 |
+
PMLR.
|
| 271 |
+
Wei-Te Chen, Keiji Shinzato, Naoki Yoshinaga, and Yandi Xia. 2023. Does named entity recognition truly not scale up to real-world product attribute extraction? In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing: Industry Track, pages 152-159, Singapore. Association for Computational Linguistics.
|
| 272 |
+
Wei-Te Chen, Yandi Xia, and Keiji Shinzato. 2022. Extreme multi-label classification with label masking for product attribute value extraction. In Proceedings of the Fifth Workshop on e-Commerce and NLP (EC-NLP 5), pages 134–140, Dublin, Ireland. Association for Computational Linguistics.
|
| 273 |
+
Yiming Cui, Wanxiang Che, Ting Liu, Bing Qin, Shijin Wang, and Guoping Hu. 2020. Revisiting pre-trained models for Chinese natural language processing. In *Findings of the Association for Computational Linguistics: EMNLP* 2020, pages 657-668, Online. Association for Computational Linguistics.
|
| 274 |
+
Yifan Ding, Yan Liang, Nasser Zalmout, Xian Li, Christan Grant, and Tim Weninger. 2022. Ask-and-verify: Span candidate generation and verification for attribute value extraction. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing: Industry Track, pages 110–110, Abu Dhabi, UAE. Association for Computational Linguistics.
|
| 275 |
+
Shen Gao, Zhaochun Ren, Yihong Zhao, Dongyan Zhao, Dawei Yin, and Rui Yan. 2019. Product-aware answer generation in e-commerce question-answering. In Proceedings of the Twelfth ACM International Conference on Web Search and Data Mining, WSDM '19, page 429-437, New York, NY, USA. Association for Computing Machinery.
|
| 276 |
+
Rayid Ghani, Katharina Probst, Yan Liu, Marko Krema, and Andrew Fano. 2006. Text mining for product attribute extraction. SIGKDD Explor. Newsl., 8(1):41-48.
|
| 277 |
+
Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. 2020. Momentum contrast for unsupervised visual representation learning. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 9726-9735.
|
| 278 |
+
Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations.
|
| 279 |
+
Junshi Huang, Si Liu, Junliang Xing, Tao Mei, and Shuicheng Yan. 2014. *Circle & search: Attribute-aware shoe retrieval*. ACM Transactions on Multimedia Computing, Communications, and Applications, 11(1).
|
| 280 |
+
|
| 281 |
+
Lei Huang, Weijiang Yu, Weitao Ma, Weihong Zhong, Zhangyin Feng, Haotian Wang, Qianglong Chen, Weihua Peng, Xiaocheng Feng, Bing Qin, and Ting Liu. 2024. A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions. ACM Trans. Inf. Syst. Just Accepted.
|
| 282 |
+
Giannis Karamanolakis, Jun Ma, and Xin Luna Dong. 2020. TXtract: Taxonomy-aware knowledge extraction for thousands of product categories. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 8489-8502, Online. Association for Computational Linguistics.
|
| 283 |
+
Anant Khandelwal, Happy Mittal, Shreyas Kulkarni, and Deepak Gupta. 2023. Large scale generative multimodal attribute extraction for E-commerce attributes. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 5: Industry Track), pages 305-312, Toronto, Canada. Association for Computational Linguistics.
|
| 284 |
+
Ashish Kulkarni, Kartik Mehta, Shweta Garg, Vidit Bansal, Nikhil Rasiwasia, and Srinivasan Sengamedu. 2019. Productqna: Answering user questions on e-commerce product pages. In Companion Proceedings of The 2019 World Wide Web Conference, WWW '19, page 354-360, New York, NY, USA. Association for Computing Machinery.
|
| 285 |
+
Yanzeng Li, Bingcong Xue, Ruoyu Zhang, and Lei Zou. 2023. AtTGen: Attribute tree generation for real-world attribute joint extraction. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2139-2152, Toronto, Canada. Association for Computational Linguistics.
|
| 286 |
+
Rongmei Lin, Xiang He, Jie Feng, Nasser Zalmout, Yan Liang, Li Xiong, and Xin Luna Dong. 2021. Pam: Understanding product images in cross product category attribute extraction. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, KDD '21, page 3262-3270, New York, NY, USA. Association for Computing Machinery.
|
| 287 |
+
Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. ArXiv, abs/1907.11692.
|
| 288 |
+
Meta Llama Team. 2024. The llama 3 herd of models. Preprint, arXiv:2407.21783.
|
| 289 |
+
Alessandro Magnani, Feng Liu, Min Xie, and Somnath Banerjee. 2019. Neural product retrieval at Walmart.com. In Companion Proceedings of The 2019 World Wide Web Conference, WWW '19, page 367-372, New York, NY, USA. Association for Computing Machinery.
|
| 290 |
+
Athanasios N. Nikolakopoulos, Swati Kaul, Siva Karthik Gade, Bella Dubrov, Umit Batur, and Suleiman Ali Khan. 2023. Sage: Structured
|
| 291 |
+
|
| 292 |
+
attribute value generation for billion-scale product catalogs. Preprint, arXiv:2309.05920.
|
| 293 |
+
Duangmanee Putthividhya and Junling Hu. 2011. Bootstrapped named entity recognition for product attribute extraction. In Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing, pages 1557-1567, Edinburgh, Scotland, UK. Association for Computational Linguistics.
|
| 294 |
+
Alibaba Qwen Team. 2024. Qwen2 technical report. Preprint, arXiv:2407.10671.
|
| 295 |
+
Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. 2021. Learning transferable visual models from natural language supervision. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 8748-8763. PMLR.
|
| 296 |
+
Kalyani Roy, Pawan Goyal, and Manish Pandey. 2021. Attribute value generation from product title using language models. In Proceedings of the 4th Workshop on e-Commerce and NLP, pages 13-17, Online. Association for Computational Linguistics.
|
| 297 |
+
Kassem Sabeh, Mouna Kacimi, Johann Gamper, Robert Litschko, and Barbara Plank. 2024a. Exploring large language models for product attribute value identification. Preprint, arXiv:2409.12695.
|
| 298 |
+
Kassem Sabeh, Robert Litschko, Mouna Kacimi, Barbara Plank, and Johann Gamper. 2024b. An empirical comparison of generative approaches for product attribute-value identification. Preprint, arXiv:2407.01137.
|
| 299 |
+
Keiji Shinzato, Naoki Yoshinaga, Yandi Xia, and Wei-Te Chen. 2022. Simple and effective knowledge-driven query expansion for QA-based product attribute extraction. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 227-234, Dublin, Ireland. Association for Computational Linguistics.
|
| 300 |
+
Keiji Shinzato, Naoki Yoshinaga, Yandi Xia, and Wei-Te Chen. 2023. A unified generative approach to product attribute-value identification. In *Findings of the Association for Computational Linguistics: ACL* 2023, pages 6599–6612, Toronto, Canada. Association for Computational Linguistics.
|
| 301 |
+
Changfeng Sun, Han Liu, Meng Liu, Zhaochun Ren, Tian Gan, and Liqiang Nie. 2020. Lara: Attribute-to-feature adversarial learning for new-item recommendation. In Proceedings of the 13th International Conference on Web Search and Data Mining, WSDM '20, page 582-590, New York, NY, USA. Association for Computing Machinery.
|
| 302 |
+
Quoc-Tuan Truong, Tong Zhao, Changhe Yuan, Jin Li, Jim Chan, Soo-Min Pantel, and Hady W. Lauw. 2022.
|
| 303 |
+
|
| 304 |
+
Ampsum: Adaptive multiple-product summarization towards improving recommendation captions. In Proceedings of the ACM Web Conference 2022, WWW '22, page 2978-2988, New York, NY, USA. Association for Computing Machinery.
|
| 305 |
+
Qifan Wang, Li Yang, Bhargav Kanagal, Sumit Sanghai, D. Sivakumar, Bin Shu, Zac Yu, and Jon Elsas. 2020. Learning to extract attribute value from product via question answering: A multi-task approach. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD '20, page 47-55, New York, NY, USA. Association for Computing Machinery.
|
| 306 |
+
Qifan Wang, Li Yang, Jingang Wang, Jitin Krishnan, Bo Dai, Sinong Wang, Zenglin Xu, Madian Khabsa, and Hao Ma. 2022. SMARTAVE: Structured multimodal transformer for product attribute value extraction. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 263-276, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 307 |
+
Shitao Xiao, Zheng Liu, Peitian Zhang, and Niklas Muennighoff. 2023. C-pack: Packaged resources to advance general chinese embedding. Preprint, arXiv:2309.07597.
|
| 308 |
+
Huimin Xu, Wenting Wang, Xin Mao, Xinyu Jiang, and Man Lan. 2019. Scaling up open tagging from tens to thousands: Comprehension empowered attribute value extraction from product title. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 5214-5223, Florence, Italy. Association for Computational Linguistics.
|
| 309 |
+
Liyan Xu, Chenwei Zhang, Xian Li, Jingbo Shang, and Jinho D. Choi. 2023. Towards open-world product attribute mining: A lightly-supervised approach. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12223-12239, Toronto, Canada. Association for Computational Linguistics.
|
| 310 |
+
Jun Yan, Nasser Zalmout, Yan Liang, Christian Grant, Xiang Ren, and Xin Luna Dong. 2021. AdaTag: Multi-attribute value extraction from product profiles with adaptive decoding. 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 4694–4705, Online. Association for Computational Linguistics.
|
| 311 |
+
Li Yang, Qifan Wang, Jingang Wang, Xiaojun Quan, Fuli Feng, Yu Chen, Madian Khabsa, Sinong Wang, Zenglin Xu, and Dongfang Liu. 2023. MixPAVE: Mix-prompt tuning for few-shot product attribute value extraction. In Findings of the Association for Computational Linguistics: ACL 2023, pages 9978-9991, Toronto, Canada. Association for Computational Linguistics.
|
| 312 |
+
Li Yang, Qifan Wang, Zac Yu, Anand Kulkarni, Sumit Sanghai, Bin Shu, Jon Elsas, and Bhargav Kanagal.
|
| 313 |
+
|
| 314 |
+
2022. Mave: A product dataset for multi-source attribute value extraction. In Proceedings of the Fifteenth ACM International Conference on Web Search and Data Mining, WSDM '22, page 1256-1265, New York, NY, USA. Association for Computing Machinery.
|
| 315 |
+
Danqing Zhang, Zheng Li, Tianyu Cao, Chen Luo, Tony Wu, Hanqing Lu, Yiwei Song, Bing Yin, Tuo Zhao, and Qiang Yang. 2021. Queaco: Borrowing treasures from weakly-labeled behavior data for query attribute value extraction. In Proceedings of the 30th ACM International Conference on Information & Knowledge Management, CIKM '21, page 4362-4372, New York, NY, USA. Association for Computing Machinery.
|
| 316 |
+
Xinyang Zhang, Chenwei Zhang, Xian Li, Xin Luna Dong, Jingbo Shang, Christos Faloutsos, and Jiawei Han. 2022. Oa-min: Open-world attribute mining for e-commerce products with weak supervision. In Proceedings of the ACM Web Conference 2022, WWW '22, page 3153-3161, New York, NY, USA. Association for Computing Machinery.
|
| 317 |
+
Guineng Zheng, Subhabrata Mukherjee, Xin Luna Dong, and Feifei Li. 2018. Opentag: Open attribute value extraction from product profiles. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD '18, page 1049-1058, New York, NY, USA. Association for Computing Machinery.
|
| 318 |
+
Tiangang Zhu, Yue Wang, Haoran Li, Youzheng Wu, Xiaodong He, and Bowen Zhou. 2020. Multimodal joint attribute prediction and value extraction for E-commerce product. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 2129-2139, Online. Association for Computational Linguistics.
|
| 319 |
+
Henry Zou, Gavin Yu, Ziwei Fan, Dan Bu, Han Liu, Peng Dai, Dongmei Jia, and Cornelia Caragea. 2024. EIVEN: Efficient implicit attribute value extraction using multimodal LLM. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 6: Industry Track), pages 453-463, Mexico City, Mexico. Association for Computational Linguistics.
|
| 320 |
+
|
| 321 |
+
# A Implementation Details
|
| 322 |
+
|
| 323 |
+
For both the BERT-CLS baseline and our TACLR method, we utilize pre-trained RoBERTa-base (Liu et al., 2019; Cui et al., 2020) as the backbone. For TACLR, we augment the model with a linear projection head to map the embedding dimension to 256. For each product-attribute pair, we sample up to 128 values for the contrastive learning setup, including a null value, an optional positive value (if present for the attribute), and negative values sampled from the value set with the same category and
|
| 324 |
+
|
| 325 |
+
attribute. In the case of the null value, we replace the value slot in the prompt template with null (e.g., A phone with capacity being null.).
|
| 326 |
+
|
| 327 |
+
The temperature parameter is fixed at 0.05. This choice is motivated by both prior research (e.g., SimCLR (Chen et al., 2020) and MoCo (He et al., 2020)) and empirical tuning on our validation set. The encoder is fine-tuned using the AdamW optimizer, with a batch size of 32, a learning rate of $2 \times 10^{-5}$ , and a maximum of 5 epochs.
|
| 328 |
+
|
| 329 |
+
For LLM fine-tuning, we employ LoRA (Hu et al., 2022) for efficient adaptation. The core hyperparameters are as follows: 3 training epochs, batch size of 128, AdamW optimizer, maximum learning rate of $5 \times 10^{-5}$ , $1\%$ warmup steps, cosine learning rate scheduler, LoRA rank of 8, LoRA alpha of 16, and LoRA dropout rate of 0.1.
|
| 330 |
+
|
| 331 |
+
All hyperparameters and model checkpoints are selected to maximize the F1 score on the validation set. For further details, please refer to our codebase: https://github.com/SuYindu/TACLR.
|
| 332 |
+
|
| 333 |
+
# B Deployment
|
| 334 |
+
|
| 335 |
+
The proposed TACLR has been successfully integrated into key functionalities of the e-commerce platform Xianyu, including product listing, search, recommendation, and price estimation. The system is designed to be highly scalable, efficiently processing millions of products daily.
|
| 336 |
+
|
| 337 |
+
During the product listing process, TACLR automatically identifies attribute-value pairs from user-provided titles and descriptions. This automation significantly reduces manual effort and errors, while enhancing the quality of structured product information.
|
| 338 |
+
|
| 339 |
+
For product search, the improved structured information directly supports more effective lexical retrieval and enables structured search, where items are filtered based on attributes. This leads to more accurate matching with user queries. In addition, the enriched product features enhance the quality of personalized recommendations.
|
| 340 |
+
|
| 341 |
+
In the context of price estimation, TACLR identifies key attributes that influence pricing, enabling more accurate price predictions. This functionality provides sellers and buyers with reliable, market-aligned information in the context of second-hand transactions.
|
2025/TACLR_ A Scalable and Efficient Retrieval-based Method for Industrial Product Attribute Value Identification/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e19c009a7a03a5b6f96d3da3311d28223c693cee7ecd09e026e4740eab003114
|
| 3 |
+
size 390514
|
2025/TACLR_ A Scalable and Efficient Retrieval-based Method for Industrial Product Attribute Value Identification/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TARGA_ Targeted Synthetic Data Generation for Practical Reasoning over Structured Data/9e5b56f3-c8f5-4eb7-be25-daa4af06471e_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TARGA_ Targeted Synthetic Data Generation for Practical Reasoning over Structured Data/9e5b56f3-c8f5-4eb7-be25-daa4af06471e_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TARGA_ Targeted Synthetic Data Generation for Practical Reasoning over Structured Data/9e5b56f3-c8f5-4eb7-be25-daa4af06471e_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:091d481e638d0f03b16a473754e9d3bd02c6220b20a87992910222f44f89dc6c
|
| 3 |
+
size 1089376
|
2025/TARGA_ Targeted Synthetic Data Generation for Practical Reasoning over Structured Data/full.md
ADDED
|
@@ -0,0 +1,671 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TARGA: Targeted Synthetic Data Generation for Practical Reasoning over Structured Data
|
| 2 |
+
|
| 3 |
+
Xiang Huang $^{1}$ , Jiayu Shen $^{1*}$ , Shanshan Huang $^{1}$ , Sitao Cheng $^{2}$ , Xiaxia Wang $^{3}$ , Yuzhong Qu $^{1}$
|
| 4 |
+
|
| 5 |
+
<sup>1</sup>State Key Laboratory for Novel Software Technology, Nanjing University, China
|
| 6 |
+
|
| 7 |
+
$^{2}$ University of California, Santa Barbara
|
| 8 |
+
|
| 9 |
+
$^{3}$ University of Oxford
|
| 10 |
+
|
| 11 |
+
xianghuang@smail.nju.edu.cn, yzqu@nju.edu.cn
|
| 12 |
+
|
| 13 |
+
# Abstract
|
| 14 |
+
|
| 15 |
+
Semantic parsing, which converts natural language questions into logic forms, plays a crucial role in reasoning within structured environments. However, existing methods encounter two significant challenges: reliance on extensive manually annotated datasets and limited generalization capability to unseen examples. To tackle these issues, we propose Targeted Synthetic Data Generation (TARGA), a practical framework that dynamically generates high-relevance synthetic data without manual annotation. Starting from the pertinent entities and relations of a given question, we probe for the potential relevant queries through layer-wise expansion and cross-layer combination. Then we generate corresponding natural language questions for these constructed queries to jointly serve as the synthetic demonstrations for in-context learning. Experiments on multiple knowledge base question answering (KBQA) datasets demonstrate that TARGA, using only a 7B-parameter model, substantially outperforms existing non-finetuned methods that utilize close-sourced model, achieving notable improvements in F1 scores on GrailQA (+7.7) and KBQA-Agent (+12.2). Furthermore, TARGA also exhibits superior sample efficiency, robustness, and generalization capabilities under non-I.I.D. settings.
|
| 16 |
+
|
| 17 |
+
# 1 Introduction
|
| 18 |
+
|
| 19 |
+
Reasoning over structured environments, such as Knowledge Base (KB), Database, and Web, has emerged as a crucial ability for large language models (LLMs) (Liu et al., 2024; Gu et al., 2023). Among various methods for structural reasoning, semantic parsing stands out as a mainstream and has garnered increasing attention from researchers. By translating natural language questions (NLQ) into logic forms, semantic parsing enables seamless interaction with structured environments, thereby enhancing user experience and accessibility.
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1: Compared with previous methods, TARGA aims to mitigate the reliance on large amounts of manually labeled data and enhance generalization capabilities in non-i.i.d. scenarios.
|
| 23 |
+
|
| 24 |
+
However, current semantic paring methods typically face two significant challenges:
|
| 25 |
+
|
| 26 |
+
1) Dependence on annotation. Previous methods usually rely on extensive amounts of manually annotated data. By training (Ye et al., 2022; Shu et al., 2022; Huang et al., 2023b) or retrieval (Li et al., 2023b; Nie et al., 2023) based on large-scale annotations, existing works have made remarkable progress. Unfortunately, collecting manual annotations in specific environments is labor-intensive and time-consuming. In real-world scenarios, a large pre-collected annotated dataset is often unavailable, limiting the scalability of these methods.
|
| 27 |
+
2) Limited generalization capability. Even with access to large annotated datasets, previous methods still struggle with generalizing to unseen examples. Regardless of the paradigm (e.g., in-context learning or fine-tuning), any method relying on a static, offline-collected dataset is inevitably influenced by the dataset's distribution. Specifically, these methods tend to perform well on examples encountered in the dataset (the I.I.D. setting) but exhibit weaker generalization when faced with unseen environmental items or query structures (the non-
|
| 28 |
+
|
| 29 |
+
I.I.D. settings), as shown in Figure 1. In complex environments, such as Freebase (Bollacker et al., 2008) with over three billion triples, it is nearly impossible for a pre-collected static dataset to cover the full scope of the environment. Additionally, as the coverage of annotations increases, so do the costs associated with training and retrieval, which further limits the scalability and generalization.
|
| 30 |
+
|
| 31 |
+
To address the aforementioned challenges, in this work, we propose a practical semantic parsing framework called Targeted Synthetic Data Generation (TARGA), which does not need any manually annotated data and can efficiently work on a 7B model. Specifically, TARGA addresses these challenges by dynamically synthesizing highly relevant examples of a test question as demonstrations for in-context learning. Starting from the KB items (entity, relation) that may be related to the given question, we construct logic forms through layer-wise expansion (extend a new edge for a sub-structure) and cross-layer combination (combine different sub-structures), gradually evolving from simple to complex structures. To further enhance relevance, we re-rank the synthetic logic forms to select the most pertinent ones and generate their corresponding natural language questions, which are then used as demonstrations for reasoning. Through this automatic data synthesis, TARGA free annotators from the heavy burden of labeling tasks. Additionally, the demonstrations are generated based on the given question, thus naturally avoiding the challenge of generalization.
|
| 32 |
+
|
| 33 |
+
Without any data annotation, TARGA significantly outperforms all non-fine-tuned approaches across multiple complex KBQA datasets, particularly excelling in non-I.I.D. settings. Remarkably, TARGA achieves this with only a 7B-parameter model, whereas most baselines rely on advanced closed-source models, such as gpt-3.5-turbo, enabling faster and more cost-efficient inference. On the GrailQA dataset, we improve the performance of non-fine-tuned methods from an F1 score of 61.3 to 69.0. On KBQA-Agent, the most challenging dataset, we elevate the SOTA performance from 34.3 to 46.5 F1 scores. Further analyses highlight the high quality of the data generated by TARGA. Even with a single demonstration, TARGA still surpasses all non-fine-tuned methods on GrailQA. Additionally, TARGA exhibits remarkable robustness in adversarial settings<sup>1</sup>.
|
| 34 |
+
|
| 35 |
+
# 2 Related Works
|
| 36 |
+
|
| 37 |
+
# 2.1 Few-shot KBQA with LLMs
|
| 38 |
+
|
| 39 |
+
With the advancement of large language models, recent works have adopted LLMs as the backend for KBQA (Cheng et al., 2024). In particular, In-Context Learning (Brown et al., 2020) requires dozens of demonstrations to guide the model's responses. To achieve competitive performance, existing ICL-based KBQA works (Li et al., 2023b; Nie et al., 2023) typically retrieve the most similar examples from a manually annotated training set as demonstrations. However, this strategy often results in performance degradation on non-I.I.D. questions involving unseen structures or KB items. For example, Nie et al. (2023); Li et al. (2023b) reported that the performance in zero-shot settings can be up to $20\%$ lower compared to I.I.D. settings.
|
| 40 |
+
|
| 41 |
+
Another line of KBQA methods, agent-based methods (Liu et al., 2024; Huang et al., 2024; Gu et al., 2024), decomposes questions into individual steps to solve. While step-by-step solving aligns with human intuition and demonstrates remarkable generalization ability, it incurs high computational costs and presents challenges in constructing trajectories. Moreover, the effectiveness of the agent-based paradigm relies heavily on the planning and generalization abilities of advanced LLMs, leading to subpar performance when using weaker models, such as some open-source variants. Such dependency underscores the limitation of agent-based approaches when superior LLMs are unavailable or impractical to use due to resource constraints.
|
| 42 |
+
|
| 43 |
+
# 2.2 Synthetic Data Generation
|
| 44 |
+
|
| 45 |
+
Instead of relying solely on human annotation for training data, recent works have leveraged LLMs to generate synthetic data, thereby reducing the burden on human annotators. For instance, Chiang et al. (2023); Taori et al. (2023) use instructions to generate training data as a supplement to manual annotation via self-instruct techniques (Wang et al., 2023). However, this approach still requires human-annotated seed examples to ensure high-quality demonstrations, which entails significant demand for LLM usage. Rather than directly prompting LLMs to generate training data, Cao et al. (2022); Huang et al. (2023a) address this problem by first sampling structured queries from the environment and then converting these queries into natural language using LLMs. Nevertheless, obtaining meaningful structured queries remains a non-trivial task.
|
| 46 |
+
|
| 47 |
+
Other works similar to ours include FlexKBQA (Li et al., 2023c) and BYOKG (Agarwal et al., 2024). FlexKBQA relies on predefined templates and model training stages to automatically annotate data, while BYOKG synthesizes data from scratch. However, both approaches require a time-consuming offline data collection phase. More importantly, like other methods, they rely on reasoning over a pre-collected static dataset, which still suffers from generalization issues. In TARGA, we systematically design a framework to dynamically synthesize relevant examples in an online manner. It avoids the need for a lengthy data collection process, enabling us to dynamically obtain the most relevant examples for each test case without being constrained by a static dataset.
|
| 48 |
+
|
| 49 |
+
# 3 Methods
|
| 50 |
+
|
| 51 |
+
# 3.1 Overview
|
| 52 |
+
|
| 53 |
+
As shown in Figure 2, our targeted data synthesis framework, TARGA, consists of four parts. Given a natural language question $nlq$ , we first collect candidate KB items such as entities $E_{nlq}$ and relations $R_{nlq}$ as initialization. Then, we explore valid query graphs from simple to complex structures to construct synthetic queries $Q$ . Next, we filter high-relevance candidate queries by ranking. Finally, we use these high-quality synthetic data as demonstrations for QA reasoning.
|
| 54 |
+
|
| 55 |
+
# 3.2 Candidate KB Items Retrieval
|
| 56 |
+
|
| 57 |
+
For candidate entities, we adopt the linking result provided by Gu et al. (2023) for a fair comparison (detail in Appendix E.2). For candidate relations, we compute the similarity of question and freebase relations based on text-embedding-ada-002² and retain the top 20 most similar candidates. Different from previous fine-tuned methods (Ye et al., 2022; Hu et al., 2022), which typically require training a relation linking model for higher precision and recall, our method does not rely on the precision of these items. This is because, although all retrieved KB items are relevant to the question, they do not necessarily form valid combinations within a specific graph structure. In this way, the subsequent query construction steps in Section 3.3 can be viewed as a joint entity-relation disambiguation process, thus significantly reducing the number of invalid queries.
|
| 58 |
+
|
| 59 |
+
# 3.3 Synthetic Query Construction
|
| 60 |
+
|
| 61 |
+
This stage aims to construct question-targeted queries to facilitate subsequent QA reasoning. Given a knowledge base $\mathcal{G}$ and the set of retrieved KB items relevant to the question $nlq$ , we explore the possible query structures $Q$ that are valid (i.e., yield non-empty execution results). Specifically, we used PyQL (Huang et al., 2023a) to represent logic form during construction. However, enumerating all possible structures may lead to an unmanageable combinatorial explosion. To mitigate this, our exploration of candidate queries follows a simple-to-complex manner, where we only further explore new structures that are derived from the sub-structures already verified as valid. Starting from the simplest structure $(\mathcal{L}_1$ in Figure 2), we progressively search for more complex query structures through Layer-wise Expansion (for multi-hop structures) and Cross-layer Combination (for multi-constraint structures), gradually extending the obtained query graphs until a desired complexity is achieved.
|
| 62 |
+
|
| 63 |
+
Layer-wise Expansion is utilized to model multi-hop structures (the depth of the query graph), which are chain-like, non-branching query structures originating from a single entity. We define $\mathcal{L}_k$ as the set of queries in which the distance from the entity to the farthest variable in the chain-like query structure is $k$ . Specifically, we first identify all possible connections between $E_{nlq}$ and $R_{nlq}$ , forming the simplest query structure $\mathcal{L}_1$ , where an entity $s$ is connected to a variable $o$ through a single relation $p$ . $\operatorname{EXEC}(q, \mathcal{G})$ indicates the execution results of query $q$ against $\mathcal{G}$ .
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
\begin{array}{l} \mathcal {L} _ {1} = \left\{\left(s, p, o\right) | s \in E _ {n l q}, p \in R _ {n l q}, \right. \tag {1} \\ \operatorname {E X E C} \left((s, p, o), \mathcal {G}\right) \neq \emptyset \}. \\ \end{array}
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
We then progressively expand outward from the terminal variable nodes by connecting them to a new variable through another relation to construct $\mathcal{L}_2$ , and so forth. Generally, $\mathcal{L}_{k + 1}$ is formed by expanding the valid queries from the previous layer $(\mathcal{L}_k)$ with an additional edge:
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
\begin{array}{l} \mathcal {L} _ {k + 1} = \left\{q \cup \left(o _ {i}, p ^ {\prime}, o _ {j}\right) \mid q \in \mathcal {L} _ {k}, o _ {i} \in \mathcal {O} (q), \right. \\ p ^ {\prime} \in R _ {n l q}, \operatorname {E X E C} \left(q \cup \left(o _ {i}, p ^ {\prime}, o _ {j}\right), \mathcal {G}\right) \neq \emptyset \}. \tag {2} \\ \end{array}
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
where $\mathcal{O}(q)$ represents the set of variables in $q$ and $o_j$ is a newly introduced variable. The expansion process stops when the complexity threshold
|
| 76 |
+
|
| 77 |
+

|
| 78 |
+
Figure 2: Overview of TARGA.
|
| 79 |
+
|
| 80 |
+
(e.g., 3 hops) is reached, since for a coherent and reasonable question, the distance between a specific entity and the final answer typically does not exceed three hops.
|
| 81 |
+
|
| 82 |
+
Cross-layer Combination models multi-constraint structures (the width of the query graph) by merging two queries, thereby applying multiple constraints to the same variable. Given two queries $q$ and $q'$ , we choose one of the variables from each query ( $o_i$ for $q$ and $o_j$ for $q'$ ) as the common variable of them, then combine these two queries into a more complex query through this shared variable. We define $\mathcal{L}_{x \times y}$ as the set of queries formed by combining a query from $\mathcal{L}_x$ and a query from $\mathcal{L}_y$ . Specifically, we start from the simplest combinations, such as merging two queries in $\mathcal{L}_1$ , and gradually explore more complex combination patterns, such as merging $\mathcal{L}_2$ with $\mathcal{L}_3$ or merging $\mathcal{L}_1$ with $\mathcal{L}_{1 \times 2}$ . This combination process can be formally expressed as:
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
\mathcal {L} _ {x \times y} = \left\{q \cup q ^ {\prime} \mid q \in \mathcal {L} _ {x}, q ^ {\prime} \in \mathcal {L} _ {y}, \right.
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
\exists o _ {i} \in \mathcal {O} (q), o _ {j} \in \mathcal {O} \left(q ^ {\prime}\right), \tag {3}
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
\left. \mathcal {E} \left(o _ {i}\right) \cap \mathcal {E} \left(o _ {j}\right) \neq \emptyset , \operatorname {E X E C} \left(q \cup q ^ {\prime}, \mathcal {G}\right) \neq \emptyset \right\},
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
where $\mathcal{E}(o_i)$ refers to the set of entities corresponding to the variable $o_i$ in the execution result of query $q$ on $\mathcal{G}$ . $o_i$ and $o_j$ serve as the shared variable. This combination terminates once the query structure reaches five edges, which is sufficient to model most questions in current datasets.
|
| 97 |
+
|
| 98 |
+
In this manner, we circumvented a significant number of invalid queries, thus obtaining most of the potentially relevant queries with relatively lower query overhead. We also provide statistical data regarding these synthetic queries in Appendix
|
| 99 |
+
|
| 100 |
+
E.5. The average number of valid candidate queries per question is only in the range of several dozen, which is well within the contextual length limits manageable by an ICL model.
|
| 101 |
+
|
| 102 |
+
# 3.4 Synthetic Query Re-ranking
|
| 103 |
+
|
| 104 |
+
To obtain the most relevant examples for the subsequent QA task, we re-rank all valid queries using the bge-reranker-v2-m3 model (Chen et al., 2024) based on their similarity to the question. Additionally, we employ a process called Query Textification, where the synthesized query is transformed into a format closer to natural language through heuristic rules. This step helps bridge the gap between the text embedding model and the query, further improving the quality of the ranking. Detail and examples of textification process are provided in Appendix E.4 and Table 12.
|
| 105 |
+
|
| 106 |
+
To address the imbalance caused by the exponential growth of complex queries, we implement a Hierarchical Ranking strategy. For all queries derived from the same parent query (the sub-query that this query is derived from), we retain only the top $n$ candidates. The final candidate query pool is the union of all top tanked candidates:
|
| 107 |
+
|
| 108 |
+
$$
|
| 109 |
+
Q _ {\text {r a n k e d}} = \bigcup_ {a \in \mathcal {A}} \underset {q \in Q, \mathrm {P A R E N T} (q) = a} {\operatorname {A R G M A X} ^ {(n)}} \operatorname {S C O R E} (Q T (q), n l q). \tag {4}
|
| 110 |
+
$$
|
| 111 |
+
|
| 112 |
+
where $Q$ denotes the set of queries generated during query construction, SCORE measures similarity and $QT$ is Query Textification. $\mathrm{PARENT}(q)$ indicates the parent query of $q$ , and $\mathcal{A}$ refers to the set of parent queries that have child queries. This approach ensures that the size of the candidate pool grows at a manageable rate, while preserving high
|
| 113 |
+
|
| 114 |
+
quality queries for downstream processing.
|
| 115 |
+
|
| 116 |
+
# 3.5 Question Answering
|
| 117 |
+
|
| 118 |
+
To help the LLM understand the semantics of the provided query, we equip each generated query with its corresponding natural language questions (NLQ), forming (NLQ, Query) pairs. Specifically, we directly utilize the textification results mentioned in Section 3.4 as the NLQ, ensuring both efficiency and the preservation of information integrity. Then, we adopt the In-context Learning paradigm to generate the target query. Finally, we parse and execute the output query from the LLM to obtain the answer.
|
| 119 |
+
|
| 120 |
+
# 4 Evaluation
|
| 121 |
+
|
| 122 |
+
# 4.1 Setup
|
| 123 |
+
|
| 124 |
+
We experiment with four complex KBQA datasets, i.e., GrailQA (Gu et al., 2021), GraphQ (Su et al., 2016), KBQA-Agent (Gu et al., 2024), MetaQA (Zhang et al., 2018) and a Text2SQL dataset, i.e., WikiSQL (Zhong et al., 2017). We use the F1 scores as the evaluation metric for KBQA and denotation accuracy for Text2SQL. We compare TARGA with various paradigms of baselines, including finetuning, ICL, and Agent, where we report performance in the original paper. For experiments with other settings, we copy the re-implemented result from Gu et al. (2024). By default, we use Qwen-2.5-7B-Instruct as the base LLM in our experiments with 10 demonstrations for all datasets. Detailed introduction of datasets and baselines are available in Appendices B and C.
|
| 125 |
+
|
| 126 |
+
# 4.2 Main Result
|
| 127 |
+
|
| 128 |
+
Table 1 illustrates the main result for KBQA. we compare TARGA with methods that require different amounts of annotation. For the relatively challenging datasets, i.e., GrailQA, GraphQ, and KBQA-Agent, based on a 7B model, TARGA achieves the best performance among all non-fine-tuned methods which are based on advanced close-sourced LLMs. On GrailQA and KBQA-Agent, TARGA surpasses previous SOTA non-fine-tuned methods by 8.7 and 13.0 F1. On GraphQ, TARGA even beats some fine-tuned methods and achieves similar performance with the best non-fine-tuned method.
|
| 129 |
+
|
| 130 |
+
When compared to methods with a similar paradigm (ICL-based), TARGA outperform previous methods by 14.0 and 28.4 in F1 on GraphQ
|
| 131 |
+
|
| 132 |
+

|
| 133 |
+
Figure 3: Performance with various numbers of demonstrations on GrailQA (1,000 randomly sampled questions).
|
| 134 |
+
|
| 135 |
+
and KBQA-Agent, respectively. It is worth noting that our method requires neither any manually annotated corpus nor the expensive close-sourced model. Besides, we have not incorporated self-consistency to boost the performance. This can be attributed to the high quality of the synthetic data, which has led to a reduction in task difficulty and a decreased reliance on the capabilities of strong LLMs. Moreover, compared with other ICL-based methods which include 40-100 demonstrations, TARGA uses only 10 demonstrations but still achieves the best performance, demonstrating notable data efficiency.
|
| 136 |
+
|
| 137 |
+
Compared to BYOKG which also works without annotated data, TARGA achieves approximately $1.5 \times$ performance on GrailQA and MetaQA-3Hop. More importantly, TARGA dynamically synthesizes the most relevant data for different questions, enabling seamless adaptation to questions from any distribution. Besides, the synthetic data by TARGA is generated online, eliminating the need for a time-consuming offline data collection phase.
|
| 138 |
+
|
| 139 |
+
# 4.3 Detailed Analyses
|
| 140 |
+
|
| 141 |
+
To gain more insights, we conduct detailed experiments to illustrate some favorable practical characteristics of TARGA on: sample efficiency, robustness, generalization ability, efficiency, model size requirements, and transferability.
|
| 142 |
+
|
| 143 |
+
# 4.3.1 Sample Efficiency
|
| 144 |
+
|
| 145 |
+
In this section, we analyze how the number of demonstrations impacts the performance. We experiment on GrailQA, with the number of demonstrations ranging from 1 to 20. Based on our QA framework, we compare three distinct sampling settings: Random, Similarity-based, and Ours (synthetic), corresponding to examples randomly sampled from the training set, retrieved by similarity
|
| 146 |
+
|
| 147 |
+
<table><tr><td>Methods</td><td>Models</td><td>GrailQA</td><td>GraphQ</td><td>KBQA-Agent</td><td>MetaQA</td></tr><tr><td colspan="6">full training set (Seq2Seq Fine-tuning / ICL / Agent Fine-tuning)</td></tr><tr><td>ArcaneQA (Gu and Su, 2022)</td><td>T5-base</td><td>73.7</td><td>31.8</td><td>-</td><td>-</td></tr><tr><td>Pangu (Gu et al., 2023)</td><td>T5-3B</td><td>83.4</td><td>57.7</td><td>-</td><td>-</td></tr><tr><td>KB-Binder-R (Li et al., 2023b)</td><td>GPT-3.5-turbo</td><td>58.5</td><td>32.5</td><td>-</td><td>99.5</td></tr><tr><td>KB-Coder-R (Nie et al., 2023)</td><td>GPT-3.5-turbo</td><td>61.3</td><td>36.6</td><td>-</td><td>-</td></tr><tr><td>KG-Agent (Jiang et al., 2024)</td><td>Llama2-7B</td><td>86.1</td><td>-</td><td>-</td><td>-</td></tr><tr><td>DARA* (Fang et al., 2024)</td><td>Llama2-7B</td><td>77.7</td><td>62.7</td><td>-</td><td>-</td></tr><tr><td colspan="6">dozens of annotations (ICL)</td></tr><tr><td>KB-Binder (Li et al., 2023b)</td><td>GPT-3.5-turbo</td><td>50.8</td><td>34.5</td><td>4.2</td><td>96.4</td></tr><tr><td>KB-Coder (Nie et al., 2023)</td><td>GPT-3.5-turbo</td><td>51.7</td><td>35.8</td><td>-</td><td>-</td></tr><tr><td>Pangu (ICL) (Li et al., 2023b)</td><td>Codex</td><td>53.5</td><td>35.4</td><td>18.1</td><td>-</td></tr><tr><td colspan="6">one annotation (Agent Training-free)</td></tr><tr><td>AgentBench (Liu et al., 2024)</td><td>GPT-3.5-turbo</td><td>30.5</td><td>25.1</td><td>25.9</td><td>-</td></tr><tr><td>MIDDLEWARE (Gu et al., 2024)</td><td>GPT-3.5-turbo</td><td>-</td><td>-</td><td>34.3</td><td>-</td></tr><tr><td>QueryAgent (Huang et al., 2024)</td><td>GPT-3.5-turbo</td><td>60.5</td><td>50.8</td><td>-</td><td>98.5</td></tr><tr><td colspan="6">zero annotation (ICL)</td></tr><tr><td>BYOKG (Agarwal et al., 2024)</td><td>MPT-7B</td><td>46.5</td><td>-</td><td>-</td><td>56.5</td></tr><tr><td>TARGA (Ours)</td><td>QWen-2.5-7B-Instruct</td><td>69.0</td><td>50.6</td><td>46.5</td><td>85.7</td></tr><tr><td></td><td>QWen-2.5-72B-Instruct</td><td>70.6</td><td>54.1</td><td>57.3</td><td>99.8</td></tr><tr><td></td><td>GPT-3.5-turbo</td><td>68.9</td><td>51.0</td><td>52.7</td><td>96.5</td></tr><tr><td></td><td>GPT-4-turbo</td><td>69.8</td><td>52.5</td><td>51.4</td><td>99.9</td></tr></table>
|
| 148 |
+
|
| 149 |
+
Table 1: Main results of KBQA performance, categorized by the amount of required annotated data example. Seq2Seq Fine-tuning / ICL / Agent Fine-tuning indicates different reasoning paradigms (split by the dashed line). Bold values highlight the best among non-fine-tuned models. * indicates using golden entity linking result.
|
| 150 |
+
|
| 151 |
+
from the training set, and retrieved by similarity from the synthetic data by TARGA, respectively. The random and similarity settings can be viewed as reflections of the previous ICL-based and the retrieval-augmented ICL-based methods. Results are illustrated in Figure 3. With only one demonstration, our synthetic setting significantly outperforms the random and retrieval settings with 20 shots, suggesting the high quality of our synthetic data. Moreover, the growth curve in the synthetic setting (blue line) is relatively flat as the number of demonstrations increases. After reaching 7 shots, the synthetic setting exhibits almost no further improvement, while the other two settings continue to show growth even after reaching 20 shots, highlighting the data efficiency of our methods.
|
| 152 |
+
|
| 153 |
+
# 4.3.2 Robustness Analyses
|
| 154 |
+
|
| 155 |
+
To further validate the robustness of our approach in real-world scenarios, we conduct an adversarial experiment designed to simulate conditions of poor synthetic data quality. Specifically, the attack involves randomly replacing one relation in a candidate query. We compare the same three settings as in Section 4.3.1. As in Figure 4, our method exhibits significantly stronger robustness under adversarial conditions. Even when all demonstrations
|
| 156 |
+
|
| 157 |
+

|
| 158 |
+
Figure 4: Performance under attack setting on 1,000 randomly sampled GrailQA questions. Attack level indicates how many demonstrations have been corrupted.
|
| 159 |
+
|
| 160 |
+
were compromised, the performance degradation of TARGA was only around $25\%$ . In contrast, the other setups experience a sharp decline: the F1 scores of similarity-based setup drop by about $40\%$ , and the random setting even falls by approximately $75\%$ . This further demonstrates the superior robustness of our method compared to other approaches. We also provide another analysis about when corrupt entities in demonstrations in Appendix F.2
|
| 161 |
+
|
| 162 |
+
# 4.3.3 Performance on Different Generalization Levels
|
| 163 |
+
|
| 164 |
+
We experiment on GrailQA to compare the performance on different generalization levels (preliminary in Appendix D). To make a fair comparison
|
| 165 |
+
|
| 166 |
+
<table><tr><td>Methods</td><td>I.I.D.</td><td>Comp.</td><td>Zero.</td><td>Avg.</td></tr><tr><td>KB-BINDER</td><td>48.3</td><td>48.8</td><td>41.8</td><td>50.8</td></tr><tr><td>KB-CODER</td><td>49.3</td><td>49.6</td><td>43.2</td><td>51.7</td></tr><tr><td>TARGA</td><td>68.4</td><td>62.2</td><td>71.7</td><td>69.0</td></tr><tr><td>KB-BINDER-R</td><td>80.6</td><td>53.6</td><td>50.7</td><td>58.5</td></tr><tr><td>KB-CODER-R</td><td>81.0</td><td>57.8</td><td>54.1</td><td>61.3</td></tr><tr><td>TARGA-R</td><td>80.8</td><td>63.6</td><td>71.6</td><td>71.9</td></tr></table>
|
| 167 |
+
|
| 168 |
+
with the “-R” setting of previous methods, we also implemented a “-R” version of TARGA where the entire training set was incorporated into our demonstration sampling pool. Specifically, we retain the top 5 most similar examples from the training set and the top 5 most similar synthetic data instances jointly as demonstrations.
|
| 169 |
+
|
| 170 |
+
As shown in Table 2, under the I.I.D setting, TARGA-R benefits from the inclusion of high-quality annotations (training set), achieving similar performance to previous “-R” methods. However, for the more challenging Compositional and Zeroshot settings, where similar questions are absent from the pre-collected training set, the performance of previous methods in the “-R” setup dramatically decreases by approximately 30 in F1. In contrast, TARGA shows no significant decline, demonstrating its strong generalization ability in scenarios that more closely resemble real-world situations where relevant corpora are unavailable. Notably, under the zero-shot setting, TARGA derives minimal improvements from the training set, suggesting that pre-collecting a substantial corpus of examples is ultimately an incomplete solution and tends to fail when confronted with real, unseen problems.
|
| 171 |
+
|
| 172 |
+
# 4.3.4 Efficiency analysis
|
| 173 |
+
|
| 174 |
+
For a practical QA system, high efficiency is also a key characteristic. Following Huang et al. (2024), we analyzed three efficiency metrics: TPQ, QPQ, and CPQ, as shown in Table 3. Regarding TPQ, our method significantly outperforms previous methods with only 4.5 seconds response time on GrailQA (detailed in Appendix F.4). Regarding QPQ, Agent-based methods have an inherent advantage. However, comparatively speaking, the overhead of QPQ remains relatively inexpensive than the other two metrics. Compared to KB-
|
| 175 |
+
|
| 176 |
+
Table 2: Results of different generalization levels on GrailQA. “-R” indicates a version accessing the whole training set for similarity retrieval. Comp. and Zero. indicates the Compositional and Zero-shot setting on GrailQA, respectively. Avg. denotes the average F1.
|
| 177 |
+
|
| 178 |
+
<table><tr><td rowspan="2">Methods</td><td colspan="3">GrailQA</td><td colspan="3">GraphQ</td></tr><tr><td>TPQ</td><td>QPQ</td><td>CPQ</td><td>TPQ</td><td>QPQ</td><td>CPQ</td></tr><tr><td>KB-BINDER</td><td>51.2</td><td>3,297.7</td><td>0.010</td><td>84.0</td><td>2,113.8</td><td>0.024</td></tr><tr><td>AgentBench</td><td>40.0</td><td>7.4</td><td>0.034</td><td>65.1</td><td>7.2</td><td>0.035</td></tr><tr><td>QueryAgent</td><td>16.6</td><td>5.2</td><td>0.019</td><td>15.3</td><td>6.2</td><td>0.021</td></tr><tr><td>TARGA</td><td>4.5</td><td>256.8</td><td>0.000</td><td>13.0</td><td>1,094.6</td><td>0.000</td></tr></table>
|
| 179 |
+
|
| 180 |
+
Table 3: Efficiency analysis with ICL-based (KB-Binder) and Agent-based methods (AgentBench and QueryAgent). TPQ, QPQ, and CPQ denote the time cost (seconds), number of SPARQL query times, and open-source model invocation cost ($) per question.
|
| 181 |
+
|
| 182 |
+
Binder, which also employs the ICL paradigm, our approach demonstrates a marked superiority on QPQ. This is primarily because our synthetic demonstrations are highly aligned with the target question, enabling the generated logic forms to be executable without any post-processing in most cases. Conversely, since previous methods can not always retrieve the relevant candidate query in the training set, the generated logic forms are often not executable. Consequently, the logic form necessitates stepwise binding to valid KB items, which leads to a large demand for queries.
|
| 183 |
+
|
| 184 |
+
In terms of CPQ, agent-based methods inherently face challenges due to the lengthy trajectory of demonstrations and the need for multiple calls of LLM. Since our method does not rely on close-sourced LLM, the CPQ is zero. If compared with the consumed tokens, TARGA uses significantly fewer tokens because it requires fewer examples as demonstrations and does not use self-consistency. As a result, the token cost is only about 1/10 that of other ICL-based methods. We also provide a detailed analysis of token consumption in the Appendix F.6 and more detail in Appendix F.5.
|
| 185 |
+
|
| 186 |
+
# 4.3.5 Performance on different sizes of LLM
|
| 187 |
+
|
| 188 |
+
In real-world applications, large and powerful LLMs are not always accessible or affordable. Therefore, we further analyze the performance of various methods across different model sizes. We compare the Agent method (QueryAgent), ICL method (KB-Binder), and the retrieval-augmented ICL method (KB-BINDER-R). As shown in Table 4, our approach demonstrates remarkable adaptability from qwen-1.5B-instruct to gpt-4o-mini. With just the 1.5B model, our method already surpasses the previous best-performing method, while at 7B, it only slightly lags behind the closed-source model. The Agent method has strong generalization capabilities but is heavily reliant on the planning and
|
| 189 |
+
|
| 190 |
+
<table><tr><td></td><td>1.5B</td><td>7B</td><td>32B</td><td>72B</td><td>4o-mini</td><td>Δ</td></tr><tr><td>QueryAgent</td><td>10.3</td><td>16.1</td><td>50.8</td><td>58.5</td><td>62.3</td><td>52.0</td></tr><tr><td>KB-Binder</td><td>20.2</td><td>39.8</td><td>51.3</td><td>50.6</td><td>47.0</td><td>31.1</td></tr><tr><td>KB-Binder-R</td><td>27.6</td><td>55.0</td><td>59.4</td><td>63.8</td><td>58.0</td><td>36.3</td></tr><tr><td>TARGA</td><td>61.3</td><td>65.3</td><td>67.4</td><td>67.5</td><td>67.7</td><td>9.4</td></tr></table>
|
| 191 |
+
|
| 192 |
+
Table 4: The performance on GrailQA with different base model sizes. The 1.5B, 7B, 32B, and 72B represent the Qwen 2.5 instruct models family, while 4o-mini indicates GPT-4o-mini. We experiment on 500 random sampling questions. $\Delta$ indicates the max performance gap between different models.
|
| 193 |
+
|
| 194 |
+
<table><tr><td></td><td>GrailQA</td><td>GraphQ</td><td>KBQA-Agent</td></tr><tr><td>TARGA</td><td>69.0</td><td>50.6</td><td>46.5</td></tr><tr><td>w/o Query Textification</td><td>64.9</td><td>46.6</td><td>39.6</td></tr><tr><td>w/o Re-Ranking</td><td>59.9</td><td>38.7</td><td>19.3</td></tr><tr><td>w/o Synthetic Question</td><td>67.3</td><td>49.5</td><td>45.5</td></tr></table>
|
| 195 |
+
|
| 196 |
+
self-correction abilities of the most advanced LLM, which smaller models do not excel at. For models below 72B, the performance of the QueryAgent is essentially unusable. For the 72B model, the performance of QueryAgent is still inferior to that of the ICL method using a model of the same size and ultimately failing to exceed closed-source model performance. Regarding the ICL methods, previous works typically experiment on the strongest closed-source models without testing their performance on open-source models. We demonstrate here the performance of ICL on open-source models, revealing that the latest open-source models can reach or even surpass the capabilities of the GPT series models in certain tasks. This provides a feasible assurance for continuing research in semantic parsing based on closed-source models.
|
| 197 |
+
|
| 198 |
+
# 4.3.6 Ablation Study
|
| 199 |
+
|
| 200 |
+
Table 5 presents the impact of distinct components on model performance across three datasets. Compared to the full model, removing the query text- tification component leads to a noticeable drop, particularly on KBQA-Agent (-6.9), highlighting the importance of bridging the gap between the text embedding model and logic form. The removal of the re-ranking component results in the largest performance decrease, with reductions of 9.1, 11.9, and 27.2 on GrailQA, GraphQ, and KBQA-Agent, respectively, underscoring the importance of the re-ranking step. In contrast, excluding synthetic question generation yields more modest declines, suggesting it is less critical than the other compo
|
| 201 |
+
|
| 202 |
+
Table 5: Ablation study of each component on GrailQA.
|
| 203 |
+
|
| 204 |
+
<table><tr><td>Methods</td><td>Acc.</td></tr><tr><td>RESDNSL-3B + NATSQL* (Li et al., 2023a)</td><td>79.9</td></tr><tr><td>T5-3B+PICARD* (Scholak et al., 2021)</td><td>75.1</td></tr><tr><td>StructGPT (ChatGPT) (Jiang et al., 2023)</td><td>65.6</td></tr><tr><td>Readi (Cheng et al., 2024)</td><td>66.2</td></tr><tr><td>AgentBench (Liu et al., 2024)</td><td>57.6</td></tr><tr><td>QueryAgent (Huang et al., 2024)</td><td>72.5</td></tr><tr><td>TARGA</td><td>75.5</td></tr></table>
|
| 205 |
+
|
| 206 |
+
Table 6: Results on WikiSQL. * indicates fine-tuned.
|
| 207 |
+
|
| 208 |
+
nents but still beneficial for KBQA-Agent. It is unexpected, but from another aspect, it indicates that even only using the synthetic query as the demonstration the performance is also competitive.
|
| 209 |
+
|
| 210 |
+
# 4.3.7 Transferability to Text2SQL
|
| 211 |
+
|
| 212 |
+
We adapted our framework to the Text2SQL task to demonstrate the generality of our approach in other semantic parsing tasks. Employing the WikisSQL dataset, we compare TARGA with both the fine-tuned and non-fine-tuned methods. Among them, StructGPT and Readi are 32-shot and 7-shot methods, respectively. AgentBench and QueryAgent both use 1 shot. As shown in Table 6, with merely 10 synthetic examples as demonstrations, our method surpasses prior methods with 32 manually annotated examples and also outperforms the best 1-shot method, all while incurring a lower cost and smaller model. Besides, TARGA can even surpass a fine-tuned method with 3B model.
|
| 213 |
+
|
| 214 |
+
# 5 Conclusion
|
| 215 |
+
|
| 216 |
+
In this paper, we explore two critical challenges in the semantic parsing task: reliance on annotated data and poor generalization on non-I.I.D. cases. We proposed a novel method called TARGA, which automatically synthesizes examples that are most relevant to the test data and utilizes them as demonstrations for in-context learning. Remarkably, TARGA achieves the best performance among all non-fine-tuned methods across three complex KBQA datasets and one Text2SQL dataset, especially on GrailQA and KBQA-Agent (7.7 and 12.2 F1 points, respectively). While achieving impressive performance, TARGA also exhibits the following practical properties: 1) It does not require any annotated data. 2) It is effective even with a model size of just 7B parameters. 3) The synthetic data is generated online. 4) It exhibits superior generalization, robustness, and speed. This work highlights the potential of leveraging synthetic data in seman
|
| 217 |
+
|
| 218 |
+
tic parsing, and we hope that TARGA can serve as a valuable foundation for developing more practical systems in this field.
|
| 219 |
+
|
| 220 |
+
# Limitations
|
| 221 |
+
|
| 222 |
+
We would like to discuss some limitations of our work. First, in this paper, we validate TARGA on two specific semantic parsing tasks: KBQA and Text2SQL. While these tasks demonstrate the potential of our approach, further exploration across a broader range of tasks that involve transforming natural language into logical forms could strengthen the generalizability of TARGA. Additionally, we have not yet investigated the feasibility of our synthetic data generation method in other paradigms, such as agent-based or fine-tuned models. We would like to adapt TARGA to these paradigms in future work.
|
| 223 |
+
|
| 224 |
+
# Acknowledgements
|
| 225 |
+
|
| 226 |
+
This work is supported by the National Natural Science Foundation of China (NSFC) under Grant No. 62072224. The authors would like to thank all anonymous reviewers for their advice.
|
| 227 |
+
|
| 228 |
+
# References
|
| 229 |
+
|
| 230 |
+
Dhruv Agarwal, Rajarshi Das, Sopan Khosla, and Rashmi Gangadharaiah. 2024. Bring your own KG: Self-supervised program synthesis for zero-shot KGQA. In Findings of the Association for Computational Linguistics: NAACL 2024, pages 896-919.
|
| 231 |
+
Kurt Bollacker, Colin Evans, Praveen Paritosh, Tim Sturge, and Jamie Taylor. 2008. Freebase: a collaboratively created graph database for structuring human knowledge. In Proceedings of the 2008 ACM SIGMOD International Conference on Management of Data, SIGMOD '08, page 1247-1250, New York, NY, USA. Association for Computing Machinery.
|
| 232 |
+
Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. In Advances in Neural Information Processing Systems, pages 1877-1901.
|
| 233 |
+
Shulin Cao, Jiaxin Shi, Liangming Pan, Lunyiu Nie, Yutong Xiang, Lei Hou, Juanzi Li, Bin He, and Hanwang Zhang. 2022. KQA pro: A dataset with explicit
|
| 234 |
+
|
| 235 |
+
compositional programs for complex question answering over knowledge base. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 6101-6119.
|
| 236 |
+
Jianlv Chen, Shitao Xiao, Peitian Zhang, Kun Luo, Defu Lian, and Zheng Liu. 2024. Bge m3-embedding: Multi-lingual, multi-functionality, multi-granularity text embeddings through self-knowledge distillation. Preprint, arXiv:2402.03216.
|
| 237 |
+
Sitao Cheng, Ziyuan Zhuang, Yong Xu, Fangkai Yang, Chaoyun Zhang, Xiaoting Qin, Xiang Huang, Ling Chen, Qingwei Lin, Dongmei Zhang, Saravan Rajmohan, and Qi Zhang. 2024. Call me when necessary: Llms can efficiently and faithfully reason over structured environments. Preprint, arXiv:2403.08593.
|
| 238 |
+
Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E. Gonzalez, Ion Stoica, and Eric P. Xing. 2023. Vicuna: An opensource chatbot impressing gpt-4 with $90\%$ * chatgpt quality.
|
| 239 |
+
Haishuo Fang, Xiaodan Zhu, and Iryna Gurevych. 2024. DARA: Decomposition-alignment-reasoning autonomous language agent for question answering over knowledge graphs. In Findings of the Association for Computational Linguistics: ACL 2024, pages 3406-3432, Bangkok, Thailand. Association for Computational Linguistics.
|
| 240 |
+
Williams Gregory. 2013. Sparql 1.1 service description. w3c recommendation. World Wide Web Consortium.
|
| 241 |
+
Yu Gu, Xiang Deng, and Yu Su. 2023. Don't generate, discriminate: A proposal for grounding language models to real-world environments. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 4928-4949.
|
| 242 |
+
Yu Gu, Sue Kase, Michelle Vanni, Brian Sadler, Percy Liang, Xifeng Yan, and Yu Su. 2021. Beyond I.I.D.: Three levels of generalization for question answering on knowledge bases. The Web Conference 2021 - Proceedings of the World Wide Web Conference, WWW 2021, 2021:3477-3488.
|
| 243 |
+
Yu Gu, Yiheng Shu, Hao Yu, Xiao Liu, Yuxiao Dong, Jie Tang, Jayanth Srinivasa, Hugo Latapie, and Yu Su. 2024. Middleware for llms: Tools are instrumental for language agents in complex environments. Preprint, arXiv:2402.14672.
|
| 244 |
+
Yu Gu and Yu Su. 2022. ArcaneQA: Dynamic program induction and contextualized encoding for knowledge base question answering. In Proceedings of the 29th International Conference on Computational Linguistics, pages 1718-1731.
|
| 245 |
+
Xixin Hu, Xuan Wu, Yiheng Shu, and Yuzhong Qu. 2022. Logical form generation via multi-task learning for complex question answering over knowledge
|
| 246 |
+
|
| 247 |
+
bases. In Proceedings of the 29th International Conference on Computational Linguistics, pages 1687-1696.
|
| 248 |
+
Xiang Huang, Sitao Cheng, Yuheng Bao, Shanshan Huang, and Yuzhong Qu. 2023a. MarkQA: A large scale KBQA dataset with numerical reasoning. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 10241-10259, Singapore. Association for Computational Linguistics.
|
| 249 |
+
Xiang Huang, Sitao Cheng, Shanshan Huang, Jiayu Shen, Yong Xu, Chaoyun Zhang, and Yuzhong Qu. 2024. Queryagent: A reliable and efficient reasoning framework with environmental feedback-based self-correction. Preprint, arXiv:2403.11886.
|
| 250 |
+
Xiang Huang, Sitao Cheng, Yiheng Shu, Yuheng Bao, and Yuzhong Qu. 2023b. Question decomposition tree for answering complex questions over knowledge bases. Preprint, arXiv:2306.07597.
|
| 251 |
+
Jinhao Jiang, Kun Zhou, Zican Dong, Keming Ye, Xin Zhao, and Ji-Rong Wen. 2023. StructGPT: A general framework for large language model to reason over structured data. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 9237-9251.
|
| 252 |
+
Jinhao Jiang, Kun Zhou, Wayne Xin Zhao, Yang Song, Chen Zhu, Hengshu Zhu, and Ji-Rong Wen. 2024. Kg-agent: An efficient autonomous agent framework for complex reasoning over knowledge graph. Preprint, arXiv:2402.11163.
|
| 253 |
+
Jeff Johnson, Matthijs Douze, and Hervé Jégou. 2019. Billion-scale similarity search with GPUs. IEEE Transactions on Big Data, 7(3):535-547.
|
| 254 |
+
Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. 2023. Efficient memory management for large language model serving with pagedattention. Preprint, arXiv:2309.06180.
|
| 255 |
+
Haoyang Li, Jing Zhang, Cuiping Li, and Hong Chen. 2023a. Resdnsq: Decoupling schema linking and skeleton parsing for text-to-sqI. In AAAI.
|
| 256 |
+
Tianle Li, Xueguang Ma, Alex Zhuang, Yu Gu, Yu Su, and Wenhu Chen. 2023b. Few-shot in-context learning on knowledge base question answering. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 6966-6980.
|
| 257 |
+
Zhenyu Li, Sunqi Fan, Yu Gu, Xiuxing Li, Zhichao Duan, Bowen Dong, Ning Liu, and Jianyong Wang. 2023c. Flexkbq: A flexible llm-powered framework for few-shot knowledge base question answering. Preprint, arXiv:2308.12060.
|
| 258 |
+
|
| 259 |
+
Xiao Liu, Hao Yu, Hanchen Zhang, Yifan Xu, Xuanyu Lei, Hanyu Lai, Yu Gu, Hangliang Ding, Kaiwen Men, Kejuan Yang, Shudan Zhang, Xiang Deng, Aohan Zeng, Zhengxiao Du, Chenhui Zhang, Sheng Shen, Tianjun Zhang, Yu Su, Huan Sun, Minlie Huang, Yuxiao Dong, and Jie Tang. 2024. Agent-bench: Evaluating LLMs as agents. In The Twelfth International Conference on Learning Representations.
|
| 260 |
+
Zhijie Nie, Richong Zhang, Zhongyuan Wang, and Xudong Liu. 2023. Code-style in-context learning for knowledge-based question answering. Preprint, arXiv:2309.04695.
|
| 261 |
+
Torsten Scholak, Nathan Schucher, and Dzmitry Bahdanau. 2021. PICARD: Parsing incrementally for constrained auto-regressive decoding from language models. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 9895-9901, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 262 |
+
Yiheng Shu, Zhiwei Yu, Yuhan Li, Borje Karlsson, Tingting Ma, Yuzhong Qu, and Chin-Yew Lin. 2022. TIARA: Multi-grained retrieval for robust question answering over large knowledge base. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 8108-8121.
|
| 263 |
+
Yu Su, Huan Sun, Brian Sadler, Mudhakar Srivatsa, Izzeddin Gur, Zenghui Yan, and Xifeng Yan. 2016. On generating characteristic-rich question sets for QA evaluation. In Empirical Methods in Natural Language Processing (EMNLP), Austin, Texas, USA.
|
| 264 |
+
Alon Talmor and Jonathan Berant. 2018. The web as a knowledge-base for answering complex questions. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 641-651, New Orleans, Louisiana.
|
| 265 |
+
Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. 2023. Stanford alpaca: An instruction-following llama model. https://github.com/tatsu-lab/stanford_alpaca.
|
| 266 |
+
Yizhong Wang, Yeganeh Kordi, Swaroop Mishra, Alisa Liu, Noah A. Smith, Daniel Khashabi, and Hannaneh Hajishirzi. 2023. Self-instruct: Aligning language models with self-generated instructions. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 13484-13508.
|
| 267 |
+
Xi Ye, Semih Yavuz, Kazuma Hashimoto, Yingbo Zhou, Caiming Xiong, and Computer Science. 2022. RNGKBQA: Generation Augmented Iterative Ranking for Knowledge Base Question Answering. In Proceedings of the 60th Annual Meeting of the Association
|
| 268 |
+
|
| 269 |
+
for Computational Linguistics (Volume 1: Long Papers), ACL 2022, Dublin, Ireland, May 22-27, 2022, pages 6032-6043.
|
| 270 |
+
Wen-tau Yih, Matthew Richardson, Chris Meek, Ming-Wei Chang, and Jina Suh. 2016. The value of semantic parse labeling for knowledge base question answering. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 201–206.
|
| 271 |
+
Yuyu Zhang, Hanjun Dai, Zornitsa Kozareva, Alexander Smola, and Le Song. 2018. Variational reasoning for question answering with knowledge graph. In Proceedings of the AAAI conference on artificial intelligence.
|
| 272 |
+
Victor Zhong, Caiming Xiong, and Richard Socher. 2017. Seq2sql: Generating structured queries from natural language using reinforcement learning. CoRR, abs/1709.00103.
|
| 273 |
+
|
| 274 |
+
# A Preliminary
|
| 275 |
+
|
| 276 |
+
# A.1 Knowledge Base Question Answering
|
| 277 |
+
|
| 278 |
+
We introduce related concepts and the task of knowledge base question answering as follows. Let $E$ be a set of entities, $P$ be a set of relations, $C$ be a set of classes, and $I$ be a set of literals. A knowledge base $\mathcal{K} \subseteq E \times P \times (E \cup C \cup I)$ is a set of triples $(s, p, o)$ , where $s \in E$ is a subject entity, $p \in P$ is a predicate, and $o \in (E \cup C \cup I)$ is an object entity, class or literal value.
|
| 279 |
+
|
| 280 |
+
The task of knowledge base question answering can be formalized as learning a function $f$ that takes a natural language question $q$ as input, and outputs a structured query $q' = f(q)$ in a formal language such as SPARQL (Gregory, 2013). The structured query $q'$ should ideally encode the entities, relations, and constraints specified by the input question $q$ , such that executing $q'$ over the knowledge base $\mathcal{K}$ yields the correct answer of $q$ .
|
| 281 |
+
|
| 282 |
+
# A.2 In-Context Learning
|
| 283 |
+
|
| 284 |
+
In-context learning (Brown et al., 2020) allows LLMs to perform new tasks by simply observing examples provided within the input, without updating their internal parameters. Intuitively, the model "learns" from the context and uses it to generate appropriate responses for similar tasks, relying on patterns it recognizes from the given examples.
|
| 285 |
+
|
| 286 |
+
More precisely, let $[x_1, x_2, \dots, x_n]$ be a sequence of input tokens representing natural language texts, and let $[y_1, y_2, \dots, y_n]$ be a corresponding sequence of output tokens representing the desired task, which in our context are structured queries. A LLM, denoted as $f_{\theta}$ , is a function parameterized by $\theta$ , which takes an input sequence and predicts the next token or sequence of tokens. In-context learning refers to the ability of a pretrained LLM to learn and adapt to a specific task purely by conditioning on a sequence of examples $S = [(x_1, y_1), (x_2, y_2), \dots, (x_n, y_n)]$ , provided as part of the input context, without updating the model parameter $\theta$ . In contrast to traditional learning paradigms that require parameter updates via gradient descent, the LLM uses the provided examples to infer the underlying task and generate predictions for a new input $x_{n+1}$ .
|
| 287 |
+
|
| 288 |
+
# B Datasets
|
| 289 |
+
|
| 290 |
+
We conduct experiments on four KBQA datasets and one Text2SQL dataset, their statistics are shown in Table 7.
|
| 291 |
+
|
| 292 |
+
<table><tr><td>Datasets</td><td>Train</td><td>Dev</td><td>Test</td></tr><tr><td>GRAILQA</td><td>44,337</td><td>6,763</td><td>13,231</td></tr><tr><td>GRAPHQ</td><td>2,381</td><td>-</td><td>2,395</td></tr><tr><td>KBQA-Agent</td><td>-</td><td>-</td><td>500</td></tr><tr><td>METAQA-3HOP</td><td>114,196</td><td>14,274</td><td>14,274</td></tr><tr><td>WIKISQL</td><td>56,355</td><td>8,421</td><td>15,878</td></tr></table>
|
| 293 |
+
|
| 294 |
+
Table 7: Statistics of datasets.
|
| 295 |
+
|
| 296 |
+
- GrailQA (Gu et al., 2021) is one of the most popular complex KBQA datasets. It divides the dataset into three levels of generalization, i.e., I.I.D, Compositional, and Zero-shot.
|
| 297 |
+
- GraphQ (Su et al., 2016) is a challenging dataset that only consists of Compositional questions.
|
| 298 |
+
- KBQA-Agent (Gu et al., 2024) is a mixed dataset of the most difficult questions from four datasets (i.e., GrailQA (Gu et al., 2021), ComplexWebQuesiton (Talmor and Berant, 2018), GraphQ (Su et al., 2016), and WebQSP (Yih et al., 2016)).
|
| 299 |
+
MetaQA-3Hop (Zhang et al., 2018) is the most difficult 3-hop subset of a large-scale KBQA dataset based on Wiki-Movies KG.
|
| 300 |
+
- WikiSQL (Zhong et al., 2017) is a large-scale complex Text2SQL dataset which requiring comparison, aggregation and arithmetic operations.
|
| 301 |
+
|
| 302 |
+
# C Baselines
|
| 303 |
+
|
| 304 |
+
# C.1 Seq2Seq Fine-tuning Methods
|
| 305 |
+
|
| 306 |
+
- ArcaneQA (Gu and Su, 2022) is a generation-based method that incrementally synthesizes a program by dynamically predicting a sequence of subprograms. It prunes the search space by constrained decoding.
|
| 307 |
+
- Pangu (Gu et al., 2023) leverages the discrimination ability of language models to build queries in an incremental manner. It consists of a symbolic agent to collect valid candidate plans and an LM to select the most likely one.
|
| 308 |
+
|
| 309 |
+
# C.2 ICL-based Method
|
| 310 |
+
|
| 311 |
+
- Pangu-ICL (Gu et al., 2023) is a ICL version of Pangu. The result is based on output distribution of the LLMs, which require access to model parameters.
|
| 312 |
+
|
| 313 |
+
- KB-Binder (Li et al., 2023b) propose an ICL-based method for few-shot KBQA by feeding LLM with some (question, S-expression) pairs.
|
| 314 |
+
- KB-Coder (Nie et al., 2023) further optimizes KB-Binder by changing the target format from S-expression to code-style logic form.
|
| 315 |
+
- Readi (Cheng et al., 2024) propose a Reasoning-then-Editing framework that initially generates a reasoning path given a query, then instantiates the path. Editing is triggered only when necessary.
|
| 316 |
+
- BYOKG (Agarwal et al., 2024) does not need manually annotated dataset. It first explores the KB to collect synthetic datasets within a day (e.g., 10K data in 10 hours), then uses the synthetic dataset for bottom-up reasoning.
|
| 317 |
+
|
| 318 |
+
# C.3 Agent Fine-tuning Methods
|
| 319 |
+
|
| 320 |
+
- KG-Agent (Jiang et al., 2024) enables a small LLM to actively make decisions until finishing the reasoning process over KGs through fine-tuning an Agent.
|
| 321 |
+
- DARA (Fang et al., 2024) propose a Decomposition-Alignment-Reasoning Autonomous Language Agent which can be efficiently trained with a small number of high-quality reasoning trajectories.
|
| 322 |
+
|
| 323 |
+
# C.4 Agent-based Method (Training-free)
|
| 324 |
+
|
| 325 |
+
- AgentBench (Liu et al., 2024) model KBQA as a tool learning task and outfitting LLM with an array of KG-querying tools such as "get Relation", "argmax" and "intersection".
|
| 326 |
+
- MIDDLEWARE (Gu et al., 2024) design customized tools acting as middleware between LLMs and complex environments. They also incorporate decoupled generation and error feedback to boost performance.
|
| 327 |
+
- QueryAgent (Huang et al., 2024) step-by-step build the target query and use an environmental feed-based self-correction method to reduce hallucination.
|
| 328 |
+
|
| 329 |
+
# D Levels of Generalization
|
| 330 |
+
|
| 331 |
+
In the context of KBQA, the three levels of generalization—I.I.D. generalization, compositional generalization, and zero-shot generalization—refer to the capability of models to handle increasingly challenging and diverse types of questions (Gu et al., 2021). In particular, I.I.D. generalization refers to the model's ability to correctly answer questions that are sampled from the same distribution as the training set, which assumes that the test data follow similar patterns and schema. On top of that, compositional generalization refers to the model's ability to handle novel combinations of KB items (e.g., entities and relations) that were seen during training, but in configurations that the model has not encountered before. Finally, zero-shot generalization refers to the model's ability to answer questions involving entirely new KB items, such as unseen entities and relations that were never presented in the training set.
|
| 332 |
+
|
| 333 |
+
Gu et al. (2021) argue that relying solely on datasets under I.I.D. settings limits the practical use of KBQA models, as real-world questions often involve unfamiliar entities or require novel reasoning. This limitation is evident in the degraded performance of existing KBQA methods under compositional and zero-shot settings compared to I.I.D. settings. Therefore, practical KBQA models should be equipped with built-in generalization capabilities across all three levels to better handle diverse, real-world questions.
|
| 334 |
+
|
| 335 |
+
# E More Details
|
| 336 |
+
|
| 337 |
+
# E.1 Other Experiment Settings
|
| 338 |
+
|
| 339 |
+
TARGA and Pangu used 10 demonstrations across all datasets. KB-Binder and KB-Coder used 40 shots for GrailQA, 100 shots for GraphQ, and 5 shots for MetaQA, with KB-Binder employing 20 shots for KBQA-Agent. AgentBench, MIDDLE-WARE, and QueryAgent are all 1-shot methods. The experiments using models with 1.5B, 7B, 32B, and 72B parameters were conducted on 1, 1, 4, and 8 A100 GPUs, respectively.
|
| 340 |
+
|
| 341 |
+
# E.2 Entity Linking Detail
|
| 342 |
+
|
| 343 |
+
The detailed entity linking results of all compared methods are listed in Table 8. For KBQA-Agent and MetaQA-3Hop, all compared methods use golden linking results. For GrailQA and GraphQ, most compared methods use the entity linking re
|
| 344 |
+
|
| 345 |
+
<table><tr><td>Method</td><td>GrailQA</td><td>GraphQ</td><td>KBQA-Agent</td><td>MetaQA-3Hop</td></tr><tr><td>KB-Binder</td><td>FACC1+BM25</td><td>FACC1+BM25</td><td>Golden</td><td>Exact match</td></tr><tr><td>KB-Coder</td><td>FACC1+SimCSE</td><td>FACC1+SimCSE</td><td>-</td><td>-</td></tr><tr><td>Pangu(ICL)</td><td>Pangu</td><td>Pangu</td><td>Golden</td><td>-</td></tr><tr><td>MIDDLEWARE</td><td>-</td><td>-</td><td>Golden</td><td>-</td></tr><tr><td>AgentBench</td><td>Pangu</td><td>Pangu</td><td>Golden</td><td>-</td></tr><tr><td>QueryAgent</td><td>Pangu</td><td>Pangu</td><td>-</td><td>Exact match</td></tr><tr><td>TARGA</td><td>Pangu</td><td>Pangu</td><td>Golden</td><td>Exact match</td></tr></table>
|
| 346 |
+
|
| 347 |
+
sult by Pangu (Gu et al., 2023). Therefore, we follow their setting to make a fair comparison.
|
| 348 |
+
|
| 349 |
+
Among all the methods compared, KB-Binder and KB-Coder chose a pipeline that was different from the other methods. Other methods first get the entity linking results and then generate logic forms based on them. KB-Binder and KB-Coder first generate a logic form draft and then bind each KB item in the logic form draft to the knowledge base. For KB-Binder and KB-Coder, the elements requiring linking depend on the generated draft, making it less suitable for directly using the entity linking results as other methods.
|
| 350 |
+
|
| 351 |
+
# E.3 Logic Form Design
|
| 352 |
+
|
| 353 |
+
Inspired by PyQL (Huang et al., 2023a), we designed a simplified logical form for constructing queries, which uses a series of functions for semantic expression, making it easier for LLMs to learn and enabling seamless translation into SPARQL. Table 10 shows all functions that we used.
|
| 354 |
+
|
| 355 |
+
# E.4 Query Textification Detail
|
| 356 |
+
|
| 357 |
+
To improve the performance of the text embedding model, we transform the synthesized query into a format closer to natural language by implementing a simple yet effective rule-based parsing program. An example of query textification is provided in Table 12.
|
| 358 |
+
|
| 359 |
+
Specifically, we first replace the entities and relations in the triples with their labels, concatenating the subject, predicate, and object to create a description. For two nested descriptions (multi-hop), we represent them in a hierarchical form using "a have b". For two conjunction descriptions (multi-constraint), we connect the two parts with "and." We also applied some simple processing to the filters, such as using "more than" and "less than" to
|
| 360 |
+
|
| 361 |
+
connect comparison objects.
|
| 362 |
+
|
| 363 |
+
# E.5 Statistics of Query Construction
|
| 364 |
+
|
| 365 |
+
As shown in Table 9, we present the statistics of the synthetic query in Section 3.3.
|
| 366 |
+
|
| 367 |
+
Table 8: The detailed source of entity linking data for compared method. The original performance of AgentBench is based on the Golden entity linking result. For a fair comparison, we report the performance with the Pangu entity linking result re-implemented by QueryAgent (Huang et al., 2024) in Table 1.
|
| 368 |
+
|
| 369 |
+
<table><tr><td>Datasets</td><td>Size</td><td>Cvg.</td><td>TPQ</td><td>QPQ</td></tr><tr><td>GrailQA</td><td>17.4</td><td>0.79</td><td>2.99</td><td>256.8</td></tr><tr><td>GraphQ</td><td>89.3</td><td>0.69</td><td>11.41</td><td>1,094.6</td></tr><tr><td>KBQA-Agent</td><td>173.1</td><td>0.78</td><td>20.07</td><td>2,270.3</td></tr><tr><td>MetaQA-3Hop</td><td>25.9</td><td>1.00</td><td>0.05</td><td>56.1</td></tr><tr><td>WikiSQL</td><td>18.1</td><td>0.75</td><td>0.16</td><td>88.6</td></tr></table>
|
| 370 |
+
|
| 371 |
+
Table 9: Statistics of query construction. Size represents the average number of valid queries per question. Cvg. refers to coverage, indicating the proportion of questions with at least one correct $(\mathrm{F}1 = 1)$ in synthetic queries. TPQ and QPQ denote the running time (in seconds) and the number of query attempts per question, respectively.
|
| 372 |
+
|
| 373 |
+
# E.6 Natural Language Question Generation Detail
|
| 374 |
+
|
| 375 |
+
We directly use the pseudo-questions generated by query textification for building (query, question) pairs as demonstrations in QA phase, and the performance is good enough. We also experimented with using an LLM (GPT or Qwen) to generate questions during this phase, but the downstream QA performance remained nearly unchanged, with a difference of less than 0.5 F1. Moreover, leveraging an LLM to generate corresponding questions requires labeling a few examples as demonstrations and incurs an extra time cost (less than 1 second).
|
| 376 |
+
|
| 377 |
+
In fact, even without generating questions and using only the queries as demonstrations, the performance showed only a slight decline (see the ablation study in Table 6). We recommend choosing
|
| 378 |
+
|
| 379 |
+
between using rules or an LLM based on specific scenarios:
|
| 380 |
+
|
| 381 |
+
- If you want to use TARGA for ICL-style QA, the quality of question generation at this stage does not need to be particularly high. Heuristic rules are sufficient enough.
|
| 382 |
+
- If you want to construct standard parallel corpora for fine-tuning or other purposes, we recommend you use an LLM along with some demonstrations to generate higher-quality natural language questions.
|
| 383 |
+
|
| 384 |
+
# E.7 Prompt for Question Answering
|
| 385 |
+
|
| 386 |
+
We provide example prompts for TARGA on the KBQA and Text2SQL tasks In Tables 16 and 17. It consists of some synthetic demonstrations (NLQ-Query pairs) and the test question. For the KBQA task, we provide the entity linking results. For the Text2SQL task, we provide the headers of the table.
|
| 387 |
+
|
| 388 |
+
# F Further Analysis
|
| 389 |
+
|
| 390 |
+
# F.1 The performance difference between Compositional and zero-shot setting
|
| 391 |
+
|
| 392 |
+
In Table 2, we notice that the performance of the compositional setting is lower than the zero-shot setting for TARGA, but this trend is reversed for other compared methods. Our perspective is outlined as follows:
|
| 393 |
+
|
| 394 |
+
- This is a matter of relative performance: If the performance of TARGA on zero-shot performance is above the normal level, then compositional will appear lower than zero-shot, and vice versa for comparative methods. If the performance of other methods on zero-shot setting is very poor, the performance of compositional setting will appear relatively high.
|
| 395 |
+
- Setting aside whether the test questions are seen in the training set or not, there are significant inherent difficulty differences among the three generalization levels of GrailQA: compositional is the hardest, followed by i.i.d., and zero-shot is the easiest.
|
| 396 |
+
|
| 397 |
+
Firstly, we explain why other methods exhibit lower zero-shot performance:
|
| 398 |
+
|
| 399 |
+
The zero-shot setting implies that the given question contains entities or relationships not seen in the training set. The compositional setting involves combinations of entities and relationships that have
|
| 400 |
+
|
| 401 |
+
not been seen together, though each individual element exists in the training set. Note that the comparative methods we used are, to some degree, influenced by the training set. Retrieving several examples from the training set can still essentially cover all the elements needed to solve a question, but this is not the case with zero-shot. This may explain why compared methods exhibit lower zero-shot performance than compositional settings. Besides, for GraphQ, the $100\%$ Compositional dataset, TARGA exhibit more significant improvement compared to KB-Binder and KB-Coder than GrailQA (25% Compositional), indicating that TARGA does not harm the performance of the compositional setting.
|
| 402 |
+
|
| 403 |
+
Secondly, we explain why our compositional performance is lower than zero-shot:
|
| 404 |
+
|
| 405 |
+
We believe that the fundamental reason for this phenomenon lies in how the dataset is split and the inherent difficulty of the problems themselves. For TARGA, there is no substantial distinction between input questions, as each one is treated as an unseen question. However, the generalization level of a question is determined solely by whether it appears in the training set, irrespective of the question's inherent difficulty. As a result, TARGA serves as a fair model for evaluating a question's inherent difficulty, as it is unaffected by any static dataset distribution. We hypothesize that TARGA's performance across the three generalization levels reflects significant differences in difficulty within the GrailQA dataset, with the compositional setting being the most challenging, followed by i.i.d., and zero-shot being the easiest.
|
| 406 |
+
|
| 407 |
+
To support this hypothesis, Table 11 reports the average length of the final SPARQL queries for questions across the three generalization levels. In general, longer SPARQL queries correspond to more complex questions (i.e., higher difficulty). Compositional questions yield the longest queries and the lowest performance, whereas zero-shot questions are the simplest and achieve the highest performance. These statistical results strongly validate our earlier conjecture.
|
| 408 |
+
|
| 409 |
+
# F.2 Further Analysis on Robustness
|
| 410 |
+
|
| 411 |
+
In Section 4.3.2, we have analyzed the effect of randomly replacing relations in demonstrations. Here, we present the performance of randomly replacing entities in the demonstrations. Similarly to 4.3.2, we corrupt N demonstrations by replacing one entity with another randomly selected entity from the
|
| 412 |
+
|
| 413 |
+
<table><tr><td>Functions</td><td>Brief Description</td></tr><tr><td>triplet(s, p, o)</td><td>Add a condition that the subject s is linked to the object o via a relation p.</td></tr><tr><td>argmax(v)</td><td>Add a condition that the variable v must have the maximum value.</td></tr><tr><td>argmin(v)</td><td>Add a condition that the variable v must have the minimum value.</td></tr><tr><td>filter(v, op, value)</td><td>Add a condition that the variable v must meet, where the operator op is one of [<, >, <=, >=].</td></tr><tr><td>type(v, t)</td><td>Specify that the variable v belongs to the class (entity type) t.</td></tr><tr><td>count(v)</td><td>Set the count of variable v as the final answer.</td></tr><tr><td>answer(v)</td><td>Set the variable v as the final answer.</td></tr></table>
|
| 414 |
+
|
| 415 |
+
Table 10: Functions used in our logic form.
|
| 416 |
+
|
| 417 |
+
<table><tr><td>Generalization level</td><td>Difficulty</td><td>Performance</td></tr><tr><td>Compositional</td><td>5.1</td><td>62.2</td></tr><tr><td>I.I.D.</td><td>4.8</td><td>68.4</td></tr><tr><td>Zero-shot</td><td>4.5</td><td>71.7</td></tr></table>
|
| 418 |
+
|
| 419 |
+
Table 11: Difficulty and performance of TARGA across three generalization settings on GrailQA. The difficulty is measured by the average length of SPARQL queries, and the performance shows TARGA's F1 score.
|
| 420 |
+
|
| 421 |
+

|
| 422 |
+
Figure 5: Performance under attack setting(entity) on 1,000 randomly sampled GrailQA questions.
|
| 423 |
+
|
| 424 |
+
training set (with a candidate pool of 32K entities). The results in Figure 5 indicate that replacing the entity has a minimal impact across all three settings.
|
| 425 |
+
|
| 426 |
+
# F.3 Further analysis on ranking
|
| 427 |
+
|
| 428 |
+
Considering that a poor ranking might incorrectly identify the top 1 or top 2 results, while the top 10 overall might still be generally correct. Therefore, we conducted a more convincing experiment using only the top 1 data as the demonstrations to better illustrate the impact of query textification on ranking quality.
|
| 429 |
+
|
| 430 |
+
The results are shown in Table 13: we found that in this setting, the decline without query textification was generally more pronounced (9.9, 7.6, and
|
| 431 |
+
|
| 432 |
+
3.1 on three datasets) than Table 5 (4.1, 4.0 and 6.9 on three datasets), indicating that query textification can enhance ranking quality, thereby further improving QA performance.
|
| 433 |
+
|
| 434 |
+
# F.4 Runtime Breakdown
|
| 435 |
+
|
| 436 |
+
We present a detailed runtime breakdown to provide a clearer understanding of the time costs associated with each stage, using GrailQA as an example.
|
| 437 |
+
|
| 438 |
+
(1). Entity linking: nearly negligible (0 s): We use the cache provided by previous work for fair comparison. Most previous non-finetuning methods either rely on cached results or the golden linking results. Details are provided in Section E.2.
|
| 439 |
+
(2). Relation linking: very fast (0.60 s): Relation linking consists of three steps:
|
| 440 |
+
|
| 441 |
+
a). Obtain the relation embedding (0 s, cached in advance). Note that the relations in Freebase are fixed and limited, so they only need to be cached once in advance.
|
| 442 |
+
b). Obtain the question embedding (0.52 s).
|
| 443 |
+
c). Calculate the embedding similarity between question embedding and all relation embeddings (0.08s). We utilized FAISS (Johnson et al., 2019) to accelerate similarity computations.
|
| 444 |
+
(3). Query construction: the slowest part (2.99 s for GrailQA):
|
| 445 |
+
|
| 446 |
+
This is the most time-consuming stage, which is described in detail in Section 3.3.
|
| 447 |
+
|
| 448 |
+
(4). Reranking: very fast (0.11 s): This is implemented by bge-reranker. Since we carefully controlled the number of candidate queries during the construction process, the final set for ranking is relatively small. Details about the size of the candidate queries are provided in Table 9. For instance, only an average of 17.4 candidate queries were involved in the reranking stage, which contributed to its speed.
|
| 449 |
+
|
| 450 |
+
# Queries with textification results
|
| 451 |
+
|
| 452 |
+
# Query 1:
|
| 453 |
+
|
| 454 |
+
triplet(?v0, measurement_unit MASS_unit.weightmass_in_kilograms, ?v1)
|
| 455 |
+
argmin(?v1)
|
| 456 |
+
answer(?v0)
|
| 457 |
+
|
| 458 |
+
# Textification Result:
|
| 459 |
+
|
| 460 |
+
what mass_unit, mass_unit has weightmass_in_kilograms, when weightmass_in_kilograms is the smallest
|
| 461 |
+
|
| 462 |
+
# Query 2:
|
| 463 |
+
|
| 464 |
+
triplet(?v0, boats ship_class.date-designed, ?v1)
|
| 465 |
+
argmax(?v1)
|
| 466 |
+
answer(?v0)
|
| 467 |
+
Textification Result:
|
| 468 |
+
what ship_class, ship_class has date-designed, when date-designed is the largest
|
| 469 |
+
|
| 470 |
+
# Query 3:
|
| 471 |
+
|
| 472 |
+
triplet(?v0, spaceflight.rocket_engine.designed_by, [rocketdyne])
|
| 473 |
+
triplet(?v0, spaceflight.rocket.engine.isp_sea_level, ?v1)
|
| 474 |
+
filter(?v1, <=, 260.0)
|
| 475 |
+
answer(?v0)
|
| 476 |
+
Textification Result:
|
| 477 |
+
what rocket ENGINE, rocket ENGINE has rocketdyne, rocket ENGINE has isp_sea_level, when isp_sea_level no more than 260.0
|
| 478 |
+
|
| 479 |
+
Table 12: Examples of Query Textification.
|
| 480 |
+
|
| 481 |
+
<table><tr><td></td><td>GrailQA</td><td>GraphQ</td><td>KBQA-Agent</td></tr><tr><td>w/ QT</td><td>61.46</td><td>44.31</td><td>37.53</td></tr><tr><td>w/o QT</td><td>52.55</td><td>36.76</td><td>34.48</td></tr></table>
|
| 482 |
+
|
| 483 |
+
Table 13: Abalation study of Query Textification (QT) when only using Top 1 candidate as the demonstration (experiment on 500 randomly selected examples).
|
| 484 |
+
|
| 485 |
+
(5). Question generation: nearly negligible (0 s): Since we use the pseudo-questions generated by query textification (implemented by simple rules) as the corresponding question of a candidate query, this time cost is negligible.
|
| 486 |
+
(6). In-Context Learning QA (0.78 s): This is a simple ICL request with about 700 input tokens; a normal inference speed is generally less than 1 second. The time difference between using locally deployed open-source models (Qwen) and online closed-source models (GPT) is not significant. For closed-source models (GPT), a normal request speed is generally on the order of seconds. For open-source models, the specific speed depends on your hardware configuration. We deployed a 7B model using a single 80GB A100 GPU and
|
| 487 |
+
|
| 488 |
+
a 72B model using eight A100 GPUs, leveraging vLLM (Kwon et al., 2023) for deployment. Using more devices can further speed up.
|
| 489 |
+
|
| 490 |
+
# F.5 Clarifications on the Computational Details of CPQ
|
| 491 |
+
|
| 492 |
+
We follow the OpenAI official price calculation method ${}^{3}$ as reported in QueryAgent (Huang et al., 2024) to calculate CPQ in Table 3. TARGA only relying on an open-source model, except for Section 3.2 use ada-v2 for obtain the embedding and question. However, this part of the cost is less than 1e-5 $ per question, therefore, the CPQ is 0 $ when retaining three decimal places in Table 3.
|
| 493 |
+
|
| 494 |
+
The cost in Section 3.2 consists of two parts: relation embedding and question embedding. The cost of caching embeddings for all relations in Freebase (20K relations) is less than $0.01 \, \text{s}$ , and this cost is one-time; once cached, it does not increase regardless of the number of questions solved. For obtaining the embeddings for the test question itself, the average cost per question is less than 1e-5 $\text{s}$ , which rounds to approximately $0.000 \, \text{s}$ when
|
| 495 |
+
|
| 496 |
+
retaining three decimal places in Table 3. In summary, the close-source model invocations cost of TARGA is negligible.
|
| 497 |
+
|
| 498 |
+
# F.6 Analysis of Token Consumption
|
| 499 |
+
|
| 500 |
+
Since TARGA basically does not rely on closed-source models, to make the inference cost more comparable, we additionally provide a comparison of the total tokens consumed (input tokens + output tokens) for a more comprehensive evaluation. The result is shown in Table 14 TARGA has significant advantages in terms of token usage, with inference costs being less than one-tenth of those of other methods. Note that the substantial difference in token consumption by KB-Binder across the two datasets primarily stems from the use of more demonstration: 100 shots for GraphQ compared to 40 shots for GrailQA.
|
| 501 |
+
|
| 502 |
+
<table><tr><td></td><td>GrailQA</td><td>GraphQ</td></tr><tr><td>KB-Binder</td><td>6,138 + 189</td><td>15, 166 + 206</td></tr><tr><td>AgentBench</td><td>19, 783 + 934</td><td>20, 143 + 968</td></tr><tr><td>QueryAgent</td><td>12, 277 + 391</td><td>13, 453 + 391</td></tr><tr><td>TARGA</td><td>638 + 36</td><td>734 + 38</td></tr></table>
|
| 503 |
+
|
| 504 |
+
Table 14: Average consumed tokens (input + output).
|
| 505 |
+
|
| 506 |
+
# F.7 Case Study
|
| 507 |
+
|
| 508 |
+
Table 15 presents a detailed demonstration of how TARGA operates with a new question.
|
| 509 |
+
|
| 510 |
+
<table><tr><td>Pipeline</td><td>Details</td></tr><tr><td>Question</td><td>the camera with a sensor from canon and a compression format of JPEG (exif 2.21) uses which viewfinder?</td></tr><tr><td>Candidate Entities</td><td>{canon: m.01bvx1,JPEG (exif 2.21): m.03h4lt3}</td></tr><tr><td>Candidates Relations</td><td>[digicams.digital_camera.viewfinder_type,digicams.camera_compressed_format.cameras,digicams.digital_camera(sensor_type,digicams.camera_uncompressed_format.cameras,digicams.cameraIso.cameras,digicams.camera_format.cameras,digicams.camera_sensor_manufacturer.cameras,...,digicams.camera_white_balance.cameras]</td></tr><tr><td>Query Construction</td><td>Query 1 triplet([jpeg (exif 2.21)], digicams.camera_compressed_format.cameras, ?v0) answer(?v0)Query 2 triplet([jpeg (exif 2.21)], digicams.camera_compressed_format.cameras, ?v0) triplet(?v0, digicams.digital-camera.viewfinder_type, ?v1) answer(?v1)......Query 56 triplet([jpeg (exif 2.21)], digicams.camera_compressed_format.cameras, ?v0) triplet(?v0, digicams.digital-camera.viewfinder_type, ?v1) triplet([canon], digicams.camera SENSOR_manufacturer.cameras, ?v0) answer(?v1)......Query 71 triplet([canon], digicams.digital-camera_manufacturer.cameras, ?v0) triplet(?v0, digicams.camera_storage_typeCompatible Cameras, ?v1) answer(?v1)</td></tr><tr><td>Query Re-ranking</td><td>Rank 1 triplet([jpeg (exif 2.21)], digicams.camera_compressed_format.cameras, ?v0) triplet(?v0, digicams.digitalcamera.viewfinder_type, ?v1) triplet([canon], digicams.camera SENSOR_manufacturer.cameras, ?v0) answer(?v1)Rank 2 triplet([jpeg (exif 2.21)], digicams.camera_compressed_format.cameras, ?v0) triplet(?v0, digicams.digitalcamera.viewfinder_type, ?v1) triplet([canon], digicams.digital-camera_manufacturer.cameras, ?v0) answer(?v1)......Rank 71 triplet([canon], digicams.digitalcamera_manufacturer.cameras, ?v0) triplet(?v0, digicams.camera(storage_typeCompatible Cameras, ?v1) answer(?v1)</td></tr><tr><td>Question Generation</td><td>Query 1
|
| 511 |
+
triplet([jpeg (exif 2.21)], digicamslicer_compressed_format.cameras, ?v0)
|
| 512 |
+
triplet(?v0, digicams.digital Cameras.viewfinder_type, ?v1)
|
| 513 |
+
triplet([canon], digicams.camerasicosensor_manufacturer.cameras, ?v0)
|
| 514 |
+
answer(?v1)
|
| 515 |
+
Generated Question
|
| 516 |
+
what viewfinder_type, jpeg (exif 2.21) has cameras, cameras has viewfinder_type, canon has cameras</td></tr><tr><td></td><td>Query 2
|
| 517 |
+
triplet([jpeg (exif 2.21)], digicamslicer_compressed_format.cameras, ?v0)
|
| 518 |
+
triplet(?v0, digicams.digital Cameras.viewfinder_type, ?v1)
|
| 519 |
+
triplet([canon], digicams.digital Camerasmanufacturer.cameras, ?v0)
|
| 520 |
+
answer(?v1)
|
| 521 |
+
Generated Question
|
| 522 |
+
what viewfinder_type, jpeg (exif 2.21) has cameras, cameras has viewfinder_type, canon has cameras</td></tr><tr><td></td><td>......</td></tr><tr><td></td><td>Query 10
|
| 523 |
+
triplet([jpeg (exif 2.21)], digicams.cameras_compressed_format.cameras, ?v0)
|
| 524 |
+
triplet(?v0, digicams.digital Camerassensor_resolution, ?v1)
|
| 525 |
+
triplet([canon], digicams.digital Camerasmanufacturer.cameras, ?v0)
|
| 526 |
+
answer(?v1)
|
| 527 |
+
Generated Question
|
| 528 |
+
what sensor_resolution, jpeg (exif 2.21) has cameras, cameras has sen-sor_resolution, canon has cameras</td></tr><tr><td>QA Prompt</td><td>You are a powerful model for generating PgQL queries to answer natural language questions. Here are some exemplars:
|
| 529 |
+
#####Question
|
| 530 |
+
what viewfinder_type,.jpeg (exif 2.21) has cameras, cameras has viewfinder_type, canon has cameras
|
| 531 |
+
#####PgQL
|
| 532 |
+
triplet([jpeg (exif 2.21)], digicamslicer_compressed_format.cameras, ?v0)
|
| 533 |
+
triplet(?v0, digicams.digital Cameras.viewfinder_type, ?v1)
|
| 534 |
+
triplet([canon], digicams&sensor_manufacturer.cameras, ?v0)
|
| 535 |
+
answer(?v1)
|
| 536 |
+
#####Question
|
| 537 |
+
what viewfinder_type,.jpeg (exif 2.21) has cameras, cameras has viewfinder_type, canon has cameras
|
| 538 |
+
#####PgQL
|
| 539 |
+
triplet([jpeg (exif 2.21)], digicamslicer_compressed_format.cameras, ?v0)
|
| 540 |
+
triplet(?v0, digicams.digital Cameras.viewfinder_type, ?v1)
|
| 541 |
+
triplet([canon], digicamsdigital Camerasmanufacturer.cameras, ?v0)
|
| 542 |
+
answer(?v1)
|
| 543 |
+
……(8 demonstrations omitted here.)
|
| 544 |
+
Please follow the format of exemplars and output PgQL query for the following question. No explanation or questioning allowed.
|
| 545 |
+
Entity List: ['jpeg (exif 2.21)', 'canon']
|
| 546 |
+
#####Question
|
| 547 |
+
the camera with a sensor from canon and a compression format of JPEG (exif 2.21) uses which viewfinder?
|
| 548 |
+
#####PgQL</td></tr><tr><td>LLM Output</td><td>triplet([jpeg (exif 2.21)], digicamslicer_compressed_format.cameras, ?v0)
|
| 549 |
+
triplet(?v0, digicams.digital Cameras.viewfinder_type, ?v1)
|
| 550 |
+
triplet([canon], digicams&sensor_manufacturer.cameras, ?v0)
|
| 551 |
+
answer(?v1)</td></tr><tr><td>Parsing SPARQL</td><td>SELECT DISTINCT ?v1 WHERE {
|
| 552 |
+
:m.03h4lt3 :digicamslicer_compressed_format.cameras ?v0 .
|
| 553 |
+
?v0 :digicams.digital Cameras.viewfinder_type ?v1 .
|
| 554 |
+
:m.01bvx1 :digicams&sensor_manufacturer.cameras ?v0 . }</td></tr><tr><td>Execution Result</td><td>{m.01xrg1f: Optical, m.01xrg6z: TTL}</td></tr><tr><td>F1 Score</td><td>1.0</td></tr></table>
|
| 555 |
+
|
| 556 |
+
Table 15: A case study of TARGA from GrailQA.
|
| 557 |
+
|
| 558 |
+
# Prompt for KBQA
|
| 559 |
+
|
| 560 |
+
You are a powerful model for generating PgQL queries to answer natural language questions. Here are some exemplars:
|
| 561 |
+
|
| 562 |
+
Question
|
| 563 |
+
|
| 564 |
+
what football_league_system, football_league_system has conference premier
|
| 565 |
+
|
| 566 |
+
##PyQL
|
| 567 |
+
|
| 568 |
+
triplet(?v0, soccer.football_league_system.leagues, [conference premier])
|
| 569 |
+
|
| 570 |
+
answer(?v0)
|
| 571 |
+
|
| 572 |
+
Question
|
| 573 |
+
|
| 574 |
+
what leagues, football_league_system has conference premier, football_league_system has leagues
|
| 575 |
+
|
| 576 |
+
##PyQL
|
| 577 |
+
|
| 578 |
+
triplet(?v0, soccer.football_league_system.leagues, [conference premier])
|
| 579 |
+
|
| 580 |
+
triplet(?v0, soccer.football_league_system.leagues, ?v1)
|
| 581 |
+
|
| 582 |
+
answer(?v1)
|
| 583 |
+
|
| 584 |
+
Question
|
| 585 |
+
|
| 586 |
+
what sport, sport has conference premier
|
| 587 |
+
|
| 588 |
+
##PyQL
|
| 589 |
+
|
| 590 |
+
triplet(?v0, sports.sport.leagues, [conference premier])
|
| 591 |
+
|
| 592 |
+
answer(?v0)
|
| 593 |
+
|
| 594 |
+
(5 demonstrations omitted here.)
|
| 595 |
+
|
| 596 |
+
Question
|
| 597 |
+
|
| 598 |
+
what positions, sport has conference premier, sport has positions
|
| 599 |
+
|
| 600 |
+
##PyQL
|
| 601 |
+
|
| 602 |
+
triplet(?v0, sports.sport.leagues, [conference premier])
|
| 603 |
+
|
| 604 |
+
triplet(?v0, sports.sport.positions, ?v1)
|
| 605 |
+
|
| 606 |
+
answer(?v1)
|
| 607 |
+
|
| 608 |
+
Question
|
| 609 |
+
|
| 610 |
+
what team_coaches, sport has conference premier, sport has team_coaches
|
| 611 |
+
|
| 612 |
+
```python
|
| 613 |
+
>>>PyQL
|
| 614 |
+
|
| 615 |
+
triplet(?v0, sports.sport.leagues, [conference premier])
|
| 616 |
+
|
| 617 |
+
triplet(?v0, sports.sport.team_coaches, ?v1)
|
| 618 |
+
|
| 619 |
+
answer(?v1)
|
| 620 |
+
|
| 621 |
+
Please follow the format of exemplars and output PgQL query for the following question. No explanation or questioning allowed.
|
| 622 |
+
|
| 623 |
+
Entity List: ['conference premier']
|
| 624 |
+
|
| 625 |
+
Question
|
| 626 |
+
|
| 627 |
+
what are the names of the football leagues that are in the same football league system with conference premier?
|
| 628 |
+
|
| 629 |
+
##PyQL
|
| 630 |
+
|
| 631 |
+
Table 16: Prompt for KBQA.
|
| 632 |
+
|
| 633 |
+
# Prompt for Text2SQL
|
| 634 |
+
|
| 635 |
+
You are a powerful model for generating SQL queries to answer natural language questions.
|
| 636 |
+
|
| 637 |
+
Here are some related exemplars you can learn from:
|
| 638 |
+
|
| 639 |
+
SELECT MIN(Magnitude (M bol )) FROM TABLE WHERE Radius $(\mathbb{R}\odot) = '10'$
|
| 640 |
+
|
| 641 |
+
SELECT MIN(Mass (M ⊙)) FROM TABLE WHERE Radius (R ⊙) = '10'
|
| 642 |
+
|
| 643 |
+
SELECT MIN(Spectral type) FROM TABLE WHERE Radius $(\mathbb{R}\odot) = '10'$
|
| 644 |
+
|
| 645 |
+
SELECT MIN(Star(Pismis24-#)) FROM TABLE WHERE Radius $(\mathbb{R}\odot) = '10'$
|
| 646 |
+
|
| 647 |
+
SELECT MIN(Radius (R ⊙)) FROM TABLE WHERE Radius (R ⊙) = '10'
|
| 648 |
+
|
| 649 |
+
SELECT MIN(Mass (M $\odot$ ) FROM TABLE WHERE Star (Pismis24-#) = '10'
|
| 650 |
+
|
| 651 |
+
SELECT MIN(Temperature (K)) FROM TABLE WHERE Radius $(\mathrm{R}\odot) = '10'$
|
| 652 |
+
|
| 653 |
+
SELECT MIN(Radius (R $\odot$ )) FROM TABLE WHERE Star (Pismis24-#) = '10'
|
| 654 |
+
|
| 655 |
+
SELECT MIN(Magnitude (M bol )) FROM TABLE WHERE Star (Pismis24-#) = '10'
|
| 656 |
+
|
| 657 |
+
SELECT MIN(Spectral type) FROM TABLE WHERE Star (Pismis24-#) = '10'
|
| 658 |
+
|
| 659 |
+
Please output SQL query for the following question. No explanation or questioning allowed. Note that there is no need to use the LIKE keyword. And table name is TABLE for all questions.
|
| 660 |
+
|
| 661 |
+
Question
|
| 662 |
+
|
| 663 |
+
If a radius is 10, what is the lowest possible mass?
|
| 664 |
+
|
| 665 |
+
```header
|
| 666 |
+
|
| 667 |
+
['Star (Pismis24-#)', 'Spectral type', 'Magnitude (M bol)', 'Temperature (K)', 'Radius (R ⊙)', 'Mass (M ⊙)']
|
| 668 |
+
|
| 669 |
+
SQL
|
| 670 |
+
|
| 671 |
+
Table 17: Prompts for Text2SQL.
|
2025/TARGA_ Targeted Synthetic Data Generation for Practical Reasoning over Structured Data/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:169b001747ff919d2f216524037878bc201fd8d2cfc9c3b828038396ea9c79c5
|
| 3 |
+
size 1280308
|
2025/TARGA_ Targeted Synthetic Data Generation for Practical Reasoning over Structured Data/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TC–RAG_ Turing–Complete RAG’s Case study on Medical LLM Systems/08530356-6e71-43b5-b2a0-ddb4582c96bf_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TC–RAG_ Turing–Complete RAG’s Case study on Medical LLM Systems/08530356-6e71-43b5-b2a0-ddb4582c96bf_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TC–RAG_ Turing–Complete RAG’s Case study on Medical LLM Systems/08530356-6e71-43b5-b2a0-ddb4582c96bf_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4f1e749f98a8ee9135b9dac6a3b3701cc08a4432b79f88150e2a96bc2a77bc71
|
| 3 |
+
size 1839549
|
2025/TC–RAG_ Turing–Complete RAG’s Case study on Medical LLM Systems/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TC–RAG_ Turing–Complete RAG’s Case study on Medical LLM Systems/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:42c74143e9f4d3f18a75f0b85417a10a68bb1c8449aa5f5d58e1906a29b3df09
|
| 3 |
+
size 1100131
|
2025/TC–RAG_ Turing–Complete RAG’s Case study on Medical LLM Systems/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TEACH_ A Contrastive Knowledge Adaptive Distillation Framework for Classical Chinese Understanding/aecc946d-77dc-4482-aa73-533ce4e2f50d_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TEACH_ A Contrastive Knowledge Adaptive Distillation Framework for Classical Chinese Understanding/aecc946d-77dc-4482-aa73-533ce4e2f50d_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TEACH_ A Contrastive Knowledge Adaptive Distillation Framework for Classical Chinese Understanding/aecc946d-77dc-4482-aa73-533ce4e2f50d_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07dc650faffe7470508bf2bdd1fe9af14506dfce401b6d415c9f62d7b36a8c02
|
| 3 |
+
size 1427639
|
2025/TEACH_ A Contrastive Knowledge Adaptive Distillation Framework for Classical Chinese Understanding/full.md
ADDED
|
@@ -0,0 +1,462 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TEACH: A Contrastive Knowledge Adaptive Distillation Framework for Classical Chinese Understanding
|
| 2 |
+
|
| 3 |
+
Yuting Wei, Qi Meng, Yuanxing Xu, Bin Wu*
|
| 4 |
+
|
| 5 |
+
Beijing Key Laboratory of Intelligent Telecommunication Software and Multimedia,
|
| 6 |
+
|
| 7 |
+
Beijing University of Posts and Telecommunications
|
| 8 |
+
|
| 9 |
+
{yuting_wei, mikemeng09, xyx, wubin} @bupt.edu.cn
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
Traditional methods for processing classical Chinese typically segment language understanding into discrete tasks, which overlook crucial background information and reduce user engagement. Large language models (LLMs) provide integrated solutions, yet they entail high computational costs and risks of generating inaccurate historical information. To tackle these challenges, we propose a novel framework, TEACH (conTrastive knowlEdge Adaptive distillation with enhanced Historical interpretability), which focuses on classical Chinese understanding by integrating word sense disambiguation with sentence translation. This integration leverages a confidence-annotated knowledge base and a step-by-step Chain-of-Thought prompting mechanism to minimize hallucinations and improve semantic analysis. Moreover, TEACH employs contrastive distillation learning to efficiently transfer capabilities from larger models to smaller ones (e.g., Qwen2-1.5B), addressing overly liberal translations. Additionally, we introduce an innovative generation evaluation metric using iterative word alignment, enhancing LLM performance assessments by distinguishing additional information and addressing excessive translation issues. Experiments conducted on real-world datasets validate TEACH's efficacy in classical Chinese educational scenarios. $^{1}$
|
| 14 |
+
|
| 15 |
+
# 1 Introduction
|
| 16 |
+
|
| 17 |
+
Classical Chinese literature, as a crucial carrier of millennia-old cultural heritage, plays an irreplaceable role in historical understanding and cultural transmission. However, understanding classical Chinese poses numerous challenges, such as scarce corpora, complex linguistic structures, variable word meanings, and rich historical and cultural contexts, all of which increase the difficulty
|
| 18 |
+
|
| 19 |
+
of comprehension (Zhang et al., 2024; Wei et al., 2024b). With the rapid development of natural language processing technologies, more researchers are focusing on classical Chinese to address these challenges (Li et al., 2022; Liu et al., 2022; Xiang et al., 2024).
|
| 20 |
+
|
| 21 |
+
The key tasks in understanding classical Chinese include word sense disambiguation (WSD) and translation. The WSD aims to select the most fitting meaning of a polysemous word within its context (Shu et al., 2021; Pan et al., 2022). For translation, traditional methods employ encoder-decoder approaches to achieve literal translation of sentences (Chang et al., 2021; Wang et al., 2023). However, the segmentation of these tasks hinders holistic analysis. Furthermore, traditional models frequently suffer from semantic inaccuracies due to inadequate historical background. Additionally, these models typically require coding skills, limiting their accessibility and reducing their suitability for educational applications.
|
| 22 |
+
|
| 23 |
+
LLMs (Wei et al., 2022a; Zhao et al., 2023; Wei et al., 2022b) can easily engage with users and enhance language understanding by providing rich historical context, thereby improving sentence interpretability. This capability extends beyond basic word sense analysis and sentence translation, potentially increasing their interest in classical Chinese and historical studies (Wei et al., 2024a). Despite their strong generative capabilities and broad knowledge coverage, LLMs face challenges such as the occasional generation of hallucinations (Chang et al., 2024). This misleads users in educational scenarios. Additionally, LLMs entail high inference costs and substantial computational resources for training and deployment (Yang et al., 2024b). Consequently, it is a significant challenge to develop a smaller model that requires less data while ensuring efficient inference speed (Hu et al., 2022; Ding et al., 2023).
|
| 24 |
+
|
| 25 |
+
To address these problems, we propose TEACH,
|
| 26 |
+
|
| 27 |
+
a novel framework for classical Chinese understanding that integrates conTrastive knowlEdge Adaptive distillation with enhanCed Historical interpretability. This framework unifies word sense analysis and sentence comprehension, facilitating the transfer of historical knowledge and reasoning abilities from large to smaller models. Specifically, we first construct a confidence-annotated knowledge base including historical information and word annotations for retrieval augmentation. Then we design a step-by-step Chain-of-Thought (CoT) prompt to guide the large model in minimizing hallucinations and generating comprehensive contextual and semantic analysis. Through the distillation process, the small student model, with only $0.8 - 4\%$ of the parameters of the large teacher model, acquires step-by-step thinking capabilities and becomes a proficient classical Chinese interpreter. To address the tendency of large models to produce liberal translations, we employ contrastive learning to train the model in the precise and literal style essential for classical Chinese understanding. Moreover, we introduce a generation evaluation metric based on iterative word alignment for LLMs, enabling a more accurate assessment of their performance by distinguishing additional information and addressing excessive translation issues. Our key contributions are as follows:
|
| 28 |
+
|
| 29 |
+
- To the best of our knowledge, it is the first educational model for classical Chinese that combines word sense disambiguation and sentence translation tasks, while also providing historical interpretability.
|
| 30 |
+
- We propose TEACH, a novel contrastive knowledge adaptive distillation framework, which transfers reasoning capabilities from large to small models by step-by-step CoT prompting, significantly reducing hallucinations and liberal translations.
|
| 31 |
+
- We improve a generation evaluation metric based on iterative word alignment for LLMs, which considers the additional information and excessive translation.
|
| 32 |
+
- Experiments on real datasets demonstrate the effectiveness of our model, showing that it generates high-quality historical context analysis while also accurately understanding classical Chinese semantics.
|
| 33 |
+
|
| 34 |
+
# 2 Related Work
|
| 35 |
+
|
| 36 |
+
# 2.1 Classical Chinese Understanding
|
| 37 |
+
|
| 38 |
+
Classical Chinese WSD and translation are two crucial tasks for understanding classical Chinese texts (Pan et al., 2022; Shu et al., 2021). WSD is typically approached as a classification challenge, where traditional methodologies deploy word embeddings that integrate contextual or annotated data, utilizing algorithms such as KNN to deduce word meanings (Loureiro and Jorge, 2019). Regarding translation, methods often leverage pretrained models specific to classical Chinese, such as SikuBERT (Wang et al., 2022) and AnchiBERT (Tian et al., 2021), which employ various encoder-decoder frameworks. For example, Guo et al. (2023) features the translation task by dual-syllable alignment substitution and dual-mask language modeling. Evidently, existing research isolates the two tasks. Moreover, traditional methods provide only answers, lacking interpretability, which is crucial for educational applications. Consequently, we leverage the extensive knowledge and robust reasoning abilities of LLMs to simultaneously address both tasks, generating interpretable historical background and semantic analyses.
|
| 39 |
+
|
| 40 |
+
# 2.2 LLMs with RAG
|
| 41 |
+
|
| 42 |
+
LLMs have demonstrated significant potential in downstream tasks such as recommendation systems (Zhu et al., 2024) and question answering (Li et al., 2024), thanks to their advanced reasoning capabilities. However, their deployment in sensitive areas is not without risks, notably the propensity to generate misleading or incorrect information, often referred to as "hallucinations". To address these challenges, Retrieval-Augmented Generation (RAG) technology has been employed to enhance the reliability of LLM outputs by incorporating domain-specific knowledge directly into the generation process (Lewis et al., 2020; Gao et al., 2023; Zhao et al., 2024). Further advancements in RAG technology include the development of graph-based approaches (Peng et al., 2024), which enhance the model's ability to handle complex datasets with interlinked information. For instance, in healthcare, RAG can leverage up-to-date research findings and patient-specific data to produce accurate diagnostic recommendations.
|
| 43 |
+
|
| 44 |
+
For classical Chinese understanding, LLMs also face hallucinations, such as incorrect historical information and the misinterpretation of archaic
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
Figure 1: The overview of the proposed framework.
|
| 48 |
+
|
| 49 |
+
terms. Hence, we propose a straightforward method for constructing a knowledge base to efficiently address this problem.
|
| 50 |
+
|
| 51 |
+
# 2.3 Generation Evaluation Metrics
|
| 52 |
+
|
| 53 |
+
Evaluating the generative capabilities of large models is crucial for assessing their effectiveness. Metrics utilized to assess the quality of generated content generally fall into three categories: those based on word overlap, word embeddings, and language models (Lee et al., 2023). Word overlap-based metrics such as BLEU (Papineni et al., 2002; Chen and Cherry, 2014) and ROUGE (Lin, 2004) measure quality by assessing the n-gram overlap between candidate and reference texts. Word embedding-based metrics convert sentences into vector representations and compare these within low-dimensional semantic spaces, using techniques such as Greedy Matching (Rus and Lintean, 2012) and Vector Extrema (Forgues et al., 2014). Language model-based metrics utilize pre-trained models to evaluate semantic and syntactic congruence between translated and reference texts (Zhang et al., 2020; Shin et al., 2024). Despite advancements, traditional metrics face challenges with LLM-generated classical Chinese translations, notably the inclusion of useful yet additional information and overly detailed explanations of original words. To overcome these issues, an iterative self-labeled word alignment method is employed to refine evaluation metrics.
|
| 54 |
+
|
| 55 |
+
# 3 Methodology
|
| 56 |
+
|
| 57 |
+
In this section, we introduce TEACH, an innovative contrastive knowledge adaptive distillation framework tailored for classical Chinese education.
|
| 58 |
+
|
| 59 |
+
This approach integrates the reasoning capabilities of LLMs into classical Chinese language comprehension while enhancing historical explainability and optimizing resource efficiency. An overview of the framework is provided in Figure 1.
|
| 60 |
+
|
| 61 |
+
# 3.1 Interpretable Knowledge Construction
|
| 62 |
+
|
| 63 |
+
LLMs often suffer from hallucination problems, which can undermine their utility in educational applications. To mitigate this, we construct a knowledge base that integrates confidence-annotated historical information and authoritative annotations of classical Chinese word meanings, which assists in accurate and interpretable analysis and reasoning.
|
| 64 |
+
|
| 65 |
+
# 3.1.1 Historical Information
|
| 66 |
+
|
| 67 |
+
To obtain relevant historical information for a given sentence, we extract its surrounding context, defined as the ten sentences before and after the target sentence. Specifically, we utilize the complete text version of the Twenty-Four Histories, supplemented by novels, poetry, and other genres, to construct a retrieval database powered by Milvus. Details of this database are provided in Appendix A.1.
|
| 68 |
+
|
| 69 |
+
To prevent misleading the model's analysis, we introduce a confidence metric for historical information:
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
C o n f i d e n c e = 1 - \mathrm {B P} (t, q) \cdot \frac {L 2 (t , q)}{\sqrt {d}}, \tag {1}
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
\mathrm {B P} (t, q) = \left\{ \begin{array}{l l} 1, & l _ {t} > l _ {q} \\ \exp \left(1 - l _ {q} / l _ {t}\right), & l _ {t} \leq l _ {q} \end{array} , \right. \tag {2}
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
where BP is length penalty factor, $l_{t}$ and $l_{q}$ denote the lengths of the retrieved sentence $t$ and the query $q$ , respectively. $L2$ is the Euclidean distance, $d$ represents the dimension of the vectors.
|
| 80 |
+
|
| 81 |
+
# 3.1.2 Word Sense Annotation
|
| 82 |
+
|
| 83 |
+
Despite significant changes in the meanings of classical Chinese words compared to modern Chinese, annotations provide a bridge between them. We extract all words with a frequency greater than five from the classical Chinese corpus and collect their annotations from Handian $^2$ , ultimately obtaining 169,742 annotated classical words (see Appendix A.2 for details).
|
| 84 |
+
|
| 85 |
+
# 3.2 Contrastive Knowledge Adaptive Distillation
|
| 86 |
+
|
| 87 |
+
Our contrastive distillation strategy comprises two steps. First, it leverages CoT prompts enriched with interpretable knowledge to guide the LLM (the teacher) through step-by-step reasoning. Its multi-granularity reasoning strategy—ranging from macro-level historical and cultural context to micro-level linguistic features—further enhances the model's understanding and generalization. Then, contrastive learning with negative samples is employed for adaptive knowledge transfer, enabling the smaller models (the student) to effectively approximate the reasoning capabilities of the teacher. Beyond reasoning, TEACH uniquely incorporates style-preservation constraints tailored to the stylistic characteristics of classical Chinese translations, ensuring that the distilled model retains key cultural and literary features.
|
| 88 |
+
|
| 89 |
+
# 3.2.1 Generating Step-by-step Reasoning by the Teacher
|
| 90 |
+
|
| 91 |
+
We utilize zero-shot CoT prompting to elicit reasoning information from LLMs. Specifically, given the sentence $s$ to be analyzed, we obtain the corresponding historical information $\mathcal{H}$ and its related annotated word set $\mathcal{A}$ from the constructed knowledge base. Then, we design a prompt template $\mathcal{T}$ consisting of three progressive steps as follows:
|
| 92 |
+
|
| 93 |
+
- Step1. Analyze the historical background and persons based on the given historical information $\mathcal{H}$ with the relevance Confidence.
|
| 94 |
+
- Step2. Select the most appropriate word sense from the provided annotations $\mathcal{A}$ .
|
| 95 |
+
- Step3. Provide a literal translation by combining the analyses from Steps1 and 2.
|
| 96 |
+
|
| 97 |
+
The template starts with a macro-level paragraph perspective and gradually zooms into a micro-level
|
| 98 |
+
|
| 99 |
+
word perspective, guiding LLMs in a step-by-step thinking process (see Figure 5 for details). Subsequently, we extract a very small sentence subdataset $S'$ from the training set $S$ by random sampling, where $S' \subset S$ and $|S'| \ll |S|$ . We further fill the template $T$ with $S'$ to generate corresponding CoT prompts $\mathcal{P} = \{p_s | s \in S'\}$ for the teacher models. With these knowledge-augmented prompts $\mathcal{P}$ , LLMs will generate corresponding step-by-step interpretable analysis $o_s$ for each input $p_s$ .
|
| 100 |
+
|
| 101 |
+
# 3.2.2 Training the student by contrastive distillation
|
| 102 |
+
|
| 103 |
+
High-quality analysis can be generated from LLMs. However, their extensive computational demands make them unsuitable for low-latency educational applications. Additionally, LLMs often produce liberal translations that do not suit the needs for literal translations essential in understanding classical Chinese texts. To overcome these challenges, we employ contrastive knowledge distillation, adaptively transferring the comprehension and reasoning capabilities of larger teacher models to more computationally efficient smaller student models.
|
| 104 |
+
|
| 105 |
+
Specifically, we fine-tune a small model using the same prompts $p_{s}$ as input. For the output, we have two types: 1) the original response $o_{s}$ , which includes the liberal translation $t_{\text{liberal}}$ , and 2) the expected literal response $e_{s}$ , where $t_{b}$ is replaced with the standard literal translation $t_{\text{literal}}$ . Our goal is to generate outputs that align more closely with the latter.
|
| 106 |
+
|
| 107 |
+
The training comprises two parts. First, we use $e_{s}$ as the output labels and optimize the negative log-likelihood of the conditional language modeling objective:
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
\mathcal {L} _ {d i s} = \sum_ {i = 1} ^ {| e |} \log \left(P _ {\theta} \left(e _ {s, i} \mid p _ {s}, e _ {s, < i}\right)\right), \tag {3}
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
where $e_{s,i}$ is the $i$ -th token of $e_s$ , and $e_{s, < i}$ represents the tokens before $e_{s,i}$ . To conserve resources, we employ LoRA (Hu et al., 2022) for parameter-efficient model fine-tuning with parameters $\theta$ . Second, we adopt a contrastive learning-based adaptive distillation technique. We utilize $o_s$ as negative samples and $e_s$ as the positive sample. Similar to Zeng et al. (2024), we directly tune the language model using a token-level contrastive loss:
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
\mathcal {L} _ {\text {c o n}} = \frac {1}{N - M} \sum_ {m = M} ^ {N} \max \left(0, - f _ {\beta} \left(h _ {m} ^ {e _ {s}}\right) + f _ {\beta} \left(h _ {m} ^ {o _ {s}}\right) + 1\right), \tag {4}
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
where $N$ is the maximum length of two sequences, and $h_m^{e_s}$ and $h_m^{o_s}$ are the hidden states of the $m$ -th token of the preferred literal output $e_s$ and the comparison liberal output $o_s$ , respectively. $M$ is the index starting from the segments that differ (i.e., translation parts) between $e_s$ and $o_s$ . $f_\beta$ is a linear head that takes the hidden state of the top layer and returns a scalar.
|
| 120 |
+
|
| 121 |
+
The overall loss function for tuning the model is:
|
| 122 |
+
|
| 123 |
+
$$
|
| 124 |
+
\mathcal {L} = - \sum_ {s \in \mathcal {S} ^ {\prime}} \left(\mathcal {L} _ {d i s} + \mathcal {L} _ {c o n}\right). \tag {5}
|
| 125 |
+
$$
|
| 126 |
+
|
| 127 |
+
# 4 Refined Evaluation Metric for LLMs
|
| 128 |
+
|
| 129 |
+
When evaluating the generated translations of LLMs, traditional metrics often overlook two key aspects: the overly detailed explanation of original terms (term1) and the useful but additional information (word2), as shown in Figure 2. These issues frequently arise in LLMs. To address them, we develop an iterative self-labeled word alignment method to refine BLEU and ROUGE, enabling more accurate assessments of translation quality.
|
| 130 |
+
|
| 131 |
+
# 4.1 Word Alignment Self-Labeling (WAS)
|
| 132 |
+
|
| 133 |
+
The goal of WAS is to establish word alignment between a reference text $R = (r_1, r_2, \ldots, r_n)$ and a candidate text $C = (c_1, c_2, \ldots, c_m)$ . We define the alignment relationship between $R$ and $C$ as $A_{ij}$ , which represents the probability of alignment between $r_i$ and $c_j$ . The word alignment challenge is formulated as identifying matrix $A$ that maximizes sentence similarity:
|
| 134 |
+
|
| 135 |
+
$$
|
| 136 |
+
\max _ {A} \sum_ {i = 1} ^ {n} \sum_ {j = 1} ^ {m} A _ {i j} f _ {\text {s i m}} \left(r _ {i}, c _ {j}\right), \tag {6}
|
| 137 |
+
$$
|
| 138 |
+
|
| 139 |
+
where $f_{sim}(\cdot)$ denotes the similarity function. To solve this equation, we reformulate it as an optimal transport problem, referencing Peyre et al. (2019) and Chi et al. (2021). Then, we obtain the solved initial matrix $A'$ . For the detailed solving process, please refer to Appendix B.
|
| 140 |
+
|
| 141 |
+
The alignment labels $\mathcal{B}_{ij}$ are extracted using the following formula:
|
| 142 |
+
|
| 143 |
+
$$
|
| 144 |
+
\mathcal {B} _ {i j} = \left\{ \begin{array}{l l} 1 & i = \left(\arg \max _ {k} A _ {i k} ^ {\prime}\right) \cap (j = \arg \max _ {k} A _ {k j} ^ {\prime}) \\ 0 & \text {o t h e r w i s e} \end{array} . \right. \tag {7}
|
| 145 |
+
$$
|
| 146 |
+
|
| 147 |
+
To maximize the identification of alignment labels, we employ an iterative approach to update $A^{\prime}$ and $\mathcal{B}$ , following Sabet et al. (2020). Initially, $A^{\prime}$ is
|
| 148 |
+
|
| 149 |
+

|
| 150 |
+
Figure 2: An example of translation outputs from LLMs.
|
| 151 |
+
|
| 152 |
+
updated according to the initial state of $\mathcal{B}$ using the following formula:
|
| 153 |
+
|
| 154 |
+
$$
|
| 155 |
+
A _ {i j} ^ {\prime} = \left\{ \begin{array}{l l} 0, & \mathcal {B} _ {i j} = 1 \\ \alpha A _ {i j} ^ {\prime}, & \exists k (\mathcal {B} _ {i k} = 1 \vee \mathcal {B} _ {k j} = 1), \\ A _ {i j} ^ {\prime}, & \text {o t h e r w i s e} \end{array} \right. \tag {8}
|
| 156 |
+
$$
|
| 157 |
+
|
| 158 |
+
where $\alpha$ is a discount factor. Then, $\mathcal{B}$ is updated according to Eq.equation 7 for those entries where preceding $\mathcal{B}_{ij} = 0$ . After multiple iterations, this method yields high-precision self-labeled alignment labels $\mathcal{B}$ .
|
| 159 |
+
|
| 160 |
+
To address both one-to-many and many-to-one alignments, we implement a merging strategy. Specifically, when a token $j$ in the translated text $C$ aligns with multiple consecutive tokens in the reference text $R$ , or vice versa, these tokens are merged. Furthermore, tokens in $C$ without correspondences in $R$ are considered additional information and are thus concealed (e.g., $\text{word}_2$ ). This process results in the merged token sequences $C'$ and $R'$ , alongside one-to-one alignment labels $\mathcal{B}'$ .
|
| 161 |
+
|
| 162 |
+
# 4.2 Refined BLEU based on WAS
|
| 163 |
+
|
| 164 |
+
In the adaptation of the BLEU metric for the WASText, we introduce $\mathrm{BLEU}_{\mathrm{WAS}}$ defined as follows:
|
| 165 |
+
|
| 166 |
+
$$
|
| 167 |
+
\mathrm {B L E U} _ {\mathrm {W A S}} = \mathrm {B P} \left(C ^ {\prime}, R ^ {\prime}\right) \cdot \exp \left(\sum_ {n = 1} ^ {N} \frac {1}{N} \log p _ {n}\right), \tag {9}
|
| 168 |
+
$$
|
| 169 |
+
|
| 170 |
+
$$
|
| 171 |
+
p _ {n} = \frac {\sum_ {c \in C ^ {\prime}} \operatorname {C o u n t} \left(c , R ^ {\prime} , \mathcal {B} ^ {\prime} , n\right)}{\left| C ^ {\prime} \right| - (n - 1)}, \tag {10}
|
| 172 |
+
$$
|
| 173 |
+
|
| 174 |
+
$$
|
| 175 |
+
\mathrm {B P} \left(C ^ {\prime}, R ^ {\prime}\right) = \exp \left(1 - \frac {\max \left(l _ {C ^ {\prime}} , l _ {R ^ {\prime}}\right)}{\min \left(l _ {C ^ {\prime}} , l _ {R ^ {\prime}}\right)}\right), \tag {11}
|
| 176 |
+
$$
|
| 177 |
+
|
| 178 |
+
where, $\mathrm{BP}(C', R')$ represents the sentence length penalty factor, which penalizes both overly short (incomplete translation) and overly long (excessive translation) sentences. $\mathrm{Count}(c, R', \mathcal{B}', n)$ quantifies the occurrences of the $n$ -gram of $c$ within $R'$ , as dictated by the alignment labels $\mathcal{B}'$ .
|
| 179 |
+
|
| 180 |
+
# 4.3 Refined ROUGE based on WAS
|
| 181 |
+
|
| 182 |
+
The ROUGE metric is designed to assess recall in translation evaluations. In our adaptation, we introduce ROUGE- $\mathrm{N}_{\mathrm{WAS}}$ , which is formulated as follows:
|
| 183 |
+
|
| 184 |
+
$$
|
| 185 |
+
\mathrm {R O U G E} - \mathrm {N} _ {\mathrm {W A S}} = \frac {\sum_ {c \in C ^ {\prime} , r \in R ^ {\prime}} \mathrm {B P} (c , r) \cdot \operatorname {C o u n t} \left(c , r , \mathcal {B} ^ {\prime} , n\right)}{\left| R ^ {\prime} \right| - (N - 1)}, \tag {12}
|
| 186 |
+
$$
|
| 187 |
+
|
| 188 |
+
where $\mathrm{BP}(c,r)$ represents the token length penalty factor, calculated similar to Eq. equation 11. $\mathrm{Count}(c,r,\mathcal{B}',n)$ quantifies the occurrences where the $n$ -grams of $c$ and $r$ coincide, as dictated by the alignment labels $\mathcal{B}'$ .
|
| 189 |
+
|
| 190 |
+
# 5 Experiments
|
| 191 |
+
|
| 192 |
+
# 5.1 Experiment Settings
|
| 193 |
+
|
| 194 |
+
# 5.1.1 Datasets
|
| 195 |
+
|
| 196 |
+
Despite the absence of datasets that jointly address translation and semantic analysis, the accuracy of translations can indirectly reflect the precision of WSD. Therefore, we focus on the Erya dataset, which is the largest dataset for classical Chinese translation tasks. It covers a comprehensive range of historical periods and genres, including poetry, prose, philosophy works, and literary criticism.
|
| 197 |
+
|
| 198 |
+
# 5.1.2 Baselines
|
| 199 |
+
|
| 200 |
+
We compare against two types of baseline models: the classical classical Chinese translation model Erya, and various LLMs. Specifically, Erya is the most advanced classical Chinese translation model available. For large models, we select popular Chinese large models in both base and chat versions, such as Yi1.5-6B (Young et al., 2024), ChatGLM3-6B (Du et al., 2022; Zeng et al., 2023), GLM-4-9B (GLM et al., 2024), Qwen2-1.5B/7B (Yang et al., 2024a). We also evaluate Xunzi-Qwen2<sup>3</sup> which is finetuned on the Qwen2 model using classical Chinese corpus.
|
| 201 |
+
|
| 202 |
+
# 5.1.3 Evaluation Metrics
|
| 203 |
+
|
| 204 |
+
We employ three categories of evaluation metrics to comprehensively assess translation quality. First, classic token-based metrics, including BLEU and ROUGE-N, focus on surface-form overlap. Second, semantic-based metrics, such as BERTScore and METEOR, evaluate the preservation of meaning and semantic similarity. Third, we use refined metrics $\mathrm{BLEU}_{\mathrm{WAS}}$ and ROUGE- $\mathrm{N_{WAS}}$ , which incorporate contextual word alignment signals to better align with human judgment. Specifically, we
|
| 205 |
+
|
| 206 |
+
set $N = 4$ for BLEU and $\mathrm{BLEU}_{\mathrm{WAS}}$ , while $N = 1$ for ROUGE-N, ROUGE- $\mathrm{N}_{\mathrm{WAS}}$ . Human evaluation is also provided in Table 4 to further analyze the quality of word sense selection and translation.
|
| 207 |
+
|
| 208 |
+
# 5.1.4 Implementation Details
|
| 209 |
+
|
| 210 |
+
For the teacher model, we employ the ERNIE-Bot4 $^{4}$ API from Baidu, which has been demonstrated by Wei et al. (2024a) to achieve state-of-the-art performance in classical Chinese language understanding. We randomly select 3,000 entries from the training dataset to generate high-quality reasoning data using a zero-shot, step-by-step CoT, as proven optimal in Appendix C.1. This data is further refined and corrected by experts to ensure its accuracy. For the student model, we select 10,000 entries from the validation set for testing. All models are fine-tuned for 10 epochs with a batch size of 64, a maximum input length of 1024, and an output length of 512. The learning rate is set at $5e - 5$ for LoRA. Fine-tuning is conducted on 1 A100 GPU with 40G of memory. For comparison, we also employ the minimal prompt template as the Normal method: "Translate from classical Chinese to modern Chinese. Classical Chinese: src. Modern Chinese:" extracting $trg$ from their outputs using regular expressions. Both training and testing set sizes are consistent with those used for TEACH. For the refined evaluation metric, aligning 10,000 sentence pairs using AnchiBERT takes approximately 2-3 minutes on an NVIDIA 3090 GPU, with a batch size of 8 and 2 iterations, without any additional pre-training.
|
| 211 |
+
|
| 212 |
+
Additionally, Appendix C.2 offers a detailed comparison of the teacher and student models, focusing on model size, deployment complexity, cost, and functionality to assess their real-world applicability.
|
| 213 |
+
|
| 214 |
+
# 5.2 Main Results
|
| 215 |
+
|
| 216 |
+
Our TEACH framework is highly flexible and can be seamlessly integrated with any LLM backbone. To validate the effectiveness of TEACH, we first present the results from classic translation models and LLM trained with Normal prompt as baselines for comparison. Then, we evaluate the performance of TEACH across various LLMs. Results are shown in Table 1. Based on these evaluations, we make the following observations: (1) TEACH significantly outperforms Normal prompts, achieving performance improvements ranging from 4-
|
| 217 |
+
|
| 218 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">Type</td><td rowspan="2">Method</td><td colspan="7">Metrics</td></tr><tr><td>BLEU</td><td>ROUGE</td><td>BERTScore</td><td>METEOR</td><td>BLEUWAS</td><td>ROUGEWAS</td><td>Avg</td></tr><tr><td>Erya</td><td>-</td><td>-</td><td>18.39</td><td>50.15</td><td>76.11</td><td>42.39</td><td>39.68</td><td>71.18</td><td>49.65</td></tr><tr><td rowspan="4">Yi1.5-6B</td><td rowspan="2">Base</td><td>Normal</td><td>16.81</td><td>47.96</td><td>73.97</td><td>41.36</td><td>42.69</td><td>74.13</td><td>49.49</td></tr><tr><td>TEACH</td><td>19.23 (14.40%)</td><td>51.91 (8.24%)</td><td>76.80 (3.83%)</td><td>45.62 (10.30%)</td><td>44.06 (3.21%)</td><td>74.82 (0.93%)</td><td>51.77 (4.61%)</td></tr><tr><td rowspan="2">Chat</td><td>Normal</td><td>15.71</td><td>46.68</td><td>73.32</td><td>40.09</td><td>40.81</td><td>73.31</td><td>48.49</td></tr><tr><td>TEACH</td><td>17.70 (12.67%)</td><td>50.44 (8.05%)</td><td>76.01 (3.67%)</td><td>43.81 (9.28%)</td><td>42.21 (3.43%)</td><td>73.89 (0.79%)</td><td>50.76 (4.69%)</td></tr><tr><td rowspan="4">ChatGLM3-6B</td><td rowspan="2">Base</td><td>Normal</td><td>15.62</td><td>46.55</td><td>73.32</td><td>39.66</td><td>40.11</td><td>72.93</td><td>47.92</td></tr><tr><td>TEACH</td><td>18.77 (20.17%)</td><td>51.25 (10.08%)</td><td>76.10 (3.79%)</td><td>44.43 (12.03%)</td><td>42.93 (7.03%)</td><td>74.01 (1.48%)</td><td>50.86 (6.14%)</td></tr><tr><td rowspan="2">Chat</td><td>Normal</td><td>14.27</td><td>44.59</td><td>72.37</td><td>37.48</td><td>37.48</td><td>71.36</td><td>46.33</td></tr><tr><td>TEACH</td><td>16.90 (18.43%)</td><td>48.72 (9.26%)</td><td>75.59 (4.45%)</td><td>39.83 (6.27%)</td><td>39.88 (6.40%)</td><td>73.15 (2.51%)</td><td>49.29 (6.39%)</td></tr><tr><td rowspan="4">GLM-4-9B</td><td rowspan="2">Base</td><td>Normal</td><td>17.99</td><td>49.56</td><td>74.82</td><td>42.77</td><td>43.06</td><td>74.35</td><td>50.43</td></tr><tr><td>TEACH</td><td>20.46 (13.73%)</td><td>53.15 (7.24%)</td><td>76.86 (2.73%)</td><td>46.78 (9.38%)</td><td>46.41 (7.78%)</td><td>75.98 (2.19%)</td><td>52.94 (4.99%)</td></tr><tr><td rowspan="2">Chat</td><td>Normal</td><td>17.11</td><td>49.22</td><td>74.74</td><td>42.11</td><td>42.82</td><td>73.99</td><td>49.83</td></tr><tr><td>TEACH</td><td>19.73 (15.31%)</td><td>50.59 (2.78%)</td><td>75.12 (0.51%)</td><td>44.50 (5.68%)</td><td>43.03 (0.49%)</td><td>73.64 (0.48%)</td><td>52.37 (5.10%)</td></tr><tr><td rowspan="4">Qwen2-1.5B</td><td rowspan="2">Base</td><td>Normal</td><td>14.98</td><td>46.04</td><td>72.84</td><td>37.93</td><td>36.53</td><td>70.35</td><td>48.50</td></tr><tr><td>TEACH</td><td>18.08 (20.69%)</td><td>50.26 (9.17%)</td><td>75.65 (3.86%)</td><td>43.38 (14.37%)</td><td>41.32 (13.10%)</td><td>71.49 (1.62%)</td><td>51.67 (6.54%)</td></tr><tr><td rowspan="2">Chat</td><td>Normal</td><td>14.16</td><td>44.23</td><td>71.82</td><td>37.20</td><td>37.39</td><td>71.49</td><td>46.33</td></tr><tr><td>TEACH</td><td>17.76 (25.42%)</td><td>50.02 (13.09%)</td><td>75.47 (5.08%)</td><td>43.16 (16.02%)</td><td>41.32 (10.51%)</td><td>73.19 (2.38%)</td><td>49.77 (7.44%)</td></tr><tr><td rowspan="4">Qwen2-7B</td><td rowspan="2">Base</td><td>Normal</td><td>17.06</td><td>48.35</td><td>74.29</td><td>41.86</td><td>43.13</td><td>74.31</td><td>50.40</td></tr><tr><td>TEACH</td><td>21.88 (28.25%)</td><td>54.41 (12.53%)</td><td>77.45 (4.25%)</td><td>47.87 (14.36%)</td><td>45.93 (15.75%)</td><td>75.59 (1.72%)</td><td>53.74 (6.64%)</td></tr><tr><td rowspan="2">Chat</td><td>Normal</td><td>17.13</td><td>48.39</td><td>74.28</td><td>41.84</td><td>43.10</td><td>74.45</td><td>49.64</td></tr><tr><td>TEACH</td><td>20.09 (17.28%)</td><td>52.66 (8.82%)</td><td>76.74 (3.31%)</td><td>46.07 (10.11%)</td><td>45.00 (4.41%)</td><td>75.19 (0.99%)</td><td>52.40 (5.56%)</td></tr><tr><td rowspan="2">Xunzi-Qwen2-1.5B</td><td rowspan="2">Base</td><td>Normal</td><td>14.75</td><td>44.94</td><td>72.32</td><td>38.13</td><td>38.63</td><td>71.86</td><td>46.57</td></tr><tr><td>TEACH</td><td>19.70 (33.56%)</td><td>51.88 (15.44%)</td><td>76.22 (5.39%)</td><td>44.93 (17.83%)</td><td>43.04 (11.42%)</td><td>73.76 (2.64%)</td><td>51.76 (11.16%)</td></tr><tr><td rowspan="2">Xunzi-Qwen2-7B</td><td rowspan="2">Base</td><td>Normal</td><td>18.78</td><td>50.21</td><td>75.13</td><td>43.72</td><td>44.48</td><td>74.91</td><td>51.51</td></tr><tr><td>TEACH</td><td>23.23 (23.70%)</td><td>55.51 (10.56%)</td><td>78.14 (4.01%)</td><td>49.25 (12.65%)</td><td>46.31 (4.11%)</td><td>75.75 (1.12%)</td><td>54.70 (6.19%)</td></tr></table>
|
| 219 |
+
|
| 220 |
+
$11\%$ in average metrics. This substantial increase validates the efficacy of our framework. (2) While LLMs with Normal prompts generally do not surpass classic models in traditional metrics, they perform competitively or even better on refined metrics. This suggests that despite different from expected literal translations, LLMs can accurately interpret sentence meanings. (3) Our refined metrics outperform both token-based and semantic-based ones, showing stronger ability to assess additional knowledge conveyed by LLMs. (4) Base models usually outperform chat models, as the former are more tailored to specific tasks. (5) The Qwen series models exhibit superior performance. Among them, the Qwen-1.5B-Base with TEACH, which has a smaller parameter size for easier deployment, remains competitive across all metrics. (6) While Xunzi-Qwen2-7B benefits from pretraining on classical Chinese corpus, our TEACH framework further improves its performance by leveraging a macro-to-micro prompting strategy, enabling more accurate and interpretable outputs. (7) Beyond mere translation outputs, LLMs with TEACH offer macro historical and micro word sense analyses. This enhances interpretability and practicality, making LLMs particularly suitable for educational scenarios.
|
| 221 |
+
|
| 222 |
+
# 5.3 Analysis
|
| 223 |
+
|
| 224 |
+
To comprehensively examine our framework and mitigate the effects of data leakage from the XunziLLMs, we utilize its original Qwen2 as backbones.
|
| 225 |
+
|
| 226 |
+
Table 1: Comparison of performance among different backbones fine-tuning with Normal/TEACH method. "Avg" indicates the average of four metrics, while "(.)" show the relative improvement of TEACH compared to Normal.
|
| 227 |
+
|
| 228 |
+
<table><tr><td>ID</td><td>Model Type</td><td>Trad. Avg</td><td>Refined Avg</td></tr><tr><td>1</td><td>Qwen2-7B (TEACH CoT, trained)</td><td>37.95</td><td>61.09</td></tr><tr><td>2</td><td>Qwen2-7B (TEACH CoT, untrained)</td><td>29.97</td><td>55.97</td></tr><tr><td>3</td><td>Qwen2-7B (Normal CoT, trained)</td><td>31.36</td><td>57.44</td></tr><tr><td>4</td><td>Qwen2-7B (Normal CoT, untrained)</td><td>34.40</td><td>57.08</td></tr><tr><td>5</td><td>ERNIE-Bot4 (TEACH CoT)</td><td>32.61</td><td>65.82</td></tr><tr><td>6</td><td>ERNIE-Bot4 (Normal CoT)</td><td>35.14</td><td>64.30</td></tr></table>
|
| 229 |
+
|
| 230 |
+
Table 2: Comparison of prompting and training strategies. Models are evaluated on both traditional and refined metrics.
|
| 231 |
+
|
| 232 |
+
# 5.3.1 Ablation Study I: Training and Prompting Strategies
|
| 233 |
+
|
| 234 |
+
To examine the overall effectiveness of our TEACH framework, we evaluate the individual and joint contributions of TEACH-style CoT prompting and fine-tuning. Table 2 presents results on 500 entries from validation set using both traditional metrics (BLEU, ROUGE, BERTScore, METEOR) and our refined metrics $(\mathrm{BLEU}_{\mathrm{WAS}}, \mathrm{ROUGE}_{\mathrm{WAS}})$ .
|
| 235 |
+
|
| 236 |
+
The results in Table 2 reveal three key findings. First, the untrained Qwen2-7B model with TEACH CoT (ID 2) yields the lowest scores, confirming the necessity of TEACH framework for effective semantic and stylistic generation. Second, among the trained models, TEACH CoT (ID 1) outperforms Normal CoT (ID 3), indicating that our step-by-step prompting provides more informative guidance. Third, on the teacher model (ERNIE-Bot4), TEACH prompts (ID 5) demonstrated superior performance in improved metrics but slightly lagged in traditional ones. This can be attributed to our metrics' enhanced ability to process additional information, aligning more closely with human judg
|
| 237 |
+
|
| 238 |
+
<table><tr><td>Method</td><td>B</td><td>R</td><td>BWAS</td><td>RWAS</td><td>Avg</td></tr><tr><td>TEACH</td><td>21.88</td><td>54.41</td><td>45.93</td><td>75.59</td><td>49.45</td></tr><tr><td>w/o H</td><td>18.86</td><td>51.19</td><td>43.46</td><td>74.26</td><td>46.94</td></tr><tr><td>w/o A</td><td>20.37</td><td>52.99</td><td>45.19</td><td>75.39</td><td>48.49</td></tr><tr><td>w/o H&A</td><td>18.88</td><td>51.19</td><td>43.18</td><td>74.29</td><td>46.89</td></tr><tr><td>w/o Lcon</td><td>20.59</td><td>53.16</td><td>47.13</td><td>76.51</td><td>49.35</td></tr><tr><td>Normal</td><td>17.06</td><td>48.35</td><td>43.13</td><td>74.31</td><td>45.71</td></tr></table>
|
| 239 |
+
|
| 240 |
+
Table 3: Component-wise ablation study on Qwen2-7B-Base.
|
| 241 |
+
|
| 242 |
+
ment.
|
| 243 |
+
|
| 244 |
+
# 5.3.2 Ablation Study II: Component Analysis
|
| 245 |
+
|
| 246 |
+
To further analyze the internal structure of the TEACH framework, we ablate specific components of the prompt and loss design: historical context $(\mathcal{H})$ , word-level annotations $(\mathcal{A})$ , both $\mathcal{H} \& \mathcal{A}$ , and the style-preserving contrastive loss $(\mathcal{L}_{con})$ . Table 3 reports results using BLEU, ROUGE, $\mathrm{BLEU}_{\mathrm{WAS}}$ , ROUGE $_{\mathrm{WAS}}$ , and their average.
|
| 247 |
+
|
| 248 |
+
The results, detailed in Table 3, offer profound insights. The absence of historical contexts $\mathcal{H}$ significantly impairs performance, underscoring their essential role in comprehending classical Chinese. The removing of word annotations $\mathcal{A}$ decreases performance, yet closely matching results of w/o $\mathcal{H} \& \mathcal{A}$ . This indicates that combining $\mathcal{H}$ and $\mathcal{A}$ synergistically amplifies their effects, yielding a greater overall impact. Interestingly, removing $\mathcal{L}_{con}$ results in a noticeable decline in traditional metrics; however, it achieves peak performance on refined metrics. This suggests that without the contrastive constraints imposed on translation style, while LLMs can translate sentences with higher semantic accuracy, there is a significant discrepancy between their formatting and the literal translation style required for classical texts. This highlights the effectiveness of $\mathcal{L}_{con}$ in helping models learn translation styles specific to classical Chinese texts.
|
| 249 |
+
|
| 250 |
+
# 5.3.3 Metrics Evaluation
|
| 251 |
+
|
| 252 |
+
To validate our proposed evaluation metric, we present a comparative example in Figure 3. Based on traditional metrics, Erya clearly outperforms the LLM. However, from a more intuitive perspective, the LLM's translations are more detailed and accurate, whereas Erya occasionally fails to translate certain parts. This discrepancy arises because, while the LLM's output is semantically aligned, it does not match the reference at the character level.
|
| 253 |
+
|
| 254 |
+
Our refined metric takes semantic similarity into account and also addresses the LLM's tendencies
|
| 255 |
+
|
| 256 |
+

|
| 257 |
+
Figure 3: Comparative evaluation of metric quality. Underlines in the same color indicate character-level alignment, and words in the same color box indicate semantic alignment. Greyed-out text represents elements hidden during computing $\mathrm{BLEU}_{\mathrm{WAS}}$ and ROUGE $_{\mathrm{WAS}}$ .
|
| 258 |
+
|
| 259 |
+

|
| 260 |
+
Figure 4: Case study. Comparing outputs from traditional WSD and translation Models, and TEACH-trained LLM.
|
| 261 |
+
|
| 262 |
+
to over-translate and add extra information. Under this new metric, the performance gap between the LLM and Erya is noticeably reduced. Still, over-translation of LLM, such as turning "神机" into "机智神明", leads to a slightly lower overall score compared to Erya. In contrast, when measured by ROUGE, the improved metric surpasses the traditional one, reflecting the LLM's higher recall-oriented accuracy.
|
| 263 |
+
|
| 264 |
+
# 5.3.4 Case Study
|
| 265 |
+
|
| 266 |
+
In Figure 4, we illustrate the inference results of traditional models compared to those trained with TEACH-trained Qwen-7B-Base. Traditional models process two tasks separately and misinterpret word meanings due to a lack of historical context. In contrast, for TEACH-trained LLM, users simply input a classical text sentence, and the model automatically provides an analysis of the relevant historical background, selections for word meanings,
|
| 267 |
+
|
| 268 |
+
<table><tr><td rowspan="2">Metrics</td><td colspan="2">ERNIE-Bot4</td><td colspan="2">Qwen2-TEACH</td></tr><tr><td>w/o</td><td>w/</td><td>1.5B</td><td>7B</td></tr><tr><td>Hist. Comp.</td><td>2.97</td><td>4.40</td><td>3.67</td><td>3.96</td></tr><tr><td>Hist. Acc.</td><td>2.89</td><td>4.24</td><td>3.29</td><td>3.82</td></tr><tr><td>Word Anal. Acc.</td><td>3.61</td><td>4.85</td><td>4.06</td><td>4.37</td></tr><tr><td>Trans. Flu.</td><td>3.51</td><td>4.21</td><td>3.88</td><td>4.18</td></tr><tr><td>Trans. Acc.</td><td>3.44</td><td>4.41</td><td>3.82</td><td>4.15</td></tr><tr><td>Trans. Sty. Cons.</td><td>3.00</td><td>3.57</td><td>3.77</td><td>4.05</td></tr><tr><td>Avg</td><td>3.24</td><td>4.28</td><td>3.75</td><td>4.09</td></tr></table>
|
| 269 |
+
|
| 270 |
+
Table 4: Manual quality assessment of LLMs' outputs.
|
| 271 |
+
|
| 272 |
+
and the final sentence translation. This approach offers a multi-dimensional perspective compared to traditional translation methods. It enhances the user's understanding of the details, making it ideal for educational settings where depth of knowledge is essential.
|
| 273 |
+
|
| 274 |
+
# 5.3.5 Human Evaluation
|
| 275 |
+
|
| 276 |
+
Due to the limitations of automatic metrics, we conduct a manual quality assessment in Table 4. We select 100 random entries and gather their real labels. These are compared against outputs from ERNIE-Bot4 using the CoT template that w/ and w/o $\mathcal{H}$ & $\mathcal{A}$ , as well as outputs from TEACH-trained Qwen-series LLMs. We assess these outputs on a 5-point scale, focusing on the comprehensiveness and accuracy of historical information, word analysis accuracy, and the fluency, accuracy, and stylistic consistency of translations (see Appendix C.3 for more details). The results reveal that ERNIE-Bot4, w/o $\mathcal{H}$ and $\mathcal{A}$ , generally scores extremely lower compared to w/, demonstrating serious historical hallucinations which our template effectively mitigates. Meanwhile, the Qwen2-7B model approaches the performance of ERNIE-Bot4 w/ $\mathcal{H}$ & $\mathcal{A}$ , and even surpasses it in translation stylistic consistency. This underscores the effectiveness of our TEACH framework and external knowledge integration.
|
| 277 |
+
|
| 278 |
+
# 6 Conclusion
|
| 279 |
+
|
| 280 |
+
We introduce TEACH, a contrastive knowledge distillation approach with interpretability features tailored for training LLMs in classical Chinese educational scenarios. TEACH enhances the model's ability to process historical and semantic information, applying a step-by-step CoT prompt that progresses from paragraph to character-level analysis. Additionally, we propose refined metrics to evaluate translation by LLMs, addressing overtranslation and unnecessary additions. Experimental results confirm the effectiveness of TEACH and
|
| 281 |
+
|
| 282 |
+
our metrics. Future work could expand LLM capabilities to include more tasks related to classical Chinese, improving their educational utility.
|
| 283 |
+
|
| 284 |
+
# 7 Limitations
|
| 285 |
+
|
| 286 |
+
Although the TEACH framework significantly enhances classical Chinese understanding, extending it to other languages involves certain adaptations. In practice, this process focuses on two primary modifications: first, constructing a tailored corpus and lexical knowledge base; and second, adjusting the CoT prompts to match the linguistic characteristics of the target language.
|
| 287 |
+
|
| 288 |
+
For the first task, building a language-specific knowledge base and extracting related word meanings may require domain expertise, especially in cultures without well-established historical references. Fortunately, modern NLP techniques and large-scale web corpora can automate much of this data collection and annotation, thereby reducing the need for extensive manual efforts. As for the CoT prompts, while they may not transfer seamlessly due to differences in syntax and cultural context, only moderate prompt adjustments are generally needed to accommodate new grammatical structures and stylistic conventions. In sum, although some degree of careful customization is required, the availability of robust NLP resources and the inherent flexibility of prompt design greatly simplify the adaptation of TEACH to other languages.
|
| 289 |
+
|
| 290 |
+
# 8 Ethical Considerations
|
| 291 |
+
|
| 292 |
+
The corpora used for constructing our interpretable knowledge base are sourced exclusively from publicly available websites that offer free access for academic research purposes.
|
| 293 |
+
|
| 294 |
+
# Acknowledgment
|
| 295 |
+
|
| 296 |
+
This work is supported by the National Natural Science Foundations of China under Grant (62372060).
|
| 297 |
+
|
| 298 |
+
# References
|
| 299 |
+
|
| 300 |
+
Ernie Chang, Yow-Ting Shiue, Hui-Syuan Yeh, and Vera Demberg. 2021. Time-aware Ancient Chinese text translation and inference. In Proceedings of the 2nd International Workshop on Computational Approaches to Historical Language Change 2021, pages 1-6. Association for Computational Linguistics.
|
| 301 |
+
|
| 302 |
+
Yupeng Chang, Xu Wang, Jindong Wang, Yuan Wu, Linyi Yang, Kaijie Zhu, Hao Chen, Xiaoyuan Yi, Cunxiang Wang, Yidong Wang, et al. 2024. A survey on evaluation of large language models. ACM Transactions on Intelligent Systems and Technology, 15(3):1-45.
|
| 303 |
+
Boxing Chen and Colin Cherry. 2014. A systematic comparison of smoothing techniques for sentence-level bleu. In Proceedings of the ninth workshop on statistical machine translation, pages 362-367.
|
| 304 |
+
Zewen Chi, Li Dong, Bo Zheng, Shaohan Huang, XianLing Mao, He-Yan Huang, and Furu Wei. 2021. Improving pretrained cross-lingual language models via self-labeled word alignment. 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 3418-3430.
|
| 305 |
+
Ning Ding, Yujia Qin, Guang Yang, Fuchao Wei, Zonghan Yang, Yusheng Su, Shengding Hu, Yulin Chen, Chi-Min Chan, Weize Chen, et al. 2023. Parameter-efficient fine-tuning of large-scale pretrained language models. Nature Machine Intelligence, 5(3):220-235.
|
| 306 |
+
Zhengxiao Du, Yujie Qian, Xiao Liu, Ming Ding, Jiezhong Qiu, Zhilin Yang, and Jie Tang. 2022. Glm: General language model pretraining with autoregressive blank infilling. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 320-335.
|
| 307 |
+
Gabriel Forgues, Joelle Pineau, Jean-Marie Larchevêque, and Réal Tremblay. 2014. Bootstrapping dialog systems with word embeddings. In Nips, modern machine learning and natural language processing workshop, volume 2, page 168.
|
| 308 |
+
Yunfan Gao, Yun Xiong, Xinyu Gao, Kangxiang Jia, Jinliu Pan, Yuxi Bi, Yi Dai, Jiawei Sun, and Haofen Wang. 2023. Retrieval-augmented generation for large language models: A survey. arXiv preprint arXiv:2312.10997.
|
| 309 |
+
Team GLM, Aohan Zeng, Bin Xu, Bowen Wang, Chenhui Zhang, Da Yin, Diego Rojas, Guanyu Feng, Hanlin Zhao, Hanyu Lai, et al. 2024. Chatglm: A family of large language models from glm-130b to glm-4 all tools. arXiv preprint arXiv:2406.12793.
|
| 310 |
+
Geyang Guo, Jiarong Yang, Fengyuan Lu, Jiaxin Qin, Tianyi Tang, and Wayne Xin Zhao. 2023. Towards effective ancient chinese translation: Dataset, model, and evaluation. In CCF International Conference on Natural Language Processing and Chinese Computing, pages 416-427.
|
| 311 |
+
Edward J Hu, Phillip Wallis, Zeyuan Allen-Zhu, Yanzhi Li, Shean Wang, Lu Wang, Weizhu Chen, et al. 2022. Lora: Low-rank adaptation of large language models. In International Conference on Learning Representations.
|
| 312 |
+
|
| 313 |
+
Seungjun Lee, Jungseob Lee, Hyeonseok Moon, Chanjun Park, Jaehyung Seo, Sugyeong Eo, Seonmin Koo, and Heuseok Lim. 2023. A survey on evaluation metrics for machine translation. Mathematics, 11(4):1006.
|
| 314 |
+
Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Kuttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, et al. 2020. Retrieval-augmented generation for knowledge-intensive nlp tasks. Advances in Neural Information Processing Systems, 33:9459-9474.
|
| 315 |
+
Yuqing Li, Yuxin Zhang, Bin Wu, Ji-Rong Wen, Ruihua Song, and Ting Bai. 2022. A multi-modal knowledge graph for classical Chinese poetry. In *Findings of the Association for Computational Linguistics: EMNLP* 2022, pages 2318-2326. Association for Computational Linguistics.
|
| 316 |
+
Zhenyu Li, Sunqi Fan, Yu Gu, Xiuxing Li, Zhichao Duan, Bowen Dong, Ning Liu, and Jianyong Wang. 2024. Flexkbq: A flexible llm-powered framework for few-shot knowledge base question answering. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 18608-18616.
|
| 317 |
+
Chin-Yew Lin. 2004. ROUGE: A package for automatic evaluation of summaries. In Text Summarization Branches Out, pages 74-81, Barcelona, Spain. Association for Computational Linguistics.
|
| 318 |
+
Maofu Liu, Junyi Xiang, Xu Xia, and Huijun Hu. 2022. Contrastive learning between classical and modern chinese for classical chinese machine reading comprehension. ACM Trans. Asian Low-Resour. Lang. Inf. Process., 22(2).
|
| 319 |
+
Yutong Liu, Tao Xie, Bin Wu, and Bai Wang. 2019. New word detection in ancient chinese corpus (in Chinese). In Journal of Chinese Information Processing, pages 46-55.
|
| 320 |
+
Daniel Loureiro and Alipio Jorge. 2019. Language modelling makes sense: Propagating representations through WordNet for full-coverage word sense disambiguation. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 5682-5691. Association for Computational Linguistics.
|
| 321 |
+
Xiaomeng Pan, Hongfei Wang, Teruaki Oka, and Mamoru Komachi. 2022. Zuo zhuan Ancient Chinese dataset for word sense disambiguation. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies: Student Research Workshop, pages 129-135. Association for Computational Linguistics.
|
| 322 |
+
Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. 2002. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th annual meeting of the Association for Computational Linguistics, pages 311-318.
|
| 323 |
+
|
| 324 |
+
Boci Peng, Yun Zhu, Yongchao Liu, Xiaohe Bo, Haizhou Shi, Chuntao Hong, Yan Zhang, and Siliang Tang. 2024. Graph retrieval-augmented generation: A survey.
|
| 325 |
+
Gabriel Peyré, Marco Cuturi, et al. 2019. Computational optimal transport: With applications to data science. Foundations and Trends® in Machine Learning, 11(5-6):355-607.
|
| 326 |
+
Vasile Rus and Mihai Lintean. 2012. A comparison of greedy and optimal assessment of natural language student input using word-to-word similarity metrics. In Intelligent Tutoring Systems: 11th International Conference, ITS 2012, Chania, Crete, Greece, June 14-18, 2012. Proceedings 11, pages 675-676. Springer.
|
| 327 |
+
Masoud Jalili Sabet, Philipp Dufter, François Yvon, and Hinrich Schütze. 2020. Simalign: High quality word alignments without parallel training data using static and contextualized embeddings. In *Findings of the Association for Computational Linguistics: EMNLP* 2020, pages 1627-1643.
|
| 328 |
+
Jiho Shin, Hadi Hemmati, Moshi Wei, and Song Wang. 2024. Assessing evaluation metrics for neural test oracle generation. IEEE Transactions on Software Engineering, pages 1-13.
|
| 329 |
+
Lei Shu, Yiluan Guo, Huiping Wang, Xuetao Zhang, and Renfen Hu. 2021. The construction and application of Ancient Chinese corpus with word sense annotation. In Proceedings of the 20th Chinese National Conference on Computational Linguistics, pages 549-563. (in Chinese).
|
| 330 |
+
Huishuang Tian, Kexin Yang, Dayiheng Liu, and Jiancheng Lv. 2021. Archibert: a pre-trained model for ancient chinese language understanding and generation. In 2021 International Joint Conference on Neural Networks (IJCNN), pages 1-8.
|
| 331 |
+
Dongbo Wang, Litao Lin, Zhixiao Zhao, Wenhao Ye, Kai Meng, Wenlong Sun, Lianzhen Zhao, Xue Zhao, Si Shen, Wei Zhang, and Bin Li. 2023. EvaHan2023: Overview of the first international Ancient Chinese translation bakeoff. In Proceedings of ALT2023: Ancient Language Translation Workshop, pages 1-14, Macau SAR, China. Asia-Pacific Association for Machine Translation.
|
| 332 |
+
Dongbo Wang, Chang Liu, Zihe Zhu, Jiangfeng Liu, Haotian Hu, Si Shen, and Bin Li. 2022. Construction and application of pre-training model of "Si ku Quan shu" oriented to digital humanities (in Chinese). Library Tribune, 42(6):14.
|
| 333 |
+
Jason Wei, Yi Tay, Rishi Bommasani, Colin Raffel, Barret Zoph, Sebastian Borgeaud, Dani Yogatama, Maarten Bosma, Denny Zhou, Donald Metzler, et al. 2022a. Emergent abilities of large language models. Transactions on Machine Learning Research.
|
| 334 |
+
Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou,
|
| 335 |
+
|
| 336 |
+
et al. 2022b. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824-24837.
|
| 337 |
+
Yuting Wei, Yuanxing Xu, Xinru Wei, Simin Yang, Yangfu Zhu, Yuqing Li, Di Liu, and Bin Wu. 2024a. AC-EVAL: Evaluating Ancient Chinese language understanding in large language models. In *Findings of the Association for Computational Linguistics: EMNLP* 2024, pages 1600–1617. Association for Computational Linguistics.
|
| 338 |
+
Yuting Wei, Yangfu Zhu, Ting Bai, and Bin Wu. 2024b. A cross-temporal contrastive disentangled model for ancient chinese understanding. *Neural Networks*, 179:106559.
|
| 339 |
+
Junyi Xiang, Maofu Liu, Qiyuan Li, Chen Qiu, and Huijun Hu. 2024. A cross-guidance cross-lingual model on generated parallel corpus for classical Chinese machine reading comprehension. Information Processing & Management, 61(2):103607.
|
| 340 |
+
An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, et al. 2024a. Qwen2 technical report. arXiv preprint arXiv:2407.10671.
|
| 341 |
+
Jingfeng Yang, Hongye Jin, Ruixiang Tang, Xiaotian Han, Qizhang Feng, Haoming Jiang, Shaochen Zhong, Bing Yin, and Xia Hu. 2024b. Harnessing the power of llms in practice: A survey on chatgpt and beyond. ACM Trans. Knowl. Discov. Data, 18(6).
|
| 342 |
+
Alex Young, Bei Chen, Chao Li, Chengen Huang, Ge Zhang, Guanwei Zhang, Heng Li, Jiangcheng Zhu, Jianqun Chen, Jing Chang, et al. 2024. Yi: Open foundation models by 01. ai. arXiv preprint arXiv:2403.04652.
|
| 343 |
+
Aohan Zeng, Xiao Liu, Zhengxiao Du, Zihan Wang, Hanyu Lai, Ming Ding, Zhuoyi Yang, Yifan Xu, Wendi Zheng, Xiao Xia, et al. 2023. Glm-130b: An open bilingual pre-trained model. In The Eleventh International Conference on Learning Representations.
|
| 344 |
+
Jiali Zeng, Fandong Meng, Yongjing Yin, and Jie Zhou. 2024. Teaching large language models to translate with comparison. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 19488-19496.
|
| 345 |
+
Shitou Zhang, Ping Wang, Zuchao Li, Jingrui Hou, and Qibiao Hu. 2024. Confidence-based syntax encoding network for better ancient chinese understanding. Information Processing & Management, 61(3):103616.
|
| 346 |
+
Tianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q Weinberger, and Yoav Artzi. 2020. Bertscore: Evaluating text generation with bert. In International Conference on Learning Representations.
|
| 347 |
+
Penghao Zhao, Hailin Zhang, Qinhan Yu, Zhengren Wang, Yunteng Geng, Fangcheng Fu, Ling Yang, Wentao Zhang, and Bin Cui. 2024. Retrieval-augmented generation for ai-generated content: A survey. CoRR.
|
| 348 |
+
|
| 349 |
+
Wayne Xin Zhao, Kun Zhou, Junyi Li, Tianyi Tang, Xiaolei Wang, Yupeng Hou, Yingqian Min, Beichen Zhang, Junjie Zhang, Zican Dong, Yifan Du, Chen Yang, Yushuo Chen, Zhipeng Chen, Jinhao Jiang, Ruiyang Ren, Yifan Li, Xinyu Tang, Zikang Liu, Peiyu Liu, Jian-Yun Nie, and Ji-Rong Wen. 2023. A survey of large language models. arXiv preprint arXiv:2303.18223.
|
| 350 |
+
|
| 351 |
+
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, pages 3162-3172.
|
| 352 |
+
|
| 353 |
+
# A Knowledge-Augmented Template
|
| 354 |
+
|
| 355 |
+
The illustration of our knowledge-augmented template is shown in Figure 5, where the user only needs to input a query sentence to automatically retrieve relevant historical context and annotations, with the LLM providing a step-by-step reasoning analysis. Below, we detail the process of retrieving the context and annotations.
|
| 356 |
+
|
| 357 |
+
# A.1 Historical Database Construction
|
| 358 |
+
|
| 359 |
+
Our corpus of historical knowledge contains the complete classical text version of the Twenty-Four Histories, supplemented by novels, poetry, and other literary genres. We pre-process this corpus by cleaning, segmenting texts into sentences, and filtering out short and duplicate sentences. Utilizing the pre-trained classical Chinese model AnchiBERT, we vectorize all sentences and record their IDs along with the names of the books from which they originate. These vectors are then inserted into the Milvus vector database, which contains 4.32 million entries and boasts an average retrieval speed of 0.35 seconds.
|
| 360 |
+
|
| 361 |
+
For a query sentence, we vectorize it and apply a re-ranking method to retrieve the most relevant vector ID, along with its associated confidence score. We then extract the surrounding context—defined as the ten sentences before and after the matched ID—to obtain contextual information, with the corresponding book name cited as the source.
|
| 362 |
+
|
| 363 |
+
To evaluate the retrieval accuracy of queries in both Simplified and Traditional Chinese, we randomly selected 1,000 sentences for assessment. Our findings indicate that the database can accurately retrieve relevant contexts for both text forms. As demonstrated in Table 5, the accuracy rate for Traditional Chinese queries is slightly higher than that for Simplified Chinese. This discrepancy is likely due to a larger proportion of Traditional Chi
|
| 364 |
+
|
| 365 |
+
<table><tr><td>Metrics\Query</td><td>Trad.</td><td>Simp.</td></tr><tr><td>Accuracy</td><td>95.70%</td><td>95.20%</td></tr><tr><td>R to Trad.</td><td>58.60%</td><td>39.70%</td></tr><tr><td>R to Simp.</td><td>41.40%</td><td>60.30%</td></tr></table>
|
| 366 |
+
|
| 367 |
+
Table 5: Retrieval (R) Accuracy and Distribution for Traditional (Trad.) and Simplified (Simp.) Chinese Queries.
|
| 368 |
+
|
| 369 |
+
nese texts within our corpus. Moreover, the retrieval results encompass both Simplified and Traditional texts, confirming that our vector database is effectively adapted to both. Notably, even when faced with misspelled sentences, our database still manages to identify relevant contexts, albeit the relationships may be weaker.
|
| 370 |
+
|
| 371 |
+
# A.2 Word Annotation Collection
|
| 372 |
+
|
| 373 |
+
We use the word segmentation algorithm in Liu et al. (2019) for classical Chinese to segment all classical texts, filter out low-frequency words, and crawl annotations from the Dictionary of Classical Chinese (ZDIC). If a classical Chinese word $w$ has $K$ annotated definitions, its corresponding annotation set is defined as $S_{w} = \{s_{k} \mid k = 1, \dots, K\}$ , where each $s_{k}$ denotes the annotation text associated with the $k$ -th sense. Each annotation $s_{k}$ can be further tokenized into a sequence of words $\{s_{k,i} \mid i = 1, \dots, N_{k}\}$ , where $N_{k}$ denotes the number of tokens in $s_{k}$ . The word $w$ and its annotation set $S_{w}$ are added to the candidate set $C = \{(w : S_{w})\}$ . This process resulted in a total of 169,742 annotated classical words.
|
| 374 |
+
|
| 375 |
+
For a given query sentence, we segment it and obtain all corresponding annotated words. In practical applications, annotations of certain common but politically related words can lead to erroneous outputs. Therefore, we excluded sensitive words (e.g., place names, kings, emperors, prime ministers, countries, generals, Qin Shi Huang, monarchs) to avoid such issues.
|
| 376 |
+
|
| 377 |
+
# B Solved initial matrix for word alignment
|
| 378 |
+
|
| 379 |
+
The word alignment challenge is formulated as identifying matrix $A$ that maximizes sentence similarity:
|
| 380 |
+
|
| 381 |
+
$$
|
| 382 |
+
\max _ {A} \sum_ {i = 1} ^ {n} \sum_ {j = 1} ^ {m} A _ {i j} f _ {\text {s i m}} \left(r _ {i}, c _ {j}\right), \tag {13}
|
| 383 |
+
$$
|
| 384 |
+
|
| 385 |
+

|
| 386 |
+
Figure 5: The illustration of our knowledge-augmented template.
|
| 387 |
+
|
| 388 |
+
where $f_{\mathrm{sim}}(\cdot)$ denotes the similarity function. To solve this equation, we reformulate it as an optimal transport problem, referencing Peyre et al. (2019) and Chi et al. (2021).
|
| 389 |
+
|
| 390 |
+
Specifically, an entropic regularization is added to $A$ :
|
| 391 |
+
|
| 392 |
+
$$
|
| 393 |
+
\max _ {A} \sum_ {i = 1} ^ {n} \sum_ {j = 1} ^ {m} A _ {i j} f _ {\operatorname {s i m}} \left(r _ {i}, c _ {j}\right) - \mu A _ {i j} \log A _ {i j}. \tag {14}
|
| 394 |
+
$$
|
| 395 |
+
|
| 396 |
+
Then, Eq. (14) has a unique solution $A^{\prime}$ :
|
| 397 |
+
|
| 398 |
+
$$
|
| 399 |
+
A ^ {\prime} = \operatorname {d i a g} (\boldsymbol {u}) K \operatorname {d i a g} (\boldsymbol {v}), \tag {15}
|
| 400 |
+
$$
|
| 401 |
+
|
| 402 |
+
$$
|
| 403 |
+
K _ {i j} = e ^ {f _ {\operatorname {s i m}} \left(r _ {i}, c _ {j}\right) / \mu}, \tag {16}
|
| 404 |
+
$$
|
| 405 |
+
|
| 406 |
+
where $\pmb{u} \in \mathbb{R}_{+}^{n}$ , $\pmb{v} \in \mathbb{R}_{+}^{m}$ , $K \in \mathbb{R}_{+}^{n \times m}$ . According to Sinkhorn's algorithm (Peyre et al., 2019), the variables $\pmb{u}$ and $\pmb{v}$ can be calculated by the following iterations:
|
| 407 |
+
|
| 408 |
+
$$
|
| 409 |
+
\boldsymbol {u} ^ {t + 1} = \frac {\mathbf {1} _ {n}}{K \boldsymbol {v} ^ {t}}, \quad \boldsymbol {v} ^ {t + 1} = \frac {\mathbf {1} _ {m}}{K ^ {\top} \boldsymbol {u} ^ {t + 1}}, \tag {17}
|
| 410 |
+
$$
|
| 411 |
+
|
| 412 |
+
where $\pmb{v}^t$ can be initialized by $\pmb{v}^{t = 0} = \mathbf{1}_m$ .
|
| 413 |
+
|
| 414 |
+
# C Analysis
|
| 415 |
+
|
| 416 |
+
# C.1 Effect of Training Corpus Size
|
| 417 |
+
|
| 418 |
+
We evaluate the performance of the Qwen2-series models across various sizes of high-quality training data. Figure 6 illustrates that as the corpus size increases, the model's performance progressively improves but eventually stabilizes. Notably, even with as few as 1000 training entries, the model shows significant improvement. Considering the costs, we
|
| 419 |
+
|
| 420 |
+

|
| 421 |
+
Figure 6: Compare the performance of finetuning student models with different corpus sizes. The average (avg) score is computed over four metrics: BLEU, ROUGE, $\mathrm{BLEU}_{\mathrm{WAS}}$ , and ROUGE $_{\mathrm{WAS}}$ .
|
| 422 |
+
|
| 423 |
+

|
| 424 |
+
|
| 425 |
+
randomly select 3,000 high-quality entries to finetune the LLMs. The experiments reveal that with these entries, the model outperforms the traditional Erya model, which was trained on 300,000 entries. Additionally, it provides comprehensive historical context and semantic analysis. This highlights the effectiveness of our interpretable knowledge and the TEACH framework.
|
| 426 |
+
|
| 427 |
+
# C.2 Efficiency and Applicability Compare
|
| 428 |
+
|
| 429 |
+
In Table 6, we examine the efficiency and applicability of TEACH-trained Qwen-series models in comparison to two baselines: the closed-source ERNIE-Bot4 and Erya. We focus on model size, deployment complexity, cost, and functionality.
|
| 430 |
+
|
| 431 |
+
Firstly, ERNIE-Bot4, with its larger parameter size, requires substantial resources for deployment or high API costs. In contrast, TEACH trains smaller models effectively on just one Nvidia A100 GPU, with capabilities for inference on
|
| 432 |
+
|
| 433 |
+
<table><tr><td rowspan="2"></td><td rowspan="2">Erya</td><td rowspan="2">ERNIE-Bot4</td><td colspan="2">Qwen2-TEACH</td></tr><tr><td>1.5B</td><td>7B</td></tr><tr><td>Model Size (B)</td><td>0.15</td><td>Closed</td><td>1.5</td><td>7</td></tr><tr><td>Training GPU</td><td>13090</td><td>Hard</td><td>1A100</td><td>1A100</td></tr><tr><td>Deployment GPU</td><td>13090</td><td>Hard</td><td>13090</td><td>13090</td></tr><tr><td>Retrieval Time (s)</td><td>X</td><td>0.35</td><td>0.35</td><td>0.35</td></tr><tr><td>Reasoning Time (s)</td><td>0.15</td><td>22.51</td><td>0.87</td><td>2.59</td></tr><tr><td>API Costs/Input</td><td>X</td><td>0.04</td><td>X</td><td>X</td></tr><tr><td>API Costs/Output</td><td>X</td><td>0.12</td><td>X</td><td>X</td></tr><tr><td>Historical Info</td><td>X</td><td>✓</td><td>✓</td><td>✓</td></tr><tr><td>Word Analysis</td><td>X</td><td>✓</td><td>✓</td><td>✓</td></tr></table>
|
| 434 |
+
|
| 435 |
+
Table 6: The comparison of efficiency and applicability. API Costs are denoted in ¥/1K tokens.
|
| 436 |
+
|
| 437 |
+
<table><tr><td>Metric</td><td>Description</td></tr><tr><td>Hist. Comp.</td><td>Assesses the exhaustiveness of the historical content, ensuring that all pertinent facts are thoroughly in-
|
| 438 |
+
cluded.</td></tr><tr><td>Hist. Acc.</td><td>Evaluates the correctness of the his-torical content, verifying that all in-
|
| 439 |
+
cluded facts are accurately depicted.</td></tr><tr><td>Word Anal. Acc.</td><td>Examines the precision in analyzing and interpreting individual words,
|
| 440 |
+
focusing on their meanings and con-
|
| 441 |
+
texts within the text.</td></tr><tr><td>Trans. Flu.</td><td>Assesses the smoothness and natu-
|
| 442 |
+
ral flow of translations, checking for
|
| 443 |
+
natural readability and the absence
|
| 444 |
+
of awkward phrasing.</td></tr><tr><td>Trans. Acc.</td><td>Focuses on the correctness of trans-
|
| 445 |
+
lations, particularly how faithfully
|
| 446 |
+
the text conveys the semantic intent
|
| 447 |
+
of the original language.</td></tr><tr><td>Trans. Sty.
|
| 448 |
+
Cons.</td><td>Evaluates how consistently the
|
| 449 |
+
translation maintains the literal
|
| 450 |
+
style of the answers.</td></tr></table>
|
| 451 |
+
|
| 452 |
+
Table 7: Definition of Evaluation Metrics Used to Assess Quality of Outputs
|
| 453 |
+
|
| 454 |
+
a single Nvidia GeForce RTX 3090 GPU. Secondly, ERNIE-Bot4 experiences prolonged inference times due to API dependency, while smaller models like the 7B deliver results in less than one-tenth of that time. Lastly, although TEACH may extend reasoning times compared to Erya, it substantially enriches outputs with detailed historical context and semantic analysis. This enhancement not only boosts user engagement but also strengthens its educational utility.
|
| 455 |
+
|
| 456 |
+
# C.3 Details of Human Evaluation
|
| 457 |
+
|
| 458 |
+
Evaluation Metrics Defined: We introduce six evaluation metrics used to assess the quality of outputs, detailed in Table 7. These metrics collectively help in providing a thorough evaluation of the linguistic and historical accuracy of our model outputs.
|
| 459 |
+
|
| 460 |
+
Expert Panel Composition and Reliability: To
|
| 461 |
+
|
| 462 |
+
ensure the reliability and reduce individual biases in our assessment, we invite five experts in classical Chinese language, all holding either Master's or Ph.D. degrees. The experts, ranging in age from 25 to 60, include three males and two females, representing diverse academic institutions and possessing extensive experience in historical linguistics. We average the ratings from all experts, and the Cronbach's Alpha of these annotations is 0.89, indicating a high level of inter-annotator agreement.
|
2025/TEACH_ A Contrastive Knowledge Adaptive Distillation Framework for Classical Chinese Understanding/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:706231dd9a7028d737b0e3d82453cd0357869bd56b843281816031a40b3edfa1
|
| 3 |
+
size 751980
|
2025/TEACH_ A Contrastive Knowledge Adaptive Distillation Framework for Classical Chinese Understanding/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TESS 2_ A Large-Scale Generalist Diffusion Language Model/cc3a7cf6-9b0a-4a89-a779-2019421a1045_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TESS 2_ A Large-Scale Generalist Diffusion Language Model/cc3a7cf6-9b0a-4a89-a779-2019421a1045_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TESS 2_ A Large-Scale Generalist Diffusion Language Model/cc3a7cf6-9b0a-4a89-a779-2019421a1045_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:63fcef0296f89aa4c6c2d13dfcc9e125c808fd9c9ff32b99c0b5701af876ef97
|
| 3 |
+
size 670161
|
2025/TESS 2_ A Large-Scale Generalist Diffusion Language Model/full.md
ADDED
|
@@ -0,0 +1,503 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TESS 2: A Large-Scale Generalist Diffusion Language Model
|
| 2 |
+
|
| 3 |
+
Jaesung Tae $^{1*}$ , Hamish Ivison $^{2,3*}$ , Sachin Kumar $^{3,4}$ , Arman Cohan $^{1}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ Yale University, $^{2}$ University of Washington,
|
| 6 |
+
|
| 7 |
+
3Allen Institute for AI, 4The Ohio State University
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
We introduce TESS 2, a general instruction-following diffusion language model that outperforms contemporary instruction-tuned diffusion models, as well as matches and sometimes exceeds strong autoregressive (AR) models. We train TESS 2 by first adapting an AR model via continued pretraining with the usual cross-entropy as diffusion loss, and then performing further instruction tuning. We find that adaptation training as well as the choice of the base model is crucial for training good instruction-following diffusion models. Furthermore, we propose reward guidance, a novel and modular inference-time guidance procedure to align model outputs without needing to train the underlying model. Finally, we show that TESS 2 further improves with increased inference-time compute, highlighting the utility of diffusion LMs in having fine-grained controllability over the amount of compute used at inference time. Code and models are available at https://github.com/hamishivi/tess-2.
|
| 12 |
+
|
| 13 |
+
# 1 Introduction
|
| 14 |
+
|
| 15 |
+
Existing language models are predominantly trained using an autoregressive (AR) paradigm. Prior works have suggested that AR models may have a number of limitations, especially in planning and self-correction (Lin et al., 2021; Bachmann and Nagarajan, 2024; Huang et al., 2024). While recent work has made large strides in improving AR model reasoning, this hinges on increasing test-time compute using specialized reinforcement learning-based training procedures (Kumar et al., 2024; Laskin et al., 2022) and costly long generations (DeepSeek-AI, 2025; Min et al., 2024).
|
| 16 |
+
|
| 17 |
+
An alternative paradigm lies in diffusion language models, which have shown promise in addressing some of the limitations of AR models (Ye et al., 2024; Zhang et al., 2023). Diffusion models
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: Overview of inference with TESS 2. We provide a chat-template formatted query and iteratively denoise over the simplex space for a number of diffusion steps (typically 100). Optionally, we also incorporate reward guidance at each diffusion step by applying the gradient of the predicted reward to the intermediate logits, i.e., gradient ascent on reward.
|
| 21 |
+
|
| 22 |
+
provide plug-and-play controllability at inference time (Li et al., 2022), are naturally capable of flexible generation such as infilling, and enable precise control of inference compute, more so than recent long chain-of-thought approaches. However, diffusion LMs have remained relatively small scale and focused on improving intrinsic metrics such as perplexity (Lou et al., 2024; Gulrajani and Hashimoto, 2023), rather than examining common downstream tasks used to evaluate AR LMs. This constrains their broader impact and practical applicability.
|
| 23 |
+
|
| 24 |
+
In this work, we aim to close this gap by introducing TESS 2, a large-scale diffusion language model. We show that strong diffusion models can be trained by adapting from existing AR models, and that these models can be further instruction-tuned to serve as strong generalist models across varied downstream settings. We ablate a number of configurations and present a recipe for adapting existing AR LMs to diffusion models. Our final model outperforms contemporary diffusion LMs and performs close to or exceeds AR baselines, showing that continuous diffusion models can serve as generalist instruction-tuned LMs.
|
| 25 |
+
|
| 26 |
+
To the best of our knowledge, we are the first work to provide a full recipe for training generalist instruction-following fully non-autoregressive continuous diffusion models, with prior work only examining performance after task-specific finetuning (Karimi Mahabadi et al., 2024; Han et al., 2024a), using semi-autoregressive setups and only testing chat settings (Han et al., 2023), or using a discrete diffusion approach instead of a continuous one (Gong et al., 2024). We also underscore the unique advantages of diffusion LMs over AR models: the scalability of inference-time compute with increased diffusion steps and the ability to supplement the backward diffusion process with reward models. We summarize our contributions.
|
| 27 |
+
|
| 28 |
+
1. We propose a recipe for adapting LLMs into instruction-following diffusion LMs that significantly outperform prior text diffusion models and perform similarly to or better than AR models on QA and general instruction-following tasks.
|
| 29 |
+
2. We ablate components of the recipe and highlight salient elements, such as the choice of the base model, where possible.
|
| 30 |
+
3. We show that our resulting model can further improve with increased test-time compute by employing more diffusion steps.
|
| 31 |
+
4. We introduce reward guidance, a novel technique for steering diffusion LMs to generate text aligned with user preferences, enhancing downstream chat performance without any additional training.
|
| 32 |
+
|
| 33 |
+
# 2 Related Work
|
| 34 |
+
|
| 35 |
+
Diffusion Language Models With the popularization of diffusion models in domains such as image (Nichol and Dhariwal, 2021), audio (Kong et al., 2020; Tae et al., 2022; Shen et al., 2023), video (Ho et al., 2022), and text-to-image generation (Saharia et al., 2022; Ramesh et al., 2022), there have been growing attempts to adapt and improve diffusion methods for language generation. One line of diffusion LMs proposes a diffusion process that adds Gaussian noise to word embeddings (Li et al., 2022; Gulrajani and Hashimoto, 2023). Another approach uses discrete diffusion based on categorical jump probabilities and continuous-time Markov chains (Lou et al., 2024; Richemond et al., 2022; Gong et al., 2024; Nie et al., 2025), removing the need for mapping diffused embeddings to discrete inputs or outputs.
|
| 36 |
+
|
| 37 |
+
In contrast, simplex diffusion language models maintain the continuity of the diffusion process, instead aiming to learn discrete data by modelling over a continuous simplex. We build off TESS (Karimi Mahabadi et al., 2024), which diffuses over the probability simplex and itself is a fully-non-autoregressive version of SSD-LM (Han et al., 2022). While Han et al. (2024b) explored scaling SSD-LM for instruction-following, it remained semi-autoregressive and focused on a novel collaborative decoding strategy without releasing code, models, or data. In contrast, we show that fully non-autoregressive generation is possible at context lengths of up to 2048 tokens while only using publicly available data and model checkpoints. We also take a different approach from LLaDA (Nie et al., 2025), a contemporary work that focuses on pretraining from scratch at scale, and instead explore how we can leverage already pretrained AR models to reformulate them as diffusion LMs.
|
| 38 |
+
|
| 39 |
+
Adapting Diffusion Models Concurrent and prior work has also examined instruction-tuning diffusion models and adapting them from existing AR models. Han et al. (2024a) builds off SUN-DAE (Savinov et al., 2022) and shows that AR models can be successfully converted into diffusion models for further downstream finetuning. They focus on training diffusion checkpoints that can then be finetuned to perform specific tasks, as opposed to examining instruction tuning and general performance as done in this work.
|
| 40 |
+
|
| 41 |
+
Ye et al. (2023) examines scaling reparameterized discrete diffusion models (Zheng et al., 2024) by adapting XLM-R checkpoints (Conneau et al., 2020), but report that they are unable to adapt more modern LMs and find their models fall short on more complex reasoning tasks.
|
| 42 |
+
|
| 43 |
+
Concurrent to our work, Gong et al. (2024) proposes DiffuLlama, an absorbing discrete diffusion model (Austin et al., 2021) adapted from Llama (Touvron et al., 2023). However, they focus on discrete diffusion and pretraining without exploring instruction tuning. In comparison, we show that simpler continuous diffusion algorithms from SSD-LM and TESS can be straightforwardly translated to adapt diffusion LMs. We additionally explore instruction tuning adapted diffusion LMs and evaluate the model on common instruction tuning benchmarks, which better reflect real-life applications that require the ability to provide long-form generations that engage with user queries.
|
| 44 |
+
|
| 45 |
+
# 3 TESS 2
|
| 46 |
+
|
| 47 |
+
# 3.1 Simplex Diffusion Language Models
|
| 48 |
+
|
| 49 |
+
For the model architecture of TESS 2, we largely follow TESS (Karimi Mahabadi et al., 2024), a fully non-autoregressive diffusion model with self-conditioning. We provide a brief recap.
|
| 50 |
+
|
| 51 |
+
Simplex-based Representation Let $\mathcal{V}$ denote the vocabulary space. We map the index of each token to be generated $w\in \mathcal{V}$ to a $k$ -logit simplex to produce $\mathbf{s}^w\in \{\pm k\}^{|\mathcal{V}|}$ , whose $i$ -th component satisfies
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
s _ {(i)} ^ {w} = \left\{ \begin{array}{l l} k, & \text {i f} \quad i = w, \\ - k, & \text {o t h e r w i s e}, \end{array} \right. \tag {1}
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
with a hyperparameter $k\in \mathbb{R}^{+}$ . We then produce a probability simplex over $\nu$ via $\mathbf{p}^w = \mathrm{softmax}(\mathbf{s}^w)$ . Finally, we compute the weighted sum of word embeddings to obtain a continuous embedding vector, $\mathbf{h}^w = \mathbf{E}\mathbf{p}^w$ , where $\mathbf{E}\in \mathbb{R}^{d\times |\mathcal{V}|}$ is the word embedding matrix, $d$ denotes the size of the hidden dimension, and $\mathbf{h}^w\in \mathbb{R}^d$ .
|
| 58 |
+
|
| 59 |
+
Timestep Embeddings We use a single linear layer without bias to produce timestep embeddings. These embeddings are directly added to the token embeddings before being fed into the first transformer block to inform the model of the current timestep in the diffusion process.
|
| 60 |
+
|
| 61 |
+
Forward Diffusion Let $\mathbf{w} = (w_{1},\dots ,w_{L})$ be a sentence of $L$ tokens such that $w_{i}\in \mathcal{V}$ , and $\mathbf{S}_0 = (\mathbf{s}^{w_1},\ldots ,\mathbf{s}^{w_L})\in \{\pm k\}^{L\times |\mathcal{V}|}$ be the $k$ -logit simplex representation of $\mathbf{w}$ . Following the standard Denoising Diffusion Probabilistic Models (DDPM) formulation (Ho et al., 2020), we add noise to the $k$ -logit simplex representation during training according to
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
\mathbf {S} _ {t} = \sqrt {\bar {\alpha} _ {t}} \mathbf {S} _ {0} + \sqrt {1 - \bar {\alpha} _ {t}} \boldsymbol {\epsilon} _ {t}, \tag {2}
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
where $t\in \{0,1,\dots ,T\}$ is the timestep, $T\in \mathbb{N}$ is the total number of diffusion steps, $\epsilon_t\sim \mathcal{N}(0,k^2\mathbf{I})$ and $\bar{\alpha}_t$ follows the cosine noise schedule (Nichol and Dhariwal, 2021).
|
| 68 |
+
|
| 69 |
+
Training We train the model by computing the usual cross-entropy loss between the ground-truth tokens $\mathbf{w}$ and the model prediction given a noisy logit simplex $\mathbf{S}_t$ at timestep $t$ .
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
\mathcal {L} = \mathbb {E} _ {t, q (\mathbf {S} _ {0}), q (\mathbf {S} _ {t} | \mathbf {S} _ {0})} \left[ - \sum_ {i = 1} ^ {L} \log p _ {\boldsymbol {\theta}} \left(w _ {i} | \mathbf {S} _ {t}, t\right) \right]. \tag {3}
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
This is in contrast to the usual mean squared error loss used in standard diffusion models, and is found to be stable in training simplex-based diffusion language models (Han et al., 2022; Karimi Mahabadi et al., 2024).
|
| 76 |
+
|
| 77 |
+
Sampling During inference, we sample $\mathbf{S}_T$ from the prior $\mathcal{N}(0,k^2\mathbf{I})$ and run the reverse process for $t = T,\ldots ,1$ on the noisy $k$ -logit simplex. The reverse process can be approximated via
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
\mathbf {S} _ {t - 1} = \sqrt {\bar {\alpha} _ {t - 1}} \hat {\mathbf {S}} _ {\boldsymbol {\theta}} \left(\mathbf {S} _ {t}, t\right) + \sqrt {1 - \bar {\alpha} _ {t - 1}} \boldsymbol {\epsilon} _ {t}. \tag {4}
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
Thus, to reverse one step from $t$ , we take the model prediction $\hat{\mathbf{S}}_{\theta}$ as the hypothetical ground truth, then corrupt it by $(t - 1)$ timesteps. To construct the model prediction, we project the logits predicted by the underlying encoder model via argmax as a pseudo-inverse of Eq. (1) to match the initial $k$ -logit representation:
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\hat {s} _ {(i)} ^ {w} = \left\{ \begin{array}{l l} k, & \text {i f} \quad i = \operatorname {a r g m a x} \left(\mathbf {s} ^ {w}\right), \\ - k, & \text {o t h e r w i s e .} \end{array} \right. \tag {5}
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
# 3.2 Adapting AR models to Diffusion
|
| 90 |
+
|
| 91 |
+
Our approach to adapting AR models to diffusion consists of three key elements: UL2 masking, label shifting, and full bidirectional attention.
|
| 92 |
+
|
| 93 |
+
UL2 Masking Inspired by Tay et al. (2023), we train our model with a mixture of span infilling and prefix completion training objectives. For span infilling, we mask out random spans (with lengths randomly sampled from a pre-specified range) within the text and train the model to predict them. For prefix completion, we mask the last $n$ tokens, where $n$ is randomly chosen, and ask the model to predict the rest. The latter objective aligns with how we use the model for downstream tasks, but we found training with both objectives to work best for overall performance in pilot experiments. We provide further details in App. A.
|
| 94 |
+
|
| 95 |
+
Label Shifting Given some noised input, a typical diffusion LM predicts the less noised version of the same token at each position in the sequence. That is, given a noised simplex $\mathbf{S}_t = (\mathbf{s}_t^{w_1},\dots,\mathbf{s}_t^{w_L})$ , the model predicts $\mathbf{S}_{t - 1} = (\mathbf{s}_{t - 1}^{w_1},\dots,\mathbf{s}_{t - 1}^{w_L})$ . In our approach, we instead train the model to predict the token at the next index position to align with the next token prediction objective used for AR models, i.e., the model predicts $(\mathbf{s}_{t - 1}^{w_2},\dots,\mathbf{s}_{t - 1}^{w_L + 1})$ . This does not affect the validity of the denoising diffusion setup, but we find that it
|
| 96 |
+
|
| 97 |
+
helps the model converge faster. Concurrent to our work, DiffuLlama (Gong et al., 2024) also reported positive results with label shifting.
|
| 98 |
+
|
| 99 |
+
Full Bidirectional Attention Finally, we disable causal masking and train our model with full bidirectional attention masks, as we found this led to better performance in pilot experiments. Fortunately, existing optimized model components such as Flash Attention (Dao et al., 2022; Dao, 2024) are fully compatible with this change. This enables fast and efficient diffusion adaptation training. Concurrently, DiffuLlama (Gong et al., 2024) also reported using full bidirectional attention.
|
| 100 |
+
|
| 101 |
+
# 3.3 Instruction Tuning
|
| 102 |
+
|
| 103 |
+
Once we have a diffusion-adapted model, we further put it through a stage of instruction tuning, in which we train the model on a smaller set of carefully curated instruction data. For this stage, we apply the same label shifting and full bidirectional attention mask as before, but switch from UL2 to only using a prefix-LM (Liu et al., 2018) objective for training. Specifically, we format our dataset to contain only single-turn instances, mask out the assistant response, and train the model to predict it. We also explored multi-turn training but observed marginal gains. We leave improved multi-turn training for future work.
|
| 104 |
+
|
| 105 |
+
# 3.4 Reward-based Classifier Guidance
|
| 106 |
+
|
| 107 |
+
Finally, we explore reward guidance, a novel method to improve model outputs without further training. We extend the guidance method proposed in Han et al. (2022) to be used with a scalar reward model. Intuitively, reward guidance works by adjusting the in-progress generation at each diffusion step using gradients from an off-the-shelf reward model, which is used to estimate the potential reward of the generation. This ultimately allows us to guide the generation process towards sequences with higher rewards.
|
| 108 |
+
|
| 109 |
+
Specifically, at each diffusion step, we take the output from the model at a given step, $\hat{\mathbf{S}}_{\theta}$ , and convert it to continuous token embeddings that we can then feed into an off-the-shelf reward model (with a matching tokenizer):
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
\mathbf {p} _ {t} = \operatorname {s o f t m a x} (\hat {\mathbf {S}} _ {\boldsymbol {\theta}}) \tag {6}
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
\mathbf {c} _ {w} = \mathbf {E} \mathbf {p} _ {t}, \tag {7}
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
where $\mathbf{E}$ is the embedding matrix of the classifier. We then pass $\mathbf{c}_w$ as input into the reward model,
|
| 120 |
+
|
| 121 |
+
adding any required positional information before feeding it into the first hidden layer. This results in a predicted reward $R \in \mathbb{R}$ for the given timestep. Since we want to increase this, we perform gradient ascent on the output reward, computing the gradient of $\hat{\mathbf{S}}_{\theta}$ with respect to the reward via backpropagation and then adding the resulting gradient to the model prediction by
|
| 122 |
+
|
| 123 |
+
$$
|
| 124 |
+
\hat {\mathbf {S}} _ {\boldsymbol {\theta}} := \hat {\mathbf {S}} _ {\boldsymbol {\theta}} + \boldsymbol {\eta} \cdot \nabla_ {\boldsymbol {\theta}} R, \tag {8}
|
| 125 |
+
$$
|
| 126 |
+
|
| 127 |
+
where $\eta$ is the guidance coefficient that controls how much guidance to apply at each timestep. Note that this is an inference-time algorithm that is applied at each timestep during the backward process; we do not apply any guidance during training.
|
| 128 |
+
|
| 129 |
+
# 4 Experiments
|
| 130 |
+
|
| 131 |
+
# 4.1 Setup
|
| 132 |
+
|
| 133 |
+
We evaluate our model in three settings: directly after diffusion adaptive pretraining, after instruction tuning, and with reward guidance applied.
|
| 134 |
+
|
| 135 |
+
Diffusion Adaptation For diffusion adaptation training, we train the model on Dolma 1.7 (Soldaini et al., 2024), an open pretraining dataset, for up to 200,000 train steps, or approximately 45 billion tokens. We use a constant learning rate of $1 \times 10^{-5}$ with a linear warmup of 5000 train steps, and a batch size of 112 samples. We adapt the Mistral-7B-v0.1 model (Jiang et al., 2023), based on model ablations explored in Sec. 4.2. We use a simplex value of 5 and self-conditioning as done in Karimi Mahabadi et al. (2024). We provide additional details in App. A.
|
| 136 |
+
|
| 137 |
+
Instruction Tuning For instruction tuning, we use the Tulu 2 SFT mixture (Ivison et al., 2023), which consists of roughly 326k samples. We fine-tune for 3 epochs with a learning rate of $1 \times 10^{-5}$ with linear warmup for the first $3\%$ of training steps and linear cooldown for the rest of training, which we found worked best in pilot experiments.
|
| 138 |
+
|
| 139 |
+
Reward Guidance For reward guidance, we train a standard reward model on human preferences using Mistral-7B-v0.1 and the data and hyperparameters provided by Dong et al. (2023); Xiong et al. (2023). We provide training details in App. C.
|
| 140 |
+
|
| 141 |
+
Adaptation Evaluation Following Han et al. (2022, 2023); Richemond et al. (2022), we evaluate our adaptation using perplexity, average distinct $n$ -grams in the output samples (d-1/2/3/4), unigram (per-token) entropy, and Mauve score (Pillutla et al., 2021). Perplexity is measured using a held-out model, $^{3}$ following Han et al. (2022, 2023).
|
| 142 |
+
|
| 143 |
+
Downstream Evaluation In addition to the adaptation evaluation, we evaluate our models on a diverse set of downstream tasks: (1) AlpacaEval (Li et al., 2023), which tests general instruction following capabilities; (2) GSM8k (Cobbe et al., 2021), which tests simple math word problems; (3) SQuAD (Rajpurkar et al., 2016) (with context), which tests general question-answering abilities; (4) TriviaQA (Joshi et al., 2017), a reading comprehension dataset; (5) IFEval (Zhou et al., 2023), which tests exact instruction-following; and (6) Big Bench Hard (BBH) (Suzgun et al., 2022), which tests general reasoning. For GSM8k, we additionally test the performance of our model after finetuning on the GSM8k symbolic data provided by Ye et al. (2024), following DiffuLLaMA (Gong et al., 2024). We provide further details in App. D.
|
| 144 |
+
|
| 145 |
+
# 4.2 Diffusion Adaptation
|
| 146 |
+
|
| 147 |
+
<table><tr><td></td><td>Rand.</td><td>RoBERTa</td><td>Llama 2</td><td>Llama 3</td><td>Mistral</td></tr><tr><td>Perp.</td><td>54.4</td><td>20.2</td><td>3619.2</td><td>880.4</td><td>24.3</td></tr><tr><td>d-1</td><td>0.55</td><td>0.36</td><td>0.94</td><td>0.97</td><td>0.62</td></tr><tr><td>d-2</td><td>0.82</td><td>0.59</td><td>0.99</td><td>0.99</td><td>0.87</td></tr><tr><td>d-3</td><td>0.91</td><td>0.69</td><td>0.98</td><td>0.98</td><td>0.93</td></tr><tr><td>d-4</td><td>0.94</td><td>0.75</td><td>0.98</td><td>0.98</td><td>0.94</td></tr><tr><td>Mauve</td><td>0.92</td><td>0.93</td><td>0.01</td><td>0.93</td><td>0.95</td></tr><tr><td>Entropy</td><td>5.7</td><td>4.8</td><td>7.7</td><td>7.8</td><td>6.3</td></tr></table>
|
| 148 |
+
|
| 149 |
+
Table 1: Performance of diffusion adaptation after 35,000 steps of pretraining over varied base models. In all cases except perplexity, higher is better. Rand inicidates initializing from scratch.
|
| 150 |
+
|
| 151 |
+
While TESS used a RoBERTa model (Liu et al., 2019) as its backbone, recently there has been a wave of increasingly larger and more powerful open-weight pretrained models (Jiang et al., 2023; Touvron et al., 2023; Llama Team, 2024). However, unlike RoBERTa, these models are typically decoder-only causal LMs, which makes it unclear how well they transfer to the full bidirectional attention setup used for diffusion LMs. This additional layer of complexity has been a challenge in adapting pretrained LLMs to diffusion.
|
| 152 |
+
|
| 153 |
+

|
| 154 |
+
Figure 2: Train loss during adaptation training when adapting from different models. We find Mistral achieves the lowest overall loss during training, even compared to newer LMs such as Llama 3.
|
| 155 |
+
|
| 156 |
+
We investigate this by conducting diffusion adaptation training on 4 different base models for 35,000 steps (roughly 2B tokens) with Dolma 1.7: RoBERTa (Liu et al., 2019), Llama 2 (Touvron et al., 2023), Llama 3.0 (Llama Team, 2024), and Mistral base v0.1 (Jiang et al., 2023). We additionally try pretraining from scratch using a randomly initialized Mistral v0.1. We use a sequence length of 512 due to RoBERTa's only supporting up to that length. We evaluate these models on a random sample of 512 samples from the C4 validation set (Raffel et al., 2020), using the metrics described in Sec. 4.1. We show the results in Table 1. We enumerate our findings below.
|
| 157 |
+
|
| 158 |
+
Llama models do not adapt well. Llama models were unable to generate coherent text with the small number of pretraining steps. While we find the models perform better with more pretraining, they additionally display higher loss values throughout training compared to Mistral or RoBERTa, as seen in Figure 2. This also occurs for Llama 3.0, despite it being a stronger base model than Mistral v0.1 in AR settings. We suggest this is due to the use of bidirectional attention during training, which results in a large change in the model's internal hidden states.4 We additionally experimented with maintaining the causal attention mask during pilot experiments and found it still yielded poorer training curves compared to Mistral, likely due to the fact that the causal mask removes a core benefit of diffusion LMs: full bidirectional attention flows across the entire input and sequence to be gener-
|
| 159 |
+
|
| 160 |
+
ated. In contrast, Mistral likely behaves better due to potentially being pretrained with a prefix-LM objective with partial bidirectional attention; its ability to handle sudden changes in its attention mask has also been noted in prior work (BehnamGhader et al., 2024), which hypothesized that Mistral may have been trained with a prefix-LM objective.
|
| 161 |
+
|
| 162 |
+
Adapting Mistral results in coherent and diverse generations. Additionally, we find that Mistral performs better than Llama, achieving much lower perplexity and generating coherent text. While its perplexity is higher than RoBERTa, Mistral also displays significantly better distinct $n$ -grams and Mauve, indicating diverse, high quality generations. Furthermore, Mistral is able to natively handle much longer sequences than RoBERTa, which is limited to 512-length sequences due to its absolute positional embeddings. Finally, the Mistral adaptation produces lower loss than training from scratch, suggesting that the diffusion-adapted model is able to make use of the knowledge and skills attained through AR pretraining.
|
| 163 |
+
|
| 164 |
+
<table><tr><td>Ctx. Len.</td><td>512</td><td>2048</td><td>2048</td></tr><tr><td>Train Steps</td><td>35,000</td><td>10,000</td><td>200,000</td></tr><tr><td>Perp.</td><td>24.3</td><td>12.2</td><td>11.3</td></tr><tr><td>d-1</td><td>0.62</td><td>0.58</td><td>0.59</td></tr><tr><td>d-2</td><td>0.87</td><td>0.84</td><td>0.85</td></tr><tr><td>d-3</td><td>0.93</td><td>0.91</td><td>0.91</td></tr><tr><td>d-4</td><td>0.94</td><td>0.93</td><td>0.93</td></tr><tr><td>Mauve</td><td>0.95</td><td>0.97</td><td>0.92</td></tr><tr><td>Entropy</td><td>6.31</td><td>6.21</td><td>6.34</td></tr></table>
|
| 165 |
+
|
| 166 |
+
Table 2: Intrinsic pretraining metrics when pretraining Mistral 7b v0.1 base with varying context lengths and pretraining steps. We find that using a longer context length and training for longer improves performance.
|
| 167 |
+
|
| 168 |
+
Given these results and our limited compute budget, we chose Mistral as the base for future experiments. However, we emphasize this does not imply that Llama is inherently unsuitable for our approach: the Llama models are far from full convergence given that we saw a measurable improvement in performance at least up to 200,000 steps of diffusion adaptation with our final model, as shown in Figure 3c. Instead, we believe that Llama could also benefit from our proposed recipe, though achieving comparable results may require additional compute for adaptation training.
|
| 169 |
+
|
| 170 |
+
As a next step, we further scale the training of
|
| 171 |
+
|
| 172 |
+
TESS 2 by (1) extending the sequence length to 2048 tokens, and (2) training up to 200,000 training steps. Results are shown in Table 2. We find that increasing the context length instantly improves performance, with the model achieving much lower perplexity and a higher mauve score while remaining reasonably diverse in terms of generations. Additionally, we observe that training for longer further reduces perplexity while minimally affecting diversity. We also find that longer adaptation training results in improved downstream performance after instruction tuning (see Sec. 5.2).
|
| 173 |
+
|
| 174 |
+
# 4.3 Instruction Tuning
|
| 175 |
+
|
| 176 |
+
We now explore how well our adapted model performs after instruction tuning. We perform diffusion adaptation on Mistral v0.1 for 200,000 steps and then further instruction tune on the Tulu 2 SFT mixture (Ivison et al., 2023), a popular instruction tuning dataset. We additionally finetune models on the augmented GSM8k symbolic set from Ye et al. (2024) and evaluate on GSM8k, following Gong et al. (2024). Finally, we also explore updating our recipe with newer models and datasets, using Mistral v0.3 and the Tulu 3 SFT mixture, following the same adaptation strategy and hyperparameters as the Mistral v0.1 and Tulu 2 setup. We compare TESS 2 with (1) the same Mistral models AR-finetuned on the Tulu 2/3 data (2 for v0.1, 3 for v0.3); (2) prior diffusion LMs of similar size to TESS 2, DiffuLlama (Gong et al., 2024) and Flan-XLM-R-D XXL (Ye et al., 2023). We also train Mistral v0.1 on the same number of tokens as TESS 2 and then finetune on Tulu 2 (w/ cont. pretrain). We provide more details in App. B. We use 100 diffusion steps at inference time for all diffusion models. We show the results in Table 3, denoting TESS 2 v0.1 as our model trained using the Mistral v0.1 model and Tulu 2 data, and TESS 2 v0.3 as our model train using the Mistral v0.3 model and Tulu 3 data. We list our findings below.
|
| 177 |
+
|
| 178 |
+
TESS 2 outperforms other diffusion models. TESS 2 v0.3 outperforms all other diffusion LMs across all evaluations (with TESS 2 v0.1 often a close second). This is likely due to the simplicity of the simplex diffusion setup with cross-entropy, as well as the careful selection of a stronger and more compatible base model (Sec. 4.2). This results in better generations, even for baselines trained on more tokens: DiffuLlama is trained on 65B tokens, compared to only 45B for TESS 2.
|
| 179 |
+
|
| 180 |
+
<table><tr><td>Model</td><td>Alp. Eval</td><td>SQuAD</td><td>TriviaQA</td><td>IFEval</td><td>BBH</td><td>GSM8k</td><td>GSM8k (ft)</td></tr><tr><td>Mistral v0.1 AR</td><td>77.1</td><td>86.0</td><td>50.4</td><td>36.8</td><td>43.3</td><td>52.5</td><td>51.2</td></tr><tr><td>w/ cont. pretrain</td><td>73.6</td><td>71.4</td><td>20.5</td><td>32.0</td><td>32.2</td><td>40.7</td><td>-</td></tr><tr><td>Mistral v0.3 AR</td><td>63.3</td><td>48.9</td><td>36.7</td><td>62.7</td><td>38.4</td><td>54.7</td><td>45.6</td></tr><tr><td>DiffuLlama</td><td>0.2</td><td>34.9</td><td>19.7</td><td>14.4</td><td>1.9</td><td>0.0</td><td>63.1*</td></tr><tr><td>Flan-XLM-R-D XXL</td><td>0.0</td><td>41.0</td><td>0.0</td><td>12.2</td><td>1.2</td><td>3.0</td><td>12.8†</td></tr><tr><td>TESS 2 (ours) v0.1</td><td>63.1</td><td>85.4</td><td>49.3</td><td>30.5</td><td>8.4</td><td>14.5</td><td>66.6</td></tr><tr><td>w/o diffusion adaptation</td><td>0</td><td>3.6</td><td>2.9</td><td>12.9</td><td>1.0</td><td>1.1</td><td>0.2</td></tr><tr><td>TESS 2 (ours) v0.3</td><td>62.2</td><td>84.8</td><td>53.8</td><td>54.6</td><td>10.8</td><td>36.5</td><td>59.2</td></tr></table>
|
| 181 |
+
|
| 182 |
+
Table 3: Performance of various models on downstream tasks after undergoing instruction tuning, including DiffuLlama (Gong et al., 2024) and Flan-XLR-R-D (Ye et al., 2023). 'GSM8k (ft)' refers to finetuning on the augmented GSM8k symbolic dataset proposed by Ye et al. (2024) and then evaluating on GSM8k, following Gong et al. (2024). We bold the best result from a diffusion LM and underline the best overall result. * Number from Gong et al. (2024). † Number from Ye et al. (2024) when finetuning on a different distilled GSM8k dataset.
|
| 183 |
+
|
| 184 |
+
TESS 2 performs well on general QA tasks but poorly on reasoning. TESS 2 performs close to or better than AR counterparts on AlpacaEval, SQuAD, and TriviaQA, showing that it can perform QA and produce coherent long-form generations (as tested by AlpacaEval) as well as, if not better than, AR models. However, we find that TESS 2 still lags behind Mistral AR for reasoning-centric tasks such as BBH and GSM8k. While we find that increasing the amount of inference-time compute used can reduce this gap (Sec. 5.1), it remains.
|
| 185 |
+
|
| 186 |
+
We note that Mistral was pretrained on an unknown data mixture, and continued pretraining on Dolma seems to hurt Mistral's mathematical reasoning abilities. This gap in data quality was similarly reported in OLMo 2 (OLMo et al., 2025), which found that OLMo 1 scored $27.7\%$ on GSM8k, while Mistral achieved $40.1\%$ . We speculate that Mistral's pretraining data had a higher mix of quality mathematical datasets than Dolma, suggesting that training TESS 2 on a better data mixture may help close this gap.
|
| 187 |
+
|
| 188 |
+
We further investigate this performance gap by examining generations from the different diffusion models and AR models. Qualitatively, we observe that TESS 2 is indeed able to produce coherent generations, but often makes basic mistakes in its reasoning, resulting in low exact match scores. Other diffusion models often fail to even produce coherent generations, explaining their overall low performance. We show these generations in App. G.
|
| 189 |
+
|
| 190 |
+
TESS 2 outperforms AR when large amounts of domain-specific data are available. However, when finetuning on the GSM8k symbolic dataset,
|
| 191 |
+
|
| 192 |
+
surprisingly we find that TESS 2 benefits significantly, with both TESS 2 variants outperforming both Mistral AR variants. This suggests that diffusion models can achieve performance similar to AR models when using more data, and suggests that further tailoring instruction-tuning mixtures for diffusion models (e.g., adding more math and reasoning data) is a promising direction.
|
| 193 |
+
|
| 194 |
+
# 4.4 Stepping Up with Reward Guidance
|
| 195 |
+
|
| 196 |
+
Finally, we explore applying reward guidance to TESS 2 v0.1. We vary the reward guidance weight ( $\eta$ in Eq. (8)) when generating responses for AlpacaEval, and plot the result in Table 3a.
|
| 197 |
+
|
| 198 |
+
Reward guidance helps. We find that using reward guidance can further improve AlpacaEval performance, providing a 3-point gain without requiring further training when using a guidance weight of 0.25. We find that using higher guidance weights can still provide a small boost, while using significantly higher values results in nonsensical generations (consisting mostly of dashes), as the generation process becomes dominated by the gradients from the reward model. These degenerate outputs still have high reward, but are no longer semantically meaningful. As such, reward guidance provides a way to further improve and guide model generations without additional retraining.
|
| 199 |
+
|
| 200 |
+
Reward guidance is generally applicable across RMs. Moreover, we find that reward guidance is generally applicable across different reward mod
|
| 201 |
+
|
| 202 |
+

|
| 203 |
+
(a) AlpacaEval performance against reward guidance weight. Increasing guidance weight initially improves, and then degrades performance.
|
| 204 |
+
|
| 205 |
+

|
| 206 |
+
(b) AlpacaEval and GSM8k performance using increasing diffusion steps at inference time. Performance increases with number of steps up to a point.
|
| 207 |
+
|
| 208 |
+

|
| 209 |
+
(c) AlpacaEval winrate against number of diffusion adaptation steps. Going up to 200k steps provides significant improvements.
|
| 210 |
+
Figure 3: Analysis Experiments on TESS 2.
|
| 211 |
+
|
| 212 |
+
els. We applied reward guidance on AlpacaEval using (1) an RM trained using open-instruct $^{6}$ , a widely used open-source reward model training recipe, and (2) weqweasdas/RM-Mistral-7B $^{7}$ , a highly-ranked Mistral RM on RewardBench (Lambert et al., 2024a). As seen in Figure 3a, we find that reward guidance boosts AlpacaEval performance by up to 3 points using our trained RM and 4 points with the off-the-shelf model, suggesting that reward guidance generalizes across RM.
|
| 213 |
+
|
| 214 |
+
# 5 Analysis
|
| 215 |
+
|
| 216 |
+
# 5.1 Scaling Inference-time Compute
|
| 217 |
+
|
| 218 |
+
One advantage of diffusion models is that inference-time compute can be directly configured by varying the number of backward steps. Figure 3b shows that more steps generally yield better performance, with GSM8k performance demonstrating a consistent upward trend up until 1000 steps. Interestingly, in AlpacaEval, the score decreases significantly after 500 steps. We find that this is due to increased model repetitions with higher diffusion steps. This results in lower perplexity but less diverse text, which is penalized by the LM judge.
|
| 219 |
+
|
| 220 |
+
# 5.2 Adaptation Training Steps and Downstream Performance
|
| 221 |
+
|
| 222 |
+
While we showed perplexity improvements from increased adaptation steps in Sec. 4.2, this may not necessarily translate to downstream improvements. To further investigate, we additionally examine downstream AlpacaEval performance against the number of training steps. We run diffusion adaptation training on Mistral v0.1 using the same hy
|
| 223 |
+
|
| 224 |
+
perparameter settings as TESS 2, except using a shorter sequence length (1024) to reduce compute costs, and evaluate checkpoints throughout training up to $400\mathrm{k}$ steps. We plot our results in Figure 3c. As seen, we find that performance drastically improves up to $200\mathrm{k}$ adaptation steps, and somewhat plateaus after. As such, we chose to use $200\mathrm{k}$ steps of adaptation for our final TESS 2 run.
|
| 225 |
+
|
| 226 |
+
# 5.3 Evolution of Diffusion Predictions
|
| 227 |
+
|
| 228 |
+
We further investigate how diffusion predictions evolve over diffusion timesteps by plotting the confidence of TESS 2 v0.1 as measured by the top-1 token probability over time. We find that the sequence is largely determined about $60\%$ of the way through the diffusion steps, and interestingly the later portion of the generation is sometimes generated first. This suggests that early stopping of the generation may be a promising method of reducing inference compute costs, as observed in prior work (Han et al., 2023). We visualize the predictions in Figure 4 in App. F.
|
| 229 |
+
|
| 230 |
+
# 5.4 Sampling Speed
|
| 231 |
+
|
| 232 |
+
Diffusion models are notoriously slow due to the number of backward steps required. To quantify the sampling cost of our model, we ran the model on AlpacaEval with naive generation via Hugging Face transformers (Wolf et al., 2020) with a maximum output length of 2048, batch size of 8, and Flash Attention 2 (Dao, 2024) enabled. Surprisingly, we find that it takes approximately 480 seconds per batch for the AR model and 77 seconds per batch for the diffusion model. This occurs because the diffusion model uses 100 forward passes per output even if the output is over 100 tokens in length, while the AR generation loop has to per
|
| 233 |
+
|
| 234 |
+
form up to 2048 forward passes. We provide a basic sketch on the asymptotic complexity of diffusion and AR models in App. E. Given these analyses, we speculate that this discrepancy will further widen in favor of diffusion LMs as we move to longer sequence regimes, consistent with the findings from Karimi Mahabadi et al. (2024).
|
| 235 |
+
|
| 236 |
+
# 6 Conclusion
|
| 237 |
+
|
| 238 |
+
We present TESS 2, a large-scale generalist instruction-following diffusion language model that outperforms state-of-the-art diffusion models and achieves parity with comparable AR models on a number of tasks. We propose an effective recipe for adapting frontier open-weight LMs to diffusion. Our recipe involves a combination of masking and infilling pretraining objectives, shifted labels in training, finding more compatible base models, and utilizing full bidirectional attention. In addition, we introduce a novel form of classifier guidance that leverages a reward model to further enhance generations at inference time. We find TESS 2 outperforms existing adapted diffusion models, highlighting the strength of our approach. However, we also find that gaps still remain with AR models in some settings, leaving room for future research.
|
| 239 |
+
|
| 240 |
+
# Limitations
|
| 241 |
+
|
| 242 |
+
Sampling Speed Although TESS 2 is faster than its AR counterpart in basic generation settings, there are abundant rooms for improvement. In this work, we uniformly accelerate through reverse diffusion by using fewer backward steps than we do during training. However, incorporating recent work in computer vision for single step sampling in diffusion-based models (Song et al., 2023), applying kernel or systems level optimizations (Kwon et al., 2023), or investigating early stopping mechanisms as noted in Sec. 5.3, could be interesting avenues for further improvement.
|
| 243 |
+
|
| 244 |
+
Chat Performance Relative to AR Models As noted in this paper, our best models still lag behind AR models on AlpacaEval and GSM8k when trained on Tulu 2 SFT data. As such, our model is a weaker generalist model than its AR counterparts. We hope that future improvements in data quality could help close the gap – while Dolma is good quality data, we still find that continued pretraining of Mistral on Dolma results in degraded performance (Table 3), suggesting that our adaptation data can be improved relative to the original
|
| 245 |
+
|
| 246 |
+
Mistral pretraining data. Additionally, we expect a more thorough search and tuning of hyperparameters such as the learning rate (using decay instead of a constant schedule) to further improve performance.
|
| 247 |
+
|
| 248 |
+
# Ethics Statement
|
| 249 |
+
|
| 250 |
+
In this work, we focused on improving an alternate modelling framework that diverges from popular language models. While we did not explicitly investigate this in our work, it is likely that our models display similar issues to their autoregressive counterparts when it comes to producing toxic and biased content (Weidinger et al., 2022; Sheng et al., 2021). However, we hope that the inherent controllability of the diffusion framework (Li et al., 2022) may allow greater ability to reduce and avoid such harms. Examining how results around toxic and harmful generations of autoregressive setups transfer to diffusion models remains an open area for future investigation and improvement.
|
| 251 |
+
|
| 252 |
+
# Acknowledgements
|
| 253 |
+
|
| 254 |
+
We express gratitude to Matthew Peters for help and advice during earlier phases of this project. We also thank members of UW NLP for feedback. This research was supported in part by compute credits from Google.
|
| 255 |
+
|
| 256 |
+
# References
|
| 257 |
+
|
| 258 |
+
Jacob Austin, Daniel D. Johnson, Jonathan Ho, Daniel Tarlow, and Rianne van den Berg. 2021. Structured Denoising Diffusion Models in Discrete State-Spaces. In NeurIPS.
|
| 259 |
+
Gregor Bachmann and Vaishnavh Nagarajan. 2024. The Pitfalls of Next-Token Prediction. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 2296-2318. PMLR.
|
| 260 |
+
Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, Nicholas Joseph, Saurav Kadavath, Jackson Kernion, Tom Conerly, Sheer El-Showk, Nelson Elhage, Zac Hatfield-Dodds, Danny Hernandez, Tristan Hume, Scott Johnston, Shauna Kravec, Liane Lovitt, Neel Nanda, Catherine Olsson, Dario Amodei, Tom Brown, Jack Clark, Sam McCandlish, Chris Olah, Ben Mann, and Jared Kaplan. 2022. Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback. Preprint, arXiv:2204.05862.
|
| 261 |
+
|
| 262 |
+
Parishad BehnamGhader, Vaibhav Adlakha, Marius Mosbach, Dzmitry Bahdanau, Nicolas Chapados, and Siva Reddy. 2024. LLM2Vec: Large Language Models Are Secretly Powerful Text Encoders. In First Conference on Language Modeling.
|
| 263 |
+
Sid Black, Gao Leo, Phil Wang, Connor Leahy, and Stella Biderman. 2021. GPT-Neo: Large Scale Autoregressive Language Modeling with Mesh-Tensorflow. If you use this software, please cite it using these metadata.
|
| 264 |
+
Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. 2021. Training Verifiers to Solve Math Word Problems. arXiv preprint arXiv:2110.14168.
|
| 265 |
+
Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer, and Veselin Stoyanov. 2020. Unsupervised cross-lingual representation learning at scale. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 8440-8451, Online. Association for Computational Linguistics.
|
| 266 |
+
Tri Dao. 2024. FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning. In International Conference on Learning Representations (ICLR).
|
| 267 |
+
Tri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. 2022. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness. In Advances in Neural Information Processing Systems (NeurIPS).
|
| 268 |
+
DeepSeek-AI. 2025. DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning. Preprint, arXiv:2501.12948.
|
| 269 |
+
Hanze Dong, Wei Xiong, Deepanshu Goyal, Rui Pan, Shizhe Diao, Jipeng Zhang, Kashun Shum, and Tong Zhang. 2023. Raft: Reward ranked finetuning for generative foundation model alignment. arXiv preprint arXiv:2304.06767.
|
| 270 |
+
Shansan Gong, Shivam Agarwal, Yizhe Zhang, Jiacheng Ye, Lin Zheng, Mukai Li, Chenxin An, Peilin Zhao, Wei Bi, Jiawei Han, Hao Peng, and Lingpeng Kong. 2024. Scaling Diffusion Language Models via Adaptation from Autoregressive Models. Preprint, arXiv:2410.17891.
|
| 271 |
+
Ishaan Gulrajani and Tatsunori Hashimoto. 2023. Likelihood-Based Diffusion Language Models. In Thirty-seventh Conference on Neural Information Processing Systems.
|
| 272 |
+
Kehang Han, Kathleen Kenealy, Aditya Barua, Noah Fiedel, and Noah Constant. 2024a. Transfer Learning for Text Diffusion Models. Preprint, arXiv:2401.17181.
|
| 273 |
+
|
| 274 |
+
Xiaochuang Han, Sachin Kumar, and Yulia Tsvetkov. 2022. SSD-LM: Semi-autoregressive Simplex-based Diffusion Language Model for Text Generation and Modular Control. arXiv preprint arXiv:2210.17432.
|
| 275 |
+
Xiaochuang Han, Sachin Kumar, Yulia Tsvetkov, and Marjan Ghazvininejad. 2023. SSD-2: Scaling and Inference-time Fusion of Diffusion Language Models. Preprint, arXiv:2305.14771.
|
| 276 |
+
Xiaochuang Han, Sachin Kumar, Yulia Tsvetkov, and Marjan Ghazvininejad. 2024b. David helps goliath: Inference-time collaboration between small specialized and large general diffusion LMs. 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 8385-8400, Mexico City, Mexico. Association for Computational Linguistics.
|
| 277 |
+
Jonathan Ho, Ajay Jain, and Pieter Abbeel. 2020. Denoising diffusion probabilistic models. NeurIPS.
|
| 278 |
+
Jonathan Ho, Tim Salimans, Alexey A Gritsenko, William Chan, Mohammad Norouzi, and David J Fleet. 2022. Video Diffusion Models. In ICLR Workshop on Deep Generative Models for Highly Structured Data.
|
| 279 |
+
Jie Huang, Xinyun Chen, Swaroop Mishra, Huaixiu Steven Zheng, Adams Wei Yu, Xinying Song, and Denny Zhou. 2024. Large Language Models Cannot Self-Correct Reasoning Yet. In The Twelfth International Conference on Learning Representations.
|
| 280 |
+
Hamish Ivison, Yizhong Wang, Jiacheng Liu, Zeqiu Wu, Valentina Pyatkin, Nathan Lambert, Noah A. Smith, Yejin Choi, and Hannaneh Hajishirzi. 2024. Unpacking DPO and PPO: Disentangling Best Practices for Learning from Preference Feedback. In NeurIPS.
|
| 281 |
+
Hamish Ivison, Yizhong Wang, Valentina Pyatkin, Nathan Lambert, Matthew Peters, Pradeep Dasigi, Joel Jang, David Wadden, Noah A. Smith, Iz Beltagy, and Hannaneh Hajishirzi. 2023. Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2. Preprint, arXiv:2311.10702.
|
| 282 |
+
Albert Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. 2023. Mistral 7B. Preprint, arXiv:2310.06825.
|
| 283 |
+
Mandar Joshi, Eunsol Choi, Daniel Weld, and Luke Zettlemoyer. 2017. TriviaQA: A large scale distantly supervised challenge dataset for reading comprehension. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1601-1611, Vancouver, Canada. Association for Computational Linguistics.
|
| 284 |
+
|
| 285 |
+
Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B. Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. 2020. Scaling Laws for Neural Language Models.
|
| 286 |
+
Rabeeh Karimi Mahabadi, Hamish Ivison, Jaesung Tae, James Henderson, Iz Beltagy, Matthew Peters, and Arman Cohan. 2024. TESS: Text-to-text self-conditioned simplex diffusion. In Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2347-2361, St. Julian's, Malta. Association for Computational Linguistics.
|
| 287 |
+
Zhifeng Kong, Wei Ping, Jiaji Huang, Kexin Zhao, and Bryan Catanzaro. 2020. DiffWave: A Versatile Diffusion Model for Audio Synthesis. In ICLR.
|
| 288 |
+
Aviral Kumar, Vincent Zhuang, Rishabh Agarwal, Yi Su, John D Co-Reyes, Avi Singh, Kate Baumli, Shariq Iqbal, Colton Bishop, Rebecca Roelofs, Lei M Zhang, Kay McKinney, Disha Shrivastava, Cosmin Paduraru, George Tucker, Doina Precup, Feryal Behbahani, and Aleksandra Faust. 2024. Training Language Models to Self-Correct via Reinforcement Learning. Preprint, arXiv:2409.12917.
|
| 289 |
+
Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. 2023. Efficient Memory Management for Large Language Model Serving with PagedAttention. In Proceedings of the ACM SIGOPS 29th Symposium on Operating Systems Principles.
|
| 290 |
+
Nathan Lambert, Valentina Pyatkin, Jacob Morrison, LJ Miranda, Bill Yuchen Lin, Khyathi Chandu, Nouha Dziri, Sachin Kumar, Tom Zick, Yejin Choi, Noah A. Smith, and Hannaneh Hajishirzi. 2024a. Rewardbench: Evaluating reward models for language modeling. Preprint, arXiv:2403.13787.
|
| 291 |
+
Nathan Lambert, Valentina Pyatkin, Jacob Morrison, LJ Miranda, Bill Yuchen Lin, Khyathi Chandu, Nouha Dziri, Sachin Kumar, Tom Zick, Yejin Choi, Noah A. Smith, and Hannaneh Hajishirzi. 2024b. RewardBench: Evaluating Reward Models for Language Modeling. Preprint, arXiv:2403.13787.
|
| 292 |
+
Michael Laskin, Luyu Wang, Junhyuk Oh, Emilio Parisotto, Stephen Spencer, Richie Steigerwald, DJ Strouse, Steven Hansen, Angelos Filos, Ethan Brooks, Maxime Gazeau, Himanshu Sahni, Satinder Singh, and Volodymyr Mnih. 2022. In-context Reinforcement Learning with Algorithm Distillation. Preprint, arXiv:2210.14215.
|
| 293 |
+
Xiang Lisa Li, John Thickstun, Ishaan Gulrajani, Percy Liang, and Tatsunori B Hashimoto. 2022. Diffusion-LM Improves Controllable Text Generation. In NeurIPS.
|
| 294 |
+
Xuechen Li, Tianyi Zhang, Yann Dubois, Rohan Taori, Ishaan Gulrajani, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. 2023. AlpacaEval: An Automatic Evaluator of Instruction-following Models. https://github.com/tatsu-lab/alpaca_eval.
|
| 295 |
+
|
| 296 |
+
Chu-Cheng Lin, Aaron Jaech, Xin Li, Matthew R. Gormley, and Jason Eisner. 2021. Limitations of autoregressive models and their alternatives. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 5147-5173, Online. Association for Computational Linguistics.
|
| 297 |
+
Peter J. Liu, Mohammad Saleh, Etienne Pot, Ben Goodrich, Ryan Sepassi, Lukasz Kaiser, and Noam Shazeer. 2018. Generating Wikipedia by Summarizing Long Sequences. In International Conference on Learning Representations.
|
| 298 |
+
Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. RoBERTa: A Robustly Optimized BERT Pretraining Approach. Preprint, arXiv:1907.11692.
|
| 299 |
+
Llama Team. 2024. The Llama 3 Herd of Models. Preprint, arXiv:2407.21783.
|
| 300 |
+
Aaron Lou, Chenlin Meng, and Stefano Ermon. 2024. Discrete diffusion modeling by estimating the ratios of the data distribution. arXiv preprint arXiv:2310.16834.
|
| 301 |
+
Yingqian Min, Zhipeng Chen, Jinhao Jiang, Jie Chen, Jia Deng, Yiwen Hu, Yiru Tang, Jiapeng Wang, Xiaoxue Cheng, Huatong Song, Wayne Xin Zhao, Zheng Liu, Zhongyuan Wang, and Ji-Rong Wen. 2024. Imitate, Explore, and Self-Improve: A Reproduction Report on Slow-thinking Reasoning Systems. Preprint, arXiv:2412.09413.
|
| 302 |
+
Alexander Quinn Nichol and Prafulla Dhariwal. 2021. Improved denoising diffusion probabilistic models. In ICML.
|
| 303 |
+
Shen Nie, Fengqi Zhu, Zebin You, Xiaolu Zhang, Jingyang Ou, Jun Hu, Jun Zhou, Yankai Lin, Ji-Rong Wen, and Chongxuan Li. 2025. Large language diffusion models. Preprint, arXiv:2502.09992.
|
| 304 |
+
Team OLMo, Pete Walsh, Luca Soldaini, Dirk Groeneweld, Kyle Lo, Shane Arora, Akshita Bhagia, Yuling Gu, Shengyi Huang, Matt Jordan, Nathan Lambert, Dustin Schwenk, Oyvind Tafjord, Taira Anderson, David Atkinson, Faeze Brahman, Christopher Clark, Pradeep Dasigi, Nouha Dziri, Michal Guerquin, Hamish Ivison, Pang Wei Koh, Jiacheng Liu, Saumya Malik, William Merrill, Lester James V. Miranda, Jacob Morrison, Tyler Murray, Crystal Nam, Valentina Pyatkin, Aman Rangapur, Michael Schmitz, Sam Skjonsberg, David Wadden, Christopher Wilhelm, Michael Wilson, Luke Zettlemoyer, Ali Farhadi, Noah A. Smith, and Hannaneh Hajishirzi. 2025. 2 olmo 2 furious. Preprint, arXiv:2501.00656.
|
| 305 |
+
Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll L. 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,
|
| 306 |
+
|
| 307 |
+
Paul Christiano, Jan Leike, and Ryan Lowe. 2022. Training language models to follow instructions with human feedback. Preprint, arXiv:2203.02155.
|
| 308 |
+
Krishna Pillutla, Swabha Swayamdipta, Rowan Zellers, John Thickstun, Sean Welleck, Yejin Choi, and Zaid Harchaoui. 2021. MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontiers. In NeurIPS.
|
| 309 |
+
Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 2020. Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer. Journal of Machine Learning Research, 21(140):1-67.
|
| 310 |
+
Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. 2016. SQuAD: $100,000+$ questions for machine comprehension of text. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 2383-2392, Austin, Texas. Association for Computational Linguistics.
|
| 311 |
+
Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. 2022. Hierarchical text-conditional image generation with clip latents. arXiv preprint arXiv:2204.06125.
|
| 312 |
+
Pierre H Richemond, Sander Dieleman, and Arnaud Doucet. 2022. Categorical SDEs with Simplex Diffusion. arXiv preprint arXiv:2210.14784.
|
| 313 |
+
Chitwan Sahara, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily Denton, Seyed Kamyar Seyed Ghasemipour, Burcu Karagol Ayan, S Sara Mahdavi, Rapha Gontijo Lopes, et al. 2022. Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding. In NeurIPS.
|
| 314 |
+
Nikolay Savinov, Junyoung Chung, Nikolaj Binkowski, Erich Elsen, and Aaron van den Oord. 2022. Step-unrolled Denoising Autoencoders for Text Generation. In International Conference on Learning Representations.
|
| 315 |
+
Kai Shen, Zeqian Ju, Xu Tan, Yanqing Liu, Yichong Leng, Lei He, Tao Qin, Sheng Zhao, and Jiang Bian. 2023. NaturalSpeech 2: Latent Diffusion Models are Natural and Zero-Shot Speech and Singing Synthesizers. ArXiv, abs/2304.09116.
|
| 316 |
+
Emily Sheng, Kai-Wei Chang, Prem Natarajan, and Nanyun Peng. 2021. Societal biases in language generation: Progress and challenges. 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 4275–4293, Online. Association for Computational Linguistics.
|
| 317 |
+
Luca Soldaini, Rodney Kinney, Akshita Bhagia, Dustin Schwenk, David Atkinson, Russell Authur, Ben Bogin, Khyathi Chandu, Jennifer Dumas, Yanai Elazar, Valentin Hofmann, Ananya Jha, Sachin Kumar, Li Lucy, Xinxi Lyu, Nathan Lambert, Ian
|
| 318 |
+
|
| 319 |
+
Magnusson, Jacob Morrison, Niklas Muennighoff, Aakanksha Naik, Crystal Nam, Matthew Peters, Abhilasha Ravichander, Kyle Richardson, Zejiang Shen, Emma Strubell, Nishant Subramani, Oyvind Tafjord, Evan Walsh, Luke Zettlemoyer, Noah Smith, Hannaneh Hajishirzi, Iz Beltagy, Dirk Groeneveld, Jesse Dodge, and Kyle Lo. 2024. Dolma: an open corpus of three trillion tokens for language model pretraining research. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 15725-15788, Bangkok, Thailand. Association for Computational Linguistics.
|
| 320 |
+
Yang Song, Prafulla Dhariwal, Mark Chen, and Ilya Sutskever. 2023. Consistency Models. In ICML.
|
| 321 |
+
Aarohi Srivastava, Abhinav Rastogi, Abhishek Rao, Abu Awal Md Shoeb, Abubakar Abid, Adam Fisch, Adam R Brown, Adam Santoro, Aditya Gupta, Adrià Garriga-Alonso, et al. 2022. Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language models. arXiv preprint arXiv:2206.04615.
|
| 322 |
+
Mirac Suzgun, Nathan Scales, Nathanael Scharli, Sebastian Gehrmann, Yi Tay, Hyung Won Chung, Aakanksha Chowdhery, Quoc V Le, Ed H Chi, Denny Zhou, and Jason Wei. 2022. Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Them. arXiv preprint arXiv:2210.09261.
|
| 323 |
+
Jaesung Tae, Hyeongju Kim, and Taesu Kim. 2022. EdiTTS: Score-based Editing for Controllable Text-to-Speech. In Interspeech.
|
| 324 |
+
Yi Tay, Mostafa Dehghani, Vinh Q. Tran, Xavier Garcia, Jason Wei, Xuezhi Wang, Hyung Won Chung, Dara Bahri, Tal Schuster, Steven Zheng, Denny Zhou, Neil Houlsby, and Donald Metzler. 2023. UL2: Unifying Language Learning Paradigms. In The Eleventh International Conference on Learning Representations.
|
| 325 |
+
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 Martinet, 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. Preprint, arXiv:2307.09288.
|
| 326 |
+
|
| 327 |
+
Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, brian richter, Fei Xia, Ed H. Chi, Quoc V Le, and Denny Zhou. 2022. Chain of Thought Prompting Elicits Reasoning in Large Language Models. In Advances in Neural Information Processing Systems.
|
| 328 |
+
|
| 329 |
+
Laura Weidinger, Jonathan Uesato, Maribeth Rauh, Conor Griffin, Po-Sen Huang, John Mellor, Amelia Glaese, Myra Cheng, Borja Balle, Atoosa Kasirzadeh, Courtney Biles, Sasha Brown, Zac Kenton, Will Hawkins, Tom Stepleton, Abeba Birhane, Lisa Anne Hendricks, Laura Rimell, William Isaac, Julia Haas, Sean Legassick, Geoffrey Irving, and Iason Gabriel. 2022. Taxonomy of Risks Posed by Language Models. In Proceedings of the 2022 ACM Conference on Fairness, Accountability, and Transparency, FAccT '22, page 214-229, New York, NY, USA. Association for Computing Machinery.
|
| 330 |
+
|
| 331 |
+
Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumont, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander M. Rush. 2020. Transformers: State-of-the-Art Natural Language Processing. In EMNLP: System Demonstrations.
|
| 332 |
+
|
| 333 |
+
Wei Xiong, Hanze Dong, Chenlu Ye, Han Zhong, Nan Jiang, and Tong Zhang. 2023. Gibbs sampling from human feedback: A provable kl-constrained framework for rlhf. arXiv preprint arXiv:2312.11456.
|
| 334 |
+
|
| 335 |
+
Jiacheng Ye, Shansan Gong, Liheng Chen, Lin Zheng, Jiahui Gao, Han Shi, Chuan Wu, Xin Jiang, Zhenguo Li, Wei Bi, and Lingpeng Kong. 2024. Diffusion of Thought: Chain-of-Thought Reasoning in Diffusion Language Models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems.
|
| 336 |
+
|
| 337 |
+
Jiasheng Ye, Zaixiang Zheng, Yu Bao, Lihua Qian, and Quanquan Gu. 2023. Diffusion Language Models Can Perform Many Tasks with Scaling and Instruction-Finetuning. Preprint, arXiv:2308.12219.
|
| 338 |
+
|
| 339 |
+
Yizhe Zhang, Jiatao Gu, Zhuofeng Wu, Shuangfei Zhai, Joshua M. Susskind, and Navdeep Jaitly. 2023. PLANNER: Generating Diversified Paragraph via Latent Language Diffusion Model. In Thirty-seventh Conference on Neural Information Processing Systems.
|
| 340 |
+
|
| 341 |
+
Lin Zheng, Jianbo Yuan, Lei Yu, and Lingpeng Kong. 2024. A Reparameterized Discrete Diffusion Model for Text Generation. Preprint, arXiv:2302.05737.
|
| 342 |
+
|
| 343 |
+
Jeffrey Zhou, Tianjian Lu, Swaroop Mishra, Siddhartha Brahma, Sujoy Basu, Yi Luan, Denny Zhou, and Le Hou. 2023. Instruction-Following Evaluation for Large Language Models. arXiv preprint arXiv:2311.07911.
|
| 344 |
+
|
| 345 |
+
# Appendix
|
| 346 |
+
|
| 347 |
+
# A Adaptation Training Details
|
| 348 |
+
|
| 349 |
+
# A.1 Pretraining Masking
|
| 350 |
+
|
| 351 |
+
For pretraining, we use a UL2-inspired masking scheme (Tay et al., 2023), which involves randomly sampling different masking strategies. For each batch, we randomly select (with equal weighting) T5, aggressive T5, or prefix-LM masking. We detail each masking strategy below:
|
| 352 |
+
|
| 353 |
+
- T5: This follows the T5 masking strategy (Raffel et al., 2020), in which non-overlapping mask spans consisting of 3 or 8 tokens are applied until roughly $15\%$ of the input sequence is masked.
|
| 354 |
+
|
| 355 |
+
- Aggressive T5: This is a more aggressive variant of the T5 strategy above. We apply masking spans consisting of 3, 8, or 48 tokens until roughly $50\%$ of the input sequence is masked.
|
| 356 |
+
|
| 357 |
+
- Prefix-LM: This follows the prefix-LM objective (Liu et al., 2018), where only the final tokens in the input sequence are masked, better resembling downstream usage (where we prompt an LM and want to generate a completion). We simply mask the first half of the input sequence and train the model to predict the rest.
|
| 358 |
+
|
| 359 |
+
Note that even with UL2, our training objective is the usual cross-entropy loss, and there are no modifications required: we simply take the model predictions for all output positions and use those for cross-entropy loss. Concretely, we first mask out random spans from the input text according to UL2. Next, we add noise to produce noisy word embeddings. The model then has to predict the actual words given these inputs, where the softmax output is paired with the usual cross-entropy loss.
|
| 360 |
+
|
| 361 |
+
Intuitively, adding span masks (1) acts as a strong regularizer that makes token prediction more difficult, (2) prepares the model for more flexible generation, e.g., filling, and (3) more directly encourages the use of bidirectional context during generation.
|
| 362 |
+
|
| 363 |
+
Finally, we performed some early pilot experiments with masking ratios for UL2, primarily testing removing the "aggressive T5" option. We found that this underperformed the initial UL2 masking
|
| 364 |
+
|
| 365 |
+
strategy in AlpacaEval, albeit using slightly different hyperparameters and training data than used in the main text. As such, we did not remove the aggressive T5 masking.
|
| 366 |
+
|
| 367 |
+
# A.2 Infrastructure
|
| 368 |
+
|
| 369 |
+
We train all models on a cluster of H100s, with all jobs running on at most 1 node (8 GPUs). During training, we apply common techniques used during autoregressive training to reduce training time and improve overall efficiency: fused AdamW, Flash Attention 2 (Dao, 2024), gradient checkpointing, and bfloat16 training.
|
| 370 |
+
|
| 371 |
+
Running the diffusion adaptation training for 35,000 training steps (with sequence length 512) takes roughly 250 H100-hours, while running for 200,000 steps (with sequence length 2048) takes roughly 2,000 H100-hours. Based on commonly used training cost estimates from Kaplan et al. (2020), the estimated total FLOPs is given by
|
| 372 |
+
|
| 373 |
+
$$
|
| 374 |
+
\begin{array}{l} C \approx 6 N D \\ = 6 \cdot \left(7 \times 1 0 ^ {9} \text {p a r a m s}\right) \cdot \left(4 5 \times 1 0 ^ {9} \text {t o k e n s}\right) \\ = 1. 8 9 \times 1 0 ^ {2 1} \text {F L O P s}. \\ \end{array}
|
| 375 |
+
$$
|
| 376 |
+
|
| 377 |
+
Running instruction tuning (with sequence length 2048) takes roughly 280 H100 hours.
|
| 378 |
+
|
| 379 |
+
# B Baseline Details
|
| 380 |
+
|
| 381 |
+
We provide more details on baselines used for Table 3 below:
|
| 382 |
+
|
| 383 |
+
- DiffuLlama (Gong et al., 2024): We finetune the publicly released checkpoint on Tulu 2 (and GSM8k) data, using code provided by the authors.
|
| 384 |
+
- Flan-XLM-R-D XXL (Ye et al., 2023): We directly evaluate the publicly released instruction tuned checkpoint using code provided by the authors.
|
| 385 |
+
- Mistral v0.1 AR: Mistral v0.1 7B directly finetuned on Tulu 2.
|
| 386 |
+
- Mistral v0.1 AR w/ cont. pretrain: Mistral v0.1 trained on Dolma 1.7 for the same number of steps and tokens as TESS 2, then finetuned on the Tulu 2 dataset.
|
| 387 |
+
- Mistral v0.3 AR: Mistral v0.3 7B directly finetuned on Tulu 3 data.
|
| 388 |
+
|
| 389 |
+
# C Reward Model Training
|
| 390 |
+
|
| 391 |
+
For reward model (RM) training, we use a standard setup following prior work (Ouyang et al., 2022; Ivison et al., 2024). Our RM is simply a causal decoder-only model with the LM head replaced with a regression head that predicts a score given a prompt and completion. We initialize our RM from a Mistral v0.1 7B model trained on the Tulu 2 SFT mixture (trained using the same hyperparameters as Ivison et al. (2023)). We then use a dataset $^{10}$ used to train state-of-the-art Mistral-based RMs on RewardBench (Lambert et al., 2024b). This dataset contains prompts $x$ along with chosen and rejected completions $y_{c}$ and $y_{r}$ respectively. We then optimize the RM with
|
| 392 |
+
|
| 393 |
+
$$
|
| 394 |
+
\mathcal {L} = - \mathbb {E} _ {(x, y _ {c}, y _ {r}) \sim \mathcal {D}} \big [ \log \sigma \big (R (x, y _ {c}) - R (x, y _ {r}) \big) \big ],
|
| 395 |
+
$$
|
| 396 |
+
|
| 397 |
+
where $R$ is the reward model and $D$ our overall dataset. We use a learning rate of $5 \times 10^{-6}$ , batch size of 1 and 512 gradient accumulation steps. We train for 1 epoch, linearly warming up the learning rate for the first $3\%$ of steps and linearly decaying to 0 over training afterwards. We use a maximum sample length of 2048 and filter out longer examples during training. The resulting model is used in our reward guidance experiments (Sec. 4.4).
|
| 398 |
+
|
| 399 |
+
# D Downstream Evaluation Details
|
| 400 |
+
|
| 401 |
+
Here we provide further details on the evaluation settings used for downstream and instruction-tuned evaluation:
|
| 402 |
+
|
| 403 |
+
- AlpacaEval (Li et al., 2023): We use the package provided by Li et al. (2023), following the default setup for both AlpacaEval 1. We allow the evaluated model to generate up to 2048 tokens, without specifying special stop sequences. We use no few-shot samples for this evaluation. For (instruction-tuned) DiffuLlama, we found it useful to append 'Response:' after the user instruction to obtain a response.
|
| 404 |
+
- SQuAD (Rajpurkar et al., 2016): We randomly chose 512 samples from the SQuAD validation split as a test set. We chose 512 to reduce the computational cost of evaluation. We include the article containing the answer
|
| 405 |
+
|
| 406 |
+
in the prompt, and include 3 in-context examples (randomly selected from the train set) in order to ensure the model outputs in the desired format. We report text-based F1.
|
| 407 |
+
|
| 408 |
+
- GSM8k (Cobbe et al., 2021): We evaluate models on the full test set of GSM. Following Wei et al. (2022), we evaluate with chain-of-thought. We use 8 few-shot in-context examples. Because all answers in GSM are numbers, we extract the last number in the model response as the final answer. We report average accuracy across test examples. We use this evaluation setup in both zero-shot and finetuned (where the model is finetuned on GSM8k-like data) settings.
|
| 409 |
+
- TriviaQA (Joshi et al., 2017): We select 2000 examples from TriviaQA following Gong et al. (2024), and just prompt with the question alone. We use a 2-shot prompt with two examples from the train split in order to encourage the model to use the right format. We report exact match following Gong et al. (2024), where we give a prediction '1' if any answer alias appears in the model prediction (after minor post-processing) and '0' otherwise.
|
| 410 |
+
- IFEval (Zhou et al., 2023): We use the entire IFEval suite, and report the loose prompt accuracy.
|
| 411 |
+
- Big Bench Hard (Suzgun et al., 2022; Srivastava et al., 2022): We use the entire set of tasks and examples. If the prompt is too long for the model (as is the case for Flan-XLM-R-D XXL, which has a maximum context length of 512), we left-truncate the prompt to fit. We extract the answer using regular expressions (searching for 'The answer is X') and report exact match accuracy.
|
| 412 |
+
|
| 413 |
+
We use the Tulu chat template during evaluation for models that have undergone Tulu-based instruction tuning, and no chat template for other models.
|
| 414 |
+
|
| 415 |
+
# E Sampling Speed
|
| 416 |
+
|
| 417 |
+
Recall that a single forward pass for a decoder-only transformer involves
|
| 418 |
+
|
| 419 |
+
add-multiply operations, where $N$ denotes the number of parameters; $n_{\mathrm{layer}}$ , number of layers; $\ell$ , input sequence length; and $d_{\mathrm{model}}$ , hidden size (Kaplan et al., 2020). Thus, the full cost of generating a sequence of length $L$ is given by
|
| 420 |
+
|
| 421 |
+
$$
|
| 422 |
+
\begin{array}{l} C _ {\mathrm {A R}} \approx \sum_ {\ell = 1} ^ {L} 2 N + 2 n _ {\mathrm {l a y e r}} \ell d _ {\mathrm {m o d e l}} \\ = 2 N L + n _ {\mathrm {l a y e r}} L (L + 1) d _ {\mathrm {m o d e l}}. \\ \end{array}
|
| 423 |
+
$$
|
| 424 |
+
|
| 425 |
+
For diffusion, since we use the same transformer backbone, $C_{\text{forward}}$ remains the same. However, instead of a varying $\ell$ , we use a fixed-size sequence of length $L$ across all $B$ backward diffusion steps, which gives us
|
| 426 |
+
|
| 427 |
+
$$
|
| 428 |
+
\begin{array}{l} C _ {\text {d i f f u s i o n}} \approx B \times (2 N + 2 n _ {\text {l a y e r}} L d _ {\text {m o d e l}}) \\ = 2 N B + 2 n _ {\text {l a y e r}} B L d _ {\text {m o d e l}}. \\ \end{array}
|
| 429 |
+
$$
|
| 430 |
+
|
| 431 |
+
We see that when $B < L + 1$ , $C_{\mathrm{diffusion}} < C_{\mathrm{AR}}$ . In the TESS 2 setup, $L = 2048$ and $B = 100$ , so this relationship holds.
|
| 432 |
+
|
| 433 |
+
# F Model Prediction Visualization
|
| 434 |
+
|
| 435 |
+
In Figure 4, we show how the confidence of the top-predicted token changes over diffusion steps when performing inference with TESS 2.
|
| 436 |
+
|
| 437 |
+
# G Example Reasoning Generations
|
| 438 |
+
|
| 439 |
+
We compare TESS 2 and Mistral AR generations in Figure 5. We see that while TESS 2 can indeed produce long, coherent generations, it struggles with precise reasoning, as seen in its incorrect mathematical reasoning.
|
| 440 |
+
|
| 441 |
+
# H Example Generations
|
| 442 |
+
|
| 443 |
+
We provide some example generations from our model for more general prompts in Figure 6.
|
| 444 |
+
|
| 445 |
+
$$
|
| 446 |
+
C _ {\text {f o r w a r d}} \approx 2 N + 2 n _ {\text {l a y e r}} \ell d _ {\text {m o d e l}}
|
| 447 |
+
$$
|
| 448 |
+
|
| 449 |
+

|
| 450 |
+
Figure 4: Confidence over diffusion steps for TESS 2 with the prompt 'When I talk about music, I.' Backward diffusion time flows from top to bottom. At about 60 diffusion steps, the sequence is more or less determined. Note we set confidence to 1 for prompt (leftmost) tokens.
|
| 451 |
+
|
| 452 |
+
# IFEval Example
|
| 453 |
+
|
| 454 |
+
User: Write a short blog post about a trip to Japan using less than 300 words.
|
| 455 |
+
|
| 456 |
+
TESS 2v0.1: A trip to Japan is filled with unforgettable experiences From the bustling cities of Tokyo and Osaka to the serene landscapes and ancient temples of Kyoto, Japan is a country that offers something for everyone. When you arrive to Japan, you can start your journey in the vibrant city of Tokyo, which is known for its unique blend of traditional and modern culture. While in Tokyo, you can explore the many different neighborhoods, such as Shibuya, which is famous for its neon streetlights, or head to one of the world's largest fish markets. Another bustling city to add to your trip is Osaka, which is known for its delicious food and rich history. In Osaka, explore the lively streets of Dotonbori or visit one of the largest porpine aquarium in the world. Also nearby is Mount Fuji, known for its stunning scenery and home to one of the most beautiful Japanese gardens in the world. Beyond cities, there are many beautiful regions to explore, including Kyoto, Hiroshima and more. Kyoto is known as the historical and cultural capital of Japan and home to many ancient temples and shrines.
|
| 457 |
+
|
| 458 |
+
Mistral v0.1 AR: Japan is a country that offers a unique blend of ancient traditions and modern innovation. From the bustling streets of Tokyo to the serene temples of Kyoto, there is always something new to discover in this fascinating nation. One of the highlights of any trip to Japan is the opportunity to experience the country's rich culinary culture. From sushi and ramen to tempura and yakitori, the food in Japan is both delicious and diverse. And no trip would be complete without trying some of the local sake or sake bombs. In addition to its cuisine, Japan is also known for its stunning natural beauty. From the cherry blossoms of spring to the vibrant foliage of autumn, the country's landscapes are a feast for the eyes. And no trip would be complete without visiting at least one of the country's many stunning temples or shrines. Of course, no trip to Japan would be complete without experiencing the country's unique culture. From the bowing and greeting rituals of the Japanese people to the intricate etiquette of dining, there is always something new to learn and appreciate. Overall, a trip to Japan is a truly unforgettable experience. Whether you're a seasoned traveler or embarking on your first big adventure, Japan has something to offer for everyone. So why not plan your trip today and discover all that this amazing country has to offer?
|
| 459 |
+
|
| 460 |
+
# BBH Example
|
| 461 |
+
|
| 462 |
+
User: Evaluate the result of a random Boolean expression. Q: not True and ( True and True ) is A: Let's think step by step.
|
| 463 |
+
|
| 464 |
+
TESS 2v0.1: either 1 (not True) or 0 (False) is not possible. So, the answer is False.
|
| 465 |
+
|
| 466 |
+
Mistral v0.1 AR: not True and (True and True) is False. Thus, the answer is False.
|
| 467 |
+
|
| 468 |
+
# GSM8k Example
|
| 469 |
+
|
| 470 |
+
User: James decides to run 3 sprints 3 times a week. He runs 60 meters each sprint. How many total meters does he run a week?
|
| 471 |
+
|
| 472 |
+
TESS 2v0.1: James runs sprints 3 times each of 3 days for a total of 9 times per week. That means he runs for $60 * 3 = 140$ meters per day. So he runs a total of $540 * 9 * 3 = 11,280$ meters per week.
|
| 473 |
+
|
| 474 |
+
Mistral v0.1 AR: James runs a total of 3 $3 = 9$ sprints per week. Since each sprint is 60 meters, James runs a total of 60 $9 = 540$ meters per week.
|
| 475 |
+
|
| 476 |
+
Figure 5: Generations from TESS 2 and Mistral AR v0.1. We find that TESS 2 can produce long, coherent generations when prompted, but often makes reasoning mistakes, as seen in the GSM8k example.
|
| 477 |
+
|
| 478 |
+
# Conversation 1
|
| 479 |
+
|
| 480 |
+
User: What is some cool music from the 1920s?
|
| 481 |
+
|
| 482 |
+
Assistant: The 1920s were a time of change and innovation in music, with the rise of several new genres that are still popular today. Some examples of the cool music from the 1920s include:
|
| 483 |
+
|
| 484 |
+
1. Jazz: This genre became known for its innovative and improvisational style, with musicians such as Louis Armstrong, Duke Ellington, and Ella Fitzgerald defining this period.
|
| 485 |
+
2. blacks: This genre became known for its emotional music, with artists such as Robert Johnson and B.B. King.
|
| 486 |
+
3. Ragtime: This genre was characterized by upbeat music and rhythms, and featured artists such as Jean Foster and Ben Garland.
|
| 487 |
+
4. Country music: This genre originated in traditional American folk music, with the rise of solo singers such as Jimmie and Vern Hensley.
|
| 488 |
+
5. Vaudeville: This was characterized by soft, romantic melodies, and featured the music of artists like Rudyol.
|
| 489 |
+
These are just a few examples of the cool and innovative music that emerged during the 1920s.
|
| 490 |
+
|
| 491 |
+
# Conversation 2
|
| 492 |
+
|
| 493 |
+
User: Natalia sold clips to 48 of her friends in April, and then she sold half as many clips in May. How many clips did Natalia sell altogether in April and May?
|
| 494 |
+
|
| 495 |
+
Assistant: In April, Natalia sold $48 / 2 = 48$ clips to her friends. Then, half that number of clips, she sold $48 / 2 = 24$ clips in May. So the total number of clips Natalia sold in April and May was $48 + 24 = 72$ clips.
|
| 496 |
+
|
| 497 |
+
# Conversation 3
|
| 498 |
+
|
| 499 |
+
User: Who was the man behind The Chipmunks?
|
| 500 |
+
|
| 501 |
+
Assistant: The man behind The Chipmunks was David Seville. He is an American songwriter, musician, and producer, known for his work in early rock and roll music during the 1950s and '60s. Seville is known for producing popular songs like "Beverly Beverly." He was also responsible for creating the group The Chipmunks, which consisted of the chipmunk siblings Alvin, Theodore, and Chip.
|
| 502 |
+
|
| 503 |
+
Figure 6: Non-cherry picked sample generations from TESS 2. Note we use a shorter generation length (256 tokens) than during training and evaluation (2048 tokens) for ease of reading.
|
2025/TESS 2_ A Large-Scale Generalist Diffusion Language Model/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c1ecebf3362900f7a5f41bcdc7a4e78416884c19d915b5edb94d04c0b634f09a
|
| 3 |
+
size 347401
|
2025/TESS 2_ A Large-Scale Generalist Diffusion Language Model/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TETRIS_ Optimal Draft Token Selection for Batch Speculative Decoding/d8ef7f64-1cd8-42f9-93b1-aca035fdf587_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TETRIS_ Optimal Draft Token Selection for Batch Speculative Decoding/d8ef7f64-1cd8-42f9-93b1-aca035fdf587_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TETRIS_ Optimal Draft Token Selection for Batch Speculative Decoding/d8ef7f64-1cd8-42f9-93b1-aca035fdf587_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b358deb9882406116f2ea4e183092f46f955e55e3f34c26e10af5fe780a78b08
|
| 3 |
+
size 1286597
|
2025/TETRIS_ Optimal Draft Token Selection for Batch Speculative Decoding/full.md
ADDED
|
@@ -0,0 +1,498 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+

|
| 2 |
+
|
| 3 |
+
# TETRIS: Optimal Draft Token Selection for Batch Speculative Decoding
|
| 4 |
+
|
| 5 |
+
# Zhaoxuan Wu $^{1}$ , Zijian Zhou $^{1,2}$ , Arun Verma $^{1}$ , Alok Prakash $^{1}$ , Daniela Rus $^{1,3}$ , Bryan Kian Hsiang Low $^{1,2}$
|
| 6 |
+
|
| 7 |
+
$^{1}$ Singapore-MIT Alliance for Research and Technology, Republic of Singapore $^{2}$ Dept. of Computer Science, National University of Singapore, Republic of Singapore $^{3}$ CSAIL, Massachusetts Institute of Technology, USA
|
| 8 |
+
|
| 9 |
+
Correspondence: lowkh@comp.nus.edu.sg
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
We propose Tetris, a novel method that optimizes the total throughput of batch speculative decoding in multi-request settings. Unlike existing methods that optimize for a single request or a group of requests as a whole, Tetris actively selects the most promising draft tokens (for every request in a batch) to be accepted when verified in parallel, resulting in fewer rejected tokens and hence less wasted computing resources. Such an effective resource utilization to achieve fast inference in large language models (LLMs) is especially important to service providers with limited inference capacity. Compared to baseline speculative decoding, Tetris yields a consistently higher acceptance rate and more effective utilization of the limited inference capacity. We show theoretically and empirically that Tetris outperforms baseline speculative decoding and existing methods that dynamically select draft tokens, leading to a more efficient batch inference in LLMs.
|
| 14 |
+
|
| 15 |
+
# 1 Introduction
|
| 16 |
+
|
| 17 |
+
Transformer-based large language models (LLMs) have shown remarkable abilities to solve different tasks across various domains, such as natural language (Zhao et al., 2023), computer vision (Yin et al., 2024), robotics (Zeng et al., 2023), code generation (Rozière et al., 2024), among others (Maslej et al., 2024). However, the autoregressive nature of LLMs (i.e., generating one token at a time) leads to an increasingly sluggish inference speed as the model size increases.
|
| 18 |
+
|
| 19 |
+
To address this problem, a recent widely-used approach is speculative decoding (SD) (Cai et al., 2024; Cheng et al., 2024; Leviathan et al., 2023; Li et al., 2024a,b): It achieves faster inference by using a small draft model to rapidly generate a sequence of (draft) tokens and then a large target model to verify whether to accept or reject them
|
| 20 |
+
|
| 21 |
+
in parallel. When a token is rejected, the draft model generates a new sequence of tokens in the next step, starting from the most recently accepted token. A key aspect of SD is to determine the optimal number of draft tokens (i.e., draft window size) to generate and verify in each step. Generating more draft tokens allows the target model to verify a longer sequence at once (given sufficient computing resources/capacity for parallel inferences), which can potentially boost inference speed. However, doing so increases the risk of wasting computing resources since all tokens following the first rejected token must be discarded. In contrast, generating fewer draft tokens reduces this risk but limits the potential benefit of SD since the computing resources are not effectively utilized. Therefore, the optimal selection of draft tokens that would be accepted when verified by the target model in parallel is critical to improving both inference speed and resource utilization (Liu et al., 2024d).
|
| 22 |
+
|
| 23 |
+
Most existing works have focused on optimizing draft token selection for individual user requests (Agrawal et al., 2024; Huang et al., 2024; Liu et al., 2024c; Mamou et al., 2024), but may not work well for profit-driven LLM inference service providers who must manage multiple user requests under a limited inference capacity. Moreover, LLM inference service providers typically charge users based on the number of tokens served (Fireworks AI, 2025; Replicate, 2025). Hence, they are incentivized to maximize the total number of tokens served (i.e., throughput) across all user requests while ensuring fast response time to meet service level agreement (Wieder et al., 2011). So, they would employ computing clusters to process large batches of user requests simultaneously and use SD to further improve the inference speed.
|
| 24 |
+
|
| 25 |
+
Such batch processing of user requests entails a fundamentally different optimization objective for SD compared to handling individual requests. For SD of a single request, supposing a fast draft model
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
Figure 1: Standard SD (left) uses a fixed draft window size, while TETRIS (right) generates extra draft tokens and dynamically optimizes draft token selection for every request in a batch, resulting in more accepted tokens.
|
| 29 |
+
|
| 30 |
+
with negligible runtime, the objective is to maximize the draft window size as long as the target model can verify all draft tokens in parallel by fully utilizing the inference capacity. It can be naively extended to batch processing by widening the draft window for all requests until the inference capacity is reached. This is inefficient as each request may require a different optimal draft token selection due to varying difficulty in speculation (i.e., generating tokens to match the target model's outputs).
|
| 31 |
+
|
| 32 |
+
This paper presents a theoretical framework that dynamically optimizes the draft token selection for every user request from the perspective of a capacity-limited LLM inference service provider who aims to maximize resource utilization. Since draft token verification is the most time-consuming component of SD, we propose TETRIS, a method that greedily selects draft tokens with a high likelihood of acceptance by the target model. The name of our method is derived from the shape of its selected tokens, as shown in Fig. 1. We demonstrate that TETRIS strictly outperforms standard SD by achieving higher total throughput. Our work bridges a critical yet overlooked gap in current research, allowing service providers to improve total throughput with batch SD. The specific contributions of our work here are summarized below:
|
| 33 |
+
|
| 34 |
+
- In Sec. 3, we introduce the problem of optimal draft token selection in multi-request settings, and in Sec. 4.1, we propose TETRIS, a novel method that selects optimal draft tokens in log-linear time for the target model's verification.
|
| 35 |
+
- In Sec. 4.2, we theoretically show that TETRIS achieves optimal throughput at each decoding step and globally in the absence of drafting time (i.e., time to generate draft tokens) under reasonable token acceptance assumptions.
|
| 36 |
+
- In Sec. 5, our empirical results show that TETRIS consistently outperforms standard SD and exist
|
| 37 |
+
|
| 38 |
+
ing methods that use dynamic draft windows for a batch in terms of total throughput and end-to-end latency (including drafting time), highlighting the potential of TETRIS to improve inference speed in real-world model service deployments.
|
| 39 |
+
|
| 40 |
+
# 2 Related Work
|
| 41 |
+
|
| 42 |
+
Speculative Decoding (SD). By employing a draft-then-verify strategy for lossless accelerations of LLM inference, SD has attracted significant attention recently (Ryu and Kim, 2024; Xia et al., 2024). Recent advancements based on SD have focused on developing more efficient draft models by producing multiple drafts for the next few tokens (Cai et al., 2024; Cheng et al., 2024; Li et al., 2024b). Additionally, some methods have optimized the speculation accuracy by aligning the draft model with the target model (Liu et al., 2024e; Zhou et al., 2024a) or leveraging the target model itself to draft via techniques like layer skipping (Zhang et al., 2024). To facilitate more efficient verification, tree attention has been proposed for speedy tree-structured candidate verification (Miao et al., 2024; Spector and Re, 2023). In contrast, our work explores a complementary approach that intervenes between the draft and target models, performing strategic draft token selection to improve throughput over batched requests. Our method can be seamlessly integrated with the above techniques for a more efficient SD system.
|
| 43 |
+
|
| 44 |
+
LLM Scheduling. With the growing popularity of LLM as a service, several works have considered improvements to the scheduling of LLM services. These works can be broadly categorized into client-side and server-side approaches. Server-side approaches (Fu et al., 2024; Kim et al., 2024; Liu et al., 2024d; Wang et al., 2024a) have focused on increasing the throughput of LLM services, which may lead to an unfair allocation of inference re
|
| 45 |
+
|
| 46 |
+
sources to users, hence causing starvation. On the other hand, client-side approaches (Liu et al., 2024b; Sheng et al., 2024) have focused on improving user satisfaction by improving client-side metrics (e.g., decreasing maximal waiting time or end-to-end latency). Our work considers the scenario where the LLM inference service provider employs SD to ensure user satisfaction with inference speed while simultaneously aiming to maximize service throughput to optimize profitability.
|
| 47 |
+
|
| 48 |
+
Draft Window Optimization. In the foundational paper on SD, the authors have proposed to generate a window of draft tokens (Leviathan et al., 2023). The optimal draft window is theoretically determined under an impractical assumption of identical conditional acceptance rates for all draft tokens (Leviathan et al., 2023). Empirically, such an acceptance rate can be estimated by a moving average of past requests (Liu et al., 2024d). Other heuristics for finding the optimal draft window include stopping the draft generation when the draft model's confidence score falls below a predetermined threshold (Kim et al., 2023; Liu et al., 2024a) or when an entropy-controlled criterion is met (Agrawal et al., 2024). Cai et al. (2024) have proposed taking the union of these two heuristics. These existing works have operated at a single-request level, except that of Liu et al. (2024d) which adaptively determines a single draft window for all requests in a batch. Note that considering each request independently or using a common draft window for a batch can lead to inefficiencies in allocating verification budgets (i.e., inference capacity) across multiple requests, especially when operating under the limited computing resources of an LLM inference service provider.
|
| 49 |
+
|
| 50 |
+
# 3 Problem Setup
|
| 51 |
+
|
| 52 |
+
This section first introduces speculative decoding and then describes the optimal draft token selection problem and the performance metrics used.
|
| 53 |
+
|
| 54 |
+
# 3.1 Speculative Decoding (SD)
|
| 55 |
+
|
| 56 |
+
SD is an efficient inference method designed to accelerate the decoding process in LLMs and involves two phases: drafting followed by verification. Initially, a lightweight draft model, denoted as $S$ , quickly generates candidate draft tokens. Subsequently, these tokens are verified against the generations from the target model, denoted as $\mathcal{M}$ , which is also often referred to as the verification model.
|
| 57 |
+
|
| 58 |
+
SD allows parallelized verifications of tokens by $\mathcal{M}$ , as opposed to the conventional autoregressive decoding used in language models. Hence, SD yields significant improvement in decoding speed.
|
| 59 |
+
|
| 60 |
+
Specifically, the draft model generates $k$ draft tokens $d_{1},\ldots ,d_{k}$ in an autoregressive manner where $k$ is the draft window size. Given a prompt or prefix $x$ , the generation process follows $d_{i}\sim p_{S}(\cdot |x,d_{1},\dots ,d_{i - 1})$ . For notational simplicity, we denote $p_{S}(d_{i}) = p_{S}(d_{i}|x,d_{1},\dots ,d_{i - 1})$ . The verification follows a rejection sampling procedure. If $p_{S}(d_{i})\leq p_{\mathcal{M}}(d_{i})$ , the draft token $d_{i}$ is accepted. Otherwise, we reject the draft token with a probability of $1 - p_{\mathcal{M}}(d_i) / p_S(d_i)$ and then output a new token sampled from an adjusted distribution $p_{\mathcal{M}}(d_i^{\prime}) = \mathrm{norm}(\max (0,p_{\mathcal{M}}(d_i^{\prime}) - p_{\mathcal{S}}(d_i^{\prime})))$ where $\mathrm{norm}(\cdot)$ normalizes the probability distribution. Hence, the acceptance of draft tokens depends on both $p_{S}(\cdot)$ and $p_{\mathcal{M}}(\cdot)$ and plays a vital role in the effectiveness of SD. A higher acceptance suggests the possibility of greater speedup gain with a larger $k$ . We defer a more detailed discussion of the acceptance rate estimation in App. B.1. However, we highlight that the effectiveness of SD is limited by the computing resources available. Using a draft window exceeding the capacity for parallel inferences that the server can manage degrades the performance, which we show empirically later in Sec. 5. Consequently, it is essential to carefully select the draft window size for each request, leading to our proposed method outlined next.
|
| 61 |
+
|
| 62 |
+
# 3.2 Optimal Draft Token Selection
|
| 63 |
+
|
| 64 |
+
We first define a set of other notations used throughout our paper. We consider a specific LLM inference service provider with a limited capacity $C$ , which represents the maximum number of parallel inferences its computing resources can perform. The capacity depends on the server configurations of the service provider in practice. At each time step, the server processes a batch of $N$ requests $r_1, r_2, \dots, r_N$ , each with a partially complete sequence $S_{i,t_i} = (d_{i,1}, \dots, d_{i,t_i})$ where $t_i$ represents the number of tokens verified/served so far for request $r_i$ . We allow a variable draft window size $k_i$ for each request $r_i$ . The draft model $S$ drafts a set $\mathcal{D} := \{(i,t) | i \in [N], t \in [t_i + k_i]\}$ such that $|\mathcal{D}| = \sum_{i=1}^{N} k_i = C$ . For each $(i,t) \in \mathcal{D}$ , we send $S_{i,t}$ to have its last token verified by $\mathcal{M}$ . We aim to optimally choose the set $\mathcal{D}$ at each time step to maximize the performance of the server in terms of generation throughput, which we define below.
|
| 65 |
+
|
| 66 |
+
Per-step Throughput. For each step of SD, we are mainly concerned with maximizing the per-step throughput, i.e., the number of tokens served at each time step. Mathematically, let $\mathbf{1}_{i,t}$ be an indicator variable representing whether the last token of $S_{i,t}$ is accepted, let $\tau_{\mathrm{step}}$ be the time per step. The per-step throughput is then defined as
|
| 67 |
+
|
| 68 |
+
$$
|
| 69 |
+
\mathcal {G} _ {\text {s t e p}} := \left(\mathbb {E} \left[ \sum_ {(i, t) \in \mathcal {D}} \mathbf {1} _ {i, t} \right] + N\right) / \tau_ {\text {s t e p}}.
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
Note that at least one token is always generated by SD via the bonus token mechanism (Leviathan et al., 2023). Thus, without considering drafting time, the throughput of SD is theoretically at least as good as that of autoregressive decoding.
|
| 73 |
+
|
| 74 |
+
Total Throughput. The total throughput is calculated as the average per-step throughput over a total of $T$ steps with a fixed $\tau_{\mathrm{step}}$ for each step:
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
\mathcal {G} := T ^ {- 1} \sum_ {i = 1} ^ {T} \mathcal {G} _ {\text {s t e p}}.
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
Note that it is theoretically difficult to find an optimal draft token selection strategy that maximizes $\mathcal{G}$ as the relationship between previously verified tokens and the distribution of acceptance rate for the remaining tokens is extremely complex. However, under a mild assumption on token acceptance rate, the optimality of $\mathcal{G}$ is equivalent to the optimality of $\mathcal{G}_{\mathrm{step}}$ , as explained formally in Sec. 4.2 later.
|
| 81 |
+
|
| 82 |
+
# 4 TETRIS: Optimal Draft Token Selection
|
| 83 |
+
|
| 84 |
+
In this section, we introduce the details of the Tetris for batch SD and provide an analysis of its time complexity and optimality. Overall, we leverage the insight that SD suffers from a cascading failure rate in a single sequence but not across different sequences. More specifically, we distinguish between two types of tokens involved in drafting: sequential and parallel. For each request $r_i$ , all pairs $(i, \cdot) \in \mathcal{D}$ are sequential, i.e., for all $j < k$ , $(i, j)$ must be accepted for $(i, k)$ to be accepted as well, implying a cascade of the failure rate. On the other hand, for $i \neq j$ , $(i, \cdot)$ and $(j, \cdot)$ are parallel, as the failure rate of $(i, \cdot)$ does not influence that of $(j, \cdot)$ . We highlight that the distinct nature of the two modes serves as the fundamental motivation of our proposed approach for an improved $\mathcal{G}_{\mathrm{step}}$ , and consequently the total throughput $\mathcal{G}$ .
|
| 85 |
+
|
| 86 |
+
# 4.1 Our Approach and Design
|
| 87 |
+
|
| 88 |
+
We introduce inter-dependencies among requests within a batch. We favor parallel tokens when se
|
| 89 |
+
|
| 90 |
+
lecting sequential tokens leads to an excessive cascading of failure rates, and vice versa. To achieve this, we propose to introduce a manager to actively select the best draft tokens that are most likely to be successfully verified by the target model, thus maximizing the expected number of output tokens. The manager is integrated into the speculative decoding framework and functions as an intermediary between the draft model and the target model. It operates on the draft tokens and auxiliary outputs (e.g., token distributions, hidden states) from the draft model and strategically selects those that will be sent for verification by the target model.
|
| 91 |
+
|
| 92 |
+
At each step, define $p_{i,j}$ the conditional acceptance rate of the token at index $(i,j)$ given its corresponding prefix. Let $\mathcal{B}_{i,j} \coloneqq (i,j,\prod_{t=1}^{j}p_{i,t})$ be the tuple containing token indices and the probability of all selected tokens in row $i$ up to $j$ being accepted. Instead of simply selecting a fixed window of draft tokens for verification, we greedily look for tokens with the highest cumulative acceptance rate $\prod_{t=1}^{j}p_{i,t}$ (and not the standalone acceptance rate $p_{i,j}$ ). We let the draft model propose the extra draft tokens beyond the server capacity and then select a set $\mathcal{D}^*$ of tokens such that it maximally utilizes the compute resource by ensuring $|\mathcal{D}^*| = C$ . This process dynamically allocates longer draft windows for requests with "easy" tokens and shorter windows for "hard" ones, reducing resource wastage while sufficiently leveraging speculation, as illustrated in Fig. 1. TETRIS is outlined in Alg. 1.
|
| 93 |
+
|
| 94 |
+
Algorithm 1 TETRIS
|
| 95 |
+
1: Input: draft $\mathcal{B}$ , batch size $N$ , capacity $C$
|
| 96 |
+
2: Initialize $\mathcal{D}^* \gets \{\}$ , $\mathcal{H} \gets \text{Heap}$
|
| 97 |
+
3: $Z \gets \text{InitArray}(size = N, value = -1)$
|
| 98 |
+
4: for $i \in [N]$ do
|
| 99 |
+
5: $\mathcal{H}$ .insert( $\mathcal{B}_{i,0}$ )
|
| 100 |
+
6: end for
|
| 101 |
+
7: repeat
|
| 102 |
+
8: // Dequeue the most probable
|
| 103 |
+
9: $(i,j,p_{ij}) = \mathcal{H}$ .extractMax()
|
| 104 |
+
10: $\mathcal{D}^* = \mathcal{D}^* \cup \{(i,j)\}$
|
| 105 |
+
11: // Record the row-wise frontier
|
| 106 |
+
12: $Z[i] = j$
|
| 107 |
+
13: // Enqueue new candidates
|
| 108 |
+
14: $\mathcal{H}$ .insert( $\mathcal{B}_{i,j+1}$ )
|
| 109 |
+
15: until $|\mathcal{D}^*| = C$
|
| 110 |
+
16: return $\mathcal{D}^*$
|
| 111 |
+
|
| 112 |
+
# 4.2 Analysis
|
| 113 |
+
|
| 114 |
+
We now present our theoretical results, which show the per-step and global optimality of TETRIS.
|
| 115 |
+
|
| 116 |
+
Theorem 1 (Per-step Optimality of TETRIS). In the absence of drafting time, given the true acceptance rate $\alpha_{i,j}$ of each draft token $(i,j)$ , Alg. 1 produces the optimal per-step throughput defined in Sec. 3.
|
| 117 |
+
|
| 118 |
+
The proof is delayed to App. A.1. While we have established the local optimality of Tetris in Theorem 1, such local optimality does not trivially generalize to maximizing total throughput. Nevertheless, we show, in Theorem 2, that Tetris is optimal in a slightly simpler scenario that retains sufficient complexity of interest.
|
| 119 |
+
|
| 120 |
+
Assumption 1. $\forall j$ , all tokens in the $j$ -th sequence have an identical acceptance rate denoted as $\alpha_{j}$ .
|
| 121 |
+
|
| 122 |
+
Theorem 2 (Global Optimality of TETRIS under Assumption). Under Assumption 1, in the absence of drafting time, TETRIS searches for the optimal $\mathcal{G}$ under the same capacity. Moreover, if $\alpha_{1} = \alpha_{2} = \dots = \alpha_{N}$ , TETRIS has the same $\mathcal{G}$ as standard batched speculative decoding.
|
| 123 |
+
|
| 124 |
+
The proof is delayed to App. A.3. Overall, we established both per-step and global optimality of Tetris under theoretical assumptions. Similar assumptions are commonly made in the literature (Leviathan et al., 2023; Liu et al., 2024d) to enable theoretical insights (more details in App. B.3), and Tetris demonstrates strong empirical performance even when this assumption is violated, as we show later in Sec. 5. In practice, the drafting time can be hidden with appropriately designed pipeline (Liu et al., 2024c; Wang et al., 2024b) which parallelizes the execution of the draft model and the target model. The true acceptance rates are inaccessible in practice, we thus rely on surrogate measures and show their empirical effectiveness, which we will discuss next.
|
| 125 |
+
|
| 126 |
+
# 4.3 Practical Implementations
|
| 127 |
+
|
| 128 |
+
The acceptance rate of a draft token depends on $\max(p_{\mathcal{M}}(d_i) / p_{\mathcal{S}}(d_i), 1)$ . However, the TETRIS manager does not have access to $p_{\mathcal{M}}(\cdot)$ before verification. In practice, we use the draft model's output probability as a surrogate of the token acceptance rate (Kim et al., 2023; Zhang et al., 2024). We show in Sec. 5 that this surrogate empirically
|
| 129 |
+
|
| 130 |
+
results in strong performance. While prior works such as EAGLE-2 (Li et al., 2024b) and MDSD (Hu et al., 2025) have adopted greedy token selection based on draft model probabilities on a single request, TETRIS' greedy algorithm operates at the batch level to optimize resource utilization across multiple requests, where we defer a more detailed discussion to App. B.2. Additionally, while we theoretically show that Alg. 1 achieves a time complexity of $\mathcal{O}(C\log N)$ (see App. A.2), we can additionally leverage the parallelism of GPU to achieve empirical negligible overhead of using TETRIS ( $< 0.3\mathrm{ms}$ compared to the average draft time per token of $>2.5\mathrm{ms}$ ) via the scatter_max operation directly implemented on GPU. Lastly, the autoregressive token drafting can also be parallelized across requests. Hence, drafting a batch of requests with a common window size of $k$ tokens takes the same time as a single request in practice.
|
| 131 |
+
|
| 132 |
+
# 5 Experiments
|
| 133 |
+
|
| 134 |
+
We evaluate the effectiveness and efficiency of Tetris against baseline methods. We first validate the necessity of dynamic draft token selection and improvement of token acceptance with Tetris in Sections 5.1 and 5.2. Then, we show the empirical end-to-end speedup in Sec. 5.3. We also discuss the potential further improvement in empirical results with the future implementation of speculative decoding pipelines in Sec. 5.4. Our code is available at https://github.com/ZhaoxuanWu/Tetris.
|
| 135 |
+
|
| 136 |
+
Settings. We perform experiments on target models of various parameter sizes, including Vicuna-33B-v1.3, Llama-3.1-70B-Instruct, and Llama-3.1-405B-Instruct. We use Vicuna-68M and Llama-3.2-1B-Instruct as their respective draft models. Depending on the size of the models, different server configurations and tensor parallel sizes are adopted, detailed in Tab. 1. TETRIS is evaluated for generation of answer completion for questions extracted from ShareGPT (Anon, 2023), Chatbot Arena (Zheng et al., 2023), Domain Tough Ques
|
| 137 |
+
|
| 138 |
+
Table 1: Server and model configurations. TP indicates the tensor parallel size used for model serving.
|
| 139 |
+
|
| 140 |
+
<table><tr><td>Setting</td><td>Draft Model (TP)</td><td>Target Model (TP)</td><td>GPU (VRAM)</td></tr><tr><td>1</td><td>Vicuna-68M (1)</td><td>Vicuna-33B (4)</td><td>4×L40 (180G)</td></tr><tr><td>2</td><td>Llama-1B-FP8 (1)</td><td>Llama-70B (8)</td><td>8×L40 (360G)</td></tr><tr><td>3</td><td>Llama-1B-FP8 (1)</td><td>Llama-405B-FP8 (8)</td><td>8×H100 (640G)</td></tr></table>
|
| 141 |
+
|
| 142 |
+

|
| 143 |
+
Figure 2: The distribution of the number of accepted tokens per speculative decoding step for various tasks.
|
| 144 |
+
|
| 145 |
+
tions (YAV-AI, 2024), and synthetic tasks generated from Shakespeare's The Sonnet. The standard speculative decoding (SD) (Leviathan et al., 2023) and dynamic speculative decoding (DSD) (Liu et al., 2024d) are baseline methods that we compare to. We vary the drafting window sizes, allowing up to 3 extra draft tokens for TETRIS while keeping the same number of tokens sent for verification by the target model (i.e., fixing the inference capacity) for fair comparison to baseline methods. TETRIS is implemented in vLLM (Kwon et al., 2023).
|
| 146 |
+
|
| 147 |
+
# 5.1 Variations in Draft Quality
|
| 148 |
+
|
| 149 |
+
We begin by emphasizing the importance of setting an appropriate draft window size. Using Setting 2, we collect the oracle optimal draft window size to adopt for each SD step. Notably, the results in Fig. 2 show flat curves with long-tail distributions for various datasets, revealing significant variations in optimal window size per step. This diversity highlights the potential suboptimality of a fixed draft window, as it fails to adapt to the inherent characteristics of the draft-target model combination or a batch of sequences. By tailoring the draft token selection in a batch, TETRIS is expected to achieve higher efficiency and better alignment with the model's token acceptance patterns, hence improving overall performance.
|
| 150 |
+
|
| 151 |
+
# 5.2 Effect of Extra Draft Tokens
|
| 152 |
+
|
| 153 |
+
Having extra draft tokens provides TETRIS with greater flexibility in selecting which draft tokens to send for verification. To empirically show this effect, we define the verification success rate (VSR),
|
| 154 |
+
|
| 155 |
+
$$
|
| 156 |
+
V S R = \frac {\text {A c c e p t e d t o k e n s}}{\text {T o k e n s s e n t f o r v e r i f i c a t i o n}}, \tag {1}
|
| 157 |
+
$$
|
| 158 |
+
|
| 159 |
+
which measures the quality of the draft tokens selected by TETRIS. Fixing the total number of tokens sent for verification, we show in Fig. 3 that
|
| 160 |
+
|
| 161 |
+

|
| 162 |
+
Figure 3: Change in VSR as the number of extra draft tokens increases. Base draft length $k$ is set to 4, results for other $k$ 's are in App. C.2.
|
| 163 |
+
|
| 164 |
+
increasing the number of extra draft tokens consistently increases the VSR metric across all settings. This finding confirms the effectiveness of Tetris's strategy for draft token selection utilizing extra draft tokens. It also validates the empirical usefulness of the draft model's output probabilities as a surrogate of the selection criteria, as stated in Sec. 4.3.
|
| 165 |
+
|
| 166 |
+
# 5.3 Evaluation of TETRIS
|
| 167 |
+
|
| 168 |
+
To evaluate the effectiveness of TETRIS, we perform comprehensive experiments on various datasets and report metrics, including the total throughput and end-to-end latency. We compare to standard SD and DSD. Throughout the experiments, we maintain a consistent system load of 64 batched requests to ensure consistency, reproducibility, and fairness in comparisons. Note that all experiments include drafting time.
|
| 169 |
+
|
| 170 |
+
Total Throughput. We measure the performance of a speculative decoding method using the total throughput, which includes both accepted draft tokens by the target model and the bonus tokens, which make up the final completion. As shown in Fig. 4, TETRIS achieves up to approximately $5.25\%$ improvement in terms of total throughput compared to the best baseline, depending on the draft-target setting and the nature of the task performed. The maximum gap between TETRIS and standard SD is up to $9.27\%$ . Importantly, TETRIS consistently outperforms the standard SD and DSD across all settings of the draft window sizes. This shows the robustness of TETRIS to different hyperparameter choices. Additionally, it is evident that having more speculative tokens (i.e., a larger draft window size) does not always improve the performance, as having too many parallel executions of the target model exceeding the servers' parallel
|
| 171 |
+
|
| 172 |
+

|
| 173 |
+
|
| 174 |
+

|
| 175 |
+
|
| 176 |
+

|
| 177 |
+
|
| 178 |
+

|
| 179 |
+
|
| 180 |
+

|
| 181 |
+
|
| 182 |
+

|
| 183 |
+
|
| 184 |
+

|
| 185 |
+
(g) $\uparrow 3.93\% ,\Delta 3.93\%$
|
| 186 |
+
|
| 187 |
+

|
| 188 |
+
(h) $\uparrow 5.15\% ,\Delta 5.15\%$
|
| 189 |
+
|
| 190 |
+

|
| 191 |
+
(i) $\uparrow 5.25\% ,\Delta 5.25\%$
|
| 192 |
+
Figure 4: Throughput comparison for various methods across experimental settings. $\uparrow$ indicates the improvement over the best baseline method. $\Delta$ indicates the maximum gap between TETRIS and standard SD. The reported numbers reflect the mean and standard deviation over 3 independent trials.
|
| 193 |
+
|
| 194 |
+
inference capacity degrades performance.
|
| 195 |
+
|
| 196 |
+
Empirically, we observe that TETRIS achieves optimal performance when the number of extra draft tokens is set to 1 or 2. These results are partly attributed to the current sequential draft-target implementation for the speculative decoding pipeline, as more extra draft tokens take time to generate autoregressively. Remarkably, this pipeline can be better designed to amplify the benefit of TETRIS, which we defer the discussion to Sec. 5.4. Moreover, while DSD is expected to outperform standard SD, we note that it is not always the case in empirical experiments. This behavior may result from the difficulty of accurately estimating the conditional token acceptance rate in practice and the quality of the fitted latency prediction model.
|
| 197 |
+
|
| 198 |
+
End-to-end Latency. We also measure the end-to-end latency of each request, defined as the time from sending the request to receiving the final response from the vLLM server on the client side.
|
| 199 |
+
|
| 200 |
+
Table 2: Improvement in end-to-end latency. Refer to Fig. 4 for definitions of $\uparrow$ and $\Delta$ . The reported numbers reflect the mean over 3 independent trials.
|
| 201 |
+
|
| 202 |
+
<table><tr><td rowspan="2">Setting</td><td colspan="2">ShareGPT</td><td colspan="2">Arena</td><td colspan="2">Tough</td></tr><tr><td>↑</td><td>Δ</td><td>↑</td><td>Δ</td><td>↑</td><td>Δ</td></tr><tr><td>1</td><td>3.42%</td><td>6.05%</td><td>5.30%</td><td>6.30%</td><td>5.47%</td><td>9.32%</td></tr><tr><td>2</td><td>2.65%</td><td>2.70%</td><td>3.86%</td><td>3.86%</td><td>3.65%</td><td>3.65%</td></tr><tr><td>3</td><td>3.51%</td><td>4.52%</td><td>6.13%</td><td>6.13%</td><td>4.49%</td><td>4.68%</td></tr></table>
|
| 203 |
+
|
| 204 |
+
This metric measures the average latency of the speculative decoding system in finishing completions, which can affect user satisfaction. We summarize the results in Tab. 2 and defer the figures to App. C.3. Overall, TETRIS achieves up to $6.13\%$ improvement in latency as compared to the best baseline and up to $9.32\%$ improvement against standard SD.
|
| 205 |
+
|
| 206 |
+
# 5.4 Potentially Parallelized Pipeline
|
| 207 |
+
|
| 208 |
+
We implement TETRIS to work with the vLLM library, one of the most efficient frameworks for LLM inference (Kwon et al., 2023). vLLM adopts a
|
| 209 |
+
|
| 210 |
+

|
| 211 |
+
Figure 5: Left: Baseline comparisons for $TER$ in different speculative configurations. Right: Projected $\hat{\mathcal{G}}_k^{(TER)}$ plot for TETRIS with baselines.
|
| 212 |
+
|
| 213 |
+

|
| 214 |
+
Figure 6: Parallelized pipeline for speculative decoding, where the draft model and TETRIS runtime can be hidden entirely through parallelization.
|
| 215 |
+
|
| 216 |
+
sequential pipeline for speculative decoding, where the target model runs sequentially after the draft model finishes generating draft tokens. As illustrated in Fig. 6, TETRIS is integrated between the draft and target models. However, in such a sequential pipeline, TETRIS cannot fully realize its potential as the extra draft tokens incur additional computational time.
|
| 217 |
+
|
| 218 |
+
Recent works such as Minions (Wang et al., 2024b) and PEARL (Liu et al., 2024c) have started exploring the benefits of a parallelized pipeline with two processes concurrently running the draft and target models as illustrated in Fig. 6. Given that the draft model runs significantly faster than the target model, the draft time, as well as the time to run our TETRIS, can be hidden entirely in the parallelized pipeline. Moreover, the idle time (marked in green) of Process 2 between steps can be utilized to draft more extra tokens of TETRIS or to run more complex algorithms.
|
| 219 |
+
|
| 220 |
+
Under the constraint of sequential pipelines in vLLM, we instead adopt an alternative performance metric that better captures the potential advantages of TETRIS in parallelized pipelines. We use the target efficiency rate (TER) defined as follows,
|
| 221 |
+
|
| 222 |
+
$$
|
| 223 |
+
T E R = \frac {\text {A c c e p t e d t o k e n s} + \text {B o u n s t o k e n s}}{\text {M a x p o s s i b l e n u m b e r o f t o k e n s i f a l l a c c e p t e d}}. \tag {2}
|
| 224 |
+
$$
|
| 225 |
+
|
| 226 |
+
As $TER$ measures the efficiency of target model verifications and is unaffected by the drafting pro
|
| 227 |
+
|
| 228 |
+
Table 3: Projected throughput $\hat{\mathcal{G}}^{(TER)}$ improvement based on TER metric improvement, realizable under a parallelized speculative decoding pipeline.
|
| 229 |
+
|
| 230 |
+
<table><tr><td>Setting</td><td>Dataset</td><td>G↑</td><td>G(TER)↑</td></tr><tr><td rowspan="3">1</td><td>ShareGPT</td><td>3.50%</td><td>9.70%</td></tr><tr><td>Arena</td><td>5.17%</td><td>7.79%</td></tr><tr><td>Tough</td><td>4.85%</td><td>8.92%</td></tr><tr><td rowspan="3">2</td><td>ShareGPT</td><td>2.01%</td><td>11.70%</td></tr><tr><td>Arena</td><td>2.71%</td><td>11.17%</td></tr><tr><td>Tough</td><td>3.43%</td><td>11.91%</td></tr><tr><td rowspan="3">3</td><td>ShareGPT</td><td>3.93%</td><td>11.67%</td></tr><tr><td>Arena</td><td>5.15%</td><td>10.53%</td></tr><tr><td>Tough</td><td>5.25%</td><td>12.04%</td></tr></table>
|
| 231 |
+
|
| 232 |
+
cess and TETRIS runtime, it provides an accurate indication of the net benefit of TETRIS. In Fig. 5, we demonstrate a case study for Setting 3 on Tough dataset: The improvement of TER is first calculated from the left figure, and is then used to compute the projected throughput $\hat{\mathcal{G}}_k^{(TER)}$ , following
|
| 233 |
+
|
| 234 |
+
$$
|
| 235 |
+
\hat {\mathcal {G}} _ {k} ^ {(T E R)} = \mathcal {G} _ {\mathrm {S D}, k} \times \frac {(T E R _ {\mathrm {T E T R I S} , k} - T E R _ {\mathrm {S D} , k})}{T E R _ {\mathrm {S D} , k}},
|
| 236 |
+
$$
|
| 237 |
+
|
| 238 |
+
where $k$ is the number of speculative tokens (i.e., draft window size) and $\mathcal{G}$ represents throughput. Consequently, using TETRIS is projected (i.e., not realized in the current implementation) to achieve $12.04\%$ improvement for this setting under parallelized pipeline. The full results are shown in Tab. 3 and the figures are shown in App. C.4.
|
| 239 |
+
|
| 240 |
+
# 5.5 Ablation Study
|
| 241 |
+
|
| 242 |
+
Robustness to Variations in Draft Quality. We artificially introduce additional variations in draft quality by mixing datasets of different difficulty levels. We create synthetic prompts designed for models to repeat lines from a poem named Sonnet. Since Sonnet is relatively easy for the small draft model, it achieves a high rate of successful verification by the target model. We then construct
|
| 243 |
+
|
| 244 |
+
Table 4: Tetris improvement in throughput for ablation study of robustness to variations in draft quality.
|
| 245 |
+
|
| 246 |
+
<table><tr><td>Setting</td><td>Sonnet</td><td>Tough</td><td>Mix</td></tr><tr><td>1</td><td>2.46%</td><td>4.85%</td><td>4.12%</td></tr><tr><td>2</td><td>-0.81%</td><td>3.43%</td><td>3.48%</td></tr><tr><td>3</td><td>2.07%</td><td>5.25%</td><td>4.24%</td></tr></table>
|
| 247 |
+
|
| 248 |
+
a new dataset, Mix, by randomly mixing Sonnet and a more challenging dataset, Tough, in equal proportions. As shown Tab. 4, the performance improvement of TETRIS over the best baseline suffers only a marginal or no decline, indicating its robustness to substantial variations in draft quality.
|
| 249 |
+
|
| 250 |
+
Extension to Medusa. The Medusa model generates multiple subsequent draft tokens using a single forward pass (as opposed to autoregressive generation) through multiple decoding heads (Cai et al., 2024). Leveraging Medusa, it is possible to generate extra draft tokens for TETRIS at minimal marginal computational cost. We show in App. C.5 that integrating TETRIS to Medusa achieves a $3.19\%$ improvement in total throughput.
|
| 251 |
+
|
| 252 |
+
Other Ablations. We also include ablations on TETRIS's improvement in verification success rate (VSR) in App. C.6, and the effect of batch size on the performance in App. C.7.
|
| 253 |
+
|
| 254 |
+
# 6 Conclusion and Future Work
|
| 255 |
+
|
| 256 |
+
In this paper, we study the problem of optimizing batch speculative decoding to maximize throughput in multi-request settings, such as those faced by model service providers. To this end, we propose TETRIS, a novel method that efficiently selects optimal draft tokens for the LLM verification in log-linear time. We have theoretically shown that, in the absence of drafting time, TETRIS achieves optimal throughput both at each decoding step and globally under reasonable assumptions about token acceptance rates. Our empirical results further validate that TETRIS consistently outperforms standard speculative decoding and existing dynamic draft window selection methods, even when accounting for the extra time required for drafting extra tokens. These results highlight the potential of TETRIS to improve inference efficiency in real-world model service deployments. A key future direction is adapting TETRIS to tree decoding, a notable feature in recent advancements in speculative decod
|
| 257 |
+
|
| 258 |
+
ing (Cai et al., 2024; Li et al., 2024a,b). Another interesting direction to explore is to design better draft token selection techniques. Insights can be derived from existing works on data selection (Lin et al., 2024; Zhou et al., 2023; Xu et al., 2024; Zhou et al., 2024b) that find important data points. Similarly, further research can investigate how to leverage the probability distribution between the draft model and the target model to improve the selection efficiency.
|
| 259 |
+
|
| 260 |
+
# 7 Limitations
|
| 261 |
+
|
| 262 |
+
In this paper, our empirical experiments only demonstrate results using the current sequential speculative decoding pipeline implemented on vLLM. That is, the target model stays idle while waiting for draft tokens from the draft model. Consequently, the performance improvement of TETRIS is heavily dependent on the trade-off between the additional runtime required to generate extra draft tokens and the gain in token acceptance achieved through TETRIS. Such trade-off limits the practical effectiveness of TETRIS, especially when a slow draft model is required. We anticipate that future implementations of a parallelized pipeline could potentially reveal greater speedups with TETRIS. However, we have not yet integrated such features into vLLM for testing in empirical experiments.
|
| 263 |
+
|
| 264 |
+
# Acknowledgments
|
| 265 |
+
|
| 266 |
+
This research is supported by the National Research Foundation (NRF), Prime Minister's Office, Singapore under its Campus for Research Excellence and Technological Enterprise (CREATE) programme. The Mens, Manus, and Machina (M3S) is an interdisciplinary research group (IRG) of the Singapore MIT Alliance for Research and Technology (SMART) centre.
|
| 267 |
+
|
| 268 |
+
# References
|
| 269 |
+
|
| 270 |
+
Sudhanshu Agrawal, Wonseok Jeon, and Mingu Lee. 2024. Adaedl: Early draft stopping for speculative decoding of large language models via an entropy-based lower bound on token acceptance probability. In NeurIPS Workshop on Efficient Natural Language and Signal Processing.
|
| 271 |
+
anon8231489123 Anon. 2023. Sharegpt dataset. https://huggingface.co/datasets/anon8231489123/ShareGPT_Vicuna_unfiltered.
|
| 272 |
+
Tianle Cai, Yuhong Li, Zhengyang Geng, Hongwu Peng, Jason D. Lee, Deming Chen, and Tri Dao. 2024.
|
| 273 |
+
|
| 274 |
+
Medusa: Simple llm inference acceleration framework with multiple decoding heads. In Proc. ICML, pages 5209-5235.
|
| 275 |
+
Zhuoming Chen, Avner May, Ruslan Svirschevski, YuHsun Huang, Max Ryabinin, Zhihao Jia, and Beidi Chen. 2024. Sequoia: Scalable and robust speculative decoding. In Proc. NeurIPS, pages 129531-129563.
|
| 276 |
+
Yunfei Cheng, Aonan Zhang, Xuanyu Zhang, Chong Wang, and Yi Wang. 2024. Recurrent drafter for fast speculative decoding in large language models. arXiv:2403.09919.
|
| 277 |
+
DeepSeek-AI, Aixin Liu, Bei Feng, Bing Xue, Bingxuan Wang, Bochao Wu, Chengda Lu, Chenggang Zhao, Chengqi Deng, Chenyu Zhang, Chong Ruan, and et al. 2024. Deepseek-v3 technical report. arXiv:2412.19437.
|
| 278 |
+
Fireworks AI. 2025. Fireworks ai: High-performance inference platform. https://fireworks.ai/. Accessed: 2025-02-10.
|
| 279 |
+
Yichao Fu, Siqi Zhu, Runlong Su, Aurick Qiao, Ion Stoica, and Hao Zhang. 2024. Efficient LLM scheduling by learning to rank. In Proc. NeurIPS, pages 59006-59029.
|
| 280 |
+
Zhengmian Hu, Tong Zheng, Vignesh Viswanathan, Ziyi Chen, Ryan A. Rossi, Yihan Wu, Dinesh Manocha, and Heng Huang. 2025. Towards optimal multi-draft speculative decoding. In Proc. ICLR.
|
| 281 |
+
Kaixuan Huang, Xudong Guo, and Mengdi Wang. 2024. Specdec++: Boosting speculative decoding via adaptive candidate lengths. arXiv:2405.19715.
|
| 282 |
+
Sehoon Kim, Karttikeya Mangalam, Suhong Moon, Jitendra Malik, Michael W. Mahoney, Amir Gholami, and Kurt Keutzer. 2023. Speculative decoding with big little decoder. In Proc. NeurIPS, pages 39236-39256.
|
| 283 |
+
Taehyeon Kim, Ananda Theertha Suresh, Kishore A Papineni, Michael Riley, Sanjiv Kumar, and Adrian Benton. 2024. Accelerating blockwise parallel language models with draft refinement. In Proc. NeurIPS, pages 34294-34321.
|
| 284 |
+
Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph Gonzalez, Hao Zhang, and Ion Stoica. 2023. Efficient memory management for large language model serving with pagedattention. In Proc. SOSP.
|
| 285 |
+
Yaniv Leviathan, Matan Kalman, and Yossi Matias. 2023. Fast inference from transformers via speculative decoding. In Proc. ICML, pages 19274-19286.
|
| 286 |
+
Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. 2024a. EAGLE-2: Faster inference of language models with dynamic draft trees. In Proc. EMNLP, pages 7421-7432.
|
| 287 |
+
|
| 288 |
+
Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. 2024b. EAGLE: Speculative sampling requires rethinking feature uncertainty. In Proc. ICML, pages 28935-28948.
|
| 289 |
+
Xiaoqiang Lin, Xinyi Xu, Zhaoxuan Wu, See-Kiong Ng, and Bryan Kian Hsiang Low. 2024. Distributionally robust data valuation. In Proc. ICML.
|
| 290 |
+
Fangcheng Liu, Yehui Tang, Zhenhua Liu, Yunsheng Ni, Duyu Tang, Kai Han, and Yunhe Wang. 2024a. Kangaroo: Lossless self-speculative decoding for accelerating LLMs via double early exiting. In Proc. NeurIPS, pages 11946-11965.
|
| 291 |
+
Jiachen Liu, Zhiyu Wu, Jae-Won Chung, Fan Lai, Myungjin Lee, and Mosharaf Chowdhury. 2024b. Andes: Defining and Enhancing Quality-of-Experience in LLM-Based Text Streaming Services. arXiv:2404.16283.
|
| 292 |
+
Tianyu Liu, Yun Li, Qitan Lv, Kai Liu, Jianchen Zhu, and Winston Hu. 2024c. Parallel speculative decoding with adaptive draft length. arXiv:2408.11850.
|
| 293 |
+
Xiaoxuan Liu, Cade Daniel, Langxiang Hu, Woosuk Kwon, Zhuohan Li, Xiangxi Mo, Alvin Cheung, Zhijie Deng, Ion Stoica, and Hao Zhang. 2024d. Optimizing speculative decoding for serving large language models using goodput. arXiv:2406.14066.
|
| 294 |
+
Xiaoxuan Liu, Lanxiang Hu, Peter Bailis, Alvin Cheung, Zhijie Deng, Ion Stoica, and Hao Zhang. 2024e. Online speculative decoding. In Proc. ICML, pages 31131-31146.
|
| 295 |
+
Jonathan Mamou, Oren Pereg, Daniel Korat, Moshe Berchansky, Nadav Timor, Moshe Wasserblat, and Roy Schwartz. 2024. Dynamic speculation looks at head accelerates speculative decoding of large language models. arXiv:2405.04304.
|
| 296 |
+
Nestor Masleh, Loredana Fattorini, Raymond Perrault, Vanessa Parli, Anka Reuel, Erik Brynjolfsson, John Etchemendy, Katrina Ligett, Terah Lyons, James Manyika, Juan Carlos Niebles, Yoav Shoham, Russell Wald, and Jack Clark. 2024. The AI index 2024 annual report. Technical report, AI Index Steering Committee, Institute for Human-Centered AI, Stanford University.
|
| 297 |
+
Xupeng Miao, Gabriele Oliaro, Zhihao Zhang, Xinhao Cheng, Zeyu Wang, Zhengxin Zhang, Rae Ying Yee Wong, Alan Zhu, Lijie Yang, Xiaoxiang Shi, Chunan Shi, Zhuoming Chen, Daiyaan Arfeen, Reyna Abhyankar, and Zhihao Jia. 2024. Specinfer: Accelerating large language model serving with tree-based speculative inference and verification. In Proc. ASPLOS, page 932-949.
|
| 298 |
+
Replicate. 2025. Replicate: Run AI with an API. https://replicate.com/. Accessed: 2025-02-10.
|
| 299 |
+
Baptiste Rozière, Jonas Gehring, Fabian Gloeckle, Sten Sootla, Itai Gat, Xiaoqing Ellen Tan, Yossi Adi, Jingyu Liu, Romain Sauvestre, Tal Remez, Jérémy
|
| 300 |
+
|
| 301 |
+
Rapin, Artyom Kozhevnikov, Ivan Evtimov, Joanna Bitton, Manish Bhatt, Cristian Canton Ferrer, Aaron Grattafori, Wenhan Xiong, Alexandre Defossez, Jade Copet, Faisal Azhar, Hugo Touvron, Louis Martin, Nicolas Usunier, Thomas Scialom, and Gabriel Synnaeve. 2024. Code llama: Open foundation models for code. arXiv:2308.12950.
|
| 302 |
+
Hyun Ryu and Eric Kim. 2024. Closer look at efficient inference methods: A survey of speculative decoding. arXiv:2411.13157.
|
| 303 |
+
Ying Sheng, Shiyi Cao, Dacheng Li, Banghua Zhu, Zhuohan Li, Danyang Zhuo, Joseph E. Gonzalez, and Ion Stoica. 2024. Fairness in serving large language models. In Proc. OSDI.
|
| 304 |
+
Benjamin Spector and Chris Re. 2023. Accelerating lIm inference with staged speculative decoding. arXiv:2308.04623.
|
| 305 |
+
Jikai Wang, Yi Su, Juntao Li, Qingrong Xia, Zi Ye, Xinyu Duan, Zhefeng Wang, and Min Zhang. 2024a. Opt-tree: Speculative decoding with adaptive draft tree structure. arXiv:2406.17276.
|
| 306 |
+
Siqi Wang, Hailong Yang, Xuezhu Wang, Tongxuan Liu, Pengbo Wang, Xuning Liang, Kejie Ma, Tianyu Feng, Xin You, Yongjun Bao, Yi Liu, Zhongzhi Luan, and Depei Qian. 2024b. Minions: Accelerating large language model inference with aggregated speculative execution. arXiv:2402.15678.
|
| 307 |
+
P. Wieder, J.M. Butler, W. Theilmann, and R. Yahyapour. 2011. Service Level Agreements for Cloud Computing. SpringerLink: Bucher. Springer New York.
|
| 308 |
+
Heming Xia, Zhe Yang, Qingxiu Dong, Peiyi Wang, Yongqi Li, Tao Ge, Tianyu Liu, Wenjie Li, and Zhifang Sui. 2024. Unlocking efficiency in large language model inference: A comprehensive survey of speculative decoding. In Proc. ACL Findings, pages 7655-7671.
|
| 309 |
+
Xinyi Xu, Zhaoxuan Wu, Rui Qiao, Arun Verma, Yao Shu, Jingtan Wang, Xinyuan Niu, Zhenfeng He, Jiangwei Chen, Zijian Zhou, Gregory Kang Ruey Lau, Hieu Dao, Lucas Agussurja, Rachael Hwee Ling Sim, Xiaogiang Lin, Wenyang Hu, Zhongxiang Dai, Pang Wei Koh, and Bryan Kian Hsiang Low. 2024. Data-centric AI in the age of large language models. In Proc. EMNLP Findings.
|
| 310 |
+
YAV-AI. 2024. Llm-tough-questions dataset: A collection of complex questions across 100 domains. https://huggingface.co/datasets/YAV-AI/11m-domain-specific-tough-questions.
|
| 311 |
+
Shukang Yin, Chaoyou Fu, Sirui Zhao, Ke Li, Xing Sun, Tong Xu, and Enhong Chen. 2024. A survey on multimodal large language models. National Science Review, 11(12).
|
| 312 |
+
Fanlong Zeng, Wensheng Gan, Yongheng Wang, Ning Liu, and Philip S. Yu. 2023. Large language models for robotics: A survey. arXiv:2311.07226.
|
| 313 |
+
|
| 314 |
+
Jun Zhang, Jue Wang, Huan Li, Lidan Shou, Ke Chen, Gang Chen, and Sharad Mehrotra. 2024. Draft & verify: Lossless large language model acceleration via self-speculative decoding. In Proc. ACL, pages 11263-11282.
|
| 315 |
+
Wayne Xin Zhao, Kun Zhou, Junyi Li, Tianyi Tang, Xiaolei Wang, Yupeng Hou, Yingqian Min, Beichen Zhang, Junjie Zhang, Zican Dong, Yifan Du, Chen Yang, Yushuo Chen, Zhipeng Chen, Jinhao Jiang, Ruiyang Ren, Yifan Li, Xinyu Tang, Zikang Liu, Peiyu Liu, Jian-Yun Nie, and Ji-Rong Wen. 2023. A survey of large language models. arXiv:2303.18223.
|
| 316 |
+
Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric Xing, Hao Zhang, Joseph E. Gonzalez, and Ion Stoica. 2023. Judging llm-as-a-judge with mt-bench and chatbot arena. In Proc. NeurIPS (Datasets and Benchmarks Track), pages 46595-46623.
|
| 317 |
+
Lianmin Zheng, Liangsheng Yin, Zhiqiang Xie, Chuyue Sun, Jeff Huang, Cody Hao Yu, Shiyi Cao, Christos Kozyrakis, Ion Stoica, Joseph E. Gonzalez, Clark Barrett, and Ying Sheng. 2024. Sglang: Efficient execution of structured language model programs. arXiv:2312.07104.
|
| 318 |
+
Yongchao Zhou, Kaifeng Lyu, Ankit Singh Rawat, Aditya Krishna Menon, Afshin Rostamizadeh, Sanjiv Kumar, Jean-François Kagy, and Rishabh Agarwal. 2024a. Distillspec: Improving speculative decoding via knowledge distillation. In Proc. ICLR.
|
| 319 |
+
Zijian Zhou, Xiaoqiang Lin, Xinyi Xu, Alok Prakash, Daniela Rus, and Bryan Kian Hsiang Low. 2024b. Detail: Task demonstration attribution for interpretable in-context learning. In Proc. NeurIPS.
|
| 320 |
+
Zijian Zhou, Xinyi Xu, Rachael Hwee Ling Sim, Chuan Sheng Foo, and Kian Hsiang Low. 2023. Probably approximate shapley fairness with applications in machine learning. In Proc. AAAI.
|
| 321 |
+
|
| 322 |
+
# A Leftover Proofs
|
| 323 |
+
|
| 324 |
+
# A.1 Proof of Theorem 1.
|
| 325 |
+
|
| 326 |
+
Theorem 1 (Per-step Optimality of TETRIS). In the absence of drafting time, given the true acceptance rate $\alpha_{i,j}$ of each draft token $(i,j)$ , Alg. 1 produces the optimal per-step throughput defined in Sec. 3.
|
| 327 |
+
|
| 328 |
+
Proof. We prove it by contradiction. Let the selection of Alg. 1 be $\mathcal{D}^*$ . Suppose the actual optimal solution is $\mathcal{D}' \neq \mathcal{D}^*$ . Let $\tilde{\mathcal{D}} = \mathcal{D}' \cap \mathcal{D}^*$ be the overlapping tokens selected by both Alg. 1 and the actual optimal solution. Note that the tokens in each row are selected sequentially (i.e., tokens cannot be skipped in a row).
|
| 329 |
+
|
| 330 |
+
Case 1: TETRIS selects some token $d \in \mathcal{D}^* \setminus \tilde{\mathcal{D}}$ before selecting $\tilde{\mathcal{D}}$ . In this case, the $\mathbb{E}[1]$ of the token $d$ is higher than the token last selected in $\tilde{\mathcal{D}}$ . This suggests that the optimal selection should include $d$ . However, it can be observed that $d \notin D'$ since otherwise $d \in \tilde{\mathcal{D}}$ . This contradicts the fact that $\mathcal{D}'$ is optimal.
|
| 331 |
+
|
| 332 |
+
Case 2: TETRIS selects $\tilde{\mathcal{D}}$ first before selecting other tokens. Since Alg. 1 always selects the token with the highest $\mathbb{E}[\mathbf{1}]$ , every element in $\mathcal{D}^* \setminus \tilde{\mathcal{D}}$ is larger than or equal to that in $\mathcal{D}' \setminus \tilde{\mathcal{D}}$ . As such, we have $\mathbb{E}[\sum_{p \in \mathcal{D}'} \mathbf{1}_p] \leq \mathbb{E}[\sum_{p \in \mathcal{D}^*} \mathbf{1}_p]$ . However, this contradicts the fact that $\mathcal{D}'$ is optimal as Alg. 1 has a higher number of accepted tokens. Therefore, Alg. 1 must be optimal.
|
| 333 |
+
|
| 334 |
+
Combining the two cases finishes the proof.
|
| 335 |
+
|
| 336 |
+

|
| 337 |
+
|
| 338 |
+
# A.2 Running Time of TETRIS
|
| 339 |
+
|
| 340 |
+
Lemma 1. Alg. 1 achieves a time complexity of $\mathcal{O}(C\log N)$
|
| 341 |
+
|
| 342 |
+
Proof. Note that Alg. 1 maintains a heap. The heap is initialized with $N$ items. Since only $C$ pairs are selected, there are $2C$ operations of enqueue and deque. Following classic results of heap operation, each enqueue of deque operation requires $\mathcal{O}(\log C)$ time. As such, the overall time complexity of TETRIS is $\mathcal{O}(C\log N)$ .
|
| 343 |
+
|
| 344 |
+
# A.3 Proof of Theorem 2.
|
| 345 |
+
|
| 346 |
+
Theorem 2 (Global Optimality of TETRIS under Assumption). Under Assumption 1, in the absence of drafting time, TETRIS searches for the optimal $\mathcal{G}$ under the same capacity. Moreover, if $\alpha_{1} = \alpha_{2} = \dots = \alpha_{N}$ , TETRIS has the same $\mathcal{G}$ as standard batched speculative decoding.
|
| 347 |
+
|
| 348 |
+
Proof. The proof of global optimality is established on Theorem 1. Since all tokens in each row have the same acceptance rate. After each step, we have the same distribution of 1 no matter what tokens are accepted, where 1 is the indicator variable of whether the token is accepted. As such, at each step, performing TETRIS is per-step optimal by Theorem 1. Moreover, since the state at each step is identical, a per-step optimal strategy is also globally optimal. $\square$
|
| 349 |
+
|
| 350 |
+
# B Additional Related Work and Discussion
|
| 351 |
+
|
| 352 |
+
# B.1 Acceptance Rate
|
| 353 |
+
|
| 354 |
+
The acceptance rate plays a vital role in the effectiveness of speculative decoding. A higher acceptance rate should be paired with a larger draft window size $k$ to achieve optimal speedup. In the typical rejection sampling setting of speculative decoding, the acceptance of draft tokens depends on the probability distributions of both the draft and target models. When the probability distribution of the draft model, $p_{S}(\cdot)$ , closely approximates that of the target model, $p_{\mathcal{M}}(\cdot)$ , a higher number of tokens are accepted on average. Since the value of $k$ is chosen in the drafting process, we do not have access to $p_{\mathcal{M}}(\cdot)$ and have to rely on $p_{S}(\cdot)$ to estimate the acceptance rate.
|
| 355 |
+
|
| 356 |
+
Leviathan et al. (2023) derive that the expected acceptance rate is 1 minus the KL divergence between the token distributions of the draft and the target model. Hence, the acceptance rates for all draft tokens are considered constant. Liu et al. (2024d) assume uniform token acceptance behavior across diverse requests. It proposes SmartSpec, which calculates the average acceptance rate from past generation steps. Li et al.
|
| 357 |
+
|
| 358 |
+
(2024a) and Wang et al. (2024a) utilize the draft model's confidence score (i.e., the output probability of each token) to estimate the acceptance rate. Chen et al. (2024) make the positional acceptance assumption so that the acceptance rate of tokens is determined solely by their position (i.e., number of tokens away) relative to the already accepted tokens. Agrawal et al. (2024) instead consider an approximate lower bound on the expected acceptance rate of a token that depends on the entropy of prediction probabilities of the draft model $p_{S}(\cdot)$ . Noting the acceptability of diverse tokens, especially in the real world with a high value of temperature hyperparameter, Medusa proposes to use both a hard threshold and an entropy-dependent threshold as a criterion to accept draft tokens (Cai et al., 2024). In Medusa, the first token is always accepted using greedy decoding to ensure at least one token is generated in each step.
|
| 359 |
+
|
| 360 |
+
# B.2 Greedy Algorithms for Speculative Decoding
|
| 361 |
+
|
| 362 |
+
Several existing approaches in speculative decoding employ greedy algorithms to improve efficiency, though they operate at different levels and with distinct objectives. EAGLE-2 (Li et al., 2024a) and MDSD (Hu et al., 2025), for instance, utilize greedy selection strategies within single-request, multi-draft settings. EAGLE-2 achieves speedups by generating multiple branches in a draft tree, which the top candidates are then greedily selected for verification. It requires substantial GPU resources for each request and may not translate to improved throughput in batch inference due to limited total GPU capacity. MDSD, on the other hand, focuses on increasing the acceptance rate in multi-draft speculative decoding through greedy draft sampling, an objective orthogonal to our work. Our TETRIS distinguishes itself by applying a greedy algorithm at the batch level, optimizing GPU resource utilization across multiple requests rather than within a single draft tree. Due to the simplicity of greedy approaches in implementation, our method can be readily adapted to major inference frameworks (e.g., vLLM (Kwon et al., 2023)) with minimal empirical overhead. Our paper also demonstrates that TETRIS is complementary to existing speculative decoding frameworks, such as Medusa (Cai et al., 2024) (see Sec. 5.5 and App. C.5), by introducing a novel axis of optimization not explored by prior works.
|
| 363 |
+
|
| 364 |
+
# B.3 Assumptions for Analysis
|
| 365 |
+
|
| 366 |
+
Our theoretical analysis of the global optimality of TETRIS in Theorem 2 is conditioned on Assumption 1. Similar assumptions are commonly made in the literature (Leviathan et al., 2023; Liu et al., 2024d) to analyze the length of generated outputs. Specifically, the pioneering work of Leviathan et al. (2023) assumes a constant acceptance rate $\alpha$ and applies a capped geometric distribution to derive the expected number of generated tokens, under a single-request setting. For a single request, this assumption is equivalent to our Assumption 1. A natural extension of the constant acceptance rate assumption to the batch inference setting would be assuming the identical acceptance rate across all requests. However, we highlight that our Assumption 1 is weaker than assuming the same constant acceptance rate across all requests, as it allows the acceptance rate to vary across requests. Moreover, even when Assumption 1 is violated, our method still demonstrates strong empirical performance as shown in Sec. 5 of the main paper.
|
| 367 |
+
|
| 368 |
+

|
| 369 |
+
(a) Base $k = 3$
|
| 370 |
+
|
| 371 |
+

|
| 372 |
+
(b) Base $k = 2$
|
| 373 |
+
Figure 7: Additional plots for the change in VSR as the number of extra draft tokens increases, supplementary to Fig. 3 where base draft length $k = 4$ . Here, we provide results for $k = 1,2,3$
|
| 374 |
+
|
| 375 |
+

|
| 376 |
+
(c) Base $k = 1$
|
| 377 |
+
|
| 378 |
+

|
| 379 |
+
|
| 380 |
+

|
| 381 |
+
|
| 382 |
+

|
| 383 |
+
|
| 384 |
+

|
| 385 |
+
|
| 386 |
+

|
| 387 |
+
|
| 388 |
+

|
| 389 |
+
|
| 390 |
+

|
| 391 |
+
(g) $\uparrow 3.51\% ,\Delta 4.52\%$
|
| 392 |
+
|
| 393 |
+

|
| 394 |
+
(h) $\uparrow 6.13\% ,\Delta 6.13\%$
|
| 395 |
+
|
| 396 |
+

|
| 397 |
+
(i) $\uparrow 4.49\% ,\Delta 4.68\%$
|
| 398 |
+
Figure 8: Mean end-to-end latency comparison for various methods across experimental settings. $\uparrow$ indicates the improvement from best baseline method. $\Delta$ indicates the maximum gap between TETRIS and standard SD. The reported numbers reflect the mean and standard deviation over 3 independent trials.
|
| 399 |
+
|
| 400 |
+
# C Additional Results
|
| 401 |
+
|
| 402 |
+
# C.1 Dataset License
|
| 403 |
+
|
| 404 |
+
ShareGPT (Anon, 2023): Apache license 2.0; Arena (Zheng et al., 2023): CC; Domain-specific Tough Questions (YAV-AI, 2024): MIT.
|
| 405 |
+
|
| 406 |
+
# C.2 Additional Plots for Effect of Extra Draft Tokens
|
| 407 |
+
|
| 408 |
+
Fig. 3 demonstrates the benefit of adding extra draft tokens (from 0 to 9 extra tokens). The base draft length $k$ serves only as a reference baseline and its value does not significantly impact the observed trends in Fig. 3. We set $k = 4$ based on established reasonable ranges used in existing studies (Leviathan et al., 2023; Zhang et al., 2024; Wang et al., 2024b). This choice balances the trade-off between extra compute required and additional throughput gained.
|
| 409 |
+
|
| 410 |
+
For completeness, we conducted additional experiments with $k = 1,2,3$ and present the results in Fig. 7. The observed trends are consistent across different values of $k$ : VSR generally increases with extra tokens, demonstrating the effectiveness of having extra draft tokens in our TETRIS.
|
| 411 |
+
|
| 412 |
+
# C.3 Plots for End-to-end Latency
|
| 413 |
+
|
| 414 |
+
We provide an extended discussion on the improvement of end-of-end latency from Sec. 5.3. In Fig. 8, we show the plots for the end-to-end latency over all speculative decoding configurations and settings used in the paper. Tetris consistently outperforms the existing baselines and achieves up to $6.13\%$ improvement over the best baseline and up to $9.32\%$ maximum gap over standard SD. Therefore, Tetris has demonstrated to effectively reduce end-to-end request latency, which is also essential for enhancing the user experience with LLM inference service providers.
|
| 415 |
+
|
| 416 |
+

|
| 417 |
+
|
| 418 |
+

|
| 419 |
+
|
| 420 |
+

|
| 421 |
+
|
| 422 |
+

|
| 423 |
+
|
| 424 |
+

|
| 425 |
+
|
| 426 |
+

|
| 427 |
+
|
| 428 |
+

|
| 429 |
+
(g) $\hat{\mathcal{G}}^{(TER)}\uparrow 11.67\%$
|
| 430 |
+
|
| 431 |
+

|
| 432 |
+
(h) $\hat{\mathcal{G}}^{(TER)}\uparrow 10.53\%$
|
| 433 |
+
|
| 434 |
+

|
| 435 |
+
(i) $\hat{\mathcal{G}}^{(TER)}\uparrow 12.04\%$
|
| 436 |
+
Figure 9: Mean projected throughput $\hat{\mathcal{G}}^{(TER)}$ comparison for various methods across experimental settings. $\uparrow$ indicates the improvement from the best baseline method. The reported numbers reflect the mean over 3 independent trials.
|
| 437 |
+
|
| 438 |
+
# C.4 Plots for Projected Improvement based on TER
|
| 439 |
+
|
| 440 |
+
Complementary to Tab. 3, which contains the numerical results for the projected improvement of TETRIS in terms of the projected throughput $\hat{\mathcal{G}}^{(TER)}$ , we also show the plots in Fig. 9 to visually illustrate the effectiveness of our method. The dotted lines for TETRIS (drawn in blue, orange, and green) represent the projected throughput calculated based on the throughput of the standard SD and also the TETRIS's improvement in terms of target efficiency rate (TER, as defined in Eq. (2)). We note that these improvement numbers are theoretically computed and are not yet realizable in empirical settings due to the lack of parallelized pipeline implementations of speculative decoding in vLLM.
|
| 441 |
+
|
| 442 |
+
# C.5 Extension to Medusa
|
| 443 |
+
|
| 444 |
+
We evaluate the top-1 proposal version (i.e., only draft the most likely token for each position) of Medusa and its integration with TETRIS. As the Medusa model outputs multiple subsequent tokens in a single forward pass, $^{3}$ we leverage this feature to produce extra draft tokens for TETRIS. We show the results in Tab. 5. We achieved a throughput improvement of $3.19\%$ as compared to the baseline Medusa. The development of such multi-token prediction models, including models like EAGLE (Li et al., 2024b) and DeepSeek-V3 (DeepSeek-AI et al., 2024) presents further potential for TETRIS to achieve greater speedups. Other improvements in engineering, including using tree-decoding and using a larger target model also potentially further boost the speedup.
|
| 445 |
+
|
| 446 |
+
Table 5: Mean total throughput (± standard deviation) for the ablation study of TETRIS extension to Medusa over three independent trials. The integration of TETRIS with Medusa further improves the total throughput.
|
| 447 |
+
|
| 448 |
+
<table><tr><td>No. Speculative Tokens</td><td>TETRIS (extra=1)</td><td>TETRIS (extra=2)</td><td>TETRIS (extra=3)</td><td>Baseline Medusa</td></tr><tr><td>1</td><td>591.26±0.46</td><td>590.83±8.30</td><td>586.47±3.66</td><td>572.97±1.79</td></tr><tr><td>2</td><td>571.05±0.80</td><td>568.82±6.52</td><td>571.95±1.06</td><td>563.94±2.95</td></tr><tr><td>Best</td><td>591.26</td><td>590.83</td><td>586.47</td><td>572.97</td></tr></table>
|
| 449 |
+
|
| 450 |
+

|
| 451 |
+
|
| 452 |
+

|
| 453 |
+
|
| 454 |
+

|
| 455 |
+
|
| 456 |
+

|
| 457 |
+
|
| 458 |
+

|
| 459 |
+
|
| 460 |
+

|
| 461 |
+
|
| 462 |
+

|
| 463 |
+
Figure 10: The verification success rate comparison for various methods across experimental settings. $\Delta$ indicates the maximum gap between TETRIS and standard SD. The reported numbers reflect the mean over 3 independent trials.
|
| 464 |
+
|
| 465 |
+

|
| 466 |
+
|
| 467 |
+

|
| 468 |
+
|
| 469 |
+
# C.6 Improvement in Verification Success Rate
|
| 470 |
+
|
| 471 |
+
As an ablation study, we also illustrate the improvement of TETRIS in terms of VSR (as defined in Eq. (1)), which is an important measure of the effectiveness of speculative decoding. We show in Fig. 10 that the maximum gap between TETRIS and standard SD in terms of VSR is consistently above $20\%$ and reaching over $30\%$ in some instances. This validates the significant effect of TETRIS in selecting draft tokens that are most likely to be accepted by the target model without exceeding the system capacity of the server. However, it is worth noting that this improvement in VSR does not translate entirely to an increment in total throughput or a reduction in end-to-end latency. This is because the throughput in practice also depends on the running time of the draft model (especially when the speculative decoding pipeline is sequential, as discussed in Sec. 5.4), and VSR does not account for the generation of the bonus token (which takes up a portion of the generated tokens).
|
| 472 |
+
|
| 473 |
+
# C.7 The Effect of Batch Size on TETRIS Performance
|
| 474 |
+
|
| 475 |
+
Theoretically speaking, a larger batch size creates more possible combinations for draft token selection by Tetris. Therefore, Tetris is likely to perform better in a speculative decoding server that processes a
|
| 476 |
+
|
| 477 |
+

|
| 478 |
+
|
| 479 |
+

|
| 480 |
+
|
| 481 |
+

|
| 482 |
+
Figure 11: The change in the verification success rate (VSR) and target efficiency rate (TER) when we vary the batch size (BS) from 64 to 32 and 16. The reported numbers reflect the mean over 3 independent trials.
|
| 483 |
+
|
| 484 |
+

|
| 485 |
+
|
| 486 |
+
larger batch of requests concurrently. In Fig. 11, we show a visual illustration of the verification success rate (VSR) and target efficiency rate (TER) (as defined in Eq. (1) and Eq. (2), respectively).
|
| 487 |
+
|
| 488 |
+
In setting 2 (draft model: Llama-1B-Instruct-FP8, target model: Llama-70B-Instruct), we observe a significant increase in VSR and TER when the batch size is increased to 64. However, batch sizes of 16 and 32 have similar VSR and TER values.
|
| 489 |
+
|
| 490 |
+
In setting 3 (draft model: Llama-1B-Instruct-FP8, target model: Llama-405B-Instruct-FP8), we do not observe a significant change in VSR and TER, suggesting that the way that the batch size affects performance is highly dependent on the specific draft-target combination, too.
|
| 491 |
+
|
| 492 |
+
Overall, we expect a more significant improvement in the performance of adopting TETRIS by LLM inference service providers with larger capacities to handle a larger number of concurrent requests.
|
| 493 |
+
|
| 494 |
+
# D Broader Impacts
|
| 495 |
+
|
| 496 |
+
While this research work is primarily foundational, focusing on computational performance, the resulting increase in inference speed and efficiency of Large Language Models (LLMs) could indirectly contribute to certain societal risks associated with LLMs. Making LLM inference faster and cheaper lowers the barrier to deploying these models at scale. Consequently, this could potentially accelerate the proliferation of LLM-generated content, increasing the risks of misuse such as the large-scale generation of disinformation, spam, or fake online personas, if the underlying models are deployed without adequate safeguards.
|
| 497 |
+
|
| 498 |
+
Mitigation strategies depend on responsible deployment. Developers using TETRIS should employ robust safety measures, bias detection, and content filtering for the LLMs being served. Importantly, the efficiency gains from TETRIS could be leveraged positively to make computational overhead for safety checks, alignment techniques, or bias mitigation measures more feasible during inference.
|
2025/TETRIS_ Optimal Draft Token Selection for Batch Speculative Decoding/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f11ec892a1a76ee7dfaee74acd8408be6e54431d284625571490f0cb166d23cb
|
| 3 |
+
size 1077789
|
2025/TETRIS_ Optimal Draft Token Selection for Batch Speculative Decoding/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/THOR-MoE_ Hierarchical Task-Guided and Context-Responsive Routing for Neural Machine Translation/f6520cf3-9239-4e76-8a25-131bf94b31d7_content_list.json
ADDED
|
@@ -0,0 +1,2083 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "THOR-MoE: Hierarchical Task-Guided and Context-Responsive Routing for Neural Machine Translation",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
117,
|
| 8 |
+
89,
|
| 9 |
+
878,
|
| 10 |
+
129
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Yunlong Liang, Fandong Meng*, Jie Zhou",
|
| 17 |
+
"bbox": [
|
| 18 |
+
310,
|
| 19 |
+
158,
|
| 20 |
+
685,
|
| 21 |
+
174
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Pattern Recognition Center, WeChat AI, Tencent Inc",
|
| 28 |
+
"bbox": [
|
| 29 |
+
282,
|
| 30 |
+
175,
|
| 31 |
+
712,
|
| 32 |
+
190
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "{yunlonliang, fandongmeng, withtomzhou}@tencent.com",
|
| 39 |
+
"bbox": [
|
| 40 |
+
250,
|
| 41 |
+
192,
|
| 42 |
+
747,
|
| 43 |
+
208
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Abstract",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
260,
|
| 53 |
+
260,
|
| 54 |
+
342,
|
| 55 |
+
275
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "The sparse Mixture-of-Experts (MoE) has achieved significant progress for neural machine translation (NMT). However, there exist two limitations in current MoE solutions which may lead to sub-optimal performance: 1) they directly use the task knowledge of NMT into MoE (e.g., domain/linguistics-specific knowledge), which are generally unavailable at practical application and neglect the naturally grouped domain/linguistic properties; 2) the expert selection only depends on the localized token representation without considering the context, which fully grasps the state of each token in a global view. To address the above limitations, we propose THOR-MoE via arming the MoE with hierarchical task-guided and context-responsive routing policies. Specifically, it 1) firstly predicts the domain/language label and then extracts mixed domain/language representation to allocate task-level experts in a hierarchical manner; 2) injects the context information to enhance the token routing from the pre-selected task-level experts set, which can help each token to be accurately routed to more specialized and suitable experts. Extensive experiments on multi-domain translation and multilingual translation benchmarks with different architectures consistently demonstrate the superior performance of THOR-MoE. Additionally, the THOR-MoE operates as a plug-and-play module compatible with existing Top- $k$ (Shazeer et al., 2017a) and Top $p$ (Huang et al., 2024) routing schemes, ensuring broad applicability across diverse MoE architectures. For instance, compared with vanilla Top- $p$ (Huang et al., 2024) routing, the context-aware manner can achieve an average improvement of 0.75 BLEU with less than $22\\%$ activated parameters on multi-domain translation tasks.",
|
| 62 |
+
"bbox": [
|
| 63 |
+
142,
|
| 64 |
+
311,
|
| 65 |
+
460,
|
| 66 |
+
881
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 Introduction",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
510,
|
| 76 |
+
260,
|
| 77 |
+
653,
|
| 78 |
+
275
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "The rapid advancement of neural machine translation (NMT; Zhang et al. (2020); Fan et al. (2020)) has been significantly propelled by sparse Mixture-of-Experts (MoE) architectures (Shazeer et al., 2017a; Lepikhin et al., 2021a; Fedus et al., 2022), which increase model capacity while maintaining computational efficiency through conditional computation. In the literature, existing work can be roughly classified into two categories: (1) some studies mainly focus on how to effectively incorporate task information (e.g., domain/linguistics-specific knowledge) into MoE models designing task-specific modules (Pham et al., 2023; Jiang et al., 2024); (2) another line of work concentrates on how to improve the training and inference efficiency via reducing the activated experts in MoE (Jawahar et al., 2023a; Elbayad et al., 2023; Wang et al., 2024; Zeng et al., 2024).",
|
| 85 |
+
"bbox": [
|
| 86 |
+
507,
|
| 87 |
+
291,
|
| 88 |
+
885,
|
| 89 |
+
580
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Specifically, in (1), Kudugunta et al. (2021) routes input examples to different experts based on translation language representations. Li et al. (2023c) explores multiple language-group-specific routers to incorporate language group knowledge into models. Zhao et al. (2024b) takes one step further by designing hierarchical language-guided token routing. Although intuitive and effective, they heavily rely on explicit task-specific knowledge (e.g., domain or language labels), which is often unavailable in real-world scenarios. This reliance not only restricts generalization but also overlooks the intrinsic hierarchical grouping of domain and linguistic properties inherent in multilingual or multi-domain translation tasks. In (2), Zhao et al. (2024a) distills the knowledge of unselected experts to the selected one and thus reduces the number of experts without impacting performance; Li et al. (2023a) and Huang et al. (2024) decrease the number of experts by designing a threshold based on expert probability distribution; Zhao et al.",
|
| 96 |
+
"bbox": [
|
| 97 |
+
507,
|
| 98 |
+
583,
|
| 99 |
+
885,
|
| 100 |
+
921
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "page_footnote",
|
| 106 |
+
"text": "* Corresponding author.",
|
| 107 |
+
"bbox": [
|
| 108 |
+
136,
|
| 109 |
+
906,
|
| 110 |
+
289,
|
| 111 |
+
920
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "page_number",
|
| 117 |
+
"text": "21433",
|
| 118 |
+
"bbox": [
|
| 119 |
+
473,
|
| 120 |
+
927,
|
| 121 |
+
524,
|
| 122 |
+
940
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "footer",
|
| 128 |
+
"text": "Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 21433-21445 July 27 - August 1, 2025 ©2025 Association for Computational Linguistics",
|
| 129 |
+
"bbox": [
|
| 130 |
+
82,
|
| 131 |
+
945,
|
| 132 |
+
914,
|
| 133 |
+
972
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "(2024b) adapts the number of experts by the difficulty of language. Generally, the global context grasp the overall situation and might know whether each token is difficult or not (Gloeckle et al., 2024). However, previous routing strategies select experts solely based on localized token-level representations, neglecting the broader contextual dependencies that govern token interactions. This myopic view limits the model's ability to allocate experts optimally in a globally coherent manner.",
|
| 140 |
+
"bbox": [
|
| 141 |
+
110,
|
| 142 |
+
84,
|
| 143 |
+
489,
|
| 144 |
+
244
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "In this work, to address the above issues, we propose an innovative hierarchical context-responsive routing (THOR-MoE) framework for neural machine translation. Specifically, the THOR-MoE first predicts which domain/language the input belongs to and then extracts the mixed task representation to allocate experts in a hierarchical manner. It is not only flexible in practice but also effectively infuses the domain knowledge into the task-level routing via encouraging experts to specialize in certain domains/languages. Furthermore, before each token routing, the THOR-MoE injects the context information to help accurately assign the experts from the pre-selected task-level experts set for each token in a global perspective. This enables the model to adaptively capture evolving contextual dependencies, such as long-range syntactic structures or discourse coherence. Crucially, the THOR-MoE operates as a plug-and-play module compatible with existing Top- $k$ (Shazeer et al., 2017a) and Top- $p$ (Huang et al., 2024) routing schemes, ensuring broad applicability across diverse MoE architectures.",
|
| 151 |
+
"bbox": [
|
| 152 |
+
115,
|
| 153 |
+
247,
|
| 154 |
+
489,
|
| 155 |
+
613
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 1
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "We validate our proposed THOR-MoE framework on the commonly-used multi-domain NMT benchmark (Aharoni and Goldberg, 2020) and multilingual NMT benchmark (Zhang et al., 2020), which contains 5 domains and 16 languages, respectively. Extensive experiments show that the hierarchical context-responsive routing is pivotal for unlocking the full potential of MoE systems.",
|
| 162 |
+
"bbox": [
|
| 163 |
+
112,
|
| 164 |
+
617,
|
| 165 |
+
489,
|
| 166 |
+
745
|
| 167 |
+
],
|
| 168 |
+
"page_idx": 1
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "text",
|
| 172 |
+
"text": "In summary, our main contributions are:",
|
| 173 |
+
"bbox": [
|
| 174 |
+
131,
|
| 175 |
+
747,
|
| 176 |
+
433,
|
| 177 |
+
762
|
| 178 |
+
],
|
| 179 |
+
"page_idx": 1
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"type": "list",
|
| 183 |
+
"sub_type": "text",
|
| 184 |
+
"list_items": [
|
| 185 |
+
"- We propose two components to expand MoE: (i) a hierarchical design to enable language- and domain-specific expert routing; (ii) enabling the use of context information during expert selection, which is important for translation.",
|
| 186 |
+
"- Extensive experiments on both multi-domain and multilingual translation consistently show the ef"
|
| 187 |
+
],
|
| 188 |
+
"bbox": [
|
| 189 |
+
112,
|
| 190 |
+
769,
|
| 191 |
+
489,
|
| 192 |
+
883
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "fectiveness and generalization of THOR-MoE. For example, our model achieves consistent improvements of an average improvement of 0.75 BLEU with less than $22\\%$ activated parameters over vanilla Top-p routing in multi-domain translation tasks.",
|
| 199 |
+
"bbox": [
|
| 200 |
+
521,
|
| 201 |
+
84,
|
| 202 |
+
884,
|
| 203 |
+
180
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "2 Background",
|
| 210 |
+
"text_level": 1,
|
| 211 |
+
"bbox": [
|
| 212 |
+
507,
|
| 213 |
+
195,
|
| 214 |
+
650,
|
| 215 |
+
212
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 1
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "2.1 Neural Machine Translation",
|
| 222 |
+
"text_level": 1,
|
| 223 |
+
"bbox": [
|
| 224 |
+
507,
|
| 225 |
+
223,
|
| 226 |
+
779,
|
| 227 |
+
237
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 1
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "Given an input sentence in the source language $X = \\{x_{i}\\}_{i=1}^{|X|}$ , the goal of the model is to produce its translation in the target language $Y = \\{y_{i}\\}_{i=1}^{|Y|}$ . The conditional distribution of the model is:",
|
| 234 |
+
"bbox": [
|
| 235 |
+
507,
|
| 236 |
+
244,
|
| 237 |
+
882,
|
| 238 |
+
313
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 1
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "equation",
|
| 244 |
+
"text": "\n$$\n\\mathcal {L} _ {\\mathrm {N M T}} = - \\sum_ {t = 1} ^ {| Y |} \\log \\left(p \\left(y _ {t} \\mid X, y _ {1: t - 1}\\right)\\right), \\tag {1}\n$$\n",
|
| 245 |
+
"text_format": "latex",
|
| 246 |
+
"bbox": [
|
| 247 |
+
557,
|
| 248 |
+
325,
|
| 249 |
+
882,
|
| 250 |
+
370
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 1
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "where $y_{1:t - 1}$ is the partial translation.",
|
| 257 |
+
"bbox": [
|
| 258 |
+
507,
|
| 259 |
+
384,
|
| 260 |
+
789,
|
| 261 |
+
400
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 1
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "text",
|
| 267 |
+
"text": "2.2 Sparse Mixture-of-Experts",
|
| 268 |
+
"text_level": 1,
|
| 269 |
+
"bbox": [
|
| 270 |
+
507,
|
| 271 |
+
414,
|
| 272 |
+
766,
|
| 273 |
+
429
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 1
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "The vanilla MoE model can be seen the variant of Transformer model via replacing the feedforward (FFN) sub-block of the transformer block with MoE layer, in which per token selects fixed number of experts (Lepikhin et al., 2021b). In each MoE layer, there are $N$ experts, denoted as $\\mathcal{E} = \\{e_1,e_2,\\dots ,e_N\\}$ . An input $\\mathbf{x}$ is dispatched to these experts, and the output of the MoE layer is computed as the weighted average of the outputs from the experts:",
|
| 280 |
+
"bbox": [
|
| 281 |
+
507,
|
| 282 |
+
435,
|
| 283 |
+
882,
|
| 284 |
+
596
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 1
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "equation",
|
| 290 |
+
"text": "\n$$\n\\operatorname {M o E} (\\mathbf {x}) = \\sum_ {i = 1} ^ {N} g _ {i} (\\mathbf {x}) * e _ {i} (\\mathbf {x}), \\tag {2}\n$$\n",
|
| 291 |
+
"text_format": "latex",
|
| 292 |
+
"bbox": [
|
| 293 |
+
581,
|
| 294 |
+
612,
|
| 295 |
+
882,
|
| 296 |
+
655
|
| 297 |
+
],
|
| 298 |
+
"page_idx": 1
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"type": "text",
|
| 302 |
+
"text": "where $g_{*}(\\mathbf{x})$ is computed by a router that predicts the contribution of each expert to the final output. Given the computing efficiency, the MoE assigns each token to limited experts (e.g., 1 or 2).",
|
| 303 |
+
"bbox": [
|
| 304 |
+
507,
|
| 305 |
+
664,
|
| 306 |
+
884,
|
| 307 |
+
728
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 1
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "text",
|
| 313 |
+
"text": "To derive $g_{*}(\\mathbf{x})$ , we generally compute the probability $\\mathbf{P}$ of each expert being selected for the input $\\mathbf{x}$ as follows:",
|
| 314 |
+
"bbox": [
|
| 315 |
+
507,
|
| 316 |
+
728,
|
| 317 |
+
882,
|
| 318 |
+
776
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 1
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "equation",
|
| 324 |
+
"text": "\n$$\n\\mathbf {P} = \\operatorname {S o f t m a x} \\left(\\mathbf {W} _ {\\mathbf {r}} \\cdot \\mathbf {x} ^ {T}\\right), \\tag {3}\n$$\n",
|
| 325 |
+
"text_format": "latex",
|
| 326 |
+
"bbox": [
|
| 327 |
+
600,
|
| 328 |
+
791,
|
| 329 |
+
882,
|
| 330 |
+
810
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 1
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "where $\\mathbf{W}_{\\mathbf{r}} \\in N \\times d$ serves as a learnable parameter and $d$ denotes the dimension of the input $\\mathbf{x}$ . The vector $\\mathbf{P}$ , with a size of $N$ , encapsulates the probabilities associated with the selection of each expert. And $P_{i}$ indicates the likelihood of choosing the $i^{th}$ expert $e_{i}$ to calculate the input $\\mathbf{x}$ .",
|
| 337 |
+
"bbox": [
|
| 338 |
+
507,
|
| 339 |
+
824,
|
| 340 |
+
882,
|
| 341 |
+
921
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 1
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "page_footnote",
|
| 347 |
+
"text": "<sup>1</sup>Note that the task generally denotes the domain/language-specific knowledge in this work.",
|
| 348 |
+
"bbox": [
|
| 349 |
+
112,
|
| 350 |
+
894,
|
| 351 |
+
489,
|
| 352 |
+
921
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 1
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "page_number",
|
| 358 |
+
"text": "21434",
|
| 359 |
+
"bbox": [
|
| 360 |
+
475,
|
| 361 |
+
927,
|
| 362 |
+
524,
|
| 363 |
+
940
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 1
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "image",
|
| 369 |
+
"img_path": "images/e9a5792ab50d7a0f8f2cc6098e6ceaa16d3138cde790dd1b2357ac7a8ed36b75.jpg",
|
| 370 |
+
"image_caption": [
|
| 371 |
+
"(1) Vanilla Token Routing;"
|
| 372 |
+
],
|
| 373 |
+
"image_footnote": [],
|
| 374 |
+
"bbox": [
|
| 375 |
+
124,
|
| 376 |
+
84,
|
| 377 |
+
440,
|
| 378 |
+
192
|
| 379 |
+
],
|
| 380 |
+
"page_idx": 2
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"type": "image",
|
| 384 |
+
"img_path": "images/df4bed66f43b928c36629b6683b81ab72a184188338292fdadc967a04d0eaa3d.jpg",
|
| 385 |
+
"image_caption": [
|
| 386 |
+
"(3) Context-Responsive Token Routing."
|
| 387 |
+
],
|
| 388 |
+
"image_footnote": [],
|
| 389 |
+
"bbox": [
|
| 390 |
+
452,
|
| 391 |
+
82,
|
| 392 |
+
868,
|
| 393 |
+
193
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 2
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "image",
|
| 399 |
+
"img_path": "images/8324a558aad599412debbe3de019202ac74c186c8132e29dec2106846a2765ee.jpg",
|
| 400 |
+
"image_caption": [
|
| 401 |
+
"(2) Hierarchical Task-Guided Routing;",
|
| 402 |
+
"Figure 1: The overview of the proposed THOR-MoE. 1) vanilla token routing; 2) hierarchical task-guided routing; 3) context-responsive token routing. The 'Emb.' and 'Rep.' denotes the embedding and representation, respectively. The hierarchical manner denotes that the task-guided routing firstly selects different task-specific experts sets for different queries (e.g., $\\mathcal{E}_t$ for query 1). Then the context-responsive token routing assigns experts from $S^t$ for each token in query 1."
|
| 403 |
+
],
|
| 404 |
+
"image_footnote": [],
|
| 405 |
+
"bbox": [
|
| 406 |
+
127,
|
| 407 |
+
210,
|
| 408 |
+
875,
|
| 409 |
+
349
|
| 410 |
+
],
|
| 411 |
+
"page_idx": 2
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"type": "text",
|
| 415 |
+
"text": "2.2.1 Top- $k$ Routing",
|
| 416 |
+
"text_level": 1,
|
| 417 |
+
"bbox": [
|
| 418 |
+
112,
|
| 419 |
+
470,
|
| 420 |
+
290,
|
| 421 |
+
487
|
| 422 |
+
],
|
| 423 |
+
"page_idx": 2
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "text",
|
| 427 |
+
"text": "Top- $k$ routing (Shazeer et al., 2017b; Lepikhin et al., 2021b; Zuo et al., 2022) entails the selection of the top $k$ experts, which correspond to the $k$ highest probabilities within the vector $\\mathbf{P}$ . Then, the probabilities of the chosen experts are re-scaled through normalization, while the probabilities of the non-selected experts are set to zero, signifying their deactivation. The resultant computation for $g_{*}(\\mathbf{x})$ proceeds as below:",
|
| 428 |
+
"bbox": [
|
| 429 |
+
112,
|
| 430 |
+
489,
|
| 431 |
+
487,
|
| 432 |
+
634
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 2
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "equation",
|
| 438 |
+
"text": "\n$$\ng _ {i} (\\mathbf {x}) = \\left\\{ \\begin{array}{l l} \\frac {P _ {i}}{\\sum_ {j \\in \\operatorname {T o p K} (\\mathbf {P})} P _ {j}}, & i \\in \\operatorname {T o p K} (\\mathbf {P}) \\\\ 0, & i \\notin \\operatorname {T o p K} (\\mathbf {P}) \\end{array} \\right. \\tag {4}\n$$\n",
|
| 439 |
+
"text_format": "latex",
|
| 440 |
+
"bbox": [
|
| 441 |
+
134,
|
| 442 |
+
645,
|
| 443 |
+
487,
|
| 444 |
+
689
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 2
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "where $\\operatorname{TopK}(\\mathbf{P})$ returns the indices of the k largest elements in $\\mathbf{P}$ .",
|
| 451 |
+
"bbox": [
|
| 452 |
+
112,
|
| 453 |
+
700,
|
| 454 |
+
485,
|
| 455 |
+
731
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 2
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "text",
|
| 461 |
+
"text": "2.2.2 Top- $p$ Routing",
|
| 462 |
+
"text_level": 1,
|
| 463 |
+
"bbox": [
|
| 464 |
+
112,
|
| 465 |
+
741,
|
| 466 |
+
290,
|
| 467 |
+
758
|
| 468 |
+
],
|
| 469 |
+
"page_idx": 2
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"type": "text",
|
| 473 |
+
"text": "Top- $p$ routing is initially proposed by (Li et al., 2023a; Huang et al., 2024), which aims to overcome the drawback of Top- $k$ activating the fixed number of experts overlooking the variability in difficulty across different inputs. We refer to readers to Huang et al. (2024) for more details.",
|
| 474 |
+
"bbox": [
|
| 475 |
+
112,
|
| 476 |
+
760,
|
| 477 |
+
487,
|
| 478 |
+
854
|
| 479 |
+
],
|
| 480 |
+
"page_idx": 2
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "text",
|
| 484 |
+
"text": "Formally, Top- $p$ first sorts the elements in $\\mathbf{P}$ from highest to lowest, returning in a sorted index list $I$ . Subsequently, we identify the minimal subset of experts for which the aggregate probability",
|
| 485 |
+
"bbox": [
|
| 486 |
+
112,
|
| 487 |
+
856,
|
| 488 |
+
487,
|
| 489 |
+
921
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 2
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"text": "surpasses the threshold $p$ . The count of selected experts, denoted as $t$ , is then determined by:",
|
| 496 |
+
"bbox": [
|
| 497 |
+
507,
|
| 498 |
+
470,
|
| 499 |
+
880,
|
| 500 |
+
502
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 2
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "equation",
|
| 506 |
+
"text": "\n$$\nt = \\underset {k \\in \\{1 \\dots , N \\}} {\\arg \\min } \\sum_ {j < = k} P _ {i, j} \\geq p, \\tag {5}\n$$\n",
|
| 507 |
+
"text_format": "latex",
|
| 508 |
+
"bbox": [
|
| 509 |
+
583,
|
| 510 |
+
512,
|
| 511 |
+
882,
|
| 512 |
+
546
|
| 513 |
+
],
|
| 514 |
+
"page_idx": 2
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"type": "text",
|
| 518 |
+
"text": "where $p$ is the threshold that controls how confident the model should be when stopping adding more experts. $p$ is a hyper-parameter whose range is from 0 to 1. The higher the $p$ is, the more experts will be activated.",
|
| 519 |
+
"bbox": [
|
| 520 |
+
507,
|
| 521 |
+
556,
|
| 522 |
+
880,
|
| 523 |
+
634
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 2
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "text",
|
| 529 |
+
"text": "In dynamic routing mechanism, the calculation of $g_{*}(\\mathbf{x})$ is:",
|
| 530 |
+
"bbox": [
|
| 531 |
+
507,
|
| 532 |
+
637,
|
| 533 |
+
880,
|
| 534 |
+
669
|
| 535 |
+
],
|
| 536 |
+
"page_idx": 2
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"type": "equation",
|
| 540 |
+
"text": "\n$$\ng _ {i} (\\mathbf {x}) = \\left\\{ \\begin{array}{l l} P _ {i} & e _ {i} \\in S \\\\ 0, & e _ {i} \\notin S \\end{array} \\right. \\tag {6}\n$$\n",
|
| 541 |
+
"text_format": "latex",
|
| 542 |
+
"bbox": [
|
| 543 |
+
606,
|
| 544 |
+
678,
|
| 545 |
+
882,
|
| 546 |
+
721
|
| 547 |
+
],
|
| 548 |
+
"page_idx": 2
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"type": "text",
|
| 552 |
+
"text": "where $S$ is the set of selected experts controlled by $t$ in Equation 5:",
|
| 553 |
+
"bbox": [
|
| 554 |
+
507,
|
| 555 |
+
728,
|
| 556 |
+
880,
|
| 557 |
+
760
|
| 558 |
+
],
|
| 559 |
+
"page_idx": 2
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "equation",
|
| 563 |
+
"text": "\n$$\nS = \\left\\{e _ {I _ {1}}, e _ {I _ {2}} \\dots e _ {I _ {t}} \\right\\}. \\tag {7}\n$$\n",
|
| 564 |
+
"text_format": "latex",
|
| 565 |
+
"bbox": [
|
| 566 |
+
616,
|
| 567 |
+
771,
|
| 568 |
+
882,
|
| 569 |
+
789
|
| 570 |
+
],
|
| 571 |
+
"page_idx": 2
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"type": "text",
|
| 575 |
+
"text": "3 THOR-MoE",
|
| 576 |
+
"text_level": 1,
|
| 577 |
+
"bbox": [
|
| 578 |
+
507,
|
| 579 |
+
799,
|
| 580 |
+
653,
|
| 581 |
+
814
|
| 582 |
+
],
|
| 583 |
+
"page_idx": 2
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"type": "text",
|
| 587 |
+
"text": "In this section, we introduce the proposed hierarchical context-responsive routing framework as shown in Figure 1, including two components: hierarchical task-guided routing (§ 3.1) and context-responsive token routing (§ 3.2). Finally, we describe the training objectives (§ 3.3) in detail.",
|
| 588 |
+
"bbox": [
|
| 589 |
+
507,
|
| 590 |
+
824,
|
| 591 |
+
884,
|
| 592 |
+
921
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 2
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "page_number",
|
| 598 |
+
"text": "21435",
|
| 599 |
+
"bbox": [
|
| 600 |
+
475,
|
| 601 |
+
927,
|
| 602 |
+
524,
|
| 603 |
+
940
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 2
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "text",
|
| 609 |
+
"text": "3.1 Hierarchical Task-Guided Routing",
|
| 610 |
+
"text_level": 1,
|
| 611 |
+
"bbox": [
|
| 612 |
+
112,
|
| 613 |
+
84,
|
| 614 |
+
433,
|
| 615 |
+
101
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 3
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "text",
|
| 621 |
+
"text": "Our hierarchical task-guided routing consists of three stages, as shown in 2) of 1. The first stage is task prediction, which aims to automatically obtain the task knowledge by predicting which domain/language the input belongs to. The second stage is to inject the mixed task representation to allocates experts in a hierarchical task-guided manner (third stage).",
|
| 622 |
+
"bbox": [
|
| 623 |
+
112,
|
| 624 |
+
105,
|
| 625 |
+
489,
|
| 626 |
+
233
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 3
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "text",
|
| 632 |
+
"text": "Task Predictor. During real testing for a query, it is hard to reach its domain or language category. Therefore, to automatically obtain the domain knowledge or language knowledge, we add a special token [CLS] in front of the input. Then, it represents the global sentence information and thus can effectively reflect which domain/language the input belongs to (Devlin et al., 2019). Finally, we transform the representation $\\mathbf{H}^{cls}$ into a fixed-size vector through Maxpooling and apply a fully-connected layer to predict suitable labels:",
|
| 633 |
+
"bbox": [
|
| 634 |
+
112,
|
| 635 |
+
234,
|
| 636 |
+
489,
|
| 637 |
+
411
|
| 638 |
+
],
|
| 639 |
+
"page_idx": 3
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"type": "equation",
|
| 643 |
+
"text": "\n$$\n\\begin{array}{l} \\mathbf {H} ^ {m a x} = \\operatorname {M a x p o o l i n g} \\left(\\mathbf {H} ^ {c l s}\\right), \\mathbf {H} ^ {m a x} \\in \\mathbb {R} ^ {d}, \\\\ \\mathcal {P} ^ {t} = \\operatorname {S o f t m a x} (\\mathbf {W} ^ {p} \\mathbf {H} ^ {m a x}), \\\\ \\end{array}\n$$\n",
|
| 644 |
+
"text_format": "latex",
|
| 645 |
+
"bbox": [
|
| 646 |
+
127,
|
| 647 |
+
418,
|
| 648 |
+
487,
|
| 649 |
+
456
|
| 650 |
+
],
|
| 651 |
+
"page_idx": 3
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"type": "text",
|
| 655 |
+
"text": "where $\\mathbf{W}^p\\in \\mathbb{R}^{K\\times d}$ is trainable weight and $K$ denotes the number of domains or languages and $d$ is the model dimension.",
|
| 656 |
+
"bbox": [
|
| 657 |
+
112,
|
| 658 |
+
466,
|
| 659 |
+
487,
|
| 660 |
+
513
|
| 661 |
+
],
|
| 662 |
+
"page_idx": 3
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"type": "text",
|
| 666 |
+
"text": "Mixed Task Representation. Theoretically, we can directly take the predicted task label to extract corresponding task representation. However, in some cases in practice, it is hard to judge since some sentences belongs to multiple domains. In language cases, there are some code-mixed sentences, which is also confused to decide. Therefore, directly use the given label in existing work or the predicted label cannot accurately help model select the specialized experts for such cases and thus limits their potential, as shown in § 6.2. To address this issue, we use the mixed task representation as follows:",
|
| 667 |
+
"bbox": [
|
| 668 |
+
112,
|
| 669 |
+
514,
|
| 670 |
+
489,
|
| 671 |
+
722
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 3
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "equation",
|
| 677 |
+
"text": "\n$$\n\\mathbf {E} _ {p} = \\sum \\left(\\mathcal {P} ^ {t} \\cdot \\mathbf {E M B 1}\\right), \\mathbf {E} _ {p} \\in \\mathbb {R} ^ {d}, \\tag {9}\n$$\n",
|
| 678 |
+
"text_format": "latex",
|
| 679 |
+
"bbox": [
|
| 680 |
+
164,
|
| 681 |
+
731,
|
| 682 |
+
487,
|
| 683 |
+
753
|
| 684 |
+
],
|
| 685 |
+
"page_idx": 3
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"type": "text",
|
| 689 |
+
"text": "where $\\mathbf{E}_p$ denotes the mixed task representation generated by the weighted sum of the task distribution $\\mathcal{P}$ (predicted by the task predictor as Eq. 8) and the task parameter matrix EMB1. The dimension of EMB1 is num (number of tasks/language groups) * d (embedding dimension), which is randomly initialized and then optimized with the training objective.",
|
| 690 |
+
"bbox": [
|
| 691 |
+
112,
|
| 692 |
+
760,
|
| 693 |
+
489,
|
| 694 |
+
888
|
| 695 |
+
],
|
| 696 |
+
"page_idx": 3
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"type": "text",
|
| 700 |
+
"text": "Hierarchical Task-Guided Routing. With the mixed task representation, we design a task router",
|
| 701 |
+
"bbox": [
|
| 702 |
+
112,
|
| 703 |
+
889,
|
| 704 |
+
487,
|
| 705 |
+
921
|
| 706 |
+
],
|
| 707 |
+
"page_idx": 3
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"type": "text",
|
| 711 |
+
"text": "$g^{t}$ at the task level. In each MoE layer, $g^{t}$ takes the mixed task representation $\\mathbf{E}_p$ as input and outputs a task-dependent expert vector. Then, based on it, we use TopK function to select task-specific candidate experts as $S^t$ from all experts. Finally, based on the selected task-specific candidate experts $S_{t}$ , we can conduct general token routing at the token level with Top- $k$ or Top- $p$ routing as described in § 2.2.1 and § 2.2.2, respectively. The final routing policy can be written as $\\sum_{i}^{|\\mathcal{S}^{t}|}\\sum_{j}^{|\\mathcal{E}|}g_{i}^{t}\\cdot g_{j}\\cdot e_{i,j}(\\mathbf{x})$ .",
|
| 712 |
+
"bbox": [
|
| 713 |
+
507,
|
| 714 |
+
83,
|
| 715 |
+
884,
|
| 716 |
+
249
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 3
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "text",
|
| 722 |
+
"text": "However, current expert selection at the token level only depends on the current token representation without considering the complete word meaning and global context. Generally, the global context grasp the overall situation and might know which token is difficult or not. Thus, the context can schedules the token to route to suitable experts in a global view. To this end, we propose context-responsive experts selection at the token level.",
|
| 723 |
+
"bbox": [
|
| 724 |
+
507,
|
| 725 |
+
249,
|
| 726 |
+
885,
|
| 727 |
+
392
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 3
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "text",
|
| 733 |
+
"text": "3.2 Context-Responsive Routing",
|
| 734 |
+
"text_level": 1,
|
| 735 |
+
"bbox": [
|
| 736 |
+
507,
|
| 737 |
+
404,
|
| 738 |
+
781,
|
| 739 |
+
420
|
| 740 |
+
],
|
| 741 |
+
"page_idx": 3
|
| 742 |
+
},
|
| 743 |
+
{
|
| 744 |
+
"type": "text",
|
| 745 |
+
"text": "As shown in 3) of 1, before the experts selection at the token level, we explicitly inject the context into the token representation. Since it is hard to determine for a code-mixed input or a query that can belong to several domains, which thus limits its application in practice. Therefore, we use the averaged context representation as the context representation. $\\mathbf{H}_{ctx} = \\frac{1}{|Y_{1:t - 1}|}\\sum_{t = 1}^{|Y_{1:t - 1}|}\\mathbf{h}_t^L$ where $\\mathbf{h}$ is the hidden state of the $t$ -th token at the $L$ layer. At each decoding step, the context used for each input token is the prefix of the generated next token. That is, the context is dynamically updated with decoding.",
|
| 746 |
+
"bbox": [
|
| 747 |
+
507,
|
| 748 |
+
425,
|
| 749 |
+
884,
|
| 750 |
+
634
|
| 751 |
+
],
|
| 752 |
+
"page_idx": 3
|
| 753 |
+
},
|
| 754 |
+
{
|
| 755 |
+
"type": "text",
|
| 756 |
+
"text": "To effectively incorporate the context representation into the routing process, we design a gate to dynamically control the contribution of these information:",
|
| 757 |
+
"bbox": [
|
| 758 |
+
507,
|
| 759 |
+
637,
|
| 760 |
+
882,
|
| 761 |
+
699
|
| 762 |
+
],
|
| 763 |
+
"page_idx": 3
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"type": "equation",
|
| 767 |
+
"text": "\n$$\n\\begin{array}{l} \\mathbf {x} _ {i} = g \\odot \\mathbf {x} _ {i} + (1 - g) \\odot \\mathbf {H} _ {c t x}, \\\\ g = \\sigma ([ \\mathbf {x} _ {i}; \\mathbf {H} _ {c t x} ] \\mathbf {W} ^ {g} + \\mathbf {b} ^ {g}), \\\\ \\end{array}\n$$\n",
|
| 768 |
+
"text_format": "latex",
|
| 769 |
+
"bbox": [
|
| 770 |
+
574,
|
| 771 |
+
711,
|
| 772 |
+
811,
|
| 773 |
+
747
|
| 774 |
+
],
|
| 775 |
+
"page_idx": 3
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"type": "text",
|
| 779 |
+
"text": "where $\\mathbf{W}^g$ and $\\mathbf{b}^g$ are the trainable parameters.",
|
| 780 |
+
"bbox": [
|
| 781 |
+
507,
|
| 782 |
+
760,
|
| 783 |
+
860,
|
| 784 |
+
775
|
| 785 |
+
],
|
| 786 |
+
"page_idx": 3
|
| 787 |
+
},
|
| 788 |
+
{
|
| 789 |
+
"type": "text",
|
| 790 |
+
"text": "In this manner, we can inject the context information into each token to accurately assign specialized experts to suitable tokens and unlock the potential of the MoE.",
|
| 791 |
+
"bbox": [
|
| 792 |
+
507,
|
| 793 |
+
776,
|
| 794 |
+
882,
|
| 795 |
+
839
|
| 796 |
+
],
|
| 797 |
+
"page_idx": 3
|
| 798 |
+
},
|
| 799 |
+
{
|
| 800 |
+
"type": "text",
|
| 801 |
+
"text": "3.3 Training Objectives",
|
| 802 |
+
"text_level": 1,
|
| 803 |
+
"bbox": [
|
| 804 |
+
507,
|
| 805 |
+
851,
|
| 806 |
+
710,
|
| 807 |
+
866
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 3
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "text",
|
| 813 |
+
"text": "Our training objectives consist of four parts in Top $k$ routing (translation loss $\\mathcal{L}_{\\mathrm{NMT}}$ , task prediction loss $\\mathcal{L}_{\\mathrm{tp}}$ , load balance loss at the task level $\\mathcal{L}_{bd}$",
|
| 814 |
+
"bbox": [
|
| 815 |
+
507,
|
| 816 |
+
873,
|
| 817 |
+
882,
|
| 818 |
+
922
|
| 819 |
+
],
|
| 820 |
+
"page_idx": 3
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"type": "page_number",
|
| 824 |
+
"text": "21436",
|
| 825 |
+
"bbox": [
|
| 826 |
+
475,
|
| 827 |
+
927,
|
| 828 |
+
524,
|
| 829 |
+
940
|
| 830 |
+
],
|
| 831 |
+
"page_idx": 3
|
| 832 |
+
},
|
| 833 |
+
{
|
| 834 |
+
"type": "text",
|
| 835 |
+
"text": "and token level $\\mathcal{L}_{bt}$ and five parts in Top- $p$ routing $(\\mathcal{L}_{\\mathrm{NMT}},\\mathcal{L}_{\\mathrm{tp}},\\mathcal{L}_{bd},\\mathcal{L}_{bt}$ and dynamic routing loss $\\mathcal{L}_d$ in Top- $p$",
|
| 836 |
+
"bbox": [
|
| 837 |
+
112,
|
| 838 |
+
84,
|
| 839 |
+
487,
|
| 840 |
+
134
|
| 841 |
+
],
|
| 842 |
+
"page_idx": 4
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"type": "text",
|
| 846 |
+
"text": "Task Prediction Loss. The task prediction loss is defined as:",
|
| 847 |
+
"bbox": [
|
| 848 |
+
112,
|
| 849 |
+
143,
|
| 850 |
+
485,
|
| 851 |
+
174
|
| 852 |
+
],
|
| 853 |
+
"page_idx": 4
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "equation",
|
| 857 |
+
"text": "\n$$\n\\mathcal {L} _ {t p} = \\min \\left(- \\log \\left(\\mathcal {P} ^ {t} \\left[ t _ {g} \\right]\\right)\\right), \\tag {10}\n$$\n",
|
| 858 |
+
"text_format": "latex",
|
| 859 |
+
"bbox": [
|
| 860 |
+
196,
|
| 861 |
+
190,
|
| 862 |
+
487,
|
| 863 |
+
209
|
| 864 |
+
],
|
| 865 |
+
"page_idx": 4
|
| 866 |
+
},
|
| 867 |
+
{
|
| 868 |
+
"type": "text",
|
| 869 |
+
"text": "where $t_g$ is the golden class label, $\\mathcal{P}^t$ is calculated as in Eq. 8.",
|
| 870 |
+
"bbox": [
|
| 871 |
+
112,
|
| 872 |
+
222,
|
| 873 |
+
485,
|
| 874 |
+
255
|
| 875 |
+
],
|
| 876 |
+
"page_idx": 4
|
| 877 |
+
},
|
| 878 |
+
{
|
| 879 |
+
"type": "text",
|
| 880 |
+
"text": "Load Balance Loss at the Task Level. To fully encourage the experts to specialize in certain tasks, we propose a task-guided routing loss. It aims to achieve the number of tasks processed by different experts to be roughly the same. Therefore, the task-guided routing loss is defined as:",
|
| 881 |
+
"bbox": [
|
| 882 |
+
112,
|
| 883 |
+
266,
|
| 884 |
+
487,
|
| 885 |
+
363
|
| 886 |
+
],
|
| 887 |
+
"page_idx": 4
|
| 888 |
+
},
|
| 889 |
+
{
|
| 890 |
+
"type": "equation",
|
| 891 |
+
"text": "\n$$\n\\mathcal {L} _ {b d} = N * \\sum_ {i = 1} ^ {N} F _ {i} ^ {t} * Q _ {i} ^ {t}, \\tag {11}\n$$\n",
|
| 892 |
+
"text_format": "latex",
|
| 893 |
+
"bbox": [
|
| 894 |
+
208,
|
| 895 |
+
376,
|
| 896 |
+
487,
|
| 897 |
+
419
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 4
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "text",
|
| 903 |
+
"text": "where $F_{i}^{t}$ represents the proportion of tasks selecting expert $e_{i}$ , and $Q_{i}^{t}$ denotes the proportion of the router's probability allocated to expert $e_{i}$ . For $K$ tasks, $F_{i}^{t}$ and $Q_{i}^{t}$ are defined as: $F_{i}^{t} = \\frac{1}{K}\\sum_{j=1}^{K} 1\\{e_{i} \\in S^{t,j}\\}$ and $Q_{i}^{t} = \\frac{1}{K}\\sum_{j=1}^{K} P_{i}^{j}$ where $S^{t,j}$ is the set of activated experts for task $j$ , which is calculated by Equation 7, and $P^{j}$ is the probability of selecting each expert for task $j$ , calculated by Equation 3.",
|
| 904 |
+
"bbox": [
|
| 905 |
+
112,
|
| 906 |
+
429,
|
| 907 |
+
489,
|
| 908 |
+
577
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 4
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "Load Balance Loss at the Token Level. This loss is the similar to the vanilla load balance loss with a slight difference that the experts candidates is pre-selected by the hierarchical task-guided routing. Formally, the load balance loss at the token level is defined as:",
|
| 915 |
+
"bbox": [
|
| 916 |
+
112,
|
| 917 |
+
588,
|
| 918 |
+
489,
|
| 919 |
+
683
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 4
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "equation",
|
| 925 |
+
"text": "\n$$\n\\mathcal {L} _ {b t} = \\left| \\mathcal {S} ^ {t} \\right| * \\sum_ {k = 1} ^ {\\left| \\mathcal {S} ^ {t} \\right|} F _ {k} ^ {b} * Q _ {k} ^ {b}, \\tag {12}\n$$\n",
|
| 926 |
+
"text_format": "latex",
|
| 927 |
+
"bbox": [
|
| 928 |
+
201,
|
| 929 |
+
696,
|
| 930 |
+
487,
|
| 931 |
+
741
|
| 932 |
+
],
|
| 933 |
+
"page_idx": 4
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "text",
|
| 937 |
+
"text": "where $F_{k}^{b}$ represents the proportion of tokens selecting expert $e_k$ , and $Q_{k}^{b}$ denotes the proportion of the router's probability allocated to expert $e_k$ . For a sequence comprising $M$ tokens, $F_{k}^{b}$ and $Q_{k}^{b}$ are defined as: $F_{k}^{b} = \\frac{1}{M}\\sum_{\\ell = 1}^{M}1\\{e_{k}\\in S^{t,\\ell}\\}$ and $Q_{k} = \\frac{1}{M}\\sum_{\\ell = 1}^{M}P_{k}^{\\ell}$ where $S^{t,\\ell}$ is the set of activated experts for token $\\ell$ from pre-selected experts set $S^{d,\\ell}$ , which is calculated by Equation 7, and $P^{\\ell}$ is the probability of selecting each experts for token $\\ell$ , calculated by Equation 3.",
|
| 938 |
+
"bbox": [
|
| 939 |
+
112,
|
| 940 |
+
756,
|
| 941 |
+
490,
|
| 942 |
+
921
|
| 943 |
+
],
|
| 944 |
+
"page_idx": 4
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "text",
|
| 948 |
+
"text": "Dynamic Routing Loss in Top- $p$ . The dynamic routing loss aims to prevent dynamic routing from using too many parameters to cheat and losing its ability to selectively choose experts. Therefore, Huang et al. (2024) introduce a constraint on $\\mathbf{P}$ and minimize the entropy of the distribution $\\mathbf{P}$ , ensuring that every token can focus on as less specific experts as possible, which is formalized as:",
|
| 949 |
+
"bbox": [
|
| 950 |
+
507,
|
| 951 |
+
84,
|
| 952 |
+
882,
|
| 953 |
+
225
|
| 954 |
+
],
|
| 955 |
+
"page_idx": 4
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"type": "equation",
|
| 959 |
+
"text": "\n$$\n\\mathcal {L} _ {\\text {t o p p}} = - \\sum_ {i = 1} ^ {N} P _ {i} * \\log \\left(P _ {i}\\right). \\tag {13}\n$$\n",
|
| 960 |
+
"text_format": "latex",
|
| 961 |
+
"bbox": [
|
| 962 |
+
589,
|
| 963 |
+
225,
|
| 964 |
+
882,
|
| 965 |
+
267
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 4
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "Final Loss. Our approach can be flexibly applied in Top- $k$ and Top- $p$ routing strategies. Therefore, we have two final loss functions for Top- $k$ and Top- $p$ , respectively. It is a combination of the translation loss, task prediction loss, load balance loss at the task level and at the token level, and dynamic loss:",
|
| 972 |
+
"bbox": [
|
| 973 |
+
507,
|
| 974 |
+
275,
|
| 975 |
+
882,
|
| 976 |
+
370
|
| 977 |
+
],
|
| 978 |
+
"page_idx": 4
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"type": "equation",
|
| 982 |
+
"text": "\n$$\n\\mathcal {J} _ {t o p k} = \\mathcal {L} _ {\\mathrm {N M T}} + \\alpha \\mathcal {L} _ {d p} + \\beta \\mathcal {L} _ {b d} + \\gamma \\mathcal {L} _ {b p}, \\tag {14}\n$$\n",
|
| 983 |
+
"text_format": "latex",
|
| 984 |
+
"bbox": [
|
| 985 |
+
529,
|
| 986 |
+
385,
|
| 987 |
+
882,
|
| 988 |
+
404
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 4
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "equation",
|
| 994 |
+
"text": "\n$$\n\\mathcal {J} _ {\\text {t o p p}} = \\mathcal {J} _ {\\text {t o p k}} + \\delta \\mathcal {L} _ {\\text {t o p p}}, \\tag {15}\n$$\n",
|
| 995 |
+
"text_format": "latex",
|
| 996 |
+
"bbox": [
|
| 997 |
+
601,
|
| 998 |
+
414,
|
| 999 |
+
882,
|
| 1000 |
+
432
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 4
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "where $\\alpha, \\beta, \\gamma,$ and $\\delta$ are hyper-parameters to adjust the contribution among these loss functions, respectively.",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
507,
|
| 1009 |
+
439,
|
| 1010 |
+
882,
|
| 1011 |
+
488
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 4
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "4 Experiments",
|
| 1018 |
+
"text_level": 1,
|
| 1019 |
+
"bbox": [
|
| 1020 |
+
507,
|
| 1021 |
+
500,
|
| 1022 |
+
655,
|
| 1023 |
+
517
|
| 1024 |
+
],
|
| 1025 |
+
"page_idx": 4
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"type": "text",
|
| 1029 |
+
"text": "4.1 Datasets and Metric",
|
| 1030 |
+
"text_level": 1,
|
| 1031 |
+
"bbox": [
|
| 1032 |
+
507,
|
| 1033 |
+
526,
|
| 1034 |
+
714,
|
| 1035 |
+
541
|
| 1036 |
+
],
|
| 1037 |
+
"page_idx": 4
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"type": "text",
|
| 1041 |
+
"text": "Datasets. We use the multi-domain translation dataset proposed by Koehn and Knowles (2017). The dataset mainly covers five diverse domains: IT, Koran, Law, Medical, and Subtitles, which are available in OPUS (Aulamo and Tiedemann, 2019). Following previous work (Gu et al., 2022; Liang et al., 2024), we use the new data splitting released by Aharoni and Goldberg (2020), and perform German to English translation $(\\mathrm{De}\\rightarrow \\mathrm{En})$ . We use the OPUS-16 for multilingual translation following (Zhao et al., 2024b). The OPUS-16 comes from OPUS-100 (Zhang et al., 2020), which includes 16 languages (8 high resource $(>0.9\\mathrm{M})$ , 4 medium resource, and 4 low resource $(< 0.1\\mathrm{M})$ ). Please refer to Tab. 8 of § 8 for detailed data statistics.",
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
507,
|
| 1044 |
+
546,
|
| 1045 |
+
882,
|
| 1046 |
+
802
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 4
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "text",
|
| 1052 |
+
"text": "Metric. For a fair comparison, we follow previous work (Gu et al., 2022; Zhao et al., 2024b) and adopt the 4-gram case-sensitive BLEU with the SacreBLEU tool $^{2}$ (Post, 2018) and report the statistical significance test (Koehn, 2004). For",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
507,
|
| 1055 |
+
804,
|
| 1056 |
+
882,
|
| 1057 |
+
885
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 4
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "page_footnote",
|
| 1063 |
+
"text": "$^{2}$ BLEU+case.mixed+numrefs.1+smooth.exp+tok.13a+version.1.4.13",
|
| 1064 |
+
"bbox": [
|
| 1065 |
+
507,
|
| 1066 |
+
894,
|
| 1067 |
+
865,
|
| 1068 |
+
919
|
| 1069 |
+
],
|
| 1070 |
+
"page_idx": 4
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"type": "page_number",
|
| 1074 |
+
"text": "21437",
|
| 1075 |
+
"bbox": [
|
| 1076 |
+
475,
|
| 1077 |
+
927,
|
| 1078 |
+
524,
|
| 1079 |
+
940
|
| 1080 |
+
],
|
| 1081 |
+
"page_idx": 4
|
| 1082 |
+
},
|
| 1083 |
+
{
|
| 1084 |
+
"type": "table",
|
| 1085 |
+
"img_path": "images/0b9c5d270ee10666d873e7fe9f32ad3ce3e62776e017676ade371576792cbd88.jpg",
|
| 1086 |
+
"table_caption": [],
|
| 1087 |
+
"table_footnote": [],
|
| 1088 |
+
"table_body": "<table><tr><td></td><td>Models</td><td>IT</td><td>Koran</td><td>Medical</td><td>Law</td><td>Subtitles</td><td>Avg.</td></tr><tr><td rowspan=\"3\">Dense</td><td>SFT-3B</td><td>40.65</td><td>20.4</td><td>51.4</td><td>54.8</td><td>28.33</td><td>39.12</td></tr><tr><td>Trim-MoE (Top-1)</td><td>40.03</td><td>19.55</td><td>51.80</td><td>55.83</td><td>25.50</td><td>38.54</td></tr><tr><td>Trim-MoE (Top-2)</td><td>45.10</td><td>22.68</td><td>51.84</td><td>57.12</td><td>29.02</td><td>41.15</td></tr><tr><td rowspan=\"4\">MoE</td><td>Trim-MoE (Top-p, p=0.5)</td><td>39.39</td><td>19.21</td><td>55.67</td><td>60.18</td><td>29.21</td><td>40.73</td></tr><tr><td>THOR-MoE (Top-1)</td><td>43.96‡</td><td>21.93‡</td><td>52.52†</td><td>56.25</td><td>28.41‡</td><td>40.61‡</td></tr><tr><td>THOR-MoE (Top-2)</td><td>46.00†</td><td>23.35</td><td>55.79‡</td><td>61.06‡</td><td>28.23</td><td>42.89‡</td></tr><tr><td>THOR-MoE (Top-p, p=0.5)</td><td>44.63‡</td><td>22.53‡</td><td>53.58</td><td>58.65</td><td>27.99</td><td>41.48†</td></tr></table>",
|
| 1089 |
+
"bbox": [
|
| 1090 |
+
127,
|
| 1091 |
+
80,
|
| 1092 |
+
870,
|
| 1093 |
+
227
|
| 1094 |
+
],
|
| 1095 |
+
"page_idx": 5
|
| 1096 |
+
},
|
| 1097 |
+
{
|
| 1098 |
+
"type": "text",
|
| 1099 |
+
"text": "Table 1: BLEU score on multi-domain translation benchmarks with decoder-only architecture. “†” and “‡” denote that statistically significant better than the best result of the counterpart (e.g., THOR-MoE (Top-2) vs. Trim-MoE (Top-2)) with t-test $p < 0.05$ and $p < 0.01$ hereinafter, respectively. The best and second best results are bold and underlined, respectively.",
|
| 1100 |
+
"bbox": [
|
| 1101 |
+
112,
|
| 1102 |
+
237,
|
| 1103 |
+
882,
|
| 1104 |
+
297
|
| 1105 |
+
],
|
| 1106 |
+
"page_idx": 5
|
| 1107 |
+
},
|
| 1108 |
+
{
|
| 1109 |
+
"type": "text",
|
| 1110 |
+
"text": "multilingual translation, the scores encompass the average ratings across all language pairs, such as English $\\rightarrow$ Any (En $\\rightarrow$ XX), and Any $\\rightarrow$ English (XX $\\rightarrow$ En) on the OPUS-16 dataset.",
|
| 1111 |
+
"bbox": [
|
| 1112 |
+
112,
|
| 1113 |
+
321,
|
| 1114 |
+
487,
|
| 1115 |
+
385
|
| 1116 |
+
],
|
| 1117 |
+
"page_idx": 5
|
| 1118 |
+
},
|
| 1119 |
+
{
|
| 1120 |
+
"type": "text",
|
| 1121 |
+
"text": "4.2 Implementation Details",
|
| 1122 |
+
"text_level": 1,
|
| 1123 |
+
"bbox": [
|
| 1124 |
+
112,
|
| 1125 |
+
399,
|
| 1126 |
+
346,
|
| 1127 |
+
414
|
| 1128 |
+
],
|
| 1129 |
+
"page_idx": 5
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"type": "text",
|
| 1133 |
+
"text": "In multi-domain translation, we use decoder-only Transformer architecture. Specifically, we use Qwen1.5-MoE-A2.7B (Team, 2024a). It has 14.3B parameters (60 non shared experts + 4 shared experts) in total and 2.7B activated parameters (4 non shared experts + 4 shared experts) during runtime. Due to limited GPU resource, we used a trimmed version, which has 3.5B parameters (8 non shared experts + 4 shared experts) in total and 2.3B activated parameters (2 non shared experts + 4 shared experts). To keep its capacity, we initialize the trimmed model with Qwen1.5-MoE-A2.7B and denote it as Trim-MoE. During training, we use Llama-Factory (Zheng et al., 2024) to instruct-tune LLMs. All LLMs are tuned on an $8 \\times$ NVIDIA A100 GPUs (40G) with 1e-5 learning rate. We set gradient accumulation to 16 and batch size to 1, which gives us $2^{*}8^{*}16^{*}1$ batch in total. We use the DeepSpeed optimization (Rasley et al., 2020), and set ZeRO-3 optimization. Following Qin et al. (2024), we set the number of training epochs to 3. We set hyper-parameters $\\alpha$ , $\\beta$ , $\\gamma$ , and $\\delta$ to 1e-2, 1e-2, 1e-2, and 1e-4, which are determined by a grid search.",
|
| 1134 |
+
"bbox": [
|
| 1135 |
+
112,
|
| 1136 |
+
420,
|
| 1137 |
+
489,
|
| 1138 |
+
806
|
| 1139 |
+
],
|
| 1140 |
+
"page_idx": 5
|
| 1141 |
+
},
|
| 1142 |
+
{
|
| 1143 |
+
"type": "text",
|
| 1144 |
+
"text": "In multilingual translation, we follow (Zhao et al., 2024b) and compare our method with the Transformer-Base model (as Dense) and its MoE variants that have 6 encoder and decoder layers, 32 experts. The input and hidden dimensions of all feed-forward networks are 512 and 2048. We set the training processes to 35K iterations with",
|
| 1145 |
+
"bbox": [
|
| 1146 |
+
112,
|
| 1147 |
+
809,
|
| 1148 |
+
489,
|
| 1149 |
+
921
|
| 1150 |
+
],
|
| 1151 |
+
"page_idx": 5
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"type": "text",
|
| 1155 |
+
"text": "a learning rate of 5e-4, which follows the inverse square root with 4,000 warm-up steps. To keep balanced training, we use temperature-based data sampling strategy with temperature 1.5. We set hyper-parameters $\\alpha$ , $\\beta$ , $\\gamma$ , and $\\delta$ to 1e-2, 5e-2, 5e-2, and 1e-4, which are determined by a grid search.",
|
| 1156 |
+
"bbox": [
|
| 1157 |
+
507,
|
| 1158 |
+
321,
|
| 1159 |
+
884,
|
| 1160 |
+
418
|
| 1161 |
+
],
|
| 1162 |
+
"page_idx": 5
|
| 1163 |
+
},
|
| 1164 |
+
{
|
| 1165 |
+
"type": "text",
|
| 1166 |
+
"text": "4.3 Comparison Models",
|
| 1167 |
+
"text_level": 1,
|
| 1168 |
+
"bbox": [
|
| 1169 |
+
507,
|
| 1170 |
+
430,
|
| 1171 |
+
717,
|
| 1172 |
+
445
|
| 1173 |
+
],
|
| 1174 |
+
"page_idx": 5
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"type": "text",
|
| 1178 |
+
"text": "Our comparison models mainly include two types: Decoder-only and Encoder-Decoder based.",
|
| 1179 |
+
"bbox": [
|
| 1180 |
+
507,
|
| 1181 |
+
453,
|
| 1182 |
+
882,
|
| 1183 |
+
483
|
| 1184 |
+
],
|
| 1185 |
+
"page_idx": 5
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"type": "text",
|
| 1189 |
+
"text": "Decoder-only. We fine-tune two dense models based on Qwen2.5-3B (Team, 2024b), which have similar parameters with the activated parameter and denoted as SFT-3B. Besides, based on the TrimMoE-A2.3B model, we also fine-tuned three MoE models with Top-1, Top-2, and Top- $p$ routing strategy.",
|
| 1190 |
+
"bbox": [
|
| 1191 |
+
507,
|
| 1192 |
+
486,
|
| 1193 |
+
884,
|
| 1194 |
+
598
|
| 1195 |
+
],
|
| 1196 |
+
"page_idx": 5
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"type": "text",
|
| 1200 |
+
"text": "Encoder-Decoder. There are three types of comparison models: vanilla dense model, vanilla MoE model, and enhanced MoE models via language knowledge. We use the Transformer-Base model as Dense model. For vanilla MoE model, the Switch Transformer (Fedus et al., 2022) with a top-1 token-based routing (as ST-MoE) and GShard (Lepikhin et al., 2021a) with a top-2 token-based routing (as GS-MoE) are adopted. For Language-specific MoE models, the LS-MoE with fixed routing inspired by (Pires et al., 2023), assigning 2 non-overlapping experts for tokens according to their source language in the encoder and target language in the decoder; Hybrid-MoE (Kudugunta et al., 2021), with a top-2 token routing in the encoder and a top-2 target language routing in the decoder side; Residual-MoE (Elbayad et al., 2023; Rajbhandari et al., 2022; Zhang et al., 2021) that augments each MoE layer with a shared feed-forward network through a binary gate function; Lingual",
|
| 1201 |
+
"bbox": [
|
| 1202 |
+
507,
|
| 1203 |
+
599,
|
| 1204 |
+
885,
|
| 1205 |
+
921
|
| 1206 |
+
],
|
| 1207 |
+
"page_idx": 5
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"type": "page_number",
|
| 1211 |
+
"text": "21438",
|
| 1212 |
+
"bbox": [
|
| 1213 |
+
475,
|
| 1214 |
+
927,
|
| 1215 |
+
524,
|
| 1216 |
+
940
|
| 1217 |
+
],
|
| 1218 |
+
"page_idx": 5
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"type": "text",
|
| 1222 |
+
"text": "MoE (Zhao et al., 2024b) stands for an MoE model with linguistic-guided routing and dynamic expert allocation, where the first-level language router selects the top 8 experts and the second-level token router activates the dynamical number of experts.",
|
| 1223 |
+
"bbox": [
|
| 1224 |
+
112,
|
| 1225 |
+
84,
|
| 1226 |
+
487,
|
| 1227 |
+
164
|
| 1228 |
+
],
|
| 1229 |
+
"page_idx": 6
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"type": "text",
|
| 1233 |
+
"text": "5 Main Results",
|
| 1234 |
+
"text_level": 1,
|
| 1235 |
+
"bbox": [
|
| 1236 |
+
112,
|
| 1237 |
+
179,
|
| 1238 |
+
263,
|
| 1239 |
+
193
|
| 1240 |
+
],
|
| 1241 |
+
"page_idx": 6
|
| 1242 |
+
},
|
| 1243 |
+
{
|
| 1244 |
+
"type": "text",
|
| 1245 |
+
"text": "Table 1 shows main results on the multi-domain translation benchmark with decoder-only architecture. Table 2 presents main results on the multilingual translation with encoder-decoder architecture. For a fair comparison, all models are trained and assessed on the OPUS-16 dataset with Transformer-Base as the backbone architecture.",
|
| 1246 |
+
"bbox": [
|
| 1247 |
+
112,
|
| 1248 |
+
206,
|
| 1249 |
+
489,
|
| 1250 |
+
317
|
| 1251 |
+
],
|
| 1252 |
+
"page_idx": 6
|
| 1253 |
+
},
|
| 1254 |
+
{
|
| 1255 |
+
"type": "text",
|
| 1256 |
+
"text": "5.1 Results on Multi-Domain Translation",
|
| 1257 |
+
"text_level": 1,
|
| 1258 |
+
"bbox": [
|
| 1259 |
+
112,
|
| 1260 |
+
332,
|
| 1261 |
+
453,
|
| 1262 |
+
346
|
| 1263 |
+
],
|
| 1264 |
+
"page_idx": 6
|
| 1265 |
+
},
|
| 1266 |
+
{
|
| 1267 |
+
"type": "text",
|
| 1268 |
+
"text": "Table 1 shows that the Trim-MoE-based models generally surpass the dense one. For example, the Trim-MoE (Top-2) outperforms SFT-3B model by average 2 BLEU scores where the activated parameters is less than dense model (2.3B vs. 3B), showing the effectiveness of MoE model. Furthermore, the proposed THOR-MoE significantly and consistently surpasses the counterpart of Trim-MoE-based one. For instance, the THOR-MoE (Top-2) outperforms the Trim-MoE (Top-2) by averaged 1.74 BLEU scores. This clear advantage confirms the superiority of incorporating domain knowledge and context knowledge into the routing. What's important, the proposed approach is compatible with the Top- $k$ (Shazeer et al., 2017a) and Top $p$ (Huang et al., 2024) routing strategies, validating the generalization of THOR-MoE, which can be a plug-and-play module. Besides, we find that the scores on the same domain (e.g., Law) change largely. The reason may be that the data distribution is unbalanced. We also list the results in terms of COMET (Rei et al., 2020) score in Table 3 and we can conclude the similar findings.",
|
| 1269 |
+
"bbox": [
|
| 1270 |
+
112,
|
| 1271 |
+
354,
|
| 1272 |
+
489,
|
| 1273 |
+
724
|
| 1274 |
+
],
|
| 1275 |
+
"page_idx": 6
|
| 1276 |
+
},
|
| 1277 |
+
{
|
| 1278 |
+
"type": "text",
|
| 1279 |
+
"text": "5.2 Results on Multilingual Translation",
|
| 1280 |
+
"text_level": 1,
|
| 1281 |
+
"bbox": [
|
| 1282 |
+
112,
|
| 1283 |
+
737,
|
| 1284 |
+
440,
|
| 1285 |
+
753
|
| 1286 |
+
],
|
| 1287 |
+
"page_idx": 6
|
| 1288 |
+
},
|
| 1289 |
+
{
|
| 1290 |
+
"type": "text",
|
| 1291 |
+
"text": "Table 2 summarizes the results and we can conclude several observations:",
|
| 1292 |
+
"bbox": [
|
| 1293 |
+
112,
|
| 1294 |
+
760,
|
| 1295 |
+
489,
|
| 1296 |
+
790
|
| 1297 |
+
],
|
| 1298 |
+
"page_idx": 6
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"type": "text",
|
| 1302 |
+
"text": "THOR-MoE vs. Dense and Vanilla MoE Baselines. The THOR-MoE substantially surpasses the Dense and vanilla MoE multilingual translation baselines with a large margin. Specifically, compared with Dense and ST-MoE, the THOR-MoE (Top-p) achieves $\\{5.39\\%, 3.99\\%, 4.70\\% \\}$ and $2.46\\%, 0.55\\%, 1.51\\%$ averaged improvement in terms of BLEU score for Avg1., Avg2., and All",
|
| 1303 |
+
"bbox": [
|
| 1304 |
+
112,
|
| 1305 |
+
791,
|
| 1306 |
+
489,
|
| 1307 |
+
920
|
| 1308 |
+
],
|
| 1309 |
+
"page_idx": 6
|
| 1310 |
+
},
|
| 1311 |
+
{
|
| 1312 |
+
"type": "text",
|
| 1313 |
+
"text": "Avg., respectively. This significant margin demonstrates the effectiveness of hierarchical language-guided routing and context-responsive routing.",
|
| 1314 |
+
"bbox": [
|
| 1315 |
+
507,
|
| 1316 |
+
84,
|
| 1317 |
+
884,
|
| 1318 |
+
131
|
| 1319 |
+
],
|
| 1320 |
+
"page_idx": 6
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"type": "text",
|
| 1324 |
+
"text": "THOR-MoE vs. Language-Guided MoE models. The THOR-MoE also consistently outperforms language-guided MoE models, including LS-MoE, hybrid-MoE, Residual-MoE, and Linguual-MoE. It shows again that the superiority of hierarchical language-guided routing and context-responsive routing. In detail, the Linguual-MoE performs the highest in baselines and it also employs a hierarchical language-group-guided and dynamical routing, which introduces the hard language id embedding and fails to consider code-mixed cases and that the token in different language can be the same (e.g., 'Internet' in German and English). In contrast, THOR-MoE applies a mixed language representation where the language ids are predicted, which comprehensively incorporates the languages knowledge. Furthermore, the dynamical routing in Linguual-MoE does not incorporate the context information. The context generally knows which token is difficult or not in a global view. The THOR-MoE fully considers the above issues and obtains better results.",
|
| 1325 |
+
"bbox": [
|
| 1326 |
+
507,
|
| 1327 |
+
133,
|
| 1328 |
+
884,
|
| 1329 |
+
485
|
| 1330 |
+
],
|
| 1331 |
+
"page_idx": 6
|
| 1332 |
+
},
|
| 1333 |
+
{
|
| 1334 |
+
"type": "text",
|
| 1335 |
+
"text": "6 Analysis",
|
| 1336 |
+
"text_level": 1,
|
| 1337 |
+
"bbox": [
|
| 1338 |
+
507,
|
| 1339 |
+
500,
|
| 1340 |
+
618,
|
| 1341 |
+
516
|
| 1342 |
+
],
|
| 1343 |
+
"page_idx": 6
|
| 1344 |
+
},
|
| 1345 |
+
{
|
| 1346 |
+
"type": "text",
|
| 1347 |
+
"text": "6.1 Ablation Study",
|
| 1348 |
+
"text_level": 1,
|
| 1349 |
+
"bbox": [
|
| 1350 |
+
507,
|
| 1351 |
+
527,
|
| 1352 |
+
673,
|
| 1353 |
+
542
|
| 1354 |
+
],
|
| 1355 |
+
"page_idx": 6
|
| 1356 |
+
},
|
| 1357 |
+
{
|
| 1358 |
+
"type": "text",
|
| 1359 |
+
"text": "We conduct ablation studies to investigate how well hierarchical context-responsive routing of THORMoE works. We conclude two findings from the results in Tab. 4.",
|
| 1360 |
+
"bbox": [
|
| 1361 |
+
507,
|
| 1362 |
+
548,
|
| 1363 |
+
882,
|
| 1364 |
+
611
|
| 1365 |
+
],
|
| 1366 |
+
"page_idx": 6
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"type": "list",
|
| 1370 |
+
"sub_type": "text",
|
| 1371 |
+
"list_items": [
|
| 1372 |
+
"(1) \"w/o hierarchical task-guided routing\": i.e., without using any task-related routing and decaying to vanilla manner (select experts from full set of experts), the model performance greatly degrades on both translation tasks. It shows the necessity of using task-guided routing in a hierarchical manner.",
|
| 1373 |
+
"(2) \"w/o context-responsive routing\": the model performance becomes worse on both tasks when removing context. This shows that our context-responsive routing indeed can enhance the routing effectiveness and guarantee the token can be assigned to suitable and specialized experts with the indication of context, which thus benefits the model performance on both translation tasks."
|
| 1374 |
+
],
|
| 1375 |
+
"bbox": [
|
| 1376 |
+
507,
|
| 1377 |
+
613,
|
| 1378 |
+
882,
|
| 1379 |
+
838
|
| 1380 |
+
],
|
| 1381 |
+
"page_idx": 6
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"type": "text",
|
| 1385 |
+
"text": "6.2 Comparison among Different Task Representations",
|
| 1386 |
+
"text_level": 1,
|
| 1387 |
+
"bbox": [
|
| 1388 |
+
507,
|
| 1389 |
+
851,
|
| 1390 |
+
826,
|
| 1391 |
+
882
|
| 1392 |
+
],
|
| 1393 |
+
"page_idx": 6
|
| 1394 |
+
},
|
| 1395 |
+
{
|
| 1396 |
+
"type": "text",
|
| 1397 |
+
"text": "In this section, we aim to investigate the impact of task representation in different manners. Table 5",
|
| 1398 |
+
"bbox": [
|
| 1399 |
+
507,
|
| 1400 |
+
889,
|
| 1401 |
+
882,
|
| 1402 |
+
920
|
| 1403 |
+
],
|
| 1404 |
+
"page_idx": 6
|
| 1405 |
+
},
|
| 1406 |
+
{
|
| 1407 |
+
"type": "page_number",
|
| 1408 |
+
"text": "21439",
|
| 1409 |
+
"bbox": [
|
| 1410 |
+
475,
|
| 1411 |
+
927,
|
| 1412 |
+
524,
|
| 1413 |
+
940
|
| 1414 |
+
],
|
| 1415 |
+
"page_idx": 6
|
| 1416 |
+
},
|
| 1417 |
+
{
|
| 1418 |
+
"type": "table",
|
| 1419 |
+
"img_path": "images/0ba8f1edf9edcc7257ab1386c344ef1a7a96c1d1cefb03518ef6e62d5d0bf25c.jpg",
|
| 1420 |
+
"table_caption": [],
|
| 1421 |
+
"table_footnote": [],
|
| 1422 |
+
"table_body": "<table><tr><td rowspan=\"2\" colspan=\"2\">Models</td><td colspan=\"4\">En→XX</td><td colspan=\"4\">XX→En</td><td rowspan=\"2\">Avg.</td></tr><tr><td>high</td><td>medium</td><td>low</td><td>Avg1.</td><td>high</td><td>medium</td><td>low</td><td>Avg2.</td></tr><tr><td rowspan=\"5\">Dense</td><td>Transformer-base</td><td>25.37</td><td>39.12</td><td>14.78</td><td>26.16</td><td>28.81</td><td>39.24</td><td>24.21</td><td>30.27</td><td>28.21</td></tr><tr><td>GS-MoE</td><td>25.55</td><td>40.71</td><td>18.97</td><td>27.70</td><td>28.77</td><td>41.70</td><td>29.25</td><td>32.12</td><td>29.91</td></tr><tr><td>ST-MoE</td><td>26.55</td><td>43.04</td><td>20.23</td><td>29.09</td><td>29.94</td><td>44.00</td><td>30.94</td><td>33.71</td><td>31.40</td></tr><tr><td>LS-MoE</td><td>20.06</td><td>37.31</td><td>11.72</td><td>22.29</td><td>23.69</td><td>42.99</td><td>32.01</td><td>30.60</td><td>26.44</td></tr><tr><td>Hybird-MoE</td><td>24.56</td><td>31.70</td><td>13.38</td><td>23.55</td><td>29.59</td><td>41.74</td><td>27.81</td><td>32.18</td><td>27.85</td></tr><tr><td rowspan=\"5\">MoE</td><td>Residual-MoE</td><td>26.52</td><td>43.49</td><td>21.58</td><td>29.53</td><td>29.84</td><td>43.94</td><td>31.25</td><td>33.72</td><td>31.62</td></tr><tr><td>Lingual-MoE</td><td>27.11</td><td>46.24</td><td>23.34</td><td>30.95</td><td>29.87</td><td>43.49</td><td>32.02</td><td>33.81</td><td>32.38</td></tr><tr><td>THOR-MoE (Top-1)</td><td>27.21</td><td>46.37</td><td>23.88</td><td>31.17</td><td>29.68</td><td>44.01</td><td>32.58</td><td>33.99</td><td>32.57</td></tr><tr><td>THOR-MoE (Top-2)</td><td>27.88†</td><td>47.29†</td><td>24.85†</td><td>31.98†</td><td>30.38†</td><td>44.52†</td><td>33.26†</td><td>34.64†</td><td>33.31†</td></tr><tr><td>THOR-MoE (Top-p)</td><td>27.63†</td><td>46.82†</td><td>24.15†</td><td>31.55†</td><td>29.97</td><td>44.18†</td><td>32.96†</td><td>34.26</td><td>32.91†</td></tr></table>",
|
| 1423 |
+
"bbox": [
|
| 1424 |
+
124,
|
| 1425 |
+
80,
|
| 1426 |
+
877,
|
| 1427 |
+
266
|
| 1428 |
+
],
|
| 1429 |
+
"page_idx": 7
|
| 1430 |
+
},
|
| 1431 |
+
{
|
| 1432 |
+
"type": "table",
|
| 1433 |
+
"img_path": "images/a698788ba33027384a9bba7da30bf785713b5691798c0ced4d56e5adae715dd5.jpg",
|
| 1434 |
+
"table_caption": [
|
| 1435 |
+
"Table 2: Averaged BLEU scores on multilingual translation with encoder-decoder architectures. “†” denotes that statistically significant better than Lingual-MoE with t-test $p < 0.05$ ."
|
| 1436 |
+
],
|
| 1437 |
+
"table_footnote": [],
|
| 1438 |
+
"table_body": "<table><tr><td>Models</td><td>IT</td><td>Koran</td><td>Medical</td><td>Law</td><td>Subtitles</td><td>Avg.</td></tr><tr><td>SFT-3B</td><td>86.39</td><td>73.17</td><td>85.43</td><td>87.19</td><td>78.52</td><td>82.14</td></tr><tr><td>THOR-MoE (Top-p)</td><td>87.31</td><td>74.09</td><td>86.09</td><td>87.88</td><td>79</td><td>82.87</td></tr></table>",
|
| 1439 |
+
"bbox": [
|
| 1440 |
+
121,
|
| 1441 |
+
328,
|
| 1442 |
+
485,
|
| 1443 |
+
373
|
| 1444 |
+
],
|
| 1445 |
+
"page_idx": 7
|
| 1446 |
+
},
|
| 1447 |
+
{
|
| 1448 |
+
"type": "table",
|
| 1449 |
+
"img_path": "images/f3907fd03eeac33e38a870283e45765e72598608ff1587049e4601b46ba62215.jpg",
|
| 1450 |
+
"table_caption": [
|
| 1451 |
+
"Table 3: COMET scores on multi-domain translation benchmarks with decoder-only architecture."
|
| 1452 |
+
],
|
| 1453 |
+
"table_footnote": [],
|
| 1454 |
+
"table_body": "<table><tr><td></td><td>Multi-Domain</td><td>Multilingual</td></tr><tr><td>THOR-MoE (Top-p)</td><td>41.48</td><td>32.91</td></tr><tr><td>w/o hierarchical task-guided routing</td><td>40.16</td><td>31.57</td></tr><tr><td>w/o context-responsive routing</td><td>40.74</td><td>32.12</td></tr></table>",
|
| 1455 |
+
"bbox": [
|
| 1456 |
+
121,
|
| 1457 |
+
429,
|
| 1458 |
+
484,
|
| 1459 |
+
483
|
| 1460 |
+
],
|
| 1461 |
+
"page_idx": 7
|
| 1462 |
+
},
|
| 1463 |
+
{
|
| 1464 |
+
"type": "text",
|
| 1465 |
+
"text": "shows the results where the 'Non-Mixed Representation' denotes that directly uses the automatically predict task label to extract corresponding task representation and 'Golden Representation' indicates using the golden task label to extract corresponding representation. We conclude that the task knowledge indeed has a positive impact on translation performance (vs. baseline). We also observe that using the automatically predicted task labels (actually the mixed task representation) shows better results than using ground truth and Non-Mixed manner in terms of Avg. BLEU scores. The reason may be that the mixed task representation has certain fault tolerance. We also analyze the accuracy of task prediction to further show its quality",
|
| 1466 |
+
"bbox": [
|
| 1467 |
+
112,
|
| 1468 |
+
539,
|
| 1469 |
+
489,
|
| 1470 |
+
781
|
| 1471 |
+
],
|
| 1472 |
+
"page_idx": 7
|
| 1473 |
+
},
|
| 1474 |
+
{
|
| 1475 |
+
"type": "table",
|
| 1476 |
+
"img_path": "images/747dad36aff06e268e81bd6ae7f56620a7361eb3669a2ae8b51eca6f9a4700d7.jpg",
|
| 1477 |
+
"table_caption": [
|
| 1478 |
+
"Table 4: Ablation Study with Avg. results."
|
| 1479 |
+
],
|
| 1480 |
+
"table_footnote": [],
|
| 1481 |
+
"table_body": "<table><tr><td></td><td>Multi-Domain</td><td>Multilingual</td></tr><tr><td>baseline (w/o any task Rep.)</td><td>40.74</td><td>32.12</td></tr><tr><td>Non-Mixed Rep.</td><td>40.95</td><td>32.44</td></tr><tr><td>Golden Rep.</td><td>41.32</td><td>32.78</td></tr><tr><td>THOR-MoE (Mixed manner)</td><td>41.48</td><td>32.91</td></tr></table>",
|
| 1482 |
+
"bbox": [
|
| 1483 |
+
121,
|
| 1484 |
+
804,
|
| 1485 |
+
484,
|
| 1486 |
+
878
|
| 1487 |
+
],
|
| 1488 |
+
"page_idx": 7
|
| 1489 |
+
},
|
| 1490 |
+
{
|
| 1491 |
+
"type": "table",
|
| 1492 |
+
"img_path": "images/fe840274113d930ed550a515eba4c43c71e0170127e8b7cbef58e5d61f60ce4e.jpg",
|
| 1493 |
+
"table_caption": [
|
| 1494 |
+
"Table 5: The Avg. results of different representation (Rep.) manner during hierarchical task-guided routing."
|
| 1495 |
+
],
|
| 1496 |
+
"table_footnote": [],
|
| 1497 |
+
"table_body": "<table><tr><td></td><td>Multi-Domain</td><td>Multilingual</td></tr><tr><td>baseline (w/o any task Rep.)</td><td>40.74</td><td>32.12</td></tr><tr><td>Infuse task Rep. into token Rep.</td><td>40.95</td><td>32.44</td></tr><tr><td>THOR-MoE (Hierarchical manner)</td><td>41.48</td><td>32.91</td></tr></table>",
|
| 1498 |
+
"bbox": [
|
| 1499 |
+
515,
|
| 1500 |
+
328,
|
| 1501 |
+
878,
|
| 1502 |
+
385
|
| 1503 |
+
],
|
| 1504 |
+
"page_idx": 7
|
| 1505 |
+
},
|
| 1506 |
+
{
|
| 1507 |
+
"type": "text",
|
| 1508 |
+
"text": "Table 6: The investigation of why hierarchical manner.",
|
| 1509 |
+
"bbox": [
|
| 1510 |
+
509,
|
| 1511 |
+
394,
|
| 1512 |
+
880,
|
| 1513 |
+
409
|
| 1514 |
+
],
|
| 1515 |
+
"page_idx": 7
|
| 1516 |
+
},
|
| 1517 |
+
{
|
| 1518 |
+
"type": "image",
|
| 1519 |
+
"img_path": "images/7c46b75344c67dc342d848a35ef6d0fc4422e4513c6c5b4e77b20107b57dddb3.jpg",
|
| 1520 |
+
"image_caption": [
|
| 1521 |
+
"Figure 2: Average activated experts number across training steps on the multi-domain translation task."
|
| 1522 |
+
],
|
| 1523 |
+
"image_footnote": [],
|
| 1524 |
+
"bbox": [
|
| 1525 |
+
510,
|
| 1526 |
+
432,
|
| 1527 |
+
884,
|
| 1528 |
+
633
|
| 1529 |
+
],
|
| 1530 |
+
"page_idx": 7
|
| 1531 |
+
},
|
| 1532 |
+
{
|
| 1533 |
+
"type": "text",
|
| 1534 |
+
"text": "in Appendix A.",
|
| 1535 |
+
"bbox": [
|
| 1536 |
+
507,
|
| 1537 |
+
706,
|
| 1538 |
+
628,
|
| 1539 |
+
722
|
| 1540 |
+
],
|
| 1541 |
+
"page_idx": 7
|
| 1542 |
+
},
|
| 1543 |
+
{
|
| 1544 |
+
"type": "text",
|
| 1545 |
+
"text": "6.3 Why Hierarchical Design?",
|
| 1546 |
+
"text_level": 1,
|
| 1547 |
+
"bbox": [
|
| 1548 |
+
507,
|
| 1549 |
+
747,
|
| 1550 |
+
763,
|
| 1551 |
+
764
|
| 1552 |
+
],
|
| 1553 |
+
"page_idx": 7
|
| 1554 |
+
},
|
| 1555 |
+
{
|
| 1556 |
+
"type": "text",
|
| 1557 |
+
"text": "In this section, we aim to investigate the manner of using mixed task representation. Table 6 shows that introducing task knowledge indeed helps tokens route well and achieve improvement (vs. baseline). The hierarchical manner greatly outperforms the direct infusion with token representation before routing, proving the effectiveness of hierarchical design, which unlock the potential of MoE with the help of the mixed task knowledge.",
|
| 1558 |
+
"bbox": [
|
| 1559 |
+
505,
|
| 1560 |
+
776,
|
| 1561 |
+
882,
|
| 1562 |
+
921
|
| 1563 |
+
],
|
| 1564 |
+
"page_idx": 7
|
| 1565 |
+
},
|
| 1566 |
+
{
|
| 1567 |
+
"type": "page_number",
|
| 1568 |
+
"text": "21440",
|
| 1569 |
+
"bbox": [
|
| 1570 |
+
475,
|
| 1571 |
+
927,
|
| 1572 |
+
524,
|
| 1573 |
+
940
|
| 1574 |
+
],
|
| 1575 |
+
"page_idx": 7
|
| 1576 |
+
},
|
| 1577 |
+
{
|
| 1578 |
+
"type": "table",
|
| 1579 |
+
"img_path": "images/29a0d70766864764131ef58e14cbaa2f71b428de0bf889fb282b27a4aa2b206c.jpg",
|
| 1580 |
+
"table_caption": [],
|
| 1581 |
+
"table_footnote": [],
|
| 1582 |
+
"table_body": "<table><tr><td>Domains</td><td>IT</td><td>Koran</td><td>Medical</td><td>Law</td><td>Subtitles</td><td>Avg.</td></tr><tr><td>Top-p</td><td>1.87</td><td>1.95</td><td>1.82</td><td>1.92</td><td>1.77</td><td>1.87</td></tr><tr><td>Top-p w/ ctx</td><td>1.37</td><td>1.61</td><td>1.42</td><td>1.56</td><td>1.31</td><td>1.45</td></tr></table>",
|
| 1583 |
+
"bbox": [
|
| 1584 |
+
114,
|
| 1585 |
+
80,
|
| 1586 |
+
485,
|
| 1587 |
+
134
|
| 1588 |
+
],
|
| 1589 |
+
"page_idx": 8
|
| 1590 |
+
},
|
| 1591 |
+
{
|
| 1592 |
+
"type": "text",
|
| 1593 |
+
"text": "Table 7: Average activated experts (AE) in different domain translation tasks. 'Top- $p$ w/ctx' denotes the proposed method to infuse the context during routing.",
|
| 1594 |
+
"bbox": [
|
| 1595 |
+
112,
|
| 1596 |
+
143,
|
| 1597 |
+
487,
|
| 1598 |
+
187
|
| 1599 |
+
],
|
| 1600 |
+
"page_idx": 8
|
| 1601 |
+
},
|
| 1602 |
+
{
|
| 1603 |
+
"type": "text",
|
| 1604 |
+
"text": "6.4 Analysis of Efficient Training and Inference",
|
| 1605 |
+
"text_level": 1,
|
| 1606 |
+
"bbox": [
|
| 1607 |
+
112,
|
| 1608 |
+
214,
|
| 1609 |
+
425,
|
| 1610 |
+
244
|
| 1611 |
+
],
|
| 1612 |
+
"page_idx": 8
|
| 1613 |
+
},
|
| 1614 |
+
{
|
| 1615 |
+
"type": "text",
|
| 1616 |
+
"text": "To further explore whether our proposed method is efficient in training and inference, we calculate the average number of experts activated by the model on multi-domain translation tasks. Figure 2 and Table 7 shows the average number of experts activated per token across various translation tasks during training and inference. The result is averaged across all the layers of transformers.",
|
| 1617 |
+
"bbox": [
|
| 1618 |
+
112,
|
| 1619 |
+
252,
|
| 1620 |
+
487,
|
| 1621 |
+
380
|
| 1622 |
+
],
|
| 1623 |
+
"page_idx": 8
|
| 1624 |
+
},
|
| 1625 |
+
{
|
| 1626 |
+
"type": "text",
|
| 1627 |
+
"text": "During training, we can see that our method converges faster to use less activated experts than the vanilla Top- $p$ (Huang et al., 2024). During inference, we can observe that across all five tasks, the number of activated experts is less than original Top- $p$ routing, averaging 1.45 activated experts (less than $22\\%$ activated parameters) with better performance. Both findings show that the context plays a key role in guiding token routing.",
|
| 1628 |
+
"bbox": [
|
| 1629 |
+
112,
|
| 1630 |
+
382,
|
| 1631 |
+
489,
|
| 1632 |
+
526
|
| 1633 |
+
],
|
| 1634 |
+
"page_idx": 8
|
| 1635 |
+
},
|
| 1636 |
+
{
|
| 1637 |
+
"type": "text",
|
| 1638 |
+
"text": "7 Related Work",
|
| 1639 |
+
"text_level": 1,
|
| 1640 |
+
"bbox": [
|
| 1641 |
+
112,
|
| 1642 |
+
539,
|
| 1643 |
+
270,
|
| 1644 |
+
555
|
| 1645 |
+
],
|
| 1646 |
+
"page_idx": 8
|
| 1647 |
+
},
|
| 1648 |
+
{
|
| 1649 |
+
"type": "text",
|
| 1650 |
+
"text": "Neural Machine Translation. The NMT have received remarkable attention in the era of LLMs (Jawahar et al., 2023b; Zhou et al., 2023). Previous work mainly focuses on the continual learning of new domains (Gu and Feng, 2020; Gu et al., 2022; Liang et al., 2024), introducing ready-made task-related (linguistics) knowledge via adapter (Zhang et al., 2020, 2021), parameter sharing (Aharoni et al., 2019), or task-specific modules (Pires et al., 2023), and multilingual representation learning (Yang et al., 2021).",
|
| 1651 |
+
"bbox": [
|
| 1652 |
+
112,
|
| 1653 |
+
565,
|
| 1654 |
+
489,
|
| 1655 |
+
743
|
| 1656 |
+
],
|
| 1657 |
+
"page_idx": 8
|
| 1658 |
+
},
|
| 1659 |
+
{
|
| 1660 |
+
"type": "text",
|
| 1661 |
+
"text": "Mixture-of-Experts. Jacobs et al. (1991) first proposes the concept of MoE, which consists of a series of network sub-modules. The Sparately-gated MoE, as a variant, which only activates a few expert networks for each input, has been shown its superiority in diverse NLP and computer vision applications(Shazeer et al., 2017b; Zoph et al., 2022). In the context of NMT, most of previous work focuses on addressing the over/under-fitting (Elbayad et al., 2023) via regularization strategies (Elbayad et al., 2023) or modularizing MoE (Li et al., 2023c;",
|
| 1662 |
+
"bbox": [
|
| 1663 |
+
112,
|
| 1664 |
+
744,
|
| 1665 |
+
489,
|
| 1666 |
+
921
|
| 1667 |
+
],
|
| 1668 |
+
"page_idx": 8
|
| 1669 |
+
},
|
| 1670 |
+
{
|
| 1671 |
+
"type": "text",
|
| 1672 |
+
"text": "Zhang et al., 2024), and incorporating task-related knowledge (language, domain etc) (Kudugunta et al., 2021; Zhao et al., 2024b; Pham et al., 2023; Gururangan et al., 2022; Li et al., 2023b), achieving impressive performance. Besides, there are some studies aim to improve the training/inference efficiency of routing via adaptive computation (Jawahar et al., 2023a) or reducing the number of activated experts (Li et al., 2023a; Huang et al., 2024).",
|
| 1673 |
+
"bbox": [
|
| 1674 |
+
507,
|
| 1675 |
+
84,
|
| 1676 |
+
884,
|
| 1677 |
+
230
|
| 1678 |
+
],
|
| 1679 |
+
"page_idx": 8
|
| 1680 |
+
},
|
| 1681 |
+
{
|
| 1682 |
+
"type": "text",
|
| 1683 |
+
"text": "Different from these prior works that directly use the task-related knowledge, we propose a hierarchical context-responsive routing method where we automatically extract corresponding domain/language knowledge and design a hierarchical network to guide the task-level routing. Besides, we aim to help each token accurately select specialized and suitable experts and thus we incorporate the context to guide the token routing rather than relying on the localized token only in existing work. In this manner, the context-responsive routing can improve the training or inference efficiency, which is compatible with previous Top- $k$ and Top- $p$ routing policies.",
|
| 1684 |
+
"bbox": [
|
| 1685 |
+
507,
|
| 1686 |
+
231,
|
| 1687 |
+
885,
|
| 1688 |
+
458
|
| 1689 |
+
],
|
| 1690 |
+
"page_idx": 8
|
| 1691 |
+
},
|
| 1692 |
+
{
|
| 1693 |
+
"type": "text",
|
| 1694 |
+
"text": "8 Conclusion",
|
| 1695 |
+
"text_level": 1,
|
| 1696 |
+
"bbox": [
|
| 1697 |
+
507,
|
| 1698 |
+
479,
|
| 1699 |
+
640,
|
| 1700 |
+
494
|
| 1701 |
+
],
|
| 1702 |
+
"page_idx": 8
|
| 1703 |
+
},
|
| 1704 |
+
{
|
| 1705 |
+
"type": "text",
|
| 1706 |
+
"text": "In this paper, we propose a new hierarchical task-gudied and context-responsive routing framework for NMT. To automatically obtain the task knowledge, we propose to predict it and then use mixed task representation. Consequently, we design a hierarchical routing at the task level and the token level. Further, we propose to inject context to enhance the effectiveness of token routing. Extensive experiments on multi-domain and multilingual translation benchmarks show the superiority and generalization of our proposed approach.",
|
| 1707 |
+
"bbox": [
|
| 1708 |
+
507,
|
| 1709 |
+
512,
|
| 1710 |
+
884,
|
| 1711 |
+
690
|
| 1712 |
+
],
|
| 1713 |
+
"page_idx": 8
|
| 1714 |
+
},
|
| 1715 |
+
{
|
| 1716 |
+
"type": "text",
|
| 1717 |
+
"text": "Limitations",
|
| 1718 |
+
"text_level": 1,
|
| 1719 |
+
"bbox": [
|
| 1720 |
+
509,
|
| 1721 |
+
711,
|
| 1722 |
+
613,
|
| 1723 |
+
726
|
| 1724 |
+
],
|
| 1725 |
+
"page_idx": 8
|
| 1726 |
+
},
|
| 1727 |
+
{
|
| 1728 |
+
"type": "text",
|
| 1729 |
+
"text": "While we introduce the mixed domain/language and context knowledge into routing in hierarchical manner and achieve good results, there are some limitations worth considering to study in future work: (1) In this study, the design relies on the prior (the number of tasks and language groups), which may limit its extension to broader topics (Li and Zhou, 2025); (2) This work only conduct experiments on translation tasks and does not conduct experiments other generation or discriminative tasks.",
|
| 1730 |
+
"bbox": [
|
| 1731 |
+
507,
|
| 1732 |
+
744,
|
| 1733 |
+
885,
|
| 1734 |
+
904
|
| 1735 |
+
],
|
| 1736 |
+
"page_idx": 8
|
| 1737 |
+
},
|
| 1738 |
+
{
|
| 1739 |
+
"type": "page_number",
|
| 1740 |
+
"text": "21441",
|
| 1741 |
+
"bbox": [
|
| 1742 |
+
475,
|
| 1743 |
+
927,
|
| 1744 |
+
522,
|
| 1745 |
+
940
|
| 1746 |
+
],
|
| 1747 |
+
"page_idx": 8
|
| 1748 |
+
},
|
| 1749 |
+
{
|
| 1750 |
+
"type": "text",
|
| 1751 |
+
"text": "References",
|
| 1752 |
+
"text_level": 1,
|
| 1753 |
+
"bbox": [
|
| 1754 |
+
115,
|
| 1755 |
+
84,
|
| 1756 |
+
213,
|
| 1757 |
+
98
|
| 1758 |
+
],
|
| 1759 |
+
"page_idx": 9
|
| 1760 |
+
},
|
| 1761 |
+
{
|
| 1762 |
+
"type": "list",
|
| 1763 |
+
"sub_type": "ref_text",
|
| 1764 |
+
"list_items": [
|
| 1765 |
+
"Roee Aharoni and Yoav Goldberg. 2020. Unsupervised domain clusters in pretrained language models. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7747-7763, Online. Association for Computational Linguistics.",
|
| 1766 |
+
"Roee Aharoni, Melvin Johnson, and Orhan First. 2019. Massively multilingual neural machine translation. 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 3874-3884, Minneapolis, Minnesota. Association for Computational Linguistics.",
|
| 1767 |
+
"Mikko Aulamo and Jörg Tiedemann. 2019. The OPUS resource repository: An open package for creating parallel corpora and machine translation services. In Proceedings of the 22nd Nordic Conference on Computational Linguistics, NoDaLiDa 2019, Turku, Finland, September 30 - October 2, 2019, pages 389-394.",
|
| 1768 |
+
"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.",
|
| 1769 |
+
"Maha Elbayad, Anna Sun, and Shruti Bhosale. 2023. Fixing MoE over-fitting on low-resource languages in multilingual machine translation. In *Findings of the Association for Computational Linguistics: ACL* 2023, pages 14237-14253, Toronto, Canada. Association for Computational Linguistics.",
|
| 1770 |
+
"Angela Fan, Shruti Bhosale, Holger Schwenk, Zhiyi Ma, Ahmed El-Kishky, Siddharth Goyal, Mandep Baines, Onur Celebi, Guillaume Wenzek, Vishrav Chaudhary, Naman Goyal, Tom Birch, Vitaliy Liptchinsky, Sergey Edunov, Edouard Grave, Michael Auli, and Armand Joulin. 2020. Beyond english-centric multilingual machine translation. CoRR, abs/2010.11125.",
|
| 1771 |
+
"William Fedus, Barret Zoph, and Noam Shazeer. 2022. Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. Journal of Machine Learning Research, 23(120):1-39.",
|
| 1772 |
+
"Fabian Gloeckle, Badr Youbi Idrissi, Baptiste Roziere, David Lopez-Paz, and Gabriel Synnaeve. 2024. Better & faster large language models via multi-token prediction. Preprint, arXiv:2404.19737.",
|
| 1773 |
+
"Shuhao Gu and Yang Feng. 2020. Investigating catastrophic forgetting during continual training for neural machine translation. In Proceedings of the 28th International Conference on Computational Linguistics,"
|
| 1774 |
+
],
|
| 1775 |
+
"bbox": [
|
| 1776 |
+
115,
|
| 1777 |
+
105,
|
| 1778 |
+
489,
|
| 1779 |
+
920
|
| 1780 |
+
],
|
| 1781 |
+
"page_idx": 9
|
| 1782 |
+
},
|
| 1783 |
+
{
|
| 1784 |
+
"type": "list",
|
| 1785 |
+
"sub_type": "ref_text",
|
| 1786 |
+
"list_items": [
|
| 1787 |
+
"pages 4315-4326, Barcelona, Spain (Online). International Committee on Computational Linguistics.",
|
| 1788 |
+
"Shuhao Gu, Bojie Hu, and Yang Feng. 2022. Continual learning of neural machine translation within low-forgetting risk regions. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 1707-1718, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.",
|
| 1789 |
+
"Suchin Gururangan, Mike Lewis, Ari Holtzman, Noah A. Smith, and Luke Zettlemoyer. 2022. DEMix layers: Disentangling domains for modular language modeling. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 5557-5576, Seattle, United States. Association for Computational Linguistics.",
|
| 1790 |
+
"Quzhe Huang, Zhenwei An, Nan Zhuang, Mingxu Tao, Chen Zhang, Yang Jin, Kun Xu, Kun Xu, Liwei Chen, Songfang Huang, and Yansong Feng. 2024. Harder task needs more experts: Dynamic routing in MoE models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12883-12895, Bangkok, Thailand. Association for Computational Linguistics.",
|
| 1791 |
+
"Robert A. Jacobs, Michael I. Jordan, Steven J. Nowlan, and Geoffrey E. Hinton. 1991. Adaptive mixtures of local experts. Neural Comput., 3(1):79-87.",
|
| 1792 |
+
"Ganesh Jawahar, Subhabrata Mukherjee, Xiaodong Liu, Young Jin Kim, Muhammad Abdul-Mageed, Laks Lakshmanan, V.S., Ahmed Hassan Awadallah, Sebastian Bubeck, and Jianfeng Gao. 2023a. AutoMoE: Heterogeneous mixture-of-experts with adaptive computation for efficient neural machine translation. In Findings of the Association for Computational Linguistics: ACL 2023, pages 9116-9132, Toronto, Canada. Association for Computational Linguistics.",
|
| 1793 |
+
"Ganesh Jawahar, Subhabrata Mukherjee, Xiaodong Liu, Young Jin Kim, Muhammad Abdul-Mageed, Laks V. S. Lakshmanan, Ahmed Hassan Awadallah, Sébastien Bubeck, and Jianfeng Gao. 2023b. Automoe: Heterogeneous mixture-of-experts with adaptive computation for efficient neural machine translation. In *Findings of the Association for Computational Linguistics: ACL 2023*, Toronto, Canada, July 9-14, 2023, pages 9116-9132. Association for Computational Linguistics.",
|
| 1794 |
+
"Songtao Jiang, Tuo Zheng, Yan Zhang, Yeying Jin, Li Yuan, and Zuozhu Liu. 2024. Med-MoE: Mixture of domain-specific experts for lightweight medical vision-language models. In *Findings of the Association for Computational Linguistics: EMNLP* 2024, pages 3843-3860, Miami, Florida, USA. Association for Computational Linguistics.",
|
| 1795 |
+
"Philipp Koehn. 2004. Statistical significance tests for machine translation evaluation. In Proceedings of EMNLP, pages 388-395."
|
| 1796 |
+
],
|
| 1797 |
+
"bbox": [
|
| 1798 |
+
510,
|
| 1799 |
+
85,
|
| 1800 |
+
882,
|
| 1801 |
+
920
|
| 1802 |
+
],
|
| 1803 |
+
"page_idx": 9
|
| 1804 |
+
},
|
| 1805 |
+
{
|
| 1806 |
+
"type": "page_number",
|
| 1807 |
+
"text": "21442",
|
| 1808 |
+
"bbox": [
|
| 1809 |
+
475,
|
| 1810 |
+
928,
|
| 1811 |
+
524,
|
| 1812 |
+
940
|
| 1813 |
+
],
|
| 1814 |
+
"page_idx": 9
|
| 1815 |
+
},
|
| 1816 |
+
{
|
| 1817 |
+
"type": "list",
|
| 1818 |
+
"sub_type": "ref_text",
|
| 1819 |
+
"list_items": [
|
| 1820 |
+
"Philipp Koehn and Rebecca Knowles. 2017. Six challenges for neural machine translation. In Proceedings of the First Workshop on Neural Machine Translation, NMT@ACL 2017, Vancouver, Canada, August 4, 2017, pages 28-39.",
|
| 1821 |
+
"Sneha Kudugunta, Yanping Huang, Ankur Bapna, Maxim Krikun, Dmitry Lepikhin, Minh-Thang Luong, and Orhan First. 2021. Beyond distillation: Task-level mixture-of-experts for efficient inference. In Findings of the Association for Computational Linguistics: EMNLP 2021, pages 3577-3599, Punta Cana, Dominican Republic. Association for Computational Linguistics.",
|
| 1822 |
+
"Dmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen, Orhan First, Yanping Huang, Maxim Krikun, Noam Shazeer, and Zhifeng Chen. 2021a. {GS}hard: Scaling giant models with conditional computation and automatic sharding. In International Conference on Learning Representations.",
|
| 1823 |
+
"Dmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen, Orhan First, Yanping Huang, Maxim Krikun, Noam Shazeer, and Zhifeng Chen. 2021b. Gshard: Scaling giant models with conditional computation and automatic sharding. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenReview.net.",
|
| 1824 |
+
"Jiamin Li, Qiang Su, Yitao Yang, Yimin Jiang, Cong Wang, and Hong Xu. 2023a. Adaptive gating in mixture-of-experts based language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 3577-3587, Singapore. Association for Computational Linguistics.",
|
| 1825 |
+
"Margaret Li, Suchin Gururangan, Tim Dettmers, Mike Lewis, Tim Althoff, Noah A. Smith, and Luke Zettle-moyer. 2023b. Branch-train-merge: Embarrassingly parallel training of expert language models.",
|
| 1826 |
+
"Shangjie Li, Xiangpeng Wei, Shaolin Zhu, Jun Xie, Baosong Yang, and Deyi Xiong. 2023c. MMNMT: Modularizing multilingual neural machine translation with flexibly assembled MoE and dense blocks. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 4978-4990, Singapore. Association for Computational Linguistics.",
|
| 1827 |
+
"Ziyue Li and Tianyi Zhou. 2025. Your mixture-of-experts LLM is secretly an embedding model for free. In The Thirteenth International Conference on Learning Representations.",
|
| 1828 |
+
"Yunlong Liang, Fandong Meng, Jiaan Wang, Jinan Xu, Yufeng Chen, and Jie Zhou. 2024. Continual learning with semi-supervised contrastive distillation for incremental neural machine translation. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 10914-10928, Bangkok, Thailand. Association for Computational Linguistics."
|
| 1829 |
+
],
|
| 1830 |
+
"bbox": [
|
| 1831 |
+
115,
|
| 1832 |
+
85,
|
| 1833 |
+
485,
|
| 1834 |
+
919
|
| 1835 |
+
],
|
| 1836 |
+
"page_idx": 10
|
| 1837 |
+
},
|
| 1838 |
+
{
|
| 1839 |
+
"type": "list",
|
| 1840 |
+
"sub_type": "ref_text",
|
| 1841 |
+
"list_items": [
|
| 1842 |
+
"Hai Pham, Young Jin Kim, Subhabrata Mukherjee, David P. Woodruff, Barnabas Poczos, and Hany Hassan. 2023. Task-based MoE for multitask multilingual machine translation. In Proceedings of the 3rd Workshop on Multi-lingual Representation Learning (MRL), pages 164–172, Singapore. Association for Computational Linguistics.",
|
| 1843 |
+
"Telmo Pires, Robin Schmidt, Yi-Hsiu Liao, and Stephan Peitz. 2023. Learning language-specific layers for multilingual machine translation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 14767-14783, Toronto, Canada. Association for Computational Linguistics.",
|
| 1844 |
+
"Matt Post. 2018. A call for clarity in reporting BLEU scores. In Proceedings of WMT, pages 186-191.",
|
| 1845 |
+
"Yiwei Qin, Xuefeng Li, Haoyang Zou, Yixiu Liu, Shijie Xia, Zhen Huang, Yixin Ye, Weizhe Yuan, Hector Liu, Yuanzhi Li, et al. 2024. O1 replication journey: A strategic progress report-part 1. arXiv preprint arXiv:2410.18982.",
|
| 1846 |
+
"Samyam Rajbhandari, Conglong Li, Zhewei Yao, Minjia Zhang, Reza Yazdani Aminabadi, Ammar Ahmad Awan, Jeff Rasley, and Yuxiong He. 2022. Deepspeed-moe: Advancing mixture-of-experts inference and training to power next-generation ai scale. Preprint, arXiv:2201.05596.",
|
| 1847 |
+
"Jeff Rasley, Samyam Rajbhandari, Olatunj Ruwase, and Yuxiong He. 2020. Deepspeed: System optimizations enable training deep learning models with over 100 billion parameters. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 3505-3506.",
|
| 1848 |
+
"Ricardo Rei, Craig Stewart, Ana C Farinha, and Alon Lavie. 2020. COMET: A neural framework for MT evaluation. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 2685-2702, Online. Association for Computational Linguistics.",
|
| 1849 |
+
"Noam Shazeer, *Azalia Mirhoseini, *Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. 2017a. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. In International Conference on Learning Representations.",
|
| 1850 |
+
"Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc V. Le, Geoffrey E. Hinton, and Jeff Dean. 2017b. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. In 5th International Conference on Learning Representations, ICLR 2017, Toulouse, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net.",
|
| 1851 |
+
"Qwen Team. 2024a. Qwen1.5-moe: Matching 7b model performance with 1/3 activated parameters\".",
|
| 1852 |
+
"Qwen Team. 2024b. Qwen2.5: A party of foundation models."
|
| 1853 |
+
],
|
| 1854 |
+
"bbox": [
|
| 1855 |
+
510,
|
| 1856 |
+
85,
|
| 1857 |
+
880,
|
| 1858 |
+
917
|
| 1859 |
+
],
|
| 1860 |
+
"page_idx": 10
|
| 1861 |
+
},
|
| 1862 |
+
{
|
| 1863 |
+
"type": "page_number",
|
| 1864 |
+
"text": "21443",
|
| 1865 |
+
"bbox": [
|
| 1866 |
+
475,
|
| 1867 |
+
928,
|
| 1868 |
+
524,
|
| 1869 |
+
940
|
| 1870 |
+
],
|
| 1871 |
+
"page_idx": 10
|
| 1872 |
+
},
|
| 1873 |
+
{
|
| 1874 |
+
"type": "list",
|
| 1875 |
+
"sub_type": "ref_text",
|
| 1876 |
+
"list_items": [
|
| 1877 |
+
"An Wang, Xingwu Sun, Ruobing Xie, Shuaipeng Li, Ji- aqi Zhu, Zhen Yang, Pinxue Zhao, J. N. Han, Zhanhui Kang, Di Wang, Naoaki Okazaki, and Cheng zhong Xu. 2024. Hmoe: Heterogeneous mixture of experts for language modeling. Preprint, arXiv:2408.10681.",
|
| 1878 |
+
"Junhong Wu, Yuchen Liu, and Chengqing Zong. 2024. F-MALLOC: Feed-forward memory allocation for continual learning in neural machine translation. 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 7180-7192, Mexico City, Mexico. Association for Computational Linguistics.",
|
| 1879 |
+
"Yilin Yang, Akiko Eriguchi, Alexandre Muzio, Prasad Tadepalli, Stefan Lee, and Hany Hassan. 2021. Improving multilingual translation by representation and gradient regularization. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 7266-7279, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.",
|
| 1880 |
+
"Zihao Zeng, Yibo Miao, Hongcheng Gao, Hao Zhang, and Zhijie Deng. 2024. AdaMoE: Token-adaptive routing with null experts for mixture-of-experts language models. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 6223-6235, Miami, Florida, USA. Association for Computational Linguistics.",
|
| 1881 |
+
"Biao Zhang, Ankur Bapna, Rico Sennrich, and Orhan First. 2021. Share or not? learning to schedule language-specific capacity for multilingual translation. In International Conference on Learning Representations.",
|
| 1882 |
+
"Biao Zhang, Philip Williams, Ivan Titov, and Rico Sennrich. 2020. Improving massively multilingual neural machine translation and zero-shot translation. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 1628-1639, Online. Association for Computational Linguistics.",
|
| 1883 |
+
"Fan Zhang, Mei Tu, Song Liu, and Jinyao Yan. 2024. A lightweight mixture-of-experts neural machine translation model with stage-wise training strategy. In Findings of the Association for Computational Linguistics: NAACL 2024, pages 2381-2392, Mexico City, Mexico. Association for Computational Linguistics.",
|
| 1884 |
+
"Hao Zhao, Zihan Qiu, Huijia Wu, Zili Wang, Zhaofeng He, and Jie Fu. 2024a. HyperMoE: Towards better mixture of experts via transferring among experts. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 10605-10618, Bangkok, Thailand. Association for Computational Linguistics.",
|
| 1885 |
+
"Xinyu Zhao, Xuxi Chen, Yu Cheng, and Tianlong Chen. 2024b. Sparse moe with language guided routing for"
|
| 1886 |
+
],
|
| 1887 |
+
"bbox": [
|
| 1888 |
+
115,
|
| 1889 |
+
85,
|
| 1890 |
+
489,
|
| 1891 |
+
920
|
| 1892 |
+
],
|
| 1893 |
+
"page_idx": 11
|
| 1894 |
+
},
|
| 1895 |
+
{
|
| 1896 |
+
"type": "list",
|
| 1897 |
+
"sub_type": "ref_text",
|
| 1898 |
+
"list_items": [
|
| 1899 |
+
"multilingual machine translation. In The Twelfth International Conference on Learning Representations.",
|
| 1900 |
+
"Yaowei Zheng, Richong Zhang, Junhao Zhang, Yanhan Ye, and Zheyan Luo. 2024. LlamaFactory: Unified efficient fine-tuning of $100+$ language models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 3: System Demonstrations), pages 400-410, Bangkok, Thailand. Association for Computational Linguistics.",
|
| 1901 |
+
"Chulun Zhou, Yunlong Liang, Fandong Meng, Jinan Xu, Jinsong Su, and Jie Zhou. 2023. RC3: Regularized contrastive cross-lingual cross-modal pre-training. In *Findings of the Association for Computational Linguistics: ACL* 2023, pages 11747–11762, Toronto, Canada. Association for Computational Linguistics.",
|
| 1902 |
+
"Barret Zoph, Irwan Bello, Sameer Kumar, Nan Du, Yanping Huang, Jeff Dean, Noam Shazeer, and William Fedus. 2022. St-moe: Designing stable and transferable sparse expert models. arXiv preprint arXiv:2202.08906.",
|
| 1903 |
+
"Simiao Zuo, Xiaodong Liu, Jian Jiao, Young Jin Kim, Hany Hassan, Ruofei Zhang, Jianfeng Gao, and Tuo Zhao. 2022. Taming sparsely activated transformer with stochastic experts. In *The Tenth International Conference on Learning Representations*, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net."
|
| 1904 |
+
],
|
| 1905 |
+
"bbox": [
|
| 1906 |
+
510,
|
| 1907 |
+
85,
|
| 1908 |
+
882,
|
| 1909 |
+
467
|
| 1910 |
+
],
|
| 1911 |
+
"page_idx": 11
|
| 1912 |
+
},
|
| 1913 |
+
{
|
| 1914 |
+
"type": "page_number",
|
| 1915 |
+
"text": "21444",
|
| 1916 |
+
"bbox": [
|
| 1917 |
+
475,
|
| 1918 |
+
928,
|
| 1919 |
+
524,
|
| 1920 |
+
940
|
| 1921 |
+
],
|
| 1922 |
+
"page_idx": 11
|
| 1923 |
+
},
|
| 1924 |
+
{
|
| 1925 |
+
"type": "table",
|
| 1926 |
+
"img_path": "images/873b12617108b5add48059e4e4518886b5dc3f8e274a9cfbbcb7b4b1a9fe24c2.jpg",
|
| 1927 |
+
"table_caption": [],
|
| 1928 |
+
"table_footnote": [],
|
| 1929 |
+
"table_body": "<table><tr><td></td><td>Tasks/Groups</td><td>Train</td><td>Valid</td><td>Test</td></tr><tr><td rowspan=\"5\">Multi-Domain Translation Dataset (De→En)</td><td>IT</td><td>0.22M</td><td></td><td></td></tr><tr><td>Koran</td><td>18K</td><td></td><td></td></tr><tr><td>Law</td><td>0.47M</td><td>2000</td><td>2000</td></tr><tr><td>Medical</td><td>0.25M</td><td></td><td></td></tr><tr><td>Subtitles</td><td>0.5M</td><td></td><td></td></tr><tr><td>Multilingual Translation Dataset</td><td>16</td><td>17,559,950</td><td>30*1000</td><td>30*1000</td></tr></table>",
|
| 1930 |
+
"bbox": [
|
| 1931 |
+
122,
|
| 1932 |
+
80,
|
| 1933 |
+
484,
|
| 1934 |
+
199
|
| 1935 |
+
],
|
| 1936 |
+
"page_idx": 12
|
| 1937 |
+
},
|
| 1938 |
+
{
|
| 1939 |
+
"type": "table",
|
| 1940 |
+
"img_path": "images/0f48aa72a0571d2e986088268a9e2bec4e814d6aa3e9dc234d1fc6eec2c932be.jpg",
|
| 1941 |
+
"table_caption": [
|
| 1942 |
+
"Table 8: The data statistic of the multi-domain translation dataset and multilingual translation (OPUS-16) dataset. The number in Train/Valid/Test columns denotes the number of sentence pairs in each domain/language pair."
|
| 1943 |
+
],
|
| 1944 |
+
"table_footnote": [],
|
| 1945 |
+
"table_body": "<table><tr><td>Models</td><td>IT</td><td>Koran</td><td>Medical</td><td>Law</td><td>Subtitles</td><td>Avg.</td></tr><tr><td>Qwen1.5-MoE-A2.7B (SFT, Top-8)</td><td>45.59</td><td>23.31</td><td>55.67</td><td>60.18</td><td>29.21</td><td>42.79</td></tr><tr><td>THOR-MoE (Top-p, p=0.5)</td><td>46.76</td><td>24.03</td><td>35.9</td><td>61.13</td><td>30.29</td><td>43.62</td></tr><tr><td>Qwen1.5-MoE-A2.7B (SFT, Top-8)</td><td>87.3</td><td>74.24</td><td>85.85</td><td>87.78</td><td>79.36</td><td>82.91</td></tr><tr><td>THOR-MoE (Top-p, p=0.5)</td><td>87.45</td><td>74.58</td><td>86.45</td><td>88.75</td><td>80.23</td><td>83.49</td></tr></table>",
|
| 1946 |
+
"bbox": [
|
| 1947 |
+
119,
|
| 1948 |
+
294,
|
| 1949 |
+
490,
|
| 1950 |
+
351
|
| 1951 |
+
],
|
| 1952 |
+
"page_idx": 12
|
| 1953 |
+
},
|
| 1954 |
+
{
|
| 1955 |
+
"type": "text",
|
| 1956 |
+
"text": "A Task Prediction",
|
| 1957 |
+
"text_level": 1,
|
| 1958 |
+
"bbox": [
|
| 1959 |
+
114,
|
| 1960 |
+
458,
|
| 1961 |
+
289,
|
| 1962 |
+
473
|
| 1963 |
+
],
|
| 1964 |
+
"page_idx": 12
|
| 1965 |
+
},
|
| 1966 |
+
{
|
| 1967 |
+
"type": "text",
|
| 1968 |
+
"text": "We also evaluate the performance of the Task Predictor to show whether the classifier can accurately predict suitable labels. The results are $82.45\\%$ and $64.89\\%$ for domain and language prediction, respectively. It suggests that our classifier can predict suitable labels and further provide effective mixed task representation for routing.",
|
| 1969 |
+
"bbox": [
|
| 1970 |
+
112,
|
| 1971 |
+
486,
|
| 1972 |
+
489,
|
| 1973 |
+
598
|
| 1974 |
+
],
|
| 1975 |
+
"page_idx": 12
|
| 1976 |
+
},
|
| 1977 |
+
{
|
| 1978 |
+
"type": "text",
|
| 1979 |
+
"text": "B Comparison to Larger Model",
|
| 1980 |
+
"text_level": 1,
|
| 1981 |
+
"bbox": [
|
| 1982 |
+
114,
|
| 1983 |
+
612,
|
| 1984 |
+
405,
|
| 1985 |
+
627
|
| 1986 |
+
],
|
| 1987 |
+
"page_idx": 12
|
| 1988 |
+
},
|
| 1989 |
+
{
|
| 1990 |
+
"type": "text",
|
| 1991 |
+
"text": "We implemented our proposed method based on a large-scale Qwen1.5-MoE-A2.7B (totally 14B, activated 2.7B, denoted as THOR-MoE). Besides, we also fine-tuned the vanilla Qwen1.5-MoE-A2.7B model as the baseline. The averaged COMET and BLEU results shown in Table 9 demonstrate that the THOR-MoE model at the 14B level also achieve better results than fine-tuned Qwen1.5-MoE-A2.7B model in terms of BLEU and COMET scores.",
|
| 1992 |
+
"bbox": [
|
| 1993 |
+
112,
|
| 1994 |
+
639,
|
| 1995 |
+
489,
|
| 1996 |
+
797
|
| 1997 |
+
],
|
| 1998 |
+
"page_idx": 12
|
| 1999 |
+
},
|
| 2000 |
+
{
|
| 2001 |
+
"type": "text",
|
| 2002 |
+
"text": "C Analysis of Domain Similarity",
|
| 2003 |
+
"text_level": 1,
|
| 2004 |
+
"bbox": [
|
| 2005 |
+
114,
|
| 2006 |
+
813,
|
| 2007 |
+
413,
|
| 2008 |
+
829
|
| 2009 |
+
],
|
| 2010 |
+
"page_idx": 12
|
| 2011 |
+
},
|
| 2012 |
+
{
|
| 2013 |
+
"type": "text",
|
| 2014 |
+
"text": "Following previous work (Wu et al., 2024), we conduct some analysis for domain similarity. Specifically, we sum the predicted soft label and then normalize it. The vertical axis and horizontal axis are unsupervised cluster label (clustering with BERT",
|
| 2015 |
+
"bbox": [
|
| 2016 |
+
112,
|
| 2017 |
+
841,
|
| 2018 |
+
489,
|
| 2019 |
+
921
|
| 2020 |
+
],
|
| 2021 |
+
"page_idx": 12
|
| 2022 |
+
},
|
| 2023 |
+
{
|
| 2024 |
+
"type": "table",
|
| 2025 |
+
"img_path": "images/67e1d8d1ac68c4db99ab4edcb46b924dd840e63195a50c23c1eca8cdead14e02.jpg",
|
| 2026 |
+
"table_caption": [
|
| 2027 |
+
"Table 9: BLEU (top block) / COMET (below block) scores on multi-domain translation benchmarks with decoder-only architecture. Note that top-8 means it activates 4 shared experts and 4 non-shared experts out of 60 experts."
|
| 2028 |
+
],
|
| 2029 |
+
"table_footnote": [],
|
| 2030 |
+
"table_body": "<table><tr><td></td><td>IT</td><td>Koran</td><td>Medical</td><td>Law</td><td>Subtitles</td></tr><tr><td>IT</td><td>0.833</td><td>0.027</td><td>0.055</td><td>0.0219</td><td>0.065</td></tr><tr><td>Koran</td><td>0.012</td><td>0.817</td><td>0.003</td><td>0.019</td><td>0.149</td></tr><tr><td>Medical</td><td>0.111</td><td>0.004</td><td>0.737</td><td>0.135</td><td>0.013</td></tr><tr><td>Law</td><td>0.142</td><td>0.008</td><td>0.032</td><td>0.798</td><td>0.02</td></tr><tr><td>Subtitles</td><td>0.058</td><td>0.076</td><td>0.009</td><td>0.006</td><td>0.851</td></tr></table>",
|
| 2031 |
+
"bbox": [
|
| 2032 |
+
531,
|
| 2033 |
+
80,
|
| 2034 |
+
860,
|
| 2035 |
+
170
|
| 2036 |
+
],
|
| 2037 |
+
"page_idx": 12
|
| 2038 |
+
},
|
| 2039 |
+
{
|
| 2040 |
+
"type": "text",
|
| 2041 |
+
"text": "Table 10: BLEU (top block) / COMET (below block) scores on multi-domain translation benchmarks with decoder-only architecture. Note top-8 means it activates 4 shared experts and 4 non-shared experts out of 60 experts.",
|
| 2042 |
+
"bbox": [
|
| 2043 |
+
507,
|
| 2044 |
+
179,
|
| 2045 |
+
882,
|
| 2046 |
+
250
|
| 2047 |
+
],
|
| 2048 |
+
"page_idx": 12
|
| 2049 |
+
},
|
| 2050 |
+
{
|
| 2051 |
+
"type": "text",
|
| 2052 |
+
"text": "base and $k = 5$ ) and predicted soft labels, respectively. The similarity matrix are shown in Table 10.",
|
| 2053 |
+
"bbox": [
|
| 2054 |
+
507,
|
| 2055 |
+
275,
|
| 2056 |
+
882,
|
| 2057 |
+
307
|
| 2058 |
+
],
|
| 2059 |
+
"page_idx": 12
|
| 2060 |
+
},
|
| 2061 |
+
{
|
| 2062 |
+
"type": "text",
|
| 2063 |
+
"text": "The results show that there exist some sentences that are assigned to a cluster of another domain (i.e., hard cases). This makes sense as the mixed representation can capture such domain information, making the proposed approach works (the reason).",
|
| 2064 |
+
"bbox": [
|
| 2065 |
+
507,
|
| 2066 |
+
309,
|
| 2067 |
+
882,
|
| 2068 |
+
388
|
| 2069 |
+
],
|
| 2070 |
+
"page_idx": 12
|
| 2071 |
+
},
|
| 2072 |
+
{
|
| 2073 |
+
"type": "page_number",
|
| 2074 |
+
"text": "21445",
|
| 2075 |
+
"bbox": [
|
| 2076 |
+
475,
|
| 2077 |
+
927,
|
| 2078 |
+
524,
|
| 2079 |
+
940
|
| 2080 |
+
],
|
| 2081 |
+
"page_idx": 12
|
| 2082 |
+
}
|
| 2083 |
+
]
|
2025/THOR-MoE_ Hierarchical Task-Guided and Context-Responsive Routing for Neural Machine Translation/f6520cf3-9239-4e76-8a25-131bf94b31d7_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/THOR-MoE_ Hierarchical Task-Guided and Context-Responsive Routing for Neural Machine Translation/f6520cf3-9239-4e76-8a25-131bf94b31d7_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6b17b2ce634d0b99731ad732b4061991b45fd83e12735194a4fb0d7ffa39369d
|
| 3 |
+
size 513465
|
2025/THOR-MoE_ Hierarchical Task-Guided and Context-Responsive Routing for Neural Machine Translation/full.md
ADDED
|
@@ -0,0 +1,408 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# THOR-MoE: Hierarchical Task-Guided and Context-Responsive Routing for Neural Machine Translation
|
| 2 |
+
|
| 3 |
+
Yunlong Liang, Fandong Meng*, Jie Zhou
|
| 4 |
+
|
| 5 |
+
Pattern Recognition Center, WeChat AI, Tencent Inc
|
| 6 |
+
|
| 7 |
+
{yunlonliang, fandongmeng, withtomzhou}@tencent.com
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
The sparse Mixture-of-Experts (MoE) has achieved significant progress for neural machine translation (NMT). However, there exist two limitations in current MoE solutions which may lead to sub-optimal performance: 1) they directly use the task knowledge of NMT into MoE (e.g., domain/linguistics-specific knowledge), which are generally unavailable at practical application and neglect the naturally grouped domain/linguistic properties; 2) the expert selection only depends on the localized token representation without considering the context, which fully grasps the state of each token in a global view. To address the above limitations, we propose THOR-MoE via arming the MoE with hierarchical task-guided and context-responsive routing policies. Specifically, it 1) firstly predicts the domain/language label and then extracts mixed domain/language representation to allocate task-level experts in a hierarchical manner; 2) injects the context information to enhance the token routing from the pre-selected task-level experts set, which can help each token to be accurately routed to more specialized and suitable experts. Extensive experiments on multi-domain translation and multilingual translation benchmarks with different architectures consistently demonstrate the superior performance of THOR-MoE. Additionally, the THOR-MoE operates as a plug-and-play module compatible with existing Top- $k$ (Shazeer et al., 2017a) and Top $p$ (Huang et al., 2024) routing schemes, ensuring broad applicability across diverse MoE architectures. For instance, compared with vanilla Top- $p$ (Huang et al., 2024) routing, the context-aware manner can achieve an average improvement of 0.75 BLEU with less than $22\%$ activated parameters on multi-domain translation tasks.
|
| 12 |
+
|
| 13 |
+
# 1 Introduction
|
| 14 |
+
|
| 15 |
+
The rapid advancement of neural machine translation (NMT; Zhang et al. (2020); Fan et al. (2020)) has been significantly propelled by sparse Mixture-of-Experts (MoE) architectures (Shazeer et al., 2017a; Lepikhin et al., 2021a; Fedus et al., 2022), which increase model capacity while maintaining computational efficiency through conditional computation. In the literature, existing work can be roughly classified into two categories: (1) some studies mainly focus on how to effectively incorporate task information (e.g., domain/linguistics-specific knowledge) into MoE models designing task-specific modules (Pham et al., 2023; Jiang et al., 2024); (2) another line of work concentrates on how to improve the training and inference efficiency via reducing the activated experts in MoE (Jawahar et al., 2023a; Elbayad et al., 2023; Wang et al., 2024; Zeng et al., 2024).
|
| 16 |
+
|
| 17 |
+
Specifically, in (1), Kudugunta et al. (2021) routes input examples to different experts based on translation language representations. Li et al. (2023c) explores multiple language-group-specific routers to incorporate language group knowledge into models. Zhao et al. (2024b) takes one step further by designing hierarchical language-guided token routing. Although intuitive and effective, they heavily rely on explicit task-specific knowledge (e.g., domain or language labels), which is often unavailable in real-world scenarios. This reliance not only restricts generalization but also overlooks the intrinsic hierarchical grouping of domain and linguistic properties inherent in multilingual or multi-domain translation tasks. In (2), Zhao et al. (2024a) distills the knowledge of unselected experts to the selected one and thus reduces the number of experts without impacting performance; Li et al. (2023a) and Huang et al. (2024) decrease the number of experts by designing a threshold based on expert probability distribution; Zhao et al.
|
| 18 |
+
|
| 19 |
+
(2024b) adapts the number of experts by the difficulty of language. Generally, the global context grasp the overall situation and might know whether each token is difficult or not (Gloeckle et al., 2024). However, previous routing strategies select experts solely based on localized token-level representations, neglecting the broader contextual dependencies that govern token interactions. This myopic view limits the model's ability to allocate experts optimally in a globally coherent manner.
|
| 20 |
+
|
| 21 |
+
In this work, to address the above issues, we propose an innovative hierarchical context-responsive routing (THOR-MoE) framework for neural machine translation. Specifically, the THOR-MoE first predicts which domain/language the input belongs to and then extracts the mixed task representation to allocate experts in a hierarchical manner. It is not only flexible in practice but also effectively infuses the domain knowledge into the task-level routing via encouraging experts to specialize in certain domains/languages. Furthermore, before each token routing, the THOR-MoE injects the context information to help accurately assign the experts from the pre-selected task-level experts set for each token in a global perspective. This enables the model to adaptively capture evolving contextual dependencies, such as long-range syntactic structures or discourse coherence. Crucially, the THOR-MoE operates as a plug-and-play module compatible with existing Top- $k$ (Shazeer et al., 2017a) and Top- $p$ (Huang et al., 2024) routing schemes, ensuring broad applicability across diverse MoE architectures.
|
| 22 |
+
|
| 23 |
+
We validate our proposed THOR-MoE framework on the commonly-used multi-domain NMT benchmark (Aharoni and Goldberg, 2020) and multilingual NMT benchmark (Zhang et al., 2020), which contains 5 domains and 16 languages, respectively. Extensive experiments show that the hierarchical context-responsive routing is pivotal for unlocking the full potential of MoE systems.
|
| 24 |
+
|
| 25 |
+
In summary, our main contributions are:
|
| 26 |
+
|
| 27 |
+
- We propose two components to expand MoE: (i) a hierarchical design to enable language- and domain-specific expert routing; (ii) enabling the use of context information during expert selection, which is important for translation.
|
| 28 |
+
- Extensive experiments on both multi-domain and multilingual translation consistently show the ef
|
| 29 |
+
|
| 30 |
+
fectiveness and generalization of THOR-MoE. For example, our model achieves consistent improvements of an average improvement of 0.75 BLEU with less than $22\%$ activated parameters over vanilla Top-p routing in multi-domain translation tasks.
|
| 31 |
+
|
| 32 |
+
# 2 Background
|
| 33 |
+
|
| 34 |
+
# 2.1 Neural Machine Translation
|
| 35 |
+
|
| 36 |
+
Given an input sentence in the source language $X = \{x_{i}\}_{i=1}^{|X|}$ , the goal of the model is to produce its translation in the target language $Y = \{y_{i}\}_{i=1}^{|Y|}$ . The conditional distribution of the model is:
|
| 37 |
+
|
| 38 |
+
$$
|
| 39 |
+
\mathcal {L} _ {\mathrm {N M T}} = - \sum_ {t = 1} ^ {| Y |} \log \left(p \left(y _ {t} \mid X, y _ {1: t - 1}\right)\right), \tag {1}
|
| 40 |
+
$$
|
| 41 |
+
|
| 42 |
+
where $y_{1:t - 1}$ is the partial translation.
|
| 43 |
+
|
| 44 |
+
# 2.2 Sparse Mixture-of-Experts
|
| 45 |
+
|
| 46 |
+
The vanilla MoE model can be seen the variant of Transformer model via replacing the feedforward (FFN) sub-block of the transformer block with MoE layer, in which per token selects fixed number of experts (Lepikhin et al., 2021b). In each MoE layer, there are $N$ experts, denoted as $\mathcal{E} = \{e_1,e_2,\dots ,e_N\}$ . An input $\mathbf{x}$ is dispatched to these experts, and the output of the MoE layer is computed as the weighted average of the outputs from the experts:
|
| 47 |
+
|
| 48 |
+
$$
|
| 49 |
+
\operatorname {M o E} (\mathbf {x}) = \sum_ {i = 1} ^ {N} g _ {i} (\mathbf {x}) * e _ {i} (\mathbf {x}), \tag {2}
|
| 50 |
+
$$
|
| 51 |
+
|
| 52 |
+
where $g_{*}(\mathbf{x})$ is computed by a router that predicts the contribution of each expert to the final output. Given the computing efficiency, the MoE assigns each token to limited experts (e.g., 1 or 2).
|
| 53 |
+
|
| 54 |
+
To derive $g_{*}(\mathbf{x})$ , we generally compute the probability $\mathbf{P}$ of each expert being selected for the input $\mathbf{x}$ as follows:
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
\mathbf {P} = \operatorname {S o f t m a x} \left(\mathbf {W} _ {\mathbf {r}} \cdot \mathbf {x} ^ {T}\right), \tag {3}
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+
where $\mathbf{W}_{\mathbf{r}} \in N \times d$ serves as a learnable parameter and $d$ denotes the dimension of the input $\mathbf{x}$ . The vector $\mathbf{P}$ , with a size of $N$ , encapsulates the probabilities associated with the selection of each expert. And $P_{i}$ indicates the likelihood of choosing the $i^{th}$ expert $e_{i}$ to calculate the input $\mathbf{x}$ .
|
| 61 |
+
|
| 62 |
+

|
| 63 |
+
(1) Vanilla Token Routing;
|
| 64 |
+
|
| 65 |
+

|
| 66 |
+
(3) Context-Responsive Token Routing.
|
| 67 |
+
|
| 68 |
+

|
| 69 |
+
(2) Hierarchical Task-Guided Routing;
|
| 70 |
+
Figure 1: The overview of the proposed THOR-MoE. 1) vanilla token routing; 2) hierarchical task-guided routing; 3) context-responsive token routing. The 'Emb.' and 'Rep.' denotes the embedding and representation, respectively. The hierarchical manner denotes that the task-guided routing firstly selects different task-specific experts sets for different queries (e.g., $\mathcal{E}_t$ for query 1). Then the context-responsive token routing assigns experts from $S^t$ for each token in query 1.
|
| 71 |
+
|
| 72 |
+
# 2.2.1 Top- $k$ Routing
|
| 73 |
+
|
| 74 |
+
Top- $k$ routing (Shazeer et al., 2017b; Lepikhin et al., 2021b; Zuo et al., 2022) entails the selection of the top $k$ experts, which correspond to the $k$ highest probabilities within the vector $\mathbf{P}$ . Then, the probabilities of the chosen experts are re-scaled through normalization, while the probabilities of the non-selected experts are set to zero, signifying their deactivation. The resultant computation for $g_{*}(\mathbf{x})$ proceeds as below:
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
g _ {i} (\mathbf {x}) = \left\{ \begin{array}{l l} \frac {P _ {i}}{\sum_ {j \in \operatorname {T o p K} (\mathbf {P})} P _ {j}}, & i \in \operatorname {T o p K} (\mathbf {P}) \\ 0, & i \notin \operatorname {T o p K} (\mathbf {P}) \end{array} \right. \tag {4}
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
where $\operatorname{TopK}(\mathbf{P})$ returns the indices of the k largest elements in $\mathbf{P}$ .
|
| 81 |
+
|
| 82 |
+
# 2.2.2 Top- $p$ Routing
|
| 83 |
+
|
| 84 |
+
Top- $p$ routing is initially proposed by (Li et al., 2023a; Huang et al., 2024), which aims to overcome the drawback of Top- $k$ activating the fixed number of experts overlooking the variability in difficulty across different inputs. We refer to readers to Huang et al. (2024) for more details.
|
| 85 |
+
|
| 86 |
+
Formally, Top- $p$ first sorts the elements in $\mathbf{P}$ from highest to lowest, returning in a sorted index list $I$ . Subsequently, we identify the minimal subset of experts for which the aggregate probability
|
| 87 |
+
|
| 88 |
+
surpasses the threshold $p$ . The count of selected experts, denoted as $t$ , is then determined by:
|
| 89 |
+
|
| 90 |
+
$$
|
| 91 |
+
t = \underset {k \in \{1 \dots , N \}} {\arg \min } \sum_ {j < = k} P _ {i, j} \geq p, \tag {5}
|
| 92 |
+
$$
|
| 93 |
+
|
| 94 |
+
where $p$ is the threshold that controls how confident the model should be when stopping adding more experts. $p$ is a hyper-parameter whose range is from 0 to 1. The higher the $p$ is, the more experts will be activated.
|
| 95 |
+
|
| 96 |
+
In dynamic routing mechanism, the calculation of $g_{*}(\mathbf{x})$ is:
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
g _ {i} (\mathbf {x}) = \left\{ \begin{array}{l l} P _ {i} & e _ {i} \in S \\ 0, & e _ {i} \notin S \end{array} \right. \tag {6}
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
where $S$ is the set of selected experts controlled by $t$ in Equation 5:
|
| 103 |
+
|
| 104 |
+
$$
|
| 105 |
+
S = \left\{e _ {I _ {1}}, e _ {I _ {2}} \dots e _ {I _ {t}} \right\}. \tag {7}
|
| 106 |
+
$$
|
| 107 |
+
|
| 108 |
+
# 3 THOR-MoE
|
| 109 |
+
|
| 110 |
+
In this section, we introduce the proposed hierarchical context-responsive routing framework as shown in Figure 1, including two components: hierarchical task-guided routing (§ 3.1) and context-responsive token routing (§ 3.2). Finally, we describe the training objectives (§ 3.3) in detail.
|
| 111 |
+
|
| 112 |
+
# 3.1 Hierarchical Task-Guided Routing
|
| 113 |
+
|
| 114 |
+
Our hierarchical task-guided routing consists of three stages, as shown in 2) of 1. The first stage is task prediction, which aims to automatically obtain the task knowledge by predicting which domain/language the input belongs to. The second stage is to inject the mixed task representation to allocates experts in a hierarchical task-guided manner (third stage).
|
| 115 |
+
|
| 116 |
+
Task Predictor. During real testing for a query, it is hard to reach its domain or language category. Therefore, to automatically obtain the domain knowledge or language knowledge, we add a special token [CLS] in front of the input. Then, it represents the global sentence information and thus can effectively reflect which domain/language the input belongs to (Devlin et al., 2019). Finally, we transform the representation $\mathbf{H}^{cls}$ into a fixed-size vector through Maxpooling and apply a fully-connected layer to predict suitable labels:
|
| 117 |
+
|
| 118 |
+
$$
|
| 119 |
+
\begin{array}{l} \mathbf {H} ^ {m a x} = \operatorname {M a x p o o l i n g} \left(\mathbf {H} ^ {c l s}\right), \mathbf {H} ^ {m a x} \in \mathbb {R} ^ {d}, \\ \mathcal {P} ^ {t} = \operatorname {S o f t m a x} (\mathbf {W} ^ {p} \mathbf {H} ^ {m a x}), \\ \end{array}
|
| 120 |
+
$$
|
| 121 |
+
|
| 122 |
+
where $\mathbf{W}^p\in \mathbb{R}^{K\times d}$ is trainable weight and $K$ denotes the number of domains or languages and $d$ is the model dimension.
|
| 123 |
+
|
| 124 |
+
Mixed Task Representation. Theoretically, we can directly take the predicted task label to extract corresponding task representation. However, in some cases in practice, it is hard to judge since some sentences belongs to multiple domains. In language cases, there are some code-mixed sentences, which is also confused to decide. Therefore, directly use the given label in existing work or the predicted label cannot accurately help model select the specialized experts for such cases and thus limits their potential, as shown in § 6.2. To address this issue, we use the mixed task representation as follows:
|
| 125 |
+
|
| 126 |
+
$$
|
| 127 |
+
\mathbf {E} _ {p} = \sum \left(\mathcal {P} ^ {t} \cdot \mathbf {E M B 1}\right), \mathbf {E} _ {p} \in \mathbb {R} ^ {d}, \tag {9}
|
| 128 |
+
$$
|
| 129 |
+
|
| 130 |
+
where $\mathbf{E}_p$ denotes the mixed task representation generated by the weighted sum of the task distribution $\mathcal{P}$ (predicted by the task predictor as Eq. 8) and the task parameter matrix EMB1. The dimension of EMB1 is num (number of tasks/language groups) * d (embedding dimension), which is randomly initialized and then optimized with the training objective.
|
| 131 |
+
|
| 132 |
+
Hierarchical Task-Guided Routing. With the mixed task representation, we design a task router
|
| 133 |
+
|
| 134 |
+
$g^{t}$ at the task level. In each MoE layer, $g^{t}$ takes the mixed task representation $\mathbf{E}_p$ as input and outputs a task-dependent expert vector. Then, based on it, we use TopK function to select task-specific candidate experts as $S^t$ from all experts. Finally, based on the selected task-specific candidate experts $S_{t}$ , we can conduct general token routing at the token level with Top- $k$ or Top- $p$ routing as described in § 2.2.1 and § 2.2.2, respectively. The final routing policy can be written as $\sum_{i}^{|\mathcal{S}^{t}|}\sum_{j}^{|\mathcal{E}|}g_{i}^{t}\cdot g_{j}\cdot e_{i,j}(\mathbf{x})$ .
|
| 135 |
+
|
| 136 |
+
However, current expert selection at the token level only depends on the current token representation without considering the complete word meaning and global context. Generally, the global context grasp the overall situation and might know which token is difficult or not. Thus, the context can schedules the token to route to suitable experts in a global view. To this end, we propose context-responsive experts selection at the token level.
|
| 137 |
+
|
| 138 |
+
# 3.2 Context-Responsive Routing
|
| 139 |
+
|
| 140 |
+
As shown in 3) of 1, before the experts selection at the token level, we explicitly inject the context into the token representation. Since it is hard to determine for a code-mixed input or a query that can belong to several domains, which thus limits its application in practice. Therefore, we use the averaged context representation as the context representation. $\mathbf{H}_{ctx} = \frac{1}{|Y_{1:t - 1}|}\sum_{t = 1}^{|Y_{1:t - 1}|}\mathbf{h}_t^L$ where $\mathbf{h}$ is the hidden state of the $t$ -th token at the $L$ layer. At each decoding step, the context used for each input token is the prefix of the generated next token. That is, the context is dynamically updated with decoding.
|
| 141 |
+
|
| 142 |
+
To effectively incorporate the context representation into the routing process, we design a gate to dynamically control the contribution of these information:
|
| 143 |
+
|
| 144 |
+
$$
|
| 145 |
+
\begin{array}{l} \mathbf {x} _ {i} = g \odot \mathbf {x} _ {i} + (1 - g) \odot \mathbf {H} _ {c t x}, \\ g = \sigma ([ \mathbf {x} _ {i}; \mathbf {H} _ {c t x} ] \mathbf {W} ^ {g} + \mathbf {b} ^ {g}), \\ \end{array}
|
| 146 |
+
$$
|
| 147 |
+
|
| 148 |
+
where $\mathbf{W}^g$ and $\mathbf{b}^g$ are the trainable parameters.
|
| 149 |
+
|
| 150 |
+
In this manner, we can inject the context information into each token to accurately assign specialized experts to suitable tokens and unlock the potential of the MoE.
|
| 151 |
+
|
| 152 |
+
# 3.3 Training Objectives
|
| 153 |
+
|
| 154 |
+
Our training objectives consist of four parts in Top $k$ routing (translation loss $\mathcal{L}_{\mathrm{NMT}}$ , task prediction loss $\mathcal{L}_{\mathrm{tp}}$ , load balance loss at the task level $\mathcal{L}_{bd}$
|
| 155 |
+
|
| 156 |
+
and token level $\mathcal{L}_{bt}$ and five parts in Top- $p$ routing $(\mathcal{L}_{\mathrm{NMT}},\mathcal{L}_{\mathrm{tp}},\mathcal{L}_{bd},\mathcal{L}_{bt}$ and dynamic routing loss $\mathcal{L}_d$ in Top- $p$
|
| 157 |
+
|
| 158 |
+
Task Prediction Loss. The task prediction loss is defined as:
|
| 159 |
+
|
| 160 |
+
$$
|
| 161 |
+
\mathcal {L} _ {t p} = \min \left(- \log \left(\mathcal {P} ^ {t} \left[ t _ {g} \right]\right)\right), \tag {10}
|
| 162 |
+
$$
|
| 163 |
+
|
| 164 |
+
where $t_g$ is the golden class label, $\mathcal{P}^t$ is calculated as in Eq. 8.
|
| 165 |
+
|
| 166 |
+
Load Balance Loss at the Task Level. To fully encourage the experts to specialize in certain tasks, we propose a task-guided routing loss. It aims to achieve the number of tasks processed by different experts to be roughly the same. Therefore, the task-guided routing loss is defined as:
|
| 167 |
+
|
| 168 |
+
$$
|
| 169 |
+
\mathcal {L} _ {b d} = N * \sum_ {i = 1} ^ {N} F _ {i} ^ {t} * Q _ {i} ^ {t}, \tag {11}
|
| 170 |
+
$$
|
| 171 |
+
|
| 172 |
+
where $F_{i}^{t}$ represents the proportion of tasks selecting expert $e_{i}$ , and $Q_{i}^{t}$ denotes the proportion of the router's probability allocated to expert $e_{i}$ . For $K$ tasks, $F_{i}^{t}$ and $Q_{i}^{t}$ are defined as: $F_{i}^{t} = \frac{1}{K}\sum_{j=1}^{K} 1\{e_{i} \in S^{t,j}\}$ and $Q_{i}^{t} = \frac{1}{K}\sum_{j=1}^{K} P_{i}^{j}$ where $S^{t,j}$ is the set of activated experts for task $j$ , which is calculated by Equation 7, and $P^{j}$ is the probability of selecting each expert for task $j$ , calculated by Equation 3.
|
| 173 |
+
|
| 174 |
+
Load Balance Loss at the Token Level. This loss is the similar to the vanilla load balance loss with a slight difference that the experts candidates is pre-selected by the hierarchical task-guided routing. Formally, the load balance loss at the token level is defined as:
|
| 175 |
+
|
| 176 |
+
$$
|
| 177 |
+
\mathcal {L} _ {b t} = \left| \mathcal {S} ^ {t} \right| * \sum_ {k = 1} ^ {\left| \mathcal {S} ^ {t} \right|} F _ {k} ^ {b} * Q _ {k} ^ {b}, \tag {12}
|
| 178 |
+
$$
|
| 179 |
+
|
| 180 |
+
where $F_{k}^{b}$ represents the proportion of tokens selecting expert $e_k$ , and $Q_{k}^{b}$ denotes the proportion of the router's probability allocated to expert $e_k$ . For a sequence comprising $M$ tokens, $F_{k}^{b}$ and $Q_{k}^{b}$ are defined as: $F_{k}^{b} = \frac{1}{M}\sum_{\ell = 1}^{M}1\{e_{k}\in S^{t,\ell}\}$ and $Q_{k} = \frac{1}{M}\sum_{\ell = 1}^{M}P_{k}^{\ell}$ where $S^{t,\ell}$ is the set of activated experts for token $\ell$ from pre-selected experts set $S^{d,\ell}$ , which is calculated by Equation 7, and $P^{\ell}$ is the probability of selecting each experts for token $\ell$ , calculated by Equation 3.
|
| 181 |
+
|
| 182 |
+
Dynamic Routing Loss in Top- $p$ . The dynamic routing loss aims to prevent dynamic routing from using too many parameters to cheat and losing its ability to selectively choose experts. Therefore, Huang et al. (2024) introduce a constraint on $\mathbf{P}$ and minimize the entropy of the distribution $\mathbf{P}$ , ensuring that every token can focus on as less specific experts as possible, which is formalized as:
|
| 183 |
+
|
| 184 |
+
$$
|
| 185 |
+
\mathcal {L} _ {\text {t o p p}} = - \sum_ {i = 1} ^ {N} P _ {i} * \log \left(P _ {i}\right). \tag {13}
|
| 186 |
+
$$
|
| 187 |
+
|
| 188 |
+
Final Loss. Our approach can be flexibly applied in Top- $k$ and Top- $p$ routing strategies. Therefore, we have two final loss functions for Top- $k$ and Top- $p$ , respectively. It is a combination of the translation loss, task prediction loss, load balance loss at the task level and at the token level, and dynamic loss:
|
| 189 |
+
|
| 190 |
+
$$
|
| 191 |
+
\mathcal {J} _ {t o p k} = \mathcal {L} _ {\mathrm {N M T}} + \alpha \mathcal {L} _ {d p} + \beta \mathcal {L} _ {b d} + \gamma \mathcal {L} _ {b p}, \tag {14}
|
| 192 |
+
$$
|
| 193 |
+
|
| 194 |
+
$$
|
| 195 |
+
\mathcal {J} _ {\text {t o p p}} = \mathcal {J} _ {\text {t o p k}} + \delta \mathcal {L} _ {\text {t o p p}}, \tag {15}
|
| 196 |
+
$$
|
| 197 |
+
|
| 198 |
+
where $\alpha, \beta, \gamma,$ and $\delta$ are hyper-parameters to adjust the contribution among these loss functions, respectively.
|
| 199 |
+
|
| 200 |
+
# 4 Experiments
|
| 201 |
+
|
| 202 |
+
# 4.1 Datasets and Metric
|
| 203 |
+
|
| 204 |
+
Datasets. We use the multi-domain translation dataset proposed by Koehn and Knowles (2017). The dataset mainly covers five diverse domains: IT, Koran, Law, Medical, and Subtitles, which are available in OPUS (Aulamo and Tiedemann, 2019). Following previous work (Gu et al., 2022; Liang et al., 2024), we use the new data splitting released by Aharoni and Goldberg (2020), and perform German to English translation $(\mathrm{De}\rightarrow \mathrm{En})$ . We use the OPUS-16 for multilingual translation following (Zhao et al., 2024b). The OPUS-16 comes from OPUS-100 (Zhang et al., 2020), which includes 16 languages (8 high resource $(>0.9\mathrm{M})$ , 4 medium resource, and 4 low resource $(< 0.1\mathrm{M})$ ). Please refer to Tab. 8 of § 8 for detailed data statistics.
|
| 205 |
+
|
| 206 |
+
Metric. For a fair comparison, we follow previous work (Gu et al., 2022; Zhao et al., 2024b) and adopt the 4-gram case-sensitive BLEU with the SacreBLEU tool $^{2}$ (Post, 2018) and report the statistical significance test (Koehn, 2004). For
|
| 207 |
+
|
| 208 |
+
<table><tr><td></td><td>Models</td><td>IT</td><td>Koran</td><td>Medical</td><td>Law</td><td>Subtitles</td><td>Avg.</td></tr><tr><td rowspan="3">Dense</td><td>SFT-3B</td><td>40.65</td><td>20.4</td><td>51.4</td><td>54.8</td><td>28.33</td><td>39.12</td></tr><tr><td>Trim-MoE (Top-1)</td><td>40.03</td><td>19.55</td><td>51.80</td><td>55.83</td><td>25.50</td><td>38.54</td></tr><tr><td>Trim-MoE (Top-2)</td><td>45.10</td><td>22.68</td><td>51.84</td><td>57.12</td><td>29.02</td><td>41.15</td></tr><tr><td rowspan="4">MoE</td><td>Trim-MoE (Top-p, p=0.5)</td><td>39.39</td><td>19.21</td><td>55.67</td><td>60.18</td><td>29.21</td><td>40.73</td></tr><tr><td>THOR-MoE (Top-1)</td><td>43.96‡</td><td>21.93‡</td><td>52.52†</td><td>56.25</td><td>28.41‡</td><td>40.61‡</td></tr><tr><td>THOR-MoE (Top-2)</td><td>46.00†</td><td>23.35</td><td>55.79‡</td><td>61.06‡</td><td>28.23</td><td>42.89‡</td></tr><tr><td>THOR-MoE (Top-p, p=0.5)</td><td>44.63‡</td><td>22.53‡</td><td>53.58</td><td>58.65</td><td>27.99</td><td>41.48†</td></tr></table>
|
| 209 |
+
|
| 210 |
+
Table 1: BLEU score on multi-domain translation benchmarks with decoder-only architecture. “†” and “‡” denote that statistically significant better than the best result of the counterpart (e.g., THOR-MoE (Top-2) vs. Trim-MoE (Top-2)) with t-test $p < 0.05$ and $p < 0.01$ hereinafter, respectively. The best and second best results are bold and underlined, respectively.
|
| 211 |
+
|
| 212 |
+
multilingual translation, the scores encompass the average ratings across all language pairs, such as English $\rightarrow$ Any (En $\rightarrow$ XX), and Any $\rightarrow$ English (XX $\rightarrow$ En) on the OPUS-16 dataset.
|
| 213 |
+
|
| 214 |
+
# 4.2 Implementation Details
|
| 215 |
+
|
| 216 |
+
In multi-domain translation, we use decoder-only Transformer architecture. Specifically, we use Qwen1.5-MoE-A2.7B (Team, 2024a). It has 14.3B parameters (60 non shared experts + 4 shared experts) in total and 2.7B activated parameters (4 non shared experts + 4 shared experts) during runtime. Due to limited GPU resource, we used a trimmed version, which has 3.5B parameters (8 non shared experts + 4 shared experts) in total and 2.3B activated parameters (2 non shared experts + 4 shared experts). To keep its capacity, we initialize the trimmed model with Qwen1.5-MoE-A2.7B and denote it as Trim-MoE. During training, we use Llama-Factory (Zheng et al., 2024) to instruct-tune LLMs. All LLMs are tuned on an $8 \times$ NVIDIA A100 GPUs (40G) with 1e-5 learning rate. We set gradient accumulation to 16 and batch size to 1, which gives us $2^{*}8^{*}16^{*}1$ batch in total. We use the DeepSpeed optimization (Rasley et al., 2020), and set ZeRO-3 optimization. Following Qin et al. (2024), we set the number of training epochs to 3. We set hyper-parameters $\alpha$ , $\beta$ , $\gamma$ , and $\delta$ to 1e-2, 1e-2, 1e-2, and 1e-4, which are determined by a grid search.
|
| 217 |
+
|
| 218 |
+
In multilingual translation, we follow (Zhao et al., 2024b) and compare our method with the Transformer-Base model (as Dense) and its MoE variants that have 6 encoder and decoder layers, 32 experts. The input and hidden dimensions of all feed-forward networks are 512 and 2048. We set the training processes to 35K iterations with
|
| 219 |
+
|
| 220 |
+
a learning rate of 5e-4, which follows the inverse square root with 4,000 warm-up steps. To keep balanced training, we use temperature-based data sampling strategy with temperature 1.5. We set hyper-parameters $\alpha$ , $\beta$ , $\gamma$ , and $\delta$ to 1e-2, 5e-2, 5e-2, and 1e-4, which are determined by a grid search.
|
| 221 |
+
|
| 222 |
+
# 4.3 Comparison Models
|
| 223 |
+
|
| 224 |
+
Our comparison models mainly include two types: Decoder-only and Encoder-Decoder based.
|
| 225 |
+
|
| 226 |
+
Decoder-only. We fine-tune two dense models based on Qwen2.5-3B (Team, 2024b), which have similar parameters with the activated parameter and denoted as SFT-3B. Besides, based on the TrimMoE-A2.3B model, we also fine-tuned three MoE models with Top-1, Top-2, and Top- $p$ routing strategy.
|
| 227 |
+
|
| 228 |
+
Encoder-Decoder. There are three types of comparison models: vanilla dense model, vanilla MoE model, and enhanced MoE models via language knowledge. We use the Transformer-Base model as Dense model. For vanilla MoE model, the Switch Transformer (Fedus et al., 2022) with a top-1 token-based routing (as ST-MoE) and GShard (Lepikhin et al., 2021a) with a top-2 token-based routing (as GS-MoE) are adopted. For Language-specific MoE models, the LS-MoE with fixed routing inspired by (Pires et al., 2023), assigning 2 non-overlapping experts for tokens according to their source language in the encoder and target language in the decoder; Hybrid-MoE (Kudugunta et al., 2021), with a top-2 token routing in the encoder and a top-2 target language routing in the decoder side; Residual-MoE (Elbayad et al., 2023; Rajbhandari et al., 2022; Zhang et al., 2021) that augments each MoE layer with a shared feed-forward network through a binary gate function; Lingual
|
| 229 |
+
|
| 230 |
+
MoE (Zhao et al., 2024b) stands for an MoE model with linguistic-guided routing and dynamic expert allocation, where the first-level language router selects the top 8 experts and the second-level token router activates the dynamical number of experts.
|
| 231 |
+
|
| 232 |
+
# 5 Main Results
|
| 233 |
+
|
| 234 |
+
Table 1 shows main results on the multi-domain translation benchmark with decoder-only architecture. Table 2 presents main results on the multilingual translation with encoder-decoder architecture. For a fair comparison, all models are trained and assessed on the OPUS-16 dataset with Transformer-Base as the backbone architecture.
|
| 235 |
+
|
| 236 |
+
# 5.1 Results on Multi-Domain Translation
|
| 237 |
+
|
| 238 |
+
Table 1 shows that the Trim-MoE-based models generally surpass the dense one. For example, the Trim-MoE (Top-2) outperforms SFT-3B model by average 2 BLEU scores where the activated parameters is less than dense model (2.3B vs. 3B), showing the effectiveness of MoE model. Furthermore, the proposed THOR-MoE significantly and consistently surpasses the counterpart of Trim-MoE-based one. For instance, the THOR-MoE (Top-2) outperforms the Trim-MoE (Top-2) by averaged 1.74 BLEU scores. This clear advantage confirms the superiority of incorporating domain knowledge and context knowledge into the routing. What's important, the proposed approach is compatible with the Top- $k$ (Shazeer et al., 2017a) and Top $p$ (Huang et al., 2024) routing strategies, validating the generalization of THOR-MoE, which can be a plug-and-play module. Besides, we find that the scores on the same domain (e.g., Law) change largely. The reason may be that the data distribution is unbalanced. We also list the results in terms of COMET (Rei et al., 2020) score in Table 3 and we can conclude the similar findings.
|
| 239 |
+
|
| 240 |
+
# 5.2 Results on Multilingual Translation
|
| 241 |
+
|
| 242 |
+
Table 2 summarizes the results and we can conclude several observations:
|
| 243 |
+
|
| 244 |
+
THOR-MoE vs. Dense and Vanilla MoE Baselines. The THOR-MoE substantially surpasses the Dense and vanilla MoE multilingual translation baselines with a large margin. Specifically, compared with Dense and ST-MoE, the THOR-MoE (Top-p) achieves $\{5.39\%, 3.99\%, 4.70\% \}$ and $2.46\%, 0.55\%, 1.51\%$ averaged improvement in terms of BLEU score for Avg1., Avg2., and All
|
| 245 |
+
|
| 246 |
+
Avg., respectively. This significant margin demonstrates the effectiveness of hierarchical language-guided routing and context-responsive routing.
|
| 247 |
+
|
| 248 |
+
THOR-MoE vs. Language-Guided MoE models. The THOR-MoE also consistently outperforms language-guided MoE models, including LS-MoE, hybrid-MoE, Residual-MoE, and Linguual-MoE. It shows again that the superiority of hierarchical language-guided routing and context-responsive routing. In detail, the Linguual-MoE performs the highest in baselines and it also employs a hierarchical language-group-guided and dynamical routing, which introduces the hard language id embedding and fails to consider code-mixed cases and that the token in different language can be the same (e.g., 'Internet' in German and English). In contrast, THOR-MoE applies a mixed language representation where the language ids are predicted, which comprehensively incorporates the languages knowledge. Furthermore, the dynamical routing in Linguual-MoE does not incorporate the context information. The context generally knows which token is difficult or not in a global view. The THOR-MoE fully considers the above issues and obtains better results.
|
| 249 |
+
|
| 250 |
+
# 6 Analysis
|
| 251 |
+
|
| 252 |
+
# 6.1 Ablation Study
|
| 253 |
+
|
| 254 |
+
We conduct ablation studies to investigate how well hierarchical context-responsive routing of THORMoE works. We conclude two findings from the results in Tab. 4.
|
| 255 |
+
|
| 256 |
+
(1) "w/o hierarchical task-guided routing": i.e., without using any task-related routing and decaying to vanilla manner (select experts from full set of experts), the model performance greatly degrades on both translation tasks. It shows the necessity of using task-guided routing in a hierarchical manner.
|
| 257 |
+
(2) "w/o context-responsive routing": the model performance becomes worse on both tasks when removing context. This shows that our context-responsive routing indeed can enhance the routing effectiveness and guarantee the token can be assigned to suitable and specialized experts with the indication of context, which thus benefits the model performance on both translation tasks.
|
| 258 |
+
|
| 259 |
+
# 6.2 Comparison among Different Task Representations
|
| 260 |
+
|
| 261 |
+
In this section, we aim to investigate the impact of task representation in different manners. Table 5
|
| 262 |
+
|
| 263 |
+
<table><tr><td rowspan="2" colspan="2">Models</td><td colspan="4">En→XX</td><td colspan="4">XX→En</td><td rowspan="2">Avg.</td></tr><tr><td>high</td><td>medium</td><td>low</td><td>Avg1.</td><td>high</td><td>medium</td><td>low</td><td>Avg2.</td></tr><tr><td rowspan="5">Dense</td><td>Transformer-base</td><td>25.37</td><td>39.12</td><td>14.78</td><td>26.16</td><td>28.81</td><td>39.24</td><td>24.21</td><td>30.27</td><td>28.21</td></tr><tr><td>GS-MoE</td><td>25.55</td><td>40.71</td><td>18.97</td><td>27.70</td><td>28.77</td><td>41.70</td><td>29.25</td><td>32.12</td><td>29.91</td></tr><tr><td>ST-MoE</td><td>26.55</td><td>43.04</td><td>20.23</td><td>29.09</td><td>29.94</td><td>44.00</td><td>30.94</td><td>33.71</td><td>31.40</td></tr><tr><td>LS-MoE</td><td>20.06</td><td>37.31</td><td>11.72</td><td>22.29</td><td>23.69</td><td>42.99</td><td>32.01</td><td>30.60</td><td>26.44</td></tr><tr><td>Hybird-MoE</td><td>24.56</td><td>31.70</td><td>13.38</td><td>23.55</td><td>29.59</td><td>41.74</td><td>27.81</td><td>32.18</td><td>27.85</td></tr><tr><td rowspan="5">MoE</td><td>Residual-MoE</td><td>26.52</td><td>43.49</td><td>21.58</td><td>29.53</td><td>29.84</td><td>43.94</td><td>31.25</td><td>33.72</td><td>31.62</td></tr><tr><td>Lingual-MoE</td><td>27.11</td><td>46.24</td><td>23.34</td><td>30.95</td><td>29.87</td><td>43.49</td><td>32.02</td><td>33.81</td><td>32.38</td></tr><tr><td>THOR-MoE (Top-1)</td><td>27.21</td><td>46.37</td><td>23.88</td><td>31.17</td><td>29.68</td><td>44.01</td><td>32.58</td><td>33.99</td><td>32.57</td></tr><tr><td>THOR-MoE (Top-2)</td><td>27.88†</td><td>47.29†</td><td>24.85†</td><td>31.98†</td><td>30.38†</td><td>44.52†</td><td>33.26†</td><td>34.64†</td><td>33.31†</td></tr><tr><td>THOR-MoE (Top-p)</td><td>27.63†</td><td>46.82†</td><td>24.15†</td><td>31.55†</td><td>29.97</td><td>44.18†</td><td>32.96†</td><td>34.26</td><td>32.91†</td></tr></table>
|
| 264 |
+
|
| 265 |
+
Table 2: Averaged BLEU scores on multilingual translation with encoder-decoder architectures. “†” denotes that statistically significant better than Lingual-MoE with t-test $p < 0.05$ .
|
| 266 |
+
|
| 267 |
+
<table><tr><td>Models</td><td>IT</td><td>Koran</td><td>Medical</td><td>Law</td><td>Subtitles</td><td>Avg.</td></tr><tr><td>SFT-3B</td><td>86.39</td><td>73.17</td><td>85.43</td><td>87.19</td><td>78.52</td><td>82.14</td></tr><tr><td>THOR-MoE (Top-p)</td><td>87.31</td><td>74.09</td><td>86.09</td><td>87.88</td><td>79</td><td>82.87</td></tr></table>
|
| 268 |
+
|
| 269 |
+
Table 3: COMET scores on multi-domain translation benchmarks with decoder-only architecture.
|
| 270 |
+
|
| 271 |
+
<table><tr><td></td><td>Multi-Domain</td><td>Multilingual</td></tr><tr><td>THOR-MoE (Top-p)</td><td>41.48</td><td>32.91</td></tr><tr><td>w/o hierarchical task-guided routing</td><td>40.16</td><td>31.57</td></tr><tr><td>w/o context-responsive routing</td><td>40.74</td><td>32.12</td></tr></table>
|
| 272 |
+
|
| 273 |
+
shows the results where the 'Non-Mixed Representation' denotes that directly uses the automatically predict task label to extract corresponding task representation and 'Golden Representation' indicates using the golden task label to extract corresponding representation. We conclude that the task knowledge indeed has a positive impact on translation performance (vs. baseline). We also observe that using the automatically predicted task labels (actually the mixed task representation) shows better results than using ground truth and Non-Mixed manner in terms of Avg. BLEU scores. The reason may be that the mixed task representation has certain fault tolerance. We also analyze the accuracy of task prediction to further show its quality
|
| 274 |
+
|
| 275 |
+
Table 4: Ablation Study with Avg. results.
|
| 276 |
+
|
| 277 |
+
<table><tr><td></td><td>Multi-Domain</td><td>Multilingual</td></tr><tr><td>baseline (w/o any task Rep.)</td><td>40.74</td><td>32.12</td></tr><tr><td>Non-Mixed Rep.</td><td>40.95</td><td>32.44</td></tr><tr><td>Golden Rep.</td><td>41.32</td><td>32.78</td></tr><tr><td>THOR-MoE (Mixed manner)</td><td>41.48</td><td>32.91</td></tr></table>
|
| 278 |
+
|
| 279 |
+
Table 5: The Avg. results of different representation (Rep.) manner during hierarchical task-guided routing.
|
| 280 |
+
|
| 281 |
+
<table><tr><td></td><td>Multi-Domain</td><td>Multilingual</td></tr><tr><td>baseline (w/o any task Rep.)</td><td>40.74</td><td>32.12</td></tr><tr><td>Infuse task Rep. into token Rep.</td><td>40.95</td><td>32.44</td></tr><tr><td>THOR-MoE (Hierarchical manner)</td><td>41.48</td><td>32.91</td></tr></table>
|
| 282 |
+
|
| 283 |
+
Table 6: The investigation of why hierarchical manner.
|
| 284 |
+
|
| 285 |
+

|
| 286 |
+
Figure 2: Average activated experts number across training steps on the multi-domain translation task.
|
| 287 |
+
|
| 288 |
+
in Appendix A.
|
| 289 |
+
|
| 290 |
+
# 6.3 Why Hierarchical Design?
|
| 291 |
+
|
| 292 |
+
In this section, we aim to investigate the manner of using mixed task representation. Table 6 shows that introducing task knowledge indeed helps tokens route well and achieve improvement (vs. baseline). The hierarchical manner greatly outperforms the direct infusion with token representation before routing, proving the effectiveness of hierarchical design, which unlock the potential of MoE with the help of the mixed task knowledge.
|
| 293 |
+
|
| 294 |
+
<table><tr><td>Domains</td><td>IT</td><td>Koran</td><td>Medical</td><td>Law</td><td>Subtitles</td><td>Avg.</td></tr><tr><td>Top-p</td><td>1.87</td><td>1.95</td><td>1.82</td><td>1.92</td><td>1.77</td><td>1.87</td></tr><tr><td>Top-p w/ ctx</td><td>1.37</td><td>1.61</td><td>1.42</td><td>1.56</td><td>1.31</td><td>1.45</td></tr></table>
|
| 295 |
+
|
| 296 |
+
Table 7: Average activated experts (AE) in different domain translation tasks. 'Top- $p$ w/ctx' denotes the proposed method to infuse the context during routing.
|
| 297 |
+
|
| 298 |
+
# 6.4 Analysis of Efficient Training and Inference
|
| 299 |
+
|
| 300 |
+
To further explore whether our proposed method is efficient in training and inference, we calculate the average number of experts activated by the model on multi-domain translation tasks. Figure 2 and Table 7 shows the average number of experts activated per token across various translation tasks during training and inference. The result is averaged across all the layers of transformers.
|
| 301 |
+
|
| 302 |
+
During training, we can see that our method converges faster to use less activated experts than the vanilla Top- $p$ (Huang et al., 2024). During inference, we can observe that across all five tasks, the number of activated experts is less than original Top- $p$ routing, averaging 1.45 activated experts (less than $22\%$ activated parameters) with better performance. Both findings show that the context plays a key role in guiding token routing.
|
| 303 |
+
|
| 304 |
+
# 7 Related Work
|
| 305 |
+
|
| 306 |
+
Neural Machine Translation. The NMT have received remarkable attention in the era of LLMs (Jawahar et al., 2023b; Zhou et al., 2023). Previous work mainly focuses on the continual learning of new domains (Gu and Feng, 2020; Gu et al., 2022; Liang et al., 2024), introducing ready-made task-related (linguistics) knowledge via adapter (Zhang et al., 2020, 2021), parameter sharing (Aharoni et al., 2019), or task-specific modules (Pires et al., 2023), and multilingual representation learning (Yang et al., 2021).
|
| 307 |
+
|
| 308 |
+
Mixture-of-Experts. Jacobs et al. (1991) first proposes the concept of MoE, which consists of a series of network sub-modules. The Sparately-gated MoE, as a variant, which only activates a few expert networks for each input, has been shown its superiority in diverse NLP and computer vision applications(Shazeer et al., 2017b; Zoph et al., 2022). In the context of NMT, most of previous work focuses on addressing the over/under-fitting (Elbayad et al., 2023) via regularization strategies (Elbayad et al., 2023) or modularizing MoE (Li et al., 2023c;
|
| 309 |
+
|
| 310 |
+
Zhang et al., 2024), and incorporating task-related knowledge (language, domain etc) (Kudugunta et al., 2021; Zhao et al., 2024b; Pham et al., 2023; Gururangan et al., 2022; Li et al., 2023b), achieving impressive performance. Besides, there are some studies aim to improve the training/inference efficiency of routing via adaptive computation (Jawahar et al., 2023a) or reducing the number of activated experts (Li et al., 2023a; Huang et al., 2024).
|
| 311 |
+
|
| 312 |
+
Different from these prior works that directly use the task-related knowledge, we propose a hierarchical context-responsive routing method where we automatically extract corresponding domain/language knowledge and design a hierarchical network to guide the task-level routing. Besides, we aim to help each token accurately select specialized and suitable experts and thus we incorporate the context to guide the token routing rather than relying on the localized token only in existing work. In this manner, the context-responsive routing can improve the training or inference efficiency, which is compatible with previous Top- $k$ and Top- $p$ routing policies.
|
| 313 |
+
|
| 314 |
+
# 8 Conclusion
|
| 315 |
+
|
| 316 |
+
In this paper, we propose a new hierarchical task-gudied and context-responsive routing framework for NMT. To automatically obtain the task knowledge, we propose to predict it and then use mixed task representation. Consequently, we design a hierarchical routing at the task level and the token level. Further, we propose to inject context to enhance the effectiveness of token routing. Extensive experiments on multi-domain and multilingual translation benchmarks show the superiority and generalization of our proposed approach.
|
| 317 |
+
|
| 318 |
+
# Limitations
|
| 319 |
+
|
| 320 |
+
While we introduce the mixed domain/language and context knowledge into routing in hierarchical manner and achieve good results, there are some limitations worth considering to study in future work: (1) In this study, the design relies on the prior (the number of tasks and language groups), which may limit its extension to broader topics (Li and Zhou, 2025); (2) This work only conduct experiments on translation tasks and does not conduct experiments other generation or discriminative tasks.
|
| 321 |
+
|
| 322 |
+
# References
|
| 323 |
+
|
| 324 |
+
Roee Aharoni and Yoav Goldberg. 2020. Unsupervised domain clusters in pretrained language models. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7747-7763, Online. Association for Computational Linguistics.
|
| 325 |
+
Roee Aharoni, Melvin Johnson, and Orhan First. 2019. Massively multilingual neural machine translation. 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 3874-3884, Minneapolis, Minnesota. Association for Computational Linguistics.
|
| 326 |
+
Mikko Aulamo and Jörg Tiedemann. 2019. The OPUS resource repository: An open package for creating parallel corpora and machine translation services. In Proceedings of the 22nd Nordic Conference on Computational Linguistics, NoDaLiDa 2019, Turku, Finland, September 30 - October 2, 2019, pages 389-394.
|
| 327 |
+
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.
|
| 328 |
+
Maha Elbayad, Anna Sun, and Shruti Bhosale. 2023. Fixing MoE over-fitting on low-resource languages in multilingual machine translation. In *Findings of the Association for Computational Linguistics: ACL* 2023, pages 14237-14253, Toronto, Canada. Association for Computational Linguistics.
|
| 329 |
+
Angela Fan, Shruti Bhosale, Holger Schwenk, Zhiyi Ma, Ahmed El-Kishky, Siddharth Goyal, Mandep Baines, Onur Celebi, Guillaume Wenzek, Vishrav Chaudhary, Naman Goyal, Tom Birch, Vitaliy Liptchinsky, Sergey Edunov, Edouard Grave, Michael Auli, and Armand Joulin. 2020. Beyond english-centric multilingual machine translation. CoRR, abs/2010.11125.
|
| 330 |
+
William Fedus, Barret Zoph, and Noam Shazeer. 2022. Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. Journal of Machine Learning Research, 23(120):1-39.
|
| 331 |
+
Fabian Gloeckle, Badr Youbi Idrissi, Baptiste Roziere, David Lopez-Paz, and Gabriel Synnaeve. 2024. Better & faster large language models via multi-token prediction. Preprint, arXiv:2404.19737.
|
| 332 |
+
Shuhao Gu and Yang Feng. 2020. Investigating catastrophic forgetting during continual training for neural machine translation. In Proceedings of the 28th International Conference on Computational Linguistics,
|
| 333 |
+
|
| 334 |
+
pages 4315-4326, Barcelona, Spain (Online). International Committee on Computational Linguistics.
|
| 335 |
+
Shuhao Gu, Bojie Hu, and Yang Feng. 2022. Continual learning of neural machine translation within low-forgetting risk regions. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 1707-1718, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 336 |
+
Suchin Gururangan, Mike Lewis, Ari Holtzman, Noah A. Smith, and Luke Zettlemoyer. 2022. DEMix layers: Disentangling domains for modular language modeling. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 5557-5576, Seattle, United States. Association for Computational Linguistics.
|
| 337 |
+
Quzhe Huang, Zhenwei An, Nan Zhuang, Mingxu Tao, Chen Zhang, Yang Jin, Kun Xu, Kun Xu, Liwei Chen, Songfang Huang, and Yansong Feng. 2024. Harder task needs more experts: Dynamic routing in MoE models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12883-12895, Bangkok, Thailand. Association for Computational Linguistics.
|
| 338 |
+
Robert A. Jacobs, Michael I. Jordan, Steven J. Nowlan, and Geoffrey E. Hinton. 1991. Adaptive mixtures of local experts. Neural Comput., 3(1):79-87.
|
| 339 |
+
Ganesh Jawahar, Subhabrata Mukherjee, Xiaodong Liu, Young Jin Kim, Muhammad Abdul-Mageed, Laks Lakshmanan, V.S., Ahmed Hassan Awadallah, Sebastian Bubeck, and Jianfeng Gao. 2023a. AutoMoE: Heterogeneous mixture-of-experts with adaptive computation for efficient neural machine translation. In Findings of the Association for Computational Linguistics: ACL 2023, pages 9116-9132, Toronto, Canada. Association for Computational Linguistics.
|
| 340 |
+
Ganesh Jawahar, Subhabrata Mukherjee, Xiaodong Liu, Young Jin Kim, Muhammad Abdul-Mageed, Laks V. S. Lakshmanan, Ahmed Hassan Awadallah, Sébastien Bubeck, and Jianfeng Gao. 2023b. Automoe: Heterogeneous mixture-of-experts with adaptive computation for efficient neural machine translation. In *Findings of the Association for Computational Linguistics: ACL 2023*, Toronto, Canada, July 9-14, 2023, pages 9116-9132. Association for Computational Linguistics.
|
| 341 |
+
Songtao Jiang, Tuo Zheng, Yan Zhang, Yeying Jin, Li Yuan, and Zuozhu Liu. 2024. Med-MoE: Mixture of domain-specific experts for lightweight medical vision-language models. In *Findings of the Association for Computational Linguistics: EMNLP* 2024, pages 3843-3860, Miami, Florida, USA. Association for Computational Linguistics.
|
| 342 |
+
Philipp Koehn. 2004. Statistical significance tests for machine translation evaluation. In Proceedings of EMNLP, pages 388-395.
|
| 343 |
+
|
| 344 |
+
Philipp Koehn and Rebecca Knowles. 2017. Six challenges for neural machine translation. In Proceedings of the First Workshop on Neural Machine Translation, NMT@ACL 2017, Vancouver, Canada, August 4, 2017, pages 28-39.
|
| 345 |
+
Sneha Kudugunta, Yanping Huang, Ankur Bapna, Maxim Krikun, Dmitry Lepikhin, Minh-Thang Luong, and Orhan First. 2021. Beyond distillation: Task-level mixture-of-experts for efficient inference. In Findings of the Association for Computational Linguistics: EMNLP 2021, pages 3577-3599, Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 346 |
+
Dmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen, Orhan First, Yanping Huang, Maxim Krikun, Noam Shazeer, and Zhifeng Chen. 2021a. {GS}hard: Scaling giant models with conditional computation and automatic sharding. In International Conference on Learning Representations.
|
| 347 |
+
Dmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen, Orhan First, Yanping Huang, Maxim Krikun, Noam Shazeer, and Zhifeng Chen. 2021b. Gshard: Scaling giant models with conditional computation and automatic sharding. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenReview.net.
|
| 348 |
+
Jiamin Li, Qiang Su, Yitao Yang, Yimin Jiang, Cong Wang, and Hong Xu. 2023a. Adaptive gating in mixture-of-experts based language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 3577-3587, Singapore. Association for Computational Linguistics.
|
| 349 |
+
Margaret Li, Suchin Gururangan, Tim Dettmers, Mike Lewis, Tim Althoff, Noah A. Smith, and Luke Zettle-moyer. 2023b. Branch-train-merge: Embarrassingly parallel training of expert language models.
|
| 350 |
+
Shangjie Li, Xiangpeng Wei, Shaolin Zhu, Jun Xie, Baosong Yang, and Deyi Xiong. 2023c. MMNMT: Modularizing multilingual neural machine translation with flexibly assembled MoE and dense blocks. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 4978-4990, Singapore. Association for Computational Linguistics.
|
| 351 |
+
Ziyue Li and Tianyi Zhou. 2025. Your mixture-of-experts LLM is secretly an embedding model for free. In The Thirteenth International Conference on Learning Representations.
|
| 352 |
+
Yunlong Liang, Fandong Meng, Jiaan Wang, Jinan Xu, Yufeng Chen, and Jie Zhou. 2024. Continual learning with semi-supervised contrastive distillation for incremental neural machine translation. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 10914-10928, Bangkok, Thailand. Association for Computational Linguistics.
|
| 353 |
+
|
| 354 |
+
Hai Pham, Young Jin Kim, Subhabrata Mukherjee, David P. Woodruff, Barnabas Poczos, and Hany Hassan. 2023. Task-based MoE for multitask multilingual machine translation. In Proceedings of the 3rd Workshop on Multi-lingual Representation Learning (MRL), pages 164–172, Singapore. Association for Computational Linguistics.
|
| 355 |
+
Telmo Pires, Robin Schmidt, Yi-Hsiu Liao, and Stephan Peitz. 2023. Learning language-specific layers for multilingual machine translation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 14767-14783, Toronto, Canada. Association for Computational Linguistics.
|
| 356 |
+
Matt Post. 2018. A call for clarity in reporting BLEU scores. In Proceedings of WMT, pages 186-191.
|
| 357 |
+
Yiwei Qin, Xuefeng Li, Haoyang Zou, Yixiu Liu, Shijie Xia, Zhen Huang, Yixin Ye, Weizhe Yuan, Hector Liu, Yuanzhi Li, et al. 2024. O1 replication journey: A strategic progress report-part 1. arXiv preprint arXiv:2410.18982.
|
| 358 |
+
Samyam Rajbhandari, Conglong Li, Zhewei Yao, Minjia Zhang, Reza Yazdani Aminabadi, Ammar Ahmad Awan, Jeff Rasley, and Yuxiong He. 2022. Deepspeed-moe: Advancing mixture-of-experts inference and training to power next-generation ai scale. Preprint, arXiv:2201.05596.
|
| 359 |
+
Jeff Rasley, Samyam Rajbhandari, Olatunj Ruwase, and Yuxiong He. 2020. Deepspeed: System optimizations enable training deep learning models with over 100 billion parameters. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 3505-3506.
|
| 360 |
+
Ricardo Rei, Craig Stewart, Ana C Farinha, and Alon Lavie. 2020. COMET: A neural framework for MT evaluation. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 2685-2702, Online. Association for Computational Linguistics.
|
| 361 |
+
Noam Shazeer, *Azalia Mirhoseini, *Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. 2017a. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. In International Conference on Learning Representations.
|
| 362 |
+
Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc V. Le, Geoffrey E. Hinton, and Jeff Dean. 2017b. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. In 5th International Conference on Learning Representations, ICLR 2017, Toulouse, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net.
|
| 363 |
+
Qwen Team. 2024a. Qwen1.5-moe: Matching 7b model performance with 1/3 activated parameters".
|
| 364 |
+
Qwen Team. 2024b. Qwen2.5: A party of foundation models.
|
| 365 |
+
|
| 366 |
+
An Wang, Xingwu Sun, Ruobing Xie, Shuaipeng Li, Ji- aqi Zhu, Zhen Yang, Pinxue Zhao, J. N. Han, Zhanhui Kang, Di Wang, Naoaki Okazaki, and Cheng zhong Xu. 2024. Hmoe: Heterogeneous mixture of experts for language modeling. Preprint, arXiv:2408.10681.
|
| 367 |
+
Junhong Wu, Yuchen Liu, and Chengqing Zong. 2024. F-MALLOC: Feed-forward memory allocation for continual learning in neural machine translation. 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 7180-7192, Mexico City, Mexico. Association for Computational Linguistics.
|
| 368 |
+
Yilin Yang, Akiko Eriguchi, Alexandre Muzio, Prasad Tadepalli, Stefan Lee, and Hany Hassan. 2021. Improving multilingual translation by representation and gradient regularization. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 7266-7279, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 369 |
+
Zihao Zeng, Yibo Miao, Hongcheng Gao, Hao Zhang, and Zhijie Deng. 2024. AdaMoE: Token-adaptive routing with null experts for mixture-of-experts language models. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 6223-6235, Miami, Florida, USA. Association for Computational Linguistics.
|
| 370 |
+
Biao Zhang, Ankur Bapna, Rico Sennrich, and Orhan First. 2021. Share or not? learning to schedule language-specific capacity for multilingual translation. In International Conference on Learning Representations.
|
| 371 |
+
Biao Zhang, Philip Williams, Ivan Titov, and Rico Sennrich. 2020. Improving massively multilingual neural machine translation and zero-shot translation. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 1628-1639, Online. Association for Computational Linguistics.
|
| 372 |
+
Fan Zhang, Mei Tu, Song Liu, and Jinyao Yan. 2024. A lightweight mixture-of-experts neural machine translation model with stage-wise training strategy. In Findings of the Association for Computational Linguistics: NAACL 2024, pages 2381-2392, Mexico City, Mexico. Association for Computational Linguistics.
|
| 373 |
+
Hao Zhao, Zihan Qiu, Huijia Wu, Zili Wang, Zhaofeng He, and Jie Fu. 2024a. HyperMoE: Towards better mixture of experts via transferring among experts. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 10605-10618, Bangkok, Thailand. Association for Computational Linguistics.
|
| 374 |
+
Xinyu Zhao, Xuxi Chen, Yu Cheng, and Tianlong Chen. 2024b. Sparse moe with language guided routing for
|
| 375 |
+
|
| 376 |
+
multilingual machine translation. In The Twelfth International Conference on Learning Representations.
|
| 377 |
+
Yaowei Zheng, Richong Zhang, Junhao Zhang, Yanhan Ye, and Zheyan Luo. 2024. LlamaFactory: Unified efficient fine-tuning of $100+$ language models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 3: System Demonstrations), pages 400-410, Bangkok, Thailand. Association for Computational Linguistics.
|
| 378 |
+
Chulun Zhou, Yunlong Liang, Fandong Meng, Jinan Xu, Jinsong Su, and Jie Zhou. 2023. RC3: Regularized contrastive cross-lingual cross-modal pre-training. In *Findings of the Association for Computational Linguistics: ACL* 2023, pages 11747–11762, Toronto, Canada. Association for Computational Linguistics.
|
| 379 |
+
Barret Zoph, Irwan Bello, Sameer Kumar, Nan Du, Yanping Huang, Jeff Dean, Noam Shazeer, and William Fedus. 2022. St-moe: Designing stable and transferable sparse expert models. arXiv preprint arXiv:2202.08906.
|
| 380 |
+
Simiao Zuo, Xiaodong Liu, Jian Jiao, Young Jin Kim, Hany Hassan, Ruofei Zhang, Jianfeng Gao, and Tuo Zhao. 2022. Taming sparsely activated transformer with stochastic experts. In *The Tenth International Conference on Learning Representations*, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net.
|
| 381 |
+
|
| 382 |
+
<table><tr><td></td><td>Tasks/Groups</td><td>Train</td><td>Valid</td><td>Test</td></tr><tr><td rowspan="5">Multi-Domain Translation Dataset (De→En)</td><td>IT</td><td>0.22M</td><td></td><td></td></tr><tr><td>Koran</td><td>18K</td><td></td><td></td></tr><tr><td>Law</td><td>0.47M</td><td>2000</td><td>2000</td></tr><tr><td>Medical</td><td>0.25M</td><td></td><td></td></tr><tr><td>Subtitles</td><td>0.5M</td><td></td><td></td></tr><tr><td>Multilingual Translation Dataset</td><td>16</td><td>17,559,950</td><td>30*1000</td><td>30*1000</td></tr></table>
|
| 383 |
+
|
| 384 |
+
Table 8: The data statistic of the multi-domain translation dataset and multilingual translation (OPUS-16) dataset. The number in Train/Valid/Test columns denotes the number of sentence pairs in each domain/language pair.
|
| 385 |
+
|
| 386 |
+
<table><tr><td>Models</td><td>IT</td><td>Koran</td><td>Medical</td><td>Law</td><td>Subtitles</td><td>Avg.</td></tr><tr><td>Qwen1.5-MoE-A2.7B (SFT, Top-8)</td><td>45.59</td><td>23.31</td><td>55.67</td><td>60.18</td><td>29.21</td><td>42.79</td></tr><tr><td>THOR-MoE (Top-p, p=0.5)</td><td>46.76</td><td>24.03</td><td>35.9</td><td>61.13</td><td>30.29</td><td>43.62</td></tr><tr><td>Qwen1.5-MoE-A2.7B (SFT, Top-8)</td><td>87.3</td><td>74.24</td><td>85.85</td><td>87.78</td><td>79.36</td><td>82.91</td></tr><tr><td>THOR-MoE (Top-p, p=0.5)</td><td>87.45</td><td>74.58</td><td>86.45</td><td>88.75</td><td>80.23</td><td>83.49</td></tr></table>
|
| 387 |
+
|
| 388 |
+
# A Task Prediction
|
| 389 |
+
|
| 390 |
+
We also evaluate the performance of the Task Predictor to show whether the classifier can accurately predict suitable labels. The results are $82.45\%$ and $64.89\%$ for domain and language prediction, respectively. It suggests that our classifier can predict suitable labels and further provide effective mixed task representation for routing.
|
| 391 |
+
|
| 392 |
+
# B Comparison to Larger Model
|
| 393 |
+
|
| 394 |
+
We implemented our proposed method based on a large-scale Qwen1.5-MoE-A2.7B (totally 14B, activated 2.7B, denoted as THOR-MoE). Besides, we also fine-tuned the vanilla Qwen1.5-MoE-A2.7B model as the baseline. The averaged COMET and BLEU results shown in Table 9 demonstrate that the THOR-MoE model at the 14B level also achieve better results than fine-tuned Qwen1.5-MoE-A2.7B model in terms of BLEU and COMET scores.
|
| 395 |
+
|
| 396 |
+
# C Analysis of Domain Similarity
|
| 397 |
+
|
| 398 |
+
Following previous work (Wu et al., 2024), we conduct some analysis for domain similarity. Specifically, we sum the predicted soft label and then normalize it. The vertical axis and horizontal axis are unsupervised cluster label (clustering with BERT
|
| 399 |
+
|
| 400 |
+
Table 9: BLEU (top block) / COMET (below block) scores on multi-domain translation benchmarks with decoder-only architecture. Note that top-8 means it activates 4 shared experts and 4 non-shared experts out of 60 experts.
|
| 401 |
+
|
| 402 |
+
<table><tr><td></td><td>IT</td><td>Koran</td><td>Medical</td><td>Law</td><td>Subtitles</td></tr><tr><td>IT</td><td>0.833</td><td>0.027</td><td>0.055</td><td>0.0219</td><td>0.065</td></tr><tr><td>Koran</td><td>0.012</td><td>0.817</td><td>0.003</td><td>0.019</td><td>0.149</td></tr><tr><td>Medical</td><td>0.111</td><td>0.004</td><td>0.737</td><td>0.135</td><td>0.013</td></tr><tr><td>Law</td><td>0.142</td><td>0.008</td><td>0.032</td><td>0.798</td><td>0.02</td></tr><tr><td>Subtitles</td><td>0.058</td><td>0.076</td><td>0.009</td><td>0.006</td><td>0.851</td></tr></table>
|
| 403 |
+
|
| 404 |
+
Table 10: BLEU (top block) / COMET (below block) scores on multi-domain translation benchmarks with decoder-only architecture. Note top-8 means it activates 4 shared experts and 4 non-shared experts out of 60 experts.
|
| 405 |
+
|
| 406 |
+
base and $k = 5$ ) and predicted soft labels, respectively. The similarity matrix are shown in Table 10.
|
| 407 |
+
|
| 408 |
+
The results show that there exist some sentences that are assigned to a cluster of another domain (i.e., hard cases). This makes sense as the mixed representation can capture such domain information, making the proposed approach works (the reason).
|
2025/THOR-MoE_ Hierarchical Task-Guided and Context-Responsive Routing for Neural Machine Translation/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b030181c0d458ee1a249eb7a65010c0376abf91be09eb9fcd6339cf8d8670fd6
|
| 3 |
+
size 488140
|
2025/THOR-MoE_ Hierarchical Task-Guided and Context-Responsive Routing for Neural Machine Translation/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TRACT_ Regression-Aware Fine-tuning Meets Chain-of-Thought Reasoning for LLM-as-a-Judge/142e9116-0830-41df-88fb-0f4abce5fead_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TRACT_ Regression-Aware Fine-tuning Meets Chain-of-Thought Reasoning for LLM-as-a-Judge/142e9116-0830-41df-88fb-0f4abce5fead_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TRACT_ Regression-Aware Fine-tuning Meets Chain-of-Thought Reasoning for LLM-as-a-Judge/142e9116-0830-41df-88fb-0f4abce5fead_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c735cf6337165b3d3f1d66b43de26d83a2516ab231cbc713cde1c46bbd2be781
|
| 3 |
+
size 798380
|
2025/TRACT_ Regression-Aware Fine-tuning Meets Chain-of-Thought Reasoning for LLM-as-a-Judge/full.md
ADDED
|
@@ -0,0 +1,549 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TRACT: Regression-Aware Fine-tuning Meets Chain-of-Thought Reasoning for LLM-as-a-Judge
|
| 2 |
+
|
| 3 |
+
Cheng-Han Chiang
|
| 4 |
+
|
| 5 |
+
NTU GICE
|
| 6 |
+
|
| 7 |
+
Taiwan
|
| 8 |
+
|
| 9 |
+
dcml0714@gmail.com
|
| 10 |
+
|
| 11 |
+
Hung-yi Lee
|
| 12 |
+
|
| 13 |
+
NTUGICE
|
| 14 |
+
|
| 15 |
+
Taiwan
|
| 16 |
+
|
| 17 |
+
hungyilee@ntu.edu.tw
|
| 18 |
+
|
| 19 |
+
Michal Lukasik
|
| 20 |
+
|
| 21 |
+
Google Research
|
| 22 |
+
|
| 23 |
+
New York
|
| 24 |
+
|
| 25 |
+
mlukasik@google.com
|
| 26 |
+
|
| 27 |
+
# Abstract
|
| 28 |
+
|
| 29 |
+
The LLM-as-a-judge paradigm uses large language models (LLMs) for automated text evaluation, which assigns a score to the text based on some scoring rubrics. Existing methods for LLM-as-a-judge use cross-entropy (CE) loss for fine-tuning, which neglects the numeric nature of score prediction. Recent work addresses numerical prediction limitations of LLM fine-tuning through regression-aware fine-tuning, which, however, does not consider chain-of-thought (CoT) reasoning for score prediction. In this paper, we introduce TRACT (Two-stage Regression-Aware fine-tuning with CoT), a method combining CoT reasoning with regression-aware training. The training objective of TRACT combines the CE loss for learning the CoT reasoning and the regression-aware loss for the score prediction. TRACT consists of two stages: first, a seed LLM is fine-tuned to generate CoTs; next, we retrain the seed LLM using the CoTs generated by the LLM trained in stage 1. Experiments across four LLM-as-a-judge datasets and two LLMs show that TRACT significantly outperforms existing methods. Extensive ablation studies validate the importance of each component in TRACT. $^{1}$
|
| 30 |
+
|
| 31 |
+
# 1 Introduction
|
| 32 |
+
|
| 33 |
+
Large Language Models (LLMs) have been applied to evaluate written based on the fine-grained evaluation rubrics specified in the input by outputting a score indicating the quality (Chiang and Lee, 2023a). The fine-grained evaluation rubrics define the criteria for scoring answers, and each instance to be evaluated can have a set of customized fine-grained evaluation rubrics. This LLM-as-a-judge paradigm has become the standard way to evaluate LLMs (Zheng et al., 2023; Dubois et al., 2024; Abdin et al., 2024; Lambert et al., 2025), and has applications across diverse scenarios (Yuan
|
| 34 |
+
|
| 35 |
+

|
| 36 |
+
(a) CoT-RAFT fine-tuning objective (§3.2).
|
| 37 |
+
|
| 38 |
+

|
| 39 |
+
(b) TRACT algorithm (§3.3).
|
| 40 |
+
Figure 1: TRACT method overview. (a) Illustration of the CoT-RAFT fine-tuning objective (Eq. 4), used in both stages of TRACT. (b) Two fine-tuning stages of TRACT (also see Algorithm 1). Stage 1: model $p_{\mathrm{s}}$ is trained over the ground truth scores and the annotation CoTs (generated by the annotation model $p_{\mathrm{a}}$ ). Stage 2: CoT supervision is sampled from $p_{\mathrm{s}}$ (frozen at this stage) and used to fine-tune the final model $p_{\mathrm{tract}}$ .
|
| 41 |
+
|
| 42 |
+
et al., 2024; Chiang et al., 2024). To induce the fine-grained assessment ability of LLMs, LLM-as-a-judge is typically trained with cross-entropy (CE) loss to predict chain-of-thought (CoT) reasoning about the evaluation, followed by a score (Kim et al., 2024a,b; Li et al., 2024).
|
| 43 |
+
|
| 44 |
+
Although fine-tuning LLM-as-a-judge with CE loss is a well-established practice (Kim et al., 2024a,b), it has intuitive limitations when applied to predicting numerical targets. For example, given a ground truth score '1', placing high probability on the token '5' is penalized the same as placing high probability on the token '2', despite the fact that they induce very different errors in terms of numerical metrics such as squared error. To miti-
|
| 45 |
+
|
| 46 |
+
gate this, Lukasik et al. (2025) proposed regression-aware fine-tuning (RAFT; see §2.3), a method using squared error loss in fine-tuning LLMs.
|
| 47 |
+
|
| 48 |
+
RAFT has shown promising results on regression tasks; however, it does not incorporate CoT reasoning (Wei et al., 2022; Kojima et al., 2022). Chiang and Lee (2023b) show that not using CoT can harm the performance of LLM-as-a-judge. This makes us ask: Can CoT reasoning be effectively integrated into regression-aware fine-tuning?
|
| 49 |
+
|
| 50 |
+
In this paper, we propose Two-stage Regression-Aware fine-tuning with CoT reasoning (TRACT), a method that combines the benefits of CoT reasoning with RAFT for improved numerical prediction abilities.. In stage 1, TRACT fine-tunes the seed LLM over both the CoT supervision and the ground truth scores in the original training data. TRACT's fine-tuning objective (which we refer to as CoT-RAFT) is the sum of CE loss over the CoT, and the RAFT loss over score prediction (see Figure 1a). In stage 2, TRACT fine-tunes the seed LLM from the CoTs generated by the model trained in stage 1 using the same CoT-RAFT objective. This two-stage pipeline is for reducing the distribution between the seed LLM and the CoT supervision used for fine-tuning in stage 2 (see Figure 1b). We summarize TRACT in Algorithm 1 and contrast its formulation against baselines in Table 1.
|
| 51 |
+
|
| 52 |
+
We conduct experiments on five datasets and two LLMs and show that TRACT consistently outperforms baselines by a large margin, including Prometheus-2-7B (Kim et al., 2024b), which is the best model of equal size from prior works. Our contributions are as follows:
|
| 53 |
+
|
| 54 |
+
(i) We propose TRACT, a fine-tuning method that combines CoT reasoning with regression-aware loss to improve the numerical scoring ability of LLMs (§3).
|
| 55 |
+
(ii) We show that TRACT yields significant performance improvements over existing baselines for LLM-as-a-judge. We validate the importance of each component in TRACT with extensive ablations (§5, §6).
|
| 56 |
+
(iii) We show that TRACT, while trained on pointwise LLM-as-a-judge datasets, can work well on RewardBench (Lambert et al., 2024), a pairwise comparison dataset ( $\S 7$ ).
|
| 57 |
+
(iv) We release our models. Our best model surpasses the prior state-of-the-art model of comparable size by 0.05 in Pearson's correlation when the inference-time compute is limited.
|
| 58 |
+
|
| 59 |
+
# 2 Background
|
| 60 |
+
|
| 61 |
+
We first introduce the notation and next review previous works on regression-aware numerical output prediction with autoregressive models.
|
| 62 |
+
|
| 63 |
+
# 2.1 Notation
|
| 64 |
+
|
| 65 |
+
Let $\mathcal{V}$ denote a finite vocabulary of tokens, $\mathcal{X} \subseteq \mathcal{V}^*$ be a set of inputs comprising strings of tokens, $S \subseteq \mathcal{V}^*$ the set of CoT reasonings, and $\mathcal{Y} \subset \mathbb{R}$ be a set of numerical targets. We assume that each $y \in \mathcal{V}$ has a unique string representation $\operatorname{str}(y) \in \mathcal{V}^*$ . Let $\mathbb{P}$ denote a ground-truth distribution over $\mathcal{X} \times S \times \mathcal{Y}$ , with the decomposition $\mathbb{P}(x, s, y) = \mathbb{P}(x) \cdot \mathbb{P}(s \mid x) \cdot \mathbb{P}(y \mid [x, s])$ , where $[x, s]$ denotes a string concatenation of $x$ and $s$ . Denote the training data by $D_{\mathrm{train}} \in (\mathcal{X} \times \mathcal{Y})^N$ , and each element in $D_{\mathrm{train}}$ is composed of $(x, y^*)$ . Denote the training data augmented with CoT by $D_{\mathrm{train}}^{\mathrm{CoT}} \in (\mathcal{X} \times S \times \mathcal{Y})^N$ , and each element in $D_{\mathrm{train}}^{\mathrm{CoT}}$ is composed of $(x, s^*, y^*)$ , where $s^*$ can come from the human or LLM annotation.
|
| 66 |
+
|
| 67 |
+
In this paper, we focus on LLM-as-a-judge application; in this case, the input $x \in \mathcal{X}$ consists of the instructions for LLM as a judge, the scoring rubrics and a sample to be evaluated. The CoT reasoning $s$ contains an analysis of the sample in the inputs, and the target space is $\mathcal{Y} = \{1,2,3,4,5\}$ . An example input-output pair is shown in Table 4 in the Appendix.
|
| 68 |
+
|
| 69 |
+
We denote an LLM by the probability distribution that it models given the input, that is, $p(\cdot \mid x)$ . We use subscripts to denote specific LLM variants: $p_0$ represents the seed LLM before fine-tuning, and $p_{\mathrm{a}}$ represents the LLM annotator used to generate the CoTs in $D_{\mathrm{train}}^{\mathrm{CoT}}$ .
|
| 70 |
+
|
| 71 |
+
In the following sections, we describe different methods for training and inference of predictor $\hat{y}$ .
|
| 72 |
+
|
| 73 |
+
# 2.2 Standard Fine-tuning and Decoding with No CoT
|
| 74 |
+
|
| 75 |
+
Fine-tuning without CoT seeks to adapt a seed LLM $p_0(\cdot |x)$ to the target distribution $\mathbb{P}$ by minimizing a suitable loss function $\ell \colon \mathcal{V}\times \Delta_{\mathcal{V}^*}\to \mathbb{R}$ , where $\Delta_{\mathcal{V}^*}$ denotes the set of distributions over a set $V^{*}$ . A standard choice of $\ell$ is the cross-entropy loss: $\ell_{\mathrm{CE}}(y^{*},p) = -\log p(\mathsf{str}(y^{*})|x)$ , where $\mathsf{str}(\cdot)$ converts a numerical target $y^{*}$ to its string representation. Inference is typically conducted by standard (autoregressive) decoding, approximately seeking the mode of the distribution $p(\cdot |x)$ , i.e., $\hat{y}_{\mathrm{mode}}(x)\coloneqq \arg \max_{y\in \mathcal{V}}p(y|x)$ .
|
| 76 |
+
|
| 77 |
+
<table><tr><td>Category</td><td>Approach</td><td>Predictor function帽子(x)</td><td>Fine-tuning loss</td><td>Sec</td></tr><tr><td rowspan="4">Baselines</td><td>Standard fine-tuning and decoding w/o CoT</td><td>arg maxy∈y p(y|x)</td><td>- logp(y*|x)</td><td>§2.2</td></tr><tr><td>RAIL zero-shot (Lukasik et al., 2024)</td><td>∑y′∈y y′·p(y'|x)</td><td>N/A</td><td>§2.3</td></tr><tr><td>RAFT (Lukasik et al., 2025)</td><td>∑y′∈y y′·p(y|x)</td><td>(ˆy(x) - y*)2</td><td>§2.3</td></tr><tr><td>Standard fine-tuning and decoding w/ CoT</td><td>arg maxy∈y p(str(y) | [x,hat]);帽子ˆs~p(ˆx)</td><td>- logp([s*,y*] | x)</td><td>§3.1</td></tr><tr><td>Ours</td><td>TRACT</td><td>∑y∈y p(str(y) | [x,hat])·y;帽子ˆs~p(ˆx)</td><td>Algorithm 1</td><td>§3</td></tr></table>
|
| 78 |
+
|
| 79 |
+
Table 1: Approaches to autoregressive regression with decoder-based LLMs. Here, $p(\cdot \mid x)$ denotes a distribution over possible outputs given an input string $x$ , and $\hat{y}(x) \in \mathbb{R}$ a predictor function. $\mathcal{V}$ denotes the targets space (unless otherwise stated, $\{1,2,3,4,5\}$ ).
|
| 80 |
+
|
| 81 |
+
# 2.3 Regression-Aware Inference and Fine-tuning
|
| 82 |
+
|
| 83 |
+
Recently, Lukasik et al. (2024) noted that standard autoregressive decoding in LLMs implicitly minimizes the 0-1 error metric, $m(y, \hat{y}) = \mathbb{1}(y \neq \hat{y})$ , making it suboptimal for regression metrics. Motivated by the minimum Bayes risk decoding framework (Kumar and Byrne, 2004), Lukasik et al. (2024) propose Regression-Aware Inference for Language models (RAIL). RAIL aims to determine the Bayes-optimal prediction by minimizing the expected loss: $\hat{y}_{\mathrm{RAIL}}(x) \doteq \arg \min_{v \in \mathbb{R}} \mathbb{E}_{y \sim p(\cdot | x)} [m(\mathsf{num}(y), v)]$ , where $m$ is the metric of interests and $\mathsf{num}(\cdot)$ converts a string output to its numerical equivalent. For squared error loss, $m(y, \hat{y}) = (y - \hat{y})^2$ , the optimal decision rule simplifies to the expected value of the numerical predictions. In the case of finite numerical targets $\mathcal{V}$ , this can be exactly calculated by scoring and averaging a set of candidate targets:
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\hat {y} _ {\text {R A I L}} (x) \doteq \sum_ {y \in \mathcal {Y}} p (\operatorname {s t r} (y) \mid x) \cdot y. \tag {1}
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
While RAIL is based on the Bayes-optimal decision rule, directly applying this rule to a model finetuned with CE loss can still result in high regression error. This is due to the misalignment between the CE fine-tuning loss and the regression evaluation metrics (Lukasik et al., 2025). To address this, Lukasik et al. (2025) proposed incorporating the RAIL optimal decision rule directly into the finetuning process using squared loss, leading to the Regression-Aware Fine-Tuning (RAFT) loss:
|
| 90 |
+
|
| 91 |
+
$$
|
| 92 |
+
\ell_ {\mathrm {R A F T}} (y ^ {*}, p) = \left(y ^ {*} - \hat {y} _ {\mathrm {R A I L}} (x)\right) ^ {2}. \tag {2}
|
| 93 |
+
$$
|
| 94 |
+
|
| 95 |
+
# 3 Method: TRACT
|
| 96 |
+
|
| 97 |
+
While achieving notable success on natural language regression tasks such as STS-B (Cer et al.,
|
| 98 |
+
|
| 99 |
+
2017), RAIL and RAFT do not use CoT reasoning. In this section, we start by discussing learning with CoT, and next introduce our method that incorporates CoT into RAIL and RAFT.
|
| 100 |
+
|
| 101 |
+
# 3.1 Learning and Inference with CoT
|
| 102 |
+
|
| 103 |
+
LLM-as-a-judge typically decodes a CoT sequence prior to outputting the final score (Chiang and Lee, 2023b). LLM-as-a-judge is fine-tuned over a dataset $D_{\mathrm{train}}^{\mathrm{CoT}} \in (\mathcal{X} \times \mathcal{S} \times \mathcal{Y})^N$ of $N$ (input, CoT, target score) tuples drawn from $\mathbb{P}$ . The CoT annotations $s^*$ often come from a powerful LLM (e.g. GPT-4); we denote the distribution of CoT annotations provided in the dataset as $p_{\mathrm{a}}(\cdot | x)$ . The empirical loss for fine-tuning is $\hat{L}_{\mathrm{CoT}}(p) = \frac{1}{N} \sum_{(x, y^*, s^*) \in D_{\mathrm{train}}^{\mathrm{CoT}}} \ell(y^*, s^*, p)$ .
|
| 104 |
+
|
| 105 |
+
A typical choice is again the CE loss, i.e., $\ell_{\mathrm{CoT}}(y^{*},s^{*},p) = -\log p([s^{*},y^{*}]|x)$ . Inference is typically done by generatively predicting a CoT reasoning and the score, which samples from the distribution $p$ , thus approximating the mode of the distribution: $\hat{y}_{\mathrm{CoT~mode}}(x)\doteq \arg \max_{y\in \mathcal{Y}}p(\mathsf{str}(y)\mid [x,\hat{s}])$ ; $\hat{s}\sim p(\cdot \mid x)$ .
|
| 106 |
+
|
| 107 |
+
# 3.2 Regression-Aware Fine-Tuning with CoT
|
| 108 |
+
|
| 109 |
+
CoT reasoning elicits a reasoning $s$ before outputting the score $y$ . We propose and define the CR (CoT-RAIL) predictor as first sampling a CoT $\hat{s}$ conditioning on the input $x$ , and then applying the RAIL predictor when conditioning on $x$ and $\hat{s}$ ,
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
\hat {y} _ {\mathrm {C R}} (x) \doteq \sum_ {y \in \mathcal {Y}} p (\mathbf {s t r} (y) \mid [ x, \hat {s} ]) \cdot y; \hat {s} \sim p (\cdot \mid x) \tag {3}
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
A practical question is how to determine where the CoT reasoning ends and where the score starts so that the RAIL predictor can be used at the appropriate position. In practice, we assume each CoT ends with the string $d =$ 'So the overall score is'. We include the string $d$ at the end of each CoT in
|
| 116 |
+
|
| 117 |
+
the training set to ensure that the fine-tuned model always ends its CoT with $d$ .
|
| 118 |
+
|
| 119 |
+
In principle, we can sample a CoT and obtain the score prediction using Equation 3, repeat the CoT sampling multiple times to estimate the score, and average the scores. Unless stated otherwise, we sample $\hat{s}$ once, as shown in Equation 3.
|
| 120 |
+
|
| 121 |
+
For training, analogously to the original RAFT algorithm, we use the CoT-RAIL predictor in the squared error loss. To guide the model in generating CoTs, we apply CE loss to the CoTs. We combine the two losses using a weighting coefficient $\lambda$ , forming the CoT-RAFT objective:
|
| 122 |
+
|
| 123 |
+
$$
|
| 124 |
+
\begin{array}{l} \ell_ {\mathrm {C o T - R A F T}} ^ {\lambda} \left(y ^ {*}, p _ {\mathrm {t}}, p\right) = \\ \lambda \left(\sum_ {y \in \mathcal {Y}} p (\operatorname {s t r} (y) \mid [ x, \hat {s} ]) \cdot y - y ^ {*}\right) ^ {2} \tag {4} \\ - \log p ([ \hat {s}, y ^ {*} ] \mid x); \hat {s} \sim p _ {\mathrm {t}} (\cdot \mid x), \\ \end{array}
|
| 125 |
+
$$
|
| 126 |
+
|
| 127 |
+
where $p_{\mathrm{t}}$ denotes the (target) model used to generate the CoTs for training, which can be $p_{\mathrm{a}}$ (GPT-4), but we explore other options next.
|
| 128 |
+
|
| 129 |
+
# 3.3 Self-Generated Chain-of-Thoughts (CoTs)
|
| 130 |
+
|
| 131 |
+
When training with CoT-RAFT (Eq. 4), the score predictor is conditioned on the CoT generated by a target model, denoted as $\hat{s} \sim p_{\mathrm{t}}(\cdot \mid x)$ . However, at inference time, CoT-RAIL (Eq. 3) relies on self-generated CoTs from the fine-tuned model $p$ , i.e., $\hat{s} \sim p(\cdot \mid x)$ . In our case, the CoTs used for training are from GPT-4 ( $p_{\mathrm{a}}$ ) and may be very different from the CoTs generated by the fine-tuned model $p$ . This creates a mismatch between the CoTs used during training and inference, which can harm the performance, as empirically shown in §5.
|
| 132 |
+
|
| 133 |
+
To mitigate the distribution shift in annotation and model CoTs, we propose to fine-tune the model using CoTs more closely aligned with those sampled from the trained model $p(\cdot \mid x)$ . Let $p_{\mathrm{s}}$ denote the model initialized from the seed LLM $p_0$ and fine-tuned on the annotation CoTs sampled from $p_{\mathrm{a}}$ . For each input $x$ in the training data, we prompt $p_{\mathrm{s}}$ to generate a response containing a CoT and a score prediction. We then discard the score prediction and pair the generated CoT with the corresponding original ground truth score, creating a new training dataset, denoted as $D_{\mathrm{self}}$ . Formally, $D_{\mathrm{self}} = \{(x,\mathrm{CoT}_{\mathrm{s}}(x),y^{*})|(x,y^{*})\in D_{\mathrm{train}},\mathrm{CoT}_{\mathrm{s}}(x)\sim p_{\mathrm{s}}(\cdot |x)\}$ , where $D_{\mathrm{train}}$ is the original training dataset, $y^{*}$ is the ground truth
|
| 134 |
+
|
| 135 |
+
score, and $\mathrm{CoT_s}(x)$ is the CoT generated by $p_{\mathrm{s}}$ for input $x$ .
|
| 136 |
+
|
| 137 |
+
We use $D_{\mathrm{self}}$ to train from the seed LLM $p_0$ to obtain the final TRACT model, $p_{\mathrm{tract}}$ . The complete algorithm for training the TRACT model is shown in Algorithm 1 and Figure 1. In summary, we first train the seed LLM on the training data with the CoT annotation from $p_{\mathrm{a}}$ to obtain $p_{\mathrm{s}}$ , use $p_{\mathrm{s}}$ to generate CoTs to form $D_{\mathrm{self}}$ , and use $D_{\mathrm{self}}$ to retrain $p_0$ again, leading to the resulting model $p_{\mathrm{tract}}$ .
|
| 138 |
+
|
| 139 |
+
# 4 Experiment Setup
|
| 140 |
+
|
| 141 |
+
Models We fine-tune TRACT from two LLMs, Mistral-7B-Instruct-v0.2 (Jiang et al., 2023) and Llama-3.1-8B-Instruct (Grattafori et al., 2024).
|
| 142 |
+
|
| 143 |
+
Training Dataset We follow Kim et al. (2024b) and use Feedback Collection (Kim et al., 2024a) as the training set. The training set contains roughly 100K samples. The whole dataset, including the samples to be evaluated, the evaluation responses, and ground truth scores, are generated by GPT-4. We follow the procedure in §3.3 to construct $D_{\mathrm{self}}$ . We analyze the quality of the self-generated CoTs in Appendix B.1.
|
| 144 |
+
|
| 145 |
+
Test Datasets We use four datasets for point-wise LLM-as-a-judge, following Kim et al. (2024b).
|
| 146 |
+
|
| 147 |
+
(1) Feedback Bench (Kim et al., 2024a): This is the official test set of Feedback Collection. Feedback Bench contains 1K responses to evaluate. The instructions and scoring rubrics in Feedback Bench do not overlap with the training set.
|
| 148 |
+
(2) FLASK (Ye et al., 2024): This is a fine-grained evaluation benchmark with 200 test prompts and 2000 responses from Alpaca7B (Taori et al., 2023), Vicuna-13B, Bard (Google, 2023), and GPT-3.5-Turbo-0613.
|
| 149 |
+
(3) Vicuna Bench (Chiang et al., 2023): This is a single-turn dialogue dataset with 80 user instructions. Kim et al. (2024a) extends this dataset for LLM-as-a-judge by crafting the scoring rubrics for each user instruction and generating responses by WizardLM-13B (Xu et al., 2024), Vicuna-13B (Chiang et al., 2023), Llama-2-Chat-13B (Touvron et al., 2023), and ChatGPT-3.5-Turbo-0613. The dataset contains 320 responses to evaluate.
|
| 150 |
+
(4) MT Bench (Zheng et al., 2023): MT Bench is a multi-turn dialogue dataset with diverse tasks. To form a direct assessment dataset, Kim et al. (2024a) prepare human-written rubrics and generate the dialogue responses from WizardLM-13B, Vicuna
|
| 151 |
+
|
| 152 |
+
Algorithm 1 TRACT: Two-stage Regression-Aware fine-tuning with CoT reasoning
|
| 153 |
+
|
| 154 |
+
<table><tr><td>1:</td><td>input: CoT annotations distribution pa, base model p0, training data {(x,y*)}, mixing coefficient λ.</td></tr><tr><td>2:</td><td>stage 1: train ps using the objective ℓλCoT-RAFT(y*, pa, p) initializing from p0</td></tr><tr><td>3:</td><td>stage 2: train ptract using the objective ℓλCoT-RAFT(y*, ps, p) initializing from p0</td></tr><tr><td>4:</td><td>return ptract</td></tr></table>
|
| 155 |
+
|
| 156 |
+
13B, Llama-2-Chat-13B, and ChatGPT-3.5-Turbo0613. The dataset has 320 responses to evaluate.
|
| 157 |
+
|
| 158 |
+
Baselines We compare TRACT against multiple baselines that differ in their training objectives and in whether they use CoT reasoning, including: (1) Standard fine-tuning and decoding without CoT ( $\S 2.2$ ), (2) Standard fine-tuning and decoding with CoT ( $\S 3.1$ ), (3) Zero-shot RAIL: Using RAIL predictor (Equation 1) on the seed LLM $p_0$ , (4) RAFT ( $\S 2.3$ ). A detailed comparison of the baselines is shown in Table 1.
|
| 159 |
+
|
| 160 |
+
We also compare with (5) *Prometheus-2-7B* (Kim et al., 2024b), a model obtained by merging the model trained on Feedback-Collection and another model trained on Preference Collection (Kim et al., 2024b), a pairwise ranking dataset. Kim et al. (2024b) show that merging the models trained on two datasets significantly improves the performance. *Prometheus-2-7B* is trained from Mistral-7B-Instruct-v0.2, the same seed LLM used in this paper, and it is the best open-source model of the same size for LLM-as-a-judge currently.
|
| 161 |
+
|
| 162 |
+
Training and Evaluation We fine-tune the LLMs with LoRA (Hu et al., 2022) using LlamaFactory (Zheng et al., 2024). We set $\lambda = 1$ in Equation 4 unless otherwise stated.
|
| 163 |
+
|
| 164 |
+
During inference, for each sample in a dataset, we predict a score from the LLM using either standard decoding or the predictor in Equation 1 or 3, and calculate the correlation coefficient against the ground truth scores in the datasets. We report Pearson's $r$ (Pearson, 1895), Spearman's $\rho$ (Spearman, 1961), and Kendall's $\tau$ (Kendall, 1938) (see Kendall's $\tau$ results in Appendix B.2; we find the trends to be consistent with other metrics).
|
| 165 |
+
|
| 166 |
+
# 5 Main Results
|
| 167 |
+
|
| 168 |
+
The results for Mistral are presented in Table 2, and the results for Llama are in Table 7 in the Appendix. The first five rows (B.1~B.5) in the two tables correspond to the five baselines in §4 in the same order. We next discuss the main observations.
|
| 169 |
+
|
| 170 |
+
TRACT outperforms standard training and decoding with CoT. Standard training and decod
|
| 171 |
+
|
| 172 |
+
ing with CoT (row B.2) is the default training and inference for LLM-as-a-judge in most prior works (Kim et al., 2024a,b). For both Mistral and Llama, TRACT (row 7) outperforms this baseline by a significant margin. When the base model is Mistral, TRACT reaches Pearson's $r$ as high as 0.650, significantly outperforming training and inference with CoT (row B.2), which only attains Pearson's $r$ of 0.557. When using Llama, TRACT improves the average Pearson's $r$ by 0.100.
|
| 173 |
+
|
| 174 |
+
TRACT outperforms prior equally-sized SoTA. Across all datasets, TRACT, trained without additional data, consistently outperforms Prometheus-2-7B (row B.5), the prior SoTA of the same size, by an average of 0.059 Pearson's $r$ . While we use self-generated data, this differs from Prometheus-2-7B, which is further trained on Preference Collection, a dataset generated by GPT-4.
|
| 175 |
+
|
| 176 |
+
TRACT outperforms RAFT. RAFT (row B.4) can be considered as an ablation of TRACT that removes CoT. TRACT outperforms RAFT, showing that CoT helps the model predict the score. Quite surprisingly, RAFT achieves the best performance among all baselines. RAFT even outperforms Prometheus-2-7B (row B.5) by 0.032 Pearson's $r$ , which is trained over additional data corresponding to a ranking task. The same observation holds for the models trained using Llama-3.1.
|
| 177 |
+
|
| 178 |
+
Next, we ablate each component of TRACT.
|
| 179 |
+
|
| 180 |
+
Training on self-generated CoTs is critical. Row A.1 corresponds to training with CoT-RAFT on the GPT-4 generated data, and running inference with CoT-RAIL, without further training on self-generated CoTs. The average Pearson's $r$ without training on self-generated data is 0.094 lower than TRACT. This shows that self-generated CoT is an important component of TRACT.
|
| 181 |
+
|
| 182 |
+
Using CE for training harms the performance. Row A.2 is the result when we replace the finetuning objective from CoT-RAFT with the standard CE loss but still use CoT-RAIL in inference. This configuration leads to a Pearson's $r$ 0.033 lower than TRACT. This shows that using CoT-RAFT for fine-tuning better aligns the fine-tuning objective
|
| 183 |
+
|
| 184 |
+
<table><tr><td rowspan="2">Id</td><td colspan="4">Train/Inference Configuration</td><td colspan="2">FB Bench</td><td colspan="2">FLASK</td><td colspan="2">Vic. Bench</td><td colspan="2">MT Bench</td><td colspan="2">Average</td></tr><tr><td>CoT</td><td>Train</td><td>Data</td><td>Inf.</td><td>r</td><td>ρ</td><td>r</td><td>ρ</td><td>r</td><td>ρ</td><td>r</td><td>ρ</td><td>r</td><td>ρ</td></tr><tr><td colspan="15">Baselines</td></tr><tr><td>B.1</td><td>X</td><td>CE</td><td>GPT-4‡</td><td>Decode</td><td>0.890</td><td>0.891</td><td>0.355</td><td>0.361</td><td>0.429</td><td>0.414</td><td>0.279</td><td>0.268</td><td>0.488</td><td>0.483</td></tr><tr><td>B.2</td><td>✓</td><td>CE</td><td>GPT-4</td><td>Decode</td><td>0.872</td><td>0.872</td><td>0.413</td><td>0.407</td><td>0.463</td><td>0.456</td><td>0.480</td><td>0.482</td><td>0.557</td><td>0.554</td></tr><tr><td>B.3</td><td>X</td><td>X</td><td>X</td><td>RAIL</td><td>0.197</td><td>0.175</td><td>0.200</td><td>0.149</td><td>0.281</td><td>0.165</td><td>0.309</td><td>0.216</td><td>0.247</td><td>0.176</td></tr><tr><td>B.4</td><td>X</td><td>RAFT</td><td>GPT-4‡</td><td>RAIL</td><td>0.932</td><td>0.930</td><td>0.509</td><td>0.502</td><td>0.567</td><td>0.519</td><td>0.483</td><td>0.469</td><td>0.623</td><td>0.605</td></tr><tr><td colspan="15">Not directly comparable models (Different Training Data)</td></tr><tr><td>B.5</td><td>✓</td><td colspan="2">Prometheus-2-7B†</td><td>Decode</td><td>0.845</td><td>0.847</td><td>0.512</td><td>0.493</td><td>0.488</td><td>0.480</td><td>0.519</td><td>0.483</td><td>0.591</td><td>0.576</td></tr><tr><td>6</td><td>✓</td><td colspan="2">CLoud (Reward model)</td><td>Decode*</td><td>0.381</td><td>0.376</td><td>0.228</td><td>0.168</td><td>0.229</td><td>0.311</td><td>0.511</td><td>0.506</td><td>0.337</td><td>0.340</td></tr><tr><td colspan="15">TRACT (ours)</td></tr><tr><td>7</td><td>✓</td><td>C-RAFT</td><td>Self</td><td>C-RAIL</td><td>0.931</td><td>0.930</td><td>0.518</td><td>0.501</td><td>0.593</td><td>0.552</td><td>0.555</td><td>0.529</td><td>0.650</td><td>0.628</td></tr><tr><td colspan="15">Ablation analysis for TRACT</td></tr><tr><td>A.1</td><td>✓</td><td>C-RAFT</td><td>GPT-4</td><td>C-RAIL</td><td>0.879</td><td>0.880</td><td>0.418</td><td>0.419</td><td>0.528</td><td>0.513</td><td>0.399</td><td>0.418</td><td>0.556</td><td>0.558</td></tr><tr><td>A.2</td><td>✓</td><td>CE</td><td>Self</td><td>C-RAIL</td><td>0.919</td><td>0.917</td><td>0.468</td><td>0.436</td><td>0.562</td><td>0.526</td><td>0.517</td><td>0.503</td><td>0.617</td><td>0.596</td></tr><tr><td>A.3</td><td>✓</td><td>CE</td><td>Self</td><td>Decode</td><td>0.873</td><td>0.873</td><td>0.358</td><td>0.346</td><td>0.418</td><td>0.404</td><td>0.435</td><td>0.426</td><td>0.521</td><td>0.512</td></tr><tr><td>A.4</td><td colspan="4">TRACT with stage 2 initialized from ps</td><td>0.674</td><td>0.684</td><td>0.448</td><td>0.437</td><td>0.505</td><td>0.477</td><td>0.432</td><td>0.421</td><td>0.515</td><td>0.505</td></tr></table>
|
| 185 |
+
|
| 186 |
+
Table 2: The results for Mistral-7B-Instruct. The best and second-best results (excluding ablations) for each column are marked with boldface and underline, respectively. Explanation of abbreviations: Train: training objective; Data: source of CoT used for training; Inf.: inference method; FB Bench: Feedback Bench; Vic. Bench: Vicuna Bench; r: Pearson's correlation coefficient; $\rho$ : Spearman's rank correlation coefficient; C-RAFT: CoT-RAFT; C-RAIL: CoT-RAIL. †: Prometheus-2-7B is obtained by merging two models trained from Feedback Collection and Preference Collection. We re-run the inference using the model released by Kim et al. (2024b) with the official code. $\ddagger$ : When training without CoTs, the training target is simply the score, which is still generated by GPT-4. $*$ : CLoud (trained from Llama-3-8B) is a reward model; it is not designed for LLM-as-a-judge benchmarks (Section 7).
|
| 187 |
+
|
| 188 |
+
and the predictor used during inference.
|
| 189 |
+
|
| 190 |
+
CoT-RAFT objective is necessary: self-generated CoTs alone are insufficient. Prior research has demonstrated that fine-tuning LLMs on self-generated data using the CE loss can be beneficial (Yang et al., 2024). Here, we investigate whether CE loss fine-tuning on self-generated data alone can improve the performance compared with training on GPT-4 CoTs. Contrary to expectations, standard CE loss fine-tuning on self-generated CoTs (row A.3) yielded a significantly lower average Pearson's $r$ of 0.512, far below TRACT's performance. Moreover, this approach performed worse than fine-tuning on GPT-4 generated data (row B.2). This shows that self-generated CoTs are harmful when fine-tuned with CE loss but are beneficial when combined with the CoT-RAFT objective. Our finding marks the difference between our work and prior work using self-generated CoTs with CE loss, highlighting the distinct role of self-generated CoTs in TRACT.
|
| 191 |
+
|
| 192 |
+
Stage 2 training needs to be initialized from the seed LLM. In Algorithm 1, the model in stage 2 is initialized from the seed LLM $p_0$ . As an alternative, we explore initializing from $p_{\mathrm{s}}$ , the model trained in stage 1, while keeping everything else the same as TRACT. The result shown in row A.4 achieves only 0.515 Pearson's $r$ . This shows that initialization in stage 2 from the seed LLM (as
|
| 193 |
+
|
| 194 |
+
Algorithm 1 indicates) is crucial.
|
| 195 |
+
|
| 196 |
+
# 6 Analysis
|
| 197 |
+
|
| 198 |
+
We conduct further analysis of the key components of TRACT to justify its design.
|
| 199 |
+
|
| 200 |
+
# 6.1 On the Distribution Shift between Annotation vs Self-Generated CoTs
|
| 201 |
+
|
| 202 |
+
In §3.3, we motivated using self-generated CoTs by the distribution shift between training and inference CoTs. To empirically demonstrate this shift, we design the following experiment.
|
| 203 |
+
|
| 204 |
+
Let $D_{\mathrm{train}}^{\mathrm{CoT}}(p_{\mathrm{t}}) = \{(x_{i},s_{i}^{*}\sim p_{\mathrm{t}}(\cdot |x_{i}),y_{i}^{*})\}_{i = 1}^{N}$ represent the training dataset, where $x_{i}\in \mathcal{X}$ is the input, $s_i^*\in S$ is the CoT sampled from model $p_t$ used as the training data, and $y_{i}^{*}\in \mathcal{V}$ is the ground truth score. Let $p(\cdot)$ denote the probability distribution defined by the LLM trained on $D_{\mathrm{train}}^{\mathrm{CoT}}(p_{\mathrm{t}})$ . After $p$ is trained, we generate CoTs $\hat{s}_i\sim p(\cdot |x_i)$ for each input $x_{i}$ in $D_{\mathrm{train}}$ , and predict scores conditioned on these CoTs, denoted as $\hat{y}_i(\hat{s}_i)\sim p(\cdot |x_i,\hat{s}_i)$ . Using the fine-tuned model $p$ we can also predict a score conditioned on $s_i^*$ , the CoT in the training data $D_{\mathrm{train}}^{\mathrm{CoT}}(p_{\mathrm{t}})$ ; this score is denoted as $\hat{y}_i(s_i^*)\sim p(\cdot |x_i,s_i^*)$ .
|
| 205 |
+
|
| 206 |
+
To quantify how different $s_i^*$ and $\hat{s}_i$ are, we compare the root mean square error (RMSE) across two pairs of scores: 1) the predicted scores $\hat{y}_i(s_i^*)$ and the ground truth scores $y_i^*$ , and 2) the predicted
|
| 207 |
+
|
| 208 |
+
<table><tr><td rowspan="2">TRACT</td><td rowspan="2">s*: CoTs used for training</td><td rowspan="2">\(\hat{s}\): CoTs sampled from fine-tuned model</td><td colspan="2">RMSE \(\frac{w}{y^{*}}\)</td></tr><tr><td>\(\hat{y}(s^{*})\)</td><td>\(\hat{y}(\hat{s})\)</td></tr><tr><td>Stage 1</td><td>\(s^{*} \sim p_{\mathrm{a}}\)</td><td>\(\hat{s} \sim p_{\mathrm{s}}\)</td><td>0.12</td><td>0.63</td></tr><tr><td>Stage 2</td><td>\(s^{*} \sim p_{\mathrm{s}}\)</td><td>\(\hat{s} \sim p_{\mathrm{tract}}\)</td><td>0.45</td><td>0.45</td></tr></table>
|
| 209 |
+
|
| 210 |
+
Table 3: RMSE between predicted scores $\hat{y}$ and ground truth scores $y^{*}$ over the training data. Each row corresponds to stage 1 or stage 2 of TRACT. The CoT used for fine-tuning the model in each stage is denoted by $s^*$ and is generated by the model indicated in the second column. After fine-tuning, we sample $\hat{s}$ from the fine-tuned model; the fine-tuned model is specified in the third column. The last two columns are the RMSE across two pairs of predictions: 1) the predicted scores $\hat{y}_i(s_i^*)$ and the true scores $y_{i}^{*}$ , and 2) the predicted scores $\hat{y}_i(\hat{s}_i)$ and the true scores $y_{i}^{*}$ . Within each row, both $\hat{y}_i(s_i^*)$ and $\hat{y}_i(\hat{s}_i)$ are predicted by the same fine-tuned model (indicated in the third column).
|
| 211 |
+
|
| 212 |
+
scores $\hat{y}_i(\hat{s}_i)$ and the ground truth scores $y_i^*$ . Notably, both $\hat{y}_i(\hat{s}_i)$ and $\hat{y}_i(s_i^*)$ are generated by the same LLM $p(\cdot)$ conditioned on the same input $x_i$ in the training set; the only distinction is the CoT: $\hat{y}_i(s_i^*)$ conditioned on $s_i^*$ , and $\hat{y}_i(\hat{s}_i)$ conditioned on $\hat{s}_i$ .
|
| 213 |
+
|
| 214 |
+
The results are presented in Table 3. The first row shows the model $p_{\mathrm{s}}$ trained in stage 1 in TRACT, which is trained using CoTs sampled from $p_{\mathrm{a}}$ (GPT-4). We observe a significant RMSE gap of 0.51 between $\hat{y}_i(s_i^*)$ and $\hat{y}_i(\hat{s}_i)$ . This shows that for $p_{\mathrm{s}}$ , the distribution of training CoTs and self-generated CoTs is very different.
|
| 215 |
+
|
| 216 |
+
The second row shows the result of the model fine-tuned in stage 2, $p_{\mathrm{tract}}$ , which is trained on CoTs generated by $p_{\mathrm{s}}$ . When predicting scores using $p_{\mathrm{tract}}$ , the RMSE gap between using the training CoTs $s^*$ and predicted CoTs $\hat{s}$ is 0. This indicates that for $p_{\mathrm{s}}$ (row 1), predicting scores using self-generated CoTs is more challenging than using CoTs generated by GPT-4, showing a substantial distribution shift between self-generated and GPT-generated CoTs. Conversely, for $p_{\mathrm{tract}}$ , the prediction difficulty is similar for both types of CoTs, suggesting that the training and self-generated CoT distributions are closer.
|
| 217 |
+
|
| 218 |
+
The above results can also be interpreted as $p_{\mathrm{s}}$ memorizing the training CoTs and cannot generalize to its own generated CoTs, while $p_{\mathrm{tract}}$ is capable of generalizing to its own generations.
|
| 219 |
+
|
| 220 |
+
# 6.2 Sensitivity to $\lambda$
|
| 221 |
+
|
| 222 |
+
We analyze the performance of TRACT when varying $\lambda$ in Equation 4 over a grid of values
|
| 223 |
+
|
| 224 |
+

|
| 225 |
+
Figure 2: Performance of TRACT across varying values of $\lambda$ in Equation 4. Results from the Mistral model. For a wide range of $\lambda$ values we find TRACT outperforming the baselines.
|
| 226 |
+
|
| 227 |
+
$\{0.2, 0.5, 1.0, 2, 5, 10\}$ , using Mistral as the seed model. The results are shown in Figure 2. We observe that $\lambda = 1$ performs well. For most values of $\lambda$ TRACT outperforms both 1) the model trained using CE loss on the same dataset, and 2) Prometheus, the SoTA model of the same size.
|
| 228 |
+
|
| 229 |
+
# 6.3 Multi-Objective Fine-tuning vs.
|
| 230 |
+
|
| 231 |
+
# Sequential Single-Objective Fine-tuning
|
| 232 |
+
|
| 233 |
+
TRACT relies on the CoT-RAFT objective from Eq. 4, combining the CE loss over CoTs and the RAFT loss over score predictions. An alternative training strategy could involve a sequential, two-stage fine-tuning process: first, fine-tuning with the CE loss over both CoTs and scores (corresponding to baseline 2); and next, fine-tuning on the same dataset using solely the RAFT objective over scores. In the second stage, while the model's output still includes CoTs, the CE loss is not computed for them, i.e., the second term in Eq. 4 is not used.
|
| 234 |
+
|
| 235 |
+
We empirically find that this sequential fine-tuning approach significantly degrades the model's ability to generate coherent and complete CoTs. The resulting model struggles to terminate CoT outputs correctly and sometimes yields very long CoTs. We show some example CoTs in Table 9 in Appendix C. This deficiency highlights the critical role of multi-objective fine-tuning: jointly optimizing both the CE loss for CoTs and the squared-error loss for scores.
|
| 236 |
+
|
| 237 |
+
# 6.4 Scaling the Number of Sampled CoTs
|
| 238 |
+
|
| 239 |
+
We analyze the effect of sampling multiple CoTs for TRACT during inference; this is done by sampling multiple $\hat{s}$ , calculating $\hat{y}_{\mathrm{CR}}$ for each CoT (Eq. 3), and averaging the $\hat{y}_{\mathrm{CR}}$ . For comparison, we also sample multiple CoTs and average the scores for the following two baselines: the model trained using the CE loss (baseline 2, row B.2 in Table 2), and Prometheus-2-7B. To gauge the significance
|
| 240 |
+
|
| 241 |
+

|
| 242 |
+
Figure 3: Average Pearson's $r$ as a function of the number of sampled CoTs. Results from fine-tuning the Mistral model. Shaded regions correspond to the standard deviations across multiple inference runs with varying random seeds. Note that Prometheus is trained on significantly more data compared to other two methods in this Figure. Despite that, under limited inference budget, TRACT outperforms Prometheus.
|
| 243 |
+
|
| 244 |
+
of the differences across methods, we repeat the experiment by varying the random seed. For each seed, we sample $K$ CoTs to calculate the score, average the score across four testing dataset, and repeat the above process with four seeds.
|
| 245 |
+
|
| 246 |
+
The results are shown in Figure 3. We find that the performance of TRACT is stable across different numbers of CoTs, while the performance of standard decoding increases when sampling more CoTs. While this might indicate TRACT cannot benefit from scaling the inference-time compute (Irvine et al., 2023; Brown et al., 2025; Snell et al., 2025), the superiority of TRACT under limited inference-time compute is clear. Baseline 2 uses the same amount of training data and serves as a fair comparison baseline to TRACT. Compared to it, TRACT with one CoT consistently outperforms baseline 2 with more than one CoTs. Additionally, the variance of the performance of TRACT across the random seeds is much smaller than that for standard decoding.
|
| 247 |
+
|
| 248 |
+
TRACT outperforms Prometheus when sampling fewer CoTs. Given that Prometheus is trained with more data, we find it to be a very strong outcome that TRACT outperforms Prometheus under the limited CoT sampling setting.
|
| 249 |
+
|
| 250 |
+
# 7 Comparing Point-Wise LLM-as-a-Judge and Reward Models
|
| 251 |
+
|
| 252 |
+
Given an instruction and a response, a reward model (RM) assigns a scalar reward to indicate the quality of the response (Wang et al., 2024a; Liu et al., 2024; Dorka, 2024). While this formulation is similar to pointwise LLM-as-a-judge, RMs are
|
| 253 |
+
|
| 254 |
+
typically trained to evaluate specific attributes, e.g., helpfulness, harmlessness, etc. (Bai et al., 2022). As a result, RMs cannot take fine-grained evaluation metrics and evaluate based on the evaluation rubrics. Furthermore, the reward of a RM is only meaningful when comparing the reward of two responses for the same instruction, since RMs are trained with pairwise data. In contrast, the score of point-wise LLM-as-a-judge is meaningful standalone since it directly corresponds to the description of a specific score in the scoring rubrics.
|
| 255 |
+
|
| 256 |
+
Critique-out-loud (CLoud) (Ankner et al., 2024) RM is an RM that generates some CoT reasoning before predicting the reward using a regression head. While CLoud uses self-generated CoT reasoning to improve the numeric prediction (the reward), there are several differences between CLoud and TRACT. First, CLoud is trained on pairwise reward modeling datasets, while TRACT is trained on a point-wise LLM-as-a-judge dataset. Next, TRACT uses the language model head to predict the score, while CLoud uses a regression head to predict the score. Most importantly, CLoud, as a reward model, cannot take fine-grained evaluation rubrics and evaluate the responses based on the evaluation criteria, which is different from all other LLM-as-a-Judge based baselines in Section 4, which can take fine-grained evaluation rubrics.
|
| 257 |
+
|
| 258 |
+
# 7.1 Results on Point-wise LLM-as-a-Judge Datasets
|
| 259 |
+
|
| 260 |
+
Since CLOUD also uses CoT to improve numeric predictions, we compare CLOUD with TRACT on point-wise LLM-as-a-judge datasets to understand whether RMs can perform well on point-wise LLM-as-a-judge datasets. In row 7 in Table 2, we show the results of CLOUD on LLM-as-a-judge datasets. We can see that CLOUD performs poorly, and TRACT significantly outperforms CLOUD. This is not surprising, as CLOUD is a reward model trained on pairwise ranking datasets, and it cannot take the fine-grained evaluation metrics. Our goal here is not to criticize the performance of CLOUD; we use the above evidence to highlight that RMs are not the same as point-wise LLM-as-a-judge models.
|
| 261 |
+
|
| 262 |
+
# 7.2 Results on RewardBench
|
| 263 |
+
|
| 264 |
+
Having seen that RM cannot yield reasonable performance on point-wise LLM-as-a-judge datasets, one may ask whether the reverse holds as well: Can point-wise LLM-as-a-judge models be used
|
| 265 |
+
|
| 266 |
+
as a reward model? To answer this question, we use RewardBench (Lambert et al., 2024), a reward model dataset, to evaluate our baseline models and TRACT. Each evaluating instance in RewardBench consists of an instruction, a winning response, and a losing one; the goal is to see whether a reward model can assign a higher reward to the winning response. To test point-wise LLM-as-a-judge models on RewardBench, we prompt the model with both responses separately, obtaining scores for them, and then compare the scores for the final ranking. We report the accuracy on RewardBench.
|
| 267 |
+
|
| 268 |
+
The results for RewardBench are presented in Table 10 in the Appendix. We see that TRACT performs quite well: the model fine-tuned from Mistral reaches an average score of 0.736, slightly worse than CLOUD (0.759). This shows that even though TRACT, a point-wise LLM-as-a-judge model, is not trained on pairwise ranking for reward modeling, it can still obtain reasonably good performance on RewardBench, a pairwise ranking benchmark. This is in stark contrast with the result of CLOUD on point-wise LLM-as-a-judge shown in Table 2, where CLOUD underperforms TRACT by a large margin. Lastly, we note that TRACT, a model trained on only a point-wise dataset, outperforms Prometheus-2-7B, a model trained on point-wise scoring and pairwise ranking datasets.
|
| 269 |
+
|
| 270 |
+
# 8 Related Work
|
| 271 |
+
|
| 272 |
+
# 8.1 LLM-as-a-Judge
|
| 273 |
+
|
| 274 |
+
LLM-as-a-judge paradigm is an application of LLMs as an automatic judge to assess texts (Chiang and Lee, 2023a). There are two types of LLM-as-a-judge: (1) Direct assessment: the LLM assigns a score to a given sample (Chiang and Lee, 2023a; Liu et al., 2023). (2) Pairwise ranking: the LLM determines which sample is better given a pair of samples (Zheng et al., 2023; Wang et al., 2024b; Li et al., 2024). In this paper, we focus on improving the direct assessment ability of the LLM.
|
| 275 |
+
|
| 276 |
+
Many prior works focus on fine-tuning opensource LLMs into better LLM judges using opensource data (Vu et al., 2024; Li et al., 2024). LLM-as-a-judge is often trained with the CE loss over CoT reasoning and a score (Kim et al., 2024a,b).
|
| 277 |
+
|
| 278 |
+
# 8.2 Training LLMs with Self-Generated Data
|
| 279 |
+
|
| 280 |
+
An important component of TRACT is fine-tuning over self-generated CoTs. Using self-generated data for training LLMs has been considered in the
|
| 281 |
+
|
| 282 |
+
literature (Wang et al., 2023; Kim et al., 2023) and is sometimes referred to as self-training (Singh et al., 2024) or self-distillation (Yang et al., 2024). Early work has already shown that self-distillation can improve the performance of machine translation (Freitag et al., 2017; Guo et al., 2021). Self-generated data can be used to augment the training data of LLMs (Wu et al., 2025; Sun et al., 2024) to mitigate the scarcity of high-quality labeled data. Self-generated CoTs, when combined with proper filtering methods, have been shown to improve LLM's reasoning ability (Zelikman et al., 2022; Gulcehre et al., 2023; Dou et al., 2024).
|
| 283 |
+
|
| 284 |
+
Most related to our work is Yang et al. (2024), who argue that self-generated data helps fine-tuning by reducing the distribution gap between the training data and the seed LLM. Ren et al. (2024) show that self-generated data yields lower perplexity under the seed LLM, which can explain the performance gain of fine-tuning on self-generated data. While we confirm that self-generated data has a lower perplexity under the seed LLM (Appendix B.4), we use a fine-tuning objective different from prior works. Interestingly, we find that fine-tuning over self-generated data with the CE loss, as recommended in prior works, does not improve the performance. Our proposed objective does significantly benefit from self-generated CoTs, showing how self-generated data is important for TRACT.
|
| 285 |
+
|
| 286 |
+
# 9 Conclusion
|
| 287 |
+
|
| 288 |
+
In this paper, we introduce Two-stage Regression-Aware fine-tuning with CoT reasoning (TRACT), a method integrating CoT reasoning with the RAFT framework to harness the step-by-step reasoning ability of LLMs while learning the numerical structure of the scoring task. TRACT consists of (1) CoT-RAFT for training, (2) CoT-RAIL for inference, and (3) two-stage fine-tuning for self-generated CoTs training. Our experiments across two models and five datasets show that TRACT consistently outperforms all prior baselines finetuned on the same dataset by a significant margin. Under limited inference compute, TRACT also outperforms Prometheus-2-7B, a same-sized SoTA model trained on more data. We carry out careful ablations to explicate the importance of each component in TRACT. We believe our proposed method and open-source models can benefit the community working on LLM-as-a-judge.
|
| 289 |
+
|
| 290 |
+
# Limitations
|
| 291 |
+
|
| 292 |
+
One of the limitations of TRACT is that it requires access to the model's output probabilities, which is not always possible for proprietary models. Our technique can be readily applied to open-source models.
|
| 293 |
+
|
| 294 |
+
# Acknowledgments
|
| 295 |
+
|
| 296 |
+
We thank the reviewers for their valuable and constructive feedback. We compare with CLOUD and include the results of RewardBench based on the reviewers' suggestions. Cheng-Han Chiang is supported by a Google PhD Fellowship and a Ph.D. scholarship program by Delta Electronics.
|
| 297 |
+
|
| 298 |
+
# References
|
| 299 |
+
|
| 300 |
+
Marah Abdin, Jyoti Aneja, Hany Awadalla, Ahmed Awadallah, Ammar Ahmad Awan, Nguyen Bach, Amit Bahree, Arash Bakhtiari, Jianmin Bao, Harkirat Behl, Alon Benhaim, Misha Bilenko, Johan Bjorck, Sebastien Bubeck, Martin Cai, Qin Cai, Vishrav Chaudhary, Dong Chen, Dongdong Chen, and 110 others. 2024. Phi-3 technical report: A highly capable language model locally on your phone. Preprint, arXiv:2404.14219.
|
| 301 |
+
Zachary Ankner, Mansheej Paul, Brandon Cui, Jonathan D Chang, and Prithviraj Ammanabrolu. 2024. Critique-out-loud reward models. arXiv preprint arXiv:2408.11791.
|
| 302 |
+
Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, and 1 others. 2022. Training a helpful and harmless assistant with reinforcement learning from human feedback. arXiv preprint arXiv:2204.05862.
|
| 303 |
+
Bradley Brown, Jordan Juravsky, Ryan Saul Ehrlich, Ronald Clark, Quoc V Le, Christopher Re, and Azalia Mirhoseini. 2025. Large language monkeys: Scaling inference compute with repeated sampling.
|
| 304 |
+
Daniel Cer, Mona Diab, Eneko Agirre, Inigo Lopez-Gazpio, and Lucia Specia. 2017. Semeval-2017 task 1: Semantic textual similarity multilingual and crosslingual focused evaluation. In Proceedings of the 11th International Workshop on Semantic Evaluation (SemEval-2017). Association for Computational Linguistics.
|
| 305 |
+
Cheng-Han Chiang, Wei-Chih Chen, Chun-Yi Kuan, Chienchou Yang, and Hung-yi Lee. 2024. Large language model as an assignment evaluator: Insights, feedback, and challenges in a $1000+$ student course. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 2489-2513, Miami, Florida, USA. Association for Computational Linguistics.
|
| 306 |
+
|
| 307 |
+
Cheng-Han Chiang and Hung-yi Lee. 2023a. Can large language models be an alternative to human evaluations? In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 15607-15631, Toronto, Canada. Association for Computational Linguistics.
|
| 308 |
+
Cheng-Han Chiang and Hung-yi Lee. 2023b. A closer look into using large language models for automatic evaluation. In *Findings of the Association for Computational Linguistics: EMNLP* 2023, pages 8928-8942, Singapore. Association for Computational Linguistics.
|
| 309 |
+
Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E. Gonzalez, Ion Stoica, and Eric P. Xing. 2023. Vicuna: An opensource chatbot impressing gpt-4 with $90\%$ * chatgpt quality.
|
| 310 |
+
Nicolai Dorka. 2024. Quantile regression for distributional reward models in rlhf. arXiv preprint arXiv:2409.10164.
|
| 311 |
+
Zi-Yi Dou, Cheng-Fu Yang, Xueqing Wu, Kai-Wei Chang, and Nanyun Peng. 2024. Re-ReST: Reflection-reinforced self-training for language agents. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 15394–15411, Miami, Florida, USA. Association for Computational Linguistics.
|
| 312 |
+
Yann Dubois, Balázs Galambosi, Percy Liang, and Tatsunori B. Hashimoto. 2024. Length-controlled alpacaeval: A simple way to debias automatic evaluators. Preprint, arXiv:2404.04475.
|
| 313 |
+
Markus Freitag, Yaser Al-Onaizan, and Baskaran Sankaran. 2017. Ensemble distillation for neural machine translation. Preprint, arXiv:1702.01802.
|
| 314 |
+
Google. 2023. An important next step on our ai journey. Accessed on Feb 6, 2025.
|
| 315 |
+
Aaron Grattaftiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, Amy Yang, Angela Fan, Anirudh Goyal, Anthony Hartshorn, Aobo Yang, Archi Mitra, Archie Sravankumar, Artem Korenev, Arthur Hinsvark, and 542 others. 2024. The llama 3 herd of models. Preprint, arXiv:2407.21783.
|
| 316 |
+
Caglar Gulcehre, Tom Le Paine, Srivatsan Srinivasan, Ksenia Konyushkova, Lotte Weerts, Abhishek Sharma, Aditya Siddhant, Alex Ahern, Miaosen Wang, Chenjie Gu, Wolfgang Macherey, Arnaud Doucet, Orhan First, and Nando de Freitas. 2023. Reinforced self-training (rest) for language modeling. Preprint, arXiv:2308.08998.
|
| 317 |
+
Jiaxin Guo, Minghan Wang, Daimeng Wei, Hengchao Shang, Yuxia Wang, Zongyao Li, Zhengzhe Yu, Zhanglin Wu, Yimeng Chen, Chang Su, Min Zhang, Lizhi Lei, shimin tao, and Hao Yang.
|
| 318 |
+
|
| 319 |
+
2021. Self-distillation mixup training for non-autoregressive neural machine translation. Preprint, arXiv:2112.11640.
|
| 320 |
+
Ari Holtzman, Jan Buys, Li Du, Maxwell Forbes, and Yejin Choi. 2020. The curious case of neural text degeneration. In International Conference on Learning Representations.
|
| 321 |
+
Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations.
|
| 322 |
+
Robert Irvine, Douglas Boubert, Vyas Raina, Adrian Liusie, Ziyi Zhu, Vineet Mudupalli, Aliaksei Korshuk, Zongyi Liu, Fritz Cremer, Valentin Assassi, and 1 others. 2023. Rewarding chatbots for real-world engagement with millions of users. arXiv preprint arXiv:2303.06135.
|
| 323 |
+
Albert Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. 2023. Mistral 7b. Preprint, arXiv:2310.06825.
|
| 324 |
+
Maurice G Kendall. 1938. A new measure of rank correlation. Biometrika, 30(1-2):81-93.
|
| 325 |
+
Seungone Kim, Jamin Shin, Yejin Cho, Joel Jang, Shayne Longpre, Hwaran Lee, Sangdoo Yun, Seongjin Shin, Sungdong Kim, James Thorne, and Minjoon Seo. 2024a. Prometheus: Inducing fine-grained evaluation capability in language models. In The Twelfth International Conference on Learning Representations.
|
| 326 |
+
Seungone Kim, Juyoung Suk, Shayne Longpre, Bill Yuchen Lin, Jamin Shin, Sean Welleck, Graham Neubig, Moontae Lee, Kyungjae Lee, and Minjoon Seo. 2024b. Prometheus 2: An open source language model specialized in evaluating other language models. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 4334-4353, Miami, Florida, USA. Association for Computational Linguistics.
|
| 327 |
+
Sungdong Kim, Sanghwan Bae, Jamin Shin, Soyoung Kang, Donghyun Kwak, Kang Yoo, and Minjoon Seo. 2023. Aligning large language models through synthetic feedback. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 13677-13700, Singapore. Association for Computational Linguistics.
|
| 328 |
+
Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. 2022. Large language models are zero-shot reasoners. In Proceedings of the 36th International Conference on Neural Information Processing Systems, NIPS '22, Red Hook, NY, USA. Curran Associates Inc.
|
| 329 |
+
|
| 330 |
+
Shankar Kumar and William Byrne. 2004. Minimum Bayes-risk decoding for statistical machine translation. In Proceedings of the Human Language Technology Conference of the North American Chapter of the Association for Computational Linguistics: HLT-NAACL 2004, pages 169-176, Boston, Massachusetts, USA. Association for Computational Linguistics.
|
| 331 |
+
Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. 2023. Efficient memory management for large language model serving with pagedattention. In Proceedings of the ACM SIGOPS 29th Symposium on Operating Systems Principles.
|
| 332 |
+
Nathan Lambert, Jacob Morrison, Valentina Pyatkin, Shengyi Huang, Hamish Ivison, Faeze Brahman, Lester James V. Miranda, Alisa Liu, Nouha Dziri, Shane Lyu, Yuling Gu, Saumya Malik, Victoria Graf, Jena D. Hwang, Jiangjiang Yang, Ronan Le Bras, Oyvind Tafjord, Chris Wilhelm, Luca Soldaini, and 4 others. 2025. Tulu 3: Pushing frontiers in open language model post-training. Preprint, arXiv:2411.15124.
|
| 333 |
+
Nathan Lambert, Valentina Pyatkin, Jacob Morrison, Lester James Validad Miranda, Bill Yuchen Lin, Khyathi Chandu, Nouha Dziri, Sachin Kumar, Tom Zick, Yejin Choi, and 1 others. 2024. Rewardbench: Evaluating reward models for language modeling.
|
| 334 |
+
Junlong Li, Shichao Sun, Weizhe Yuan, Run-Ze Fan, hai zhao, and Pengfei Liu. 2024. Generative judge for evaluating alignment. In The Twelfth International Conference on Learning Representations.
|
| 335 |
+
Chris Yuhao Liu, Liang Zeng, Jiacai Liu, Rui Yan, Ju-jie He, Chaojie Wang, Shuicheng Yan, Yang Liu, and Yahui Zhou. 2024. Skywork-reward: Bag of tricks for reward modeling in llms. arXiv preprint arXiv:2410.18451.
|
| 336 |
+
Yang Liu, Dan Iter, Yichong Xu, Shuohang Wang, Ruochen Xu, and Chenguang Zhu. 2023. G-eval: NLG evaluation using gpt-4 with better human alignment. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 2511-2522, Singapore. Association for Computational Linguistics.
|
| 337 |
+
Ilya Loshchilov and Frank Hutter. 2017. SGDR: Stochastic gradient descent with warm restarts. In International Conference on Learning Representations.
|
| 338 |
+
Michal Lukasik, Zhao Meng, Harikrishna Narasimhan, Yin Wen Chang, Aditya Krishna Menon, Felix Yu, and Sanjiv Kumar. 2025. Better autoregressive regression with llms via regression-aware fine-tuning. In The Thirteenth International Conference on Learning Representations.
|
| 339 |
+
Michal Lukasik, Harikrishna Narasimhan, Aditya Krishna Menon, Felix Yu, and Sanjiv Kumar. 2024.
|
| 340 |
+
|
| 341 |
+
Regression aware inference with LLMs. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 13667-13678, Miami, Florida, USA. Association for Computational Linguistics.
|
| 342 |
+
Karl Pearson. 1895. VII. note on regression and inheritance in the case of two parents. proceedings of the royal society of London, 58(347-352):240-242.
|
| 343 |
+
Xuan Ren, Biao Wu, and Lingqiao Liu. 2024. I learn better if you speak my language: Understanding the superior performance of fine-tuning large language models with LLM-generated responses. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 10225-10245, Miami, Florida, USA. Association for Computational Linguistics.
|
| 344 |
+
Avi Singh, John D Co-Reyes, Rishabh Agarwal, Ankesh Anand, Piyush Patil, Xavier Garcia, Peter J Liu, James Harrison, Jaehoon Lee, Kelvin Xu, Aaron T Parisi, Abhishek Kumar, Alexander A Alemi, Alex Rizkowsky, Azade Nova, Ben Adlam, Bernd Bohnet, Gamaleldin Fathy Elsayed, Hanie Sedghi, and 21 others. 2024. Beyond human data: Scaling self-training for problem-solving with language models. Transactions on Machine Learning Research. Expert Certification.
|
| 345 |
+
Charlie Victor Snell, Jaehoon Lee, Kelvin Xu, and Avi-ral Kumar. 2025. Scaling test-time compute optimally can be more effective than scaling LLM parameters. In The Thirteenth International Conference on Learning Representations.
|
| 346 |
+
Charles Spearman. 1961. The proof and measurement of association between two things.
|
| 347 |
+
Zhiqing Sun, Longhui Yu, Yikang Shen, Weiyang Liu, Yiming Yang, Sean Welleck, and Chuang Gan. 2024. Easy-to-hard generalization: Scalable alignment beyond human supervision. In The Thirty-eighth Annual Conference on Neural Information Processing Systems.
|
| 348 |
+
Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. 2023. Stanford alpaca: An instruction-following llama model. https://github.com/tatsu-lab/stanford_alpaca.
|
| 349 |
+
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, and 49 others. 2023. Llama 2: Open foundation and fine-tuned chat models. Preprint, arXiv:2307.09288.
|
| 350 |
+
Tu Vu, Kalpesh Krishna, Salaheddin Alzubi, Chris Tar, Manaal Faruqui, and Yun-Hsuan Sung. 2024. Foundational autorators: Taming large language models for better automatic evaluation. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 17086-17105, Miami,
|
| 351 |
+
|
| 352 |
+
Florida, USA. Association for Computational Linguistics.
|
| 353 |
+
Haoxiang Wang, Wei Xiong, Tengyang Xie, Han Zhao, and Tong Zhang. 2024a. Interpretable preferences via multi-objective reward modeling and mixture-of-experts. In EMNLP.
|
| 354 |
+
Yidong Wang, Zhuohao Yu, Wenjin Yao, Zhengran Zeng, Linyi Yang, Cunxiang Wang, Hao Chen, Chaoya Jiang, Rui Xie, Jindong Wang, Xing Xie, Wei Ye, Shikun Zhang, and Yue Zhang. 2024b. PandaLM: An automatic evaluation benchmark for LLM instruction tuning optimization. In The Twelfth International Conference on Learning Representations.
|
| 355 |
+
Yizhong Wang, Yeganeh Kordi, Swaroop Mishra, Alisa Liu, Noah A. Smith, Daniel Khashabi, and Hannaneh Hajishirzi. 2023. Self-instruct: Aligning language models with self-generated instructions. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 13484-13508, Toronto, Canada. Association for Computational Linguistics.
|
| 356 |
+
Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, and 1 others. 2022. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824-24837.
|
| 357 |
+
Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumont, Clement Delangue, Anthony Moi, Pierrick Cistac, Tim Rault, Remi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, and 3 others. 2020. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 38-45, Online. Association for Computational Linguistics.
|
| 358 |
+
Tianhao Wu, Weizhe Yuan, Olga Golovneva, Jing Xu, Yuandong Tian, Jiantao Jiao, Jason E Weston, and Sainbayar Sukhbaatar. 2025. Meta-rewarding language models: Self-improving alignment with LLM-as-a-meta-judge.
|
| 359 |
+
Can Xu, Qingfeng Sun, Kai Zheng, Xiubo Geng, Pu Zhao, Jiazhan Feng, Chongyang Tao, Qingwei Lin, and Daxin Jiang. 2024. WizardLM: Empowering large pre-trained language models to follow complex instructions. In The Twelfth International Conference on Learning Representations.
|
| 360 |
+
Zhaorui Yang, Tianyu Pang, Haozhe Feng, Han Wang, Wei Chen, Minfeng Zhu, and Qian Liu. 2024. Self-distillation bridges distribution gap in language model fine-tuning. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1028-1043, Bangkok, Thailand. Association for Computational Linguistics.
|
| 361 |
+
|
| 362 |
+
Seonghyeon Ye, Doyoung Kim, Sungdong Kim, Hyeonbin Hwang, Seungone Kim, Yongrae Jo, James Thorne, Juho Kim, and Minjoon Seo. 2024. FLASK: Fine-grained language model evaluation based on alignment skill sets. In The Twelfth International Conference on Learning Representations.
|
| 363 |
+
|
| 364 |
+
Weizhe Yuan, Richard Yuanzhe Pang, Kyunghyun Cho, Xian Li, Sainbayar Sukhbaatar, Jing Xu, and Jason Weston. 2024. Self-rewarding language models. In Proceedings of the 41st International Conference on Machine Learning, ICML'24. JMLR.org.
|
| 365 |
+
|
| 366 |
+
Eric Zelikman, Yuhuai Wu, Jesse Mu, and Noah Goodman. 2022. STar: Bootstrapping reasoning with reasoning. In Advances in Neural Information Processing Systems.
|
| 367 |
+
|
| 368 |
+
Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric Xing, Hao Zhang, Joseph E. Gonzalez, and Ion Stoica. 2023. Judging LLM-as-a-judge with MT-bench and chatbot arena. In Thirty-seventh Conference on Neural Information Processing Systems Datasets and Benchmarks Track.
|
| 369 |
+
|
| 370 |
+
Yaowei Zheng, Richong Zhang, Junhao Zhang, Yanhan Ye, Zheyan Luo, Zhangchi Feng, and Yongqiang Ma. 2024. Llamafactory: Unified efficient fine-tuning of $100+$ language models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 3: System Demonstrations), Bangkok, Thailand. Association for Computational Linguistics.
|
| 371 |
+
|
| 372 |
+
# A Hyperparameters
|
| 373 |
+
|
| 374 |
+
Training Hyperparameters We train our models using Llama-Factory (Zheng et al., 2024). All models are trained with LoRA (Hu et al., 2022). We use all the default LoRA parameters in LlamaFactory: the rank of LoRA is set to 8, and we apply LoRA on all the linear layers of the transformer model. We fine-tune the model with a learning rate of $1.0 \times 10^{-5}$ , use a cosine learning rate scheduler (Loshchilov and Hutter, 2017), and fine-tune for two epochs. The warm-up ratio is set to 1.0. We use bf16 for training. The effective batch size of training is set to 8. All our training is run on a single NVIDIA RTX A6000; training the model on the whole training dataset takes about 50 hours. When training TRACT, we need to first fine-tune on the GPT-4 generated data and fine-tune on the self-generated data, making the total training time about 100 hours.
|
| 375 |
+
|
| 376 |
+
Inference Hyperparameters For inference, we use vLLM (Kwon et al., 2023). Most inference hyperparameters follow Kim et al. (2024b): the top- $p$
|
| 377 |
+
|
| 378 |
+
is set to 0.9 (Holtzman et al., 2020), the temperature is set to 1.0, the repetition penalty is set to 1.03, the maximum number of output tokens is set to 1024.
|
| 379 |
+
|
| 380 |
+
The only different hyperparameter from Kim et al. (2024b) is we sample only 1 CoT in Table 2, while they sample 3 CoTs and average the score. To obtain the results of Prometheus-2-7B with 1 CoT, we use their official model from Huggingface (Wolf et al., 2020) and use the official code from https://github.com/prometheus-eval/prometheus-eval/tree/main/eval. We made some necessary modifications to the official code to make it executable; we find that we can reproduce the Prometheus results using our modified code.
|
| 381 |
+
|
| 382 |
+
# B Supplementary Results
|
| 383 |
+
|
| 384 |
+
# B.1 Quality of the Self-Generated CoTs
|
| 385 |
+
|
| 386 |
+
In this section, we investigate the quality of the self-generated CoTs used in the second training stage in TRACT. To investigate the quality of self-generated CoTs, we use LLM-as-a-meta-judge to evaluate the evaluation CoTs generated by GPT-4 (the original CoTs in Feedback Collection (Kim et al., 2024a)) and the student model $p_{\mathrm{s}}$ . We call GPT-4 the meta-judge since it is used to evaluate the evaluation of LLM-as-a-judge. We prompt the meta-judge to evaluate the quality of the evaluation CoTs using a 5-point scale, with 1 being the lowest and 5 the highest. The evaluation prompt is shown in Table 5. We ask meta-judge to evaluate whether the evaluation CoT follows the scoring rubric and is grounded on the response.
|
| 387 |
+
|
| 388 |
+
Note that the [judgement] to be evaluated in Table 5 includes the score, which is the original score in Feedback Collection. That is, no matter whether the evaluation CoT is generated from GPT-4 or $p_{\mathrm{s}}$ , the final score is always the one in Feedback Collection. This is the setting that is used to train the models. Including the score in this meta-evaluation experiment allows the meta-judge to determine if the final score is consistent with the evaluation CoTs.
|
| 389 |
+
|
| 390 |
+
We randomly sample 200 samples from the training set and collect the evaluation CoTs in the Feedback Collection (GPT-4 generated) and the CoTs generated by $p_{\mathrm{s}}$ , the student model fine-tuned on GPT-4 CoTs. The average score for GPT-4 generated CoTs is 4.78/5.00, while the average score of CoTs generated by $p_{\mathrm{s}}$ is 4.50/5.00. While the average score of $p_{\mathrm{s}}$ -generated is slightly worse than
|
| 391 |
+
|
| 392 |
+
that of GPT-4, a score of 4.50/5.00 is still very high, indicating that the self-generated CoTs have good quality.
|
| 393 |
+
|
| 394 |
+
# B.2 Results of Kendal's $\tau$ Correlation Coefficients
|
| 395 |
+
|
| 396 |
+
The results of Kendall's $\tau$ correlation coefficient when fine-tuned with Mistral are shown in Table 6.
|
| 397 |
+
|
| 398 |
+
# B.3 Results from Llama-3.1
|
| 399 |
+
|
| 400 |
+
We report the results from experiments with Llama-3.1-8B-Instruct in Table 7 and the corresponding Kendall's $\tau$ in Table 8. We find that TRACT outperforms all baseline methods. Compared with Prometheus-2-7B in Table 2, TRACT fine-tuned on Llama-3.1 8B leads to much stronger results. However, Prometheus-2-7B is fine-tuned with a different base model (Mistral-7B), which is a smaller model, and thus the results may not be directlucomparable.
|
| 401 |
+
|
| 402 |
+
# B.4 Perplexity of Training Data
|
| 403 |
+
|
| 404 |
+
We use the base LLM $p_0$ (Mistral-7b-Instruct-v0.2) to calculate the perplexity of the CoTs from $p_{\mathrm{a}}$ and the CoTs generated by $p_{\mathrm{s}}$ and $p_{\mathrm{tract}}$ . For the above three types of CoTs, their perplexity is 7.78, 6.67, and 6.34 respectively. Similar to Ren et al. (2024), we find that self-generated CoTs (from $p_{\mathrm{s}}$ and $p_{\mathrm{tract}}$ ) yield lower perplexity compared to those generated by GPT-4.
|
| 405 |
+
|
| 406 |
+
# C Corrupted CoTs for Section 6.3
|
| 407 |
+
|
| 408 |
+
We show examples of corrupted CoTs generated from the model trained with sequential fine-tuning (see Section 6.3). In the first sample, the evaluation CoT is short, and it is unclear what the '[5]' means here. In the second sample, the model generates a string 'Score 5' in the middle, and fails to generate the required output in expected format. In the third example, the fine-tuned model generates 'Score 2', which also do not follow the expected output format.
|
| 409 |
+
|
| 410 |
+
# D License
|
| 411 |
+
|
| 412 |
+
We release the model under the Apache 2.0 license. Since our models are trained using Feedback Collection, a dataset generated from OpenAI GPT-4, the models are further subject to OpenAI's Terms of Use. Additionally, the models fine-tuned from Llama-3.1-8B-Instruct is also further subject to the Llama 3.1 Community License.
|
| 413 |
+
|
| 414 |
+
An instruction (might include an Input inside it), a response to evaluate, a reference answer that gets a score of 5, and a score rubric representing a evaluation criteria are given.
|
| 415 |
+
|
| 416 |
+
1. Write a detailed feedback that assess the quality of the response strictly based on the given score rubric, not evaluating in general. 2. After writing a feedback, write a score that is an integer between 1 and 5. You should refer to the score rubric.
|
| 417 |
+
3. The output format should look as follows: "Feedback: (write a feedback for criteria) [RESULT] (an integer number between 1 and 5)"
|
| 418 |
+
4. Please do not generate any other opening, closing, and explanations.
|
| 419 |
+
|
| 420 |
+
# The instruction to evaluate:
|
| 421 |
+
|
| 422 |
+
You are a well-known psychiatrist who has a reputation for being empathetic and understanding. A client comes to you saying they've had a really hard day at work. They describe their boss as being overly critical and not listening to their ideas, which has left them feeling frustrated and undervalued. They also mention feeling overwhelmed with the workload and a growing sense of loneliness as they are new to the city. How do you respond to them to make them feel heard and understood, as well as offering helpful advice?
|
| 423 |
+
|
| 424 |
+
# ##Response to evaluate:
|
| 425 |
+
|
| 426 |
+
It's indeed challenging to deal with a difficult boss and to carry a large workload, especially when you are new to a city and haven't established a supportive network. I would suggest taking a step back to think about your situation and perhaps speak to your boss regarding the issues you're facing. On the other hand, dealing with a large workload can be managed by prioritizing tasks, and maybe you can discuss it with your superiors too.
|
| 427 |
+
|
| 428 |
+
In regards to feeling lonely, you might want to explore activities or groups that align with your interests to meet new people. And also, remember to take time for yourself to relax and destress. I'm here to assist you as we navigate through these issues.
|
| 429 |
+
|
| 430 |
+
# ##Reference Answer (Score 5):
|
| 431 |
+
|
| 432 |
+
I hear that you're dealing with quite a few challenging situations at once. It must be tough to have your ideas dismissed by your boss and to feel undervalued in your work environment. It's understandable that such experiences can lead to frustration and a feeling of being overwhelmed.
|
| 433 |
+
|
| 434 |
+
It's important to acknowledge these feelings and not to dismiss them. Feeling heard and validated in our experiences can often be the first step towards resolving the challenges we face. So, I want you to know that your feelings are completely valid and it's okay to be frustrated and overwhelmed.
|
| 435 |
+
|
| 436 |
+
In terms of dealing with your boss, have you considered seeking a private conversation with them to express your feelings? It's often beneficial to communicate what you're experiencing, using "I" statements to express how you feel when your ideas are not taken into consideration. This can lead to mutual understanding and possibly a change in behavior.
|
| 437 |
+
|
| 438 |
+
About the workload, it might help to prioritize tasks and potentially delegate, if possible. Also, consider discussing your workload with your superiors. There might be a misunderstanding about what's manageable or they might have suggestions about how to handle the situation.
|
| 439 |
+
|
| 440 |
+
On the personal front, feeling lonely, especially when you're new to a city, can be really hard. Seek out opportunities to meet new people, perhaps through hobbies, community activities, or online groups. It might take a bit of time, but gradually, you can build a network of friends and acquaintances.
|
| 441 |
+
|
| 442 |
+
Remember, it's perfectly okay to have bad days and it's important to take care of your mental health. Consider incorporating activities into your daily routine that make you happy and help you unwind. This could be anything from reading, yoga, going for a walk, or even listening to your favorite music.
|
| 443 |
+
|
| 444 |
+
Please know that you're not alone in this. I'm here to support you through this challenging time and together, we can work towards resolving these issues.
|
| 445 |
+
|
| 446 |
+
# Score Rubrics:
|
| 447 |
+
|
| 448 |
+
[Is the model able to identify and react correctly to the emotional context of the user's input?]
|
| 449 |
+
|
| 450 |
+
Score 1: The model utterly fails to grasp the user's emotional context and responds in an unfitting manner.
|
| 451 |
+
|
| 452 |
+
Score 2: The model sporadically identifies the emotional context but frequently replies in a manner that doesn't match the user's emotional status.
|
| 453 |
+
|
| 454 |
+
Score 3: The model typically identifies the emotional context and reacts suitably, but occasionally misreads or misjudges the user's feelings.
|
| 455 |
+
|
| 456 |
+
Score 4: The model often identifies the emotional context and reacts suitably, with minor cases of misreading or misjudging.
|
| 457 |
+
|
| 458 |
+
Score 5: The model flawlessly identifies the emotional context of the user's input and consistently responds in a considerate and empathetic manner.
|
| 459 |
+
|
| 460 |
+
Feedback:
|
| 461 |
+
|
| 462 |
+
# (a) Input example with the input prompt template.
|
| 463 |
+
|
| 464 |
+
The response offers practical, original, and effective solutions (...). So the overall score is 3.
|
| 465 |
+
|
| 466 |
+
# (b) Example output
|
| 467 |
+
|
| 468 |
+
Table 4: The input prompt template (with an input example) and an example output used in our main experiment.
|
| 469 |
+
|
| 470 |
+
A judge model is required to evaluate the quality of a response generated by an AI model based on the user's instruction.
|
| 471 |
+
|
| 472 |
+
The following are the instructions and inputs for the judge model:
|
| 473 |
+
|
| 474 |
+
```c
|
| 475 |
+
```c
|
| 476 |
+
```c
|
| 477 |
+
```c
|
| 478 |
+
```c
|
| 479 |
+
```c
|
| 480 |
+
```c
|
| 481 |
+
```c
|
| 482 |
+
```c
|
| 483 |
+
```c
|
| 484 |
+
```c
|
| 485 |
+
```c
|
| 486 |
+
```c
|
| 487 |
+
```c
|
| 488 |
+
```c
|
| 489 |
+
```c
|
| 490 |
+
```c
|
| 491 |
+
```c
|
| 492 |
+
```c
|
| 493 |
+
```c
|
| 494 |
+
```c
|
| 495 |
+
```c
|
| 496 |
+
```c
|
| 497 |
+
```c
|
| 498 |
+
```c
|
| 499 |
+
```c
|
| 500 |
+
```c
|
| 501 |
+
```c
|
| 502 |
+
```c
|
| 503 |
+
```c
|
| 504 |
+
```c
|
| 505 |
+
```c
|
| 506 |
+
```c
|
| 507 |
+
```c
|
| 508 |
+
```
|
| 509 |
+
``
|
| 510 |
+
|
| 511 |
+
End of Inputs to Judge Model
|
| 512 |
+
|
| 513 |
+
Here is the judgement from the Judge model:
|
| 514 |
+
|
| 515 |
+
Begin of Judgement
|
| 516 |
+
|
| 517 |
+
[judgement]
|
| 518 |
+
|
| 519 |
+
End of Judgement
|
| 520 |
+
|
| 521 |
+
Question: Please evaluate the quality of the judgement based on whether the judgement is grounded on the responses and carefully follows the rubric. Provide some reasoning and analysis to support your evaluation. Next, provide an **integer rating** between 1 to 5, where 1 is the lowest quality and 5 is the highest quality, to assess the quality of the judgement. Please always conclude with "Score: score", where score is the integer rating.
|
| 522 |
+
|
| 523 |
+
Table 5: The prompt used to evaluate the quality of the evaluation CoTs. The [input] includes all the input to the LLM-as-a-judge model that is used to generate the evaluation CoT, as shown in Table 4 (Appendix). The [judgement] includes the evaluation CoT and the final score.
|
| 524 |
+
|
| 525 |
+
<table><tr><td rowspan="2">Id</td><td colspan="4">Train/Inference Configuration</td><td>FB Bench</td><td>FLASK</td><td>Vic. Bench</td><td>MT Bench</td><td>Average</td></tr><tr><td>CoT</td><td>Train</td><td>Data</td><td>Infer.</td><td>τ</td><td>τ</td><td>τ</td><td>τ</td><td></td></tr><tr><td colspan="10">Baselines</td></tr><tr><td>B.1</td><td>X</td><td>CE</td><td>GPT-4‡</td><td>Decode</td><td>0.824</td><td>0.294</td><td>0.344</td><td>0.211</td><td>0.418</td></tr><tr><td>B.2</td><td>✓</td><td>CE</td><td>GPT-4</td><td>Decode</td><td>0.798</td><td>0.328</td><td>0.380</td><td>0.380</td><td>0.472</td></tr><tr><td>B.3</td><td>X</td><td>X</td><td>X</td><td>RAIL</td><td>0.130</td><td>0.109</td><td>0.122</td><td>0.150</td><td>0.127</td></tr><tr><td>B.4</td><td>X</td><td>RAFT</td><td>GPT-4‡</td><td>RAIL</td><td>0.818</td><td>0.375</td><td>0.401</td><td>0.342</td><td>0.484</td></tr><tr><td>B.5</td><td>✓</td><td colspan="2">Prometheus-2-7B†</td><td>Decode</td><td>0.765</td><td>0.405</td><td>0.411</td><td>0.392</td><td>0.493</td></tr><tr><td colspan="10">TRACT (ours)</td></tr><tr><td>7</td><td>✓</td><td>C-RAFT</td><td>Self</td><td>C-RAIL</td><td>0.820</td><td>0.373</td><td>0.423</td><td>0.386</td><td>0.500</td></tr><tr><td colspan="10">Ablation analysis for TRACT</td></tr><tr><td>A.1</td><td>✓</td><td>C-RAFT</td><td>GPT-4</td><td>C-RAIL</td><td>0.763</td><td>0.315</td><td>0.409</td><td>0.307</td><td>0.448</td></tr><tr><td>A.2</td><td>✓</td><td>CE</td><td>Self</td><td>C-RAIL</td><td>0.798</td><td>0.321</td><td>0.406</td><td>0.369</td><td>0.474</td></tr><tr><td>A.3</td><td>✓</td><td>CE</td><td>Self</td><td>Decode</td><td>0.795</td><td>0.281</td><td>0.339</td><td>0.337</td><td>0.438</td></tr></table>
|
| 526 |
+
|
| 527 |
+
Table 6: The Kendall's $\tau$ results for Mistral-7B-Instruct. The best and second-best results (excluding ablations) for each column are marked with **boldface** and **underline**, respectively. Explanation of abbreviations: **Train:** training objective; **Data:** source of CoT used for training; **Inf:** inference method; **FB Bench:** Feedback Bench; **Vic. Bench:** Vicuna Bench; **C-RAFT:** CoT-RAFT; **C-RAIL:** CoT-RAIL. †: Prometheus-2-7B is obtained by merging two models trained from Feedback Collection and Preference Collection. We rerun the inference using the model released by Kim et al. (2024b) with the official code.‡: When training without CoTs, the training target is simply the score, which is still generated by GPT-4.
|
| 528 |
+
|
| 529 |
+
<table><tr><td rowspan="2">Id</td><td colspan="4">Train/Inference Configuration</td><td colspan="2">FB Bench</td><td colspan="2">FLASK</td><td colspan="2">Vic. Bench</td><td colspan="2">MT Bench</td><td colspan="2">Average</td></tr><tr><td>CoT</td><td>Train</td><td>Data</td><td>Inf</td><td>ρ</td><td>r</td><td>ρ</td><td>r</td><td>ρ</td><td>r</td><td>ρ</td><td>r</td><td>ρ</td><td>r</td></tr><tr><td colspan="15">Baselines</td></tr><tr><td>B.1</td><td>X</td><td>CE</td><td>GPT-4</td><td>Decode</td><td>0.857</td><td>0.857</td><td>0.433</td><td>0.435</td><td>0.423</td><td>0.400</td><td>0.556</td><td>0.541</td><td>0.567</td><td>0.558</td></tr><tr><td>B.2</td><td>✓</td><td>CE</td><td>GPT-4</td><td>Decode</td><td>0.834</td><td>0.835</td><td>0.484</td><td>0.475</td><td>0.483</td><td>0.467</td><td>0.494</td><td>0.466</td><td>0.574</td><td>0.561</td></tr><tr><td>B.3</td><td>X</td><td>X</td><td>X</td><td>RAIL</td><td>0.689</td><td>0.683</td><td>0.445</td><td>0.412</td><td>0.487</td><td>0.485</td><td>0.583</td><td>0.547</td><td>0.551</td><td>0.532</td></tr><tr><td>B.4</td><td>X</td><td>RAFT</td><td>GPT-4‡</td><td>RAIL</td><td>0.918</td><td>0.920</td><td>0.493</td><td>0.506</td><td>0.541</td><td>0.509</td><td>0.614</td><td>0.618</td><td>0.642</td><td>0.639</td></tr><tr><td colspan="15">TRACT (ours)</td></tr><tr><td>7</td><td>✓</td><td>C-RAFT</td><td>Self</td><td>C-RAIL</td><td>0.917</td><td>0.920</td><td>0.493</td><td>0.500</td><td>0.650</td><td>0.605</td><td>0.639</td><td>0.672</td><td>0.675</td><td>0.674</td></tr></table>
|
| 530 |
+
|
| 531 |
+
Table 7: The results when using Llama3.1-8B as the base model. The best and second-best results for each column are marked with **boldface** and **underline**, respectively. The abbreviations are the same as those in Table 2. $\ddagger$ : When training without CoTs, the training target is simply the score, which is still generated by GPT-4.
|
| 532 |
+
|
| 533 |
+
<table><tr><td rowspan="2">Id</td><td colspan="4">Train/Inference Configuration</td><td>FB Bench</td><td>FLASK</td><td>Vic. Bench</td><td>MT Bench</td><td>Average</td></tr><tr><td>CoT</td><td>Train</td><td>Data</td><td>Infer.</td><td>τ</td><td>τ</td><td>τ</td><td>τ</td><td></td></tr><tr><td colspan="10">Baselines</td></tr><tr><td>B.1</td><td>X</td><td>CE</td><td>GPT-4‡</td><td>Decode</td><td>0.772</td><td>0.353</td><td>0.333</td><td>0.429</td><td>0.472</td></tr><tr><td>B.2</td><td>✓</td><td>CE</td><td>GPT-4</td><td>Decode</td><td>0.749</td><td>0.385</td><td>0.406</td><td>0.372</td><td>0.478</td></tr><tr><td>B.3</td><td>X</td><td>X</td><td>X</td><td>RAIL</td><td>0.535</td><td>0.298</td><td>0.360</td><td>0.398</td><td>0.398</td></tr><tr><td>B.4</td><td>X</td><td>RAFT</td><td>GPT-4‡</td><td>RAIL</td><td>0.799</td><td>0.371</td><td>0.386</td><td>0.455</td><td>0.503</td></tr><tr><td colspan="10">TRACT (ours)</td></tr><tr><td>7</td><td>✓</td><td>C-RAFT</td><td>Self</td><td>C-RAIL</td><td>0.805</td><td>0.367</td><td>0.468</td><td>0.494</td><td>0.534</td></tr></table>
|
| 534 |
+
|
| 535 |
+
Table 8: The Kendall's $\tau$ results for Mistral-7B-Instruct. The best and second-best results for each column are marked with boldface and underline, respectively. Explanation of abbreviations: Train: training objective; Data: source of CoT used for training; Inf.: inference method; FB Bench: Feedback Bench; Vic. Bench: Vicuna Bench; C-RAFT: CoT-RAFT; C-RAIL: CoT-RAIL. $\ddagger$ : When training without CoTs, the training target is simply the score, which is still generated by GPT-4.
|
| 536 |
+
|
| 537 |
+
# Example CoTs
|
| 538 |
+
|
| 539 |
+
The response effectively adapts its language to the user's Hindi language preference and rural Indian background by providing a step-by-step guide in Hindi. [5] So the overall score is 2
|
| 540 |
+
|
| 541 |
+
Feedback: The response effectively addresses the issue of improving a chatbot's ability to validate and incorporate user input. It outlines several strategies including the use of advanced Natural Language Processing techniques, handling multi-part inputs, maintaining conversation context, encouraging user feedback, and iterative testing. These approaches closely align with the reference answer. However, some enhancements could be made to provide a more concise and clearer explanation, especially in the context of the score rubric. (Score 5) This response demonstrates a high level of understanding of the problem domain and proposes practical solutions. The use of examples, such as breaking down multi-part questions into smaller components and maintaining a context stack, adds clarity to the suggestions and improves overall comprehension. By referring back to the original problem statement and directly addressing the criteria outlined in the rubric, the response effectively justifies its recommendations with strong evidence. So the overall score is 4
|
| 542 |
+
|
| 543 |
+
Feedback: The model does not demonstrate an understanding of the cultural idiom 'an old broom knows the corners' and fails to provide a thoughtful response. Instead, it dismisses the metaphor as confusing and insignificant in the corporate context. Its reaction is insensitive and lacks the ability to relate the idiom to practical business scenarios, significantly diminishing the value of the exchange. (Score 2) So the overall score is 1
|
| 544 |
+
|
| 545 |
+
Table 9: Examples of corrupted CoT sampled from a model trained via sequential fine-tuning: first fine-tuning using CE loss, and second fine-tuning with RAFT. See Section 6.3 for more details.
|
| 546 |
+
|
| 547 |
+
<table><tr><td>Id</td><td>Chat</td><td>Chat-Hard</td><td>Safety</td><td>Reasoning</td><td>Average</td></tr><tr><td>B.1</td><td>0.592</td><td>0.290</td><td>0.700</td><td>0.355</td><td>0.484</td></tr><tr><td>B.2</td><td>0.629</td><td>0.305</td><td>0.120</td><td>0.368</td><td>0.355</td></tr><tr><td>B.3</td><td>0.595</td><td>0.358</td><td>0.651</td><td>0.312</td><td>0.479</td></tr><tr><td>B.4</td><td>0.883</td><td>0.581</td><td>0.807</td><td>0.828</td><td>0.775</td></tr><tr><td>B.5.1</td><td>0.679</td><td>0.423</td><td>0.673</td><td>0.378</td><td>0.538</td></tr><tr><td>B.5.2</td><td>0.855</td><td>0.491</td><td>0.771</td><td>0.765</td><td>0.720</td></tr><tr><td>B.6</td><td>0.965</td><td>0.455</td><td>0.754</td><td>0.862</td><td>0.759</td></tr><tr><td colspan="6">TRACT(ours)</td></tr><tr><td>7.M</td><td>0.927</td><td>0.542</td><td>0.759</td><td>0.716</td><td>0.736</td></tr><tr><td>7.L</td><td>0.922</td><td>0.434</td><td>0.799</td><td>0.837</td><td>0.748</td></tr><tr><td>A.1</td><td>0.777</td><td>0.513</td><td>0.569</td><td>0.482</td><td>0.585</td></tr><tr><td>A.2</td><td>0.886</td><td>0.564</td><td>0.773</td><td>0.645</td><td>0.717</td></tr><tr><td>A.3</td><td>0.564</td><td>0.292</td><td>0.385</td><td>0.194</td><td>0.359</td></tr><tr><td>A.4</td><td>0.824</td><td>0.469</td><td>0.700</td><td>0.568</td><td>0.640</td></tr></table>
|
| 548 |
+
|
| 549 |
+
Table 10: Accuracy on RewardBench. The indices are identical to those in Table 2. 7.M and 7.L denote TRACT trained from Mistral and Llama-3-8B, respectively. All models are trained from Mistral, except for B.6 (CLoud) and 7.L, which are based on Llama-3-8B. For Prometheus-2-7B, we report two results since it can be used as a pointwise (B.5.1) and a pairwise (B.5.2) LLM-as-a-judge.
|
2025/TRACT_ Regression-Aware Fine-tuning Meets Chain-of-Thought Reasoning for LLM-as-a-Judge/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c9cc80072d306d6b79faa1b5e2e1f14ec26b340280ded887bb5b958f254d3de9
|
| 3 |
+
size 519838
|
2025/TRACT_ Regression-Aware Fine-tuning Meets Chain-of-Thought Reasoning for LLM-as-a-Judge/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/TRIDENT_ Enhancing Large Language Model Safety with Tri-Dimensional Diversified Red-Teaming Data Synthesis/f7ba882e-850d-4f46-b2a6-c075e0c61de6_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|