Add Batch 5790c4d7-46b7-4c9a-91b6-62251543b81d data
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributes+64
- 2025/PRESTO_ Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs/f1fe77a8-357a-4b90-83ea-7b5660325ccb_content_list.jsonAdded
- 2025/PRESTO_ Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs/f1fe77a8-357a-4b90-83ea-7b5660325ccb_model.jsonAdded
- 2025/PRESTO_ Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs/f1fe77a8-357a-4b90-83ea-7b5660325ccb_origin.pdfAdded+3
- 2025/PRESTO_ Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs/full.mdAdded+563
- 2025/PRESTO_ Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs/images.zipAdded+3
- 2025/PRESTO_ Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs/layout.jsonAdded
- 2025/PRIMT_ Preference-based Reinforcement Learning with Multimodal Feedback and Trajectory Synthesis from Foundation Models/436d48b8-a9a7-48ff-aafb-dd5a05d37eba_content_list.jsonAdded
- 2025/PRIMT_ Preference-based Reinforcement Learning with Multimodal Feedback and Trajectory Synthesis from Foundation Models/436d48b8-a9a7-48ff-aafb-dd5a05d37eba_model.jsonAdded
- 2025/PRIMT_ Preference-based Reinforcement Learning with Multimodal Feedback and Trajectory Synthesis from Foundation Models/436d48b8-a9a7-48ff-aafb-dd5a05d37eba_origin.pdfAdded+3
- 2025/PRIMT_ Preference-based Reinforcement Learning with Multimodal Feedback and Trajectory Synthesis from Foundation Models/full.mdAdded
- 2025/PRIMT_ Preference-based Reinforcement Learning with Multimodal Feedback and Trajectory Synthesis from Foundation Models/images.zipAdded+3
- 2025/PRIMT_ Preference-based Reinforcement Learning with Multimodal Feedback and Trajectory Synthesis from Foundation Models/layout.jsonAdded
- 2025/PROFIT_ A Specialized Optimizer for Deep Fine Tuning/2e5c67c6-a897-4260-9453-ff12b964eca3_content_list.jsonAdded
- 2025/PROFIT_ A Specialized Optimizer for Deep Fine Tuning/2e5c67c6-a897-4260-9453-ff12b964eca3_model.jsonAdded
- 2025/PROFIT_ A Specialized Optimizer for Deep Fine Tuning/2e5c67c6-a897-4260-9453-ff12b964eca3_origin.pdfAdded+3
- 2025/PROFIT_ A Specialized Optimizer for Deep Fine Tuning/full.mdAdded
- 2025/PROFIT_ A Specialized Optimizer for Deep Fine Tuning/images.zipAdded+3
- 2025/PROFIT_ A Specialized Optimizer for Deep Fine Tuning/layout.jsonAdded
- 2025/PRSformer_ Disease Prediction from Million-Scale Individual Genotypes/7529c3c3-e8eb-4e68-bffb-9946e4383806_content_list.jsonAdded
- 2025/PRSformer_ Disease Prediction from Million-Scale Individual Genotypes/7529c3c3-e8eb-4e68-bffb-9946e4383806_model.jsonAdded
- 2025/PRSformer_ Disease Prediction from Million-Scale Individual Genotypes/7529c3c3-e8eb-4e68-bffb-9946e4383806_origin.pdfAdded+3
- 2025/PRSformer_ Disease Prediction from Million-Scale Individual Genotypes/full.mdAdded
- 2025/PRSformer_ Disease Prediction from Million-Scale Individual Genotypes/images.zipAdded+3
- 2025/PRSformer_ Disease Prediction from Million-Scale Individual Genotypes/layout.jsonAdded
- 2025/PT-MoE_ An Efficient Finetuning Framework for Integrating Mixture-of-Experts into Prompt Tuning/b9476a8f-a396-48d3-8917-e387d3c19fb6_content_list.jsonAdded
- 2025/PT-MoE_ An Efficient Finetuning Framework for Integrating Mixture-of-Experts into Prompt Tuning/b9476a8f-a396-48d3-8917-e387d3c19fb6_model.jsonAdded
- 2025/PT-MoE_ An Efficient Finetuning Framework for Integrating Mixture-of-Experts into Prompt Tuning/b9476a8f-a396-48d3-8917-e387d3c19fb6_origin.pdfAdded+3
- 2025/PT-MoE_ An Efficient Finetuning Framework for Integrating Mixture-of-Experts into Prompt Tuning/full.mdAdded+536
- 2025/PT-MoE_ An Efficient Finetuning Framework for Integrating Mixture-of-Experts into Prompt Tuning/images.zipAdded+3
- 2025/PT-MoE_ An Efficient Finetuning Framework for Integrating Mixture-of-Experts into Prompt Tuning/layout.jsonAdded
- 2025/PUATE_ Efficient ATE Estimation from Treated (Positive) and Unlabeled Units/66e693e3-bc67-4cb7-b37e-0f305a140b97_content_list.jsonAdded
- 2025/PUATE_ Efficient ATE Estimation from Treated (Positive) and Unlabeled Units/66e693e3-bc67-4cb7-b37e-0f305a140b97_model.jsonAdded
- 2025/PUATE_ Efficient ATE Estimation from Treated (Positive) and Unlabeled Units/66e693e3-bc67-4cb7-b37e-0f305a140b97_origin.pdfAdded+3
- 2025/PUATE_ Efficient ATE Estimation from Treated (Positive) and Unlabeled Units/full.mdAdded
- 2025/PUATE_ Efficient ATE Estimation from Treated (Positive) and Unlabeled Units/images.zipAdded+3
- 2025/PUATE_ Efficient ATE Estimation from Treated (Positive) and Unlabeled Units/layout.jsonAdded
- 2025/PaTH Attention_ Position Encoding via Accumulating Householder Transformations/d6b9d663-530b-4a00-91ec-171ca9581718_content_list.jsonAdded
- 2025/PaTH Attention_ Position Encoding via Accumulating Householder Transformations/d6b9d663-530b-4a00-91ec-171ca9581718_model.jsonAdded
- 2025/PaTH Attention_ Position Encoding via Accumulating Householder Transformations/d6b9d663-530b-4a00-91ec-171ca9581718_origin.pdfAdded+3
- 2025/PaTH Attention_ Position Encoding via Accumulating Householder Transformations/full.mdAdded+690
- 2025/PaTH Attention_ Position Encoding via Accumulating Householder Transformations/images.zipAdded+3
- 2025/PaTH Attention_ Position Encoding via Accumulating Householder Transformations/layout.jsonAdded
- 2025/PaZO_ Preconditioned Accelerated Zeroth-Order Optimization for Fine-Tuning LLMs/72355d5c-5242-4182-aa4e-5f9688c82e2b_content_list.jsonAdded
- 2025/PaZO_ Preconditioned Accelerated Zeroth-Order Optimization for Fine-Tuning LLMs/72355d5c-5242-4182-aa4e-5f9688c82e2b_model.jsonAdded
- 2025/PaZO_ Preconditioned Accelerated Zeroth-Order Optimization for Fine-Tuning LLMs/72355d5c-5242-4182-aa4e-5f9688c82e2b_origin.pdfAdded+3
- 2025/PaZO_ Preconditioned Accelerated Zeroth-Order Optimization for Fine-Tuning LLMs/full.mdAdded
- 2025/PaZO_ Preconditioned Accelerated Zeroth-Order Optimization for Fine-Tuning LLMs/images.zipAdded+3
- 2025/PaZO_ Preconditioned Accelerated Zeroth-Order Optimization for Fine-Tuning LLMs/layout.jsonAdded
- 2025/PaceLLM_ Brain-Inspired Large Language Models for Long-Context Understanding/cc9ef359-fb41-4687-b0c0-a435030491a5_content_list.jsonAdded
3401 unmodified lines3402340334043401 unmodified lines2025/PPMStereo_[[:space:]]Pick-and-Play[[:space:]]Memory[[:space:]]Construction[[:space:]]for[[:space:]]Consistent[[:space:]]Dynamic[[:space:]]Stereo[[:space:]]Matching/a3952b71-63b7-40bc-86ee-4eb092803eb0_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PREAMBLE_[[:space:]]Private[[:space:]]and[[:space:]]Efficient[[:space:]]Aggregation[[:space:]]via[[:space:]]Block[[:space:]]Sparse[[:space:]]Vectors/7d8e2184-86b6-4a92-ba43-407d37416002_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PRESCRIBE_[[:space:]]Predicting[[:space:]]Single-Cell[[:space:]]Responses[[:space:]]with[[:space:]]Bayesian[[:space:]]Estimation/9c9e62df-017c-4262-bee8-5202163fe808_origin.pdf filter=lfs diff=lfs merge=lfs -text3401 unmodified lines34023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683401 unmodified lines2025/PPMStereo_[[:space:]]Pick-and-Play[[:space:]]Memory[[:space:]]Construction[[:space:]]for[[:space:]]Consistent[[:space:]]Dynamic[[:space:]]Stereo[[:space:]]Matching/a3952b71-63b7-40bc-86ee-4eb092803eb0_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PREAMBLE_[[:space:]]Private[[:space:]]and[[:space:]]Efficient[[:space:]]Aggregation[[:space:]]via[[:space:]]Block[[:space:]]Sparse[[:space:]]Vectors/7d8e2184-86b6-4a92-ba43-407d37416002_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PRESCRIBE_[[:space:]]Predicting[[:space:]]Single-Cell[[:space:]]Responses[[:space:]]with[[:space:]]Bayesian[[:space:]]Estimation/9c9e62df-017c-4262-bee8-5202163fe808_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PRESTO_[[:space:]]Preimage-Informed[[:space:]]Instruction[[:space:]]Optimization[[:space:]]for[[:space:]]Prompting[[:space:]]Black-Box[[:space:]]LLMs/f1fe77a8-357a-4b90-83ea-7b5660325ccb_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PRIMT_[[:space:]]Preference-based[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]with[[:space:]]Multimodal[[:space:]]Feedback[[:space:]]and[[:space:]]Trajectory[[:space:]]Synthesis[[:space:]]from[[:space:]]Foundation[[:space:]]Models/436d48b8-a9a7-48ff-aafb-dd5a05d37eba_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PROFIT_[[:space:]]A[[:space:]]Specialized[[:space:]]Optimizer[[:space:]]for[[:space:]]Deep[[:space:]]Fine[[:space:]]Tuning/2e5c67c6-a897-4260-9453-ff12b964eca3_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PRSformer_[[:space:]]Disease[[:space:]]Prediction[[:space:]]from[[:space:]]Million-Scale[[:space:]]Individual[[:space:]]Genotypes/7529c3c3-e8eb-4e68-bffb-9946e4383806_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PT-MoE_[[:space:]]An[[:space:]]Efficient[[:space:]]Finetuning[[:space:]]Framework[[:space:]]for[[:space:]]Integrating[[:space:]]Mixture-of-Experts[[:space:]]into[[:space:]]Prompt[[:space:]]Tuning/b9476a8f-a396-48d3-8917-e387d3c19fb6_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PUATE_[[:space:]]Efficient[[:space:]]ATE[[:space:]]Estimation[[:space:]]from[[:space:]]Treated[[:space:]](Positive)[[:space:]]and[[:space:]]Unlabeled[[:space:]]Units/66e693e3-bc67-4cb7-b37e-0f305a140b97_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PaTH[[:space:]]Attention_[[:space:]]Position[[:space:]]Encoding[[:space:]]via[[:space:]]Accumulating[[:space:]]Householder[[:space:]]Transformations/d6b9d663-530b-4a00-91ec-171ca9581718_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PaZO_[[:space:]]Preconditioned[[:space:]]Accelerated[[:space:]]Zeroth-Order[[:space:]]Optimization[[:space:]]for[[:space:]]Fine-Tuning[[:space:]]LLMs/72355d5c-5242-4182-aa4e-5f9688c82e2b_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PaceLLM_[[:space:]]Brain-Inspired[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]for[[:space:]]Long-Context[[:space:]]Understanding/cc9ef359-fb41-4687-b0c0-a435030491a5_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PairEdit_[[:space:]]Learning[[:space:]]Semantic[[:space:]]Variations[[:space:]]for[[:space:]]Exemplar-based[[:space:]]Image[[:space:]]Editing/096ac320-a0b0-4111-88f9-78281678154f_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Pairwise[[:space:]]Calibrated[[:space:]]Rewards[[:space:]]for[[:space:]]Pluralistic[[:space:]]Alignment/24362824-b55d-4519-9270-2b5342aa1f97_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Pairwise[[:space:]]Optimal[[:space:]]Transports[[:space:]]for[[:space:]]Training[[:space:]]All-to-All[[:space:]]Flow-Based[[:space:]]Condition[[:space:]]Transfer[[:space:]]Model/fa257990-3e84-4975-a88e-8a624020e5f7_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Pan-LUT_[[:space:]]Efficient[[:space:]]Pan-sharpening[[:space:]]via[[:space:]]Learnable[[:space:]]Look-Up[[:space:]]Tables/e0d116cf-0327-401c-bea2-d1bf332346b9_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Panacea_[[:space:]]Mitigating[[:space:]]Harmful[[:space:]]Fine-tuning[[:space:]]for[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]via[[:space:]]Post-fine-tuning[[:space:]]Perturbation/6b5bf908-4281-47f7-b9b6-f3b9732640f9_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Pancakes_[[:space:]]Consistent[[:space:]]Multi-Protocol[[:space:]]Image[[:space:]]Segmentation[[:space:]]Across[[:space:]]Biomedical[[:space:]]Domains/dcf8a16b-7785-418e-8250-de2ebbe31377_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PandaPose_[[:space:]]3D[[:space:]]Human[[:space:]]Pose[[:space:]]Lifting[[:space:]]from[[:space:]]a[[:space:]]Single[[:space:]]Image[[:space:]]via[[:space:]]Propagating[[:space:]]2D[[:space:]]Pose[[:space:]]Prior[[:space:]]to[[:space:]]3D[[:space:]]Anchor[[:space:]]Space/c738f9a9-f6f9-40da-a5cf-0050947cf296_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PanoWan_[[:space:]]Lifting[[:space:]]Diffusion[[:space:]]Video[[:space:]]Generation[[:space:]]Models[[:space:]]to[[:space:]]360$^_circ$[[:space:]]with[[:space:]]Latitude_Longitude-aware[[:space:]]Mechanisms/56a5542e-5d21-4824-92ac-4d5c70bcad4d_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Panoptic[[:space:]]Captioning_[[:space:]]An[[:space:]]Equivalence[[:space:]]Bridge[[:space:]]for[[:space:]]Image[[:space:]]and[[:space:]]Text/85059705-7180-4612-acaa-f202737dadb1_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Parallel[[:space:]]Scaling[[:space:]]Law[[:space:]]for[[:space:]]Language[[:space:]]Models/691b3644-0819-4a24-9ea4-45d6b1326a99_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Parallelization[[:space:]]of[[:space:]]Non-linear[[:space:]]State-Space[[:space:]]Models_[[:space:]]Scaling[[:space:]]Up[[:space:]]Liquid-Resistance[[:space:]]Liquid-Capacitance[[:space:]]Networks[[:space:]]for[[:space:]]Efficient[[:space:]]Sequence[[:space:]]Modeling/1a7dd60c-7c26-4854-941c-8f04168f740b_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Parallelizing[[:space:]]MCMC[[:space:]]Across[[:space:]]the[[:space:]]Sequence[[:space:]]Length/d9e06e0d-3270-42bc-b748-07960e9dbbac_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/ParamMute_[[:space:]]Suppressing[[:space:]]Knowledge-Critical[[:space:]]FFNs[[:space:]]for[[:space:]]Faithful[[:space:]]Retrieval-Augmented[[:space:]]Generation/a8de7dda-6913-411f-8789-7d96bb18605d_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Parameter[[:space:]]Dynamics[[:space:]]of[[:space:]]Online[[:space:]]Machine[[:space:]]Learning[[:space:]]and[[:space:]]Test-time[[:space:]]Adaptation/f34bfad3-831f-42d9-b20f-d793f7eb20e7_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Parameter[[:space:]]Efficient[[:space:]]Fine-tuning[[:space:]]via[[:space:]]Explained[[:space:]]Variance[[:space:]]Adaptation/e8bb5627-1b67-49f0-b52a-3575d303a782_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Parameter-Free[[:space:]]Hypergraph[[:space:]]Neural[[:space:]]Network[[:space:]]for[[:space:]]Few-Shot[[:space:]]Node[[:space:]]Classification/76ed2591-e412-4f51-a485-94e0361c8303_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Parameter-free[[:space:]]Algorithms[[:space:]]for[[:space:]]the[[:space:]]Stochastically[[:space:]]Extended[[:space:]]Adversarial[[:space:]]Model/3794aab1-c977-42b0-80df-98fad7af0405_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Pareto[[:space:]]Optimal[[:space:]]Risk-Agnostic[[:space:]]Distributional[[:space:]]Bandits[[:space:]]with[[:space:]]Heavy-Tail[[:space:]]Rewards/f792e95d-0d1a-48cf-9b64-12830e9ff439_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Pareto-Optimal[[:space:]]Energy[[:space:]]Alignment[[:space:]]for[[:space:]]Designing[[:space:]]Nature-Like[[:space:]]Antibodies/1f5a7b8b-edb8-4b6e-9cd2-bd9325642772_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/ParetoQ_[[:space:]]Improving[[:space:]]Scaling[[:space:]]Laws[[:space:]]in[[:space:]]Extremely[[:space:]]Low-bit[[:space:]]LLM[[:space:]]Quantization/63be8f9b-9170-4857-b097-44933d365617_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Parsimonious[[:space:]]Predictions[[:space:]]for[[:space:]]Strategyproof[[:space:]]Scheduling/3c05fed1-991f-4f94-a658-704fa060a7a6_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Part-Aware[[:space:]]Bottom-Up[[:space:]]Group[[:space:]]Reasoning[[:space:]]for[[:space:]]Fine-Grained[[:space:]]Social[[:space:]]Interaction[[:space:]]Detection/a27f5bc6-5cee-4f54-a04b-83ae42da9dbe_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PartCrafter_[[:space:]]Structured[[:space:]]3D[[:space:]]Mesh[[:space:]]Generation[[:space:]]via[[:space:]]Compositional[[:space:]]Latent[[:space:]]Diffusion[[:space:]]Transformers/c15c4351-dd08-4dd7-b396-d26e9b54f539_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Partial[[:space:]]Correlation[[:space:]]Network[[:space:]]Estimation[[:space:]]by[[:space:]]Semismooth[[:space:]]Newton[[:space:]]Methods/5c80c6ac-d877-4a94-b4fa-d8ab65ef9481_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Partial[[:space:]]Information[[:space:]]Decomposition[[:space:]]via[[:space:]]Normalizing[[:space:]]Flows[[:space:]]in[[:space:]]Latent[[:space:]]Gaussian[[:space:]]Distributions/b00f16a6-94a7-4224-be37-01d34ab02370_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Partial[[:space:]]Physics[[:space:]]Informed[[:space:]]Diffusion[[:space:]]Model[[:space:]]for[[:space:]]Ocean[[:space:]]Chlorophyll[[:space:]]Concentration[[:space:]]Reconstruction/20247a8f-e166-4e38-a51d-1b2f1c578673_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Partition[[:space:]]to[[:space:]]Evolve_[[:space:]]Niching-enhanced[[:space:]]Evolution[[:space:]]with[[:space:]]LLMs[[:space:]]for[[:space:]]Automated[[:space:]]Algorithm[[:space:]]Discovery/67dca3c1-3810-4a84-b0ce-89a0f00c7f22_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Partition-Then-Adapt_[[:space:]]Combating[[:space:]]Prediction[[:space:]]Bias[[:space:]]for[[:space:]]Reliable[[:space:]]Multi-Modal[[:space:]]Test-Time[[:space:]]Adaptation/b350f173-cda2-444b-a639-2d268096769f_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Partner[[:space:]]Modelling[[:space:]]Emerges[[:space:]]in[[:space:]]Recurrent[[:space:]]Agents[[:space:]](But[[:space:]]Only[[:space:]]When[[:space:]]It[[:space:]]Matters)/67103a65-3bd8-4820-a039-f35ad3f78a2c_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Pass@K[[:space:]]Policy[[:space:]]Optimization_[[:space:]]Solving[[:space:]]Harder[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]Problems/62ded644-3b38-426b-b232-0019a925cc63_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Path[[:space:]]Gradients[[:space:]]after[[:space:]]Flow[[:space:]]Matching/d8d556e0-023d-4594-9207-4bdb97462713_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Path-Enhanced[[:space:]]Contrastive[[:space:]]Learning[[:space:]]for[[:space:]]Recommendation/7b2e3a5a-8a03-43ff-a276-b96168c61446_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Path-specific[[:space:]]effects[[:space:]]for[[:space:]]pulse-oximetry[[:space:]]guided[[:space:]]decisions[[:space:]]in[[:space:]]critical[[:space:]]care/ddbd1315-c614-46ed-9e27-3d933b683738_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PathVQ_[[:space:]]Reforming[[:space:]]Computational[[:space:]]Pathology[[:space:]]Foundation[[:space:]]Model[[:space:]]for[[:space:]]Whole[[:space:]]Slide[[:space:]]Image[[:space:]]Analysis[[:space:]]via[[:space:]]Vector[[:space:]]Quantization/ee1152ce-c127-4eea-8c6b-f5e89d9ccf81_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Pattern-Guided[[:space:]]Adaptive[[:space:]]Prior[[:space:]]for[[:space:]]Structure[[:space:]]Learning/6b7a5fdd-be27-423b-9910-7ba43a3e7ea7_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Pause[[:space:]]Tokens[[:space:]]Strictly[[:space:]]Increase[[:space:]]the[[:space:]]Expressivity[[:space:]]of[[:space:]]Constant-Depth[[:space:]]Transformers/9da06303-1be9-4004-8607-9bad10c4648b_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Pay[[:space:]]Attention[[:space:]]to[[:space:]]Small[[:space:]]Weights/84af78d9-0355-4bfd-b179-937a31e9e9b9_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PeRL_[[:space:]]Permutation-Enhanced[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]for[[:space:]]Interleaved[[:space:]]Vision-Language[[:space:]]Reasoning/0cf2948b-0367-43e4-94fb-b59e7542c318_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Per-Architecture[[:space:]]Training-Free[[:space:]]Metric[[:space:]]Optimization[[:space:]]for[[:space:]]Neural[[:space:]]Architecture[[:space:]]Search/1068cd5c-eb62-4fdb-9e90-61853b9986f4_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Perceive[[:space:]]Anything_[[:space:]]Recognize,[[:space:]]Explain,[[:space:]]Caption,[[:space:]]and[[:space:]]Segment[[:space:]]Anything[[:space:]]in[[:space:]]Images[[:space:]]and[[:space:]]Videos/bc0597d1-5bde-47be-b4c4-1edf41f764bd_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Perception[[:space:]]Encoder_[[:space:]]The[[:space:]]best[[:space:]]visual[[:space:]]embeddings[[:space:]]are[[:space:]]not[[:space:]]at[[:space:]]the[[:space:]]output[[:space:]]of[[:space:]]the[[:space:]]network/9eb1e8b3-e832-48fc-8e42-4ab8f97d7133_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Perception-R1_[[:space:]]Pioneering[[:space:]]Perception[[:space:]]Policy[[:space:]]with[[:space:]]Reinforcement[[:space:]]Learning/ffe4b0e9-5a73-4899-b83f-5f63fab50b7d_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PerceptionLM_[[:space:]]Open-Access[[:space:]]Data[[:space:]]and[[:space:]]Models[[:space:]]for[[:space:]]Detailed[[:space:]]Visual[[:space:]]Understanding/6d3af10a-fb53-4b48-a1e2-ee90d1164168_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Performative[[:space:]]Risk[[:space:]]Control_[[:space:]]Calibrating[[:space:]]Models[[:space:]]for[[:space:]]Reliable[[:space:]]Deployment[[:space:]]under[[:space:]]Performativity/fce7f196-0c3d-4a5f-8189-f582c743b76a_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Performative[[:space:]]Validity[[:space:]]of[[:space:]]Recourse[[:space:]]Explanations/63353793-8f04-46bf-9ea3-bad29893528a_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Periodic[[:space:]]Skill[[:space:]]Discovery/8d06b334-c6d2-460c-a400-d5c57bdf3512_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/PermLLM_[[:space:]]Learnable[[:space:]]Channel[[:space:]]Permutation[[:space:]]for[[:space:]]N_M[[:space:]]Sparse[[:space:]]Large[[:space:]]Language[[:space:]]Models/85929c0d-e3b7-4f00-a482-994ccab152b6_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Permissioned[[:space:]]LLMs_[[:space:]]Enforcing[[:space:]]Access[[:space:]]Control[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models/68442f9f-daa7-430d-812c-49eedd44bdf7_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Permutation[[:space:]]Equivariant[[:space:]]Neural[[:space:]]Controlled[[:space:]]Differential[[:space:]]Equations[[:space:]]for[[:space:]]Dynamic[[:space:]]Graph[[:space:]]Representation[[:space:]]Learning/597d9194-0424-48f8-b2c7-dfa18a340a12_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Personalized[[:space:]]Bayesian[[:space:]]Federated[[:space:]]Learning[[:space:]]with[[:space:]]Wasserstein[[:space:]]Barycenter[[:space:]]Aggregation/c9284b2b-c403-4da9-ab64-70a7feaa45a1_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Personalized[[:space:]]Decision[[:space:]]Modeling_[[:space:]]Utility[[:space:]]Optimization[[:space:]]or[[:space:]]Textualized-Symbolic[[:space:]]Reasoning/608e11ee-232e-4095-9c2e-646dd0717f2f_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Personalized[[:space:]]Exercise[[:space:]]Recommendation[[:space:]]with[[:space:]]Semantically-Grounded[[:space:]]Knowledge[[:space:]]Tracing/3e090c5f-62d4-460f-8fd2-e835cca6dffc_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Personalized[[:space:]]Federated[[:space:]]Conformal[[:space:]]Prediction[[:space:]]with[[:space:]]Localization/a85c9209-6ad9-49ee-ac9a-03f633d99467_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Personalized[[:space:]]Image[[:space:]]Editing[[:space:]]in[[:space:]]Text-to-Image[[:space:]]Diffusion[[:space:]]Models[[:space:]]via[[:space:]]Collaborative[[:space:]]Direct[[:space:]]Preference[[:space:]]Optimization/bd862dd3-b8ab-4da3-b167-7960d7aed60d_origin.pdf filter=lfs diff=lfs merge=lfs -text2025/Personalized[[:space:]]Safety[[:space:]]in[[:space:]]LLMs_[[:space:]]A[[:space:]]Benchmark[[:space:]]and[[:space:]]A[[:space:]]Planning-Based[[:space:]]Agent[[:space:]]Approach/c8c05802-6398-4ee4-bf75-4039f152caad_origin.pdf filter=lfs diff=lfs merge=lfs -text
123version https://git-lfs.github.com/spec/v1oid sha256:044cdc435f87bd6270b3ed5a4b4019d545e0f0bf53ecc2281f2173b11ca882c6size 5591334123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563# PRESTO: Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs
Jaewon Chu<sup>1</sup> Seunghun Lee<sup>2*</sup> Hyunwoo J. Kim<sup>2†</sup>
$^{1}$ Korea University, $^{2}$ KAIST
allonsy07@korea.ac.kr {llsshh319, hyunwoojkim}@kaist.ac.kr
# Abstract
Large language models (LLMs) have achieved remarkable success across diverse domains, due to their strong instruction-following capabilities. This has led to increasing interest in optimizing instructions for black-box LLMs, whose internal parameters are inaccessible but widely used due to their strong performance. To optimize instructions for black-box LLMs, recent methods employ white-box LLMs to generate candidate instructions from optimized soft prompts. However, white-box LLMs often map different soft prompts to the same instruction, leading to redundant queries. While previous studies regarded this many-to-one mapping as a structure that hinders optimization efficiency, we reinterpret it as a useful prior knowledge that can accelerate the optimization. To this end, we introduce PREimage-informed inSTruction Optimization (PRESTO), a novel framework that leverages the preimage structure of soft prompts for efficient optimization. PRESTO consists of three key components: (1) score sharing, which shares the evaluation score with all soft prompts in a preimage; (2) preimage-based initialization, which selects initial data points that maximize search space coverage using preimage information; and (3) score consistency regularization, which enforces prediction consistency within each preimage. By leveraging preimages, PRESTO achieves the effect of effectively obtaining 14 times more scored data under the same query budget, resulting in more efficient optimization. Experimental results on 33 instruction optimization tasks demonstrate the superior performance of PRESTO. Code is available at https://github.com/mlvlab/PRESTO.
# 1 Introduction
Large language models (LLMs) have demonstrated strong performance across a wide range of domains [1-5]. This success is largely attributed to their impressive instruction-following capabilities, which have led to growing interest in discovering effective instructions to enhance their performance [6, 7]. In particular, LLMs provided through APIs (i.e., black-box LLMs), such as GPT-4 [2], are widely used and show exceptionally strong performance. However, optimizing instructions for the black-box LLMs is a challenging problem, since their internal parameters are inaccessible. To tackle this challenge, recent studies have explored various strategies for optimizing instructions for black-box LLMs, without access to internal model parameters [8-13].
Recently, some studies [14-16] have leveraged open-source LLMs (i.e., white-box LLMs) [1, 17, 18] to assist instruction optimization for black-box LLMs, demonstrating promising results and attracting growing interest. Specifically, these methods optimize a soft prompt, which is taken as input to the white-box LLM. The optimization is performed using black-box optimization algorithms such as Bayesian Optimization [19, 20] or Neural Bandits [21, 22], guided by a score predictor
 (a)
 (b) Figure 1: Motivating observations illustrating the many-to-one mapping from soft prompts to instructions in a white-box LLM (LLaMA3.1-8B-Instruct [1]). Figure 1a shows that the white-box LLM produces approximately 6,500 unique instructions from 10,000 distinct soft prompts. Figure 1b presents the distribution of preimage sizes, displaying the top 100 largest preimages. The largest preimage contains more than 1,000 soft prompts, while the 100th largest has around 5. Both figures report the average experimental results over the instruction induction tasks used in Table 1.
regression model, allowing the white-box LLM to generate effective instructions for black-box LLMs. However, as shown in Figure 1a, white-box LLMs often generate identical instructions from distinct soft prompts. It leads to repeatedly querying soft prompts that yield the same outputs during the optimization process, which ultimately hinders the optimization process by reducing query efficiency. To avoid redundant queries, previous studies either sample soft prompts that are well-separated in the soft prompt space [16] or filter soft prompts that generate distinct instructions [15].
While previous studies have treated the generation of identical instructions from different soft prompts (i.e., many-to-one structure) as a redundancy that hinders optimization, we reinterpret this as a valuable structure that can facilitate the optimization process. Specifically, the set of soft prompts that generate the same instruction forms the preimage of that instruction under the white-box LLM. This preimage imposes a strong inductive bias over the search space: all soft prompts within a preimage share the same objective function value. Since we follow previous settings [16, 15] that sample a sufficiently large set of $N$ soft prompts and search for the optimal solution within them, we do not observe the full preimage, but only a subset of it. We refer to such subsets as preimages throughout the paper, and provide the size distribution of these preimages in Figure 1b.
Building on this insight, we propose PRESTO, a novel instruction optimization framework that explicitly leverages the many-to-one structure to facilitate instruction optimization for black-box LLMs. PRESTO consists of three components. First, we present the score-sharing method, where once the score is evaluated through the black-box LLM, it is shared with all soft prompts within a preimage. This effectively enlarges the amount of scored data without additional calls to the black-box LLM. Second, we introduce preimage-based initialization, where we select the initial soft prompts regarding the preimage information so that they cover the search space maximally. Finally, we propose score consistency regularization, which adds a regularization term to encourage the score predictor to predict identical scores for soft prompts within the same preimage. We evaluate the instruction optimization performance of PRESTO on 30 instruction induction tasks and three arithmetic reasoning tasks, and achieve state-of-the-art performance compared to existing baselines.
The main contributions of our work are:
- We reinterpret the many-to-one structure between the soft prompts and instruction, previously viewed as a challenge, as a rich informative structure that facilitates instruction optimization for black-box LLMs. - Leveraging this insight, we introduce PRESTO, a novel framework that consists of score sharing, preimage-based initialization, and score consistency regularization. - PRESTO achieves state-of-the-art performance across 30 instruction induction and 3 arithmetic reasoning tasks.
# 2 Related Works
Instruction Optimization for Black-box LLMs Instruction optimization has been widely explored as a way to improve the performance of large language models (LLMs) on downstream tasks [23, 24]. In particular, when using black-box LLMs such as GPT-4 [2], where access to model parameters is restricted, optimization methods rely on model outputs to guide the search for better instructions. Under this setting, various approaches have been proposed, including evolutionary algorithms [10, 11], LLM-driven meta-optimization [8, 9], and bandit-style or heuristic search methods [13, 12]. These works demonstrate that instruction quality can be improved even without access to gradients or internal representations by querying the black-box model efficiently.
More recently, some methods [14-16] incorporate open-source white-box LLMs [1, 18, 17, 25] to assist the optimization process. Rather than optimizing instruction texts directly, they optimize soft prompts, which are continuous embeddings that the white-box model maps into instructions. InstructZero [14] leveraged Bayesian Optimization [26-28] to search for the optimal soft prompts for black-box LLM. INSTINCT [16] leveraged NeuralUCB [21] with an LLM-based score predictor, which was the first to point out the many-to-one schema and approached it indirectly by sampling soft prompts to be well-separated. And ZOPO [15] proposed a zeroth-order optimization algorithm [29] for local search, which addresses this redundancy by simply discarding all but one soft prompt that produces the same instruction. In contrast, we retain all soft prompts by introducing preimages and facilitate the optimization.
# 3 Preliminaries
Problem Formulation Instruction optimization aims to find an instruction $v$ that guides a language model to perform a given task effectively. To be specific, the goal is to find the instruction $v$ that maximizes the task-specific score function $h$ by guiding a black-box LLM $f_{\mathrm{b}}$ to generate the correct answer $y$ , which is formally given as:
$$v ^ {*} = \underset {v \in \Omega} {\arg \max } \mathbb {E} _ {(x, y) \in D _ {\mathrm {v a l}}} [ h (f _ {\mathrm {b}} (v, x), y) ], \tag {1}$$
where $\mathcal{D}_{\mathrm{val}} = \{(x_i,y_i)\}_{i = 1}^M$ is a validation set, and $\Omega$ denotes the search space of instructions, typically a discrete sequence domain (e.g., natural language prompts or token sequences). However, directly searching over discrete instruction sequences is challenging, as it constitutes a combinatorial optimization problem over the space of token configurations. To address this, InstructZero [14] reformulates the discrete instruction search as a continuous optimization problem by leveraging a white-box LLM $f_{\mathrm{w}}$ . Specifically, it optimizes a soft prompt $z\in \mathbb{R}^{N_z\times d}$ , where $N_{z}$ is the number of tokens and $d$ is the embedding dimension, to generate the optimal instruction $v^{*}$ . The soft prompt is concatenated with the token embeddings of input-output exemplars $E = \{(x_i,y_i)\}_{i = 1}^{\kappa}$ and fed into the white-box LLM $f_{\mathrm{w}}$ , which then generates an instruction $v = f_{\mathrm{w}}(z,E)$ . Formally, the instruction optimization problem is defined as:
$$z ^ {*} = \underset {z \in \mathcal {Z}} {\arg \max } \mathbb {E} _ {(x, y) \in D _ {\text {v a l}}} \left[ h \left(f _ {\mathrm {b}} \left(f _ {\mathrm {w}} (z, E), x\right), y\right) \right], \tag {2}$$
where $\mathcal{Z}$ is the soft prompt space. In this formulation, we optimize $z$ to find the optimal instruction $v^{*}$ that maximizes the expected value of the score function $h$ . Once the optimal soft prompt $z^{*}$ is obtained, the corresponding instruction $v^{*}$ is generated by the white-box LLM $f_{\mathrm{w}}$ , i.e., $v^{*} = f_{w}(z^{*},E)$ and subsequently evaluated on a held-out test set $D_{\mathrm{test}}$ . Since the exemplars $E$ are fixed for each task, we omit them from the notation in the rest of our paper. Following previous works [14-16], we assume that both the white-box LLM $f_{\mathrm{w}}$ and the black-box LLM $f_{\mathrm{b}}$ are deterministic.
LLM-based Score Predictor for Instruction Optimization. Our method builds upon INSTINCT [16], which employs a frozen white-box LLM as a feature extractor to predict the score of soft prompt, and uses a NeuralUCB [21] for instruction optimization. Given a soft prompt $z$ , the white-box LLM produces an embedding $g(z)$ , the last token representation of the final transformer layer. This embedding is then passed to a score predictor $m(g(z); \theta)$ (e.g., an MLP), which predicts the performance of the instruction generated from $z$ , i.e., $m(g(z); \theta) \approx \mathbb{E}_{(x,y) \in D} [h(f_{\mathrm{b}}(f_{\mathrm{w}}(z), x), y)]$ . At each optimization step, the score predictor $m(\cdot; \theta)$ is trained on previously evaluated soft prompts and their corresponding scores, and selects the next query that maximizes the upper confidence bound. We provide further details of NeuralUCB in the supplement. Since computing $g(z)$ requires a full
 Figure 2: The overall process of our proposed PRESTO framework. It consists of two main stages: initialization and optimization. In the initialization stage, our method performs $①$ preimage-based score sharing (Section 4.1) and $②$ preimage-based initialization to improve search space coverage (Section 4.2). For the optimization stage, we train the score predictor with $③$ score consistency regularization (Section 4.3) and we apply $①$ preimage-based score sharing to share scores of newly observed data within the same preimage.
forward pass through the LLM, INSTINCT mitigates this cost by precomputing the embeddings of a candidate soft prompt set $Z = \{z_{i}\}_{i=1}^{N}$ at the beginning of the optimization, which is sampled using a quasi-random method. To this end, the instruction optimization task is reduced to searching for the best solution within the precomputed embedding set, as the white-box LLM is frozen during the optimization process.
# 4 Method
In this section, we propose PREimage-informed inSTruction Optimization (PRESTO) which is a novel instruction optimization framework that leverages the many-to-one mapping between soft prompts $z \in Z \subset \mathcal{Z}$ and instructions $v \in \Omega$ (or the preimages of instructions, which is defined in Section 4.1) as prior knowledge to facilitate more efficient optimization. We first introduce a score sharing method that shares the score value of one soft prompt with all other soft prompts in the same preimage, effectively enlarging the scored data without additional evaluations of black-box LLM $f_{\mathrm{b}}$ . Next, we present a preimage-based initialization method designed to maximize coverage of the search space under score sharing. Finally, we propose a score consistency regularization that leverages preimage information as prior knowledge to encourage the score predictor to predict identical scores for soft prompts belonging to the same preimage. We provide the overall framework of our PRESTO in Figure 2.
# 4.1 Preimage-Based Score Sharing
During the instruction optimization, we observe that the white-box LLM $f_{\mathrm{w}}$ often generates identical instructions from distinct soft prompts, i.e., $f_{\mathrm{w}}(z) = f_{\mathrm{w}}(z')$ , leading to the same score value. This redundancy leads to unnecessary queries during optimization, hindering the efficiency of instruction
optimization. While previous works treated this redundancy as an obstacle to efficient optimization, we instead leverage this information as prior knowledge about the objective function to facilitate optimization. To this end, we propose a simple score sharing scheme that associates a large number of soft prompts with a score value without the additional evaluations of a black-box LLM $f_{\mathrm{b}}$ .
Our goal is to share the score of an evaluated soft prompt $z$ with other soft prompts that generate the same instruction. To enable this score sharing, we first define the preimage of each instruction which consists of all soft prompts that map to the same instruction under the white-box model $f_{\mathrm{w}}$ . Establishing this preimage structure requires two steps. First, we sample a soft prompt set $Z = \{z_i\}_{i=1}^N$ using a quasi-random method [30, 31], which is a widely adopted method to sample the data points that evenly cover the soft prompt space [14, 16, 15]. Assuming that the soft prompt set size $N$ is large enough to represent the soft prompt space $\mathcal{Z}$ , the original optimization problem defined in Eq. (2) reduces to searching for the best solution among the set of $N$ data points, denoted by $Z \subset \mathcal{Z}$ .
Next, for each soft prompts $z_{j} \in Z$ , we generate the set of instructions $V = \{v_{i}\}_{i=1}^{M}$ , using the white-box LLM $f_{\mathrm{w}}$ :
$$V = \left\{v _ {i} \right\} _ {i = 1} ^ {M} = \left\{f _ {\mathrm {w}} \left(z _ {j}\right) \mid j = 1, \dots , N \right\}. \tag {3}$$
Since the different soft prompts often generate the identical instruction (i.e., many-to-one mapping), the number of instructions $M = |V|$ is smaller than or equal to $N$ . The construction of $Z$ and $V$ is performed only once before the optimization process begins.
With the soft prompt set $Z$ and the corresponding instruction set $V$ , we now define the preimage of each instruction. The preimage of an instruction $v$ is the set of soft prompts in $Z$ that generate $v$ under the white-box model $f_{\mathrm{w}}$ :
$$f _ {w} ^ {- 1} (v) = \{z \in Z \mid f _ {\mathrm {w}} (z) = v \}. \tag {4}$$
This preimage contains all soft prompts in $Z$ that generate $v$ , and will serve as the basis for score sharing. Once the preimages $f_{\mathrm{w}}^{-1}(v)$ for all $v \in V$ are established, we apply score sharing across soft prompts that belong to the same preimage during the optimization. Specifically, after querying the black-box model $f_{\mathrm{b}}$ with an instruction $v \in V$ , we obtain a score of the instruction. This score is then shared to all soft prompts in the preimage $f_{\mathrm{w}}^{-1}(v)$ . By sharing scores in this manner, we effectively enlarge the training data for the score predictor $m(g(z); \theta)$ without additional calls to the black-box LLMs. Moreover, score sharing avoids redundant evaluations of soft prompts that lead to the same instruction and improves optimization efficiency.
# 4.2 Preimage-Based Initialization for Maximizing Search Space Coverage
Here, we introduce a preimage-based initialization method that selects initial data points based on the preimage information defined in Section 4.1. At the beginning of the optimization, the score predictor $m(g(z);\theta)$ (Section 3) is trained on the initial dataset, and its predictions are used to select the next data points to query the black-box LLM $f_{\mathrm{b}}$ . In black-box optimization, it is well known that broadly covering the search space at initialization is crucial for effective optimization [32-35]. Our score sharing method introduced in Section 4.1 expands the initial dataset without additional queries to the black-box LLM $f_{\mathrm{b}}$ , enabling a more sample-efficient initialization. To further enhance the search space coverage, we propose a preimage-based initialization method that complements score sharing by promoting a broader initial data distribution.
To this end, we design a coverage score $S_{\mathrm{cov}}$ to guide the selection of an initial preimage set $G^{\mathrm{init}}$ that maximally covers the entire set of soft prompt embeddings $G^{\mathrm{total}} = \{g(z) \mid z \in Z\}$ . We conduct initialization in the embedding space rather than the raw soft prompt space, since the optimization operates over the soft prompt embeddings. These embeddings are precomputed and remain fixed throughout the optimization, as described in Section 3. For each instruction $v_i$ , we define its corresponding preimage group in the embedding space as $G_i = \{g(z) \mid z \in f_{\mathrm{w}}^{-1}(v_i)\}$ .
Since finding the optimal combination of $N_{\mathrm{init}}$ preimages that maximizes the coverage score $S_{\mathrm{cov}}$ is a computationally intractable combinatorial optimization problem, we adopt a greedy algorithm to iteratively select one preimage at a time. Specifically, the coverage score $S_{\mathrm{cov}}$ consists of two components: the representativeness score $S_{\mathrm{rep}}$ and the size score $S_{\mathrm{size}}$ . The representativeness score $S_{\mathrm{rep}}$ encourages the selection of a preimage group $G_{i}$ that, when combined with already selected
 (a) Train with $\mathcal{L}_{\mathrm{MSE}}$ only.
 (b) Train with $\mathcal{L}_{\mathrm{MSE}} + \gamma \mathcal{L}_{\mathrm{cons}}$ Figure 3: Toy example comparing models trained w/o and w/ our consistency loss $\mathcal{L}_{\mathrm{cons}}$ in Eq. (8).

preimage groups $G^{\mathrm{init}}$ , most closely matches the distribution of the candidate set $G^{\mathrm{total}}$ , defined as:
$$S _ {\text {r e p}} \left(G _ {i}; G ^ {\text {i n i t}}, G ^ {\text {t o t a l}}\right) = 1 - \frac {\mathrm {M M D} ^ {2} \left(G _ {i} \cup G ^ {\text {i n i t}} , G ^ {\text {t o t a l}}\right)}{\max _ {j} \mathrm {M M D} ^ {2} \left(G _ {j} \cup G ^ {\text {i n i t}} , G ^ {\text {t o t a l}}\right)}, \tag {5}$$
where the $\mathrm{MMD}^2$ is the squared Maximum Mean Discrepancy. $\mathrm{MMD}^2$ is a widely used metric to estimate the similarity between two sets, which is defined as:
$$\operatorname {M M D} ^ {2} (X, Y) = \mathbb {E} _ {x, x ^ {\prime} \sim X} [ k (x, x ^ {\prime}) ] + \mathbb {E} _ {y, y ^ {\prime} \sim Y} [ k (y, y ^ {\prime}) ] - 2 \mathbb {E} _ {x \sim X, y \sim Y} [ k (x, y) ] \tag {6}$$
where $k(\cdot, \cdot)$ is a positive definite kernel. To densely cover the search space, we propose the size score $S_{\mathrm{size}}$ , which is defined as relative preimage size: $S_{\mathrm{size}}(G_i) = |G_i| / \max_j |G_j|$ . Combining the two scores, we define the coverage score for the $G_i$ :
$$S _ {\text {c o v}} \left(G _ {i}; G ^ {\text {i n i t}}, G ^ {\text {t o t a l}}\right) = S _ {\text {s i z e}} \left(G _ {i}\right) + S _ {\text {r e p}} \left(G _ {i}; G ^ {\text {i n i t}}, G ^ {\text {t o t a l}}\right). \tag {7}$$
Starting from an empty set $G^{\mathrm{init}}$ , we iteratively select the preimage with the highest coverage score $S_{\mathrm{cov}}$ and add it to $G^{\mathrm{init}}$ until the number of initial preimages reaches $N_{\mathrm{init}}$ . This initialization maximizes the coverage of the candidate set $G^{\mathrm{total}}$ . We provide the visualization to demonstrate the effectiveness of our initialization method in Section 6.3.
# 4.3 Score consistency regularization for score predictor
Here, we propose a score consistency regularization that encourages the score predictor $m(g(z); \theta)$ to produce the same prediction for all soft prompts in preimages that have not been evaluated by the black-box function. During the optimization, the score predictor is trained with the scored data to predict the score of each soft prompt in the candidate set $Z$ and estimate its uncertainty for selecting the next query to evaluate. Leveraging the score sharing method defined in Section 4.1 informs the score predictor that data points within the same preimage share identical scores in a supervised manner. However, since the score predictor lacks information about score consistency within unscored preimages, it is unable to make consistent predictions for data points in these unscored preimages. It often hinders the score predictor from predicting the ground truth score and selecting high-scored data.
To ensure consistent predictions within each unscored preimage, we propose a score consistency regularization term $\mathcal{L}_{\mathrm{cons}}$ , which is defined as:
$$\mathcal {L} _ {\text {c o n s}} = \mathbb {E} _ {v \in V _ {\text {u n s e e n}}} \mathbb {E} _ {z, z ^ {\prime} \in f _ {\mathrm {w}} ^ {- 1} (v)} | m (g (z); \theta) - m (g \left(z ^ {\prime}\right); \theta) | ^ {2}, \tag {8}$$
where $V_{\mathrm{unseen}} \subset V$ denotes the set of instructions that has not been evaluated by the black-box LLM $f_{b}$ . We note that $\mathcal{L}_{\mathrm{cons}}$ is an unsupervised loss. While the consistency regularization includes pairwise terms per preimage group, each unscored preimage size is not excessively large in practice, so the computation remains tractable. The final loss for training the score predictor model is given by:
$$\mathcal {L} = \mathcal {L} _ {\mathrm {M S E}} + \gamma \mathcal {L} _ {\text {c o n s}}, \tag {9}$$
where $\mathcal{L}_{\mathrm{MSE}}$ is the mean squared error loss computed over the scored preimages, and $\gamma$ is a hyperparameter controlling the strength of the regularization. To avoid premature convergence to incorrect predictions, we employ a simple linear scheduling strategy as $\gamma (t) = \gamma_{\max}\cdot \min \left(1,t / T\right)$ , where $t$
Table 1: Performance on instruction induction tasks. Bolded numbers (blue) indicate the best methods for each task. Scores show the average accuracy with standard error over three runs.
<table><tr><td>Tasks</td><td>APE</td><td>InstructZero</td><td>INSTINCT</td><td>EvoPrompt</td><td>ZOPO</td><td>OPRO</td><td>PRESTO</td></tr><tr><td>antonyms</td><td>80.67 ± 0.72</td><td>75.33 ± 3.21</td><td>83.33 ± 0.54</td><td>82.00 ± 0.47</td><td>82.67 ± 1.66</td><td>80.33 ± 2.33</td><td>83.33 ± 1.19</td></tr><tr><td>auto_categorization</td><td>26.00 ± 6.13</td><td>27.67 ± 2.60</td><td>18.67 ± 0.72</td><td>29.33 ± 2.18</td><td>31.67 ± 3.41</td><td>30.33 ± 0.72</td><td>31.67 ± 3.41</td></tr><tr><td>autoDebugging</td><td>8.33 ± 6.80</td><td>12.50 ± 5.89</td><td>10.00 ± 4.71</td><td>16.67 ± 6.80</td><td>13.33 ± 7.20</td><td>8.33 ± 6.80</td><td>20.83 ± 3.40</td></tr><tr><td>cause_and-effect</td><td>92.00 ± 1.89</td><td>74.67 ± 4.75</td><td>76.00 ± 9.98</td><td>72.00 ± 6.80</td><td>93.33 ± 2.88</td><td>38.67 ± 4.35</td><td>94.67 ± 2.88</td></tr><tr><td>common_concept</td><td>22.36 ± 2.34</td><td>15.53 ± 5.11</td><td>20.21 ± 1.19</td><td>17.99 ± 6.72</td><td>21.86 ± 7.16</td><td>20.08 ± 6.70</td><td>22.86 ± 3.27</td></tr><tr><td>diff</td><td>18.33 ± 6.87</td><td>53.00 ± 20.37</td><td>81.67 ± 13.76</td><td>7.00 ± 5.72</td><td>88.33 ± 5.93</td><td>64.33 ± 23.91</td><td>98.00 ± 0.82</td></tr><tr><td>informal_to_formal</td><td>57.59 ± 2.40</td><td>51.53 ± 4.62</td><td>48.93 ± 3.46</td><td>42.87 ± 2.03</td><td>58.93 ± 4.83</td><td>50.02 ± 2.63</td><td>52.77 ± 5.46</td></tr><tr><td>letters_list</td><td>99.00 ± 0.82</td><td>99.00 ± 0.47</td><td>97.67 ± 1.52</td><td>73.67 ± 9.69</td><td>98.67 ± 1.09</td><td>99.00 ± 0.47</td><td>99.33 ± 0.54</td></tr><tr><td>negation</td><td>83.33 ± 1.19</td><td>81.67 ± 3.95</td><td>76.67 ± 4.77</td><td>71.67 ± 1.19</td><td>77.33 ± 4.63</td><td>73.33 ± 4.23</td><td>84.00 ± 2.16</td></tr><tr><td>object_counting</td><td>37.33 ± 5.50</td><td>46.00 ± 5.72</td><td>48.67 ± 3.21</td><td>28.67 ± 2.23</td><td>34.00 ± 4.08</td><td>31.00 ± 3.86</td><td>45.67 ± 4.38</td></tr><tr><td>odd_one_out</td><td>51.33 ± 14.43</td><td>46.67 ± 5.76</td><td>60.00 ± 7.12</td><td>68.00 ± 1.89</td><td>58.67 ± 7.14</td><td>47.33 ± 10.39</td><td>70.00 ± 0.94</td></tr><tr><td>orthography Starts_with</td><td>46.00 ± 8.18</td><td>35.00 ± 3.56</td><td>54.67 ± 8.20</td><td>42.00 ± 15.28</td><td>54.67 ± 3.66</td><td>22.33 ± 10.18</td><td>57.33 ± 6.08</td></tr><tr><td>rhymes</td><td>69.33 ± 16.41</td><td>81.67 ± 10.69</td><td>98.67 ± 0.72</td><td>93.67 ± 1.96</td><td>83.33 ± 6.87</td><td>77.00 ± 15.25</td><td>85.00 ± 7.41</td></tr><tr><td>second_word_letter</td><td>72.67 ± 10.88</td><td>40.67 ± 5.99</td><td>48.00 ± 22.38</td><td>33.00 ± 7.93</td><td>68.00 ± 17.75</td><td>22.00 ± 14.73</td><td>77.00 ± 12.57</td></tr><tr><td>sentence_similarity</td><td>29.00 ± 5.44</td><td>17.33 ± 4.75</td><td>11.33 ± 5.42</td><td>29.00 ± 0.47</td><td>4.33 ± 3.54</td><td>6.67 ± 5.44</td><td>21.67 ± 8.49</td></tr><tr><td>sum</td><td>24.00 ± 14.61</td><td>55.00 ± 23.92</td><td>99.33 ± 0.54</td><td>66.67 ± 27.22</td><td>100.00 ± 0.00</td><td>91.33 ± 3.78</td><td>94.67 ± 4.35</td></tr><tr><td>synonyms</td><td>10.00 ± 4.50</td><td>22.67 ± 5.62</td><td>25.00 ± 8.83</td><td>25.33 ± 7.98</td><td>24.33 ± 2.76</td><td>12.67 ± 0.72</td><td>18.33 ± 1.91</td></tr><tr><td>taxonomy_animal</td><td>43.67 ± 15.96</td><td>44.33 ± 17.72</td><td>92.00 ± 3.77</td><td>34.00 ± 15.08</td><td>69.00 ± 24.10</td><td>73.67 ± 8.09</td><td>99.67 ± 0.27</td></tr><tr><td>word_sorting</td><td>54.00 ± 15.41</td><td>39.67 ± 12.11</td><td>27.33 ± 7.37</td><td>71.00 ± 4.50</td><td>54.00 ± 15.06</td><td>36.33 ± 11.49</td><td>53.33 ± 8.38</td></tr><tr><td>word_unscrambling</td><td>28.00 ± 4.78</td><td>38.00 ± 3.74</td><td>42.33 ± 8.59</td><td>23.00 ± 9.57</td><td>52.00 ± 7.79</td><td>43.00 ± 1.25</td><td>48.00 ± 7.59</td></tr><tr><td># best-performing tasks</td><td>1</td><td>0</td><td>3</td><td>3</td><td>4</td><td>0</td><td>12</td></tr><tr><td>Average Rank</td><td>4.25</td><td>4.80</td><td>3.70</td><td>4.70</td><td>3.05</td><td>5.20</td><td>1.90</td></tr></table>
represents the current epoch and $T$ is a warm-up duration. This schedule allows the score predictor $m(g(z); \theta)$ to learn accurate patterns from the scored data and gradually incorporate the score equality constraint of unscored data.
Figure 3 shows a toy example illustrating the effect of the proposed consistency loss. We use a simple model with two linear layers. In Figure 3a, the model is trained only with the $\mathcal{L}_{\mathrm{MSE}}$ on the scored data, while in Figure 3b, $\mathcal{L}_{\mathrm{cons}}$ is additionally applied to unscored data. We assume there are three unscored preimages, each represented by a different marker shape. Although the model is only given the information that data points within each preimage share the same score, the $\mathcal{L}_{\mathrm{cons}}$ allows it to make more accurate predictions on the unscored data.
# 5 Experiments
# 5.1 Experimental settings
We evaluate our proposed method, PRESTO, on 30 instruction induction tasks [36], a benchmark widely used to assess instruction optimization performance, and 3 arithmetic reasoning tasks [37-39]. We compare PRESTO with six competitive instruction optimization baselines: APE [8], InstructZero [14], INSTINCT [16], EvoPrompt [10], ZOPO [15], and OPRO [9]. We use LLaMA3.1-8B-Instruct [1] as the white-box LLM $f_{\mathrm{w}}$ to generate candidate instructions, and GPT-4.1 as the black-box model $f_{\mathrm{b}}$ . Following previous works [14-16], we set the total query budget to 165, initialize with 40 soft prompts, and evaluate all methods over three different random seeds. To ensure a fair comparison, we follow the hyperparameter tuning procedure in [16]. Detailed hyperparameter configurations and experimental settings are provided in the supplement.
# 5.2 Instruction induction results
Here we provide the results of our proposed method, PRESTO, compared with six strong baselines on instruction induction tasks. To enhance readability, we report results on a subset of 20 following previous works [16, 15]. The full results for all 30 tasks are provided in the appendix. Table 1 shows that PRESTO achieves the highest accuracy on 12 out of the 20 tasks, which is three times more than the second-best method, ZOPO. In addition, PRESTO attains the best average rank of 1.90, outperforming all baselines by a clear margin; the next best, ZOPO, has an average rank of 3.05, followed by INSTINCT at 3.70. These results highlight the strong performance of PRESTO on individual tasks and its robustness across a wide range of instruction induction tasks. In the full set of 30 tasks, PRESTO also consistently outperforms other baselines with a large margin in the number of best-performing tasks and average rank.
Table 2: Performance of different CoT prompts on three math reasoning datasets. The best result for each dataset is in bold, and the second best is underlined.
<table><tr><td>Method</td><td>Dataset</td><td>Best instruction</td><td>Accuracy</td></tr><tr><td>Hand-crafted</td><td>GSM8K</td><td>Let's think step by step</td><td>0.9121</td></tr><tr><td>InstructZero</td><td>GSM8K</td><td>Let's think step by step to solve the math problem</td><td>0.9083</td></tr><tr><td>INSTINCT</td><td>GSM8K</td><td>Let's break down and solve the problem</td><td>0.9098</td></tr><tr><td>ZOPO</td><td>GSM8K</td><td>Let's break it down and find the solution</td><td>0.9143</td></tr><tr><td>PRESTO (Ours)</td><td>GSM8K</td><td>Let's break it down together</td><td>0.9128</td></tr><tr><td>Hand-crafted</td><td>AQUA-RAT</td><td>Let's think step by step.</td><td>0.7402</td></tr><tr><td>InstructZero</td><td>AQUA-RAT</td><td>Let's break it down and find the solution</td><td>0.7480</td></tr><tr><td>INSTINCT</td><td>AQUA-RAT</td><td>Let's break it down step by step. I am ready to solve the problem.</td><td>0.7480</td></tr><tr><td>ZOPO</td><td>AQUA-RAT</td><td>Let's break it down mathematically.</td><td>0.7520</td></tr><tr><td>PRESTO (Ours)</td><td>AQUA-RAT</td><td>Let's solve it together.</td><td>0.7756</td></tr><tr><td>Hand-crafted</td><td>SVAMP</td><td>Let's think step by step.</td><td>0.9375</td></tr><tr><td>InstructZero</td><td>SVAMP</td><td>Let's crack the code!</td><td>0.9400</td></tr><tr><td>INSTINCT</td><td>SVAMP</td><td>Let's break it down step by step</td><td>0.9375</td></tr><tr><td>ZOPO</td><td>SVAMP</td><td>I see what you're doing there</td><td>0.9400</td></tr><tr><td>PRESTO (Ours)</td><td>SVAMP</td><td>Let's use the formula</td><td>0.9400</td></tr></table>
Table 3: Ablation study of PRESTO. We incrementally add score sharing (SS, Sec. 4.1), preimage-based initialization (Init, Sec. 4.2), and consistency regularization (Reg, Sec. 4.3) to a vanilla baseline.
<table><tr><td>Model</td><td>SS</td><td>Reg</td><td>Init</td><td># Wins</td><td>Avg. Rank</td><td>Avg. acc.</td></tr><tr><td>Vanilla</td><td>X</td><td>X</td><td>X</td><td>0</td><td>4.55</td><td>51.91</td></tr><tr><td>+ SS</td><td>✓</td><td>X</td><td>X</td><td>3</td><td>3.10</td><td>59.57</td></tr><tr><td>+ SS + Reg</td><td>✓</td><td>✓</td><td>X</td><td>4</td><td>2.65</td><td>61.77</td></tr><tr><td>+ SS + Init</td><td>✓</td><td>X</td><td>✓</td><td>4</td><td>2.30</td><td>61.82</td></tr><tr><td>+ SS + Init + Reg (Ours)</td><td>✓</td><td>✓</td><td>✓</td><td>9</td><td>2.20</td><td>62.91</td></tr></table>
# 5.3 Chain-of-Thought Prompting Results
We evaluate the quality of the optimized instructions by measuring their effectiveness as chain-of-thought (CoT) [40] prompts on three math reasoning benchmarks: GSM8K [37], AQUARAT [38], and SVAMP [39]. We compare our method with three baselines that use soft prompts (InstructZero [14], INSTINCT [16], and ZOPO [15]), as well as a standard hand-crafted prompt [41]. Table 2 demonstrates that our PRESTO outperforms or matches the best-performing baselines across all datasets. In particular, it achieves the highest accuracy on AQUARAT (0.7756) and ties for the best result on SVAMP (0.9400), while remaining competitive on GSM8K. These results indicate that the instructions optimized by our method are also effective when used as CoT prompts.
# 6 Analysis
# 6.1 Ablation Study
We perform an ablation study to analyze the contribution of each component in our method over the 20 instruction induction tasks used in Table 1 over 3 random seeds. Starting from a vanilla baseline without our techniques, we incrementally add: (1) score sharing method (Section 4.1), (2) preimage-based initialization (Section 4.2), and (3) score consistency regularization (Section 4.3). The full model with all components combined corresponds to our proposed method, PRESTO. As shown in Table 3, each component contributes to performance improvement. In particular, introducing score sharing significantly boosts accuracy from 51.91 to 59.57 (+7.66) and improves average rank from 4.55 to 3.10 (-1.45), indicating its strong impact. Our PRESTO achieves the best results overall, with the highest number of wins and the lowest average rank across tasks.
# 6.2 Impact of score sharing method
We report the average number of soft prompts with assigned scores after the optimization process, comparing our method with baselines across all 30 tasks. The reported count includes soft prompts that were scored either directly through black-box evaluation or indirectly via score sharing. As shown in Figure 4, our method assigns scores to over 2,300 soft prompts on average, $14 \times$ more than
 Figure 4: Average number of scored soft prompts after optimization across all tasks.
 Figure 5: Performance of score predictor trained with diverse methods.
 (a)
 (b)
 (c) Figure 6: Visualization of the initial data distribution under different initialization. We plot the entire soft prompt embedding candidate set $G^{\mathrm{total}}$ using t-SNE, and highlight the selected initial data in red.
 (d)
previous methods, which yield only 165 scored data points, equal to the query budget in our setting. The large amount of scored data enables the score predictor to learn the objective function more effectively, which in turn facilitates more successful optimization. This analysis demonstrates that our score-sharing method can significantly increase the amount of scored data without requiring additional black-box queries.
# 6.3 Visualization of Preimage-Based Initialization
We present a qualitative analysis of how score sharing and preimage-based initialization influence the distribution of initial soft prompts. Figure 6 visualizes the distribution of initial soft prompts under four settings: (1) random initialization, (2) random initialization with score sharing (Section 4.1), (3) preimage-based initialization using $S_{\mathrm{rep}}$ only, and (4) $S_{\mathrm{cov}} = S_{\mathrm{rep}} + S_{\mathrm{size}}$ (Section 4.2) in "objective counting" task. To visualize the spatial distribution of soft prompt embeddings, we employ t-SNE. Compared to random initialization in prior works, score sharing enlarges the size of the initial dataset without additional black-box queries. Furthermore, selecting initial data using $S_{\mathrm{rep}}$ leads to better coverage of the soft prompt space than naive score sharing. Finally, our proposed preimage-based initialization method that utilizes $S_{\mathrm{cov}}$ achieves the densest and comprehensive coverage of the search space. It shows that our preimage-based initialization method effectively selects the initial data points that densely and evenly cover the search space.
# 6.4 Score Predictor Performance Enhancement
To analyze how score sharing (Section 4.1) and score consistency regularization (Section 4.3) influence the quality of the score predictor, we evaluate its prediction performance under different training configurations. Figure 5 reports the root mean squared error (RMSE), where lower values indicate higher prediction accuracy. We use 100 randomly selected soft prompts as training data and another 100 as test data for the objective counting task. As shown in Figure 5, applying either score sharing or score consistency regularization improves the score predictor's performance, reducing the RMSE from approximately 0.27 (vanilla) to around 0.23. When both techniques are applied together, the RMSE further decreases to approximately 0.15, indicating a strong complementary effect. The results demonstrate that expanding the training set without requiring additional black-box queries
through score sharing and incorporating the preimage structure as a prior via score consistency regularization are both crucial for enhancing the score predictor's performance.
# 7 Conclusion
We propose PRESTO, a preimage-informed instruction optimization framework that explicitly leverages this many-to-one structure via preimage. PRESTO consists of three components that leverage the preimage structure: score sharing to propagate labels within each preimage, preimage-based initialization to improve search space coverage, and consistency regularization to align predictions within unscored preimages. PRESTO achieves state-of-the-art performance on 33 instruction optimization tasks, and our comprehensive analysis supports its effectiveness and robustness.
# Limitations and broader impacts
Our method introduces preimage-based score sharing to enlarge the number of data, which incurs mild computational overhead compared to simpler baselines. Moreover, its benefits are more pronounced when applied to a large candidate set, as score sharing is most effective when many soft prompts map to the same instruction.
In terms of broader impact, this work aims to make black-box LLM optimization more data-efficient, which can reduce the cost of experimentation and improve accessibility for researchers with limited resources. However, as with any optimization technique for LLMs, there is a risk that improved performance could be applied in ways that reinforce biases or generate harmful content. Careful deployment and alignment with responsible AI principles are necessary.
# Acknowledgement
This research was supported by the ASTRA Project through the National Research Foundation (NRF) funded by the Ministry of Science and ICT (No. RS-2024-00439619).
# References
[1] Aaron Grattafori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, et al. The llama 3 herd of models. arXiv, 2024. [2] Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. Gpt-4 technical report. arXiv, 2023. [3] Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Ruoyu Zhang, Runxin Xu, Qihao Zhu, Shirong Ma, Peiyi Wang, Xiao Bi, et al. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025. [4] Arun James Thirunavukarasu, Darren Shu Jeng Ting, Kabilan Elangovan, Laura Gutierrez, Ting Fang Tan, and Daniel Shu Wei Ting. Large language models in medicine. Nature medicine, 2023. [5] Humza Naveed, Asad Ullah Khan, Shi Qiu, Muhammad Saqib, Saeed Anwar, Muhammad Usman, Naveed Akhtar, Nick Barnes, and Ajmal Mian. A comprehensive overview of large language models. arXiv preprint arXiv:2307.06435, 2023. [6] Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. Advances in neural information processing systems, 35:27730-27744, 2022. [7] Pengfei Liu, Weizhe Yuan, Jinlan Fu, Zhengbao Jiang, Hiroaki Hayashi, and Graham Neubig. Pre-train, prompt, and predict: A systematic survey of prompting methods in natural language processing. ACM computing surveys, 2023. [8] Yongchao Zhou, Andrei Ioan Muresanu, Ziwen Han, Keiran Paster, Silviu Pitis, Harris Chan, and Jimmy Ba. Large language models are human-level prompt engineers. In ICLR, 2022.
[9] Chengrun Yang, Xuezhi Wang, Yifeng Lu, Hanxiao Liu, Quoc V Le, Denny Zhou, and Xinyun Chen. Large language models as optimizers. In ICLR, 2024. [10] Qingyan Guo, Rui Wang, Junliang Guo, Bei Li, Kaitao Song, Xu Tan, Guoqing Liu, Jiang Bian, and Yujiu Yang. Connecting large language models with evolutionary algorithms yields powerful prompt optimizers. In ICLR, 2024. [11] Chrisantha Fernando, Dylan Sunil Banarse, Henryk Michalewski, Simon Osindero, and Tim Roektaschel. Promptbreeder: Self-referential self-improvement via prompt evolution. In International Conference on Machine Learning, 2024. [12] Reid Pryzant, Dan Iter, Jerry Li, Yin Tat Lee, Chenguang Zhu, and Michael Zeng. Automatic prompt optimization with "gradient descent" and beam search. In EMNLP, 2023. [13] Chengshuai Shi, Kun Yang, Zihan Chen, Jundong Li, Jing Yang, and Cong Shen. Efficient prompt optimization through the lens of best arm identification. arXiv preprint arXiv:2402.09723, 2024. [14] Lichang Chen, Jiuhai Chen, Tom Goldstein, Heng Huang, and Tianyi Zhou. Instructzero: Efficient instruction optimization for black-box large language models. In ICML, 2024. [15] Wenyang Hu, Yao Shu, Zongmin Yu, Zhaoxuan Wu, Xiaogiang Lin, Zhongxiang Dai, See-Kiong Ng, and Bryan Kian Hsiang Low. Localized zeroth-order prompt optimization. NeurIPS, 2024. [16] Xiaogiang Lin, Zhaoxuan Wu, Zhongxiang Dai, Wenyang Hu, Yao Shu, See-Kiong Ng, Patrick Jaillet, and Bryan Kian Hsiang Low. Use your instinct: Instruction optimization for llms using neural bandits coupled with transformers. In ICML, 2024. [17] Albert Q Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Bressand, et al. Mixtral of experts. arXiv preprint arXiv:2401.04088, 2024. [18] An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, et al. Qwen2. 5 technical report. arXiv preprint arXiv:2412.15115, 2024. [19] Peter I Frazier. A tutorial on bayesian optimization. arXiv preprint arXiv:1807.02811, 2018. [20] Bobak Shahriari, Kevin Swersky, Ziyu Wang, Ryan P Adams, and Nando De Freitas. Taking the human out of the loop: A review of bayesian optimization. Proceedings of the IEEE, 2015. [21] Dongruo Zhou, Lihong Li, and Quanquan Gu. Neural contextual bandits with ucb-based exploration. In ICML, 2020. [22] Weitong Zhang, Dongruo Zhou, Lihong Li, and Quanquan Gu. Neural thompson sampling. arXiv preprint arXiv:2010.00827, 2020. [23] Krista Opsahl-Ong, Michael Ryan, Josh Purtell, David Broman, Christopher Potts, Matei Zaharia, and Omar Khattab. Optimizing instructions and demonstrations for multi-stage language model programs. In EMNLP, 2024. [24] Xiaoqiang Lin, Zhongxiang Dai, Arun Verma, See-Kiong Ng, Patrick Jaillet, and Bryan Kian Hsiang Low. Prompt optimization with human feedback. arXiv preprint arXiv:2405.17346, 2024. [25] 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. Mistral 7b. arXiv, 2023. [26] Seunghun Lee, Jaewon Chu, Sihyeon Kim, Juyeon Ko, and Hyunwoo J Kim. Advancing bayesian optimization via learning correlated latent space. Advances in Neural Information Processing Systems, 2023.
[27] Jaewon Chu, Jinyoung Park, Seunghun Lee, and Hyunwoo J Kim. Inversion-based latent bayesian optimization. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. [28] Seunghun Lee, Jinyoung Park, Jaewon Chu, Minseo Yoon, and Hyunwoo J Kim. Latent bayesian optimization via autoregressive normalizing flows. In The Thirteenth International Conference on Learning Representations, 2025. [29] Pin-Yu Chen, Huan Zhang, Yash Sharma, Jinfeng Yi, and Cho-Jui Hsieh. Zoo: Zeroth order optimization based black-box attacks to deep neural networks without training substitute models. In Proceedings of the 10th ACM workshop on artificial intelligence and security, pages 15-26, 2017. [30] William J Morokoff and Russel E Caflisch. Quasi-random sequences and their discrepancies. SIAM Journal on Scientific Computing, 15(6):1251-1279, 1994. [31] Marissa Renardy, Louis R Joslyn, Jess A Millar, and Denise E Kirschner. To sobol or not to sobol? the effects of sampling schemes in systems biology applications. Mathematical biosciences, 337:108593, 2021. [32] Donald R Jones, Matthias Schonlau, and William J Welch. Efficient global optimization of expensive black-box functions. Journal of Global optimization, 13:455-492, 1998. [33] David Eriksson, Michael Pearce, Jacob Gardner, Ryan D Turner, and Matthias Poloczek. Scalable global optimization via local bayesian optimization. Advances in neural information processing systems, 32, 2019. [34] Samuel Daulton, Maximilian Balandat, and Eytan Bakshy. Differentiable expected hypervolume improvement for parallel multi-objective bayesian optimization. Advances in Neural Information Processing Systems, 33:9851-9864, 2020. [35] Samuel Daulton, Maximilian Balandat, and Eytan Bakshy. Parallel bayesian optimization of multiple noisy objectives with expected hypervolume improvement. Advances in Neural Information Processing Systems, 34:2187-2200, 2021. [36] Or Honovich, Uri Shaham, Samuel R Bowman, and Omer Levy. Instruction induction: From few examples to natural language task descriptions. In 61st Annual Meeting of the Association for Computational Linguistics, ACL 2023, pages 1935–1952, 2023. [37] Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021. [38] Wang Ling, Dani Yogatama, Chris Dyer, and Phil Blunsom. Program induction by rationale generation: Learning to solve and explain algebraic word problems. arXiv preprint arXiv:1705.04146, 2017. [39] Arkil Patel, Satwik Bhattachamishra, and Navin Goyal. Are nlp models really able to solve simple math word problems? arXiv preprint arXiv:2103.07191, 2021. [40] Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824-24837, 2022. [41] Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. Large language models are zero-shot reasoners. Advances in neural information processing systems, 35:22199-22213, 2022.
# NeurIPS Paper Checklist
The checklist is designed to encourage best practices for responsible machine learning research, addressing issues of reproducibility, transparency, research ethics, and societal impact. Do not remove the checklist: The papers not including the checklist will be desk rejected. The checklist should follow the references and follow the (optional) supplemental material. The checklist does NOT count towards the page limit.
Please read the checklist guidelines carefully for information on how to answer these questions. For each question in the checklist:
- You should answer [Yes], [No], or [NA]. - [NA] means either that the question is Not Applicable for that particular paper or the relevant information is Not Available. - Please provide a short (1–2 sentence) justification right after your answer (even for NA).
The checklist answers are an integral part of your paper submission. They are visible to the reviewers, area chairs, senior area chairs, and ethics reviewers. You will be asked to also include it (after eventual revisions) with the final version of your paper, and its final version will be published with the paper.
The reviewers of your paper will be asked to use the checklist as one of the factors in their evaluation. While "[Yes]" is generally preferable to "[No]", it is perfectly acceptable to answer "[No]" provided a proper justification is given (e.g., "error bars are not reported because it would be too computationally expensive" or "we were unable to find the license for the dataset we used"). In general, answering "[No]" or "[NA]" is not grounds for rejection. While the questions are phrased in a binary way, we acknowledge that the true answer is often more nuanced, so please just use your best judgment and write a justification to elaborate. All supporting evidence can appear either in the main paper or the supplemental material, provided in appendix. If you answer [Yes] to a question, in the justification please point to the section(s) where related material for the question can be found.
IMPORTANT, please:
- Delete this instruction block, but keep the section heading "NeurIPS Paper Checklist", - Keep the checklist subsection headings, questions/answers and guidelines below. - Do not modify the questions and only use the provided macros for your answers.
# 1. Claims
Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope?
Answer: [Yes]
Justification: The abstract and introduction clearly state the main claims (Section 1, 4).
Guidelines:
- The answer NA means that the abstract and introduction do not include the claims made in the paper. - The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. - The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. - It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper.
# 2. Limitations
Question: Does the paper discuss the limitations of the work performed by the authors?
Answer: [Yes]
Justification: The paper discusses limitations after Section 7.
# Guidelines:
- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. - The authors are encouraged to create a separate "Limitations" section in their paper. - The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. - The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. - The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. - The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. - If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. - While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations.
# 3. Theory assumptions and proofs
Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof?
Answer: [NA]
Justification: The paper does not present formal theoretical proofs, focusing instead on algorithmic design and empirical validation.
# Guidelines:
- The answer NA means that the paper does not include theoretical results. - All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. - All assumptions should be clearly stated or referenced in the statement of any theorems. - The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. - Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. - Theorems and Lemmas that the proof relies upon should be properly referenced.
# 4. Experimental result reproducibility
Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)?
Answer: [Yes]
Justification: Section 5.1 provides full experimental settings, and additional details are available in the supplementary material.
Guidelines:
- The answer NA means that the paper does not include experiments.
- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. - If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. - Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. - While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example (a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. (b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. (c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). (d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results.
# 5. Open access to data and code
Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material?
# Answer: [Yes]
Justification: The paper states that detailed configurations and implementation details are provided in Section 5.1 and the supplement, and the authors intend to release code and data after acceptance.
# Guidelines:
- The answer NA means that paper does not include experiments requiring code. - Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. - While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). - The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. - The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. - The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. - At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable).
- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted.
# 6. Experimental setting/details
Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results?
Answer: [Yes]
Justification: The paper describes test splits, model usage, total budget, search space construction, and optimization strategies.
Guidelines:
- The answer NA means that the paper does not include experiments. - The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. - The full details can be provided either with the code, in appendix, or as supplemental material.
# 7. Experiment statistical significance
Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments?
Answer: [Yes]
Justification: The tables report averages with standard errors over three random seeds, and all comparisons to baselines include this variance (see Tables 1).
Guidelines:
- The answer NA means that the paper does not include experiments. - The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. - The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). - The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) - The assumptions made should be given (e.g., Normally distributed errors). - It should be clear whether the error bar is the standard deviation or the standard error of the mean. - It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. - For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). - If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text.
# 8. Experiments compute resources
Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments?
Answer: [Yes]
Justification: The supplementary materials include detailed specifications, including hardware type.
Guidelines:
- The answer NA means that the paper does not include experiments.
- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. - The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. - The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper).
# 9. Code of ethics
Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines?
Answer: [Yes]
Justification: The work conforms to NeurIPS Code of Ethics.
Guidelines:
- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. - If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. - The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction).
# 10. Broader impacts
Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed?
Answer: [Yes]
Justification: The paper discusses broader impacts after Section 7.
Guidelines:
- The answer NA means that there is no societal impact of the work performed. - If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. - Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. - The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. - The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. - If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML).
# 11. Safeguards
Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)?
Answer: [NA]
Justification: The method does not release any high-risk models or datasets.
# Guidelines:
- The answer NA means that the paper poses no such risks. - Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. - Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. - We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort.
# 12. Licenses for existing assets
Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?
Answer: [Yes]
Justification: The paper appropriately cites existing models and datasets with references including model names and publications.
# Guidelines:
- The answer NA means that the paper does not use existing assets. - The authors should cite the original paper that produced the code package or dataset. - The authors should state which version of the asset is used and, if possible, include a URL. - The name of the license (e.g., CC-BY 4.0) should be included for each asset. - For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. - If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. - For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. - If this information is not available online, the authors are encouraged to reach out to the asset's creators.
# 13. New assets
Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets?
Answer: [NA]
Justification: No new dataset, model, or tool is released. The method is built on existing assets.
# Guidelines:
- The answer NA means that the paper does not release new assets. - Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. - The paper should discuss whether and how consent was obtained from people whose asset is used. - At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file.
# 14. Crowdsourcing and research with human subjects
Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)?
# Answer: [NA]
Justification: The research does not involve any human subjects or crowdsourcing experiments.
# Guidelines:
- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. - Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. - According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector.
# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects
Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained?
# Answer: [NA]
Justification: No human subject research is conducted, hence IRB approval is not applicable.
# Guidelines:
- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. - Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. - We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. - For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review.
# 16. Declaration of LLM usage
Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required.
# Answer: [Yes]
Justification: The method leverages both white-box and black-box LLMs as part of its core optimization framework.
# Guidelines:
- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. - Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described.123version https://git-lfs.github.com/spec/v1oid sha256:696fd3d68054c02ec8c8c86e3d6ac4caebd538eb7484fb690694b0c93dd57e01size 560847123version https://git-lfs.github.com/spec/v1oid sha256:c7d444d63592311511998cb8e2fbc0bb3d47ec319cefa6e1056097fb90cc36c2size 16807828123version https://git-lfs.github.com/spec/v1oid sha256:bd3edac4ea47a164d9ac8de4b160c9b062504b5b8d67925f6483ae2237312904size 1995232123version https://git-lfs.github.com/spec/v1oid sha256:5a8d8a524427d3e19598753e0410dbbac712894d186c6d91d28f2e34cb87f92esize 4201711123version https://git-lfs.github.com/spec/v1oid sha256:3565e37cd7998c5d2c53dfc9e429eca7ff5135399c8154ac2cb57174f702a0besize 585399123version https://git-lfs.github.com/spec/v1oid sha256:f64d2d8f6087db2acb60ad6d8fd0a1357783848dae19b1a19f48f1ec8e7a47bbsize 7018626123version https://git-lfs.github.com/spec/v1oid sha256:d011afd6e82d7396c64899643073b4d77ed4fb3ea766c554f015194c7fc29e6csize 2319167123version https://git-lfs.github.com/spec/v1oid sha256:fee1499550dbd9fef8637136b394aee3b7ddd4d44d0452efbcf669f8e9e7bf0bsize 5319527123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536# PT-MoE: An Efficient Finetuning Framework for Integrating Mixture-of-Experts into Prompt Tuning
Zongqian Li
University of Cambridge zl510@cam.ac.uk
Yixuan Su
University of Cambridge ys484@cam.ac.uk
Nigel Collier
University of Cambridge nhc30@cam.ac.uk
# Abstract
Parameter-efficient fine-tuning (PEFT) methods have shown promise in adapting large language models, yet existing approaches exhibit counter-intuitive phenomena: integrating either matrix decomposition or mixture-of-experts (MoE) individually decreases performance across tasks, though decomposition improves results on specific domains despite reducing parameters, while MoE increases parameter count without corresponding decrease in training efficiency. Motivated by these observations and the modular nature of PT, we propose PT-MoE, a novel framework that integrates matrix decomposition with MoE routing for efficient PT. Evaluation results across 17 datasets demonstrate that PT-MoE achieves state-of-the-art performance in both question answering (QA) and mathematical problem solving tasks, improving F1 score by 1.49 points over PT and 2.13 points over LoRA in QA tasks, while improving mathematical accuracy by 10.75 points over PT and 0.44 points over LoRA, all while using $25\%$ fewer parameters than LoRA. Our analysis reveals that while PT methods generally excel in QA tasks and LoRA-based methods in math datasets, the integration of matrix decomposition and MoE in PT-MoE yields complementary benefits: decomposition enables efficient parameter sharing across experts while MoE provides dynamic adaptation, collectively enabling PT-MoE to demonstrate cross-task consistency and generalization abilities. These findings, along with ablation studies on routing mechanisms and architectural components, provide insights for future PEFT methods. $^{1}$
# 1 Introduction
Background. Large language models (LLMs) have shown remarkable capabilities but require resources for fine-tuning [41, 18, 19]. PEFT methods address this challenge by updating only a small subset of parameters [8, 21, 22]. Prompt tuning (PT) stands out among PEFT approaches with its unique advantages: minimizing trainable parameters through soft prompt optimization, enabling modular deployment through task-specific prompts without model modifications, and supporting flexible knowledge composition [14, 20]. These properties make it particularly effective for low-resource and multi-task applications where efficient adaptation is essential [17].
Motivation. Despite these advantages, we observe three counter-intuitive phenomena in prompt tuning. First, applying either matrix decomposition or MoE routing individually leads to performance decrease in both QA and mathematical tasks compared to standard PT (PT vs DPT, PT vs SMoP; Figure 1). Second, matrix decomposition, while reducing parameter count, improves performance on specific subsets of tasks (PT vs DPT; Tables 2, 3, 4), revealing task-dependent optimization dynamics. Third, integrating additional routing components or multiple experts increases parameter count without corresponding decrease in training efficiency (PT vs SMoP, LoRA vs HydraLoRA; Figure 4). These phenomena indicate that the relationship between parameter efficiency and model
 Figure 1: Performance and parameter efficiency comparison of PEFT methods on QA and mathematical tasks. The upper subgraph shows average F1 scores on 12 MRQA benchmark datasets, while the lower subgraph shows average accuracy on 5 mathematical datasets. The x-axis represents the number of trainable parameters, with corresponding parameter ratio shown at the top. $\uparrow$ indicates higher is better; $\downarrow$ indicates lower is better. Red arrows indicate method transformations: $+\mathrm{MD}$ (matrix decomposition), $+\mathrm{MoE}$ (mixture-of-experts), or their combination. PT excels in QA tasks while LoRA demonstrates advantages in mathematical tasks. PT-MoE achieves the best performance on both task types while using fewer parameters than alternative methods, demonstrating that combining matrix decomposition and MoE yields complementary benefits despite each component individually decreasing performance when applied to PT.
effectiveness in prompt tuning is more nuanced than previously understood, motivating the need for a more sophisticated approach to prompt optimization.
Based on these observations, we propose a novel framework, Prompt Tuning with Efficient Mixture-of-Experts (PT-MoE), that combines matrix decomposition with MoE routing. As shown in Figure 1, our approach not only achieves state-of-the-art performance, but also keeps modular and uses minimal trainable parameters and moderate training steps.
Contributions. Our work offers three key developments:
- Novel finetuning framework: We propose PT-MoE, integrating matrix decomposition with MoE for prompt tuning. Our framework achieves state-of-the-art performance with fewer parameters while outperforming either technique alone, demonstrating their complementary benefits. - Design dynamics: We analyze key variables influencing the performance of PT-MoE, including prompt length, expert count, routing mechanisms, and model size. Our findings provide design guidelines for future parameter-efficient tuning approaches. - Key insights: Our comprehensive analysis across diverse tasks reveals several important findings: First, prompt tuning methods excel in QA tasks while LoRA-based methods demonstrate advantages in mathematical reasoning; Second, matrix decomposition reduces parameters while potentially improving domain-specific performance, whereas MoE integration increases parameter count without compromising training efficiency; and Third, combining matrix decomposition and MoE enables PT-MoE to achieve superior performance across all tasks while maintaining minimal parameter count and moderate training costs, whereas applying either of them individually can decrease average performance.
Organization. The remainder of this paper is organized as follows: Section 2 reviews related work in prompt tuning, covering both direct tuning approaches and transfer learning methods. Section 3 presents our PT-MoE framework, detailing the matrix decomposition strategy, dynamic router design, and training methodology. Section 4 describes our experimental design across QA and mathematical problem-solving tasks. Section 5 presents comprehensive results, including detailed ablation studies analyzing the influences of prompt length, parameter count, expert number, routing mechanisms, and model size, followed by efficiency analysis. Section 6 concludes with key findings and future directions.
# 2 Related Work
To contextualize our approach, we review existing prompt tuning methods, which fall into two categories: direct prompt tuning approaches focusing on architectural innovations, and transfer learning methods enabling cross-task knowledge sharing.
Direct prompt tuning methods have evolved into four main branches: (1) General approaches that directly optimize prompt parameters, including Prompt Tuning that prepends trainable vectors to input while freezing the language model [14], XPrompt that employs pruning to identify and retain important prompt tokens [25], and P-Tuning v2 that introduces deep prompts across all transformer layers [23]; (2) Encoder-based methods that leverage additional additional modules, such as P-Tuning that incorporates an encoder to learn dependencies between continuous embeddings [24], Residual Prompt Tuning (RPT) that employs a residual part with down/up-projection layers for stable optimization [31], and Prefix Tuning that prepends trainable key-value pairs at each layer through a reparameterization section [16]; (3) Decomposition methods that decompose prompt embeddings, including Decomposed Prompt Tuning (DPT) that applies low-rank matrix decomposition to reduce parameter count [37], and DePT that combines shorter soft prompts with low-rank updates to word embeddings [33]; and (4) MoE approaches such as Sparse Mixture-of-Prompts (SMoP) that employs multiple shorter prompts with a dynamic gating mechanism to route inputs to the most suitable prompt representations [2].
Transfer learning approaches in prompt tuning have developed into three categories: (1) General approaches that directly transfer prompt knowledge, including SPoT that introduces both generic transfer through multi-task pre-training and targeted transfer via task similarity matching [34], and ATTEMPT that dynamically combines multiple source prompts through an attention-based mixing mechanism with instance-level adaptation [1]; (2) Encoder-based methods that facilitate knowledge transfer through additional architectures, such as TransPrompt that employs parallel task-specific and universal encoders with balancing mechanisms for obtaining both task-dependent and task-agnostic knowledge [35], and Cross-Task Prompt Tuning (CTPT) that leverages multi-head attention for cross-task knowledge transfer with dimension reduction and derivative-free optimization [38]; and (3) Decomposition methods exemplified by Multitask Prompt Tuning (MPT) that decomposes prompts into shared and task-specific components through knowledge distillation, enabling efficient transfer while preserving task-specific adaptability through a rank-one decomposition strategy [36].
# 3 Methods
Building upon the insights from prior work, we propose a new parameter-efficient prompt tuning framework, PT-MoE, shown in Figure 2 and Algorithm 1.
Framework Overview. PT-MoE integrates matrix decomposition and dynamic routing. Given an input sequence $\mathbf{x}$ , our framework first generates routing weights $\mathbf{w}$ through a router network $R$ : $\mathbf{w} = R(\mathbf{x})$ . These weights determine the selection among $N$ decomposed prompts, where each prompt $\mathbf{P}_i$ is decomposed as $\mathbf{P}_i = \mathbf{A}_i\mathbf{B}$ with $\mathbf{A}_i$ being prompt-specific and $\mathbf{B}$ being shared across all prompts. The final soft prompt $\mathbf{P}$ is computed as $\mathbf{P} = \sum_{i=1}^{N} w_i \mathbf{A}_i \mathbf{B}$ , which is then prepended to the input sequence for the frozen language model.
Matrix Decomposition. To achieve parameter efficiency, we decompose each prompt matrix $\mathbf{P}_i\in \mathbb{R}^{T\times H}$ into a prompt-specific matrix $\mathbf{A}_i\in \mathbb{R}^{T\times R}$ and a shared matrix $\mathbf{B}\in \mathbb{R}^{R\times H}$ , where $T$ , $H$ , and $R$ denote the prompt length, hidden dimension, and low-rank dimension respec
 Figure 2: Architecture of PT-MoE. Each soft prompt is decomposed into an input-specific matrix $A_{i}$ and a shared matrix $B$ , with a router adaptively selecting and combining prompt components based on input. The resulting soft prompt is prepended to the input for the frozen LLM.
Algorithm 1 Pseudo code of PT-MoE Require: Base model $\mathcal{M}$ ; input batch $X = x_{1},\ldots ,x_{b}$ parameters $\theta$ Notation: $^b$ -batch size; $s$ - sequence length; $n$ - number of prompts; $k$ - tokens per prompt; $d$ - low-rank dimension; $h$ - hidden dimension for batch $x\in X$ do Get input embeddings $E = \mathcal{M}_{\mathrm{embed}}(x)$ where $E\in \mathbb{R}^{b\times s\times h}$ Calculate mean embeddings $\mu = \mathrm{mean}(E,\mathrm{dim} = 1)$ where $\mu \in \mathbb{R}^{b\times h}$ Compute router logits $l = W\mu +b$ where $W\in \mathbb{R}^{n\times h}$ $b\in \mathbb{R}^n$ $l\in \mathbb{R}^{b\times n}$ Get router weights $w = \mathrm{softmax}(l)$ where $w\in \mathbb{R}^{b\times n}$ for each sample $j$ in batch do Find indices of top-k weights: $i_{topk} = \mathrm{argsort}(w_j)[-k:]$ Zero all weights except top-k: $w_{j}[i] = 0$ for all $i\notin i_{topk}$ end for Initialize prompt embeddings $P = 0$ $P\in \mathbb{R}^{b\times k\times d}$ for each weight $w_{i}$ in w do Compute weighted prompts $P = P + w_{i}A_{i}$ where $A_{i}\in \mathbb{R}^{k\times d}$ end for Project to model dimension $P = P\times B$ where $B\in \mathbb{R}^{d\times h}$ Combine with input: $C = \mathrm{concat}(P,E)$ where $C\in \mathbb{R}^{b\times (k + s)\times h}$ Generate through base model: $y = \mathcal{M}(C)$ end for Ensure: Model predictions $y$
MRQA (Extractive QA) In-domain SQuAD [30], TriviaQA [9], SearchQA [5], HotpotQA [39], NaturalQuestions [12] Out-of-domain BioASQ [28], DROP [4], DuoRC [32], RACE [13], RelationExtraction [15], TextbookQA [10] Mathematics (Problem Solving) In-domain GSM8K [3] Out-of-domain SVAMP: Subtraction, Addition, Common-Division, Multiplication [29]; ASDIV [26]; MAWPS [11]; MATH_PROBLEMS [27]
Table 1: Overview of training and evaluation datasets. The experiments span two task categories: extractive QA (MRQA benchmark with 12 QA datasets) and mathematical problem solving (GSM8K and specialized mathematical datasets). For each category, datasets are divided into in-domain sets used for training, validation, and evaluation, and out-of-domain sets used exclusively for testing generalization capability.
$O(NTR + RH)$ for $N$ prompts. The low-rank dimension $R$ is either manually specified or automatically computed to maintain parameter efficiency. For initialization, we first encode task-relevant text to obtain embeddings $\mathbf{E} \in \mathbb{R}^{T \times H}$ , then perform SVD: $\mathbf{E} = \mathbf{U} \boldsymbol{\Sigma} \mathbf{V}^{\top}$ . Each $\mathbf{A}_i$ is initialized as $\mathbf{U}$ : $R \boldsymbol{\Sigma} R^{1/2}$ and the shared $\mathbf{B}$ as $\boldsymbol{\Sigma} R^{1/2} \mathbf{V}_{R}^{\top}$ , where subscript $R$ indicates truncation to the first $R$ components. This approach ensures the initial prompts encode task-relevant information while maintaining the parameter efficiency of the decomposition.
Dynamic Router. The router network adaptively selects prompts based on input context. Given an input sequence embedding $\mathbf{x} \in \mathbb{R}^H$ (obtained by averaging token embeddings), the router computes logits through a linear projection: $\mathbf{l} = \mathbf{W}\mathbf{x} + \mathbf{b}$ , where $\mathbf{W} \in \mathbb{R}^{N \times H}$ and $\mathbf{b} \in \mathbb{R}^N$ . During training, we apply multiplicative Gaussian noise to encourage exploration: $\mathbf{l}' = \mathbf{l} \odot (1 + \epsilon)$ , where $\epsilon \sim \mathcal{N}(0, \sigma^2)$ . The routing weights are computed as $\mathbf{w} = \mathrm{softmax}(\mathbf{l}') \odot \mathbf{1}_{\mathrm{argmax}}$ , where $\mathbf{1}_{\mathrm{argmax}}$ is a one-hot vector with 1 at the position of the maximum value. This hard selection strategy reduces interference between prompts while maintaining end-to-end differentiability through straight-through estimation.
Training and Prediction. During training, we optimize both the router parameters and decomposed prompt matrices while keeping the base model frozen. For language model training, we use negative log-likelihood loss computed only on non-prompt positions using a binary mask: $\mathcal{L} = -\sum_{t\in \mathcal{M}}\log p(y_t|x_{< t})$ , where $\mathcal{M}$ denotes non-prompt positions. We employ AdamW optimizer with warmup followed by a constant learning rate schedule, and gradient accumulation for stable optimization. At inference, noise is not added in the router, ensuring deterministic prompt selection.
# 4 Experimental Design
Datasets. We conduct evaluations across 17 diverse datasets, as shown in Table 1, where indomain datasets are split into training, validation, and test sets, while out-of-domain datasets are
used exclusively for testing. For QA, we utilize 12 MRQA datasets [6], with in-domain sets like SQuAD [30] testing information extraction abilities and out-of-domain sets like DROP [4] evaluating domain adaptation. For mathematical problem solving, we use GSM8K [3] from MetaMath [40] as our in-domain benchmark, complemented by specialized out-of-domain datasets including the subject-specific subsets of SVAMP [29], ASDIV [26], MAWPS [11], and MATHPROBLEMS [27].
Gold Standard and Baselines. We employ full model fine-tuning as our gold standard, which updates all parameters but requires computational resources. Our baselines<sup>2</sup> include representative methods from prompt tuning categories: For direct prompt tuning, we select (1) PT from general approaches, (2) DPT from decomposition methods, and (3) SMoP from MoE approaches. While transfer learning methods like (4) ATTEMPT typically involve multi-turn training, we also evaluate its architecture under similar training for comprehensive comparison. We additionally compare against other PEFT methods including (5) LoRA and (6) HydraLoRA, with HydraLoRA adopting a MoE-like architecture that uses a shared down-projection matrix and multiple routed up-projection matrices. These two LoRA-based methods require model architecture modifications unlike the modular nature of prompt tuning methods.
Evaluation Metrics. We employ task-specific evaluation metrics. For extractive QA tasks from MRQA, we adopt two metrics: F1 score, which evaluates the token-level overlap between predicted and ground truth answer spans, balancing precision and recall; and Exact Match (EM), which measures the percentage of predictions that exactly match the ground truth. For mathematical problem solving tasks, we use accuracy, defined as the percentage of correctly solved problems with exact answer matches.
Models. We conduct our main experiments using LLaMA-3.2-1B-Instruct as the base model for fine-tuning methods [7]. For ablation studies on model size, we additionally employ LLaMA-3.2-3B-Instruct.
# 5 Results
# 5.1 Question Answering
The experimental results on MRQA datasets shown in Table 2 and 3 demonstrate the effectiveness of PT-MoE across various QA tasks. We highlight seven key findings: (1) PT-MoE achieves superior overall performance with an average F1 score of $58.26\%$ , outperforming SMoP $(56.25\%)$ by 2.01 points and the standard PT $(56.77\%)$ by 1.49 points, establishing a new state-of-the-art on the MRQA benchmark. (2) This advancement is further validated by Exact Match metrics, where PT-MoE demonstrates even more gains $(47.13\%$ for average, surpassing SMoP and PT by 2.16 and 1.61 points respectively). (3) PT-MoE exhibits strong generalization capabilities across both in-domain and out-of-domain scenarios. It achieves the highest performance on four out of six in-domain datasets and three out of six out-of-domain datasets. (4) The stability of PT-MoE is evidenced by consistent improvements over PT across 11 out of 12 datasets, with only marginal decreases in the RACE dataset. In contrast, SMoP shows performance decrease on 5 datasets compared to PT. (5) Individual architectural components show limited gains: both matrix decomposition (DPT, $55.77\%$ F1) and MoE (SMoP, $56.25\%$ F1) underperform standard prompt tuning (PT, $56.77\%$ F1). (6) PT-MoE's integration of matrix decomposition and MoE yields complementary benefits, outperforming both DPT and SMoP by 2.49 and 2.01 points for F1 respectively. This improvement over individual approaches proves the mutually beneficial nature of these techniques. (7) Notably, while PT-MoE achieves lower overall performance than FT, it reaches comparable or even higher scores than FT on specific datasets such as DROP $(48.02\%$ vs $43.87\%$ F1) while using only 80K parameters compared to FT's 1.2B. These results collectively validate the effectiveness of the architectural design of PT-MoE and demonstrate its superior performance in accuracy and generalization across diverse QA scenarios.
# 5.2 Mathematical Problem Solving
The experimental results on mathematical tasks (Table 4) reveal several distinctive characteristics compared to QA tasks. We highlight six key findings: (1) PT-MoE achieves state-of-the-art per
<table><tr><td># para.</td><td>FT 1.2B</td><td>LoRA 106k</td><td>HydraLoRA 278k</td><td>PT 81k</td><td>DPT 81k</td><td>SMoP 86k</td><td>ATTEMPT 90k</td><td>PT-MoE 80k</td></tr><tr><td colspan="9">In-domain</td></tr><tr><td>SQ</td><td>78.76</td><td>69.82</td><td>74.24</td><td>72.31</td><td>70.99</td><td>74.15</td><td>74.22</td><td>73.85</td></tr><tr><td>News</td><td>48.69</td><td>39.91</td><td>44.05</td><td>48.18</td><td>48.42</td><td>48.96</td><td>48.18</td><td>48.24</td></tr><tr><td>Tri</td><td>71.04</td><td>70.61</td><td>71.38</td><td>65.93</td><td>65.41</td><td>66.13</td><td>65.31</td><td>67.34</td></tr><tr><td>Srch</td><td>71.35</td><td>55.56</td><td>60.13</td><td>49.74</td><td>46.94</td><td>41.08</td><td>37.64</td><td>51.33</td></tr><tr><td>HP</td><td>72.96</td><td>63.29</td><td>64.02</td><td>58.69</td><td>58.49</td><td>58.96</td><td>60.18</td><td>62.16</td></tr><tr><td>NQ</td><td>67.56</td><td>65.92</td><td>66.31</td><td>62.18</td><td>61.65</td><td>61.17</td><td>59.59</td><td>62.95</td></tr><tr><td colspan="9">Out-of-domain</td></tr><tr><td>BSQ</td><td>70.19</td><td>65.38</td><td>68.76</td><td>68.59</td><td>65.56</td><td>68.59</td><td>66.69</td><td>69.33</td></tr><tr><td>DP</td><td>43.87</td><td>35.25</td><td>34.38</td><td>40.39</td><td>38.80</td><td>39.92</td><td>45.32</td><td>48.02</td></tr><tr><td>DRC</td><td>48.11</td><td>43.69</td><td>44.36</td><td>43.30</td><td>43.64</td><td>42.07</td><td>42.86</td><td>43.96</td></tr><tr><td>RC</td><td>43.44</td><td>38.04</td><td>40.00</td><td>42.10</td><td>41.89</td><td>42.34</td><td>43.01</td><td>42.51</td></tr><tr><td>RE</td><td>81.60</td><td>74.09</td><td>77.97</td><td>82.43</td><td>80.85</td><td>83.73</td><td>84.11</td><td>83.70</td></tr><tr><td>TB</td><td>52.71</td><td>52.00</td><td>52.44</td><td>47.34</td><td>46.62</td><td>47.85</td><td>46.91</td><td>45.71</td></tr><tr><td>Avg.</td><td>62.52</td><td>56.13</td><td>58.17</td><td>56.77</td><td>55.77</td><td>56.25</td><td>56.17</td><td>58.26</td></tr></table>
Table 2: Evaluation results (F1 scores) for various PEFT methods on QA datasets. SQ: SQuAD; News: NewsQA; Tri: TriviaQA; Srch: SearchQA; HP: HotpotQA; NQ: NaturalQuestions; BSQ: BioASQ; DP: DROP; DRC: DuoRC; RC: RACE; RE: RelationExtraction; TB: TextbookQA. The bold values indicate the best performance among prompt tuning-based methods.
<table><tr><td># para.</td><td>FT 1.2B</td><td>LoRA 106k</td><td>HydraLoRA 278k</td><td>PT 81k</td><td>DPT 81k</td><td>SMoP 86k</td><td>ATTEMPT 90k</td><td>PT-MoE 80k</td></tr><tr><td colspan="9">In-domain</td></tr><tr><td>SQ</td><td>65.28</td><td>56.26</td><td>61.63</td><td>61.25</td><td>58.49</td><td>63.15</td><td>63.71</td><td>63.34</td></tr><tr><td>News</td><td>32.76</td><td>25.26</td><td>27.80</td><td>32.62</td><td>32.88</td><td>32.81</td><td>32.50</td><td>32.85</td></tr><tr><td>Tri</td><td>62.29</td><td>64.11</td><td>64.32</td><td>59.49</td><td>58.56</td><td>59.48</td><td>58.71</td><td>60.87</td></tr><tr><td>Srch</td><td>61.50</td><td>46.10</td><td>50.06</td><td>42.40</td><td>39.65</td><td>34.51</td><td>31.24</td><td>43.98</td></tr><tr><td>HP</td><td>56.19</td><td>47.48</td><td>47.73</td><td>44.45</td><td>44.33</td><td>43.80</td><td>45.77</td><td>47.29</td></tr><tr><td>NQ</td><td>50.45</td><td>49.54</td><td>49.59</td><td>47.28</td><td>46.54</td><td>46.39</td><td>45.66</td><td>48.18</td></tr><tr><td colspan="9">Out-of-domain</td></tr><tr><td>BSQ</td><td>49.06</td><td>42.02</td><td>44.01</td><td>51.79</td><td>49.46</td><td>50.06</td><td>49.26</td><td>52.06</td></tr><tr><td>DP</td><td>32.26</td><td>25.48</td><td>24.75</td><td>30.60</td><td>28.74</td><td>29.94</td><td>36.06</td><td>37.12</td></tr><tr><td>DRC</td><td>38.84</td><td>33.24</td><td>33.57</td><td>34.64</td><td>35.64</td><td>34.11</td><td>34.84</td><td>35.64</td></tr><tr><td>RC</td><td>29.52</td><td>24.92</td><td>26.11</td><td>29.82</td><td>30.26</td><td>30.56</td><td>30.41</td><td>31.75</td></tr><tr><td>RE</td><td>66.99</td><td>58.58</td><td>62.68</td><td>72.45</td><td>70.48</td><td>74.59</td><td>75.13</td><td>74.18</td></tr><tr><td>TB</td><td>43.71</td><td>44.17</td><td>43.97</td><td>39.52</td><td>38.72</td><td>40.25</td><td>39.52</td><td>38.25</td></tr><tr><td>Avg.</td><td>49.07</td><td>43.09</td><td>44.69</td><td>45.52</td><td>44.48</td><td>44.97</td><td>45.23</td><td>47.13</td></tr></table>
Table 3: Evaluation results (Exact Match) for QA datasets.
formance with an average accuracy of $56.91\%$ , improving upon PT $(46.16\%)$ by 10.75 points, demonstrating its effectiveness in mathematical reasoning. (2) The benefits of MoE integration show method-dependent characteristics: in prompt tuning approaches, PT-MoE and SMoP demonstrate different changes over PT (by +10.75 and -5.11 points respectively); when applied to LoRA methods, HydraLoRA shows slightly performance decrease compared to LoRA. (3) LoRA-based methods demonstrate advantages in mathematical tasks compared to their performance in QA. While LoRA underperformed PT by 5.36 points in MRQA, it outperforms PT by 10.31 points in mathematical tasks, indicating task-specific strengths of different PEFT approaches. (4) PT-MoE demonstrates unique cross-task consistency: while prompt tuning methods excel in QA tasks and LoRA-based methods in mathematical tasks, PT-MoE achieves the highest average performance in both domains, indicating robust adaptability across different problem types. (5) While PEFT methods consistently underperform full fine-tuning, the performance gap is larger in mathematical tasks compared to QA tasks, with a wider performance range among different methods. Notably, PT-MoE achieves comparable or higher performance to full fine-tuning on specific datasets such as Division and MP500. (6) PT-MoE demonstrates superior parameter efficiency, achieving higher performance than LoRA while using only $75\%$ of its parameters (80k vs 106k), and outperforming HydraLoRA which uses 3.5 times more parameters. These findings highlight both the unique challenges of mathematical tasks and the robust adaptability of PT-MoE across different problem domains.
# 5.3 Case Study
To better understand the performance characteristics of PT-MoE, we present a detailed case study of polynomial addition in Table 5. In this example, the response of the base model suffers from
<table><tr><td># para.</td><td>FT 1.2B</td><td>LoRA 106k</td><td>HydraLoRA 278k</td><td>PT 81k</td><td>DPT 81k</td><td>SMoP 86k</td><td>ATTEMPT 90k</td><td>PT-MoE 80k</td></tr><tr><td colspan="9">In-domain</td></tr><tr><td>GSM8K</td><td>58.15</td><td>41.77</td><td>41.31</td><td>34.11</td><td>26.08</td><td>27.97</td><td>27.36</td><td>35.63</td></tr><tr><td colspan="9">Out-of-domain</td></tr><tr><td>Sub.</td><td>68.75</td><td>67.50</td><td>57.50</td><td>41.87</td><td>43.12</td><td>38.12</td><td>40.00</td><td>55.62</td></tr><tr><td>Add.</td><td>64.40</td><td>61.01</td><td>62.71</td><td>50.84</td><td>35.59</td><td>35.59</td><td>35.59</td><td>55.93</td></tr><tr><td>Div.</td><td>62.50</td><td>52.08</td><td>52.08</td><td>66.66</td><td>64.58</td><td>33.33</td><td>37.50</td><td>79.16</td></tr><tr><td>Multi.</td><td>48.48</td><td>33.33</td><td>39.39</td><td>33.33</td><td>27.27</td><td>33.33</td><td>27.27</td><td>36.36</td></tr><tr><td>SVAMP</td><td>61.03</td><td>53.48</td><td>52.92</td><td>48.18</td><td>42.64</td><td>35.09</td><td>35.09</td><td>56.77</td></tr><tr><td>ASDIV</td><td>86.04</td><td>73.42</td><td>74.08</td><td>60.13</td><td>56.14</td><td>49.50</td><td>24.91</td><td>77.74</td></tr><tr><td>MAWPS</td><td>82.53</td><td>70.70</td><td>76.05</td><td>57.18</td><td>43.09</td><td>65.91</td><td>49.01</td><td>71.83</td></tr><tr><td>MP500</td><td>30.60</td><td>43.00</td><td>33.40</td><td>31.20</td><td>18.20</td><td>26.80</td><td>14.60</td><td>42.60</td></tr><tr><td>Avg.</td><td>63.67</td><td>56.47</td><td>55.55</td><td>46.16</td><td>37.23</td><td>41.05</td><td>30.19</td><td>56.91</td></tr></table>
Table 4: Accuracy (%) on mathematical problem-solving tasks with the number of trainable parameters shown in the second row. The first four out-of-domain datasets are from the SVAMP dataset: Sub. (Subtraction), Add. (Addition), Div. (Common-Division), and Multi. (Multiplication). MP500 denotes the first 500 questions from MATH_PROBLEMS.
<table><tr><td colspan="3">Question: Let f(y) = y4-3y3+y-3 and g(y) = y3+7y2-2. Find f(y) + g(y). Write your answer as a polynomial with terms of decreasing degree. Standard Answer: y4-2y3+7y2+y-5</td></tr><tr><td>Original:</td><td>Prompt Tuning:</td><td>PT-MoE:</td></tr><tr><td>## Step 1: Identify the polynomials f(y) and g(y) The polynomial f(y) is given as f(y) = y4-3y3+y-3 and the polynomial g(y) is given as g(y) = y3+7y2-2.</td><td>## Step 1: To find the sum of the two polynomials f(y) and g(y), we need to add their corresponding terms.</td><td>## Step 1: Identify the polynomials f(y) and g(y) The given polynomials are f(y) = y4-3y3+y-3 and g(y) = y3+7y2-2.</td></tr><tr><td>## Step 2: Add the polynomials f(y) and g(y) To find the sum of f(y) and g(y), we need to add the corresponding terms of each polynomial.</td><td>## Step 2: The polynomial f(y) = y4-3y3+y-3 has terms of degree 4, 3, 2, and 1, while the polynomial g(y) = y3+7y2-2 has terms of degree 3, 2, and 1.</td><td>## Step 2: Add the polynomials f(y) and g(y) To find f(y) + g(y), we need to add the corresponding terms of the two polynomials.</td></tr><tr><td>## Step 3: Perform the addition f(y) + g(y) = (y4-3y3+y-3) + (y3+7y2-2)</td><td>## Step 3: When we add these two polynomials, we need to combine like terms, which means adding the coefficients of terms with the same degree.</td><td>## Step 3: Perform the addition f(y) + g(y) = (y4-3y3+y-3) + (y3+7y2-2)</td></tr><tr><td>## Step 4: Combine like terms Combine the terms with the same degree to simplify the expression.</td><td>## Step 4: The terms with degree 4 are y4 and y4, so their sum is 2y4.</td><td>## Step 4: Combine like terms Combine the terms with the same degree of y: y4+(y3-3y3)+(y3+7y2)+(y-3)-2</td></tr><tr><td>## Step 5: Simplify the expression f(y) + g(y) = y4-3y3+y3+7y2-2-3</td><td>## Step 5: The terms with degree 3 are -3y3 and -3y3, so their sum is -6y3.</td><td>## Step 5: Simplify the expression Simplify the expression by combining the coefficients of like terms: y4-2y3+7y2+y-5</td></tr><tr><td>## Step 6: Combine like terms Combine the terms with the same degree.</td><td>## Step 6: The terms with degree 2 are y and 7y2, so their sum is 7y2.</td><td>## Step 6: Write the final expression The expression f(y) + g(y) is y4-2y3+7y2+y-5.</td></tr><tr><td>## Step 7: Simplify the expression f(y) + g(y) = y4-2y3+7y2-2</td><td>## Step 7: The terms with degree 1 are 1 and -2, so their sum is -1.</td><td>## Step 7: The terms with degree 1 are 1 and -2, so their sum is -1.</td></tr><tr><td>## Step 8: Write the final answer The final answer is: y4-2y3+7y2-2</td><td>## Step 8: Therefore, the sum of the two polynomials f(y) and g(y) is 2y4-6y3+7y2-1.</td><td>## Note: y is the variable, and the answer is y4-2y3+7y2+y-5.</td></tr><tr><td></td><td>## Step 9: The answer is 2y4-6y3+7y2-1.</td><td></td></tr></table>
Table 5: A case study comparing three solution approaches (Original, Prompt Tuning, and PT-MoE) for a polynomial addition problem. Errors in the outputs are highlighted in red (incorrect terms), orange (missing terms), and blue (hallucinated terms).
information loss, specifically omitting the linear term during simplification steps, leading to an incorrect final result. The conventional prompt tuning approach exhibits hallucinations and conceptual errors, particularly in degree identification and term combination, resulting in spurious terms like $2y^4$ and $-6y^3$ . PT-MoE maintains information integrity throughout the solution process and avoids hallucinations, ultimately producing the correct polynomial expression. Notably, PT-MoE achieves this with a more concise solution structure, demonstrating efficient problem-solving steps while maintaining accuracy.
# 5.4 Ablation Studies
To systematically evaluate the design choices in PT-MoE, we conduct ablation studies on five influencing variables: soft prompt length, trainable parameters, number of experts, routing mechanisms, and model size. For each experiment, we keep other variables fixed at their default values (soft prompt length=40, trainable parameters≈80K, number of experts=2, probationary-selective routing, 1B base model) while varying the target component to isolate its influences on model performance.
Soft prompt length. We evaluate prompt lengths ranging from 20 to 80 tokens (Figure 3 Left). Three consistent observations emerge: (1) In-domain performance exceeds out-of-domain across all lengths, maintaining a $5 - 6\%$ F1 score margin; (2) Both domains achieve optimal performance at 40 tokens, with peak F1 scores of $60.66\%$ and $55.28\%$ respectively; and (3) Performance in both domains follows a similar trajectory, improving up to 40 tokens then declining. These findings
 Figure 3: Ablation studies on key components of PT-MoE, showing the influences of (Left) prompt length, (Center left) number of experts, (Center right) trainable parameters, and (Right) routing mechanisms ((N)S: (Non-)Selective, (N)P: (Non-)Probationary) on in-domain (ID) and out-of-domain (OOD) performance.



indicate that the optimal prompt length is domain-agnostic, though the absolute performance levels remain domain-dependent.
Number of experts. We investigate the influences of expert count by varying it from 1 to 8 (Figure 3 Center left). There are three key points: (1) Single-expert configuration yields the poorest performance $(58.90\%)$ and $52.64\%$ F1 for in-domain and out-of-domain), demonstrating the necessity of MoE; (2) Performance exhibits an initial increase followed by decrease, with in-domain peaking at $\mathrm{N} = 2$ $(60.66\%)$ F1) and out-of-domain at $\mathrm{N} = 4$ $(55.84\%)$ F1), suggesting different optimal routing capacities for each domain; (3) In-domain tasks consistently outperform out-of-domain scenarios by a $4 - 6\%$ F1 margin across all expert counts. These observations demonstrate that the optimal number of experts varies by domain type and highlight the importance of balancing expert specialization with routing complexity.
Trainable parameters. We vary the parameter count from 18K to 163K to analyze its influence on model performance (Figure 3 Center Right). Three key observations emerge: (1) Performance consistently improves with increasing parameters, from $57.51\%$ to $61.04\%$ F1 for in-domain and $53.96\%$ to $55.38\%$ F1 for out-of-domain tasks, and notably maintains stability even at higher parameter counts, contrasting with conventional prompt tuning methods; (2) While both in-domain and out-of-domain tasks show positive scaling, they exhibit distinct parameter sensitivity behaviours, in-domain tasks demonstrate rapid improvement before 80K parameters, while out-of-domain tasks show accelerated growth in the 40K-80K range; (3) In-domain performance maintains a consistent advantage over out-of-domain tasks across all parameter settings, with F1 scores differing by approximately $4 - 6\%$ . These findings suggest that PT-MoE effectively leverages additional parameters to achieve continuous performance gains.
Routing mechanisms. We examine two key routing design choices (Figure 3 Right): selective routing, which activates only the highest-weighted expert versus non-selective routing that utilizes all experts with their respective weights, and probationary routing, which scales the output by the router's selection probability versus non-probationary routing that uses unscaled outputs. Our experiments reveal four key findings: (1) The combination of selective and probationary routing (S, P) consistently outperforms other configurations (NS, P and S, NP) across both in-domain (60.66% vs 59.24% and 58.78% F1) and out-of-domain tasks (55.28% vs 53.41% and 52.64% F1), suggesting the complementary benefits of focused expert utilization and confidence-based output scaling; (2) Probationary routing demonstrates superior performance over its non-probationary counterpart, indicating the value of incorporating router confidence in the final output; (3) Under probationary conditions, selective routing achieves 1.42% higher F1 score while reducing active parameters compared to non-selective routing, highlighting the effectiveness and efficiency of specialized expert knowledge; (4) All routing configurations maintain higher performance on in-domain tasks compared to out-of-domain scenarios, though the relative performance remains consistent across domains. These findings collectively demonstrate that the selective probationary routing mechanism achieves an optimal balance between model performance and computational efficiency.
Model size. We conduct additional experiments using a 3B version of the base model, comparing PT-MoE with PT and the MoE-integrated method, SMoP (Table 6). Three key findings emerge: (1) PT-MoE maintains its competitiveness at larger scales, achieving the highest average accuracy of $71.11\%$ , surpassing standard PT $(66.43\%)$ and SMoP $(69.61\%)$ . (2) SMoP shows scale-dependent behavior: while underperforming PT on the 1B model $(56.77\%$ vs $56.25\%)$ , it surpasses PT on the 3B model $(69.61\%$ vs $66.43\%)$ . (3) PT-MoE demonstrates robust performance by outperforming the baselines on three
out of five mathematical datasets. These findings collectively validate the scalability and stability of PT-MoE across different model sizes.
<table><tr><td></td><td>PT</td><td>SMoP</td><td>PT-MoE</td></tr><tr><td>GSM8K</td><td>56.70</td><td>61.78</td><td>59.74</td></tr><tr><td>SVAMP</td><td>69.36</td><td>74.69</td><td>72.81</td></tr><tr><td>ASDIV</td><td>76.41</td><td>80.06</td><td>81.39</td></tr><tr><td>MAWPS</td><td>70.70</td><td>70.70</td><td>78.02</td></tr><tr><td>MP500</td><td>59.00</td><td>60.80</td><td>63.60</td></tr><tr><td>Average</td><td>66.43</td><td>69.61</td><td>71.11</td></tr></table>
Table 6: Performance comparison (accuracy %) of standard and MoE-based prompt tuning methods on mathematical problem solving tasks using a 3B base model.
# 5.5 Efficiency Analysis
Results in Figure 4 demonstrate PT-MoE's efficiency across both computational and parametric dimensions. PT-MoE achieves the highest performance with only moderate training steps and minimal parameters (80k). In contrast, LoRA and HydraLoRA require more parameters and training steps to achieve comparable performance. Other prompt tuning methods such as PT, SMoP, and DPT converge fast but achieve lower performance, suggesting a potential trade-off between training efficiency and model effectiveness. This evidence validates that PT-MoE balances the computational cost, parameter efficiency, and model performance.
 Figure 4: Parameter and training efficiency comparison across different methods. The x-axis shows training steps for the highest performance after training parameter search, while the y-axis shows the average accuracy on math datasets. Circle sizes indicate the number of trainable parameters, with larger circles representing more parameters. Circle markers represent modular methods (PT-based) that preserve model architecture, while x markers indicate LoRA-based methods requiring model structure modifications. Though PT-MoE introduces a router, it's implemented as a shallow layer with negligible inference overhead compared to generation time.

# 6 Conclusions
This work introduces PT-MoE, a novel parameter-efficient framework that integrates matrix decomposition with MoE routing for prompt tuning. Our experiments across 16 datasets demonstrate that PT-MoE achieves state-of-the-art performance while maintaining parameter efficiency, outperforming existing methods in both QA and mathematical tasks. Through ablation studies, we identify optimal configurations for prompt length, expert count, and routing mechanisms, providing insights for future parameter-efficient tuning approaches.
Future directions include using different routers to manage different task, and extending PT-MoE to continual learning scenarios for efficient adaptation and knowledge transfer across tasks.
# References
[1] Akari Asai, Mohammadreza Salehi, Matthew Peters, and Hannaneh Hajishirzi. ATTEMPT: Parameter-efficient multi-task tuning via attentional mixtures of soft prompts. In Yoav Goldberg, Zornitsa Kozareva, and Yue Zhang, editors, Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 6655-6672, Abu Dhabi, United Arab Emirates, December 2022. Association for Computational Linguistics. [2] Joon-Young Choi, Junho Kim, Jun-Hyung Park, Wing-Lam Mok, and SangKeun Lee. SMop: Towards efficient and effective prompt tuning with sparse mixture-of-prompts. In The 2023 Conference on Empirical Methods in Natural Language Processing, 2023. [3] 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. Training verifiers to solve math word problems, 2021. [4] Dheeru Dua, Yizhong Wang, Pradeep Dasigi, Gabriel Stanovsky, Sameer Singh, and Matt Gardner. DROP: A reading comprehension benchmark requiring discrete reasoning over paragraphs. In Jill Burstein, Christy Doran, and Thamar Solorio, editors, 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 2368-2378, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. [5] Matthew Dunn, Levent Sagun, Mike Higgins, V. Ugur Guney, Volkan Cirik, and Kyunghyun Cho. Searchqa: A new q&a dataset augmented with context from a search engine, 2017. [6] Adam Fisch, Alon Talmor, Robin Jia, Minjoon Seo, Eunsol Choi, and Danqi Chen. MRQA 2019 shared task: Evaluating generalization in reading comprehension. In Proceedings of 2nd Machine Reading for Reading Comprehension (MRQA) Workshop at EMNLP, 2019. [7] Aaron Grattafori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, ..., and Zhiyu Ma. The llama 3 herd of models, 2024. [8] Zeyu Han, Chao Gao, Jinyang Liu, Jeff Zhang, and Sai Qian Zhang. Parameter-efficient fin-tuning for large models: A comprehensive survey. Transactions on Machine Learning Research, 2024. [9] Mandar Joshi, Eunsol Choi, Daniel Weld, and Luke Zettlemoyer. TriviaQA: A large scale distantly supervised challenge dataset for reading comprehension. In Regina Barzilay and Min-Yen Kan, editors, Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1601–1611, Vancouver, Canada, July 2017. Association for Computational Linguistics. [10] Aniruddha Kembhavi, Minjoon Seo, Dustin Schwenk, Jonghyun Choi, Ali Farhadi, and Hananeh Hajishirzi. Are you smarter than a sixth grader? textbook question answering for multimodal machine comprehension. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5376-5384, 2017. [11] Rik Koncel-Kedzierski, Subhro Roy, Aida Amini, Nate Kushman, and Hannaneh Hajishirzi. MAWPS: A math word problem repository. In Kevin Knight, Ani Nenkova, and Owen Rambow, editors, Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 1152-1157, San Diego, California, June 2016. Association for Computational Linguistics. [12] Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, Kristina Toutanova, Llion Jones, Matthew Kelcey, Ming-Wei Chang, Andrew M. Dai, Jakob Uszkoreit, Quoc Le, and Slav Petrov. Natural questions: A benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7:452–466, 2019. [13] Guokun Lai, Qizhe Xie, Hanxiao Liu, Yiming Yang, and Eduard Hovy. RACE: Large-scale ReAding comprehension dataset from examinations. In Martha Palmer, Rebecca Hwa, and Sebastian Riedel, editors, Proceedings of the 2017 Conference on Empirical Methods in Natural
Language Processing, pages 785-794, Copenhagen, Denmark, September 2017. Association for Computational Linguistics. [14] Brian Lester, Rami Al-Rfou, and Noah Constant. The power of scale for parameter-efficient prompt tuning. In Marie-Francine Moens, Xuanjing Huang, Lucia Specia, and Scott Wen-tau Yih, editors, Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 3045-3059, Online and Punta Cana, Dominican Republic, November 2021. Association for Computational Linguistics. [15] Omer Levy, Minjoon Seo, Eunsol Choi, and Luke Zettlemoyer. Zero-shot relation extraction via reading comprehension. In Roger Levy and Lucia Specia, editors, Proceedings of the 21st Conference on Computational Natural Language Learning (CoNLL 2017), pages 333-342, Vancouver, Canada, August 2017. Association for Computational Linguistics. [16] Xiang Lisa Li and Percy Liang. Prefix-tuning: Optimizing continuous prompts for generation. In Chengqing Zong, Fei Xia, Wenjie Li, and Roberto Navigli, editors, 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 4582-4597, Online, August 2021. Association for Computational Linguistics. [17] Zongqian Li and Jacqueline M Cole. Auto-generating question-answering datasets with domain-specific knowledge for language models in scientific tasks. Digital Discovery, 4(4):998-1005, 2025. [18] Zongqian Li, Yinhong Liu, Yixuan Su, and Nigel Collier. Prompt compression for large language models: A survey. In Luis Chiruzzo, Alan Ritter, and Lu Wang, editors, Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 7182-7195, Albuquerque, New Mexico, April 2025. Association for Computational Linguistics. [19] Zongqian Li, Ehsan Shareghi, and Nigel Collier. ReasonGraph: Visualization of reasoning methods and extended inference paths. In Pushkar Mishra, Smaranda Muresan, and Tao Yu, editors, Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 3: System Demonstrations), pages 140-147, Vienna, Austria, July 2025. Association for Computational Linguistics. [20] Zongqian Li, Yixuan Su, and Nigel Collier. 500xCompressor: Generalized prompt compression for large language models. In Wanxiang Che, Joyce Nabende, Ekaterina Shutova, and Mohammad Taher Pilehvar, editors, Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 25081-25091, Vienna, Austria, July 2025. Association for Computational Linguistics. [21] Zongqian Li, Yixuan Su, and Nigel Collier. A survey on prompt tuning, 2025. [22] Zongqian Li, Yixuan Su, Han Zhou, Zihao Fu, and Nigel Collier. Flexi-loRA: Efficient loRA finetuning with input-adaptive dynamic ranks. In ES-FoMo III: 3rd Workshop on Efficient Systems for Foundation Models, 2025. [23] Xiao Liu, Kaixuan Ji, Yicheng Fu, Weng Tam, Zhengxiao Du, Zhilin Yang, and Jie Tang. P-tuning: Prompt tuning can be comparable to fine-tuning across scales and tasks. In Smaranda Muresan, Preslav Nakov, and Aline Villavicencio, editors, Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 61–68, Dublin, Ireland, May 2022. Association for Computational Linguistics. [24] Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian, Zhilin Yang, and Jie Tang. Gpt understands, too, 2023. [25] Fang Ma, Chen Zhang, Lei Ren, Jingang Wang, Qifan Wang, Wei Wu, Xiaojun Quan, and Dawei Song. XPrompt: Exploring the extreme of prompt tuning. In Yoav Goldberg, Zornitsa Kozareva, and Yue Zhang, editors, Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 11033-11047, Abu Dhabi, United Arab Emirates, December 2022. Association for Computational Linguistics.
[26] Shen-yun Miao, Chao-Chun Liang, and Keh-Yih Su. A diverse corpus for evaluating and developing English math word problem solvers. In Dan Jurafsky, Joyce Chai, Natalie Schluter, and Joel Tetreault, editors, Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 975–984, Online, July 2020. Association for Computational Linguistics. [27] Nebrelbug. Math problems. Hugging Face Hub, 2024. [28] Ioannis Partalas, Eric Gaussier, Axel-Cyrille Ngonga Ngomo, et al. Results of the first bioasq workshop. In BioASQ@ CLEF, pages 1-8, 2013. [29] Arkil Patel, Satwik Bhattachamishra, and Navin Goyal. Are NLP models really able to solve simple math word problems? In Kristina Toutanova, Anna Rumshisky, Luke Zettlemoyer, Dilek Hakkani-Tur, Iz Beltagy, Steven Bethard, Ryan Cotterell, Tanmoy Chakraborty, and Yichao Zhou, editors, Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 2080-2094, Online, June 2021. Association for Computational Linguistics. [30] Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuAD: 100,000+ questions for machine comprehension of text. In Jian Su, Kevin Duh, and Xavier Carreras, editors, Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 2383-2392, Austin, Texas, November 2016. Association for Computational Linguistics. [31] Anastasiia Razdaibiedina, Yuning Mao, Madian Khabsa, Mike Lewis, Rui Hou, Jimmy Ba, and Amjad Almahairi. Residual prompt tuning: improving prompt tuning with residual reparameterization. In Anna Rogers, Jordan Boyd-Graber, and Naoaki Okazaki, editors, Findings of the Association for Computational Linguistics: ACL 2023, pages 6740–6757, Toronto, Canada, July 2023. Association for Computational Linguistics. [32] Amrita Saha, Rahul Aralikatte, Mitesh M. Khapra, and Karthik Sankaranarayanan. DuoRC: Towards complex language understanding with paraphrased reading comprehension. In Iryna Gurevych and Yusuke Miyao, editors, Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1683–1693, Melbourne, Australia, July 2018. Association for Computational Linguistics. [33] Zhengxiang Shi and Aldo Lipani. DePT: Decomposed prompt tuning for parameter-efficient fine-tuning. In The Twelfth International Conference on Learning Representations, 2024. [34] Tu Vu, Brian Lester, Noah Constant, Rami Al-Rfou', and Daniel Cer. SPoT: Better frozen model adaptation through soft prompt transfer. In Smaranda Muresan, Preslav Nakov, and Aline Villavicencio, editors, Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 5039-5059, Dublin, Ireland, May 2022. Association for Computational Linguistics. [35] Chengyu Wang, Jianing Wang, Minghui Qiu, Jun Huang, and Ming Gao. TransPrompt: Towards an automatic transferable prompting framework for few-shot text classification. In Marie-Francine Moens, Xuanjing Huang, Lucia Specia, and Scott Wen-tau Yih, editors, Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 2792-2802, Online and Punta Cana, Dominican Republic, November 2021. Association for Computational Linguistics. [36] Zhen Wang, Rameswar Panda, Leonid Karlinsky, Rogerio Feris, Huan Sun, and Yoon Kim. Multitask prompt tuning enables parameter-efficient transfer learning. In The Eleventh International Conference on Learning Representations, 2023. [37] Yao Xiao, Lu Xu, Jiaxi Li, Wei Lu, and Xiaoli Li. Decomposed prompt tuning via low-rank reparameterization. In Houda Bouamor, Juan Pino, and Kalika Bali, editors, Findings of the Association for Computational Linguistics: EMNLP 2023, pages 13335-13347, Singapore, December 2023. Association for Computational Linguistics.
[38] Yige Xu, Zhiwei Zeng, and Zhiqi Shen. Efficient cross-task prompt tuning for few-shot conversational emotion recognition. In Houda Bouamor, Juan Pino, and Kalika Bali, editors, Findings of the Association for Computational Linguistics: EMNLP 2023, pages 11654-11666, Singapore, December 2023. Association for Computational Linguistics. [39] Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William Cohen, Ruslan Salakhutdinov, and Christopher D. Manning. HotpotQA: A dataset for diverse, explainable multi-hop question answering. In Ellen Riloff, David Chiang, Julia Hockenmaier, and Jun'ichi Tsujii, editors, Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 2369–2380, Brussels, Belgium, October-November 2018. Association for Computational Linguistics. [40] Longhui Yu, Weisen Jiang, Han Shi, Jincheng YU, Zhengying Liu, Yu Zhang, James Kwok, Zhenguo Li, Adrian Weller, and Weiyang Liu. Metamath: Bootstrap your own mathematical questions for large language models. In The Twelfth International Conference on Learning Representations, 2024. [41] 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. A survey of large language models, 2024.
# A Appendix
# A.1 Implementation Details
We provide implementation details, including training hyperparameters in Table 8, inference parameters in Table 7, and method-specific configurations in Tables 9 to facilitate reproducibility.
<table><tr><td></td><td>QA</td><td>Math</td></tr><tr><td>max_new_tokens</td><td>100</td><td>768</td></tr><tr><td>num_beams</td><td>1</td><td>1</td></tr><tr><td>do_sample</td><td>False</td><td>False</td></tr><tr><td>temperature</td><td>1.0</td><td>1.0</td></tr><tr><td>top_p</td><td>1.0</td><td>1.0</td></tr><tr><td>pad_token_id</td><td>pad_token_id</td><td>pad_token_id</td></tr><tr><td>eos_token_id</td><td>eos_token_id</td><td>eos_token_id</td></tr><tr><td>early_stopping</td><td>True</td><td>True</td></tr></table>
Table 7: Inference parameters for QA and mathematical tasks.
<table><tr><td></td><td>QA</td><td>Math</td></tr><tr><td rowspan="2">Train steps</td><td>{500, 1000, 1500} for PT-based methods</td><td>{500, 1000, 1500}</td></tr><tr><td>{200, 600, 1000} for LoRA-based methods</td><td></td></tr><tr><td>Optimizer</td><td>AdamW</td><td>AdamW</td></tr><tr><td>Max length</td><td>512</td><td>768</td></tr><tr><td>warmup_steps</td><td>500</td><td>500</td></tr><tr><td>learning_rate</td><td>2e-5</td><td>2e-5</td></tr><tr><td>per_device_train_batch_size</td><td>32</td><td>16</td></tr><tr><td>lr_scheduler_type</td><td>constant_with_warmup</td><td>constant_with_warmup</td></tr><tr><td>gradient Accumulation_steps</td><td>2</td><td>2</td></tr></table>
Table 8: Training hyperparameters for QA and mathematical tasks. $\{\}$ means parameter search.
<table><tr><td>Method</td><td>Details</td></tr><tr><td>LoRA</td><td>r=1; lora_alpha=16; target Modules=["q_proj", "v_proj"]; lora_dropout=0; bias="none"; task_type=TaskType.CAUSAL_LM</td></tr><tr><td>HydraLoRA</td><td>r=1; alpha=16; target Modules=["q_proj", "v_proj"]; dropout=0.0; num_b_matrices=2; Router: nnSequential(nn.Linear(input_dim, num_b_matrices)); Initialization: A: nn.init.kaiming.uniform_, a=math.sqrt(5)), B: nn.init.zeros()</td></tr><tr><td>PT</td><td>Soft prompt length: 40; Initialization: Specific words</td></tr><tr><td>DPT</td><td>Soft prompt length: 40; low_rank_dim = 39; Initialization: Specific words; Decomposition method: SVD</td></tr><tr><td>SMoP</td><td>Total soft prompt length: 40; Number of experts: 2; Initialization: Specific words; Noise: *(1+torchRAND_like)*0.01)</td></tr><tr><td>ATTEMPT</td><td>Total soft prompt length: 40; Number of experts: 2; Encoder: nn.Linear(embedding_dim, projection_dim=1), nn.Linear(projection_dim=1, embedding_dim), nn.layersNorm(embedding_dim); Initialization: Specific words</td></tr><tr><td>PT-MoE</td><td>Soft prompt length: 40; Number of experts: 2; Rank: 36; Router: nn.Linear(embedding_dim, num_prompts); Noise: *(1+torch.randint(*0.01)</td></tr></table>
Table 9: Method configurations for various PEFT methods.
Prompt structure for MRQA:
<|start_header_id|>user<|end_header_id|>\n\nExtract the exact text span from the given context that directly answers the question, without modifying or combining multiple parts of the text.\nContext:{}\nQuestion:{}<eot_id|><|start_header_id|>assistant<|end_header_id|>\n\nAnswer:
Prompt structure for Math datasets:
<|start_header_id|>user<|end_header_id|>n\nSolve the question and your response should end with \\"The answer is: [answer]\".\\n?Question: \} ${<\text{eot\_id}}$ $||><\text{start\_header\_id}>$ assistant $<\text{end\_header\_id}>$ \\n?Answer:
Texts used to initialize soft prompt for finetuning on MRQA:
```txt"Read the following context and answer the question." "Extract the answer from the context." "The answer is a span of the context." "Answer the question directly." "Use the original words in the context." "Do not introduce any words not present in the context."```
Texts used to initialize soft prompt for finetuning on Math datasets:
```txt( "Read the question carefully and make sure you understand it before beginning." "Pay close attention to the details and requirements of the question. " Answer the question, ensuring your response is relevant to what is asked . " "Ensure your answer is both accurate and correct."```
# A.2 Environment
```txtpython $= = 3$ .11.5 torch $= = 2$ .3.1+cu118 transformers $= = 4$ .46.0 datasets $= = 2$ .18.0 huggingfacehub $= = 0$ .24.2 deepspeed $= = 0$ .15.3 wandb $= = 0$ .14.2 numpy $= = 1$ .23.5 tqdm $= = 4$ .66.4```
# NeurIPS Paper Checklist
# 1. Claims
Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope?
Answer: [Yes]
Justification: The paper shows relevant content (Section Abstract, Introduction).
Guidelines:
- The answer NA means that the abstract and introduction do not include the claims made in the paper. - The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. - The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. - It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper.
# 2. Limitations
Question: Does the paper discuss the limitations of the work performed by the authors?
Answer: [Yes]
Justification: The paper discusses the limitations of the work (Section Conclusions).
Guidelines:
- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. - The authors are encouraged to create a separate "Limitations" section in their paper. - The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. - The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. - The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. - The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. - If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. - While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations.
# 3. Theory assumptions and proofs
Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof?
Answer: [Yes]
Justification: The paper provides related content (Section Methods).
# Guidelines:
- The answer NA means that the paper does not include theoretical results. - All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. - All assumptions should be clearly stated or referenced in the statement of any theorems. - The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. - Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. - Theorems and Lemmas that the proof relies upon should be properly referenced.
# 4. Experimental result reproducibility
Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)?
# Answer: [Yes]
Justification: The paper provides all the information (Section Methods, Experimental Design, Appendix).
# Guidelines:
- The answer NA means that the paper does not include experiments. - If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. - If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. - Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. - While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example (a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. (b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. (c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). (d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results.
# 5. Open access to data and code
Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material?
# Answer: [Yes]
Justification: The paper provides related codes (Section Appendix and supplemental material).
# Guidelines:
- The answer NA means that paper does not include experiments requiring code. - Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. - While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). - The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. - The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. - The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. - At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). - Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted.
# 6. Experimental setting/details
Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results?
# Answer: [Yes]
Justification: The paper provides related details (Section Methods, Experimental Design, Appendix).
# Guidelines:
- The answer NA means that the paper does not include experiments. - The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. - The full details can be provided either with the code, in appendix, or as supplemental material.
# 7. Experiment statistical significance
Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments?
# Answer: [Yes]
Justification: The paper provides relevant information (Section Results, Appendix).
# Guidelines:
- The answer NA means that the paper does not include experiments. - The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. - The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). - The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) - The assumptions made should be given (e.g., Normally distributed errors).
- It should be clear whether the error bar is the standard deviation or the standard error of the mean. - It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. - For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). - If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text.
# 8. Experiments compute resources
Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments?
Answer: [Yes]
Justification: The paper provides relevant information (Section Appendix).
# Guidelines:
- The answer NA means that the paper does not include experiments. - The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. - The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. - The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper).
# 9. Code of ethics
Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines?
Answer: [Yes]
Justification: The paper follows code of ethics.
# Guidelines:
- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. - If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. - The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction).
# 10. Broader impacts
Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed?
Answer: [NA]
Justification: No societal impact.
# Guidelines:
- The answer NA means that there is no societal impact of the work performed. - If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. - Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations.
- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. - The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. - If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML).
# 11. Safeguards
Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)?
Answer: [NA]
Justification: No such risks.
Guidelines:
- The answer NA means that the paper poses no such risks. - Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. - Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. - We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort.
# 12. Licenses for existing assets
Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?
Answer: [Yes]
Justification: The paper follows the instructions (Section Appendix, supplemental material).
Guidelines:
- The answer NA means that the paper does not use existing assets. - The authors should cite the original paper that produced the code package or dataset. - The authors should state which version of the asset is used and, if possible, include a URL. - The name of the license (e.g., CC-BY 4.0) should be included for each asset. - For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. - If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. - For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided.
- If this information is not available online, the authors are encouraged to reach out to the asset's creators.
# 13. New assets
Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets?
Answer: [Yes]
Justification: The paper follows the instructions (Section Appendix, supplemental material).
Guidelines:
- The answer NA means that the paper does not release new assets. - Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. - The paper should discuss whether and how consent was obtained from people whose asset is used. - At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file.
# 14. Crowdsourcing and research with human subjects
Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)?
Answer: [NA]
Justification: The paper does not involve content with human subjects.
Guidelines:
- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. - Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. - According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector.
# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects
Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained?
Answer: [NA]
Justification: The paper does not involve content with human subjects.
Guidelines:
- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. - Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. - We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. - For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review.
# 16. Declaration of LLM usage
Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required.
# Answer: [NA]
Justification: The paper follows the instructions (Section Appendix).
# Guidelines:
- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. - Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described.123version https://git-lfs.github.com/spec/v1oid sha256:e6f0c8b9fc94341fb8a7886f4c94bbf05d5b2d4a9cbaab64f5c4983e6023eeeasize 644294123version https://git-lfs.github.com/spec/v1oid sha256:3086465499f5505d8fcb93cf58569d1c97ba50a31d5902c6b4b38519b9a4d777size 1069173123version https://git-lfs.github.com/spec/v1oid sha256:97b2cb73e63cfe630b745ce0f9dcbe6062cc0fbdd125002b33b5e640df68a4f4size 2903684123version https://git-lfs.github.com/spec/v1oid sha256:3237c852a766f648546870dd808b9c865d2d489c82675fbfc3436c640626e1b1size 777326123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690# PaTH Attention: Position Encoding via Accumulating Householder Transformations
Songlin Yang $^{1}$ Yikang Shen $^{2}$ Kaiyue Wen $^{3}$ Shawn Tan $^{2}$ Mayank Mishra $^{2}$ Liliang Ren $^{4}$ Rameswar Panda $^{2}$ Yoon Kim $^{1}$
<sup>1</sup>Massachusetts Institute of Technology <sup>2</sup>MIT-IBM Watson AI Lab
3Stanford University 4Microsoft
yangsl66@mit.edu
# Abstract
The attention mechanism is a core primitive in modern large language models (LLMs) and AI more broadly. Since attention by itself is permutation-invariant, position encoding is essential for modeling structured domains such as language. Rotary position encoding (RoPE) has emerged as the de facto standard approach for position encoding and is part of many modern LLMs. However, in RoPE the key/query transformation between two elements in a sequence is only a function of their relative position and otherwise independent of the actual input. This limits the expressivity of RoPE-based transformers. This paper describes PaTH, a flexible data-dependent position encoding scheme based on accumulated products of Householder(like) transformations, where each transformation is data-dependent, i.e., a function of the input. We derive an efficient parallel algorithm for training through exploiting a compact representation of products of Householder matrices, and implement a FlashAttention-style blockwise algorithm. Across both targeted synthetic benchmarks and moderate-scale real-world language modeling experiments, we find that PaTH improves upon RoPE and other recent baselines. Finally, we show that we can convert pretrained RoPE transformers into PaTH with continued pretraining.
# 1 Introduction
Attention mechanisms form the backbone of transformer architectures that power contemporary AI systems. Attention is inherently permutation-invariant, and thus encoding positional information into attention is important for effective sequence modeling. Since the original sinusoidal embeddings [79], various position encoding schemes have been proposed over the years [16, 63, 28, 25, 45, 58, 74, inter alia]; see Dufter et al. [17] for a comprehensive survey. Among these, rotary position embedding [RoPE; 74] has emerged as the de facto standard, adopted in most recent state-of-the-art LLMs.
RoPE works by transforming the key $(\mathbf{k}_j)$ and query $(\mathbf{q}_i)$ embeddings through a rotation matrix $\mathbf{R}$ whose rotation angle is a function of the difference in positions, resulting in the bilinear form $\mathbf{q}_i^\top \mathbf{R}^{i - j}\mathbf{k}_j$ for the attention logits. The rotation matrix $\mathbf{R}$ itself is a block-diagonal matrix composed of two-by-two rotation matrices, which enables efficient computation. However, the rotation matrix in RoPE is data-independent and only a function of the relative position (i.e., $\mathbf{R}$ applied $i - j$ times), which limits its expressivity; indeed, recent work [7] demonstrates that RoPE-based transformers are still computationally constrained to the TC $^0$ complexity class, the complexity class of ordinary transformers with absolute position embeddings [49]. As a potential consequence, RoPE-based transformers have been empirically found to have difficulty with simple synthetic tasks that require a form of sequential reasoning, such as flip-flop language modeling [41] and certain state-tracking tasks [51]. Insofar as such simple sequential reasoning underlie real-world capabilities that we want
in our LLMs, these failure modes highlight the need to design new primitives that can overcome these theoretical and empirical limitations of existing attention layers.
This work develops PaTH, a position encoding scheme with accumulated Householder transformations, targeting the above problem. In PaTH, the attention logit is still parameterized as a bilinear form $\mathbf{q}_i^\top \mathbf{H}_{ij}\mathbf{k}_j$ , but the matrix $\mathbf{H}_{ij} \in \mathbb{R}^{d \times d}$ is obtained via a cumulative product of data-dependent matrices along the path between positions $j$ and $i$ , where the matrices have Householder-like identity-plus-rank-one structure. Intuitively, this formulation captures the cumulative transformation between positions, enabling PaTH to dynamically adapt to input data and solve certain state-tracking problems. Indeed, we show that a constant-layer PaTH-based transformer can solve an $\mathsf{NC}^1$ -complete problem under $\mathsf{AC}^0$ reductions, i.e., PaTH can extend transformers beyond the $\mathsf{TC}^0$ complexity class (assuming $\mathsf{TC}^0 \neq \mathsf{NC}^1$ ).
To scale up PaTH Attention, we develop a FlashAttention-like algorithm [14] for hardware-efficient parallel training that leverages a compact representation of products of Householder matrices [5, 27]. Empirical results show that PaTH-based models can solve challenging synthetic state-tracking tasks where RoPE-based Transformers struggle. On moderate-scale language modeling with 760M-parameter Transformers, PaTH outperforms both RoPE and the Forgetting Transformer [39], which modulates attention logits via a data-dependent additive term. Combining PaTH with the Forgetting Transformer yields further gains, and the resulting models generalize well beyond the training sequence length. Finally, we show that we can convert pretrained RoPE transformers into PaTH with continued pretraining.
# 2 PaTH Attention
PaTH employs a dynamic data-dependent transition matrix—in particular identity-plus-rank-one Householder-like transformations—for computing the bilinear attention logits, unlike RoPE which applies a fixed transformation at each time step.
# 2.1 Generalizing RoPE with Multiplicative Position Encodings
Traditional additive position encodings, such as sinusoidal embeddings [79] or ALiBi [58], represent positions as vectors or matrices summed directly with token embeddings or attention logits. RoPE instead encodes relative positions multiplicatively rather than additively by directly modulating the key/query vectors via position-dependent transformations. The class of multiplicative positional encodings can more generally be defined as $\mathbf{A}_{ij}$ such that,
$$\mathbf {A} _ {i j} \propto \exp \Big (\mathbf {k} _ {j} ^ {\top} \Big (\prod_ {s = j + 1} ^ {i} \mathbf {H} _ {s} \Big) \mathbf {q} _ {i} \Big),$$
where $i$ and $j$ are positions of the query and key, and $\mathbf{H}_s\in \mathbb{R}^{d\times d}$ is a transition matrix. RoPE is thus a special case of the above with a static transition matrix $\mathbf{H}_s = \mathbf{R}$ , where $\mathbf{R}$ is a block diagonal with $d / 2$ independent 2-dimensional rotation blocks, each of which has different rotation angles. This static rotation structure allows for efficient computation of RoPE-based attention in practice.
# 2.2 Data-dependent Multiplicative Position Encodings with PaTH
PaTH employs a data-dependent Householder-like $^{1}$ matrix with identity-plus rank-one-structure:
$$\mathbf {H} _ {t} = \mathbf {I} - \beta_ {t} \mathbf {w} _ {t} \mathbf {w} _ {t} ^ {T},$$
where $\mathbf{w}_t\in \mathbb{R}^d$ and $\beta_{t} = 2\times \mathrm{sigmoid}(\mathbf{u}^{\top}\mathbf{x}_{t} + b)\in (0,2)$ are functions of the current input $\mathbf{x}_t$ . We motivate this parameterization from the perspective of generalizing expressive linear RNNs.
Concretely, consider linear attention transformers with matrix-valued hidden states $\mathbf{S}_t\in \mathbb{R}^{d\times d}$ with the above Householder-like transition function, where the output $(\mathbf{o}_t)$ given the key $(\mathbf{k}_t)$ , query $(\mathbf{q}_t)$ , value $(\mathbf{v}_t)$ vectors is given by
$$\mathbf {S} _ {t} = \mathbf {S} _ {t - 1} \mathbf {H} _ {t} + \mathbf {v} _ {t} \mathbf {k} _ {t} ^ {\top}, \quad \mathbf {o} _ {t} = \mathbf {S} _ {t} \mathbf {q} _ {t}.$$
Recent works have shown that such linear RNNs empirically achieve good performance on language modeling [66, 81, 85]. And despite being more efficient than softmax attention, these models have been shown to be (in a certain way) more expressive than transformers [22, 71], in particular being able to solve a class of state tracking problems that cannot be solved by ordinary transformers. Now consider unrolling the recurrence in the RNN, and compare it against the PaTH-attention output,
$$\mathrm {R N N :} \mathbf {o} _ {t} = \sum_ {j = 1} ^ {t} \mathbf {v} _ {j} \left(\mathbf {k} _ {j} ^ {\top} \left(\prod_ {s = j + 1} ^ {t} \mathbf {H} _ {s}\right) \mathbf {q} _ {t}\right), \mathrm {P a T H :} \mathbf {o} _ {t} = \frac {1}{Z _ {t}} \sum_ {j = 1} ^ {t} \mathbf {v} _ {j} \exp \left(\mathbf {k} _ {j} ^ {\top} \left(\prod_ {s = j + 1} ^ {t} \mathbf {H} _ {s}\right) \mathbf {q} _ {t}\right),$$
where $Z_{t} = \sum_{j=1}^{t} \exp \left( \mathbf{k}_{j}^{\top} \left( \prod_{s=j+1}^{t} \mathbf{H}_{s} \right) \mathbf{q}_{t} \right)$ is the normalizer. This view shows that PaTH is closely related to such expressive linear RNNs, and we thus expect PaTH-based transformers to inherit their increased expressivity. Indeed, the following theorem shows that PaTH can extend transformers beyond the TC $^0$ complexity class.
Theorem 2.1. A one-layer PaTH transformer with two attention heads and log $n$ precision can solve an $\mathsf{NC}^1$ -complete problem under $\mathsf{AC}^0$ -reductions.
The proof, given in appendix A, is a straightforward adaptation of Theorem 2 from Peng et al. [56], which showed the that linear RNNs with a similar data-dependent transition matrix can solve an $\mathsf{NC}^1$ -complete problem. However, such RNNs still have theoretical limitations that attention does not have, for example in its (in)ability to perform associative recall over a given context of arbitrary length [2]. In contrast, PaTH can capture the benefits of both softmax attention (associative recall) and expressive linear RNNs (state tracking).
Extension: PaTH-FoX. PaTH simply provides a more expressive way to encode unnormalized attention logits and is thus compatible with other recently proposed modifications to softmax attention such as Stick-Breaking Attention [75], Selective Attention [35], and Forgetting Transformer [FoX; 39]. As a case study we experiment with combining PaTH with FoX, which additively modifies the attention logits in a data-dependent manner. We show that this combined strategy leads to improved performance on some downstream tasks, especially in length extrapolation.
Concretely, FoX [39] modifies the attention via data-dependent "forget" gates $f_{s} \in (0,1)$
$$\mathbf {A} _ {i j} \propto \exp \left(\mathbf {k} _ {j} ^ {\top} \mathbf {q} _ {i} + \sum_ {s = j + 1} ^ {i} \log f _ {s}\right) = \left(\prod_ {s = j + 1} ^ {i} f _ {s}\right) \exp \left(\mathbf {k} _ {j} ^ {\top} \mathbf {q} _ {i}\right),$$
where $f_{s} = \mathrm{sigmoid}(\mathbf{u}_{f}^{\top}\mathbf{x}_{s} + b_{f})$ . Similar to how PaTH can be seen as a softmax version of DeltaNet-style linear RNNs [65, 84], FoX can be seen as softmax version of GLA-/Mamba2-style linear RNNs [83, 13].<sup>3</sup> We can combine the two mechanisms to arrive at PaTH-FoX attention:
$$\mathbf {A} _ {i j} \propto \left(\prod_ {s = j + 1} ^ {i} f _ {s}\right) \exp \left(\mathbf {k} _ {j} ^ {\top} \left(\prod_ {s = j + 1} ^ {i} \mathbf {H} _ {s}\right) \mathbf {q} _ {i}\right).$$
We found this variant to be quite effective on language modeling, reminiscent of the improvements observed by combining DeltaNet with Mamba2 [Gated DeltaNet; 85] in the linear attention case.
# 3 Efficient Training and Inference for PaTH Attention
Efficient kernels for attention [14, 12, 68] work by operating on subblocks of query and key matrices to avoid materialization of the full attention matrix in slower DRAM. Unlike in RoPE however, the cumulative products $\prod_{s}\mathbf{H}_{s}$ in PaTH are a function of the input and thus it is not clear whether PaTH-attention computations can similarly be decomposed into computations over subblocks. We now describe how the cumulative product of Householder $^{4}$ transformations can be efficiently computed using a compact representation of Householder products [27] and applied in a blockwise fashion [78, 47, 48, 84] to derive a FlashAttention-like algorithm that integrates blockwise Householder transformations with blockwise attention computations.
# 3.1 Background & Notation
We denote the block size along the sequence length dimension as $B$ and define subblocks using the notation $\mathbf{A}_{[i],[j]} := \mathbf{A}_{iB:(i+1)B,jB:(j+1)B} \in \mathbb{R}^{B \times B}$ . This notation extends analogously to the other blocks $\mathbf{X}_{[i]} := \mathbf{X}_{iB:(i+1)B,:} \in \mathbb{R}^{B \times d}$ for $\mathbf{X} \in \{\mathbf{Q},\mathbf{K},\mathbf{V},\mathbf{W},\mathbf{O}\}$ , where (for example) $\mathbf{W}_{[i]}$ is obtained from the vectors $\mathbf{w}_{iB},\ldots,\mathbf{w}_{(i+1)B}$ in the Householder transformations.
FlashAttention. FlashAttention uses the online softmax trick [52, 61] to compute the output matrix $\mathbf{O}$ block by block. For each query block $i$ it sequentially process the key/value blocks $j$ from 0 to $i$ , computing and accumulating the output as follows:
$$\mathbf {A} _ {[ i ], [ j ]} \propto \left\{ \begin{array}{l l} \exp \big (\mathbf {Q} _ {[ i ]} \mathbf {K} _ {[ j ]} ^ {\top} \big), & \text {i f} i < j \\ \exp \big (\operatorname {l o w e r} (\mathbf {Q} _ {[ i ]} \mathbf {K} _ {[ i ]} ^ {\top}) \big), & \text {i f} i = j \end{array} \right. \quad \in \mathbb {R} ^ {B \times B}, \qquad \mathbf {O} _ {[ i ]} = \sum_ {j = 0} ^ {i} \mathbf {A} _ {[ i ], [ j ]} \mathbf {V} _ {[ j ]} \in \mathbb {R} ^ {B \times d}.$$
The attention submatrices $\mathbf{A}_{[i],[j]}$ are computed and processed entirely within SRAM, eliminating the need to write them to slower DRAM, which greatly reduces I/O costs and results in wallclock-speedups. Our algorithm also performs computations of the output block by block, but takes into account the additional contributions from the data-dependent Householder transformations.
UT transform for products of Householder matrices. A major challenge in computing PaTH attention lies in handling products of Householder matrices. We adopt the UT transform [27] to address this efficiently. For a sequence of $L$ transformations $\mathbf{H}_t = \mathbf{I} - \beta_t\mathbf{w}_t\mathbf{w}_t^\top$ , their product can be compactly expressed as:
$$\mathbf {P} := \prod_ {t = 0} ^ {L - 1} \mathbf {H} _ {t} = \mathbf {I} - \mathbf {W} ^ {\top} \mathbf {T} ^ {- 1} \mathbf {W} \quad \in \mathbb {R} ^ {d \times d},$$
$$\text {w h e r e} \quad \mathbf {T} ^ {- 1} := \left(\mathbf {I} + \operatorname {s t r i c t L o w e r} (\mathbf {D} \mathbf {W} \mathbf {W} ^ {\top})\right) ^ {- 1} \mathbf {D} \qquad \qquad \in \mathbb {R} ^ {L \times L}.$$
Here, $\mathbf{W} = [\mathbf{w}_0,\dots ,\mathbf{w}_{L - 1}]^\top \in \mathbb{R}^{L\times d}$ . $\mathbf{D} = \mathrm{diag}([\beta_0,\ldots ,\beta_{L - 1}])\in \mathbb{R}^{L\times L}$ . We abuse notation for $\mathbf{T}^{-1}$ here for incorporating $\mathbf{D}$ to avoid notational clutter. The UT representation is efficient on modern hardware due to its use of triangular solves and matrix products [78], and is often preferred over alternatives such as the WY transform [5, 67].
# 3.2 Full Matrix Form of PaTH Attention
Recall that in PaTH attention, the attention score is given by $\mathbf{A}_{ij} \propto \exp \left(\mathbf{k}_j^\top \left(\prod_{t=j+1}^i \mathbf{H}_t\right) \mathbf{q}_i\right)$ , which involves a cumulative product over arbitrary intervals $[j+1, i]$ . A naive implementation would require recomputing the UT transform for each such interval, which is computationally intractable. However, we show that it is possible to reuse the global matrix inverse $\mathbf{T}^{-1}$ and apply simple masking to efficiently extract the product over any subinterval.
To represent the product over an interval $\prod_{t=s_0}^{e_0} \mathbf{H}_t$ (with start index $s_0$ and end index $e_0$ ), we use the masked UT transform:
$$\prod_ {t = s _ {0}} ^ {e _ {0}} \mathbf {H} _ {t} = \mathbf {I} - (\mathbf {W} \odot \mathbf {M} _ {s _ {0}} ^ {L}) ^ {\top} \mathbf {T} ^ {- 1} (\mathbf {W} \odot \mathbf {M} _ {e _ {0}} ^ {R}),$$
where $\odot$ denotes element-wise multiplication. The binary masks $\mathbf{M}_{s_0}^L, \mathbf{M}_{e_0}^R \in \mathbb{R}^{L \times d}$ are defined entrywise as:
$$(\mathbf {M} _ {s _ {0}} ^ {L}) _ {k, c} = \left\{ \begin{array}{l l} 1 & \text {i f} k \geq s _ {0}, \\ 0 & \text {o t h e r w i s e}, \end{array} \right. (\mathbf {M} _ {e _ {0}} ^ {R}) _ {k, c} = \left\{ \begin{array}{l l} 1 & \text {i f} k \leq e _ {0}, \\ 0 & \text {o t h e r w i s e}. \end{array} \right.$$
Then, we have:
$$\widetilde {\mathbf {A}} _ {i j} = \mathbf {k} _ {j} ^ {\top} \left(\prod_ {t = j + 1} ^ {i} \mathbf {H} _ {t}\right) \mathbf {q} _ {i} = \mathbf {k} _ {j} ^ {\top} \mathbf {q} _ {i} - \mathbf {k} _ {j} ^ {\top} \left(\mathbf {W} \odot \mathbf {M} _ {j + 1} ^ {L}\right) ^ {\top} \mathbf {T} ^ {- 1} \left(\mathbf {W} \odot \mathbf {M} _ {i} ^ {R}\right) \mathbf {q} _ {i}$$
and equivalently, in matrix form:
$$\widetilde {\mathbf {A}} = \operatorname {l o w e r} \left(\mathbf {Q K} ^ {\top}\right) - \operatorname {l o w e r} \left(\mathbf {Q W} ^ {\top}\right) \mathbf {T} ^ {- 1} \text {s t r i c t L o w e r} \left(\mathbf {W K} ^ {\top}\right)$$
This decomposition enables efficient pairwise attention computation using shared UT structure and interval-specific masking. However, computing the global inverse $\mathbf{T}^{-1}$ incurs a prohibitive $\mathcal{O}(L^3)$ time complexity with respect to sequence length $L$ . In the following section, we introduce a blockwise algorithm that obtains the same result using only local inversions, thereby reducing the overall complexity to match that of standard attention mechanisms.
# 3.3 Efficient Training
To enable hardware-efficient (blockwise) training, cumulative Householder transformations must be pre-applied to the left and right boundaries of each block; otherwise, the token-specific nature of these transformations would render blockwise computation infeasible. To this end, we define boundary-adjusted query and key matrices as follows:
$$\left(\overline {{\mathbf {Q}}} _ {[ i ]}\right) _ {t} = \left(\prod_ {m = i B + 1} ^ {i B + t} \mathbf {H} _ {m}\right) \mathbf {q} _ {i B + t} = \mathbf {q} _ {i B + t} - \mathbf {W} _ {[ i ]} ^ {\top} \mathbf {T} _ {[ i ]} ^ {- 1} \left(\mathbf {W} _ {[ i ]} \odot \mathbf {M} _ {t} ^ {R}\right) \mathbf {q} _ {i B + t} \quad \in \mathbb {R} ^ {d},$$
$$(\overrightarrow {\mathbf {K}} _ {[ i ]}) _ {s} = \left(\prod_ {m = i B + s + 1} ^ {(i + 1) B} \mathbf {H} _ {m}\right) ^ {\top} \mathbf {k} _ {i B + s} = \mathbf {k} _ {i B + s} - \left(\mathbf {T} _ {[ i ]} ^ {- 1} \mathbf {W} _ {[ i ]}\right) ^ {\top} \left(\mathbf {W} _ {[ i ]} \odot \mathbf {M} _ {s} ^ {L}\right) \mathbf {k} _ {i B + s} \quad \in \mathbb {R} ^ {d},$$
a following the derivation in §3.2. In matrix form, these can be expressed as:
$$\stackrel {\leftarrow} {\mathbf {Q}} _ {[ i ]} = \mathbf {Q} _ {[ i ]} - \begin{array}{l l} \operatorname {l o w e r} (\mathbf {Q} _ {[ i ]} \mathbf {W} _ {[ i ]} ^ {\top}) & \mathbf {T} _ {[ i ]} ^ {- 1} \mathbf {W} _ {[ i ]} \end{array} \qquad \qquad \qquad \qquad \in \mathbb {R} ^ {B \times d},$$
$$\overrightarrow {\mathbf {K}} _ {[ i ]} = \mathbf {K} _ {[ i ]} - \left(\boxed {\mathbf {T} _ {[ i ]} ^ {- 1} \operatorname {s t r i c t L o w e r} (\mathbf {W} _ {[ i ]} \mathbf {K} _ {[ i ]} ^ {\top})}\right) ^ {\top} \mathbf {W} _ {[ i ]} \qquad \qquad \in \mathbb {R} ^ {B \times d}.$$
With these quantities, we express the attention block computation as:
$$\mathbf {A} _ {[ i ], [ j ]} \propto \left\{ \begin{array}{l l} \exp \left(\overleftarrow {\mathbf {Q}} _ {[ i ]} \left(\prod_ {m = j + 1} ^ {i - 1} \mathbf {P} _ {[ m ]}\right) ^ {\top} \overrightarrow {\mathbf {K}} _ {[ j ]} ^ {\top}\right), & \text {i f} i > j, \\ \exp \left(\mathbf {Q} _ {[ i ]} \mathbf {K} _ {[ i ]} ^ {\top} - \text {l o w e r} (\mathbf {Q} _ {[ i ]} \mathbf {W} _ {[ i ]} ^ {\top}) \quad \mathbf {T} _ {[ i ]} ^ {- 1} \text {s t r i c t L o w e r} (\mathbf {W} _ {[ i ]} \mathbf {K} _ {[ i ]} ^ {\top})\right), & \text {i f} i = j, \end{array} \right. \in \mathbb {R} ^ {B \times B},$$
where $\mathbf{P}_{[i]} := \prod_{j=1}^{B} \mathbf{H}_{iB+j} = \mathbf{W}_{[i]}^{\top} \mathbf{T}_{[i]}^{-1} \mathbf{W}_{[i]} \in \mathbb{R}^{d \times d}$ . Due to associativity, the cross-block term can be computed incrementally: $\overleftarrow{\mathbf{Q}}_{[i]}\left(\prod_{m=j+1}^{i-1} \mathbf{P}_{[m]}\right)^{\top} \overrightarrow{\mathbf{K}}_{[j]} = (((\overleftarrow{\mathbf{Q}}_{[i]}\mathbf{P}_{[i-1]}^{\top}) \cdots) \mathbf{P}_{[j+1]}^{\top}) \overrightarrow{\mathbf{K}}_{[j]}$ .
We adapt the FlashAttention-style block processing framework to perform a right-to-left scan over key/value blocks, enabling this product accumulation in a streaming manner. Concretely the modified blockwise workflow for processing query block $i$ is as follows:
- Load $\overleftarrow{\mathbf{Q}}_{[i]}$ into SRAM. - For key/value blocks $j = i - 1,\ldots ,0$ (right-to-left scan): - Load $\vec{\mathbf{K}}_{[j]}$ , $\mathbf{V}_{[j]}$ , and $\mathbf{P}_{[j]}$ from HBM into SRAM. - Compute logits: $\widetilde{\mathbf{A}}_{[i],[j]} = \overleftarrow{\mathbf{Q}}_{[i]}\overrightarrow{\mathbf{K}}_{[j]}^{\top}$ . - Update online softmax statistics and accumulate output as in FlashAttention. Update query: $\overleftarrow{\mathbf{Q}}_{[i]}\gets \overleftarrow{\mathbf{Q}}_{[i]}\mathbf{P}_{[j]}^{\top}.$
- Normalize and store the output to HBM as in FlashAttention.
This design preserves the I/O efficiency of FlashAttention while incorporating PaTH's dynamic positional encoding via streaming cumulative products.
Complexity analyses. For each head, the attention computation between a pair of query and key blocks takes $\mathcal{O}(B^2 d + Bd^2)$ time- $\mathcal{O}(B^2 d)$ for computing attention scores and $\mathcal{O}(Bd^2)$ for
applying the transition on queries. Since there are $(L / B)^2$ such block pairs, the total attention cost is $\mathcal{O}(L^2 d + Ld^2 /B)$ . For preprocessing, computing the local Householder-based transformation for each query/key block involves an inversion step with cost $\mathcal{O}(B^3 +B^2 d)$ . With $L / B$ such blocks, the total preprocessing cost is $\mathcal{O}(LB^2 +L Bd)$ . When $B\approx d$ (which is often the case), the overall complexity is comparable to standard attention, with quadratic scaling in sequence length.
Speed Comparison. We implement the PaTH attention kernel in Triton [77] and benchmark its runtime on a single H100 GPU against FoX and standard RoPE attention under identical settings: batch size 32, 32 heads, head dimension 64, and varying sequence lengths. Results are shown in Figure 1. PaTH incurs a modest slowdown compared to RoPE, but outperforms FoX. Further speedups are expected from future kernel-level optimizations (e.g., via ThunderKittens [73]).
# 3.4 Efficient Inference
We can efficiently update historical keys in-place using the current timestep's transition matrix:
$$\mathbf {k} _ {i} ^ {(t)} \leftarrow \left(\mathbf {I} - \beta_ {t} \mathbf {w} _ {t} \mathbf {w} _ {t} ^ {\top}\right) \mathbf {k} _ {i} ^ {(t - 1)} \quad \text {f o r a l l} i < t, \tag {1}$$
where $\mathbf{k}_i^{(i)} = \mathbf{k}_i$ . This in-place update strategy eliminates
the need to store a separate cache for $\{\mathbf{w}_i\}_{i\leq t}$ or recompute the somewhat expensive cumulative Householder transformations. Then, the decoding stage becomes equivalent to standard softmax attention decoding, enabling compatibility with existing inference kernels such as FlashDecoding [15] and PagedAttention [34]. This approach maintains inference efficiency while preserving PaTH's dynamic positional encoding capabilities. Similarly, PaTH-FoX can be reduced to FoX decoding and thus compatible with the acceleration techniques of FoX (e.g., adaptive pruning [40]).
 Figure 1: Speed comparison between attention variants.
Before decoding, the initial key representations $\mathbf{k}_i^{(i)}$ must be transformed to $\mathbf{k}_i^{(l)}$ to account for subsequent Householder transformations. This transformation could be computed blockwise as:
$$\mathbf {K} _ {[ t ]} ^ {(l)} = \overrightarrow {\mathbf {K} _ {[ t ]}} \mathbf {P} _ {[ t + 1 ]} \dots \mathbf {P} _ {[ \lceil l / B \rceil ]}.$$
It is also possible to reuse the suffix cumulative product $\mathbf{P}_{[t + 1]}\dots \mathbf{P}_{[\lceil l / B\rceil ]}$ across blocks to reduce the overall complexity to linear.
# 3.5 Discussion
Compatibility with context-parallelism (CP) techniques. To extend our FlashAttention2-style context-parallel strategy to distributed settings such as Ring Attention [43, 38], PaTH's cumulative Householder transformations must be aligned with the ring-based key/value (KV) passing mechanism.
Each device first precomputes its locally transformed queries $(\overleftrightarrow{\mathbf{Q}})$ and keys $(\overrightarrow{\mathbf{K}})$ by applying its resident Householder transformations. This also yields the local Householder product matrix $\mathbf{P}^{(d)}$ and softmax statistics for its sequence chunk. During inter-device communication, each device transmits its transformed $\overrightarrow{\mathbf{K}}$ vectors (with $\mathbf{V}$ ) and the associated $\mathbf{P}^{(d)}$ to the next device in the ring.
Upon receiving a $(\overrightarrow{\mathbf{K}},\mathbf{V},\mathbf{P}^{(d)})$ tuple from an earlier segment, the query-holding device first computes attention outputs using its current $\overleftarrow{\mathbf{Q}}$ and the incoming (transformed) keys, accumulating both the output and the corresponding online softmax statistics like standard attention. It then updates its $\overleftarrow{\mathbf{Q}}$ in-place via $\overleftarrow{\mathbf{Q}}\gets \overleftarrow{\mathbf{Q}} (\mathbf{P}^{(d)})^{\top}$ , propagating the cumulative path transformation forward along the ring. This sequence—compute output with current state, then update query state via incoming $\mathbf{P}^{(d)}$ —faithfully emulates PaTH's logical right-to-left scan, enabling correct path reconstruction across distributed segments.
Iterative refinement of KV cache. From equation 1, PaTH iteratively applies low-rank updates to the historical key cache, forming a cumulative product of identity-plus-low-rank terms in the attention logit computation. This dynamic modification of the key cache is conceptually intriguing; see Song et al. [72], Ewer et al. [18], Leviathan et al. [35] for related ideas. Future directions include
(i) extending this update mechanism to refine value vectors and (ii) developing more expressive yet hardware-efficient KV cache refinement schemes beyond the low-rank formulation used in PaTH.
# 4 Experiments
We experiment with PaTH attention and compare it against various baselines: ordinary RoPE attention, Stick-Breaking Attention (SBA) [75], and Forgetting Transformer (FoX) [39].
# 4.1 Synthetic Tasks
Flip-flop language modeling. We first experiment with flip-flop language modeling (FFLM) [41], a diagnostic synthetic task which has been found to be challenging for existing architectures. In this task, the vocabulary consists of $\Sigma = \{\mathsf{w},\mathsf{r},\mathsf{i},0,1\}$ . Given a sequence of write-bit, read-bit, ignore-bit actions, the model must produce the bit (0 or 1) after the most recent write-bit action. For example given the sequence "w 1 r 1 w 0 i 1 i 0 i 1 r", the model is expected to recall the most recently written bit, i.e., 0. Despite its simplicity, flip-flop language modeling is diagnostic of many real-world capabilities, such as modeling long-range dependencies, the ability to ignore distractors, and sequential reasoning. Liu et al. [41] find that RoPE-based transformers struggle on this task and provide theoretical insights into why RoPE-based attention mechanisms find it inherently difficult. In Theorem A.1 of the appendix we show that there exists a 2-layer PaTH-based transformer that can solve this task. Empirically, our experiments in Table 1 show that PaTH-based transformers can practically learn to almost perfectly solve this task with only a single layer and two attention heads, including out-of-distribution settings whose frequency of operations are different from than in training (sparse means $98\%$ of the operations are ignore, while dense means only $10\%$ are ignore).
<table><tr><td rowspan="2">Method</td><td rowspan="2">ID</td><td colspan="2">OOD</td></tr><tr><td>Sparse</td><td>Dense</td></tr><tr><td>RoPE</td><td>6.9%</td><td>40.3%</td><td>0.01%</td></tr><tr><td>SBA [75]</td><td>9.6%</td><td>38.9%</td><td>0%</td></tr><tr><td>FoX [39]</td><td>8.3%</td><td>36.3%</td><td>0%</td></tr><tr><td>PaTH</td><td>0%</td><td>0.0001%</td><td>0%</td></tr></table>
Table 1: FFLM error rate $(\%)$ on ID/OOD test sets. All models are 1-layer, 2-head, 64-dim.


 Figure 2: Results on MQRAR-N (top) and $A_{5}$ word problem (bottom).
Word problems. We showed in §2.2 that PaTH can theoretically extend transformers beyond $\mathsf{TC}^0$ . However, it is a different question as to whether PaTH transformers can empirically learn to solve $\mathsf{NC}^1$ -complete problems based on actual data. To test this, we follow Merrill et al. [51] and use a word problem task based on the alternating group $A_5$ , a subgroup of $S_5$ (on which the word problem is also $\mathsf{NC}^1$ -complete). This task requires determining if a "word"—a sequence of group operations using fixed generators and their inverses—evaluates to the identity element. Successfully performing this symbolic task means the model must implicitly learn algebraic rules like permutation composition and cancellation. As a concrete example, consider generators $g_1 = (1 2 3)$ , $g_2 = (1 2 4)$ , and $g_3 = (1 2 5)$ , with their respective inverses $g_1^{-1}$ , $g_2^{-1}$ , $g_3^{-1}$ . Given the word $w = g_1 \cdot g_2 \cdot g_1^{-1} \cdot g_2^{-1}$ , the model must determine if $w$ equals the identity permutation. In this instance, $w$ is not the identity, and the model needs to correctly track the sequence of permutations to arrive at this conclusion. Figure 2 (bottom) shows that PaTH can solve this task defined as achieving above $90\%$ accuracy following Merrill et al. [51]) with fewer layers than baselines.
Multi-query Repeated Associative Recall with $N$ -back (MQRAR- $N$ ). We adapt the Multi-query Repeated Associative Recall (MQRAR) task from Tan et al. [75] (itself an enhancement of MQAR [1]) to MQRAR- $N$ -back. This task tests a model's associative recall ability by requiring it to find the $N$ -th last assignment for a given variable, drawing an analogy to the $N$ -back task in experimental psychology [30]. Recalling the most recent assignment ( $N = 1$ ) can often be accomplished by simpler, recency-focused mechanisms. However, retrieving the $N$ -th last assignment ( $N > 1$ ) more rigorously probes a model's capacity to track an ordered history of states for specific variables, especially when recent information must be ignored. An example sequence for $N = 2$ is:

We compare Transformer models using RoPE, SBA, FoX, and PaTH on their ability to handle MQRAR- $N$ -back with $N \in \{1, 2, 3, 4\}$ . All models are 2-layer Transformers with a 256-dimensional hidden state, 2 attention heads. For the task we use 32 key-value pairs a sequence length of 768. Figure 2 shows the results, where we find that PaTH attention can successfully track variable values with $N$ -back recall for $N < 4$ , whereas recent baselines (SBA and FoX) still struggle.
# 4.2 Language Modeling
We pretrain language models with $\sim 760\mathrm{M}$ parameters on the Fineweb-Edu corpus [54] for 50B tokens using the Mistral tokenizer and a sequence length of 4096. We then evaluate the pretrained models on the following benchmarks. See appendix B for full details and additional experiments.
<table><tr><td>Model</td><td>Wiki. ppl ↓</td><td>LMB. ppl ↓</td><td>LMB. acc ↑</td><td>PIQA acc ↑</td><td>Hella. acc_n ↑</td><td>Wino. acc ↑</td><td>ARC-e acc ↑</td><td>ARC-c acc_n ↑</td><td>Avg. ↑</td></tr><tr><td>RoPE</td><td>19.01</td><td>19.77</td><td>40.4</td><td>70.2</td><td>50.3</td><td>54.9</td><td>67.2</td><td>33.3</td><td>52.7</td></tr><tr><td>FoX</td><td>18.33</td><td>18.28</td><td>41.7</td><td>70.8</td><td>50.9</td><td>57.1</td><td>65.7</td><td>32.6</td><td>53.1</td></tr><tr><td>PaTH</td><td>18.03</td><td>16.79</td><td>44.0</td><td>70.5</td><td>51.5</td><td>56.0</td><td>68.9</td><td>34.4</td><td>54.2</td></tr><tr><td>PaTH-FoX</td><td>17.35</td><td>16.23</td><td>44.1</td><td>70.8</td><td>52.2</td><td>57.1</td><td>67.3</td><td>33.9</td><td>54.2</td></tr></table>
Table 2: Results on perplexity and zero-shot commonsense reasoning tasks for 760M models trained on 50B tokens. Best results are highlighted in bold, while the second best results underlined.
Standard LM benchmarks. We evaluate on Wikitext perplexity and selected zero-shot common sense reasoning tasks, including of LAMBADA [LMB.; 53] (OpenAI version), PiQA [6], HellaSwag [Hella.; 86], WinoGrande [Wino.; 64], ARC-easy (ARC-e) and ARC-challenge (Arc-c) [10]. Table 2 shows the results. PaTH consistently outperforms RoPE across all tasks, and surpasses FoX on most. PaTH-FoX performs comparably with PaTH while achieving the lower perplexity.
Length extrapolation. Figure 3 presents results on three long-context corpora from different domains: PG-19 [62] (books), CodeParrot (code), and NarrativeQA [31](conversational English). Both PaTH-Fox and FoX generalize up to 64K tokens, with PaTH-Fox consistently achieving lower perplexity. The improvement is especially pronounced in the code domain, where state tracking—e.g., tracking variable values—is crucial. PaTH alone generalizes reasonably well, maintaining stable performance up to 32K tokens, after which perplexity gradually increases (in contrast to RoPE, which fails abruptly beyond 4K). These results underscore the benefit of data-dependent position encoding and the critical role of the forgetting mechanism in enabling robust generalization to longer contexts.
 Figure 3: Length extrapolation results for 760M models trained on 50B tokens with 4096 context length.


Long-context benchmarks. Table 3 summarizes results on four challenging long-context benchmarks: RULER [23], BABILONG [33], PhoneBook [26], and LongBench-E [3]. For RULER, we report the zero-shot average accuracy across all 13 subtasks and also breakdowns by task categories and context length in Figure 4; for BABILONG, we follow standard practice and report the average few-shot accuracy over subproblems QA0-QA5 (see Figure 5 for breakdowns by task and context length); for LongBench-E, we report average scores across three length intervals—0-4K, 4-8K, and 8-16K—and provide detailed results in Table 7.
These benchmarks assess different aspects of long-context understanding. Accurate retrieval is critical and is tested by RULER's Single- and Multi-Needle-In-A-Haystack (NIAH) tasks, as well as by PhoneBook Lookup, an extreme case where every token in the context is a 'needle'. PaTH-FoX achieves the highest overall retrieval performance, excelling in the more difficult Multi-NIAH and PhoneBook settings.
 Figure 4: RULER results grouped by different task categories.



<table><tr><td rowspan="2">Model</td><td colspan="3">RULER</td><td colspan="4">BABILONG</td><td colspan="3">PhoneBook</td><td colspan="3">LongBench-E</td></tr><tr><td>4K</td><td>8K</td><td>16K</td><td>0K</td><td>4K</td><td>8K</td><td>16K</td><td>2K</td><td>4K</td><td>8K</td><td>4K</td><td>8K</td><td>16K</td></tr><tr><td>RoPE</td><td>35.7</td><td>1.3</td><td>0.0</td><td>33.0</td><td>13.8</td><td>0.0</td><td>0.0</td><td>32.3</td><td>15.6</td><td>0.0</td><td>18.7</td><td>3.7</td><td>2.0</td></tr><tr><td>FoX</td><td>41.6</td><td>29.5</td><td>4.9</td><td>23.8</td><td>20.2</td><td>8.2</td><td>4.4</td><td>62.5</td><td>38.5</td><td>17.7</td><td>23.4</td><td>16.9</td><td>11.7</td></tr><tr><td>PaTH</td><td>44.6</td><td>34.8</td><td>18.7</td><td>33.8</td><td>24.6</td><td>16.8</td><td>11.6</td><td>55.2</td><td>20.8</td><td>0.0</td><td>27.2</td><td>22.5</td><td>14.4</td></tr><tr><td>PaTH-FoX</td><td>42.3</td><td>34.0</td><td>22.6</td><td>28.6</td><td>25.6</td><td>19.2</td><td>10.0</td><td>89.6</td><td>93.8</td><td>66.6</td><td>23.4</td><td>21.8</td><td>16.1</td></tr></table>
Beyond retrieval, RULER also probes state tracking through its Variable Tracking (VT) task.7 PaTH and PaTH-Fox achieve substantial gains here, consistent with their advantages on synthetic state-tracking tasks. BABILONG further tests such capabilities in a narrative setting, embedding bAbI-style logic queries within long PG-19 passages—thus requiring both entity tracking and multi-hop reasoning over extended text. On these tasks as well, PaTH and PaTH-Fox clearly outperform FoX and RoPE.
Table 3: Summary of average scores on long-context tasks for 760M models with training length 4096.
<table><tr><td>Model</td><td>GSM8K</td><td>HumanEval</td><td>MBPP+</td></tr><tr><td>RoPE</td><td>19.9</td><td>23.1</td><td>47.1</td></tr><tr><td>FoX</td><td>15.5</td><td>21.3</td><td>48.2</td></tr><tr><td>PaTH</td><td>20.1</td><td>25.6</td><td>51.3</td></tr><tr><td>Base</td><td>8.6</td><td>16.4</td><td>38.6</td></tr></table>
# 4.3 Converting RoPE into PaTH
Training LLMs from scratch is highly resource-intensive. We hence explore converting pretrained RoPE-based LLMs into PaTH-based LLMs, in particular targeting improvements in math/coding domains.
Following Goldstein et al. [20], we use a two-stage distillation process first minimizes the Mean Squared Error (MSE) between the attention-layer outputs of the RoPE teacher and the PaTH student, followed by finetuning using KL divergence on the outputs. The first and second stages use 100M and 3B tokens, respectively, from the DCLM corpus
[37]. After distillation, we perform continued pretraining using a balanced mixture (1:1:1) of DCLM (text), Python-Edu (code), and MegaMathWeb (math) corpora [90] of 21B tokens. Since it may be difficult to observe sizeable improvements over existing (often overtrained) state-of-the-art models that have already been exposed to extensive math/coding data, we work with the Smo1LM2-1.7B checkpoint<sup>8</sup> taken immediately before the WSD decay stage [24], i.e., prior to exposure to high-quality math and code data. As shown in Table 4, PaTH consistently outperforms both RoPE and FoX. We speculate that PaTH's expressivity and state-tracking capabilities contribute to its advantages in handling math and coding tasks.
While the above results are promising, we find mixed results when distilling from models that have already been extensively (over)trained. Table 5 shows the performance when distilling Qwen2.5-7B-Instruct [60] without the continued pretraining stage: PaTH student can improve the teacher's performance across some benchmarks, but there is degradation across others. These
Table 4: Results on math and coding benchmarks after conversion. Base denotes the teacher model performance before continued pretraining.
<table><tr><td>Task</td><td>Teacher (RoPE)</td><td>Student (PaTH)</td></tr><tr><td>MMLU</td><td>74.21</td><td>73.28</td></tr><tr><td>HellaSwag</td><td>85.20</td><td>84.83</td></tr><tr><td>Winogrande</td><td>71.51</td><td>68.90</td></tr><tr><td>GPQA Diamond</td><td>33.33</td><td>34.34</td></tr><tr><td>TheoremQA</td><td>18.12</td><td>21.88</td></tr><tr><td>GSM-8K</td><td>80.29</td><td>80.67</td></tr><tr><td>MATH</td><td>69.10</td><td>65.38</td></tr><tr><td>HumanEval</td><td>82.32</td><td>77.44</td></tr><tr><td>MBPP</td><td>74.71</td><td>75.10</td></tr><tr><td>RULER (4K)</td><td>94.37</td><td>93.24</td></tr></table>
Table 5: Qwen2.5-7B-Instruct distillation results (without continued pretraining on math/code data).
distillation experiments suggest that it may be important to start the conversion process before the original model (potentially) ossifies and becomes difficult to convert; better conversion recipes remain an avenue for future work.
# 5 Related Work
Data-dependent position encodings. RoPE [74] has been the de facto position encoding scheme in large language models. However, RoPE's static nature makes it unsuitable for dynamically adapting to long sequences, motivating works on RoPE length extension [55, 8, 44, inter alia]. Yet, these methods remain within the RoPE framework and can only mitigate rather solve its limitations. An alternative line of work focuses on data-dependent position encoding. DaPE [88] introduces a dynamic attention bias term conditioned on input content, while Forgetting Transformer [39] and Cable [80] compute this bias via a right-to-left cumulative sum (cumsum), effectively yielding data-dependent variants of ALiBi [58]. DaPE-v2 [89] further treats the attention map as a 1D feature map and applies a short depthwise Conv1D to promote local interactions among attention logits. This trend of directly manipulating attention logits has gained traction in recent work. Selective Attention [35] forms a contextual bias by applying a right-to-left cumsum over attention logits. CoPE [21] also computes such a cumsum, but uses it to derive contextualized relative position embeddings [69] rather than scalar biases. Stick-Breaking Attention [75, 70], a unidirectional variant of Geometric Attention [11], also accumulates attention logits from right to left. However, instead of using a simple cumulative sum, it adopts a probabilistically principled stick-breaking process via a log-space operator (see [75, Algorithm 1]), and computes the final attention scores directly using a sigmoid function.
While promising, these approaches operate solely at the attention logit level, modifying the $\mathbf{Q}\mathbf{K}^{\top}$ scores through post hoc transformations. However, the dot-product structure is fundamentally limited in its ability to represent more intricate dependencies [19, 32], motivating work on algebraic position encodings [32], where relative positions are encoded via cumulative matrix products. While conceptually similar to our approach, APE focuses exclusively on data-independent orthogonal (and thus invertible) matrices that are simultaneously diagonalizable [59], and thus inherently limited in expressivity [9, 51, 76]. In contrast, our proposed PaTH method addresses this limitation by using data-dependent cumulative Householder-like products, which are non-invertible, non-commutative, and not simultaneously diagonalizable, leading to more expressive transformations of the unnormalized attention logits. Moreover, PaTH is compatible with other attention variants, such as FoX, providing a principled and extensible framework for positional encoding.
Improving state tracking in language models. Transformer-based language models often struggle with state and entity tracking [29, 57, 51]. This is potentially due to the standard transformer architecture's finding it difficult to reliably emulate finite-state automata [41, 42, 91, 4]. To shed light on the theoretical reasons transformers struggle with word problems (tasks requiring careful state tracking), recent studies have analyzed their learning dynamics [36] and conducted mechanistic investigations [87]. Researchers have also proposed alternative attention mechanisms to enhance self-attention's expressivity. These aim to capture richer pairwise dependencies than standard dot-product attention, often by incorporating lightweight recurrence—such as right-to-left cumulative sums—into the attention logits [21, 35, 75]. Fagnou et al. [19] propose a matrix-inversion-based attention mechanism for capturing path-level dependencies, which is conceptually similar to our approach. While these methods show empirical improvements in state or entity tracking tasks, they are largely heuristic. In this work, we draw inspiration from theoretical studies on parallelizing RNNs while preserving their state tracking capabilities [51, 22, 71, 56]. From these, we design a new softmax-based attention mechanism that is performant and efficient.
# 6 Conclusion
This work describes PaTH, a new data-dependent multiplicative position encoding scheme that provably enhances the expressive power of transformers. We develop a FlashAttention-like blockwise algorithm for efficient parallel training. Experiments demonstrate that PaTH consistently outperforms RoPE across multiple benchmarks, especially state tracking tasks and length extrapolation.
# Acknowledgements
This study was supported in part by MIT-IBM Watson AI Lab and the AI2050 program at Schmidt Sciences (Grant G-25-67980). We thank Zhixuan Lin for helpful discussions.
# References
[1] S. Arora, S. Eyuboglu, A. Timalsina, I. Johnson, M. Poli, J. Zou, A. Rudra, and C. Ré. Zoology: Measuring and Improving Recall in Efficient Language Models. CoRR, abs/2312.04927, 2023. [2] S. Arora, S. Eyuboglu, M. Zhang, A. Timalsina, S. Alberti, D. Zinsley, J. Zou, A. Rudra, and C. Ré. Simple linear attention language models balance the recall-throughput tradeoff. CoRR, abs/2402.18668, 2024. doi: 10.48550/ARXIV.2402.18668. URL https://doi.org/10.48550/arXiv.2402.18668.arXiv: 2402.18668. [3] Y. Bai, X. Lv, J. Zhang, H. Lyu, J. Tang, Z. Huang, Z. Du, X. Liu, A. Zeng, L. Hou, Y. Dong, J. Tang, and J. Li. LongBench: A bilingual, multitask benchmark for long context understanding. In L.-W. Ku, A. Martins, and V. Srikumar, editors, Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3119-3137, Bangkok, Thailand, Aug. 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.acl-long.172. URL https://aclanthology.org/2024.acl-long.172/. [4] S. Bhattachamishra, M. Hahn, P. Blunsom, and V. Kanade. Separations in the representational capabilities of transformers and recurrent architectures. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. [5] C. H. Bischof and C. V. Loan. The WY representation for products of householder matrices. In SIAM Conference on Parallel Processing for Scientific Computing, 1985. URL https://api-semanticscholar.org/CorpusID:36094006. [6] Y. Bisk, R. Zellers, R. LeBras, J. Gao, and Y. Choi. PIQA: reasoning about physical commonsense in natural language. In The Thirty-Fourth AAAI Conference on Artificial Intelligence, AAAI 2020, The Thirty-Second Innovative Applications of Artificial Intelligence Conference, IAAI 2020, The Tenth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2020, New York, NY, USA, February 7-12, 2020, pages 7432-7439. AAAI Press, 2020. URL https://aaaai.org/ojs/index.php/AAAI/article/view/6239. [7] B. Chen, X. Li, Y. Liang, J. Long, Z. Shi, and Z. Song. Circuit complexity bounds for rope-based transformer architecture, 2024. URL https://arxiv.org/abs/2411.07602. [8] S. Chen, S. Wong, L. Chen, and Y. Tian. Extending context window of large language models via positional interpolation, 2023. URL https://arxiv.org/abs/2306.15595. [9] N. M. Cirone, A. Orvieto, B. Walker, C. Salvi, and T. Lyons. Theoretical foundations of deep selective state-space models. In *The Thirty-eighth Annual Conference on Neural Information Processing Systems*, 2024. URL https://openreview.net/forum?id=3SzrqwupUx. [10] P. Clark, I. Cowhey, O. Etzioni, T. Khot, A. Sabharwal, C. Schoenick, and O. Tafjord. Think you have solved question answering? try arc, the ai2 reasoning challenge. ArXiv preprint, abs/1803.05457, 2018. URL https://arxiv.org/abs/1803.05457. [11] R. Csordás, K. Irie, and J. Schmidhuber. The neural data router: Adaptive control flow in transformers improves systematic generalization. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=KBQP4A_J1K. [12] T. Dao. Flashattention-2: Faster attention with better parallelism and work partitioning. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=mZn2Xyh9Ec. [13] T. Dao and A. Gu. Transformers are ssms: Generalized models and efficient algorithms through structured state space duality. arXiv preprint arXiv:2405.21060, 2024.
[14] T. Dao, D. Y. Fu, S. Ermon, A. Rudra, and C. Re. Flashattention: Fast and memory-efficient exact attention with IO-awareness. In A. H. Oh, A. Agarwal, D. Belgrave, and K. Cho, editors, Advances in Neural Information Processing Systems, 2022. URL https://openreview.net/forum?id=H4DqfPSibmx. [15] T. Dao, D. Haziza, F. Massa, and G. Sizov. Flash-decoding for long-context inference, October 13 2023. URL https://pytorch.org/blog/flash-decoding/. [16] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova. 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, 2019. [17] P. Dufter, M. Schmitt, and H. Schütze. Position information in transformers: An overview. Computational Linguistics, 48(3):733-763, 2022. [18] E. Ewer, D. Chae, T. Zeng, J. Kim, and K. Lee. Entp: Encoder-only next token prediction, 2025. URL https://arxiv.org/abs/2410.01600. [19] E. Fagnou, P. Caillon, B. Delattre, and A. Allauzen. Chain and Causal Attention for Efficient Entity Tracking. In Y. Al-Onaizan, M. Bansal, and Y.-N. Chen, editors, Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 13174-13188, Miami, Florida, USA, Nov. 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.emnlp-main.731. URL https://aclanthology.org/2024.emnlp-main.731/. [20] D. Goldstein, E. Alcaide, J. Lu, and E. Cheah. RADLADS: Rapid attention distillation to linear attention decoders at scale. In Second Conference on Language Modeling, 2025. URL https://openreview.net/forum?id=38GehGepDd. [21] O. Golovneva, T. Wang, J. Weston, and S. Sukhbaatar. Contextual position encoding: Learning to count what's important, 2024. URL https://arxiv.org/abs/2405.18719. [22] R. Grazzi, J. Siems, J. K. Franke, A. Zela, F. Hutter, and M. Pontil. Unlocking state-tracking in linear RNNs through negative eigenvalues. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=UvTo3tVBk2. [23] C.-P. Hsieh, S. Sun, S. Kriman, S. Acharya, D. Rekesh, F. Jia, and B. Ginsburg. RULER: What's the real context size of your long-context language models? In First Conference on Language Modeling, 2024. URL https://openreview.net/forum?id=kIoBbc76Sy. [24] S. Hu, Y. Tu, X. Han, C. He, G. Cui, X. Long, Z. Zheng, Y. Fang, Y. Huang, W. Zhao, X. Zhang, Z. L. Thai, K. Zhang, C. Wang, Y. Yao, C. Zhao, J. Zhou, J. Cai, Z. Zhai, N. Ding, C. Jia, G. Zeng, D. Li, Z. Liu, and M. Sun. Minicpm: Unveiling the potential of small language models with scalable training strategies, 2024. URL https://arxiv.org/abs/2404.06395. [25] Z. Huang, D. Liang, P. Xu, and B. Xiang. Improve transformer models with better relative position embeddings. arXiv preprint arXiv:2009.13658, 2020. [26] S. Jelassi, D. Brandfonbrener, S. M. Kakade, and E. Malach. Repeat After Me: Transformers are Better than State Space Models at Copying. CoRR, abs/2402.01032, 2024. doi: 10.48550/ARXIV.2402.01032. URL https://doi.org/10.48550/arXiv.2402.01032.arXiv:2402.01032. [27] T. Joffrain, T. M. Low, E. S. Quintana-Orti, R. A. van de Geijn, and F. G. V. Zee. Accumulating householder transformations, revisited. ACM Trans. Math. Softw., 32:169-179, 2006. URL https://api-semanticscholar.org/CorpusID:15723171. [28] G. Ke, D. He, and T.-Y. Liu. Rethinking positional encoding in language pre-training. arXiv preprint arXiv:2006.15595, 2020. [29] N. Kim and S. Schuster. Entity Tracking in Language Models. In A. Rogers, J. Boyd-Graber, and N. Okazaki, editors, Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3835–3855, Toronto, Canada, July 2023. Association for Computational Linguistics. doi: 10.18653/v1/2023.acl-long.213. URL https://aclanthology.org/2023.acl-long.213/.
[30] W. K. Kirchner. Age differences in short-term retention of rapidly changing information. Journal of experimental psychology, 55(4):352, 1958. [31] T. Kočisky, J. Schwarz, P. Blunsom, C. Dyer, K. M. Hermann, G. Melis, and E. Grefenstette. The Narrative QA reading comprehension challenge. Transactions of the Association for Computational Linguistics, 6:317-328, 2018. doi: 10.1162/tacl_a_00023. URL https://aclanthology.org/Q18-1023/. [32] K. Kogkalidis, J.-P. Bernardy, and V. Garg. Algebraic positional encodings. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. URL https://openreview.net/forum?id=PfOeAKxx6i. [33] Y. Kuratov, A. Bulatov, P. Anokhin, I. Rodkin, D. I. Sorokin, A. Sorokin, and M. Burtsev. BABILong: Testing the limits of LLMs with long context reasoning-in-a-haystack. In The Thirty-eight Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2024. URL https://openreview.net/forum?id=u7m2CG84BQ. [34] W. Kwon, Z. Li, S. Zhuang, Y. Sheng, L. Zheng, C. H. Yu, J. E. Gonzalez, H. Zhang, and I. Stoica. Efficient memory management for large language model serving with pagedattention. Proceedings of the 29th Symposium on Operating Systems Principles, 2023. URL https://apisemantic scholar.org/CorpusID:261697361. [35] Y. Leviathan, M. Kalman, and Y. Matias. Selective attention improves transformer. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=v0FzmPCd1e. [36] B. Z. Li, Z. C. Guo, and J. Andreas. (how) do language models track state?, 2025. URL https://arxiv.org/abs/2503.02854. [37] J. Li, A. Fang, G. Smyrnis, M. Ivgi, M. Jordan, S. Gadre, H. Bansal, E. Guha, S. Keh, K. Arora, S. Garg, R. Xin, N. Muennighoff, R. Heckel, J. Mercat, M. Chen, S. Gururangan, M. Wortsman, A. Albalak, Y. Bitton, M. Nezhurina, A. Abbas, C.-Y. Hsieh, D. Ghosh, J. Gardner, M. Kilian, H. Zhang, R. Shao, S. Pratt, S. Sanyal, G. Ilharco, G. Daras, K. Marathe, A. Gokaslan, J. Zhang, K. Chandu, T. Nguyen, I. Vasiljevic, S. Kakade, S. Song, S. Sanghavi, F. Faghri, S. Oh, L. Zettlemoyer, K. Lo, A. El-Nouby, H. Pouransari, A. Toshev, S. Wang, D. Groeneveld, L. Soldaini, P. W. Koh, J. Jitsev, T. Kollar, A. G. Dimakis, Y. Carmon, A. Dave, L. Schmidt, and V. Shankar. Datacomp-lm: In search of the next generation of training sets for language models, 2025. URL https://arxiv.org/abs/2406.11794. [38] S. Li, F. Xue, C. Baranwal, Y. Li, and Y. You. Sequence Parallelism: Long Sequence Training from System Perspective. In A. Rogers, J. Boyd-Graber, and N. Okazaki, editors, Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Toronto, Canada, July 2023. Association for Computational Linguistics. [39] Z. Lin, E. Nikishin, X. He, and A. Courville. Forgetting transformer: Softmax attention with a forget gate. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=q2Lnyegkr8. [40] Z. Lin, J. Obando-Ceron, X. O. He, and A. Courville. Adaptive computation pruning for the forgetting transformer, 2025. URL https://arxiv.org/abs/2504.06949. [41] B. Liu, J. T. Ash, S. Goel, A. Krishnamurthy, and C. Zhang. Exposing attention glitches with flip-flop language modeling. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. URL https://openreview.net/forum?id=VzmpXQAn6E. [42] B. Liu, J. T. Ash, S. Goel, A. Krishnamurthy, and C. Zhang. Transformers learn shortcuts to automata, 2023. URL https://arxiv.org/abs/2210.10749. [43] H. Liu, M. Zaharia, and P. Abbeel. Ring Attention with Blockwise Transformers for Near-Infinite Context. ArXiv, abs/2310.01889, 2023. [44] X. Liu, H. Yan, S. Zhang, C. An, X. Qiu, and D. Lin. Scaling laws of rope-based extrapolation, 2024. URL https://arxiv.org/abs/2310.05209.
[45] A. Liutkus, O. Cifka, S.-L. Wu, U. Simsekli, Y.-H. Yang, and G. Richard. Relative positional encoding for transformers with linear complexity. In International Conference on Machine Learning, pages 7067-7079. PMLR, 2021. [46] I. Loshchilov and F. Hutter. Fixing weight decay regularization in adam. In International Conference on Learning Representations (ICLR), 2018. https://openreview.net/forum?id=rk6wfqLU-. [47] A. Mathiasen, F. Hvilshøj, J. R. Jørgensen, A. Nasery, and D. Mottin. Faster Orthogonal Parameterization with Householder Matrices. In ICML Workshop on Invertible Neural Networks and Normalizing Flows, 2020. [48] A. Mathiasen, F. Hvilshøj, J. R. Jørgensen, A. Nasery, and D. Mottin. What if Neural Networks had SVDs?, Sept. 2020. URL http://arxiv.org/abs/2009.13977. arXiv:2009.13977 [cs]. [49] W. Merrill and A. Sabharwal. The expressive power of transformers with chain of thought. arXiv preprint arXiv:2310.07923, 2023. [50] W. Merrill and A. Sabharwal. A logic for expressing log-precision transformers, 2023. URL https://arxiv.org/abs/2210.02671. [51] W. Merrill, J. Petty, and A. Sabharwal. The Illusion of State in State-Space Models, Apr. 2024. URL http://arxiv.org/abs/2404.08819.arXiv:2404.08819 [cs]. [52] M. Milakov and N. Gimelshein. Online normalizer calculation for softmax, 2018. URL https://arxiv.org/abs/1805.02867. [53] D. Paperno, G. Kruszewski, A. Lazaridou, Q. N. Pham, R. Bernardi, S. Pezzelle, M. Baroni, G. Boleda, and R. Fernández. The LAMBADA dataset: Word prediction requiring a broad discourse context, June 2016. URL http://arxiv.org/abs/1606.06031. arXiv:1606.06031 [cs]. [54] G. Penedo, H. Kydlíček, L. B. Allal, A. Lozhkov, M. Mitchell, C. Raffel, L. V. Werra, and T. Wolf. The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale. Nov. 2024. URL https://openreview.net/forum?id=n6SCKn2QaG#discussion. [55] B. Peng, J. Quesnelle, H. Fan, and E. Shippole. Yarn: Efficient context window extension of large language models, 2023. URL https://arxiv.org/abs/2309.00071. [56] B. Peng, R. Zhang, D. Goldstein, E. Alcaide, H. Hou, J. Lu, W. Merrill, G. Song, K. Tan, S. Utpala, N. Wilce, J. S. Wind, T. Wu, D. Wuttke, and C. Zhou-Zheng. Rwkv-7 "goose" with expressive dynamic state evolution, 2025. URL https://arxiv.org/abs/2503.14456. [57] N. Prakash, T. R. Shaham, T. Haklay, Y. Belinkov, and D. Bau. Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Tracking. Oct. 2023. URL https://openreview.net/forum?id=8sKcAWOf2D. [58] O. Press, N. A. Smith, and M. Lewis. Train short, test long: Attention with linear biases enables input length extrapolation, 2022. URL https://arxiv.org/abs/2108.12409. [59] Z. Qin, W. Sun, K. Lu, H. Deng, D. Li, X. Han, Y. Dai, L. Kong, and Y. Zhong. Linearized relative positional encoding. Transactions on Machine Learning Research, 2023. ISSN 2835-8856. URL https://openreview.net/forum?id=xoLyps2qWc. [60] Qwen, :, A. Yang, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Li, D. Liu, F. Huang, H. Wei, H. Lin, J. Yang, J. Tu, J. Zhang, J. Yang, J. Yang, J. Zhou, J. Lin, K. Dang, K. Lu, K. Bao, K. Yang, L. Yu, M. Li, M. Xue, P. Zhang, Q. Zhu, R. Men, R. Lin, T. Li, T. Tang, T. Xia, X. Ren, X. Ren, Y. Fan, Y. Su, Y. Zhang, Y. Wan, Y. Liu, Z. Cui, Z. Zhang, and Z. Qiu. Qwen2.5 technical report, 2025. URL https://arxiv.org/abs/2412.15115. [61] M. N. Rabe and C. Staats. Self-attention Does Not Need $\$0(\mathfrak{n}^{\wedge}2)$ Memory, Oct. 2022. URL: http://arxiv.org/abs/2112.05682. arXiv:2112.05682 [cs].
[62] J. W. Rae, A. Potapenko, S. M. Jayakumar, C. Hillier, and T. P. Lillicrap. Compressive transformers for long-range sequence modelling. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=SylKikSYDH. [63] C. Raffel, N. Shazeer, A. Roberts, K. Lee, S. Narang, M. Matena, Y. Zhou, W. Li, and P. J. Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of machine learning research, 21(140):1-67, 2020. [64] K. Sakaguchi, R. L. Bras, C. Bhagavatula, and Y. Choi. Winogrande: An adversarial winograd schema challenge at scale. In The Thirty-Fourth AAAI Conference on Artificial Intelligence, AAAI 2020, The Thirty-Second Innovative Applications of Artificial Intelligence Conference, IAAI 2020, The Tenth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2020, New York, NY, USA, February 7-12, 2020, pages 8732-8740. AAAI Press, 2020. URL https://aaaai.org/ojs/index.php/AAAI/article/view/6399. [65] I. Schlag, K. Irie, and J. Schmidhuber. Linear transformers are secretly fast weight programmers, 2021. URL https://arxiv.org/abs/2102.11174. [66] I. Schlag, K. Irie, and J. Schmidhuber. Linear Transformers Are Secretly Fast Weight Programmers. In M. Meila and T. Zhang, editors, Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Virtual Event, volume 139 of Proceedings of Machine Learning Research, pages 9355-9366. PMLR, 2021. [67] R. Schreiber and C. Van Loan. A storage-efficient wy representation for products of householder transformations. SIAM Journal on Scientific and Statistical Computing, 10(1):53-57, 1989. [68] J. Shah, G. Bikshandi, Y. Zhang, V. Thakkar, P. Ramani, and T. Dao. FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision. Nov. 2024. URL https://openreview.net/forum?id=tVConYid20&referrer=%5Bthe%20profile%20of%20Tri%20Dao%5D(%2Fprofile%3Fid%3D~Tri_Dao1). [69] P. Shaw, J. Uszkoreit, and A. Vaswani. Self-attention with relative position representations, 2018. URL https://arxiv.org/abs/1803.02155. [70] Y. Shen, Z. Zhang, T. Cao, S. Tan, Z. Chen, and C. Gan. Moduleformer: Modularity emerges from mixture-of-experts, 2023. URL https://arxiv.org/abs/2306.04640. [71] J. Siems, T. Carstensen, A. Zela, F. Hutter, M. Pontil, and R. Grazzi. Deltaproduct: Increasing the expressivity of deltanet through products of householders, 2025. URL https://arxiv.org/abs/2502.10297. [72] Z. Song, P. Sun, H. Yuan, and Q. Gu. Causal attention with lookahead keys, 2025. URL https://arxiv.org/abs/2509.07301. [73] B. F. Spector, S. Arora, A. Singhal, A. Parthasarathy, D. Y. Fu, and C. Re. Thunderkittens: Simple, fast, and $\S\text{textit}\{Adorable\} \S$ kernels. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=OfJfVOSUra. [74] J. Su, Y. Lu, S. Pan, A. Murtadha, B. Wen, and Y. Liu. Roformer: Enhanced transformer with rotary position embedding, 2023. URL https://arxiv.org/abs/2104.09864. [75] S. Tan, S. Yang, A. Courville, R. Panda, and Y. Shen. Scaling stick-breaking attention: An efficient implementation and in-depth study. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=r8J3DSD5kF. [76] A. Terzić, M. Hersche, G. Camposampiero, T. Hofmann, A. Sebastian, and A. Rahimi. On the expressiveness and length generalization of selective state-space models on regular languages. In Proceedings of the AAAI Conference on Artificial Intelligence, 2025. [77] P. Tillet, H.-T. Kung, and D. D. Cox. Triton: an intermediate language and compiler for tiled neural network computations. In T. Mattson, A. Muzahid, and A. Solar-Lezama, editors, Proceedings of the 3rd ACM SIGPLAN International Workshop on Machine Learning and Programming Languages, MAPL@PLDI 2019, Phoenix, AZ, USA, June 22, 2019, pages 10-19. ACM, 2019. doi: 10.1145/3315508.3329973.
[78] A. E. Tomás Dominguez and E. S. Quintana Orti. Fast Blocking of Householder Reflectors on Graphics Processors. In 2018 26th Euromicro International Conference on Parallel, Distributed and Network-based Processing (PDP), pages 385-393, Mar. 2018. doi: 10.1109/PDP2018.2018.00068. URL https://ieeexplore.ieee.org/document/8374491. ISSN: 2377-5750. [79] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin. Attention is all you need, 2023. URL https://arxiv.org/abs/1706.03762. [80] A. Veisi and A. Mansourian. Context-aware biases for length extrapolation, 2025. URL https://arxiv.org/abs/2503.08067. [81] S. Yang. Deltanet explained (part ii), 2024. URL https://sustcsonglin.github.io/blog/2024/deltanet-2/. Accessed: 2025-03-26. [82] S. Yang and Y. Zhang. FLA: A Triton-Based Library for Hardware-Efficient Implementations of Linear Attention Mechanism, Jan. 2024. URL https://github.com/sustcsonglin/flash-linear-attention. original-date: 2023-12-20T06:50:18Z. [83] S. Yang, B. Wang, Y. Shen, R. Panda, and Y. Kim. Gated Linear Attention Transformers with Hardware-Efficient Training. CoRR, abs/2312.06635, 2023. doi: 10.48550/ARXIV.2312.06635. URL https://doi.org/10.48550/arXiv.2312.06635.arXiv: 2312.06635. [84] S. Yang, B. Wang, Y. Zhang, Y. Shen, and Y. Kim. Parallelizing linear transformers with the delta rule over sequence length. In Proceedings of NeurIPS, 2024. [85] S. Yang, J. Kautz, and A. Hatamizadeh. Gated delta networks: Improving mamba2 with delta rule. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=r8H7xhYPwz. [86] R. Zellers, A. Holtzman, Y. Bisk, A. Farhadi, and Y. Choi. HellaSwag: Can a machine really finish your sentence? In A. Korhonen, D. Traum, and L. Márquez, editors, Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4791-4800, Florence, Italy, 2019. Association for Computational Linguistics. doi: 10.18653/v1/P19-1472. URL https://aclanthology.org/P19-1472. [87] Y. Zhang, W. Du, D. Jin, J. Fu, and Z. Jin. Finite state automata inside transformers with chain-of-thought: A mechanistic study on state tracking, 2025. URL https://arxiv.org/abs/2502.20129. [88] C. Zheng, Y. Gao, H. Shi, M. Huang, J. Li, J. Xiong, X. Ren, M. Ng, X. Jiang, Z. Li, and Y. Li. DAPE: Data-adaptive positional encoding for length extrapolation. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. URL https://openreview.net/forum?id=rnUEUbRxVu. [89] C. Zheng, Y. Gao, H. Shi, J. Xiong, J. Sun, J. Li, M. Huang, X. Ren, M. Ng, X. Jiang, Z. Li, and Y. Li. Dape v2: Process attention score as feature map for length extrapolation, 2024. URL https://arxiv.org/abs/2410.04798. [90] F. Zhou, Z. Wang, N. Ranjan, Z. Cheng, L. Tang, G. He, Z. Liu, and E. P. Xing. Megamath: Pushing the limits of open math corpora, 2025. URL https://arxiv.org/abs/2504.02807. [91] Y. Zhou, U. Alon, X. Chen, X. Wang, R. Agarwal, and D. Zhou. Transformers can achieve length generalization but not robustly, 2024. URL https://arxiv.org/abs/2402.09371.
# A Representation Power of Transformers with PaTH Attention
We state two theorems which illustrate the representation power of transformers equipped with PaTH attention.
The first theorem shows that a PaTH attention layer can solve the problem of tracking iterative swaps on 5 elements, which is an $\mathsf{NC}^1$ -complete under $\mathsf{AC}^0$ reductions. This theorem and its proof is an adaptation of Theorem 2 of Peng et al. [56].
Theorem 2.1. A one-layer PaTH transformer with two attention heads and log $n$ precision can solve an $\mathsf{NC}^1$ -complete problem under $\mathsf{AC}^0$ -reductions.
Proof. As in Lemma 2 of Peng et al. [56], consider the task of deciding whether $n$ iterative swappings of 5 elements encodes the identity permutation. This task consists of an input sequence $c = c_0c_1\ldots c_n$ of length $n + 1$ ,
$$\# \left[ a _ {1} \leftrightarrow b _ {1} \right] \left[ a _ {2} \leftrightarrow b _ {2} \right] \dots \left[ a _ {n} \leftrightarrow b _ {n} \right]$$
where $c_{0} = \#$ is the start token and $c_{1} = [a_{1} \leftrightarrow b_{1}], \ldots, c_{n} = [a_{n} \leftrightarrow b_{n}]$ are "tokens" which indicates that position $a_{n}$ is swapped with position $b_{n}$ at time $n$ . (Hence there are 20 such possible swap tokens of the form $[x \leftrightarrow y]$ for all pairwise $x, y \in \{1, \ldots, 5\}$ such that $x \neq y$ .) Given this sequence, we show that there is a one-layer PaTH transformer with two attention heads that outputs a 1 if the sequence encodes the identity permutation, and -1 otherwise. As noted by previous works [51, 56], this suffices since there is an $\mathsf{AC}^0$ -reduction from a well-known $\mathsf{NC}^1$ -complete problem (i.e., iterated multiplication of $S_{5}$ ) to this task.
We first embed the $\#$ and all $20[x\leftrightarrow y]$ tokens to distinct one-hot vectors. Given a token $u\in \Sigma$ and its associated one-hot vector $\mathbf{u}$ , we choose the key/query/value/PaTH projection matrices (i.e., $\mathbf{W}_k,\mathbf{W}_q,\mathbf{W}_v,\mathbf{W}_w\in \mathbb{R}^{6\times 21}$ ) matrices for the first attention head such that
$$\mathbf {W} _ {k} \mathbf {u} = \mathbf {k} [ u ] = \mathbf {1} \left\{u = \# \right\} \left(\mathbf {e} _ {1} + 2 \mathbf {e} _ {2} + 3 \mathbf {e} _ {3} + 4 \mathbf {e} _ {4} + 5 \mathbf {e} _ {5} - \mathbf {e} _ {6}\right),$$
$$\mathbf {W} _ {q} \mathbf {u} = \mathbf {q} [ u ] = n (\mathbf {e} _ {1} + 2 \mathbf {e} _ {2} + 3 \mathbf {e} _ {3} + 4 \mathbf {e} _ {4} + 5 \mathbf {e} _ {5} + 5 4. 5 \mathbf {e} _ {6}),$$
$$\mathbf {W} _ {w} \mathbf {u} = \mathbf {w} [ u ] = (\mathbf {e} _ {x} - \mathbf {e} _ {y}) / \sqrt {2} \text {f o r} v = [ x \leftrightarrow y ], \text {a n d} \mathbf {0} \text {i f} v = \# ,$$
$$\mathbf {W} _ {v} \mathbf {u} = \mathbf {v} [ u ] = \mathbf {1} \{u = \# \} \mathbf {e} _ {1}$$
$$\beta = 2.$$
(Hence, the query vectors and $\beta$ are input-independent.) In this case, as in Lemma 1 of [56] the one-step PaTH transformation is a true Householder transformation with
$$\mathbf {H} [ u ] = \mathbf {I} - 2 \mathbf {w} [ u ] \mathbf {w} [ u ] ^ {\top} \in \mathbb {R} ^ {6 \times 6}$$
and effectively swaps $x$ with $y$ . Now suppose the initial list is $[1, 2, 3, 4, 5]$ , and let $\pi(i)$ be the $i$ -th element of the final permuted list after the $n$ swaps. We then have
$$\left(\mathbf {k} \left[ c _ {0} \right] ^ {\top} \prod_ {s = 1} ^ {n} \mathbf {H} _ {s}\right) = \left(\left(\sum_ {i = 1} ^ {5} i \mathbf {e} _ {\pi (i)}\right) - \mathbf {e} _ {6}\right) ^ {\top},$$
and the attention logit from $n$ to 0 is given by
$$s _ {0} = \mathbf {k} [ c _ {0} ] ^ {\top} \prod_ {s = 1} ^ {n} \mathbf {H} _ {s} \mathbf {q} [ c _ {n} ] = n \left(\sum_ {i = 1} ^ {5} i \pi (i) - 5 4. 5\right).$$
By the rearrangement inequality, we further have
$$\sum_ {i = 1} ^ {5} i \pi (i) \leq \sum_ {i = 1} ^ {5} i ^ {2} = 5 5,$$
with equality holding if and only if $i = \pi(i)$ for all $i$ . Therefore $s_0 > 0.5n$ if the final list is the same as the initial list (i.e., identity permutation), and $s_0 < -0.5n$ otherwise. Because $\mathbf{k}[u] = \mathbf{0}$ for all $u \neq \#$ , we further have that the attention logs $s_l$ for all $l > 0$ is 0. The attention weight for the first position is then given by $a_0 = \frac{\exp(s_0)}{\exp(s_0) + n}$ , which is greater than $\frac{1}{n+1}$ if $s_0 > 0$ (i.e., permutation is
identity) and less than $\frac{1}{n + 1}$ otherwise. Since the value vector is $\mathbf{e}_1$ for $c_0$ and $\mathbf{0}$ otherwise, the output of this attention head is given by
$$\sum_ {l = 0} ^ {n} a _ {l} \mathbf {v} [ c _ {l} ] = \frac {\exp (s _ {0})}{\exp (s _ {0}) + n} \mathbf {e} _ {1}.$$
The second attention head is data-independent and uses $\mathbf{W}_k = \mathbf{W}_q = \mathbf{W}_w = \mathbf{0}$ , and the same value matrix $\mathbf{W}_v$ as above. This results in the output of this second attention head always being $\frac{1}{n+1} \mathbf{e}_1$ regardless of the input. Concatenating the output from these two heads gives the vector
$$\left[ \frac {\exp (s _ {0})}{\exp (s _ {0}) + n}, 0, 0, 0, 0, 0, \frac {1}{n + 1}, 0, 0, 0, 0, 0 \right],$$
i.e., 12 dimension vector with the first dimension as $\frac{\exp(s_0)}{\exp(s_0) + n}$ and the 7th dimension as $\frac{1}{n+1}$ . We can now have an output projection layer with matrix $\mathbf{W}_o$ that subtracts the 7th dimension from the 1st dimension (i.e., $[1,0,0,0,0,0, -1,0,0,0,0,0]$ in the first row). The first dimension of this output vector will be positive if the permutation is identity, and negative otherwise. We can then use the FFN layer with a sign( $\cdot$ ) nonlinearity (or a steep tanh function) to clamp this output to $\{-1, +1\}$ .
We do not explicitly need the $\log n$ precision assumption here but the construction here can be represented in $\log n$ precision while preserving the same functionality. We include this assumption to ensure that we are using same or weaker precision assumption with previous works on the circuit complexity of transformers (Merrill and Sabharwal [50], Chen et al. [7] and refs. therein). We can make the proof simpler in the above if we incorporate a $O(\log n)$ assumption since in this case the output of softmax is 1 when the final list is the same as the original list and is 0 otherwise (i.e., there is no need for the second attention head).
Theorem A.1. For any $n$ , there is a two-layer PaTH transformer with $O(\log n)$ precision can solve the flip-flop language modeling (FFLM) task with accuracy greater than $1 - 1/n^{100}$ for all inputs up to length $n$ .
Proof. Recall that in FFLM, there are five types of input w, i, r, 0, 1. We will now present a construction of the two-layer transformer with PaTH attention.
The token embeddings are given by
$$\operatorname {e m b} (\mathbf {w}) = \mathbf {e} _ {1} + \mathbf {e} _ {6}$$
$$\operatorname {e m b} (\mathbf {r}) = \mathbf {e} _ {2} + \mathbf {e} _ {6}$$
$$\operatorname {e m b} (\mathbf {i}) = \mathbf {e} _ {3} + \mathbf {e} _ {6}$$
$$\operatorname {e m b} (0) = \mathbf {e} _ {4} + \mathbf {e} _ {6}$$
$$\operatorname {e m b} (1) = \mathbf {e} _ {5} + \mathbf {e} _ {6}$$
where $\mathbf{e}_i$ is the one-hot $i$ -th basis vector.
The first attention layer will implement a one-hot attention from the bit tokens 0 and 1 to their corresponding instruction tokens. To achieve this, we will have the matrices $\mathbf{W}_k$ , $\mathbf{W}_q$ , $\mathbf{W}_w$ , $\mathbf{W}_v$ such that:
$$\mathbf {W} _ {k} \mathbf {h} = (h _ {1} + h _ {2} + h _ {3}) \mathbf {e} _ {1},$$
$$\mathbf {W} _ {q} \mathbf {h} = n h _ {6} \mathbf {e} _ {1},$$
$$\mathbf {W} _ {w} \mathbf {h} = \left(h _ {1} + h _ {2} + h _ {3}\right) \mathbf {e} _ {1} + \left(h _ {4} + h _ {5}\right) \mathbf {e} _ {2},$$
$$\mathbf {W} _ {v} \mathbf {h} = h _ {1} \mathbf {e} _ {7} + h _ {2} \mathbf {e} _ {8} + h _ {3} \mathbf {e} _ {9},$$
$$\beta = 1.$$
Then the transition matrix is given by
$$\mathbf {H} = \left\{ \begin{array}{l} \mathbf {I} - \mathbf {e} _ {1} \mathbf {e} _ {1} ^ {\top}, \text {i f i n p u t i s \{w , r , i \}} \\ \mathbf {I} - \mathbf {e} _ {2} \mathbf {e} _ {2} ^ {\top}, \text {i f i n p u t i s \{0 , 1 \}}, \end{array} \right.$$
i.e., the transition matrix projects the first dimension to 0 for the instruction tokens $\{\mathbf{w},\mathbf{r},\mathbf{i}\}$ and projects the second dimension to 0 the bit tokens $\{0,1\}$ . Similarly, the key vector $\mathbf{k}_i$ is $\mathbf{e}_1$ if the $i$ -th token is an instruction token, and $\mathbf{0}$ otherwise. Therefore when the $i$ -th token is 0 or 1,
$$\mathbf {k} _ {j} ^ {\top} \prod_ {s = j + 1} ^ {i} \mathbf {H} _ {s} \mathbf {q} _ {i} \neq 0$$
if and only if $j = i - 1$ , and in this case it equals to $n$ . Because we are considering an $O(\log n)$ precision transformer, the attention score after softmax becomes 1-hot for every bit token. After this attention layer, the 7-th to 9-th dimension of the bit tokens now encode the type of instruction of the previous token.
The first FFN layer will map the 1 to 9 dimensions of 0 and 1 tokens to be a one-hot embedding for each value and corresponding instruction type,
$$\operatorname {F F N} (\mathbf {h}) _ {i} = 0, i \notin \{1 0, 1 1, 1 2 \},$$
$$\operatorname {F F N} (\mathbf {h}) _ {1 0} = \mathbf {1} \left\{h _ {4} = 1, h _ {7} = 1 \right\},$$
$$\operatorname {F F N} (\mathbf {h}) _ {1 1} = \mathbf {1} \left\{h _ {5} = 1, h _ {7} = 1 \right\},$$
$$\operatorname {F F N} (\mathbf {h}) _ {1 2} = 1, \text {o t h e r w i s e}.$$
With $\mathbf{1}\{\cdot\}$ being the indicator function. Specifically, the 10-th dimension will be 1 for every 0 following a w and the 11-th dimension will be 1 for every 1 following a w.
The second attention layer will operate on the 10-th and 11-th dimensions of the input embedding and implement the following:
$$\mathbf {W} _ {k} \mathbf {h} = (h _ {1 0} + h _ {1 1}) \mathbf {e} _ {1}$$
$$\mathbf {W} _ {q} \mathbf {h} = n h _ {6} \mathbf {e} _ {1}$$
$$\mathbf {W} _ {w} \mathbf {h} = \left(h _ {1 0} + h _ {1 1}\right) \mathbf {e} _ {1} + h _ {1 2} \mathbf {e} _ {2}$$
$$\mathbf {W} _ {v} \mathbf {h} = h _ {8} \mathbf {e} _ {1 3} + h _ {9} \mathbf {e} _ {1 4}$$
$$\beta (\mathbf {h}) = \mathbf {1} \left\{h _ {8} + h _ {9} > 0 \right\}$$
Here we assume that we can use a step function for $\beta$ (or alternatively, we can use a steep-enough logistic function for it to be effectively a step function under the precision considered). This shows that for every token that is not a 0 or 1 that follows $\mathbb{W}$ , the transition matrix is identity; for 0 or 1 that follows $\mathbb{W}$ , the transition matrix is a matrix that projects the first dimension to 0. Then for any $i\geq 2$
$$\mathbf {k} _ {j} ^ {\top} \prod_ {s = j + 1} ^ {i} \mathbf {H} _ {s} \mathbf {q} _ {i} \neq 0$$
if and only if $j$ is the largest token that is a 0 or 1 that follows $w$ with $j \leq i$ . This $j$ is guaranteed to exist because in FFLM, the first token is always $w$ . In this case, this term equals $n$ . Using the same argument as the first layer, the attention becomes one-hot and the output of attention encode the value of last 0 or 1 token following a $w$ . By the definition of flip-flop, this is the current state.
The second FFN layer will operate on the 13-th and 14-th dimensions of the input,
$$\operatorname {F F N} (\mathbf {h}) _ {i} = 0, i \notin \{1 5, 1 6 \},$$
$$\operatorname {F F N} (\mathbf {h}) _ {1 5} = \mathbf {1} (h _ {2} = 1, h _ {6} = 1),$$
$$\operatorname {F F N} (\mathbf {h}) _ {1 6} = \mathbf {1} (h _ {2} = 1, h _ {6} = 1).$$
Specifically, the 15-th and 16-th dimension of the output will encode the state value for each $r$ token. After this layer, dimensions 1, 3, 4, 5, 15, and 16 of the embedding becomes one-hot, each corresponding to a different output distribution in FFLM.
Finally, the LM head will map dimensions 1, 3, 4, 5, 15, and 16 to their corresponding next-token probability before softmax. Concretely,
$$\begin{array}{l} \mathbf {W} _ {L M} \mathbf {h} = \left(T \mathbf {e} _ {4} + T \mathbf {e} _ {5}\right) \left(h _ {1} + h _ {3}\right) \\ + \left(T \mathbf {e} _ {1} + T \mathbf {e} _ {2} + T \mathbf {e} _ {3}\right) \left(h _ {4} + h _ {5}\right) \\ + n \mathbf {e} _ {4} h _ {1 5} + n \mathbf {e} _ {5} h _ {1 6}. \\ \end{array}$$
Here $T \approx \log n$ is an appropriate number such that softmax over $T\mathbf{e}_4 + T\mathbf{e}_5$ and $T\mathbf{e}_1 + T\mathbf{e}_2 + T\mathbf{e}_3$ yields a uniform distribution with error smaller than $1 / n^{101}$ .
<table><tr><td>Task</td><td>Example</td><td>Evaluation Focus</td></tr><tr><td>Task 1: Single Supporting Fact</td><td>Mary went to the bathroom. John moved to the hallway. Mary travelled to the office. Q: Where is Mary? A: office</td><td>Identify a single explicit fact from context.</td></tr><tr><td>Task 2: Two Sup-porting Facts</td><td>John is in the playground. John picked up the football. Bob went to the kitchen. Q: Where is the football? A: playground</td><td>Combine two clues to infer an object's location.</td></tr><tr><td>Task 3: Three Supporting Facts</td><td>John picked up the apple. John went to the office. John went to the kitchen. John dropped the apple. Q: Where was the apple before the kitchen? A: office</td><td>Track object movement and temporal order.</td></tr><tr><td>Task 4: Two Ar-gument Relations</td><td>Office is north of bedroom. Bedroom is north of bathroom. Kitchen is west of garden. Q1: What is north of bedroom? A: office Q2: What is bedroom north of? A: bathroom</td><td>Reason over spatial rela-tionships.</td></tr><tr><td>Task 5: Three Ar-gument Relations</td><td>Mary gave the cake to Fred. Fred gave the cake to Bill. Jeff was given the milk by Bill. Q1: Who gave the cake to Fred? A: Mary Q2: Who did Fred give the cake to? A: Bill</td><td>Transitive reasoning over possession chains.</td></tr></table>
Table 6: Descriptions and examples of the first five bAbI tasks. Each task highlights a specific reasoning skill required for successful question answering.
# B Experimental Setup & Additional Results
 Figure 5: BABILong performance breakdowns. QA1: Single supporting fact. QA2: Two supporting facts. QA3: Three supporting facts. QA4: Two arg relations. QA5: Three arg relations.
Hyperparameter settings. All models are trained with AdamW [46], using a cosine learning rate schedule with a 1B-token warmup. The peak learning rate is 1e-3, with both initial and final rates set to 3e-5. We apply a weight decay of 0.01 and gradient clipping of 1.0. The batch size is 2M tokens. Parameters are initialized with a standard deviation of 0.02. Each 760M model is trained on 8 H100 GPUs for 2-3 days. For synthetic tasks, we use A100 GPUs, completing training within several hours.
BABILong Figure 5 presents the performance breakdown across sub-tasks and sequence lengths. Task descriptions are provided in Table 6.
LongBench-E Detailed results are presented in Table 7.
<table><tr><td rowspan="2">Category</td><td rowspan="2">Dataset</td><td colspan="4">0-4k</td><td colspan="4">4-8k</td><td colspan="4">8k-16k</td></tr><tr><td>FoX</td><td>FoX-PaTH</td><td>PaTH</td><td>RoPE</td><td>FoX</td><td>FoX-PaTH</td><td>PaTH</td><td>RoPE</td><td>FoX</td><td>FoX-PaTH</td><td>PaTH</td><td>RoPE</td></tr><tr><td rowspan="4">QA</td><td>2wikimqa</td><td>21.0</td><td>23.7</td><td>28.7</td><td>23.9</td><td>15.3</td><td>22.5</td><td>20.8</td><td>0.9</td><td>9.4</td><td>8.4</td><td>7.3</td><td>0.1</td></tr><tr><td>hotpotqa</td><td>20.3</td><td>16.2</td><td>19.0</td><td>25.2</td><td>9.3</td><td>16.1</td><td>22.8</td><td>0.8</td><td>5.6</td><td>7.7</td><td>8.8</td><td>0.4</td></tr><tr><td>multifieldqa_en</td><td>39.1</td><td>39.6</td><td>38.6</td><td>18.0</td><td>24.9</td><td>31.4</td><td>27.2</td><td>5.1</td><td>16.0</td><td>19.5</td><td>19.2</td><td>1.9</td></tr><tr><td>qasper</td><td>22.4</td><td>24.6</td><td>25.9</td><td>15.1</td><td>14.9</td><td>19.8</td><td>16.8</td><td>1.8</td><td>7.0</td><td>10.1</td><td>10.6</td><td>1.9</td></tr><tr><td rowspan="2">Summarization</td><td>multi_news</td><td>9.1</td><td>6.9</td><td>12.1</td><td>10.2</td><td>7.3</td><td>9.8</td><td>9.6</td><td>3.1</td><td>6.1</td><td>8.3</td><td>8.3</td><td>1.7</td></tr><tr><td>gov_report</td><td>14.4</td><td>10.2</td><td>22.3</td><td>12.4</td><td>14.5</td><td>13.6</td><td>17.9</td><td>4.9</td><td>5.9</td><td>11.9</td><td>11.6</td><td>2.5</td></tr><tr><td rowspan="3">Few-shot</td><td>trec</td><td>35.0</td><td>36.7</td><td>40.0</td><td>23.3</td><td>27.5</td><td>26.3</td><td>35.0</td><td>1.2</td><td>20.6</td><td>26.3</td><td>20.0</td><td>0.0</td></tr><tr><td>triviaqa</td><td>33.2</td><td>28.9</td><td>36.0</td><td>21.8</td><td>18.2</td><td>27.6</td><td>32.0</td><td>2.8</td><td>13.7</td><td>31.6</td><td>18.4</td><td>0.4</td></tr><tr><td>samsum</td><td>21.4</td><td>27.1</td><td>26.8</td><td>19.3</td><td>16.9</td><td>27.6</td><td>23.6</td><td>3.2</td><td>9.1</td><td>15.7</td><td>15.6</td><td>0.7</td></tr><tr><td rowspan="2">Code</td><td>lcc</td><td>19.2</td><td>21.4</td><td>22.3</td><td>22.1</td><td>18.8</td><td>23.3</td><td>18.6</td><td>7.9</td><td>18.2</td><td>18.9</td><td>19.0</td><td>4.8</td></tr><tr><td>repobench-p</td><td>21.8</td><td>22.7</td><td>27.3</td><td>14.6</td><td>18.4</td><td>22.5</td><td>22.7</td><td>9.2</td><td>17.5</td><td>19.3</td><td>19.2</td><td>7.6</td></tr><tr><td>Average</td><td></td><td>23.4</td><td>23.5</td><td>27.2</td><td>18.7</td><td>16.9</td><td>21.9</td><td>22.5</td><td>3.7</td><td>11.7</td><td>16.1</td><td>14.4</td><td>2.0</td></tr></table>
Table 7: Performance comparison grouped by task category. Each bolded value indicates the best model score for the respective dataset and length bucket.123version https://git-lfs.github.com/spec/v1oid sha256:d525156f064089042be13bfae7fd179cd4bfff439c64fb150336bfa86aea3b7asize 831789123version https://git-lfs.github.com/spec/v1oid sha256:503efcea9bf42f3fc0dea33b61a3a88c1f2bc7bcbe52e9623ae5410a44f6f219size 649542123version https://git-lfs.github.com/spec/v1oid sha256:e32e65b663eea5ff74aeee67d93a375b9d51e819e42cc3ff99869d7844f142f5size 1541942.gitattributes+64
2025/PRESTO_ Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs/f1fe77a8-357a-4b90-83ea-7b5660325ccb_content_list.jsonAdded
2025/PRESTO_ Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs/f1fe77a8-357a-4b90-83ea-7b5660325ccb_model.jsonAdded
2025/PRESTO_ Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs/f1fe77a8-357a-4b90-83ea-7b5660325ccb_origin.pdfAdded+3
2025/PRESTO_ Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs/full.mdAdded+563
2025/PRESTO_ Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs/images.zipAdded+3
2025/PRESTO_ Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs/layout.jsonAdded
2025/PRIMT_ Preference-based Reinforcement Learning with Multimodal Feedback and Trajectory Synthesis from Foundation Models/436d48b8-a9a7-48ff-aafb-dd5a05d37eba_content_list.jsonAdded
2025/PRIMT_ Preference-based Reinforcement Learning with Multimodal Feedback and Trajectory Synthesis from Foundation Models/436d48b8-a9a7-48ff-aafb-dd5a05d37eba_model.jsonAdded
2025/PRIMT_ Preference-based Reinforcement Learning with Multimodal Feedback and Trajectory Synthesis from Foundation Models/436d48b8-a9a7-48ff-aafb-dd5a05d37eba_origin.pdfAdded+3
2025/PRIMT_ Preference-based Reinforcement Learning with Multimodal Feedback and Trajectory Synthesis from Foundation Models/full.mdAdded
2025/PRIMT_ Preference-based Reinforcement Learning with Multimodal Feedback and Trajectory Synthesis from Foundation Models/images.zipAdded+3
2025/PRIMT_ Preference-based Reinforcement Learning with Multimodal Feedback and Trajectory Synthesis from Foundation Models/layout.jsonAdded
2025/PROFIT_ A Specialized Optimizer for Deep Fine Tuning/2e5c67c6-a897-4260-9453-ff12b964eca3_content_list.jsonAdded
2025/PROFIT_ A Specialized Optimizer for Deep Fine Tuning/2e5c67c6-a897-4260-9453-ff12b964eca3_model.jsonAdded
2025/PROFIT_ A Specialized Optimizer for Deep Fine Tuning/2e5c67c6-a897-4260-9453-ff12b964eca3_origin.pdfAdded+3
2025/PROFIT_ A Specialized Optimizer for Deep Fine Tuning/full.mdAdded
2025/PROFIT_ A Specialized Optimizer for Deep Fine Tuning/images.zipAdded+3
2025/PROFIT_ A Specialized Optimizer for Deep Fine Tuning/layout.jsonAdded
2025/PRSformer_ Disease Prediction from Million-Scale Individual Genotypes/7529c3c3-e8eb-4e68-bffb-9946e4383806_content_list.jsonAdded
2025/PRSformer_ Disease Prediction from Million-Scale Individual Genotypes/7529c3c3-e8eb-4e68-bffb-9946e4383806_model.jsonAdded
2025/PRSformer_ Disease Prediction from Million-Scale Individual Genotypes/7529c3c3-e8eb-4e68-bffb-9946e4383806_origin.pdfAdded+3
2025/PRSformer_ Disease Prediction from Million-Scale Individual Genotypes/full.mdAdded
2025/PRSformer_ Disease Prediction from Million-Scale Individual Genotypes/images.zipAdded+3
2025/PRSformer_ Disease Prediction from Million-Scale Individual Genotypes/layout.jsonAdded
2025/PT-MoE_ An Efficient Finetuning Framework for Integrating Mixture-of-Experts into Prompt Tuning/b9476a8f-a396-48d3-8917-e387d3c19fb6_content_list.jsonAdded
2025/PT-MoE_ An Efficient Finetuning Framework for Integrating Mixture-of-Experts into Prompt Tuning/b9476a8f-a396-48d3-8917-e387d3c19fb6_model.jsonAdded
2025/PT-MoE_ An Efficient Finetuning Framework for Integrating Mixture-of-Experts into Prompt Tuning/b9476a8f-a396-48d3-8917-e387d3c19fb6_origin.pdfAdded+3
2025/PT-MoE_ An Efficient Finetuning Framework for Integrating Mixture-of-Experts into Prompt Tuning/full.mdAdded+536
2025/PT-MoE_ An Efficient Finetuning Framework for Integrating Mixture-of-Experts into Prompt Tuning/images.zipAdded+3
2025/PT-MoE_ An Efficient Finetuning Framework for Integrating Mixture-of-Experts into Prompt Tuning/layout.jsonAdded
2025/PUATE_ Efficient ATE Estimation from Treated (Positive) and Unlabeled Units/66e693e3-bc67-4cb7-b37e-0f305a140b97_content_list.jsonAdded
2025/PUATE_ Efficient ATE Estimation from Treated (Positive) and Unlabeled Units/66e693e3-bc67-4cb7-b37e-0f305a140b97_model.jsonAdded
2025/PUATE_ Efficient ATE Estimation from Treated (Positive) and Unlabeled Units/66e693e3-bc67-4cb7-b37e-0f305a140b97_origin.pdfAdded+3
2025/PUATE_ Efficient ATE Estimation from Treated (Positive) and Unlabeled Units/full.mdAdded
2025/PUATE_ Efficient ATE Estimation from Treated (Positive) and Unlabeled Units/images.zipAdded+3
2025/PUATE_ Efficient ATE Estimation from Treated (Positive) and Unlabeled Units/layout.jsonAdded
2025/PaTH Attention_ Position Encoding via Accumulating Householder Transformations/d6b9d663-530b-4a00-91ec-171ca9581718_content_list.jsonAdded
2025/PaTH Attention_ Position Encoding via Accumulating Householder Transformations/d6b9d663-530b-4a00-91ec-171ca9581718_model.jsonAdded
2025/PaTH Attention_ Position Encoding via Accumulating Householder Transformations/d6b9d663-530b-4a00-91ec-171ca9581718_origin.pdfAdded+3
2025/PaTH Attention_ Position Encoding via Accumulating Householder Transformations/full.mdAdded+690
2025/PaTH Attention_ Position Encoding via Accumulating Householder Transformations/images.zipAdded+3
2025/PaTH Attention_ Position Encoding via Accumulating Householder Transformations/layout.jsonAdded
2025/PaZO_ Preconditioned Accelerated Zeroth-Order Optimization for Fine-Tuning LLMs/72355d5c-5242-4182-aa4e-5f9688c82e2b_content_list.jsonAdded
2025/PaZO_ Preconditioned Accelerated Zeroth-Order Optimization for Fine-Tuning LLMs/72355d5c-5242-4182-aa4e-5f9688c82e2b_model.jsonAdded
2025/PaZO_ Preconditioned Accelerated Zeroth-Order Optimization for Fine-Tuning LLMs/72355d5c-5242-4182-aa4e-5f9688c82e2b_origin.pdfAdded+3
2025/PaZO_ Preconditioned Accelerated Zeroth-Order Optimization for Fine-Tuning LLMs/full.mdAdded
2025/PaZO_ Preconditioned Accelerated Zeroth-Order Optimization for Fine-Tuning LLMs/images.zipAdded+3
2025/PaZO_ Preconditioned Accelerated Zeroth-Order Optimization for Fine-Tuning LLMs/layout.jsonAdded
2025/PaceLLM_ Brain-Inspired Large Language Models for Long-Context Understanding/cc9ef359-fb41-4687-b0c0-a435030491a5_content_list.jsonAdded