Chelsea707 commited on
Commit
a8fd994
·
verified ·
1 Parent(s): 434a118

Add Batch b65ae6d0-35d7-49ad-967c-ab70e5f20a60 data

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +64 -0
  2. 2025/Modality-Specialized Synergizers for Interleaved Vision-Language Generalists/158d19df-479c-4aeb-86c2-9aee59a25995_content_list.json +0 -0
  3. 2025/Modality-Specialized Synergizers for Interleaved Vision-Language Generalists/158d19df-479c-4aeb-86c2-9aee59a25995_model.json +0 -0
  4. 2025/Modality-Specialized Synergizers for Interleaved Vision-Language Generalists/158d19df-479c-4aeb-86c2-9aee59a25995_origin.pdf +3 -0
  5. 2025/Modality-Specialized Synergizers for Interleaved Vision-Language Generalists/full.md +0 -0
  6. 2025/Modality-Specialized Synergizers for Interleaved Vision-Language Generalists/images.zip +3 -0
  7. 2025/Modality-Specialized Synergizers for Interleaved Vision-Language Generalists/layout.json +0 -0
  8. 2025/Model Editing as a Robust and Denoised variant of DPO_ A Case Study on Toxicity/aad24928-8f60-4f09-b5b5-bc4ac0fa04fc_content_list.json +0 -0
  9. 2025/Model Editing as a Robust and Denoised variant of DPO_ A Case Study on Toxicity/aad24928-8f60-4f09-b5b5-bc4ac0fa04fc_model.json +0 -0
  10. 2025/Model Editing as a Robust and Denoised variant of DPO_ A Case Study on Toxicity/aad24928-8f60-4f09-b5b5-bc4ac0fa04fc_origin.pdf +3 -0
  11. 2025/Model Editing as a Robust and Denoised variant of DPO_ A Case Study on Toxicity/full.md +0 -0
  12. 2025/Model Editing as a Robust and Denoised variant of DPO_ A Case Study on Toxicity/images.zip +3 -0
  13. 2025/Model Editing as a Robust and Denoised variant of DPO_ A Case Study on Toxicity/layout.json +0 -0
  14. 2025/Model Equality Testing_ Which Model is this API Serving_/8d15512f-4850-44b9-9f62-11c1ca40138e_content_list.json +1777 -0
  15. 2025/Model Equality Testing_ Which Model is this API Serving_/8d15512f-4850-44b9-9f62-11c1ca40138e_model.json +0 -0
  16. 2025/Model Equality Testing_ Which Model is this API Serving_/8d15512f-4850-44b9-9f62-11c1ca40138e_origin.pdf +3 -0
  17. 2025/Model Equality Testing_ Which Model is this API Serving_/full.md +304 -0
  18. 2025/Model Equality Testing_ Which Model is this API Serving_/images.zip +3 -0
  19. 2025/Model Equality Testing_ Which Model is this API Serving_/layout.json +0 -0
  20. 2025/Model Risk-sensitive Offline Reinforcement Learning/5543bdac-6e10-473b-812d-43360d919a5e_content_list.json +0 -0
  21. 2025/Model Risk-sensitive Offline Reinforcement Learning/5543bdac-6e10-473b-812d-43360d919a5e_model.json +0 -0
  22. 2025/Model Risk-sensitive Offline Reinforcement Learning/5543bdac-6e10-473b-812d-43360d919a5e_origin.pdf +3 -0
  23. 2025/Model Risk-sensitive Offline Reinforcement Learning/full.md +587 -0
  24. 2025/Model Risk-sensitive Offline Reinforcement Learning/images.zip +3 -0
  25. 2025/Model Risk-sensitive Offline Reinforcement Learning/layout.json +0 -0
  26. 2025/Model merging with SVD to tie the Knots/59dbc8c1-c842-44a6-bd97-3df9c9da9c50_content_list.json +0 -0
  27. 2025/Model merging with SVD to tie the Knots/59dbc8c1-c842-44a6-bd97-3df9c9da9c50_model.json +0 -0
  28. 2025/Model merging with SVD to tie the Knots/59dbc8c1-c842-44a6-bd97-3df9c9da9c50_origin.pdf +3 -0
  29. 2025/Model merging with SVD to tie the Knots/full.md +362 -0
  30. 2025/Model merging with SVD to tie the Knots/images.zip +3 -0
  31. 2025/Model merging with SVD to tie the Knots/layout.json +0 -0
  32. 2025/Model-Agnostic Knowledge Guided Correction for Improved Neural Surrogate Rollout/ad4c2f01-4f37-441e-a45e-bb12f3d79389_content_list.json +0 -0
  33. 2025/Model-Agnostic Knowledge Guided Correction for Improved Neural Surrogate Rollout/ad4c2f01-4f37-441e-a45e-bb12f3d79389_model.json +0 -0
  34. 2025/Model-Agnostic Knowledge Guided Correction for Improved Neural Surrogate Rollout/ad4c2f01-4f37-441e-a45e-bb12f3d79389_origin.pdf +3 -0
  35. 2025/Model-Agnostic Knowledge Guided Correction for Improved Neural Surrogate Rollout/full.md +368 -0
  36. 2025/Model-Agnostic Knowledge Guided Correction for Improved Neural Surrogate Rollout/images.zip +3 -0
  37. 2025/Model-Agnostic Knowledge Guided Correction for Improved Neural Surrogate Rollout/layout.json +0 -0
  38. 2025/Model-Free Offline Reinforcement Learning with Enhanced Robustness/b27ad8de-fb07-40a0-89a8-4c0214ea2a3c_content_list.json +0 -0
  39. 2025/Model-Free Offline Reinforcement Learning with Enhanced Robustness/b27ad8de-fb07-40a0-89a8-4c0214ea2a3c_model.json +0 -0
  40. 2025/Model-Free Offline Reinforcement Learning with Enhanced Robustness/b27ad8de-fb07-40a0-89a8-4c0214ea2a3c_origin.pdf +3 -0
  41. 2025/Model-Free Offline Reinforcement Learning with Enhanced Robustness/full.md +0 -0
  42. 2025/Model-Free Offline Reinforcement Learning with Enhanced Robustness/images.zip +3 -0
  43. 2025/Model-Free Offline Reinforcement Learning with Enhanced Robustness/layout.json +0 -0
  44. 2025/Model-agnostic meta-learners for estimating heterogeneous treatment effects over time/e9287bb5-ea91-46f9-a22c-1f96933276eb_content_list.json +0 -0
  45. 2025/Model-agnostic meta-learners for estimating heterogeneous treatment effects over time/e9287bb5-ea91-46f9-a22c-1f96933276eb_model.json +0 -0
  46. 2025/Model-agnostic meta-learners for estimating heterogeneous treatment effects over time/e9287bb5-ea91-46f9-a22c-1f96933276eb_origin.pdf +3 -0
  47. 2025/Model-agnostic meta-learners for estimating heterogeneous treatment effects over time/full.md +0 -0
  48. 2025/Model-agnostic meta-learners for estimating heterogeneous treatment effects over time/images.zip +3 -0
  49. 2025/Model-agnostic meta-learners for estimating heterogeneous treatment effects over time/layout.json +0 -0
  50. 2025/Model-based Offline Reinforcement Learning with Lower Expectile Q-Learning/b31c21a6-dff9-4395-87fd-94f52fc2cefa_content_list.json +0 -0
.gitattributes CHANGED
@@ -2072,3 +2072,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
2072
  2025/MoDGS_[[:space:]]Dynamic[[:space:]]Gaussian[[:space:]]Splatting[[:space:]]from[[:space:]]Casually-captured[[:space:]]Monocular[[:space:]]Videos[[:space:]]with[[:space:]]Depth[[:space:]]Priors/9285862b-2816-4677-b5dd-bae68cb1cc5c_origin.pdf filter=lfs diff=lfs merge=lfs -text
2073
  2025/MoLEx_[[:space:]]Mixture[[:space:]]of[[:space:]]Layer[[:space:]]Experts[[:space:]]for[[:space:]]Fine-tuning[[:space:]]with[[:space:]]Sparse[[:space:]]Upcycling/d513f050-690e-4073-81be-aee65e8c7670_origin.pdf filter=lfs diff=lfs merge=lfs -text
2074
  2025/MoS_[[:space:]]Unleashing[[:space:]]Parameter[[:space:]]Efficiency[[:space:]]of[[:space:]]Low-Rank[[:space:]]Adaptation[[:space:]]with[[:space:]]Mixture[[:space:]]of[[:space:]]Shards/ca7e2cc6-09af-411a-a02f-3995796c6701_origin.pdf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2072
  2025/MoDGS_[[:space:]]Dynamic[[:space:]]Gaussian[[:space:]]Splatting[[:space:]]from[[:space:]]Casually-captured[[:space:]]Monocular[[:space:]]Videos[[:space:]]with[[:space:]]Depth[[:space:]]Priors/9285862b-2816-4677-b5dd-bae68cb1cc5c_origin.pdf filter=lfs diff=lfs merge=lfs -text
2073
  2025/MoLEx_[[:space:]]Mixture[[:space:]]of[[:space:]]Layer[[:space:]]Experts[[:space:]]for[[:space:]]Fine-tuning[[:space:]]with[[:space:]]Sparse[[:space:]]Upcycling/d513f050-690e-4073-81be-aee65e8c7670_origin.pdf filter=lfs diff=lfs merge=lfs -text
2074
  2025/MoS_[[:space:]]Unleashing[[:space:]]Parameter[[:space:]]Efficiency[[:space:]]of[[:space:]]Low-Rank[[:space:]]Adaptation[[:space:]]with[[:space:]]Mixture[[:space:]]of[[:space:]]Shards/ca7e2cc6-09af-411a-a02f-3995796c6701_origin.pdf filter=lfs diff=lfs merge=lfs -text
2075
+ 2025/Modality-Specialized[[:space:]]Synergizers[[:space:]]for[[:space:]]Interleaved[[:space:]]Vision-Language[[:space:]]Generalists/158d19df-479c-4aeb-86c2-9aee59a25995_origin.pdf filter=lfs diff=lfs merge=lfs -text
2076
+ 2025/Model[[:space:]]Editing[[:space:]]as[[:space:]]a[[:space:]]Robust[[:space:]]and[[:space:]]Denoised[[:space:]]variant[[:space:]]of[[:space:]]DPO_[[:space:]]A[[:space:]]Case[[:space:]]Study[[:space:]]on[[:space:]]Toxicity/aad24928-8f60-4f09-b5b5-bc4ac0fa04fc_origin.pdf filter=lfs diff=lfs merge=lfs -text
2077
+ 2025/Model[[:space:]]Equality[[:space:]]Testing_[[:space:]]Which[[:space:]]Model[[:space:]]is[[:space:]]this[[:space:]]API[[:space:]]Serving_/8d15512f-4850-44b9-9f62-11c1ca40138e_origin.pdf filter=lfs diff=lfs merge=lfs -text
2078
+ 2025/Model[[:space:]]Risk-sensitive[[:space:]]Offline[[:space:]]Reinforcement[[:space:]]Learning/5543bdac-6e10-473b-812d-43360d919a5e_origin.pdf filter=lfs diff=lfs merge=lfs -text
2079
+ 2025/Model[[:space:]]merging[[:space:]]with[[:space:]]SVD[[:space:]]to[[:space:]]tie[[:space:]]the[[:space:]]Knots/59dbc8c1-c842-44a6-bd97-3df9c9da9c50_origin.pdf filter=lfs diff=lfs merge=lfs -text
2080
+ 2025/Model-Agnostic[[:space:]]Knowledge[[:space:]]Guided[[:space:]]Correction[[:space:]]for[[:space:]]Improved[[:space:]]Neural[[:space:]]Surrogate[[:space:]]Rollout/ad4c2f01-4f37-441e-a45e-bb12f3d79389_origin.pdf filter=lfs diff=lfs merge=lfs -text
2081
+ 2025/Model-Free[[:space:]]Offline[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]with[[:space:]]Enhanced[[:space:]]Robustness/b27ad8de-fb07-40a0-89a8-4c0214ea2a3c_origin.pdf filter=lfs diff=lfs merge=lfs -text
2082
+ 2025/Model-agnostic[[:space:]]meta-learners[[:space:]]for[[:space:]]estimating[[:space:]]heterogeneous[[:space:]]treatment[[:space:]]effects[[:space:]]over[[:space:]]time/e9287bb5-ea91-46f9-a22c-1f96933276eb_origin.pdf filter=lfs diff=lfs merge=lfs -text
2083
+ 2025/Model-based[[:space:]]Offline[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]with[[:space:]]Lower[[:space:]]Expectile[[:space:]]Q-Learning/b31c21a6-dff9-4395-87fd-94f52fc2cefa_origin.pdf filter=lfs diff=lfs merge=lfs -text
2084
+ 2025/Model-based[[:space:]]RL[[:space:]]as[[:space:]]a[[:space:]]Minimalist[[:space:]]Approach[[:space:]]to[[:space:]]Horizon-Free[[:space:]]and[[:space:]]Second-Order[[:space:]]Bounds/978a7de8-48f3-4552-b729-9191de0b3b39_origin.pdf filter=lfs diff=lfs merge=lfs -text
2085
+ 2025/Modeling[[:space:]]Fine-Grained[[:space:]]Hand-Object[[:space:]]Dynamics[[:space:]]for[[:space:]]Egocentric[[:space:]]Video[[:space:]]Representation[[:space:]]Learning/e37097b4-c30c-49da-aa02-70ccf5c9964b_origin.pdf filter=lfs diff=lfs merge=lfs -text
2086
+ 2025/Modeling[[:space:]]Future[[:space:]]Conversation[[:space:]]Turns[[:space:]]to[[:space:]]Teach[[:space:]]LLMs[[:space:]]to[[:space:]]Ask[[:space:]]Clarifying[[:space:]]Questions/ed1e379e-b9b1-4b17-9601-05dd310858d0_origin.pdf filter=lfs diff=lfs merge=lfs -text
2087
+ 2025/Modeling[[:space:]]Unseen[[:space:]]Environments[[:space:]]with[[:space:]]Language-guided[[:space:]]Composable[[:space:]]Causal[[:space:]]Components[[:space:]]in[[:space:]]Reinforcement[[:space:]]Learning/38b4380b-08d5-401e-9015-401fa1dccede_origin.pdf filter=lfs diff=lfs merge=lfs -text
2088
+ 2025/Modeling[[:space:]]dynamic[[:space:]]social[[:space:]]vision[[:space:]]highlights[[:space:]]gaps[[:space:]]between[[:space:]]deep[[:space:]]learning[[:space:]]and[[:space:]]humans/20ae77bb-87ba-4dd7-9d03-7775c63fa3a7_origin.pdf filter=lfs diff=lfs merge=lfs -text
2089
+ 2025/MolSpectra_[[:space:]]Pre-training[[:space:]]3D[[:space:]]Molecular[[:space:]]Representation[[:space:]]with[[:space:]]Multi-modal[[:space:]]Energy[[:space:]]Spectra/1da632ce-190f-4159-b21f-cd6f220e1b1c_origin.pdf filter=lfs diff=lfs merge=lfs -text
2090
+ 2025/Monet_[[:space:]]Mixture[[:space:]]of[[:space:]]Monosemantic[[:space:]]Experts[[:space:]]for[[:space:]]Transformers/f66e83f3-fc37-44ce-bed4-253b5099670b_origin.pdf filter=lfs diff=lfs merge=lfs -text
2091
+ 2025/Monte[[:space:]]Carlo[[:space:]]Planning[[:space:]]with[[:space:]]Large[[:space:]]Language[[:space:]]Model[[:space:]]for[[:space:]]Text-Based[[:space:]]Game[[:space:]]Agents/3fa30d11-04ce-4b35-b90f-a4f323c79a33_origin.pdf filter=lfs diff=lfs merge=lfs -text
2092
+ 2025/Montessori-Instruct_[[:space:]]Generate[[:space:]]Influential[[:space:]]Training[[:space:]]Data[[:space:]]Tailored[[:space:]]for[[:space:]]Student[[:space:]]Learning/1c295b21-8da5-48c1-ab52-9246ae202fa6_origin.pdf filter=lfs diff=lfs merge=lfs -text
2093
+ 2025/Moral[[:space:]]Alignment[[:space:]]for[[:space:]]LLM[[:space:]]Agents/50a72914-db8b-4db7-b001-284063fbb353_origin.pdf filter=lfs diff=lfs merge=lfs -text
2094
+ 2025/More[[:space:]]Experts[[:space:]]Than[[:space:]]Galaxies_[[:space:]]Conditionally-Overlapping[[:space:]]Experts[[:space:]]with[[:space:]]Biologically-Inspired[[:space:]]Fixed[[:space:]]Routing/71f55d03-c8b3-4801-9b77-855a9103587c_origin.pdf filter=lfs diff=lfs merge=lfs -text
2095
+ 2025/Morphing[[:space:]]Tokens[[:space:]]Draw[[:space:]]Strong[[:space:]]Masked[[:space:]]Image[[:space:]]Models/fc101254-4305-4f52-a12e-fe4a9e2b2772_origin.pdf filter=lfs diff=lfs merge=lfs -text
2096
+ 2025/MotherNet_[[:space:]]Fast[[:space:]]Training[[:space:]]and[[:space:]]Inference[[:space:]]via[[:space:]]Hyper-Network[[:space:]]Transformers/3f74e5bf-04c7-48f1-b02e-31a537b37418_origin.pdf filter=lfs diff=lfs merge=lfs -text
2097
+ 2025/Motion[[:space:]]Control[[:space:]]of[[:space:]]High-Dimensional[[:space:]]Musculoskeletal[[:space:]]Systems[[:space:]]with[[:space:]]Hierarchical[[:space:]]Model-Based[[:space:]]Planning/0629615f-4229-4721-97ee-1965e48af7de_origin.pdf filter=lfs diff=lfs merge=lfs -text
2098
+ 2025/Motion-Agent_[[:space:]]A[[:space:]]Conversational[[:space:]]Framework[[:space:]]for[[:space:]]Human[[:space:]]Motion[[:space:]]Generation[[:space:]]with[[:space:]]LLMs/db60e835-8844-4f95-bcdb-83ef1f2a2b42_origin.pdf filter=lfs diff=lfs merge=lfs -text
2099
+ 2025/MotionClone_[[:space:]]Training-Free[[:space:]]Motion[[:space:]]Cloning[[:space:]]for[[:space:]]Controllable[[:space:]]Video[[:space:]]Generation/407f964f-3a63-42eb-8490-c87f1406b785_origin.pdf filter=lfs diff=lfs merge=lfs -text
2100
+ 2025/MotionDreamer_[[:space:]]One-to-Many[[:space:]]Motion[[:space:]]Synthesis[[:space:]]with[[:space:]]Localized[[:space:]]Generative[[:space:]]Masked[[:space:]]Transformer/cef39c8f-0f03-4501-b235-2200f1a4f28a_origin.pdf filter=lfs diff=lfs merge=lfs -text
2101
+ 2025/MovieDreamer_[[:space:]]Hierarchical[[:space:]]Generation[[:space:]]for[[:space:]]Coherent[[:space:]]Long[[:space:]]Visual[[:space:]]Sequences/fa5df9d7-9106-4eac-bb69-db42308acd4a_origin.pdf filter=lfs diff=lfs merge=lfs -text
2102
+ 2025/MrSteve_[[:space:]]Instruction-Following[[:space:]]Agents[[:space:]]in[[:space:]]Minecraft[[:space:]]with[[:space:]]What-Where-When[[:space:]]Memory/2aaf4a69-3e1a-4599-bd08-a383c023d53f_origin.pdf filter=lfs diff=lfs merge=lfs -text
2103
+ 2025/MrT5_[[:space:]]Dynamic[[:space:]]Token[[:space:]]Merging[[:space:]]for[[:space:]]Efficient[[:space:]]Byte-level[[:space:]]Language[[:space:]]Models/c889f266-3499-4de7-9c3a-aae53991ce92_origin.pdf filter=lfs diff=lfs merge=lfs -text
2104
+ 2025/MuHBoost_[[:space:]]Multi-Label[[:space:]]Boosting[[:space:]]For[[:space:]]Practical[[:space:]]Longitudinal[[:space:]]Human[[:space:]]Behavior[[:space:]]Modeling/5cf833d6-f4e0-4157-aad4-3857b285695a_origin.pdf filter=lfs diff=lfs merge=lfs -text
2105
+ 2025/MuPT_[[:space:]]A[[:space:]]Generative[[:space:]]Symbolic[[:space:]]Music[[:space:]]Pretrained[[:space:]]Transformer/6aa0b8b1-a80e-4e9a-a8f1-efae39283742_origin.pdf filter=lfs diff=lfs merge=lfs -text
2106
+ 2025/Mufu_[[:space:]]Multilingual[[:space:]]Fused[[:space:]]Learning[[:space:]]for[[:space:]]Low-Resource[[:space:]]Translation[[:space:]]with[[:space:]]LLM/1ca376c4-39ae-4be3-b683-659b8aa0e73e_origin.pdf filter=lfs diff=lfs merge=lfs -text
2107
+ 2025/MuirBench_[[:space:]]A[[:space:]]Comprehensive[[:space:]]Benchmark[[:space:]]for[[:space:]]Robust[[:space:]]Multi-image[[:space:]]Understanding/c8e53961-4e2d-40b8-9527-5199d9235515_origin.pdf filter=lfs diff=lfs merge=lfs -text
2108
+ 2025/Multi-Dimensional[[:space:]]Conformal[[:space:]]Prediction/041d94e7-b821-44f4-9f19-5c27081c6b8b_origin.pdf filter=lfs diff=lfs merge=lfs -text
2109
+ 2025/Multi-Label[[:space:]]Node[[:space:]]Classification[[:space:]]with[[:space:]]Label[[:space:]]Influence[[:space:]]Propagation/10c6e560-f240-42c9-9ec9-96ba0c72d9b7_origin.pdf filter=lfs diff=lfs merge=lfs -text
2110
+ 2025/Multi-Label[[:space:]]Test-Time[[:space:]]Adaptation[[:space:]]with[[:space:]]Bound[[:space:]]Entropy[[:space:]]Minimization/ba365056-0549-4fd7-9a85-306541b95007_origin.pdf filter=lfs diff=lfs merge=lfs -text
2111
+ 2025/Multi-Modal[[:space:]]and[[:space:]]Multi-Attribute[[:space:]]Generation[[:space:]]of[[:space:]]Single[[:space:]]Cells[[:space:]]with[[:space:]]CFGen/3bb86c88-dd94-40a3-afd2-bb7fdd92a31b_origin.pdf filter=lfs diff=lfs merge=lfs -text
2112
+ 2025/Multi-Perspective[[:space:]]Data[[:space:]]Augmentation[[:space:]]for[[:space:]]Few-shot[[:space:]]Object[[:space:]]Detection/01690ac0-42d5-4721-97c6-dfb15c8ae72e_origin.pdf filter=lfs diff=lfs merge=lfs -text
2113
+ 2025/Multi-Resolution[[:space:]]Decomposable[[:space:]]Diffusion[[:space:]]Model[[:space:]]for[[:space:]]Non-Stationary[[:space:]]Time[[:space:]]Series[[:space:]]Anomaly[[:space:]]Detection/454f1a69-cad9-43ea-bb34-eba43ceb04dc_origin.pdf filter=lfs diff=lfs merge=lfs -text
2114
+ 2025/Multi-Reward[[:space:]]as[[:space:]]Condition[[:space:]]for[[:space:]]Instruction-based[[:space:]]Image[[:space:]]Editing/3c2a82d2-4665-474d-879c-3a1498bb1306_origin.pdf filter=lfs diff=lfs merge=lfs -text
2115
+ 2025/Multi-Scale[[:space:]]Fusion[[:space:]]for[[:space:]]Object[[:space:]]Representation/46a17f09-4e1b-4544-a29a-f0d9307e9143_origin.pdf filter=lfs diff=lfs merge=lfs -text
2116
+ 2025/Multi-Task[[:space:]]Corrupted[[:space:]]Prediction[[:space:]]for[[:space:]]Learning[[:space:]]Robust[[:space:]]Audio-Visual[[:space:]]Speech[[:space:]]Representation/7864317e-5661-4ca0-b22f-c281203e162d_origin.pdf filter=lfs diff=lfs merge=lfs -text
2117
+ 2025/Multi-Task[[:space:]]Dense[[:space:]]Predictions[[:space:]]via[[:space:]]Unleashing[[:space:]]the[[:space:]]Power[[:space:]]of[[:space:]]Diffusion/e836cbf1-25cc-4ece-a407-1e126b06d867_origin.pdf filter=lfs diff=lfs merge=lfs -text
2118
+ 2025/Multi-agent[[:space:]]cooperation[[:space:]]through[[:space:]]learning-aware[[:space:]]policy[[:space:]]gradients/b6d5d1e4-83a0-4e6b-a12c-1a276d11f2b2_origin.pdf filter=lfs diff=lfs merge=lfs -text
2119
+ 2025/Multi-domain[[:space:]]Distribution[[:space:]]Learning[[:space:]]for[[:space:]]De[[:space:]]Novo[[:space:]]Drug[[:space:]]Design/968bb044-5668-4caa-82ed-c25157ec877b_origin.pdf filter=lfs diff=lfs merge=lfs -text
2120
+ 2025/Multi-level[[:space:]]Certified[[:space:]]Defense[[:space:]]Against[[:space:]]Poisoning[[:space:]]Attacks[[:space:]]in[[:space:]]Offline[[:space:]]Reinforcement[[:space:]]Learning/4d74df49-2559-4943-9902-54a30017344b_origin.pdf filter=lfs diff=lfs merge=lfs -text
2121
+ 2025/Multi-modal[[:space:]]brain[[:space:]]encoding[[:space:]]models[[:space:]]for[[:space:]]multi-modal[[:space:]]stimuli/035a5a48-69c6-48dc-acc5-eb265c39d2eb_origin.pdf filter=lfs diff=lfs merge=lfs -text
2122
+ 2025/Multi-objective[[:space:]]Differentiable[[:space:]]Neural[[:space:]]Architecture[[:space:]]Search/4fdf9345-9b49-48de-90a8-46ee84ee8d73_origin.pdf filter=lfs diff=lfs merge=lfs -text
2123
+ 2025/Multi-objective[[:space:]]antibody[[:space:]]design[[:space:]]with[[:space:]]constrained[[:space:]]preference[[:space:]]optimization/7132cb56-d706-4e99-a263-837446100d4c_origin.pdf filter=lfs diff=lfs merge=lfs -text
2124
+ 2025/Multiagent[[:space:]]Finetuning_[[:space:]]Self[[:space:]]Improvement[[:space:]]with[[:space:]]Diverse[[:space:]]Reasoning[[:space:]]Chains/67acb48a-7ee6-4c02-a496-fb06831c454e_origin.pdf filter=lfs diff=lfs merge=lfs -text
2125
+ 2025/Multilevel[[:space:]]Generative[[:space:]]Samplers[[:space:]]for[[:space:]]Investigating[[:space:]]Critical[[:space:]]Phenomena/1519b27d-ff3c-4e5d-8fbe-885b8bccd8be_origin.pdf filter=lfs diff=lfs merge=lfs -text
2126
+ 2025/Multimodal[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]for[[:space:]]Inverse[[:space:]]Molecular[[:space:]]Design[[:space:]]with[[:space:]]Retrosynthetic[[:space:]]Planning/d246b5ef-9c79-4431-b740-d07ae3d43042_origin.pdf filter=lfs diff=lfs merge=lfs -text
2127
+ 2025/Multimodal[[:space:]]Lego_[[:space:]]Model[[:space:]]Merging[[:space:]]and[[:space:]]Fine-Tuning[[:space:]]Across[[:space:]]Topologies[[:space:]]and[[:space:]]Modalities[[:space:]]in[[:space:]]Biomedicine/ffbe5e2e-60a5-472a-b9ac-9e2f330264c3_origin.pdf filter=lfs diff=lfs merge=lfs -text
2128
+ 2025/Multimodal[[:space:]]Quantitative[[:space:]]Language[[:space:]]for[[:space:]]Generative[[:space:]]Recommendation/dbdc16c4-71be-4693-97a5-960eeb272d0b_origin.pdf filter=lfs diff=lfs merge=lfs -text
2129
+ 2025/Multimodal[[:space:]]Situational[[:space:]]Safety/eb0f8d16-fc1f-4e72-88e8-5f8d184dc923_origin.pdf filter=lfs diff=lfs merge=lfs -text
2130
+ 2025/Multimodal[[:space:]]Unsupervised[[:space:]]Domain[[:space:]]Generalization[[:space:]]by[[:space:]]Retrieving[[:space:]]Across[[:space:]]the[[:space:]]Modality[[:space:]]Gap/1d8a7d8d-d83c-4722-ad81-b592adbd454f_origin.pdf filter=lfs diff=lfs merge=lfs -text
2131
+ 2025/Multiple[[:space:]]Heads[[:space:]]are[[:space:]]Better[[:space:]]than[[:space:]]One_[[:space:]]Mixture[[:space:]]of[[:space:]]Modality[[:space:]]Knowledge[[:space:]]Experts[[:space:]]for[[:space:]]Entity[[:space:]]Representation[[:space:]]Learning/a4ce5dd3-474b-47db-9fd2-21e415a26e12_origin.pdf filter=lfs diff=lfs merge=lfs -text
2132
+ 2025/Multiplicative[[:space:]]Logit[[:space:]]Adjustment[[:space:]]Approximates[[:space:]]Neural-Collapse-Aware[[:space:]]Decision[[:space:]]Boundary[[:space:]]Adjustment/9f199eec-7a75-48f1-b9e9-161481291065_origin.pdf filter=lfs diff=lfs merge=lfs -text
2133
+ 2025/Multiview[[:space:]]Equivariance[[:space:]]Improves[[:space:]]3D[[:space:]]Correspondence[[:space:]]Understanding[[:space:]]with[[:space:]]Minimal[[:space:]]Feature[[:space:]]Finetuning/76ee58ce-3659-43e8-9264-dc81a3c2380d_origin.pdf filter=lfs diff=lfs merge=lfs -text
2134
+ 2025/MuseGNN_[[:space:]]Forming[[:space:]]Scalable,[[:space:]]Convergent[[:space:]]GNN[[:space:]]Layers[[:space:]]that[[:space:]]Minimize[[:space:]]a[[:space:]]Sampling-Based[[:space:]]Energy/ca7b1d90-7070-4466-ac31-0e0b0c039540_origin.pdf filter=lfs diff=lfs merge=lfs -text
2135
+ 2025/Mutual[[:space:]]Effort[[:space:]]for[[:space:]]Efficiency_[[:space:]]A[[:space:]]Similarity-based[[:space:]]Token[[:space:]]Pruning[[:space:]]for[[:space:]]Vision[[:space:]]Transformers[[:space:]]in[[:space:]]Self-Supervised[[:space:]]Learning/b6373414-385b-4774-9123-7b7d0d3cb8c3_origin.pdf filter=lfs diff=lfs merge=lfs -text
2136
+ 2025/Mutual[[:space:]]Reasoning[[:space:]]Makes[[:space:]]Smaller[[:space:]]LLMs[[:space:]]Stronger[[:space:]]Problem-Solver/2e1716f2-269a-4add-b68a-965fa03e4751_origin.pdf filter=lfs diff=lfs merge=lfs -text
2137
+ 2025/N-ForGOT_[[:space:]]Towards[[:space:]]Not-forgetting[[:space:]]and[[:space:]]Generalization[[:space:]]of[[:space:]]Open[[:space:]]Temporal[[:space:]]Graph[[:space:]]Learning/239ce138-67ba-4c24-83b0-44d8a658272c_origin.pdf filter=lfs diff=lfs merge=lfs -text
2138
+ 2025/NEAR_[[:space:]]A[[:space:]]Training-Free[[:space:]]Pre-Estimator[[:space:]]of[[:space:]]Machine[[:space:]]Learning[[:space:]]Model[[:space:]]Performance/676f3c74-a3c1-41f4-92a9-ee030b5ddd11_origin.pdf filter=lfs diff=lfs merge=lfs -text
2025/Modality-Specialized Synergizers for Interleaved Vision-Language Generalists/158d19df-479c-4aeb-86c2-9aee59a25995_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Modality-Specialized Synergizers for Interleaved Vision-Language Generalists/158d19df-479c-4aeb-86c2-9aee59a25995_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Modality-Specialized Synergizers for Interleaved Vision-Language Generalists/158d19df-479c-4aeb-86c2-9aee59a25995_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:25fb93e41f2cf854dad9d7dd006755b535b74326710d5848e62ae2fc1001caaa
3
+ size 6399303
2025/Modality-Specialized Synergizers for Interleaved Vision-Language Generalists/full.md ADDED
The diff for this file is too large to render. See raw diff
 
2025/Modality-Specialized Synergizers for Interleaved Vision-Language Generalists/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5db0b25b094e8249bbf5a8ad63c9ecb7a6ab5c7eba0259d9d90bd3bf4d2c2c9c
3
+ size 1123413
2025/Modality-Specialized Synergizers for Interleaved Vision-Language Generalists/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model Editing as a Robust and Denoised variant of DPO_ A Case Study on Toxicity/aad24928-8f60-4f09-b5b5-bc4ac0fa04fc_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model Editing as a Robust and Denoised variant of DPO_ A Case Study on Toxicity/aad24928-8f60-4f09-b5b5-bc4ac0fa04fc_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model Editing as a Robust and Denoised variant of DPO_ A Case Study on Toxicity/aad24928-8f60-4f09-b5b5-bc4ac0fa04fc_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c0f2d18d6c6f295596ccaa60d5373378d0fc1b4b7aff2a8dc9293d3c6ad8f66
3
+ size 904916
2025/Model Editing as a Robust and Denoised variant of DPO_ A Case Study on Toxicity/full.md ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model Editing as a Robust and Denoised variant of DPO_ A Case Study on Toxicity/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5caf9129410ace6223696c38e492cd2596d79f3c6e655e89e348e45d2f2707d
3
+ size 1703671
2025/Model Editing as a Robust and Denoised variant of DPO_ A Case Study on Toxicity/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model Equality Testing_ Which Model is this API Serving_/8d15512f-4850-44b9-9f62-11c1ca40138e_content_list.json ADDED
@@ -0,0 +1,1777 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "MODEL EQUALITY TESTING: WHICH MODEL IS THIS API SERVING?",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 145,
8
+ 116,
9
+ 624,
10
+ 164
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Irena Gao, Percy Liang, Carlos Guestrin",
17
+ "bbox": [
18
+ 153,
19
+ 186,
20
+ 442,
21
+ 200
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "irena@cs.stanford.edu, pliang@cs.stanford.edu, guestrin@stanford.edu",
28
+ "bbox": [
29
+ 153,
30
+ 200,
31
+ 712,
32
+ 215
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Stanford University",
39
+ "bbox": [
40
+ 156,
41
+ 215,
42
+ 289,
43
+ 229
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "ABSTRACT",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 450,
53
+ 265,
54
+ 547,
55
+ 280
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Users often interact with large language models through black-box inference APIs, both for closed- and open-weight models (e.g., Llama models are popularly accessed via Amazon Bedrock and Azure AI Studios). In order to cut costs or add functionality, API providers may quantize, watermark, or finetune the underlying model, changing the output distribution — possibly without notifying users. We formalize detecting such distortions as Model Equality Testing, a two-sample testing problem, where the user collects samples from the API and a reference distribution, and conducts a statistical test to see if the two distributions are the same. We find that tests based on the Maximum Mean Discrepancy between distributions are powerful for this task: a test built on a simple string kernel achieves a median of $77.4\\%$ power against a range of distortions, using an average of just 10 samples per prompt. We then apply this test to commercial inference APIs from Summer 2024 for four Llama models, finding that 11 out of 31 endpoints serve different distributions than reference weights released by Meta.",
62
+ "bbox": [
63
+ 200,
64
+ 290,
65
+ 794,
66
+ 472
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 INTRODUCTION",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 145,
76
+ 487,
77
+ 312,
78
+ 502
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Since running a large language model requires compute and technical expertise, many users rely on black-box APIs to handle inference. This applies to both closed-weight models, like GPT and Claude, and openweight ones: e.g., Amazon Bedrock, Microsoft Azure, and the seven other companies in Figure 1 all compete to offer Llama models as a service. While users can sample from black-box APIs, they have little to no insight into the underlying implementation of the model, including into questions like:",
85
+ "bbox": [
86
+ 143,
87
+ 510,
88
+ 852,
89
+ 580
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "list",
95
+ "sub_type": "text",
96
+ "list_items": [
97
+ "1. How has the API modified the language model's distribution? To drive down costs, API providers may quantize or prune large model weights; they may also watermark outputs or incorrectly implement some decoding parameters. These changes distort the resulting distribution of completions. The problem is when such distortions are undisclosed: users assume that calling a third-party API is exactly equivalent to working with the original model. For example, benchmarks like HELM (Liang et al., 2022) evaluate models through third-party APIs, but quantized or watermarked models may be less capable than the intended model.",
98
+ "2. Is the API changing over time? Language model inference endpoints may also drift over time without notifying users (Chen et al., 2023; Eyuboglu et al., 2024), e.g., due to finetuning or updates to the inference stack. Unstable APIs affect research reproducibility (Pozzobon et al., 2023) and can disrupt user productivity in human-AI teams (Bansal et al., 2019)."
99
+ ],
100
+ "bbox": [
101
+ 181,
102
+ 587,
103
+ 849,
104
+ 750
105
+ ],
106
+ "page_idx": 0
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "Under the status quo, neither users nor regulators have a way to rigorously answer these questions for themselves. These concerns are important to address: tens of thousands of developers already rely on black-box inference APIs for applications (Amazon, 2024), and this dependence will increase as LLMs —",
111
+ "bbox": [
112
+ 143,
113
+ 755,
114
+ 852,
115
+ 799
116
+ ],
117
+ "page_idx": 0
118
+ },
119
+ {
120
+ "type": "header",
121
+ "text": "Published as a conference paper at ICLR 2025",
122
+ "bbox": [
123
+ 145,
124
+ 49,
125
+ 455,
126
+ 64
127
+ ],
128
+ "page_idx": 0
129
+ },
130
+ {
131
+ "type": "page_footnote",
132
+ "text": "These problems are already experienced by users: e.g., see threads 1, 2 and 3.",
133
+ "bbox": [
134
+ 165,
135
+ 806,
136
+ 632,
137
+ 823
138
+ ],
139
+ "page_idx": 0
140
+ },
141
+ {
142
+ "type": "page_number",
143
+ "text": "1",
144
+ "bbox": [
145
+ 467,
146
+ 845,
147
+ 477,
148
+ 858
149
+ ],
150
+ "page_idx": 0
151
+ },
152
+ {
153
+ "type": "image",
154
+ "img_path": "images/ffa5a3f202b1e62a6fb0b0357b2ce807d9547707475acdecfbb935239e47ceaa.jpg",
155
+ "image_caption": [
156
+ "Figure 1: (Left) We formalize auditing black-box language model inference APIs as Model Equality Testing. This enables us to assess an API's faithfulness to a reference distribution and its stability over time. (Right) We evaluate candidate tests and apply the most powerful one to Llama model APIs from Summer 2024, finding that 11 of 31 endpoints deviate from reference weights released by Meta."
157
+ ],
158
+ "image_footnote": [],
159
+ "bbox": [
160
+ 145,
161
+ 116,
162
+ 568,
163
+ 327
164
+ ],
165
+ "page_idx": 1
166
+ },
167
+ {
168
+ "type": "image",
169
+ "img_path": "images/71be53b4dcbcbf09ce6cacf1d5d4e223c674454353fb1534813ea550cd513673.jpg",
170
+ "image_caption": [],
171
+ "image_footnote": [],
172
+ "bbox": [
173
+ 578,
174
+ 119,
175
+ 846,
176
+ 325
177
+ ],
178
+ "page_idx": 1
179
+ },
180
+ {
181
+ "type": "text",
182
+ "text": "and the corresponding infrastructure costs for hosting — grow larger. For example, most users must rely on third-party APIs to use Llama 3.1 405B because of its size.",
183
+ "bbox": [
184
+ 143,
185
+ 412,
186
+ 849,
187
+ 441
188
+ ],
189
+ "page_idx": 1
190
+ },
191
+ {
192
+ "type": "text",
193
+ "text": "The current approach to this problem is for an outside auditor to monitor APIs' accuracies on multiple-choice or short-answer benchmarks (ArtificialAnalysis, 2024); these studies typically decode from the language model greedily. Such audits can be a poor match for user needs. Greedy decoding only checks that the modes of the next-token distributions match, rather than the overall distribution over completions, which is problematic because users often sample from models. Short-answer benchmarks cover only a small slice of possible prefixes, which may significantly differ from a particular user's task: e.g., common applications like code generation, dialogue, and summarization are longform tasks. Ideally, users could personally audit APIs on their custom tasks. Such a method should be sample-efficient, apply to tasks without automated verifiers, and assess with confidence whether the overall distribution of completions has shifted in a statistically significant way.",
194
+ "bbox": [
195
+ 143,
196
+ 452,
197
+ 852,
198
+ 592
199
+ ],
200
+ "page_idx": 1
201
+ },
202
+ {
203
+ "type": "text",
204
+ "text": "We provide such a method. Suppose a user wishes to audit a an API on their task of interest. The user collects two samples: one from a reference distribution $P$ and one from the test API's distribution $Q$ . For example, to answer if an API has modified the distribution of an open-weight model, $P$ might be from reference model weights released on Hugging Face. To answer if the API is changing over time, $P$ might be from the API at an earlier point in time (Figure 1 left). The user then conducts a two-sample test for whether $P = Q$ to examine if the API's distribution is statistically indistinguishable from the reference.",
205
+ "bbox": [
206
+ 143,
207
+ 602,
208
+ 851,
209
+ 686
210
+ ],
211
+ "page_idx": 1
212
+ },
213
+ {
214
+ "type": "text",
215
+ "text": "Our setting is challenging because the distributions being compared are high-dimensional: they are defined over multi-token completions from large vocabularies. Two-sample kernel tests based on estimating the Maximum Mean Discrepancy (MMD) between $P$ and $Q$ (Gretton et al., 2012) are flexible tools for this setting, as they allow us to specify a featurization to reduce dimensionality. We find that a simple string kernel based on the Hamming distance between completions is particularly sample-efficient. In simulations (\\$4), this test achieves a median of $77.4\\%$ power against a wide range of distortions — e.g., quantization, watermarking, and finetuning — using an average of just 10 samples per prompt for distributions over 20-25 prompts. We then apply this test to nine commercial inference API providers across four Llama models (\\$5, Figure 1 right). Our test flags 11 out of these 31 endpoints, with each audit costing less than $1.",
216
+ "bbox": [
217
+ 143,
218
+ 696,
219
+ 852,
220
+ 824
221
+ ],
222
+ "page_idx": 1
223
+ },
224
+ {
225
+ "type": "header",
226
+ "text": "Published as a conference paper at ICLR 2025",
227
+ "bbox": [
228
+ 145,
229
+ 49,
230
+ 452,
231
+ 64
232
+ ],
233
+ "page_idx": 1
234
+ },
235
+ {
236
+ "type": "page_number",
237
+ "text": "2",
238
+ "bbox": [
239
+ 467,
240
+ 845,
241
+ 478,
242
+ 858
243
+ ],
244
+ "page_idx": 1
245
+ },
246
+ {
247
+ "type": "text",
248
+ "text": "Because our test statistic is an estimate of a distance, we also explore how this machinery can quantify statistical distances between black-box endpoints. In §4.3, we estimate pairwise distances between the output distributions of 13 language models — without requiring log probability access — and find that models within the same family (e.g., the Llama family or GPT-3.5 family) output more similar distributions than models within the same size range (e.g., 7B or 70B models). In §5, we estimate the effect size of deviations between API endpoints and reference weights, finding that some implementations are further from the reference weights than if the provider had substituted in an entirely different language model.",
249
+ "bbox": [
250
+ 143,
251
+ 119,
252
+ 852,
253
+ 219
254
+ ],
255
+ "page_idx": 2
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "Summary of contributions. We unify several API auditing tasks under the formalization of Model Equality Testing, a two-sample distribution testing problem, and empirically validate kernel-based tests for this problem. We then apply this test to audit popular commercial inference APIs. To enable users to audit APIs for custom applications, we open-source a Python package. We also encourage future research in Model Equality Testing by releasing a dataset of 1 million LLM completions from five models.[2]",
260
+ "bbox": [
261
+ 143,
262
+ 226,
263
+ 851,
264
+ 297
265
+ ],
266
+ "page_idx": 2
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "2 THE MODEL EQUALITY TESTING PROBLEM",
271
+ "text_level": 1,
272
+ "bbox": [
273
+ 145,
274
+ 311,
275
+ 542,
276
+ 327
277
+ ],
278
+ "page_idx": 2
279
+ },
280
+ {
281
+ "type": "text",
282
+ "text": "Suppose an auditor is interested in a task parameterized by a distribution $\\pi$ over $m$ prompts and a maximum completion length of $L$ tokens. The auditor has sample access to a reference distribution $P$ and API distribution $Q$ , both operating on the same vocabulary $\\mathcal{V}$ with the same decoding parameters. The auditor samples $N$ prompt-completion pairs: $z := (x, y)$ from each distribution:",
283
+ "bbox": [
284
+ 143,
285
+ 335,
286
+ 852,
287
+ 393
288
+ ],
289
+ "page_idx": 2
290
+ },
291
+ {
292
+ "type": "equation",
293
+ "text": "\n$$\n\\mathcal {D} _ {P} := \\left\\{z ^ {(i)}: x ^ {(i)} \\sim \\pi , y ^ {(i)} \\sim P (\\cdot \\mid x ^ {(i)}) \\right\\} _ {i = 1} ^ {N}, \\tag {1}\n$$\n",
294
+ "text_format": "latex",
295
+ "bbox": [
296
+ 339,
297
+ 400,
298
+ 849,
299
+ 426
300
+ ],
301
+ "page_idx": 2
302
+ },
303
+ {
304
+ "type": "equation",
305
+ "text": "\n$$\n\\mathcal {D} _ {Q} := \\{z ^ {(i)}: x ^ {(i)} \\sim \\pi , y ^ {(i)} \\sim Q (\\cdot \\mid x ^ {(i)}) \\} _ {i = 1} ^ {N}.\n$$\n",
306
+ "text_format": "latex",
307
+ "bbox": [
308
+ 341,
309
+ 422,
310
+ 653,
311
+ 440
312
+ ],
313
+ "page_idx": 2
314
+ },
315
+ {
316
+ "type": "text",
317
+ "text": "We wish to use these samples to test if $P = Q$ , i.e., distinguish between the hypotheses",
318
+ "bbox": [
319
+ 145,
320
+ 448,
321
+ 718,
322
+ 463
323
+ ],
324
+ "page_idx": 2
325
+ },
326
+ {
327
+ "type": "equation",
328
+ "text": "\n$$\n\\begin{array}{l} H _ {0}: \\quad \\pi (x) P (y \\mid x) = \\pi (x) Q (y \\mid x), \\\\ H _ {1}: \\quad (\\cdot) P (\\cdot | \\cdot) \\cdot (\\cdot) Q (\\cdot | \\cdot). \\end{array} \\tag {2}\n$$\n",
329
+ "text_format": "latex",
330
+ "bbox": [
331
+ 369,
332
+ 470,
333
+ 849,
334
+ 494
335
+ ],
336
+ "page_idx": 2
337
+ },
338
+ {
339
+ "type": "equation",
340
+ "text": "\n$$\nH _ {1}: \\pi (x) P (y \\mid x) \\neq \\pi (x) Q (y \\mid x).\n$$\n",
341
+ "text_format": "latex",
342
+ "bbox": [
343
+ 372,
344
+ 489,
345
+ 624,
346
+ 505
347
+ ],
348
+ "page_idx": 2
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "We require that the Type-1 error rate is controlled at $\\alpha$ . A good test will maximize power against unknown $Q$ and generalize across several language models and prompt distributions $\\pi$ . We are particularly interested in sample-efficient tests that are cheap to run: such tests are powerful when $N$ is small compared to the size of the vocabulary $|\\mathcal{V}|$ and the maximum completion length $L$ . The latter parameters modulate the size of the space that the joint distributions are defined over: the set of all prompt-completion pairs has size $m|\\mathcal{V}|^L$ , where $m$ is the number of prompts captured in $\\pi$ . Effective tests must navigate this high-dimensional space well. Fortunately, we expect the distributions in practice to be lower-dimensional, as language typically only places significant mass on a small number of tokens at each position.",
353
+ "bbox": [
354
+ 143,
355
+ 513,
356
+ 852,
357
+ 626
358
+ ],
359
+ "page_idx": 2
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "Throughout the paper, we will use $\\mathbf{n}_s\\{S\\}$ to denote the count of object $s$ in string or sample $S$ , $\\pi P$ to denote the joint distribution of prompts and completions under $P$ , and $\\pi Q$ to denote the joint distribution under $Q$ .",
364
+ "bbox": [
365
+ 143,
366
+ 632,
367
+ 852,
368
+ 662
369
+ ],
370
+ "page_idx": 2
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "3 METHOD",
375
+ "text_level": 1,
376
+ "bbox": [
377
+ 145,
378
+ 675,
379
+ 256,
380
+ 690
381
+ ],
382
+ "page_idx": 2
383
+ },
384
+ {
385
+ "type": "text",
386
+ "text": "To tackle the problem, we employ a two-sample kernel test from Gretton et al. (2012). This test uses samples $\\mathcal{D}_P$ and $\\mathcal{D}_Q$ to estimate the Maximum Mean Discrepancy (MMD) between $P$ and $Q$ , which is a measure of the distance between the two distributions. Intuitively, if the estimated MMD is large, we reject the null hypothesis that $P = Q$ .",
387
+ "bbox": [
388
+ 143,
389
+ 700,
390
+ 852,
391
+ 756
392
+ ],
393
+ "page_idx": 2
394
+ },
395
+ {
396
+ "type": "header",
397
+ "text": "Published as a conference paper at ICLR 2025",
398
+ "bbox": [
399
+ 145,
400
+ 49,
401
+ 452,
402
+ 63
403
+ ],
404
+ "page_idx": 2
405
+ },
406
+ {
407
+ "type": "page_footnote",
408
+ "text": "2Package, experiment code, and dataset: https://github.com/i-gao/model-equality-testing.",
409
+ "bbox": [
410
+ 163,
411
+ 767,
412
+ 759,
413
+ 782
414
+ ],
415
+ "page_idx": 2
416
+ },
417
+ {
418
+ "type": "page_footnote",
419
+ "text": "3In Appendix C.6, we discuss how to extend this setup to unequal sample sizes.",
420
+ "bbox": [
421
+ 165,
422
+ 780,
423
+ 638,
424
+ 795
425
+ ],
426
+ "page_idx": 2
427
+ },
428
+ {
429
+ "type": "page_footnote",
430
+ "text": "As a concrete example, Llama-3 uses a vocabulary size of $|\\mathcal{V}| = 128256$ , and users often sample $L = 250$ tokens for longform generation tasks.",
431
+ "bbox": [
432
+ 143,
433
+ 795,
434
+ 849,
435
+ 821
436
+ ],
437
+ "page_idx": 2
438
+ },
439
+ {
440
+ "type": "page_number",
441
+ "text": "3",
442
+ "bbox": [
443
+ 467,
444
+ 845,
445
+ 477,
446
+ 858
447
+ ],
448
+ "page_idx": 2
449
+ },
450
+ {
451
+ "type": "text",
452
+ "text": "The MMD is defined with respect to a unit-norm kernel function $k$ and its associated feature map $\\phi$ . For our two joint distributions $\\pi P$ and $\\pi Q$ , the MMD is defined as the squared distance between the expected features from each distribution:",
453
+ "bbox": [
454
+ 143,
455
+ 119,
456
+ 852,
457
+ 162
458
+ ],
459
+ "page_idx": 3
460
+ },
461
+ {
462
+ "type": "equation",
463
+ "text": "\n$$\n\\begin{array}{l} \\mathrm {M M D} _ {k} (\\pi P, \\pi Q) = \\| \\mathbb {E} _ {z \\sim \\pi P} [ \\phi (z) ] - \\mathbb {E} _ {z \\sim \\pi Q} [ \\phi (z) ] \\| ^ {2}, \\\\ \\begin{array}{l} = \\| \\mathbb {E} _ {z} \\sim_ {\\pi P} [ \\phi (z) ] - \\mathbb {E} _ {z} \\sim_ {\\pi Q} [ \\phi (z) ] \\| ^ {2}, \\\\ = \\mathbb {E} _ {z, z ^ {\\prime} \\sim \\pi P} [ k (z, z ^ {\\prime}) ] + \\mathbb {E} _ {z, z ^ {\\prime} \\sim \\pi Q} [ k (z, z ^ {\\prime}) ] - 2 \\mathbb {E} _ {z \\sim \\pi P, z ^ {\\prime} \\sim \\pi Q} [ k (z, z ^ {\\prime}) ]. \\end{array} \\tag {3} \\\\ \\end{array}\n$$\n",
464
+ "text_format": "latex",
465
+ "bbox": [
466
+ 200,
467
+ 167,
468
+ 849,
469
+ 205
470
+ ],
471
+ "page_idx": 3
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "For simplicity, we select kernels of the form $k(z,z^{\\prime}) = \\mathbf{1}\\{x = x^{\\prime}\\} \\tilde{k} (y,y^{\\prime})$ , where $\\tilde{k}$ is a prompt-agnostic kernel over completions. Then $\\mathrm{MMD}_k(\\pi P,\\pi Q) = \\mathbb{E}_{x\\sim \\pi}\\left[\\mathrm{MMD}_{\\tilde{k}}(P(y\\mid x),Q(y\\mid x))\\right]$ .",
476
+ "bbox": [
477
+ 143,
478
+ 215,
479
+ 849,
480
+ 247
481
+ ],
482
+ "page_idx": 3
483
+ },
484
+ {
485
+ "type": "text",
486
+ "text": "To conduct a two-sample test with samples $\\mathcal{D}_Q$ and $\\mathcal{D}_P$ , the test statistic is the empirical estimator of (3):",
487
+ "bbox": [
488
+ 143,
489
+ 252,
490
+ 834,
491
+ 268
492
+ ],
493
+ "page_idx": 3
494
+ },
495
+ {
496
+ "type": "equation",
497
+ "text": "\n$$\n\\widehat {\\operatorname {M M D}} \\left(\\mathcal {D} _ {Q}, \\mathcal {D} _ {P}\\right) = \\frac {1}{N (N - 1)} \\left[ \\sum_ {z, z ^ {\\prime} \\in \\mathcal {D} _ {P}} k \\left(z, z ^ {\\prime}\\right) + \\sum_ {z, z ^ {\\prime} \\in \\mathcal {D} _ {Q}} k \\left(z, z ^ {\\prime}\\right) \\right] - \\frac {2}{N ^ {2}} \\sum_ {z \\in \\mathcal {D} _ {P}} \\sum_ {z ^ {\\prime} \\in \\mathcal {D} _ {Q}} k \\left(z, z ^ {\\prime}\\right). \\tag {4}\n$$\n",
498
+ "text_format": "latex",
499
+ "bbox": [
500
+ 156,
501
+ 275,
502
+ 851,
503
+ 325
504
+ ],
505
+ "page_idx": 3
506
+ },
507
+ {
508
+ "type": "text",
509
+ "text": "We can compute p-values by simulating the test statistic's distribution under the null, i.e., by repeatedly sampling both $\\mathcal{D}_Q$ and $\\mathcal{D}_P$ from $P$ and computing (4). Alternatively, to avoid drawing extra samples from $P$ , we can use the permutation procedure (Lehmann et al., 1986), at a potential cost to power. This procedure repeatedly shuffles samples between $\\mathcal{D}_Q$ and $\\mathcal{D}_P$ to recompute the test statistic (Appendix A.2).",
510
+ "bbox": [
511
+ 143,
512
+ 330,
513
+ 849,
514
+ 387
515
+ ],
516
+ "page_idx": 3
517
+ },
518
+ {
519
+ "type": "text",
520
+ "text": "Kernel choice. The choice of kernel $(k,\\phi)$ determines the test's semantics and power. For example, setting $\\phi (z)$ to be an indicator of whether $y$ passes an automated verifier for $x$ , when one is available, leads to rejecting the null when $P,Q$ result in different task accuracies. However, because $\\phi$ is relatively coarse, the MMD may be zero even when $P\\neq Q$ , limiting the test's power. At the other extreme are universal kernels, which guarantee that the MMD is zero if and only if $P = Q$ (Gretton et al., 2012). One such universal kernel for strings is the computationally expensive all-substrings kernel (Borgwardt et al., 2006):",
521
+ "bbox": [
522
+ 143,
523
+ 395,
524
+ 849,
525
+ 479
526
+ ],
527
+ "page_idx": 3
528
+ },
529
+ {
530
+ "type": "equation",
531
+ "text": "\n$$\n\\tilde {k} _ {\\text {a l l}} \\left(y, y ^ {\\prime}\\right) = \\sum_ {s \\in \\mathcal {V} ^ {\\leq L}} \\mathbf {n} _ {s} \\{y \\} \\cdot \\mathbf {n} _ {s} \\left\\{y ^ {\\prime} \\right\\}, \\tag {5}\n$$\n",
532
+ "text_format": "latex",
533
+ "bbox": [
534
+ 375,
535
+ 486,
536
+ 851,
537
+ 518
538
+ ],
539
+ "page_idx": 3
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "where $\\mathbf{n}_s\\{y\\}$ is the number of times $s$ appears in $y$ . Another universal kernel is the one-hot kernel:",
544
+ "bbox": [
545
+ 143,
546
+ 527,
547
+ 792,
548
+ 542
549
+ ],
550
+ "page_idx": 3
551
+ },
552
+ {
553
+ "type": "equation",
554
+ "text": "\n$$\n\\tilde {k} _ {\\text {o n e - h o t}} \\left(y, y ^ {\\prime}\\right) = \\mathbf {1} \\left\\{y = y ^ {\\prime} \\right\\}, \\tag {6}\n$$\n",
555
+ "text_format": "latex",
556
+ "bbox": [
557
+ 403,
558
+ 551,
559
+ 849,
560
+ 570
561
+ ],
562
+ "page_idx": 3
563
+ },
564
+ {
565
+ "type": "text",
566
+ "text": "which results in a classical two-sample multinomial test between the joint distributions. While universal kernels can eventually detect differences between any $P, Q$ with enough samples, they may have low power in the small-sample regime. For example, the one-hot MMD measures if there are more exact match collisions within $\\mathcal{D}_P$ or $\\mathcal{D}_Q$ than between them, but in small samples, we may see no duplicate completions at all.",
567
+ "bbox": [
568
+ 143,
569
+ 575,
570
+ 849,
571
+ 633
572
+ ],
573
+ "page_idx": 3
574
+ },
575
+ {
576
+ "type": "text",
577
+ "text": "We posit that other string kernels, though not universal, provide more powerful features for testing with small samples. Specifically, we investigate a fast kernel related to the Hamming distance between completions:",
578
+ "bbox": [
579
+ 143,
580
+ 638,
581
+ 849,
582
+ 667
583
+ ],
584
+ "page_idx": 3
585
+ },
586
+ {
587
+ "type": "equation",
588
+ "text": "\n$$\n\\tilde {k} _ {\\text {h a m m i n g}} \\left(y, y ^ {\\prime}\\right) = \\sum_ {i = 1} ^ {L} \\mathbf {1} \\left\\{y _ {i} = y _ {i} ^ {\\prime} \\right\\}, \\tag {7}\n$$\n",
589
+ "text_format": "latex",
590
+ "bbox": [
591
+ 383,
592
+ 676,
593
+ 849,
594
+ 718
595
+ ],
596
+ "page_idx": 3
597
+ },
598
+ {
599
+ "type": "text",
600
+ "text": "where $y$ shorter than $L$ is right-padded with a special token. Intuitively, a test based on this kernel rejects if a significantly larger number of substitutions are needed to align completions between $\\mathcal{D}_P$ and $\\mathcal{D}_Q$ than within each sample. The associated Hamming MMD is a pseudo-metric, as it is zero when $P = Q$ and obeys the triangle inequality, but may not separate all distributions (Appendix A.1). Despite this limitation, we find in the following sections that this kernel is empirically effective and well-suited to common distortions we encounter with language models: quantization, watermarking, finetuning, and related distortions tend to result in detectable inter-sample Hamming distances.",
601
+ "bbox": [
602
+ 143,
603
+ 724,
604
+ 852,
605
+ 823
606
+ ],
607
+ "page_idx": 3
608
+ },
609
+ {
610
+ "type": "header",
611
+ "text": "Published as a conference paper at ICLR 2025",
612
+ "bbox": [
613
+ 145,
614
+ 49,
615
+ 452,
616
+ 63
617
+ ],
618
+ "page_idx": 3
619
+ },
620
+ {
621
+ "type": "page_number",
622
+ "text": "4",
623
+ "bbox": [
624
+ 467,
625
+ 847,
626
+ 478,
627
+ 858
628
+ ],
629
+ "page_idx": 3
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "4 EVALUATING TESTS IN SIMULATIONS",
634
+ "text_level": 1,
635
+ "bbox": [
636
+ 145,
637
+ 119,
638
+ 488,
639
+ 133
640
+ ],
641
+ "page_idx": 4
642
+ },
643
+ {
644
+ "type": "text",
645
+ "text": "In this section, we evaluate our test's power using different kernels at checking equivalence between known pairs of distributions. Specifically, we evaluate if tests can detect when a language model has been quantized or watermarked (§4.1), finetuned (§4.2), or swapped out for a different model altogether (§4.3).",
646
+ "bbox": [
647
+ 143,
648
+ 143,
649
+ 852,
650
+ 186
651
+ ],
652
+ "page_idx": 4
653
+ },
654
+ {
655
+ "type": "text",
656
+ "text": "All experiments in this section are run on a longform language modeling task. The prompt distribution $\\pi$ is a uniform distribution over $m = 25$ random 100-character strings sampled from English, German, Spanish, French, and Russian Wikipedia (Box 1). The maximum completion length is $L = 50$ , and we sample using temperature 1. Power is computed from 100 Monte Carlo simulations. We estimate p-values by simulating the empirical distribution of the test statistic under the null 1000 times; in Appendix C, we validate that the permutation procedure results in the same trends.",
657
+ "bbox": [
658
+ 143,
659
+ 191,
660
+ 852,
661
+ 276
662
+ ],
663
+ "page_idx": 4
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "Box 1: Sample prompt for the Wikipedia language modeling task",
668
+ "text_level": 1,
669
+ "bbox": [
670
+ 169,
671
+ 285,
672
+ 602,
673
+ 301
674
+ ],
675
+ "page_idx": 4
676
+ },
677
+ {
678
+ "type": "text",
679
+ "text": "Continue the paragraph. Do not output anything except the continuation to the paragraph. Start the continuation immediately.",
680
+ "bbox": [
681
+ 168,
682
+ 311,
683
+ 828,
684
+ 337
685
+ ],
686
+ "page_idx": 4
687
+ },
688
+ {
689
+ "type": "text",
690
+ "text": "\"The British Arab Commercial Bank PLC (BACB) is an international wholesale bank incorporated in the U...\"",
691
+ "bbox": [
692
+ 168,
693
+ 337,
694
+ 821,
695
+ 349
696
+ ],
697
+ "page_idx": 4
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "To evaluate tests' generalization across prompts, we repeat power experiments over ten different prompt distributions, where we resample 25 Wikipedia strings for each $\\pi$ . All tests are conducted at a significance level of $\\alpha = 0.05$ . Additional details can be found in Appendix B.",
702
+ "bbox": [
703
+ 143,
704
+ 366,
705
+ 852,
706
+ 409
707
+ ],
708
+ "page_idx": 4
709
+ },
710
+ {
711
+ "type": "text",
712
+ "text": "4.1 DETECTING QUANTIZATION AND WATERMARKING",
713
+ "text_level": 1,
714
+ "bbox": [
715
+ 145,
716
+ 419,
717
+ 537,
718
+ 431
719
+ ],
720
+ "page_idx": 4
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "In our first experiments, the reference distribution $P$ represents full-precision weights published on Hugging Face. We evaluate if tests can distinguish $P$ from alternative distributions $Q$ :",
725
+ "bbox": [
726
+ 143,
727
+ 436,
728
+ 852,
729
+ 465
730
+ ],
731
+ "page_idx": 4
732
+ },
733
+ {
734
+ "type": "list",
735
+ "sub_type": "text",
736
+ "list_items": [
737
+ "- Quantized models. These alternatives represent the model inferred at lower precisions: nf4 (Dettmers et al., 2024), int8 (Dettmers et al., 2022), and fp16. Some accounts suggest that quantization particularly degrades Llama-3 models on longform tasks (Reddit, 2024; Panda, 2024).",
738
+ "- Watermarked models. Some providers may watermark outputs so that they are later detectable as having been generated by the platform. We apply the watermarking algorithm from Kirchenbauer et al. (2023) with default bias of 2.5."
739
+ ],
740
+ "bbox": [
741
+ 189,
742
+ 472,
743
+ 851,
744
+ 565
745
+ ],
746
+ "page_idx": 4
747
+ },
748
+ {
749
+ "type": "text",
750
+ "text": "We repeat evaluations for 5 instruction-tuned models: Mistral 7B Instruct (Jiang et al., 2023), Llama-3 8B and 70B Instruct, and Llama-3.1 8B and 70B Instruct (Meta, 2024). Additional models are in Appendix C.1.",
751
+ "bbox": [
752
+ 143,
753
+ 571,
754
+ 852,
755
+ 599
756
+ ],
757
+ "page_idx": 4
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "Tests. We compare three choices of kernels: the Hamming kernel (7), the all-substrings kernel (5), and the one-hot kernel (6). We also evaluate two tests from the multinomial testing literature (Balakrishnan & Wasserman, 2018; Bhattacharya & Valiant, 2015):",
762
+ "bbox": [
763
+ 143,
764
+ 611,
765
+ 852,
766
+ 654
767
+ ],
768
+ "page_idx": 4
769
+ },
770
+ {
771
+ "type": "equation",
772
+ "text": "\n$$\n\\mathrm {L} 1 \\left(\\mathcal {D} _ {P}, \\mathcal {D} _ {Q}\\right) = \\sum_ {z \\in \\mathcal {D} _ {P} \\cup \\mathcal {D} _ {Q}} \\left| \\frac {\\mathbf {n} _ {z} \\left\\{\\mathcal {D} _ {P} \\right\\} - \\mathbf {n} _ {z} \\left\\{\\mathcal {D} _ {Q} \\right\\}}{N} \\right| \\tag {8}\n$$\n",
773
+ "text_format": "latex",
774
+ "bbox": [
775
+ 331,
776
+ 660,
777
+ 851,
778
+ 700
779
+ ],
780
+ "page_idx": 4
781
+ },
782
+ {
783
+ "type": "equation",
784
+ "text": "\n$$\n\\chi^ {2} \\left(\\mathcal {D} _ {P}, \\mathcal {D} _ {Q}\\right) = N ^ {2} \\sum_ {z \\in \\mathcal {D} _ {P} \\cup \\mathcal {D} _ {Q}} \\frac {\\left(\\mathbf {n} _ {z} \\left\\{\\mathcal {D} _ {P} \\right\\} - \\mathbf {n} _ {z} \\left\\{\\mathcal {D} _ {Q} \\right\\}\\right) ^ {2} - \\mathbf {n} _ {z} \\left\\{\\mathcal {D} _ {P} \\right\\} - \\mathbf {n} _ {z} \\left\\{\\mathcal {D} _ {Q} \\right\\}}{\\mathbf {n} _ {z} \\left\\{\\mathcal {D} _ {P} \\right\\} + \\mathbf {n} _ {z} \\left\\{\\mathcal {D} _ {Q} \\right\\}}. \\tag {9}\n$$\n",
785
+ "text_format": "latex",
786
+ "bbox": [
787
+ 236,
788
+ 709,
789
+ 851,
790
+ 751
791
+ ],
792
+ "page_idx": 4
793
+ },
794
+ {
795
+ "type": "text",
796
+ "text": "Results. Figure 2 (left) compares the empirical sample complexities of each test. To draw out a sample complexity curve, we vary the number of samples from $N = 10m$ to $N = 100m$ , where $m = 25$ is the number of prompts in the prompt distribution. We observe that the Hamming MMD test attains the highest power with the fewest samples: at an average of 10 samples per prompt, this test has a median power",
797
+ "bbox": [
798
+ 143,
799
+ 766,
800
+ 852,
801
+ 824
802
+ ],
803
+ "page_idx": 4
804
+ },
805
+ {
806
+ "type": "header",
807
+ "text": "Published as a conference paper at ICLR 2025",
808
+ "bbox": [
809
+ 145,
810
+ 49,
811
+ 452,
812
+ 64
813
+ ],
814
+ "page_idx": 4
815
+ },
816
+ {
817
+ "type": "page_number",
818
+ "text": "5",
819
+ "bbox": [
820
+ 467,
821
+ 847,
822
+ 478,
823
+ 858
824
+ ],
825
+ "page_idx": 4
826
+ },
827
+ {
828
+ "type": "image",
829
+ "img_path": "images/21a9d4da6b41d6699b2dfc1c1cab8571e8a7e57d2c02e346097f51d65af0a123.jpg",
830
+ "image_caption": [
831
+ "Figure 2: (Left) Sample complexity of tests. At an average of just 10 samples per prompt, the Hamming MMD test is able to detect quantization and watermarking with nontrivial power. Curves first median power across alternative distributions $Q$ , averaged over language models and prompt distributions, with shaded standard errors. Results stratified by language model and alternative are in Appendix C.1. (Middle) While other tests rapidly degrade in power when the user is interested in longer completions, the Hamming MMD test maintains power best across completion lengths. (Right) Power of the Hamming MMD test, stratified by alternative distribution. The test is significantly less powerful against the fp16 alternative."
832
+ ],
833
+ "image_footnote": [],
834
+ "bbox": [
835
+ 151,
836
+ 118,
837
+ 393,
838
+ 250
839
+ ],
840
+ "page_idx": 5
841
+ },
842
+ {
843
+ "type": "image",
844
+ "img_path": "images/156707823457cd2fdad9d9320c2c9630602a0da6ac9be28ea0bb18733c3b2387.jpg",
845
+ "image_caption": [],
846
+ "image_footnote": [],
847
+ "bbox": [
848
+ 153,
849
+ 252,
850
+ 619,
851
+ 266
852
+ ],
853
+ "page_idx": 5
854
+ },
855
+ {
856
+ "type": "image",
857
+ "img_path": "images/9297a7d8405ed39b808b7aef766904a7242731ad37cdc3b2b717ac2bf1faa3ea.jpg",
858
+ "image_caption": [],
859
+ "image_footnote": [],
860
+ "bbox": [
861
+ 398,
862
+ 119,
863
+ 620,
864
+ 251
865
+ ],
866
+ "page_idx": 5
867
+ },
868
+ {
869
+ "type": "image",
870
+ "img_path": "images/37c2999e6634af86627d73849646eef4322a4a9bc8ba93b6d4f0031f61743022.jpg",
871
+ "image_caption": [],
872
+ "image_footnote": [],
873
+ "bbox": [
874
+ 624,
875
+ 119,
876
+ 844,
877
+ 250
878
+ ],
879
+ "page_idx": 5
880
+ },
881
+ {
882
+ "type": "image",
883
+ "img_path": "images/acd615a60e86e2016818f639be216a4a53acb7bc9085e382dc7d3c59eba67b7c.jpg",
884
+ "image_caption": [],
885
+ "image_footnote": [],
886
+ "bbox": [
887
+ 684,
888
+ 251,
889
+ 815,
890
+ 272
891
+ ],
892
+ "page_idx": 5
893
+ },
894
+ {
895
+ "type": "text",
896
+ "text": "of $77.4\\%$ across alternatives. In Figure 2 (right), we break down power by alternative distribution. The Hamming test is strong on all alternatives except fp16, where the initial power at $N = 10m$ is much smaller. This suggests that fp16 and fp32 differ in ways that are not captured by the Hamming kernel.",
897
+ "bbox": [
898
+ 143,
899
+ 402,
900
+ 849,
901
+ 445
902
+ ],
903
+ "page_idx": 5
904
+ },
905
+ {
906
+ "type": "text",
907
+ "text": "To accommodate user tasks which require very long completions, it is important that tests retain power as the completion length $L$ increases, even though the size of the sample space grows exponentially with $L$ . In Figure 2 (middle), we fix $N = 250$ (i.e., $N = 10m$ ) and vary the completion length $L$ from 1 to 50 tokens. We observe that the Hamming MMD and all substring tests are more robust to increasing completion length than the other tests. This result is consistent with the intuition that a clever string kernel — as opposed to a one-hot kernel — can help MMD tests generalize to high-dimensional spaces.",
908
+ "bbox": [
909
+ 143,
910
+ 452,
911
+ 851,
912
+ 536
913
+ ],
914
+ "page_idx": 5
915
+ },
916
+ {
917
+ "type": "text",
918
+ "text": "4.2 DETECTING FINETUNING",
919
+ "text_level": 1,
920
+ "bbox": [
921
+ 143,
922
+ 545,
923
+ 362,
924
+ 558
925
+ ],
926
+ "page_idx": 5
927
+ },
928
+ {
929
+ "type": "text",
930
+ "text": "Given their effectiveness in detecting quantized and watermarked models, we next ask if MMD-based tests can detect when a model has been finetuned. We finetune Llama-3 8B Instruct on two datasets: a disjoint, i.i.d. split of the testing Wikipedia task, and an out-of-distribution code dataset (Chaudhary, 2023). We use a small learning rate of $1 \\times 10^{-6}$ with AdamW (Loshchilov, 2017). We then use the Hamming MMD test to compare finetuned checkpoints $Q$ to the original model as the reference distribution $P$ .",
931
+ "bbox": [
932
+ 143,
933
+ 564,
934
+ 851,
935
+ 633
936
+ ],
937
+ "page_idx": 5
938
+ },
939
+ {
940
+ "type": "text",
941
+ "text": "Figure 3 (upper left) plots power against the checkpoint number of the finetuned model. The Hamming MMD test is always able to detect finetuning with nontrivial (greater than $50\\%$ ) power, even after a single epoch (42 optimization steps). One might expect that finetuning on the out-of-distribution code dataset would not affect the model's distribution on the Wikipedia testing task, but we find this is not the case. Finetuning affects the model on other distributions enough to be detectable by statistical tests. These results suggest that it is challenging to isolate the effects of full finetuning to any single distribution, which may have implications for tasks such as unlearning or model editing (Hase et al., 2024).",
942
+ "bbox": [
943
+ 143,
944
+ 640,
945
+ 851,
946
+ 739
947
+ ],
948
+ "page_idx": 5
949
+ },
950
+ {
951
+ "type": "text",
952
+ "text": "4.3 Distinguishing IF SAMPLES COME FROM DIFFERENT LANGUAGE MODELS",
953
+ "text_level": 1,
954
+ "bbox": [
955
+ 143,
956
+ 748,
957
+ 707,
958
+ 762
959
+ ],
960
+ "page_idx": 5
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "We next explore if the Hamming MMD test can distinguish whether two bodies of text are generated from the same language model. In this setting, $P$ and $Q$ are two different language models, drawn from a pool of 13 instruction-tuned models (Figure 3 right), including eight open-weight models (Abdin et al., 2024; Groeneveld et al., 2024; Team et al., 2024) and five OpenAI closed-weight models. In order to compare",
965
+ "bbox": [
966
+ 143,
967
+ 766,
968
+ 851,
969
+ 824
970
+ ],
971
+ "page_idx": 5
972
+ },
973
+ {
974
+ "type": "header",
975
+ "text": "Published as a conference paper at ICLR 2025",
976
+ "bbox": [
977
+ 145,
978
+ 49,
979
+ 452,
980
+ 64
981
+ ],
982
+ "page_idx": 5
983
+ },
984
+ {
985
+ "type": "page_number",
986
+ "text": "6",
987
+ "bbox": [
988
+ 467,
989
+ 847,
990
+ 478,
991
+ 858
992
+ ],
993
+ "page_idx": 5
994
+ },
995
+ {
996
+ "type": "image",
997
+ "img_path": "images/94e69e505ff3f03c607f4b305ac5ebbfcb2d6189b2152bc8a05ba57072450e07.jpg",
998
+ "image_caption": [],
999
+ "image_footnote": [],
1000
+ "bbox": [
1001
+ 150,
1002
+ 119,
1003
+ 405,
1004
+ 246
1005
+ ],
1006
+ "page_idx": 6
1007
+ },
1008
+ {
1009
+ "type": "table",
1010
+ "img_path": "images/d6809946c3f0f90427faa37f75d8130a0c93d4cb77ded96f2090af49857bef4a.jpg",
1011
+ "table_caption": [],
1012
+ "table_footnote": [],
1013
+ "table_body": "<table><tr><td>Alternative Q</td><td>Power (P = Llama-3.1 8B)</td></tr><tr><td>Llama-3 8B</td><td>0.76 (0.00)</td></tr><tr><td>Llama-3 70B</td><td>1.00 (0.00)</td></tr><tr><td>Llama-3.1 70B</td><td>0.75 (0.07)</td></tr><tr><td>OLMo 7B</td><td>1.00 (0.00)</td></tr><tr><td>gpt-4o-mini</td><td>1.00 (0.00)</td></tr><tr><td>Llama-3.1 8B (watermark)</td><td>0.32 (0.04)</td></tr><tr><td>Llama-3.1 8B (int8)</td><td>0.07 (0.01)</td></tr><tr><td>Llama-3.1 8B (nf4)</td><td>1.00 (0.00)</td></tr></table>",
1014
+ "bbox": [
1015
+ 148,
1016
+ 257,
1017
+ 408,
1018
+ 375
1019
+ ],
1020
+ "page_idx": 6
1021
+ },
1022
+ {
1023
+ "type": "image",
1024
+ "img_path": "images/095cbeaa7ae5be34560c123b1975d7386c811325ed8368921d2ba0e58c719847.jpg",
1025
+ "image_caption": [
1026
+ "Figure 3: (Upper left) The Hamming MMD test is able to detect when Llama-3 8B has been finetuned on datasets of 1000 samples, even after a single epoch. Power is higher, earlier, when the finetuning distribution is i.i.d. with the testing distribution. (Lower left) The Hamming MMD test can also detect when two models are different with near-perfect power. Standard errors are over prompt distributions. Full results are in Appendix C.2. (Right) The MMD framework allows us to estimate statistical distance between any models from which we can draw samples. The cells show average estimated MMDs over 10 bootstraps. Rows are sorted using spectral clustering with two components. Models within a family are typically clustered together, suggesting that factors like training data, rather than scale, determine model similarity."
1027
+ ],
1028
+ "image_footnote": [],
1029
+ "bbox": [
1030
+ 418,
1031
+ 119,
1032
+ 848,
1033
+ 393
1034
+ ],
1035
+ "page_idx": 6
1036
+ },
1037
+ {
1038
+ "type": "text",
1039
+ "text": "models with different tokenizers, samples must be compared in character space. We sample $L = 50$ -token completions to the Wikipedia language modeling task as before, and then we decode these to characters, ignoring special tokens. The vocabulary of interest is now all Unicode characters ( $|\\mathcal{V}| = 155063$ ), the maximum completion length is $L \\approx 1000$ characters, and we test with $N = 10m$ samples.",
1040
+ "bbox": [
1041
+ 143,
1042
+ 537,
1043
+ 852,
1044
+ 594
1045
+ ],
1046
+ "page_idx": 6
1047
+ },
1048
+ {
1049
+ "type": "text",
1050
+ "text": "Switching to character space makes the testing problem significantly more challenging, as the sample space is higher dimensional: Figure 3 (lower left) shows that power to detect quantization and watermarking is lower in this setting than in the token space setting ( $\\S 4.1$ ). However, even in this more challenging setting, we find that all model swaps are detectable with $100\\%$ power, except for pairs within the Llama family, e.g., Llama-3.1 8B and Llama-3.1 70B (75% power) or Llama-3 8B and Llama-3.1 8B (76% power; Figure 3 lower left). Model swaps are significantly more detectable than watermarking or quantization. Appendix D.2 shows qualitative examples of completions from different models.",
1051
+ "bbox": [
1052
+ 143,
1053
+ 599,
1054
+ 851,
1055
+ 699
1056
+ ],
1057
+ "page_idx": 6
1058
+ },
1059
+ {
1060
+ "type": "text",
1061
+ "text": "Estimating distances between models. A useful feature of the MMD tests is that the test statistic is an estimator of a distance. As a result, we can reuse the machinery to quantify the degree to which two models differ by estimating $\\mathbb{E}_{x\\sim \\pi}[\\mathrm{MMD}(P(\\cdot \\mid x),Q(\\cdot \\mid x))]$ .<sup>5</sup> Figure 3 (right) estimates the Hamming MMD between all pairs of models. To decrease estimator error, we increase the sample size to $N = 100m$ samples from each model and report the average MMD over 10 simulations, along with standard errors. We observe that models within a family are typically clustered together, suggesting that training data, rather than",
1062
+ "bbox": [
1063
+ 143,
1064
+ 708,
1065
+ 851,
1066
+ 796
1067
+ ],
1068
+ "page_idx": 6
1069
+ },
1070
+ {
1071
+ "type": "header",
1072
+ "text": "Published as a conference paper at ICLR 2025",
1073
+ "bbox": [
1074
+ 145,
1075
+ 49,
1076
+ 452,
1077
+ 64
1078
+ ],
1079
+ "page_idx": 6
1080
+ },
1081
+ {
1082
+ "type": "page_footnote",
1083
+ "text": "5Note that the Hamming MMD is a pseudometric: $\\mathrm{MMD}_{\\mathrm{Hamming}}(P,Q) = 0$ does not imply $P = Q$ (Appendix A.1).",
1084
+ "bbox": [
1085
+ 163,
1086
+ 806,
1087
+ 849,
1088
+ 823
1089
+ ],
1090
+ "page_idx": 6
1091
+ },
1092
+ {
1093
+ "type": "page_number",
1094
+ "text": "7",
1095
+ "bbox": [
1096
+ 467,
1097
+ 845,
1098
+ 477,
1099
+ 858
1100
+ ],
1101
+ "page_idx": 6
1102
+ },
1103
+ {
1104
+ "type": "text",
1105
+ "text": "scale, determines model similarity. Surprisingly, while generations of Llama models (3 and 3.1) are close in distance, some generations of GPT models (e.g., 4-preview and 3.5-turbo) are not. This result suggests the use of different training data or procedures between these models.",
1106
+ "bbox": [
1107
+ 143,
1108
+ 119,
1109
+ 851,
1110
+ 162
1111
+ ],
1112
+ "page_idx": 7
1113
+ },
1114
+ {
1115
+ "type": "text",
1116
+ "text": "5 AUDITING INFERENCE API PROVIDERS",
1117
+ "text_level": 1,
1118
+ "bbox": [
1119
+ 143,
1120
+ 175,
1121
+ 503,
1122
+ 191
1123
+ ],
1124
+ "page_idx": 7
1125
+ },
1126
+ {
1127
+ "type": "text",
1128
+ "text": "As a case study, we now apply our test to 31 commercial inference endpoints for four of Meta's Llama models (Figure 1). These endpoints are distributed across nine API providers from Summer 2024: Amazon Bedrock, Anyscale, $^{6}$ Azure AI Studio, Deepinfra, Fireworks AI, Groq, Perplexity, Replicate, and Together.ai. $^{7}$ We are interested in whether endpoints differ from weights published by Meta on Hugging Face inferred at commonly accepted precisions. Specifically, we consider two possible null distributions: the full-precision weights $(P_{1})$ and the fp16-precision weights $(P_{2})$ . The null and alternative hypotheses are",
1129
+ "bbox": [
1130
+ 143,
1131
+ 199,
1132
+ 851,
1133
+ 282
1134
+ ],
1135
+ "page_idx": 7
1136
+ },
1137
+ {
1138
+ "type": "equation",
1139
+ "text": "\n$$\n\\begin{array}{l} H _ {0}: \\pi (x) P _ {1} (y \\mid x) = \\pi (x) Q (y \\mid x) \\quad \\text {O R} \\quad \\pi (x) P _ {2} (y \\mid x) = \\pi (x) Q (y \\mid x), \\\\ H _ {1}: \\pi (x) P _ {1} (y \\mid x) \\neq \\pi (x) Q (y \\mid x) \\quad \\text {A N D} \\quad \\pi (x) P _ {2} (y \\mid x) \\neq \\pi (x) Q (y \\mid x). \\\\ \\end{array}\n$$\n",
1140
+ "text_format": "latex",
1141
+ "bbox": [
1142
+ 230,
1143
+ 289,
1144
+ 764,
1145
+ 324
1146
+ ],
1147
+ "page_idx": 7
1148
+ },
1149
+ {
1150
+ "type": "text",
1151
+ "text": "To test this composite hypothesis, we collect three samples: $\\mathcal{D}_{P_1}$ and $\\mathcal{D}_{P_2}$ from the two null distributions, and $\\mathcal{D}_Q$ from the API. We then conduct 2 two-sample tests, one for $(\\mathcal{D}_{P_1},\\mathcal{D}_Q)$ and another for $(\\mathcal{D}_{P_2},\\mathcal{D}_Q)$ , and obtain p-values $p_1$ and $p_2$ . We set the overall rejection rule to",
1152
+ "bbox": [
1153
+ 143,
1154
+ 330,
1155
+ 851,
1156
+ 372
1157
+ ],
1158
+ "page_idx": 7
1159
+ },
1160
+ {
1161
+ "type": "equation",
1162
+ "text": "\n$$\n\\delta \\left(\\mathcal {D} _ {P _ {1}}, \\mathcal {D} _ {P _ {2}}, \\mathcal {D} _ {Q}\\right) = \\mathbf {1} \\left\\{p _ {1} < \\alpha \\wedge p _ {2} < \\alpha \\right\\}. \\tag {11}\n$$\n",
1163
+ "text_format": "latex",
1164
+ "bbox": [
1165
+ 354,
1166
+ 380,
1167
+ 851,
1168
+ 396
1169
+ ],
1170
+ "page_idx": 7
1171
+ },
1172
+ {
1173
+ "type": "text",
1174
+ "text": "This rule continues to control the FPR at $\\alpha$ under the composite null hypothesis: without loss of generality, suppose $Q = P_{1}$ . Since $P_{Q = P_1}(p_1 < \\alpha) \\leq \\alpha$ , we have $P_{Q = P_1}(p_1 < \\alpha \\land p_2 < \\alpha) = P_{Q = P_1}(p_1 < \\alpha)P_{Q = P_1}(p_2 < \\alpha \\mid p_1 < \\alpha) \\leq \\alpha$ . Note that this rule may be pessimistic, reducing power.",
1175
+ "bbox": [
1176
+ 143,
1177
+ 402,
1178
+ 851,
1179
+ 446
1180
+ ],
1181
+ "page_idx": 7
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "Experiment details. We consider testing with three prompt distributions $\\pi$ . For all models, we test with one set of the Wikipedia completion task from §4, where $\\pi$ is uniform over $m = 25$ prompts, and $L = 50$ tokens or around 1000 characters. For the smaller Llama-3 8B and Llama-3.1 8B models, we also test with the coding task HumanEval (Chen et al., 2021b) and instruction task UltraChat (Ding et al., 2023). Both $\\pi$ are uniform over $m = 20$ prompts, and $L = 250$ tokens or 3000 characters. Because APIs often return decoded completions, rather than individual tokens, we conduct all tests in character space, as in §4.3. We explicitly requested all samples at temperature 1. Tests are conducted at level $\\alpha = 0.01$ using $N = 10m$ samples. To reduce variance, we repeat tests over ten samples and fail endpoints if the average rejection rate is $\\geq 0.5$ . For the most expensive endpoint (Azure's Llama-3 70B), a Wikipedia audit costs $0.14, HumanEval $0.83, and UltraChat $0.93. For the cheapest endpoint (Fireworks' Llama-3 8B), all three audits cost less than $0.02. For additional details, including the dates we collect API samples, see Appendix B.",
1186
+ "bbox": [
1187
+ 143,
1188
+ 452,
1189
+ 851,
1190
+ 606
1191
+ ],
1192
+ "page_idx": 7
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "Results. Despite power being generally reduced due to the composite decision rule, the test flags several endpoints (Table 1). Notably, Amazon Bedrock and Perplexity have the most endpoints flagged, with the latter failing all tests. In Box 2, we include an example comparing samples from the fp32 null and Perplexity; these samples suggest that Perplexity serves a lower entropy distribution than the full-precision model. Additional qualitative samples can be found in Appendix D.3. The HumanEval and UltraChat prompt distributions elicit more failures than the Wikipedia distribution; this may be because these knowledge-intensive distributions are more sensitive to changes such as quantization.",
1197
+ "bbox": [
1198
+ 143,
1199
+ 613,
1200
+ 851,
1201
+ 712
1202
+ ],
1203
+ "page_idx": 7
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "To estimate the effect size of deviations, we estimate the MMD between providers and the nulls using ten bootstraps of $N = 100m$ samples each. We find that some deviations are quite large: some APIs'",
1208
+ "bbox": [
1209
+ 143,
1210
+ 717,
1211
+ 851,
1212
+ 747
1213
+ ],
1214
+ "page_idx": 7
1215
+ },
1216
+ {
1217
+ "type": "header",
1218
+ "text": "Published as a conference paper at ICLR 2025",
1219
+ "bbox": [
1220
+ 145,
1221
+ 49,
1222
+ 452,
1223
+ 63
1224
+ ],
1225
+ "page_idx": 7
1226
+ },
1227
+ {
1228
+ "type": "page_footnote",
1229
+ "text": "<sup>6</sup>We collected samples from Anyscale's serverless endpoints from before they were deprecated in August 2024.",
1230
+ "bbox": [
1231
+ 163,
1232
+ 755,
1233
+ 823,
1234
+ 768
1235
+ ],
1236
+ "page_idx": 7
1237
+ },
1238
+ {
1239
+ "type": "page_footnote",
1240
+ "text": "At the time of writing, only two providers disclosed distribution-altering optimizations: Fireworks AI noted semantic caching, and Together.ai noted quantization.",
1241
+ "bbox": [
1242
+ 143,
1243
+ 768,
1244
+ 849,
1245
+ 796
1246
+ ],
1247
+ "page_idx": 7
1248
+ },
1249
+ {
1250
+ "type": "page_footnote",
1251
+ "text": "In Figure 1, we combine the results of the tests on the prompt distributions via a Bonferroni correction, setting the level of each test to $\\alpha = 0.01 / 3$ and rejecting if the endpoint fails on any of the three prompt distributions.",
1252
+ "bbox": [
1253
+ 143,
1254
+ 795,
1255
+ 849,
1256
+ 823
1257
+ ],
1258
+ "page_idx": 7
1259
+ },
1260
+ {
1261
+ "type": "page_number",
1262
+ "text": "8",
1263
+ "bbox": [
1264
+ 467,
1265
+ 847,
1266
+ 477,
1267
+ 858
1268
+ ],
1269
+ "page_idx": 7
1270
+ },
1271
+ {
1272
+ "type": "table",
1273
+ "img_path": "images/04f49214416d29a431c0ab5eb2b409df8180ec2324865e6f4c793f98dddcf847.jpg",
1274
+ "table_caption": [],
1275
+ "table_footnote": [],
1276
+ "table_body": "<table><tr><td></td><td colspan=\"4\">Wikipedia</td><td colspan=\"2\">HumanEval</td><td colspan=\"2\">UltraChat</td></tr><tr><td></td><td>3 8B</td><td>3.1 8B</td><td>3 70B</td><td>3.1 70B</td><td>3 8B</td><td>3.1 8B</td><td>3 8B</td><td>3.1 8B</td></tr><tr><td>Amazon</td><td>✓</td><td>X</td><td>✓</td><td>X</td><td>✓</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Anyscale</td><td>✓</td><td>—</td><td>—</td><td>—</td><td>—</td><td>—</td><td>—</td><td>—</td></tr><tr><td>Azure</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td></tr><tr><td>Deepinfra</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td></tr><tr><td>Fireworks</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>X</td><td>✓</td><td>X</td></tr><tr><td>Groq</td><td>✓</td><td>✓</td><td>✓</td><td>X</td><td>✓</td><td>X</td><td>✓</td><td>✓</td></tr><tr><td>Perplexity</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Replicate</td><td>✓</td><td>—</td><td>X</td><td>—</td><td>✓</td><td>—</td><td>✓</td><td>—</td></tr><tr><td>Together</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td></tr></table>",
1277
+ "bbox": [
1278
+ 236,
1279
+ 116,
1280
+ 763,
1281
+ 272
1282
+ ],
1283
+ "page_idx": 8
1284
+ },
1285
+ {
1286
+ "type": "text",
1287
+ "text": "Table 1: Audit results for 31 API endpoints across nine companies and four language models. $\\times$ denotes an endpoint failure, i.e., the average rejection rate over ten samples is $\\geq {50}\\%$ .",
1288
+ "bbox": [
1289
+ 143,
1290
+ 282,
1291
+ 849,
1292
+ 311
1293
+ ],
1294
+ "page_idx": 8
1295
+ },
1296
+ {
1297
+ "type": "image",
1298
+ "img_path": "images/f626666dd9d33f77d7e6bf6685a239f41b44e9e520fafb58a6ee212508fb1a63.jpg",
1299
+ "image_caption": [
1300
+ "Figure 4: (Left) Average MMD (Hamming) between providers for each model. Amazon Bedrock's Llama-3 and -3.1 70B models are the most different from the other providers. (Right) Absolute difference in HumanEval average accuracy vs. the MMD (Hamming). There is a moderate positive correlation between MMD and task accuracy. Gray points indicate pairs where both distributions have accuracy $< 10\\%$ . There are multiple ways to be wrong for a task, and the MMD captures these differences."
1301
+ ],
1302
+ "image_footnote": [],
1303
+ "bbox": [
1304
+ 148,
1305
+ 330,
1306
+ 498,
1307
+ 458
1308
+ ],
1309
+ "page_idx": 8
1310
+ },
1311
+ {
1312
+ "type": "image",
1313
+ "img_path": "images/c38084b23298e453982973e89e5cc27b2c6f74e0b39f2f1402dc3be2caa5bae0.jpg",
1314
+ "image_caption": [],
1315
+ "image_footnote": [],
1316
+ "bbox": [
1317
+ 504,
1318
+ 330,
1319
+ 844,
1320
+ 454
1321
+ ],
1322
+ "page_idx": 8
1323
+ },
1324
+ {
1325
+ "type": "text",
1326
+ "text": "implementations are further from the reference weights than if the provider had substituted in an entirely different language model. For example, the deviation between Perplexity's Llama-3 8B and the fp32 null on the Wikipedia testing task is 0.03. This is comparable to the deviation between Llama-3 8B and GPT-3.5-Turbo (0.03; Figure 3 right), Phi-3 mini (0.04), or OLMo 7B (0.04).",
1327
+ "bbox": [
1328
+ 143,
1329
+ 561,
1330
+ 852,
1331
+ 619
1332
+ ],
1333
+ "page_idx": 8
1334
+ },
1335
+ {
1336
+ "type": "text",
1337
+ "text": "Correlating MMD with task accuracy. We now ask how well the Hamming MMD correlates with task accuracy when available. Automated verifiers exist for one of our prompt distributions, HumanEval. We find a moderate positive correlation between the absolute average accuracy difference and the Hamming MMD (Figure 4 right, $R^2 = 0.392$ ). In several cases, the MMD is high but the accuracy difference is low. These are often when both task accuracies are low: the gray points in the figure highlight pairs where both distributions have accuracy $< 10\\%$ . In these cases, the MMD captures that there are multiple ways to be wrong for a task. For example, the bottom-right-most point in the figure contrasts Llama-3.1 8B from Perplexity vs. the nf4 version; Perplexity answers with incorrect code snippets, while nf4 outputs nonsense completions (e.g., \"simulation!!!!!![...]\"). Samples from this comparison can be found in Appendix D.3.",
1338
+ "bbox": [
1339
+ 143,
1340
+ 628,
1341
+ 851,
1342
+ 755
1343
+ ],
1344
+ "page_idx": 8
1345
+ },
1346
+ {
1347
+ "type": "text",
1348
+ "text": "Which models do providers differ on most? Finally, we ask whether providers differ on some more models more than others. Figure 4 (left) estimates the MMD between providers for each model, and the large Llama-3.1 405B model. We find that deviations are larger on the earlier Llama models than the recent Llama-3.1 405B model.",
1349
+ "bbox": [
1350
+ 143,
1351
+ 766,
1352
+ 852,
1353
+ 821
1354
+ ],
1355
+ "page_idx": 8
1356
+ },
1357
+ {
1358
+ "type": "header",
1359
+ "text": "Published as a conference paper at ICLR 2025",
1360
+ "bbox": [
1361
+ 145,
1362
+ 49,
1363
+ 452,
1364
+ 64
1365
+ ],
1366
+ "page_idx": 8
1367
+ },
1368
+ {
1369
+ "type": "page_number",
1370
+ "text": "9",
1371
+ "bbox": [
1372
+ 467,
1373
+ 845,
1374
+ 478,
1375
+ 858
1376
+ ],
1377
+ "page_idx": 8
1378
+ },
1379
+ {
1380
+ "type": "text",
1381
+ "text": "Box 2: Samples from fp32 vs. Perplexity for Llama-3 8B (Instruct)",
1382
+ "text_level": 1,
1383
+ "bbox": [
1384
+ 169,
1385
+ 119,
1386
+ 612,
1387
+ 136
1388
+ ],
1389
+ "page_idx": 9
1390
+ },
1391
+ {
1392
+ "type": "text",
1393
+ "text": "Prompt: Continue the paragraph. Do not output anything except the continuation to the paragraph. Start the continuation immediately.",
1394
+ "bbox": [
1395
+ 169,
1396
+ 146,
1397
+ 826,
1398
+ 172
1399
+ ],
1400
+ "page_idx": 9
1401
+ },
1402
+ {
1403
+ "type": "text",
1404
+ "text": "\"Weaver, Tom. I Talked with a Zombie: Interviews with 23 Veterans of Horror and Sci-Fi Films and Tele...\"",
1405
+ "bbox": [
1406
+ 169,
1407
+ 172,
1408
+ 805,
1409
+ 185
1410
+ ],
1411
+ "page_idx": 9
1412
+ },
1413
+ {
1414
+ "type": "text",
1415
+ "text": "fp32",
1416
+ "bbox": [
1417
+ 179,
1418
+ 198,
1419
+ 204,
1420
+ 209
1421
+ ],
1422
+ "page_idx": 9
1423
+ },
1424
+ {
1425
+ "type": "text",
1426
+ "text": "Perplexity",
1427
+ "bbox": [
1428
+ 506,
1429
+ 198,
1430
+ 555,
1431
+ 210
1432
+ ],
1433
+ "page_idx": 9
1434
+ },
1435
+ {
1436
+ "type": "list",
1437
+ "sub_type": "ref_text",
1438
+ "list_items": [
1439
+ "\"...vision, Some of Whom Are Still Alive. New York: Pocket Books, 1981. According to Tom Weaver, Vincent Price was known for being a bit of a practical joker, and he would often play harmless pranks on the crew",
1440
+ "\"...visions. New York: St. Martin's Press, 1988. This collection of interviews with horror and science fiction professionals is a fascinating look at the creative process and the people behind some of the most iconic films and TV shows of the",
1441
+ "\"...vision, voodoo, and the Apocalypse. New York: St. Martin's Press, 1990. The book features interviews with notable horror and science fiction personalities, including Greg Cannom, makeup artist for The Lost Boys and RoboCop",
1442
+ "\"...visions. New York: St. Martin's Press, 1988. In this collection of interviews, Weaver delves into the experiences of some of the most iconic figures in the horror and science fiction genres, including George Romero, John Carpenter,",
1443
+ "\"...vision. Written by Tom Weaver, a renowned authority on classical horror cinema, this book brings together intimate and revealing conversations with some of the most legendary figures in the genre, including Vincent Price, Boris Karloff, and Bela Lugosi. Interviews",
1444
+ "\"...vision. New York: St. Martin's Press, 1988. 224 pp. This collection of interviews with horror and science fiction professionals is a fascinating look at the people behind the genre's most iconic films. Weaver's conversational style"
1445
+ ],
1446
+ "bbox": [
1447
+ 179,
1448
+ 213,
1449
+ 812,
1450
+ 356
1451
+ ],
1452
+ "page_idx": 9
1453
+ },
1454
+ {
1455
+ "type": "text",
1456
+ "text": "6 RELATED WORK",
1457
+ "text_level": 1,
1458
+ "bbox": [
1459
+ 145,
1460
+ 383,
1461
+ 315,
1462
+ 398
1463
+ ],
1464
+ "page_idx": 9
1465
+ },
1466
+ {
1467
+ "type": "text",
1468
+ "text": "Auditing ML APIs. Prior work either only applies to the classifier setting (Chen et al., 2021a; 2022) or audit by monitoring performance on low-temperature multiple-choice or short-answer benchmarks (ArtificialAnalysis, 2024; Chen et al., 2023; Eyuboglu et al., 2024). Concurrent work studies a general language model setting, but does not provide guarantees of audit correctness (Sam et al., 2025). In contrast, we formalize auditing as a hypothesis testing problem, allowing us to provide FPR guarantees, and we study the general setting of sampling completions from language models, including for tasks without automated verifiers. In cryptography, a body of work has aimed to verify ML API predictions through proof protocols (Ghodsi et al., 2017; Feng et al., 2021; Liu et al., 2021; Kang et al., 2022; Weng et al., 2023; Lee et al., 2024). These methods require APIs to cooperate and opt-in to providing proofs of valid inference alongside each prediction; public verifiers then check these proofs for correctness with perfect accuracy. Unfortunately, these methods scale too poorly to apply to large language models: in Kang et al. (2022), generating a proof takes 41 minutes per prediction for a 68M parameter MobileNet (Sandler et al., 2018).",
1469
+ "bbox": [
1470
+ 143,
1471
+ 411,
1472
+ 852,
1473
+ 580
1474
+ ],
1475
+ "page_idx": 9
1476
+ },
1477
+ {
1478
+ "type": "text",
1479
+ "text": "Two-sample testing. Testing whether two samples come from the same distribution is an established problem in statistics. A line of work focuses on testing multinomial distributions (Batu et al., 2013; Chan et al., 2014; Canonne, 2020), including when samples have unequal sizes (Bhattacharya & Valiant, 2015; Diakonikolas & Kane, 2016; Balakrishnan & Wasserman, 2018). MMD-based tests are a general approach that do not assume a specific distributional form (Gretton et al., 2012). These tests can be applied to structured data when paired with appropriate kernels (Lodhi et al., 2002; Borgwardt et al., 2006).",
1480
+ "bbox": [
1481
+ 143,
1482
+ 590,
1483
+ 852,
1484
+ 675
1485
+ ],
1486
+ "page_idx": 9
1487
+ },
1488
+ {
1489
+ "type": "text",
1490
+ "text": "7 CONCLUSION",
1491
+ "text_level": 1,
1492
+ "bbox": [
1493
+ 145,
1494
+ 686,
1495
+ 294,
1496
+ 702
1497
+ ],
1498
+ "page_idx": 9
1499
+ },
1500
+ {
1501
+ "type": "text",
1502
+ "text": "As the public grows more dependent on black-box APIs to interact with language models, tools for auditing these APIs are increasingly important. In this work, we unified several API auditing tasks under the formalization of Model Equality Testing, a two-sample distribution testing problem, and we extensively validated candidate tests for this problem. Future work could explore stronger tests than those we have presented, or explore how to adapt these tests to other modalities, such as image generation models. To help facilitate this research, we open-source the dataset of 1 million LLM completions used for this work at https://github.com/i-gao/model-equality-testing. This dataset contains completions from five models across quantized, watermarked, and API alternatives; also see Appendix B.1.",
1503
+ "bbox": [
1504
+ 143,
1505
+ 710,
1506
+ 852,
1507
+ 824
1508
+ ],
1509
+ "page_idx": 9
1510
+ },
1511
+ {
1512
+ "type": "header",
1513
+ "text": "Published as a conference paper at ICLR 2025",
1514
+ "bbox": [
1515
+ 145,
1516
+ 49,
1517
+ 452,
1518
+ 64
1519
+ ],
1520
+ "page_idx": 9
1521
+ },
1522
+ {
1523
+ "type": "page_number",
1524
+ "text": "10",
1525
+ "bbox": [
1526
+ 462,
1527
+ 845,
1528
+ 482,
1529
+ 858
1530
+ ],
1531
+ "page_idx": 9
1532
+ },
1533
+ {
1534
+ "type": "text",
1535
+ "text": "ACKNOWLEDGEMENTS",
1536
+ "text_level": 1,
1537
+ "bbox": [
1538
+ 145,
1539
+ 119,
1540
+ 339,
1541
+ 133
1542
+ ],
1543
+ "page_idx": 10
1544
+ },
1545
+ {
1546
+ "type": "text",
1547
+ "text": "The authors would like to thank Mert Yuksekgonul, Steven Cao, Chenchen Gu, Chenglei Si, Nicole Meister, Yifan Mai, Simon Guo, Teddi Worledge, Yuhui Zhang, and other members of the Guestrin and P-Lambda labs for feedback on this paper.",
1548
+ "bbox": [
1549
+ 143,
1550
+ 142,
1551
+ 852,
1552
+ 186
1553
+ ],
1554
+ "page_idx": 10
1555
+ },
1556
+ {
1557
+ "type": "text",
1558
+ "text": "CONFLICTS OF INTEREST",
1559
+ "text_level": 1,
1560
+ "bbox": [
1561
+ 145,
1562
+ 196,
1563
+ 357,
1564
+ 212
1565
+ ],
1566
+ "page_idx": 10
1567
+ },
1568
+ {
1569
+ "type": "text",
1570
+ "text": "PL is a co-founder of Together AI; this work was done in his Stanford capacity. The topic, research, and results of this work were not shared with Together, or any other API provider evaluated, until the public release of the paper.",
1571
+ "bbox": [
1572
+ 143,
1573
+ 220,
1574
+ 852,
1575
+ 263
1576
+ ],
1577
+ "page_idx": 10
1578
+ },
1579
+ {
1580
+ "type": "text",
1581
+ "text": "REFERENCES",
1582
+ "text_level": 1,
1583
+ "bbox": [
1584
+ 145,
1585
+ 275,
1586
+ 261,
1587
+ 290
1588
+ ],
1589
+ "page_idx": 10
1590
+ },
1591
+ {
1592
+ "type": "list",
1593
+ "sub_type": "ref_text",
1594
+ "list_items": [
1595
+ "Marah Abdin, Sam Ade Jacobs, Ammar Ahmad Awan, Jyoti Aneja, Ahmed Awadallah, Hany Awadalla, Nguyen Bach, Amit Bahree, Arash Bakhtiari, Harkirat Behl, et al. Phi-3 technical report: A highly capable language model locally on your phone. arXiv preprint arXiv:2404.14219, 2024.",
1596
+ "Amazon. Amazon 2024 q1 earnings. https://s2.q4cdn.com/299287126/files/doc_financials/2024/q1/AMZN-Q1-2024-Earnings-Release.pdf, 2024.",
1597
+ "ArtificialAnalysis. Artificial analysis, 2024. URL https://artificialanalysis.ai/.",
1598
+ "Sivaraman Balakrishnan and Larry Wasserman. Hypothesis testing for high-dimensional multinomials: A selective review. 2018.",
1599
+ "Gagan Bansal, Besmira Nushi, Ece Kamar, Daniel S Weld, Walter S Lasecki, and Eric Horvitz. Updates in human-ai teams: Understanding and addressing the performance/compatibility tradeoff. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 2429–2437, 2019.",
1600
+ "Tugkan Batu, Lance Fortnow, Ronitt Rubinfeld, Warren D Smith, and Patrick White. Testing closeness of discrete distributions. Journal of the ACM (JACM), 60(1):1-25, 2013.",
1601
+ "Bhaswar Bhattacharya and Gregory Valiant. Testing closeness with unequal sized samples. Advances in Neural Information Processing Systems, 28, 2015.",
1602
+ "Karsten M Borgwardt, Arthur Gretton, Malte J Rasch, Hans-Peter Kriegel, Bernhard Scholkopf, and Alex J Smola. Integrating structured biological data by kernel maximum mean discrepancy. Bioinformatics, 22 (14):e49-e57, 2006.",
1603
+ "Clément L Canonne. A survey on distribution testing: Your data is big. but is it blue? Theory of Computing, pp. 1-100, 2020.",
1604
+ "Siu-On Chan, Ilias Diakonikolas, Paul Valiant, and Gregory Valiant. Optimal algorithms for testing closeness of discrete distributions. In Proceedings of the twenty-fifth annual ACM-SIAM symposium on Discrete algorithms, pp. 1193-1203. SIAM, 2014.",
1605
+ "Sahil Chaudhary. Code alpaca: An instruction-following llama model for code generation. https://github.com/sahil280114/codealpaca, 2023.",
1606
+ "Lingjiao Chen, Tracy Cai, Matei Zaharia, and James Zou. Did the model change? efficiently assessing machine learning api shifts. arXiv preprint arXiv:2107.14203, 2021a.",
1607
+ "Lingjiao Chen, Zhihua Jin, Evan Sabri Eyuboglu, Christopher Ré, Matei Zaharia, and James Y Zou. Hapi: A large-scale longitudinal dataset of commercial ml api predictions. Advances in Neural Information Processing Systems, 35:24571-24585, 2022."
1608
+ ],
1609
+ "bbox": [
1610
+ 145,
1611
+ 297,
1612
+ 852,
1613
+ 821
1614
+ ],
1615
+ "page_idx": 10
1616
+ },
1617
+ {
1618
+ "type": "header",
1619
+ "text": "Published as a conference paper at ICLR 2025",
1620
+ "bbox": [
1621
+ 145,
1622
+ 49,
1623
+ 452,
1624
+ 64
1625
+ ],
1626
+ "page_idx": 10
1627
+ },
1628
+ {
1629
+ "type": "page_number",
1630
+ "text": "11",
1631
+ "bbox": [
1632
+ 464,
1633
+ 845,
1634
+ 480,
1635
+ 858
1636
+ ],
1637
+ "page_idx": 10
1638
+ },
1639
+ {
1640
+ "type": "list",
1641
+ "sub_type": "ref_text",
1642
+ "list_items": [
1643
+ "Lingjiao Chen, Matei Zaharia, and James Zou. How is chatgpt's behavior changing over time? arXiv preprint arXiv:2307.09009, 2023.",
1644
+ "Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code, 2021b.",
1645
+ "Cohere. Multilingual wikipedia (11-2023), 2023. URL https://huggingface.co/datasets/Cohere/wikipedia-2023-11-embed-multilingual-v3. Huggingface dataset.",
1646
+ "Tim Dettmers, Mike Lewis, Younes Belkada, and Luke Zettlemoyer. Gpt3. int8(): 8-bit matrix multiplication for transformers at scale. Advances in Neural Information Processing Systems, 35:30318-30332, 2022.",
1647
+ "Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. Qlora: Efficient finetuning of quantized llms. Advances in Neural Information Processing Systems, 36, 2024.",
1648
+ "Ilias Diakonikolas and Daniel M Kane. A new approach for testing properties of discrete distributions. In 2016 IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS), pp. 685-694. IEEE, 2016.",
1649
+ "Ning Ding, Yulin Chen, Bokai Xu, Yujia Qin, Zhi Zheng, Shengding Hu, Zhiyuan Liu, Maosong Sun, and Bowen Zhou. Enhancing chat language models by scaling high-quality instructional conversations. arXiv preprint arXiv:2305.14233, 2023.",
1650
+ "Sabri Eyuboglu, Karan Goel, Arjun Desai, Lingjiao Chen, Mathew Monfort, Chris Ré, and James Zou. Model changelists: Characterizing updates to ml models. In The 2024 ACM Conference on Fairness, Accountability, and Transparency, pp. 2432-2453, 2024.",
1651
+ "Boyuan Feng, Lianke Qin, Zhenfei Zhang, Yufei Ding, and Shumo Chu. Zen: An optimizing compiler for verifiable, zero-knowledge neural network inferences. Cryptology ePrint Archive, 2021.",
1652
+ "Zahra Ghodsi, Tianyu Gu, and Siddharth Garg. Safetynets: Verifiable execution of deep neural networks on an untrusted cloud. Advances in Neural Information Processing Systems, 30, 2017.",
1653
+ "Arthur Gretton, Karsten M Borgwardt, Malte J Rasch, Bernhard Scholkopf, and Alexander Smola. A kernel two-sample test. The Journal of Machine Learning Research, 13(1):723-773, 2012.",
1654
+ "Dirk Groeneveld, Iz Beltagy, Pete Walsh, Akshita Bhagia, Rodney Kinney, Oyvind Tafjord, Ananya Harsh Jha, Hamish Ivison, Ian Magnusson, Yizhong Wang, et al. Olmo: Accelerating the science of language models. arXiv preprint arXiv:2402.00838, 2024.",
1655
+ "Peter Hase, Thomas Hofweber, Xiang Zhou, Elias Stengel-Eskin, and Mohit Bansal. Fundamental problems with model editing: How should rational belief revision work in llms? arXiv preprint arXiv:2406.19354, 2024."
1656
+ ],
1657
+ "bbox": [
1658
+ 145,
1659
+ 119,
1660
+ 851,
1661
+ 821
1662
+ ],
1663
+ "page_idx": 11
1664
+ },
1665
+ {
1666
+ "type": "header",
1667
+ "text": "Published as a conference paper at ICLR 2025",
1668
+ "bbox": [
1669
+ 145,
1670
+ 49,
1671
+ 455,
1672
+ 64
1673
+ ],
1674
+ "page_idx": 11
1675
+ },
1676
+ {
1677
+ "type": "page_number",
1678
+ "text": "12",
1679
+ "bbox": [
1680
+ 464,
1681
+ 845,
1682
+ 482,
1683
+ 858
1684
+ ],
1685
+ "page_idx": 11
1686
+ },
1687
+ {
1688
+ "type": "list",
1689
+ "sub_type": "ref_text",
1690
+ "list_items": [
1691
+ "Albert Q Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, et al. Mistral 7b. arXiv preprint arXiv:2310.06825, 2023.",
1692
+ "Daniel Kang, Tatsunori Hashimoto, Ion Stoica, and Yi Sun. Scaling up trustless dnn inference with zero-knowledge proofs. arXiv preprint arXiv:2210.08674, 2022.",
1693
+ "John Kirchenbauer, Jonas Geiping, Yuxin Wen, Jonathan Katz, Ian Miers, and Tom Goldstein. A watermark for large language models. In International Conference on Machine Learning, pp. 17061-17084. PMLR, 2023.",
1694
+ "Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph Gonzalez, Hao Zhang, and Ion Stoica. Efficient memory management for large language model serving with pagedattention. In Proceedings of the 29th Symposium on Operating Systems Principles, pp. 611-626, 2023.",
1695
+ "Seunghwa Lee, Hankyung Ko, Jihye Kim, and Hyunok Oh. vcnn: Verifiable convolutional neural network based on zk-snarks. IEEE Transactions on Dependable and Secure Computing, 2024.",
1696
+ "Erich Leo Lehmann, Joseph P Romano, and George Casella. Testing statistical hypotheses, volume 3. Springer, 1986.",
1697
+ "Percy Liang, Rishi Bommasani, Tony Lee, Dimitris Tsipras, Dilara Soylu, Michihiro Yasunaga, Yian Zhang, Deepak Narayanan, Yuhuai Wu, Ananya Kumar, et al. Holistic evaluation of language models. arXiv preprint arXiv:2211.09110, 2022.",
1698
+ "Tianyi Liu, Xiang Xie, and Yupeng Zhang. ZkCNN: Zero knowledge proofs for convolutional neural network predictions and accuracy. In Proceedings of the 2021 ACM SIGSAC Conference on Computer and Communications Security, pp. 2968-2985, 2021.",
1699
+ "Huma Lodhi, Craig Saunders, John Shawe-Taylor, Nello Cristianini, and Chris Watkins. Text classification using string kernels. Journal of machine learning research, 2(Feb):419-444, 2002.",
1700
+ "I Loshchilov. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.",
1701
+ "AI Meta. Introducing meta llama 3: The most capable openly available llm to date. Meta AI, 2024.",
1702
+ "Ashwinee Panda. Post by @pandaashwinee. discussion of quantization for llama 3.1. https://x.com/pandaashwinee/status/1816966288905998829, 2024.",
1703
+ "Luiza Pozzobon, Beyza Ermis, Patrick Lewis, and Sara Hooker. On the challenges of using black-box apis for toxicity evaluation in research. arXiv preprint arXiv:2304.12397, 2023.",
1704
+ "Reddit. Post by user: mo4gv9eywmpmw3xr. result: Llama 3 exl2 quant quality compared to gguf and llama 2. https://www.reddit.com/r/LocalLLaMA/comments/1cfbadc/result_llama_3_exl2_quant_quality_compared_to/, 2024.",
1705
+ "Dylan Sam, Marc Finzi, and J Zico Kolter. Predicting the performance of black-box llms through self-queries. arXiv preprint arXiv:2501.01558, 2025.",
1706
+ "Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. *Mobilenetv2: Inverted residuals and linear bottlenecks*. In *Proceedings of the IEEE conference on computer vision and pattern recognition*, pp. 4510-4520, 2018.",
1707
+ "Ingo Steinwart. On the influence of the kernel on the consistency of support vector machines. Journal of machine learning research, 2(Nov):67-93, 2001."
1708
+ ],
1709
+ "bbox": [
1710
+ 145,
1711
+ 119,
1712
+ 851,
1713
+ 821
1714
+ ],
1715
+ "page_idx": 12
1716
+ },
1717
+ {
1718
+ "type": "header",
1719
+ "text": "Published as a conference paper at ICLR 2025",
1720
+ "bbox": [
1721
+ 145,
1722
+ 49,
1723
+ 452,
1724
+ 64
1725
+ ],
1726
+ "page_idx": 12
1727
+ },
1728
+ {
1729
+ "type": "page_number",
1730
+ "text": "13",
1731
+ "bbox": [
1732
+ 464,
1733
+ 845,
1734
+ 482,
1735
+ 859
1736
+ ],
1737
+ "page_idx": 12
1738
+ },
1739
+ {
1740
+ "type": "list",
1741
+ "sub_type": "ref_text",
1742
+ "list_items": [
1743
+ "Gemma Team, Thomas Mesnard, Cassidy Hardin, Robert Dadashi, Surya Bhupatiraju, Shreya Pathak, Laurent Sifre, Morgane Riviere, Mihir Sanjay Kale, Juliette Love, et al. Gemma: Open models based on gemini research and technology. arXiv preprint arXiv:2403.08295, 2024.",
1744
+ "Jiasi Weng, Jian Weng, Gui Tang, Anjia Yang, Ming Li, and Jia-Nan Liu. pvCNN: Privacy-preserving and verifiable convolutional neural network testing. IEEE Transactions on Information Forensics and Security, 18:2218-2233, 2023.",
1745
+ "Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumont, Clement Delangue, Anthony Moi, Pierrick Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, et al. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 conference on empirical methods in natural language processing: system demonstrations, pp. 38-45, 2020."
1746
+ ],
1747
+ "bbox": [
1748
+ 145,
1749
+ 119,
1750
+ 849,
1751
+ 279
1752
+ ],
1753
+ "page_idx": 13
1754
+ },
1755
+ {
1756
+ "type": "header",
1757
+ "text": "Published as a conference paper at ICLR 2025",
1758
+ "bbox": [
1759
+ 145,
1760
+ 49,
1761
+ 452,
1762
+ 64
1763
+ ],
1764
+ "page_idx": 13
1765
+ },
1766
+ {
1767
+ "type": "page_number",
1768
+ "text": "14",
1769
+ "bbox": [
1770
+ 464,
1771
+ 845,
1772
+ 482,
1773
+ 858
1774
+ ],
1775
+ "page_idx": 13
1776
+ }
1777
+ ]
2025/Model Equality Testing_ Which Model is this API Serving_/8d15512f-4850-44b9-9f62-11c1ca40138e_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model Equality Testing_ Which Model is this API Serving_/8d15512f-4850-44b9-9f62-11c1ca40138e_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:276bf62dc7330fb538daffa1c392d05aae4fdb718aff4e8d59ffbd249699741b
3
+ size 1039732
2025/Model Equality Testing_ Which Model is this API Serving_/full.md ADDED
@@ -0,0 +1,304 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MODEL EQUALITY TESTING: WHICH MODEL IS THIS API SERVING?
2
+
3
+ Irena Gao, Percy Liang, Carlos Guestrin
4
+
5
+ irena@cs.stanford.edu, pliang@cs.stanford.edu, guestrin@stanford.edu
6
+
7
+ Stanford University
8
+
9
+ # ABSTRACT
10
+
11
+ Users often interact with large language models through black-box inference APIs, both for closed- and open-weight models (e.g., Llama models are popularly accessed via Amazon Bedrock and Azure AI Studios). In order to cut costs or add functionality, API providers may quantize, watermark, or finetune the underlying model, changing the output distribution — possibly without notifying users. We formalize detecting such distortions as Model Equality Testing, a two-sample testing problem, where the user collects samples from the API and a reference distribution, and conducts a statistical test to see if the two distributions are the same. We find that tests based on the Maximum Mean Discrepancy between distributions are powerful for this task: a test built on a simple string kernel achieves a median of $77.4\%$ power against a range of distortions, using an average of just 10 samples per prompt. We then apply this test to commercial inference APIs from Summer 2024 for four Llama models, finding that 11 out of 31 endpoints serve different distributions than reference weights released by Meta.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Since running a large language model requires compute and technical expertise, many users rely on black-box APIs to handle inference. This applies to both closed-weight models, like GPT and Claude, and openweight ones: e.g., Amazon Bedrock, Microsoft Azure, and the seven other companies in Figure 1 all compete to offer Llama models as a service. While users can sample from black-box APIs, they have little to no insight into the underlying implementation of the model, including into questions like:
16
+
17
+ 1. How has the API modified the language model's distribution? To drive down costs, API providers may quantize or prune large model weights; they may also watermark outputs or incorrectly implement some decoding parameters. These changes distort the resulting distribution of completions. The problem is when such distortions are undisclosed: users assume that calling a third-party API is exactly equivalent to working with the original model. For example, benchmarks like HELM (Liang et al., 2022) evaluate models through third-party APIs, but quantized or watermarked models may be less capable than the intended model.
18
+ 2. Is the API changing over time? Language model inference endpoints may also drift over time without notifying users (Chen et al., 2023; Eyuboglu et al., 2024), e.g., due to finetuning or updates to the inference stack. Unstable APIs affect research reproducibility (Pozzobon et al., 2023) and can disrupt user productivity in human-AI teams (Bansal et al., 2019).
19
+
20
+ Under the status quo, neither users nor regulators have a way to rigorously answer these questions for themselves. These concerns are important to address: tens of thousands of developers already rely on black-box inference APIs for applications (Amazon, 2024), and this dependence will increase as LLMs —
21
+
22
+ ![](images/ffa5a3f202b1e62a6fb0b0357b2ce807d9547707475acdecfbb935239e47ceaa.jpg)
23
+ Figure 1: (Left) We formalize auditing black-box language model inference APIs as Model Equality Testing. This enables us to assess an API's faithfulness to a reference distribution and its stability over time. (Right) We evaluate candidate tests and apply the most powerful one to Llama model APIs from Summer 2024, finding that 11 of 31 endpoints deviate from reference weights released by Meta.
24
+
25
+ ![](images/71be53b4dcbcbf09ce6cacf1d5d4e223c674454353fb1534813ea550cd513673.jpg)
26
+
27
+ and the corresponding infrastructure costs for hosting — grow larger. For example, most users must rely on third-party APIs to use Llama 3.1 405B because of its size.
28
+
29
+ The current approach to this problem is for an outside auditor to monitor APIs' accuracies on multiple-choice or short-answer benchmarks (ArtificialAnalysis, 2024); these studies typically decode from the language model greedily. Such audits can be a poor match for user needs. Greedy decoding only checks that the modes of the next-token distributions match, rather than the overall distribution over completions, which is problematic because users often sample from models. Short-answer benchmarks cover only a small slice of possible prefixes, which may significantly differ from a particular user's task: e.g., common applications like code generation, dialogue, and summarization are longform tasks. Ideally, users could personally audit APIs on their custom tasks. Such a method should be sample-efficient, apply to tasks without automated verifiers, and assess with confidence whether the overall distribution of completions has shifted in a statistically significant way.
30
+
31
+ We provide such a method. Suppose a user wishes to audit a an API on their task of interest. The user collects two samples: one from a reference distribution $P$ and one from the test API's distribution $Q$ . For example, to answer if an API has modified the distribution of an open-weight model, $P$ might be from reference model weights released on Hugging Face. To answer if the API is changing over time, $P$ might be from the API at an earlier point in time (Figure 1 left). The user then conducts a two-sample test for whether $P = Q$ to examine if the API's distribution is statistically indistinguishable from the reference.
32
+
33
+ Our setting is challenging because the distributions being compared are high-dimensional: they are defined over multi-token completions from large vocabularies. Two-sample kernel tests based on estimating the Maximum Mean Discrepancy (MMD) between $P$ and $Q$ (Gretton et al., 2012) are flexible tools for this setting, as they allow us to specify a featurization to reduce dimensionality. We find that a simple string kernel based on the Hamming distance between completions is particularly sample-efficient. In simulations (\$4), this test achieves a median of $77.4\%$ power against a wide range of distortions — e.g., quantization, watermarking, and finetuning — using an average of just 10 samples per prompt for distributions over 20-25 prompts. We then apply this test to nine commercial inference API providers across four Llama models (\$5, Figure 1 right). Our test flags 11 out of these 31 endpoints, with each audit costing less than $1.
34
+
35
+ Because our test statistic is an estimate of a distance, we also explore how this machinery can quantify statistical distances between black-box endpoints. In §4.3, we estimate pairwise distances between the output distributions of 13 language models — without requiring log probability access — and find that models within the same family (e.g., the Llama family or GPT-3.5 family) output more similar distributions than models within the same size range (e.g., 7B or 70B models). In §5, we estimate the effect size of deviations between API endpoints and reference weights, finding that some implementations are further from the reference weights than if the provider had substituted in an entirely different language model.
36
+
37
+ Summary of contributions. We unify several API auditing tasks under the formalization of Model Equality Testing, a two-sample distribution testing problem, and empirically validate kernel-based tests for this problem. We then apply this test to audit popular commercial inference APIs. To enable users to audit APIs for custom applications, we open-source a Python package. We also encourage future research in Model Equality Testing by releasing a dataset of 1 million LLM completions from five models.[2]
38
+
39
+ # 2 THE MODEL EQUALITY TESTING PROBLEM
40
+
41
+ Suppose an auditor is interested in a task parameterized by a distribution $\pi$ over $m$ prompts and a maximum completion length of $L$ tokens. The auditor has sample access to a reference distribution $P$ and API distribution $Q$ , both operating on the same vocabulary $\mathcal{V}$ with the same decoding parameters. The auditor samples $N$ prompt-completion pairs: $z := (x, y)$ from each distribution:
42
+
43
+ $$
44
+ \mathcal {D} _ {P} := \left\{z ^ {(i)}: x ^ {(i)} \sim \pi , y ^ {(i)} \sim P (\cdot \mid x ^ {(i)}) \right\} _ {i = 1} ^ {N}, \tag {1}
45
+ $$
46
+
47
+ $$
48
+ \mathcal {D} _ {Q} := \{z ^ {(i)}: x ^ {(i)} \sim \pi , y ^ {(i)} \sim Q (\cdot \mid x ^ {(i)}) \} _ {i = 1} ^ {N}.
49
+ $$
50
+
51
+ We wish to use these samples to test if $P = Q$ , i.e., distinguish between the hypotheses
52
+
53
+ $$
54
+ \begin{array}{l} H _ {0}: \quad \pi (x) P (y \mid x) = \pi (x) Q (y \mid x), \\ H _ {1}: \quad (\cdot) P (\cdot | \cdot) \cdot (\cdot) Q (\cdot | \cdot). \end{array} \tag {2}
55
+ $$
56
+
57
+ $$
58
+ H _ {1}: \pi (x) P (y \mid x) \neq \pi (x) Q (y \mid x).
59
+ $$
60
+
61
+ We require that the Type-1 error rate is controlled at $\alpha$ . A good test will maximize power against unknown $Q$ and generalize across several language models and prompt distributions $\pi$ . We are particularly interested in sample-efficient tests that are cheap to run: such tests are powerful when $N$ is small compared to the size of the vocabulary $|\mathcal{V}|$ and the maximum completion length $L$ . The latter parameters modulate the size of the space that the joint distributions are defined over: the set of all prompt-completion pairs has size $m|\mathcal{V}|^L$ , where $m$ is the number of prompts captured in $\pi$ . Effective tests must navigate this high-dimensional space well. Fortunately, we expect the distributions in practice to be lower-dimensional, as language typically only places significant mass on a small number of tokens at each position.
62
+
63
+ Throughout the paper, we will use $\mathbf{n}_s\{S\}$ to denote the count of object $s$ in string or sample $S$ , $\pi P$ to denote the joint distribution of prompts and completions under $P$ , and $\pi Q$ to denote the joint distribution under $Q$ .
64
+
65
+ # 3 METHOD
66
+
67
+ To tackle the problem, we employ a two-sample kernel test from Gretton et al. (2012). This test uses samples $\mathcal{D}_P$ and $\mathcal{D}_Q$ to estimate the Maximum Mean Discrepancy (MMD) between $P$ and $Q$ , which is a measure of the distance between the two distributions. Intuitively, if the estimated MMD is large, we reject the null hypothesis that $P = Q$ .
68
+
69
+ The MMD is defined with respect to a unit-norm kernel function $k$ and its associated feature map $\phi$ . For our two joint distributions $\pi P$ and $\pi Q$ , the MMD is defined as the squared distance between the expected features from each distribution:
70
+
71
+ $$
72
+ \begin{array}{l} \mathrm {M M D} _ {k} (\pi P, \pi Q) = \| \mathbb {E} _ {z \sim \pi P} [ \phi (z) ] - \mathbb {E} _ {z \sim \pi Q} [ \phi (z) ] \| ^ {2}, \\ \begin{array}{l} = \| \mathbb {E} _ {z} \sim_ {\pi P} [ \phi (z) ] - \mathbb {E} _ {z} \sim_ {\pi Q} [ \phi (z) ] \| ^ {2}, \\ = \mathbb {E} _ {z, z ^ {\prime} \sim \pi P} [ k (z, z ^ {\prime}) ] + \mathbb {E} _ {z, z ^ {\prime} \sim \pi Q} [ k (z, z ^ {\prime}) ] - 2 \mathbb {E} _ {z \sim \pi P, z ^ {\prime} \sim \pi Q} [ k (z, z ^ {\prime}) ]. \end{array} \tag {3} \\ \end{array}
73
+ $$
74
+
75
+ For simplicity, we select kernels of the form $k(z,z^{\prime}) = \mathbf{1}\{x = x^{\prime}\} \tilde{k} (y,y^{\prime})$ , where $\tilde{k}$ is a prompt-agnostic kernel over completions. Then $\mathrm{MMD}_k(\pi P,\pi Q) = \mathbb{E}_{x\sim \pi}\left[\mathrm{MMD}_{\tilde{k}}(P(y\mid x),Q(y\mid x))\right]$ .
76
+
77
+ To conduct a two-sample test with samples $\mathcal{D}_Q$ and $\mathcal{D}_P$ , the test statistic is the empirical estimator of (3):
78
+
79
+ $$
80
+ \widehat {\operatorname {M M D}} \left(\mathcal {D} _ {Q}, \mathcal {D} _ {P}\right) = \frac {1}{N (N - 1)} \left[ \sum_ {z, z ^ {\prime} \in \mathcal {D} _ {P}} k \left(z, z ^ {\prime}\right) + \sum_ {z, z ^ {\prime} \in \mathcal {D} _ {Q}} k \left(z, z ^ {\prime}\right) \right] - \frac {2}{N ^ {2}} \sum_ {z \in \mathcal {D} _ {P}} \sum_ {z ^ {\prime} \in \mathcal {D} _ {Q}} k \left(z, z ^ {\prime}\right). \tag {4}
81
+ $$
82
+
83
+ We can compute p-values by simulating the test statistic's distribution under the null, i.e., by repeatedly sampling both $\mathcal{D}_Q$ and $\mathcal{D}_P$ from $P$ and computing (4). Alternatively, to avoid drawing extra samples from $P$ , we can use the permutation procedure (Lehmann et al., 1986), at a potential cost to power. This procedure repeatedly shuffles samples between $\mathcal{D}_Q$ and $\mathcal{D}_P$ to recompute the test statistic (Appendix A.2).
84
+
85
+ Kernel choice. The choice of kernel $(k,\phi)$ determines the test's semantics and power. For example, setting $\phi (z)$ to be an indicator of whether $y$ passes an automated verifier for $x$ , when one is available, leads to rejecting the null when $P,Q$ result in different task accuracies. However, because $\phi$ is relatively coarse, the MMD may be zero even when $P\neq Q$ , limiting the test's power. At the other extreme are universal kernels, which guarantee that the MMD is zero if and only if $P = Q$ (Gretton et al., 2012). One such universal kernel for strings is the computationally expensive all-substrings kernel (Borgwardt et al., 2006):
86
+
87
+ $$
88
+ \tilde {k} _ {\text {a l l}} \left(y, y ^ {\prime}\right) = \sum_ {s \in \mathcal {V} ^ {\leq L}} \mathbf {n} _ {s} \{y \} \cdot \mathbf {n} _ {s} \left\{y ^ {\prime} \right\}, \tag {5}
89
+ $$
90
+
91
+ where $\mathbf{n}_s\{y\}$ is the number of times $s$ appears in $y$ . Another universal kernel is the one-hot kernel:
92
+
93
+ $$
94
+ \tilde {k} _ {\text {o n e - h o t}} \left(y, y ^ {\prime}\right) = \mathbf {1} \left\{y = y ^ {\prime} \right\}, \tag {6}
95
+ $$
96
+
97
+ which results in a classical two-sample multinomial test between the joint distributions. While universal kernels can eventually detect differences between any $P, Q$ with enough samples, they may have low power in the small-sample regime. For example, the one-hot MMD measures if there are more exact match collisions within $\mathcal{D}_P$ or $\mathcal{D}_Q$ than between them, but in small samples, we may see no duplicate completions at all.
98
+
99
+ We posit that other string kernels, though not universal, provide more powerful features for testing with small samples. Specifically, we investigate a fast kernel related to the Hamming distance between completions:
100
+
101
+ $$
102
+ \tilde {k} _ {\text {h a m m i n g}} \left(y, y ^ {\prime}\right) = \sum_ {i = 1} ^ {L} \mathbf {1} \left\{y _ {i} = y _ {i} ^ {\prime} \right\}, \tag {7}
103
+ $$
104
+
105
+ where $y$ shorter than $L$ is right-padded with a special token. Intuitively, a test based on this kernel rejects if a significantly larger number of substitutions are needed to align completions between $\mathcal{D}_P$ and $\mathcal{D}_Q$ than within each sample. The associated Hamming MMD is a pseudo-metric, as it is zero when $P = Q$ and obeys the triangle inequality, but may not separate all distributions (Appendix A.1). Despite this limitation, we find in the following sections that this kernel is empirically effective and well-suited to common distortions we encounter with language models: quantization, watermarking, finetuning, and related distortions tend to result in detectable inter-sample Hamming distances.
106
+
107
+ # 4 EVALUATING TESTS IN SIMULATIONS
108
+
109
+ In this section, we evaluate our test's power using different kernels at checking equivalence between known pairs of distributions. Specifically, we evaluate if tests can detect when a language model has been quantized or watermarked (§4.1), finetuned (§4.2), or swapped out for a different model altogether (§4.3).
110
+
111
+ All experiments in this section are run on a longform language modeling task. The prompt distribution $\pi$ is a uniform distribution over $m = 25$ random 100-character strings sampled from English, German, Spanish, French, and Russian Wikipedia (Box 1). The maximum completion length is $L = 50$ , and we sample using temperature 1. Power is computed from 100 Monte Carlo simulations. We estimate p-values by simulating the empirical distribution of the test statistic under the null 1000 times; in Appendix C, we validate that the permutation procedure results in the same trends.
112
+
113
+ # Box 1: Sample prompt for the Wikipedia language modeling task
114
+
115
+ Continue the paragraph. Do not output anything except the continuation to the paragraph. Start the continuation immediately.
116
+
117
+ "The British Arab Commercial Bank PLC (BACB) is an international wholesale bank incorporated in the U..."
118
+
119
+ To evaluate tests' generalization across prompts, we repeat power experiments over ten different prompt distributions, where we resample 25 Wikipedia strings for each $\pi$ . All tests are conducted at a significance level of $\alpha = 0.05$ . Additional details can be found in Appendix B.
120
+
121
+ # 4.1 DETECTING QUANTIZATION AND WATERMARKING
122
+
123
+ In our first experiments, the reference distribution $P$ represents full-precision weights published on Hugging Face. We evaluate if tests can distinguish $P$ from alternative distributions $Q$ :
124
+
125
+ - Quantized models. These alternatives represent the model inferred at lower precisions: nf4 (Dettmers et al., 2024), int8 (Dettmers et al., 2022), and fp16. Some accounts suggest that quantization particularly degrades Llama-3 models on longform tasks (Reddit, 2024; Panda, 2024).
126
+ - Watermarked models. Some providers may watermark outputs so that they are later detectable as having been generated by the platform. We apply the watermarking algorithm from Kirchenbauer et al. (2023) with default bias of 2.5.
127
+
128
+ We repeat evaluations for 5 instruction-tuned models: Mistral 7B Instruct (Jiang et al., 2023), Llama-3 8B and 70B Instruct, and Llama-3.1 8B and 70B Instruct (Meta, 2024). Additional models are in Appendix C.1.
129
+
130
+ Tests. We compare three choices of kernels: the Hamming kernel (7), the all-substrings kernel (5), and the one-hot kernel (6). We also evaluate two tests from the multinomial testing literature (Balakrishnan & Wasserman, 2018; Bhattacharya & Valiant, 2015):
131
+
132
+ $$
133
+ \mathrm {L} 1 \left(\mathcal {D} _ {P}, \mathcal {D} _ {Q}\right) = \sum_ {z \in \mathcal {D} _ {P} \cup \mathcal {D} _ {Q}} \left| \frac {\mathbf {n} _ {z} \left\{\mathcal {D} _ {P} \right\} - \mathbf {n} _ {z} \left\{\mathcal {D} _ {Q} \right\}}{N} \right| \tag {8}
134
+ $$
135
+
136
+ $$
137
+ \chi^ {2} \left(\mathcal {D} _ {P}, \mathcal {D} _ {Q}\right) = N ^ {2} \sum_ {z \in \mathcal {D} _ {P} \cup \mathcal {D} _ {Q}} \frac {\left(\mathbf {n} _ {z} \left\{\mathcal {D} _ {P} \right\} - \mathbf {n} _ {z} \left\{\mathcal {D} _ {Q} \right\}\right) ^ {2} - \mathbf {n} _ {z} \left\{\mathcal {D} _ {P} \right\} - \mathbf {n} _ {z} \left\{\mathcal {D} _ {Q} \right\}}{\mathbf {n} _ {z} \left\{\mathcal {D} _ {P} \right\} + \mathbf {n} _ {z} \left\{\mathcal {D} _ {Q} \right\}}. \tag {9}
138
+ $$
139
+
140
+ Results. Figure 2 (left) compares the empirical sample complexities of each test. To draw out a sample complexity curve, we vary the number of samples from $N = 10m$ to $N = 100m$ , where $m = 25$ is the number of prompts in the prompt distribution. We observe that the Hamming MMD test attains the highest power with the fewest samples: at an average of 10 samples per prompt, this test has a median power
141
+
142
+ ![](images/21a9d4da6b41d6699b2dfc1c1cab8571e8a7e57d2c02e346097f51d65af0a123.jpg)
143
+ Figure 2: (Left) Sample complexity of tests. At an average of just 10 samples per prompt, the Hamming MMD test is able to detect quantization and watermarking with nontrivial power. Curves first median power across alternative distributions $Q$ , averaged over language models and prompt distributions, with shaded standard errors. Results stratified by language model and alternative are in Appendix C.1. (Middle) While other tests rapidly degrade in power when the user is interested in longer completions, the Hamming MMD test maintains power best across completion lengths. (Right) Power of the Hamming MMD test, stratified by alternative distribution. The test is significantly less powerful against the fp16 alternative.
144
+
145
+ ![](images/156707823457cd2fdad9d9320c2c9630602a0da6ac9be28ea0bb18733c3b2387.jpg)
146
+
147
+ ![](images/9297a7d8405ed39b808b7aef766904a7242731ad37cdc3b2b717ac2bf1faa3ea.jpg)
148
+
149
+ ![](images/37c2999e6634af86627d73849646eef4322a4a9bc8ba93b6d4f0031f61743022.jpg)
150
+
151
+ ![](images/acd615a60e86e2016818f639be216a4a53acb7bc9085e382dc7d3c59eba67b7c.jpg)
152
+
153
+ of $77.4\%$ across alternatives. In Figure 2 (right), we break down power by alternative distribution. The Hamming test is strong on all alternatives except fp16, where the initial power at $N = 10m$ is much smaller. This suggests that fp16 and fp32 differ in ways that are not captured by the Hamming kernel.
154
+
155
+ To accommodate user tasks which require very long completions, it is important that tests retain power as the completion length $L$ increases, even though the size of the sample space grows exponentially with $L$ . In Figure 2 (middle), we fix $N = 250$ (i.e., $N = 10m$ ) and vary the completion length $L$ from 1 to 50 tokens. We observe that the Hamming MMD and all substring tests are more robust to increasing completion length than the other tests. This result is consistent with the intuition that a clever string kernel — as opposed to a one-hot kernel — can help MMD tests generalize to high-dimensional spaces.
156
+
157
+ # 4.2 DETECTING FINETUNING
158
+
159
+ Given their effectiveness in detecting quantized and watermarked models, we next ask if MMD-based tests can detect when a model has been finetuned. We finetune Llama-3 8B Instruct on two datasets: a disjoint, i.i.d. split of the testing Wikipedia task, and an out-of-distribution code dataset (Chaudhary, 2023). We use a small learning rate of $1 \times 10^{-6}$ with AdamW (Loshchilov, 2017). We then use the Hamming MMD test to compare finetuned checkpoints $Q$ to the original model as the reference distribution $P$ .
160
+
161
+ Figure 3 (upper left) plots power against the checkpoint number of the finetuned model. The Hamming MMD test is always able to detect finetuning with nontrivial (greater than $50\%$ ) power, even after a single epoch (42 optimization steps). One might expect that finetuning on the out-of-distribution code dataset would not affect the model's distribution on the Wikipedia testing task, but we find this is not the case. Finetuning affects the model on other distributions enough to be detectable by statistical tests. These results suggest that it is challenging to isolate the effects of full finetuning to any single distribution, which may have implications for tasks such as unlearning or model editing (Hase et al., 2024).
162
+
163
+ # 4.3 Distinguishing IF SAMPLES COME FROM DIFFERENT LANGUAGE MODELS
164
+
165
+ We next explore if the Hamming MMD test can distinguish whether two bodies of text are generated from the same language model. In this setting, $P$ and $Q$ are two different language models, drawn from a pool of 13 instruction-tuned models (Figure 3 right), including eight open-weight models (Abdin et al., 2024; Groeneveld et al., 2024; Team et al., 2024) and five OpenAI closed-weight models. In order to compare
166
+
167
+ ![](images/94e69e505ff3f03c607f4b305ac5ebbfcb2d6189b2152bc8a05ba57072450e07.jpg)
168
+
169
+ <table><tr><td>Alternative Q</td><td>Power (P = Llama-3.1 8B)</td></tr><tr><td>Llama-3 8B</td><td>0.76 (0.00)</td></tr><tr><td>Llama-3 70B</td><td>1.00 (0.00)</td></tr><tr><td>Llama-3.1 70B</td><td>0.75 (0.07)</td></tr><tr><td>OLMo 7B</td><td>1.00 (0.00)</td></tr><tr><td>gpt-4o-mini</td><td>1.00 (0.00)</td></tr><tr><td>Llama-3.1 8B (watermark)</td><td>0.32 (0.04)</td></tr><tr><td>Llama-3.1 8B (int8)</td><td>0.07 (0.01)</td></tr><tr><td>Llama-3.1 8B (nf4)</td><td>1.00 (0.00)</td></tr></table>
170
+
171
+ ![](images/095cbeaa7ae5be34560c123b1975d7386c811325ed8368921d2ba0e58c719847.jpg)
172
+ Figure 3: (Upper left) The Hamming MMD test is able to detect when Llama-3 8B has been finetuned on datasets of 1000 samples, even after a single epoch. Power is higher, earlier, when the finetuning distribution is i.i.d. with the testing distribution. (Lower left) The Hamming MMD test can also detect when two models are different with near-perfect power. Standard errors are over prompt distributions. Full results are in Appendix C.2. (Right) The MMD framework allows us to estimate statistical distance between any models from which we can draw samples. The cells show average estimated MMDs over 10 bootstraps. Rows are sorted using spectral clustering with two components. Models within a family are typically clustered together, suggesting that factors like training data, rather than scale, determine model similarity.
173
+
174
+ models with different tokenizers, samples must be compared in character space. We sample $L = 50$ -token completions to the Wikipedia language modeling task as before, and then we decode these to characters, ignoring special tokens. The vocabulary of interest is now all Unicode characters ( $|\mathcal{V}| = 155063$ ), the maximum completion length is $L \approx 1000$ characters, and we test with $N = 10m$ samples.
175
+
176
+ Switching to character space makes the testing problem significantly more challenging, as the sample space is higher dimensional: Figure 3 (lower left) shows that power to detect quantization and watermarking is lower in this setting than in the token space setting ( $\S 4.1$ ). However, even in this more challenging setting, we find that all model swaps are detectable with $100\%$ power, except for pairs within the Llama family, e.g., Llama-3.1 8B and Llama-3.1 70B (75% power) or Llama-3 8B and Llama-3.1 8B (76% power; Figure 3 lower left). Model swaps are significantly more detectable than watermarking or quantization. Appendix D.2 shows qualitative examples of completions from different models.
177
+
178
+ Estimating distances between models. A useful feature of the MMD tests is that the test statistic is an estimator of a distance. As a result, we can reuse the machinery to quantify the degree to which two models differ by estimating $\mathbb{E}_{x\sim \pi}[\mathrm{MMD}(P(\cdot \mid x),Q(\cdot \mid x))]$ .<sup>5</sup> Figure 3 (right) estimates the Hamming MMD between all pairs of models. To decrease estimator error, we increase the sample size to $N = 100m$ samples from each model and report the average MMD over 10 simulations, along with standard errors. We observe that models within a family are typically clustered together, suggesting that training data, rather than
179
+
180
+ scale, determines model similarity. Surprisingly, while generations of Llama models (3 and 3.1) are close in distance, some generations of GPT models (e.g., 4-preview and 3.5-turbo) are not. This result suggests the use of different training data or procedures between these models.
181
+
182
+ # 5 AUDITING INFERENCE API PROVIDERS
183
+
184
+ As a case study, we now apply our test to 31 commercial inference endpoints for four of Meta's Llama models (Figure 1). These endpoints are distributed across nine API providers from Summer 2024: Amazon Bedrock, Anyscale, $^{6}$ Azure AI Studio, Deepinfra, Fireworks AI, Groq, Perplexity, Replicate, and Together.ai. $^{7}$ We are interested in whether endpoints differ from weights published by Meta on Hugging Face inferred at commonly accepted precisions. Specifically, we consider two possible null distributions: the full-precision weights $(P_{1})$ and the fp16-precision weights $(P_{2})$ . The null and alternative hypotheses are
185
+
186
+ $$
187
+ \begin{array}{l} H _ {0}: \pi (x) P _ {1} (y \mid x) = \pi (x) Q (y \mid x) \quad \text {O R} \quad \pi (x) P _ {2} (y \mid x) = \pi (x) Q (y \mid x), \\ H _ {1}: \pi (x) P _ {1} (y \mid x) \neq \pi (x) Q (y \mid x) \quad \text {A N D} \quad \pi (x) P _ {2} (y \mid x) \neq \pi (x) Q (y \mid x). \\ \end{array}
188
+ $$
189
+
190
+ To test this composite hypothesis, we collect three samples: $\mathcal{D}_{P_1}$ and $\mathcal{D}_{P_2}$ from the two null distributions, and $\mathcal{D}_Q$ from the API. We then conduct 2 two-sample tests, one for $(\mathcal{D}_{P_1},\mathcal{D}_Q)$ and another for $(\mathcal{D}_{P_2},\mathcal{D}_Q)$ , and obtain p-values $p_1$ and $p_2$ . We set the overall rejection rule to
191
+
192
+ $$
193
+ \delta \left(\mathcal {D} _ {P _ {1}}, \mathcal {D} _ {P _ {2}}, \mathcal {D} _ {Q}\right) = \mathbf {1} \left\{p _ {1} < \alpha \wedge p _ {2} < \alpha \right\}. \tag {11}
194
+ $$
195
+
196
+ This rule continues to control the FPR at $\alpha$ under the composite null hypothesis: without loss of generality, suppose $Q = P_{1}$ . Since $P_{Q = P_1}(p_1 < \alpha) \leq \alpha$ , we have $P_{Q = P_1}(p_1 < \alpha \land p_2 < \alpha) = P_{Q = P_1}(p_1 < \alpha)P_{Q = P_1}(p_2 < \alpha \mid p_1 < \alpha) \leq \alpha$ . Note that this rule may be pessimistic, reducing power.
197
+
198
+ Experiment details. We consider testing with three prompt distributions $\pi$ . For all models, we test with one set of the Wikipedia completion task from §4, where $\pi$ is uniform over $m = 25$ prompts, and $L = 50$ tokens or around 1000 characters. For the smaller Llama-3 8B and Llama-3.1 8B models, we also test with the coding task HumanEval (Chen et al., 2021b) and instruction task UltraChat (Ding et al., 2023). Both $\pi$ are uniform over $m = 20$ prompts, and $L = 250$ tokens or 3000 characters. Because APIs often return decoded completions, rather than individual tokens, we conduct all tests in character space, as in §4.3. We explicitly requested all samples at temperature 1. Tests are conducted at level $\alpha = 0.01$ using $N = 10m$ samples. To reduce variance, we repeat tests over ten samples and fail endpoints if the average rejection rate is $\geq 0.5$ . For the most expensive endpoint (Azure's Llama-3 70B), a Wikipedia audit costs $0.14, HumanEval $0.83, and UltraChat $0.93. For the cheapest endpoint (Fireworks' Llama-3 8B), all three audits cost less than $0.02. For additional details, including the dates we collect API samples, see Appendix B.
199
+
200
+ Results. Despite power being generally reduced due to the composite decision rule, the test flags several endpoints (Table 1). Notably, Amazon Bedrock and Perplexity have the most endpoints flagged, with the latter failing all tests. In Box 2, we include an example comparing samples from the fp32 null and Perplexity; these samples suggest that Perplexity serves a lower entropy distribution than the full-precision model. Additional qualitative samples can be found in Appendix D.3. The HumanEval and UltraChat prompt distributions elicit more failures than the Wikipedia distribution; this may be because these knowledge-intensive distributions are more sensitive to changes such as quantization.
201
+
202
+ To estimate the effect size of deviations, we estimate the MMD between providers and the nulls using ten bootstraps of $N = 100m$ samples each. We find that some deviations are quite large: some APIs'
203
+
204
+ <table><tr><td></td><td colspan="4">Wikipedia</td><td colspan="2">HumanEval</td><td colspan="2">UltraChat</td></tr><tr><td></td><td>3 8B</td><td>3.1 8B</td><td>3 70B</td><td>3.1 70B</td><td>3 8B</td><td>3.1 8B</td><td>3 8B</td><td>3.1 8B</td></tr><tr><td>Amazon</td><td>✓</td><td>X</td><td>✓</td><td>X</td><td>✓</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Anyscale</td><td>✓</td><td>—</td><td>—</td><td>—</td><td>—</td><td>—</td><td>—</td><td>—</td></tr><tr><td>Azure</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td></tr><tr><td>Deepinfra</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td></tr><tr><td>Fireworks</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>X</td><td>✓</td><td>X</td></tr><tr><td>Groq</td><td>✓</td><td>✓</td><td>✓</td><td>X</td><td>✓</td><td>X</td><td>✓</td><td>✓</td></tr><tr><td>Perplexity</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Replicate</td><td>✓</td><td>—</td><td>X</td><td>—</td><td>✓</td><td>—</td><td>✓</td><td>—</td></tr><tr><td>Together</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td></tr></table>
205
+
206
+ Table 1: Audit results for 31 API endpoints across nine companies and four language models. $\times$ denotes an endpoint failure, i.e., the average rejection rate over ten samples is $\geq {50}\%$ .
207
+
208
+ ![](images/f626666dd9d33f77d7e6bf6685a239f41b44e9e520fafb58a6ee212508fb1a63.jpg)
209
+ Figure 4: (Left) Average MMD (Hamming) between providers for each model. Amazon Bedrock's Llama-3 and -3.1 70B models are the most different from the other providers. (Right) Absolute difference in HumanEval average accuracy vs. the MMD (Hamming). There is a moderate positive correlation between MMD and task accuracy. Gray points indicate pairs where both distributions have accuracy $< 10\%$ . There are multiple ways to be wrong for a task, and the MMD captures these differences.
210
+
211
+ ![](images/c38084b23298e453982973e89e5cc27b2c6f74e0b39f2f1402dc3be2caa5bae0.jpg)
212
+
213
+ implementations are further from the reference weights than if the provider had substituted in an entirely different language model. For example, the deviation between Perplexity's Llama-3 8B and the fp32 null on the Wikipedia testing task is 0.03. This is comparable to the deviation between Llama-3 8B and GPT-3.5-Turbo (0.03; Figure 3 right), Phi-3 mini (0.04), or OLMo 7B (0.04).
214
+
215
+ Correlating MMD with task accuracy. We now ask how well the Hamming MMD correlates with task accuracy when available. Automated verifiers exist for one of our prompt distributions, HumanEval. We find a moderate positive correlation between the absolute average accuracy difference and the Hamming MMD (Figure 4 right, $R^2 = 0.392$ ). In several cases, the MMD is high but the accuracy difference is low. These are often when both task accuracies are low: the gray points in the figure highlight pairs where both distributions have accuracy $< 10\%$ . In these cases, the MMD captures that there are multiple ways to be wrong for a task. For example, the bottom-right-most point in the figure contrasts Llama-3.1 8B from Perplexity vs. the nf4 version; Perplexity answers with incorrect code snippets, while nf4 outputs nonsense completions (e.g., "simulation!!!!!![...]"). Samples from this comparison can be found in Appendix D.3.
216
+
217
+ Which models do providers differ on most? Finally, we ask whether providers differ on some more models more than others. Figure 4 (left) estimates the MMD between providers for each model, and the large Llama-3.1 405B model. We find that deviations are larger on the earlier Llama models than the recent Llama-3.1 405B model.
218
+
219
+ # Box 2: Samples from fp32 vs. Perplexity for Llama-3 8B (Instruct)
220
+
221
+ Prompt: Continue the paragraph. Do not output anything except the continuation to the paragraph. Start the continuation immediately.
222
+
223
+ "Weaver, Tom. I Talked with a Zombie: Interviews with 23 Veterans of Horror and Sci-Fi Films and Tele..."
224
+
225
+ fp32
226
+
227
+ Perplexity
228
+
229
+ "...vision, Some of Whom Are Still Alive. New York: Pocket Books, 1981. According to Tom Weaver, Vincent Price was known for being a bit of a practical joker, and he would often play harmless pranks on the crew
230
+ "...visions. New York: St. Martin's Press, 1988. This collection of interviews with horror and science fiction professionals is a fascinating look at the creative process and the people behind some of the most iconic films and TV shows of the
231
+ "...vision, voodoo, and the Apocalypse. New York: St. Martin's Press, 1990. The book features interviews with notable horror and science fiction personalities, including Greg Cannom, makeup artist for The Lost Boys and RoboCop
232
+ "...visions. New York: St. Martin's Press, 1988. In this collection of interviews, Weaver delves into the experiences of some of the most iconic figures in the horror and science fiction genres, including George Romero, John Carpenter,
233
+ "...vision. Written by Tom Weaver, a renowned authority on classical horror cinema, this book brings together intimate and revealing conversations with some of the most legendary figures in the genre, including Vincent Price, Boris Karloff, and Bela Lugosi. Interviews
234
+ "...vision. New York: St. Martin's Press, 1988. 224 pp. This collection of interviews with horror and science fiction professionals is a fascinating look at the people behind the genre's most iconic films. Weaver's conversational style
235
+
236
+ # 6 RELATED WORK
237
+
238
+ Auditing ML APIs. Prior work either only applies to the classifier setting (Chen et al., 2021a; 2022) or audit by monitoring performance on low-temperature multiple-choice or short-answer benchmarks (ArtificialAnalysis, 2024; Chen et al., 2023; Eyuboglu et al., 2024). Concurrent work studies a general language model setting, but does not provide guarantees of audit correctness (Sam et al., 2025). In contrast, we formalize auditing as a hypothesis testing problem, allowing us to provide FPR guarantees, and we study the general setting of sampling completions from language models, including for tasks without automated verifiers. In cryptography, a body of work has aimed to verify ML API predictions through proof protocols (Ghodsi et al., 2017; Feng et al., 2021; Liu et al., 2021; Kang et al., 2022; Weng et al., 2023; Lee et al., 2024). These methods require APIs to cooperate and opt-in to providing proofs of valid inference alongside each prediction; public verifiers then check these proofs for correctness with perfect accuracy. Unfortunately, these methods scale too poorly to apply to large language models: in Kang et al. (2022), generating a proof takes 41 minutes per prediction for a 68M parameter MobileNet (Sandler et al., 2018).
239
+
240
+ Two-sample testing. Testing whether two samples come from the same distribution is an established problem in statistics. A line of work focuses on testing multinomial distributions (Batu et al., 2013; Chan et al., 2014; Canonne, 2020), including when samples have unequal sizes (Bhattacharya & Valiant, 2015; Diakonikolas & Kane, 2016; Balakrishnan & Wasserman, 2018). MMD-based tests are a general approach that do not assume a specific distributional form (Gretton et al., 2012). These tests can be applied to structured data when paired with appropriate kernels (Lodhi et al., 2002; Borgwardt et al., 2006).
241
+
242
+ # 7 CONCLUSION
243
+
244
+ As the public grows more dependent on black-box APIs to interact with language models, tools for auditing these APIs are increasingly important. In this work, we unified several API auditing tasks under the formalization of Model Equality Testing, a two-sample distribution testing problem, and we extensively validated candidate tests for this problem. Future work could explore stronger tests than those we have presented, or explore how to adapt these tests to other modalities, such as image generation models. To help facilitate this research, we open-source the dataset of 1 million LLM completions used for this work at https://github.com/i-gao/model-equality-testing. This dataset contains completions from five models across quantized, watermarked, and API alternatives; also see Appendix B.1.
245
+
246
+ # ACKNOWLEDGEMENTS
247
+
248
+ The authors would like to thank Mert Yuksekgonul, Steven Cao, Chenchen Gu, Chenglei Si, Nicole Meister, Yifan Mai, Simon Guo, Teddi Worledge, Yuhui Zhang, and other members of the Guestrin and P-Lambda labs for feedback on this paper.
249
+
250
+ # CONFLICTS OF INTEREST
251
+
252
+ PL is a co-founder of Together AI; this work was done in his Stanford capacity. The topic, research, and results of this work were not shared with Together, or any other API provider evaluated, until the public release of the paper.
253
+
254
+ # REFERENCES
255
+
256
+ Marah Abdin, Sam Ade Jacobs, Ammar Ahmad Awan, Jyoti Aneja, Ahmed Awadallah, Hany Awadalla, Nguyen Bach, Amit Bahree, Arash Bakhtiari, Harkirat Behl, et al. Phi-3 technical report: A highly capable language model locally on your phone. arXiv preprint arXiv:2404.14219, 2024.
257
+ Amazon. Amazon 2024 q1 earnings. https://s2.q4cdn.com/299287126/files/doc_financials/2024/q1/AMZN-Q1-2024-Earnings-Release.pdf, 2024.
258
+ ArtificialAnalysis. Artificial analysis, 2024. URL https://artificialanalysis.ai/.
259
+ Sivaraman Balakrishnan and Larry Wasserman. Hypothesis testing for high-dimensional multinomials: A selective review. 2018.
260
+ Gagan Bansal, Besmira Nushi, Ece Kamar, Daniel S Weld, Walter S Lasecki, and Eric Horvitz. Updates in human-ai teams: Understanding and addressing the performance/compatibility tradeoff. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 2429–2437, 2019.
261
+ Tugkan Batu, Lance Fortnow, Ronitt Rubinfeld, Warren D Smith, and Patrick White. Testing closeness of discrete distributions. Journal of the ACM (JACM), 60(1):1-25, 2013.
262
+ Bhaswar Bhattacharya and Gregory Valiant. Testing closeness with unequal sized samples. Advances in Neural Information Processing Systems, 28, 2015.
263
+ Karsten M Borgwardt, Arthur Gretton, Malte J Rasch, Hans-Peter Kriegel, Bernhard Scholkopf, and Alex J Smola. Integrating structured biological data by kernel maximum mean discrepancy. Bioinformatics, 22 (14):e49-e57, 2006.
264
+ Clément L Canonne. A survey on distribution testing: Your data is big. but is it blue? Theory of Computing, pp. 1-100, 2020.
265
+ Siu-On Chan, Ilias Diakonikolas, Paul Valiant, and Gregory Valiant. Optimal algorithms for testing closeness of discrete distributions. In Proceedings of the twenty-fifth annual ACM-SIAM symposium on Discrete algorithms, pp. 1193-1203. SIAM, 2014.
266
+ Sahil Chaudhary. Code alpaca: An instruction-following llama model for code generation. https://github.com/sahil280114/codealpaca, 2023.
267
+ Lingjiao Chen, Tracy Cai, Matei Zaharia, and James Zou. Did the model change? efficiently assessing machine learning api shifts. arXiv preprint arXiv:2107.14203, 2021a.
268
+ Lingjiao Chen, Zhihua Jin, Evan Sabri Eyuboglu, Christopher Ré, Matei Zaharia, and James Y Zou. Hapi: A large-scale longitudinal dataset of commercial ml api predictions. Advances in Neural Information Processing Systems, 35:24571-24585, 2022.
269
+
270
+ Lingjiao Chen, Matei Zaharia, and James Zou. How is chatgpt's behavior changing over time? arXiv preprint arXiv:2307.09009, 2023.
271
+ Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code, 2021b.
272
+ Cohere. Multilingual wikipedia (11-2023), 2023. URL https://huggingface.co/datasets/Cohere/wikipedia-2023-11-embed-multilingual-v3. Huggingface dataset.
273
+ Tim Dettmers, Mike Lewis, Younes Belkada, and Luke Zettlemoyer. Gpt3. int8(): 8-bit matrix multiplication for transformers at scale. Advances in Neural Information Processing Systems, 35:30318-30332, 2022.
274
+ Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. Qlora: Efficient finetuning of quantized llms. Advances in Neural Information Processing Systems, 36, 2024.
275
+ Ilias Diakonikolas and Daniel M Kane. A new approach for testing properties of discrete distributions. In 2016 IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS), pp. 685-694. IEEE, 2016.
276
+ Ning Ding, Yulin Chen, Bokai Xu, Yujia Qin, Zhi Zheng, Shengding Hu, Zhiyuan Liu, Maosong Sun, and Bowen Zhou. Enhancing chat language models by scaling high-quality instructional conversations. arXiv preprint arXiv:2305.14233, 2023.
277
+ Sabri Eyuboglu, Karan Goel, Arjun Desai, Lingjiao Chen, Mathew Monfort, Chris Ré, and James Zou. Model changelists: Characterizing updates to ml models. In The 2024 ACM Conference on Fairness, Accountability, and Transparency, pp. 2432-2453, 2024.
278
+ Boyuan Feng, Lianke Qin, Zhenfei Zhang, Yufei Ding, and Shumo Chu. Zen: An optimizing compiler for verifiable, zero-knowledge neural network inferences. Cryptology ePrint Archive, 2021.
279
+ Zahra Ghodsi, Tianyu Gu, and Siddharth Garg. Safetynets: Verifiable execution of deep neural networks on an untrusted cloud. Advances in Neural Information Processing Systems, 30, 2017.
280
+ Arthur Gretton, Karsten M Borgwardt, Malte J Rasch, Bernhard Scholkopf, and Alexander Smola. A kernel two-sample test. The Journal of Machine Learning Research, 13(1):723-773, 2012.
281
+ Dirk Groeneveld, Iz Beltagy, Pete Walsh, Akshita Bhagia, Rodney Kinney, Oyvind Tafjord, Ananya Harsh Jha, Hamish Ivison, Ian Magnusson, Yizhong Wang, et al. Olmo: Accelerating the science of language models. arXiv preprint arXiv:2402.00838, 2024.
282
+ Peter Hase, Thomas Hofweber, Xiang Zhou, Elias Stengel-Eskin, and Mohit Bansal. Fundamental problems with model editing: How should rational belief revision work in llms? arXiv preprint arXiv:2406.19354, 2024.
283
+
284
+ Albert Q Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, et al. Mistral 7b. arXiv preprint arXiv:2310.06825, 2023.
285
+ Daniel Kang, Tatsunori Hashimoto, Ion Stoica, and Yi Sun. Scaling up trustless dnn inference with zero-knowledge proofs. arXiv preprint arXiv:2210.08674, 2022.
286
+ John Kirchenbauer, Jonas Geiping, Yuxin Wen, Jonathan Katz, Ian Miers, and Tom Goldstein. A watermark for large language models. In International Conference on Machine Learning, pp. 17061-17084. PMLR, 2023.
287
+ Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph Gonzalez, Hao Zhang, and Ion Stoica. Efficient memory management for large language model serving with pagedattention. In Proceedings of the 29th Symposium on Operating Systems Principles, pp. 611-626, 2023.
288
+ Seunghwa Lee, Hankyung Ko, Jihye Kim, and Hyunok Oh. vcnn: Verifiable convolutional neural network based on zk-snarks. IEEE Transactions on Dependable and Secure Computing, 2024.
289
+ Erich Leo Lehmann, Joseph P Romano, and George Casella. Testing statistical hypotheses, volume 3. Springer, 1986.
290
+ Percy Liang, Rishi Bommasani, Tony Lee, Dimitris Tsipras, Dilara Soylu, Michihiro Yasunaga, Yian Zhang, Deepak Narayanan, Yuhuai Wu, Ananya Kumar, et al. Holistic evaluation of language models. arXiv preprint arXiv:2211.09110, 2022.
291
+ Tianyi Liu, Xiang Xie, and Yupeng Zhang. ZkCNN: Zero knowledge proofs for convolutional neural network predictions and accuracy. In Proceedings of the 2021 ACM SIGSAC Conference on Computer and Communications Security, pp. 2968-2985, 2021.
292
+ Huma Lodhi, Craig Saunders, John Shawe-Taylor, Nello Cristianini, and Chris Watkins. Text classification using string kernels. Journal of machine learning research, 2(Feb):419-444, 2002.
293
+ I Loshchilov. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.
294
+ AI Meta. Introducing meta llama 3: The most capable openly available llm to date. Meta AI, 2024.
295
+ Ashwinee Panda. Post by @pandaashwinee. discussion of quantization for llama 3.1. https://x.com/pandaashwinee/status/1816966288905998829, 2024.
296
+ Luiza Pozzobon, Beyza Ermis, Patrick Lewis, and Sara Hooker. On the challenges of using black-box apis for toxicity evaluation in research. arXiv preprint arXiv:2304.12397, 2023.
297
+ Reddit. Post by user: mo4gv9eywmpmw3xr. result: Llama 3 exl2 quant quality compared to gguf and llama 2. https://www.reddit.com/r/LocalLLaMA/comments/1cfbadc/result_llama_3_exl2_quant_quality_compared_to/, 2024.
298
+ Dylan Sam, Marc Finzi, and J Zico Kolter. Predicting the performance of black-box llms through self-queries. arXiv preprint arXiv:2501.01558, 2025.
299
+ Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. *Mobilenetv2: Inverted residuals and linear bottlenecks*. In *Proceedings of the IEEE conference on computer vision and pattern recognition*, pp. 4510-4520, 2018.
300
+ Ingo Steinwart. On the influence of the kernel on the consistency of support vector machines. Journal of machine learning research, 2(Nov):67-93, 2001.
301
+
302
+ Gemma Team, Thomas Mesnard, Cassidy Hardin, Robert Dadashi, Surya Bhupatiraju, Shreya Pathak, Laurent Sifre, Morgane Riviere, Mihir Sanjay Kale, Juliette Love, et al. Gemma: Open models based on gemini research and technology. arXiv preprint arXiv:2403.08295, 2024.
303
+ Jiasi Weng, Jian Weng, Gui Tang, Anjia Yang, Ming Li, and Jia-Nan Liu. pvCNN: Privacy-preserving and verifiable convolutional neural network testing. IEEE Transactions on Information Forensics and Security, 18:2218-2233, 2023.
304
+ Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumont, Clement Delangue, Anthony Moi, Pierrick Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, et al. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 conference on empirical methods in natural language processing: system demonstrations, pp. 38-45, 2020.
2025/Model Equality Testing_ Which Model is this API Serving_/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bceba888b16ddb9aadcc84e2f4b31e30c62dc2727a43e016f793962fd0fe26b3
3
+ size 378063
2025/Model Equality Testing_ Which Model is this API Serving_/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model Risk-sensitive Offline Reinforcement Learning/5543bdac-6e10-473b-812d-43360d919a5e_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model Risk-sensitive Offline Reinforcement Learning/5543bdac-6e10-473b-812d-43360d919a5e_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model Risk-sensitive Offline Reinforcement Learning/5543bdac-6e10-473b-812d-43360d919a5e_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ad075a810c68094eca5674a00bef097d4508619f61320af834a0a2a55a7cfa6
3
+ size 2316909
2025/Model Risk-sensitive Offline Reinforcement Learning/full.md ADDED
@@ -0,0 +1,587 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MODEL RISK-SENSITIVE OFFLINE REINFORCEMENT LEARNING
2
+
3
+ Gwangpyo Yoo, Honguk Woo*
4
+
5
+ Department of Computer Science and Engineering, Sungkyunkwan University
6
+
7
+ {necrocathy,hwoo}@skku.edu
8
+
9
+ # ABSTRACT
10
+
11
+ Offline reinforcement learning (RL) is becoming critical in risk-sensitive areas such as finance and autonomous driving, where incorrect decisions can lead to substantial financial loss or compromised safety. However, traditional risk-sensitive offline RL methods often struggle with accurately assessing risk, with minor errors in the estimated return potentially causing significant inaccuracies of risk estimation. These challenges are intensified by distribution shifts inherent in offline RL. To mitigate these issues, we propose a model risk-sensitive offline RL framework designed to minimize the worst-case of risks across a set of plausible alternative scenarios rather than solely focusing on minimizing estimated risk. We present a critic-ensemble criterion method that identifies the plausible alternative scenarios without introducing additional hyperparameters. We also incorporate the learned Fourier feature framework and the IQN framework to address spectral bias in neural networks, which can otherwise lead to severe errors in calculating model risk. Our experiments in finance and self-driving scenarios demonstrate that the proposed framework significantly reduces risk, by $11.2\%$ to $18.5\%$ , compared to the most outperforming risk-sensitive offline RL baseline, particularly in highly uncertain environments.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Many application domains of offline reinforcement learning (RL), such as finance (Zhang et al., 2020; Wang & Ku, 2022), self-driving (Bernhard et al., 2019; Seres et al., 2023), and healthcare (Lu et al., 2020), are inherently risk-sensitive due to the potential for high costs or safety risks from interactions between the agent and the environment at deployment. In these scenarios, both premature and well-trained agents can make unsafe decisions, prompting active research efforts to integrate offline RL with risk-sensitive RL (Urpí et al., 2021; Ma et al., 2021; Rigter et al., 2024). These efforts aim to minimize risk instead of maximizing expected return in offline RL settings. Here, (aleatoric) risk is defined as a real number representing the severity of potential harm associated with the return distribution. The function that maps a return distribution to its corresponding risk is called risk measure. For example, the risk calculated by conditional value at risk $(CV@R)$ risk measure with a confidence level $\alpha \in [0,1]$ is the negation of the average from the most pessimistic to the $\alpha$ -th quantile (Yoo et al., 2024).
16
+
17
+ As these risk measures are designed to emphasize rare events, while underestimating frequent ones, the estimated risk becomes highly sensitive to changes in the underlying return distribution (Cont et al., 2010; Kou et al., 2013; Embrechts et al., 2015; Pesenti et al., 2016). Such errors can lead to incorrect risk management, especially when there is a distribution shift between the training and deployment environments. This situation is common in offline RL, where the agent cannot receive real-time feedback from the environment.
18
+
19
+ In finance, the issue is addressed by minimizing the worst-case of risks across a set of plausible alternative scenarios rather than directly minimizing the risk estimated by the model (Bernard et al., 2023). This worst-case is referred to as model risk, which quantifies the worst-case consequence of
20
+
21
+ ![](images/f6d07a140258efe9d46f09a8b5c8a3ccca920e5e73dd5150983ce6da914d7969.jpg)
22
+ Figure 1: Difference between risk and model risk measured by $CV@R_{\alpha}$ . The negation of the shaded area represents the risk.
23
+
24
+ ![](images/a5edb36884a9e42e7835fc12a18445e69c129980ccb741bc7e210719356215aa.jpg)
25
+
26
+ using incorrect models (Breuer & Csiszár 2016; Bernard et al. 2023). Unlike traditional approaches that rely solely on the estimated risk and are vulnerable to model errors, the model risk acknowledges the potential for inaccuracies in the model, enabling more robust and reliable risk-sensitive decision-making. Inspired by this, our work in risk-sensitive offline RL shifts the focus from conventional risk minimization to model risk minimization. In doing so, we address the common issue of estimating return distribution statistics (mean and the standard deviation) in RL contexts, where the statistics are often unreliable or unknown. This contrasts with finance, where the mean and deviation are assumed to be known.
27
+
28
+ Figure 1 illustrates the difference between traditional risk-sensitive offline RL approaches (left-side in the figure) and our model risk-sensitive offline RL (right-side in the figure). In the left-side, existing risk-sensitive offline RL approaches minimize the risk estimated by critic (green area). In the right-side, our model risk-sensitive RL minimizes risk (blue area) of the worst-case scenario (blue line) among the plausible alternative scenarios set (gray lines). By minimizing the model risk, the agent accounts for the possibility of being incorrect, aiming to achieve the best possible results despite potential errors.
29
+
30
+ We present a model risk-sensitive offline RL framework that accounts for model errors, enhancing robustness in highly uncertain environments. To the best of our knowledge, this is the first approach that incorporates model risk into offline RL algorithms. Specifically, we develop a critic-ensemble criterion method that identifies plausible alternative scenarios, enabling the calculation of model risk without introducing additional hyperparameters. Achieving this requires accurate return distribution statistics, particularly the mean and deviation. To enhance their precision, which is essential for identifying plausible alternative scenarios, we adopt a Fourier feature network for quantile regression. Through case studies in finance and self-driving scenarios, we demonstrate that our model risk-sensitive offline RL framework is more robust than other approaches, achieving an $11.2\%$ to $18.5\%$ reduction in risk. Notably, our approach exhibits strong advantages in highly uncertain environments with a large possibility of model errors.
31
+
32
+ Our contributions are as follows.
33
+
34
+ - We present the model risk-sensitive offline framework that minimizes the model risk, enabling more robust decision-making compared to conventional risk-sensitive offline RL approaches.
35
+ - We introduce the critic-ensemble criterion, which adjusts a set of alternative scenarios by expanding or contracting it based on the level of uncertainty, thereby enabling the computation of model risk.
36
+ - We devise the Fourier feature quantile regression network to precisely estimate the statistics of distributions, which are required to calculate the model risk.
37
+ - Through several case studies, we demonstrate the robustness of our approach in highly uncertain environments.
38
+
39
+ # 2 RELATED WORK
40
+
41
+ Risk-sensitive RL. Traditional research on risk-sensitive RL is based on risk measures that can be computed without estimating whole return distributions (Howard & Matheson, 1972; Sato et al.,
42
+
43
+ 2001; Mihatsch & Neuneier, 2002; Tamar et al., 2015; Chow et al., 2017). With the rise of distributional RL, Dabney et al. (2018a) developed IQN framework, which enables the direct computation of risk via quantile regression, thereby unifying the risk-sensitive RL framework. Other approaches include the direct calculation of $CV@R$ policy gradient without calculating the return distribution (Tamar et al., 2015; Chow et al., 2017), entropy-based methods (Mihatsch & Neuneier, 2002), dynamic $CV@R$ (Du et al., 2022; Lim & Malik, 2022), and entropic value at risk ( $EV@R$ , Ni & Lai (2022)). Dynamic $CV@R$ recursively accounts for risk at each timestep and is related to 1R2R (Rigter et al., 2024). $EV@R$ is a risk measure that is out of our scope, but it is closely related to CODAC (Ma et al., 2021). Another interesting approach is integrating risk-sensitive RL with safe RL. For example, Kim & Oh (2022) integrate the risk-sensitive approach to the safe RL, constraining the $CV@R$ of costs instead of expected costs. Meanwhile, Ying et al. (2021); Greenberg et al. (2022) constrain the risk using the safe RL method, while maximizing return. In an online RL setting, Jaimungal et al. (2022) have proposed a similar approach to ours. However, because their method is based on KDE and on-policy algorithm, therefore, it cannot be applied to offline RL.
44
+
45
+ Risk-sensitive Offline RL. Research in risk-sensitive offline RL relies on integrating IQN and offline RL frameworks. Urpi et al. (2021) first proposed a risk-sensitive offline RL framework ORAAC by combining IQN and BCQ (Fujimoto et al., 2019). ORAAC is hindered by excessive constraints on the behavior policy, limiting its capability to generate better trajectories. To address the limitation, CODAC (Ma et al., 2021), which is based on CQL, was proposed. Yet, CODAC inherits the issues from CQL, such as hyperparameter sensitivity (Tarasov et al., 2024). Another approach, 1R2R (Rigter et al., 2024), is a model-based RL method that estimates risk with worst-case perturbations of the transition. However, its main limitation is that it is only guaranteed when transition probabilities follow a normal distribution.
46
+
47
+ Model Risk. Our work is built on the concept of model risk, which has been extensively studied in the field of mathematical finance (Bernard et al., 2023; Breuer & Csiszár, 2016; Blanchet & Murthy, 2019; Glasserman & Xu, 2014). Focusing on the worst-case expectation among scenarios aligns with Breuer's approach to aleatoric risk using a coherent risk measure (Breuer & Csiszár, 2016; Glasserman & Xu, 2014). However, we focus on the worst-case of aleatoric risk among alternative scenarios, following Bernard et al. (2023), which leads to a different formulation. This approach allows comparison of value distributions with different support, which is crucial in offline RL, since the worst-case distribution may not match the model's support (Bernard et al., 2023).
48
+
49
+ # 3 BACKGROUND AND PROBLEM FORMULATION
50
+
51
+ # 3.1 BACKGROUND
52
+
53
+ Risk-sensitive RL. We consider a Markov decision process $(S, \mathcal{A}, R, \mathcal{P}, \gamma)$ where $S$ is a set of states, $\mathcal{A}$ is a set of actions, $R: S \times \mathcal{A} \to \triangle(\mathbb{R})$ is an immediate reward which may be random, and $\mathcal{P}: S \times \mathcal{A} \to \triangle(S)$ is a transition probability. Here $\triangle(\mathcal{X})$ denotes a set of random variables whose supports are subsets of $\mathcal{X}$ . Further, we assume that all random attributes' means and variances are finite. An optimal risk-sensitive policy is formulated as
54
+
55
+ $$
56
+ \pi^ {*} = \underset {\pi} {\arg \min } H _ {\phi} \left(Z ^ {\pi} (s, a)\right) \text {w h e r e} Z ^ {\pi} (s, a) = \sum_ {t = 0} ^ {T} R \left(s _ {t}, a _ {t}\right) \gamma^ {t} | s _ {0} = s, a _ {0} = a. \tag {1}
57
+ $$
58
+
59
+ Here $H_{\phi}(Z^{\pi}(s,a))$ denotes the risk of policy $\pi$ with respect to its return $Z^{\pi}(s,a)$ and $H_{\phi}$ denotes a risk measure given by the user or environment. As we are interested in spectral risk measures (Adam et al. (2008), in Def. ②), we use the quantile function of a random variable.
60
+
61
+ Definition 1 (Koenker 2005) Let $Z$ be a random variable. A quantile function of the random variable $Z$ , $F_Z^{-1} : [0,1] \to \mathbb{R}$ , is defined as the left inverse of cumulative distribution of $Z$ . Specifically,
62
+
63
+ $$
64
+ F _ {Z} ^ {- 1} (p) := \inf \{x \in \mathbb {R} \mid p \leq F _ {Z} (x) \}, \tag {2}
65
+ $$
66
+
67
+ where $F_Z: \mathbb{R} \to [0,1]$ is the cumulative distribution function of $Z$ . For readability, we denote $F_Z^{-1}(\cdot; s, a)$ as the quantile function of dependent random variable, $Z|_s, a$ , rather than $F_{Z|s,a}^{-1}(\cdot)$ .
68
+
69
+ The spectral risk is the weighted integral of the quantile function.
70
+
71
+ Definition 2 (Adam et al. 2008) A function $H_{\phi}: L^{1} \to (\mathbb{R} \cup \{\infty\})$ is called spectral risk measure which has the following representation
72
+
73
+ $$
74
+ H _ {\phi} (Z) = \underbrace {- \int_ {0} ^ {1} F _ {Z} ^ {- 1} (p) \phi (p) d p} _ {u := F _ {\phi} (p) \Rightarrow d u = d F _ {\phi} (p) = \phi (p) d p w i t h p = F _ {\phi} ^ {- 1} (u)} = - \mathbb {E} _ {u \sim U [ 0, 1 ]} [ F _ {Z} ^ {- 1} (F _ {\phi} ^ {- 1} (u)) ], \quad (3)
75
+ $$
76
+
77
+ where $\phi :[0,1]\to [0,\infty ]$ is a weight function; right-continuous, non-increasing with $\int_0^1\phi (p)dp = 1$ ; i.e, $\phi$ is a density function for some random variable. Further, the value of this function given $Z$ , $H_{\phi}(Z)$ , is called the risk of $Z$ . Here $L^1$ is a set of random variables whose means are finite. The right most term is followed by and inverse transform sampling (Miller et al., 2010; Dabney et al., 2018a) and Monte-Carlo integral.
78
+
79
+ Since $\phi$ is non-increasing, the risk measure necessarily prioritizes worse outcomes, as intended. The negation is required in the definition, since we aim to minimize the risk. For example, when we want to optimize for the worst-case risk measure (i.e., $\phi$ is a Dirac-delta function), we minimize the negation of the worst-case outcome, the risk.
80
+
81
+ To calculate the risk $H_{\phi}(Z^{\pi}(s,a))$ , we use the quantile function of $Z^{\pi}(s,a)$ , $F_{Z^{\pi}}^{-1}(\cdot ,s,a)$ . To learn the quantile function, we use the following distributional Bellman equation (Bellemare et al., 2017; Dabney et al., 2018b; a).
82
+
83
+ $$
84
+ Z ^ {\pi} \left(s _ {t}, a _ {t}\right) \stackrel {\text {d i s t r .}} {=} R \left(s _ {t}, a _ {t}\right) + \gamma Z ^ {\pi} \left(s _ {t + 1}, a\right), \tag {4}
85
+ $$
86
+
87
+ where $a = \arg \min_{a'} H_{\phi}(Z(s_{t+1}, a'))$ . Specifically, we use the quantile regression method to estimate the quantile of return $Z^{\pi}(s, a)$ . The quantile regression loss (Koenker, 2005; Dabney et al., 2018b) of the critic is
88
+
89
+ $$
90
+ \mathcal {L} _ {\text {c r i t .}} (\theta) = \frac {1}{N N ^ {\prime}} \sum_ {j = 1} ^ {N ^ {\prime}} \sum_ {i = 1} ^ {N} \underbrace {\left| p _ {i} - \mathbf {1} \left(\delta_ {i j} ^ {\theta} < 0\right) \right|} _ {\text {A s y m m e t r i c w e i g h t e d}} \cdot \underbrace {\left| \delta_ {i j} ^ {\theta} \right|} _ {L ^ {1} \text {l o s s}}, \tag {5}
91
+ $$
92
+
93
+ where $\delta_{ij}^{\theta}$ is the distributional Bellman residual and $\theta$ is a critic's parameter. The distributional Bellman residual is defined as a pairwise difference between the target quantile and the critic's quantile as
94
+
95
+ $$
96
+ \delta_ {i j} ^ {\theta} = R \left(s _ {t}, a _ {t}\right) + \gamma F _ {Z ^ {\pi}} ^ {- 1} \left(p _ {j}; s _ {t + 1}, a, \theta_ {\mathrm {t a r}}\right) - F _ {Z ^ {\pi}} ^ {- 1} \left(p _ {i}; s _ {t}, a _ {t}, \theta\right), \tag {6}
97
+ $$
98
+
99
+ where $p_i, p_j$ denote $N, N'$ numbers of independent random variables which follow $U[0,1]$ and $\theta_{\mathrm{tar}}$ denotes the parameter of target-critic.
100
+
101
+ Risk-sensitive Offline RL. In offline settings, an agent is not allowed to interact directly with the environment and can only access a transition dataset $\mathcal{D} := \{(s_i, a_i, r_i, s_i')\}_{i=1}^{|\mathcal{D}|}$ . Due to this constraint, naive RL approaches suffer from overestimation of $Z^{\pi}(s, a)$ from distribution shifts (Fujimoto et al., 2019). Thus, an auxiliary regulation is commonly applied. The objective of offline RL is defined as
102
+
103
+ $$
104
+ \pi^ {*} = \underset {\pi} {\arg \max } \mathbb {E} \left[ Z ^ {\pi} (s, a) \right] \text {c o n s t r a i n t} D (\pi \| \pi_ {\mathcal {D}}) < \epsilon , \tag {7}
105
+ $$
106
+
107
+ where $D(\cdot \|\cdot)$ is some divergence (or metric), $\pi_{\mathcal{D}}$ is the behavior policy for the dataset $\mathcal{D}$ , and $\epsilon > 0$ is a tolerance. Incorporating this regulation, the objective of risk-sensitive offline RL is extended from Eq.(1) as
108
+
109
+ $$
110
+ \pi^ {*} = \underset {\pi} {\arg \min } H _ {\phi} \left(Z ^ {\pi} (s, a)\right) \text {c o n s t r a i n t} D (\pi \| \pi_ {\mathcal {D}}) < \epsilon . \tag {8}
111
+ $$
112
+
113
+ # 3.2 PROBLEM FORMULATION
114
+
115
+ The primary concern of risk-sensitive offline RL is that the error of computing $H_{\phi}(Z^{\pi}(s,a))$ can be significant, as the agent cannot receive direct feedback from the environment in offline settings. To address this, we instead compute the worst-case of risks among alternative scenarios (i.e., model risk) and focus on minimizing the model risk. The model risk is defined as the highest possible risk within a $\sqrt{\varepsilon}$ -ball with mean $\mu$ and standard deviation $\sigma$ . The random variables in the ball specify the plausible alternative scenarios.
116
+
117
+ ![](images/af2a58bb6736e0d07974d304234cc2f6db6d39dc5edd05b4c4755fbd829669a4.jpg)
118
+ Figure 2: Overall framework of MR-IQN. Q.R. loss is abbreviation of quantile regression loss and s.g. trick is stop-gradient trick. Note that the stop-gradient trick does not change the value.
119
+
120
+ Definition 3 (Bernard et al. (2023)) The model risk $MR_{\phi}(Z^{\pi}(s,a);\mu ,\sigma ,\varepsilon)$ is defined as
121
+
122
+ $$
123
+ M R _ {\phi} \left(Z ^ {\pi} (s, a); \mu , \sigma , \varepsilon\right) := \sup _ {X \in M \left(Z ^ {\pi} (s, a); \mu , \sigma , \varepsilon\right)} H _ {\phi} (X), \tag {9}
124
+ $$
125
+
126
+ where $M(Z^{\pi}(s,a);\mu ,\sigma ,\varepsilon) = \{X\in L^{2}\mid \mathbb{E}[X] = \mu ,\mathbb{Var}[X] = \sigma^{2},D_{W;2}(X,Z^{\pi}(s,a)) < \sqrt{\varepsilon}\}$ and $L^2$ is a set of random variables whose mean and variance are finite. Here, $D_{W;2}$ is the Wasserstein 2-distance defined as $D_{W;2}(X,Y) = \sqrt{\int_0^1|F_X^{-1}(p) - F_Y^{-1}(p)|^2dp}$ . The distribution of random variable $Z^{\pi}(s,a)$ is called reference distribution.
127
+
128
+ Our goal is to find a policy $\pi^{*}$ such that
129
+
130
+ $$
131
+ \pi^ {*} = \underset {\pi} {\arg \min } \mathrm {M R} _ {\phi} \left(Z ^ {\pi} (s, a); \mu , \sigma , \varepsilon\right) \text {c o n s t r a i n t} D (\pi \| \pi_ {\mathcal {D}}) < \epsilon . \tag {10}
132
+ $$
133
+
134
+ # 4 MODEL RISK-SENSITIVE OFFLINE RL ALGORITHM
135
+
136
+ To achieve a model risk-sensitive offline RL agent satisfying the objective in Eq.(10), we introduce Model Risk IQN (MR-IQN), which integrates the TD3+BC framework (Fujimoto & Gu, 2021) with the model risk objective from Eq.(10). The MR-IQN consists of distributional critics and a deterministic actor. The critic is trained to minimize the loss function in Eq.(5), similar to other approaches (Urpi et al., 2021; Dabney et al., 2018a; Kuznetsov et al., 2020). Specifically, the critics are implemented using IQN (Dabney et al., 2018a) and TQC (Kuznetsov et al., 2020), following Yoo et al. (2024). Meanwhile the actor is trained to minimize the loss function,
137
+
138
+ $$
139
+ \mathcal {L} (\pi) = \underbrace {\lambda_ {\mathrm {q . l e a r n}} \mathrm {M R} _ {\phi} \left(Z ^ {\pi} (s , a) ; \mu , \sigma , \varepsilon\right)} _ {\text {M o d e l r i s k}} + \underbrace {(a - a _ {\mathcal {D}}) ^ {2}} _ {\text {B C l o s s}}. \tag {11}
140
+ $$
141
+
142
+ Here $\lambda_{\mathrm{q,learn}} > 0$ is a scale parameter, $a_{\mathcal{D}}$ is a batch action, and $a = \pi (s)$
143
+
144
+ Figure 2 describes the MR-IQN framework. We extract $\mu$ and $\sigma$ from the critic estimation. To precisely estimate the statistics, $\mu$ and $\sigma$ , we leverage the Fourier feature architecture (Tancik et al., 2020) for the critics, as in [Li & Pathak (2021)]. Next, we calculate $\varepsilon$ as the distance between the ensemble of the critics obtained by quantile mixture of individual critics. Finally, we calculate $\mathrm{MR}_{\phi}(Z^{\pi}(s,\pi (s)))$ and minimize the loss function in Eq.(11). To do so, we first introduce the theorem and corollary below for calculating model risk.
145
+
146
+ Theorem 1 (Bernard et al. 2023) Let $Z$ be a random variable. For $\varepsilon > (\mu_Z - \mu)^2 + (\sigma_Z - \sigma)^2$ , there exists a unique quantile function $h_\lambda : [0,1] \to \mathbb{R}$ which satisfies
147
+
148
+ $$
149
+ M R _ {\phi} (Z; \mu , \sigma , \varepsilon) = - \int_ {0} ^ {1} h _ {\lambda} (p) \phi (p) d p, \tag {12}
150
+ $$
151
+
152
+ where $\mu_Z$ is the mean of $Z$ , $\sigma_Z$ is the standard deviation of $Z$ . We have
153
+
154
+ $$
155
+ h _ {\lambda} (p) = \mu - \sigma \left(\frac {\phi (p) + \lambda F _ {Z} ^ {- 1} (p) - a _ {\lambda}}{b _ {\lambda}}\right), \tag {13}
156
+ $$
157
+
158
+ where $\lambda \geq 0$ is some constant, and $a_{\lambda} = \mathbb{E}[\phi (U) + \lambda F_Z^{-1}(U)], b_{\lambda} = \text{std}[\phi (U) + \lambda F_Z^{-1}(U)]$ . Here $U$ denotes the uniform random variable $U[0,1]$ and std denotes the standard deviation operator. If $\varepsilon \leq (\mu_Z - \mu)^2 + (\sigma_Z - \sigma)^2$ holds, the problem is ill-posed or it has only a trivial solution.
159
+
160
+ Let $c_{0} = \operatorname{corr}(F_{Z}^{-1}(U), \phi(U))$ . If $\varepsilon < (\mu_{Z} - \mu)^{2} + (\sigma_{Z} - \sigma)^{2} + 2\sigma \sigma_{Z}(1 - c_{0})$ holds, we achieve
161
+
162
+ $$
163
+ \lambda = \frac {K}{\sigma_ {Z} ^ {2}} \sqrt {\frac {V \sigma_ {Z} ^ {2} - C _ {\phi , Z} ^ {2}}{\sigma^ {2} \sigma_ {Z} ^ {2} - K ^ {2}}} - \frac {C _ {\phi , Z} ^ {2}}{\sigma_ {Z}}, \tag {14}
164
+ $$
165
+
166
+ where $V = \mathbb{Var}[\phi (U)]$ , $C_{\phi ,Z} = \mathbb{Cov}[F_Z^{-1}(U),\phi (U)]$ , and $K = \frac{1}{2}\left((\mu_{Z} - \mu)^{2} + \sigma^{2} + \sigma_{Z}^{2} - \varepsilon\right)$ . Otherwise, $\lambda = 0$ . Here, corr is the Pearson correlation.
167
+
168
+ Corollary 1 (Bernard et al. 2023) The solution of Eq.(9) exists and unique whenever $h_\lambda$ exists as
169
+
170
+ $$
171
+ M R _ {\phi} \left(Z ^ {\pi} (s, a); \mu , \sigma , \varepsilon\right) = - \underbrace {(\mu - \sigma s t d [ \phi (U) ] c o r r [ \phi (U) , \phi (U) + \lambda F _ {Z \pi} ^ {- 1} (U ; s , a) ])} _ {\int_ {0} ^ {1} h _ {\lambda} (p) \phi (p) d p i n E q. \boxed {1 2}}), \tag {15}
172
+ $$
173
+
174
+ where $\lambda \geq 0$ is the constant determined by Eq.(14) in Theorem I
175
+
176
+ # 4.1 CRITIC-ENSEMBLE CRITERION
177
+
178
+ To calculate the model risk for policy gradient using Eq.(15), it is required to determine $\mu, \sigma$ and tolerance $\varepsilon$ . For $\varepsilon$ , we want to set $\varepsilon$ large when there is a large inconsistency between an individual critic while setting $\varepsilon$ small when the inconsistency is small. For conservatism, we choose $\mu$ as the minimum value among the critics' estimation and $\sigma$ as the maximum to reduce overestimation bias as discussed by Fujimoto et al. (2018). From now on, we use $K$ to denote the number of critics.
179
+
180
+ Step 1. Calculating $\mu, \sigma$ . To ensure conservatism, we select $\mu_0, \sigma$ as the smallest expectation and the largest deviation of $Z^{\pi}$ , as follows.
181
+
182
+ $$
183
+ \mu_ {0} := \min _ {i = 1, \dots , K} \mathbb {E} \left[ Z ^ {\pi} (s, a, \theta^ {(i)}) \right], \sigma := \max _ {i = 1, \dots , K} \operatorname {s t d} \left[ Z ^ {\pi} (s, a, \theta^ {(i)}) \right] \tag {16}
184
+ $$
185
+
186
+ When $\lambda = 0$ , the gradient of the policy in Eq.(15) solely depends on the mean-deviation risk measure, which often leads to local optima. To mitigate this, we apply the stop gradient trick to $\mu$ as
187
+
188
+ $$
189
+ \mu := - H _ {\phi} \left(Z ^ {\pi} (s, a)\right) + \operatorname {s t o p - g r a d} \left(H _ {\phi} \left(Z ^ {\pi} (s, a)\right)\right) + \mu_ {0}, \tag {17}
190
+ $$
191
+
192
+ where $H_{\phi}(Z^{\pi}(s,a)) = \max_{i = 1,\dots ,K}H_{\phi}(Z^{\pi}(s,a,\theta^{(i)}))$ , i.e., the most conservative critic.
193
+
194
+ Step 2. Calculating $\varepsilon$ through quantile mixture. We construct an ensemble of critics as a single quantile function by mixing their quantiles and calculate the distance between this ensemble and individual critics.
195
+
196
+ We first form the critic ensemble by sorting the estimates from all critics and interpolating them over an equally divided space (i.e., quantile mixture). Next, we calculate the Wasserstein-2 distance between the ensemble of critics and individual critics. The largest of these distances is selected as $\varepsilon$ .
197
+
198
+ The first step involves calculating the sorted critic values $y_{k}$ defined as
199
+
200
+ $$
201
+ \left\{y _ {1}, \dots , y _ {N K} \right\} = \cup_ {i = 1} ^ {K} \cup_ {j = 1} ^ {N} F _ {Z \pi} ^ {- 1} \left(p _ {j}; s, a, \theta^ {(i)}\right), y _ {1} \leq y _ {2} \leq \dots \leq y _ {N K}, \tag {18}
202
+ $$
203
+
204
+ where $N$ represents the number of random variables $p_j \sim U[0,1]$ . Let $X$ be an equally divided set of $[0,1]$ defined as $X = \{x_1 = 0, x_2 = 1/(NK - 1), \ldots, x_{NK} = 1\}$ . By interpolating pairs $\{(x_1, y_1), \ldots, (x_{NK}, y_{NK})\}$ , we construct the ensemble of critics, $F_{\mathrm{ens.}}^{-1}$ . Figure $\boxed{3}$ depicts the procedure of calculating $F_{\mathrm{ens.}}^{-1}$ . Finally, $\varepsilon$ is computed by
205
+
206
+ $$
207
+ \varepsilon = \max _ {i = 1, \dots , K} \int_ {0} ^ {1} | F _ {\text {e n s .}} ^ {- 1} (x; s, a) - F _ {Z \pi} ^ {- 1} (x; s, a, \theta^ {(i)}) | ^ {2} d x = D _ {W; 2} ^ {2} \left(F _ {Z \pi} ^ {- 1} (\cdot ; s, a, \theta^ {i}), F _ {\text {e n s .}} ^ {- 1} (\cdot)\right). \tag {19}
208
+ $$
209
+
210
+ We use the trapezoid method to numerically calculate the integral in Eq. (19).
211
+
212
+ Step 3. Calculate the model risk. We take the most conservative critic and take the reference distribution of the critic estimates in the place of $F_{Z}^{-1}$ in Eq.(14) and Eq.(15).
213
+
214
+ $$
215
+ F _ {\text {r e f}} ^ {- 1} (\cdot) = F _ {Z \pi} ^ {- 1} (\cdot ; s, a, \theta^ {(*)}), \text {w h e r e} \theta^ {(*)} = \underset {\theta^ {(i)}} {\arg \max } H _ {\phi} \left(Z ^ {\pi} (s, a, \theta^ {(i)})\right). \tag {20}
216
+ $$
217
+
218
+ Algorithm 1 Critic-Ensemble Model Risk
219
+
220
+ Inputs: Critic Parameters $\theta^{(i)}$ , Risk Measure's Density $\phi$ , $N$ the number of samples.
221
+
222
+ Output: Model Risk $\mathrm{MR}_{\phi}(Z^{\pi}(s,a),\mu ,\sigma ,\varepsilon)$
223
+
224
+ Step1 Calculate $\mu, \sigma$ :
225
+
226
+ Sample $p_j$ from $\dot{U}[0,1]$ with $j = 1,\dots ,N$ . To estimate risk and mean by inv. trans. sampling.
227
+
228
+ $\mu_0 \gets \min_{i=1\dots K} \mathbb{E}_{p_j}[F_{Z^\pi}^{-1}(p_j;s,a,\theta^{(i)})]$ $\triangleright$ Get minimal mean over critics; mean over $p_j$ .
229
+
230
+ $p_j^{\prime}\gets F_{\phi}^{-1}(p_j),H_{\phi}(Z^{\pi}(s,a))\gets \max_{i = 1,\ldots ,K} - \mathbb{E}_{p_j'}[F_{Z\pi}^{-1}(p_j';s,a,\theta^{(i)})])$ Eq.(3)
231
+
232
+ $\mu \leftarrow -H_{\phi}(Z^{\pi}(s,a)) + \mathrm{stop - grad}(H_{\phi}(Z^{\pi}(s,a))) + \mu_0$ Stop-Gradient Trick in Eq.(17)
233
+
234
+ $\sigma \gets \max_{i = 1,\dots ,K}\mathrm{std}_{p_j}[F_{Z\pi}^{-1}(p_j,s,a,\theta^{(i)})]$ $\triangleright$ Get maximal standard deviation over critics.
235
+
236
+ Step 2 Calculate $\varepsilon$ :
237
+
238
+ $\{y_{k}\}_{k = 1}^{NK}\gets \mathrm{sort}(\cup_{i = 1}^{K}\cup_{j = 1}^{N}\{F_{Z\pi}^{-1}(p_j;s,a,\theta^{(i)})\})$ ▷Sort
239
+
240
+ $\{x_{1}\gets 0,x_{2}\gets \frac{1}{NK - 1},\ldots ,x_{NK - 1}\gets \frac{NK - 2}{NK - 1},x_{NK}\gets 1\}$ $\triangleright x\gets \mathrm{linspace}(0,1,NK)$
241
+
242
+ $F_{\mathrm{ens.}}^{-1}\gets$ interpolation $\left(\left\{\left(x_{k},y_{k}\right)\right\}_{k = 1}^{NK}\right)$ Rearrange and Interpolarate
243
+
244
+ $\varepsilon = \max_{i = 1,\dots ,K}\int_0^1 |F_{\mathrm{ens}}^{-1}(x) - F_{Z\pi}^{-1}(x;s,a,\theta^{(i)})|^2 dx$ $\triangleright$ Calculate via numerical integral.
245
+
246
+ Step 3 Calculate Model Risk:
247
+
248
+ $\theta^{(*)}\leftarrow \arg \max_{\theta^{(i)}}H_{\phi}(Z^{\pi}(s,a,\theta^{(i)})),F_{\mathrm{ref}}^{-1}\leftarrow F_{Z^{\pi}}^{-1}(\cdot ;s,a,\theta^{(*)})\triangleright$ Take the most conservative.
249
+
250
+ $\lambda \leftarrow$ calculate lambda $(F_{\mathrm{ref}}^{-1},\mu ,\sigma ,\varepsilon ,\phi)$ using Eq.14
251
+
252
+ $\mathbf{MR}_{\phi}(Z^{\pi}(s,a))\gets$ calculate model risk $(F_{\mathrm{ref}}^{-1},\mu ,\sigma ,\varepsilon ,\phi)$ using Eq.(15)
253
+
254
+ Return: $\mathrm{MR}_{\phi}(Z^{\pi}(s,a))$
255
+
256
+ ![](images/60f452d539f13b297272d470df1cdfcaeb6e80052ae4a28b1e91e745a21a1f8d.jpg)
257
+ Quantile-Level
258
+
259
+ ![](images/71aa7d424b578b10dc37e7c2eb379617002e1b4fbbc20b89aa82a635fc898ce6.jpg)
260
+ $x_{1}$ $x_{2}$ ...
261
+ Figure 3: Procedure of calculating $F_{\mathrm{ens.}}^{-1}$ with three critics. $F_{\mathrm{ens.}}^{-1}$ is a quantile mixture of critics, therefore, it shows a mid-level pessimism similar to $F_{Z^{\pi}}^{-1}(\cdot ,s,a,\theta^{(3)})$ .
262
+
263
+ If a solution does not exist, (i.e., $\varepsilon < (\mu_Z - \mu)^2 + (\sigma_Z - \sigma)^2$ ), we substitute $H_{\phi}(Z^{\pi}(s,a))$ for $\mathrm{MR}_{\phi}(Z^{\pi}(s,a);\mu,\sigma,\epsilon)$ to preserve the gradient signal.
264
+
265
+ Algorithm [1] outlines the procedure of computing model risk throughout the critic-ensemble criterion. First, the most conservative $\mu$ , $\sigma$ among critics, are chosen. Next, we compute $\varepsilon$ by measuring the $D_{W;2}$ distance between each individual critic and the ensemble, which is obtained by quantile mixture via sort and rearrange. Finally, we compute the model risk using the parameters obtained from the previous steps.
266
+
267
+ # 4.2 ADDRESSING SPECTRAL BIAS OF QUANTILE REGRESSION
268
+
269
+ Although our framework accounts for model errors, it is essential to estimate the mean $(\mu)$ and deviation $(\sigma)$ as accurately as possible, since these statistics are assumed to approximate the ground truth. While quantile regression yields an unbiased estimator (Koenker, 2005), due to spectral bias (Rahaman et al., 2019), conventional neural networks often fail to capture these statistics effectively. Spectral bias refers to the phenomenon where neural networks struggle to learn high-frequency components of patterns. For risk-sensitive RL to be effective, $Z^{\pi}$ must converge in the distributional sense to ensure proper signals can be back-propagated. According to the Lévy convergence theorem (Williams, 1991), this is equivalent to the pointwise convergence of the Fourier transform of $Z^{\pi}$ , emphasizing the critical role of the high-frequency domain (and thus spectral bias) in convergence. The Fourier feature network (Tancik et al., 2020; Li & Pathak, 2021) is a known solution to the spectral bias problem.
270
+
271
+ ![](images/9eb5db2c43c152e11e92187629eaf4ecfb9dd0993107fc718c81073f191a24ff.jpg)
272
+ (a) Vanilla IQN $D_{W;1}$ : $2.23 \pm 0.05$ Crossing(%): $6.07 \pm 2.08$
273
+
274
+ ![](images/8f46b681361e5eef291cc41e57db16ab7e975f3334ba2851802d4014721d1440.jpg)
275
+ (b) Fourier feature in level domain $D_{W;1}$ : $2.33 \pm 0.14$ Crossing $(\%)$ : $0.01 \pm 0.00$
276
+
277
+ ![](images/00c88e077aa3925ae6bbedf6df56bc7ef870722836704a15b06f4cbe8c4c0800.jpg)
278
+ (c) Full Fourier feature $D_{W;1}$ : $0.06 \pm 0.02$ Crossing(%): $0.01 \pm 0.00$
279
+
280
+ Figure 4 demonstrates the importance of the Fourier feature network in quantile regression. Here the networks are trained to estimate $F_{\mathcal{N}(\mu, \sigma^2)}^{-1}$ given $\mu \sim \mathcal{N}(0,1)$ , $\log \sigma \sim \mathcal{N}(0,1)$ . (a) is the result of a network trained by Vanilla IQN. (b) is the case when we handle the spectral bias in the level of quantile. (c) shows the case when we handle the spectral bias of all input domains. As shown, the spectral bias is the cause of inaccurate distribution estimation. Note that applying Fourier features in the
281
+
282
+ level domain helps reduce the crossing quantile, but it does not improve overall accuracy. This is because the cosine embedding used in IQN already functions as a type of Fourier feature network. Figure 5 depicts the implementation of the Fourier feature network in (c). For parameters $\xi$ initialized from $\mathcal{N}(0,\sigma_{ff})$ and input $X_0$ , the Fourier feature is
283
+
284
+ ![](images/9e376c37584df22d4b435ffaefd8c4431a4271c593ae080f68703054ec830228.jpg)
285
+ Figure 4: Results of quantile regression. $D_{W;1}$ is the Wasserstein 1-distance between ground truth quantile, and Crossing is the ratio of the numbers of crossing quantiles (\%).
286
+ Figure 5: Fourier feature quantile regression network. $\odot$ is pairwise multiplication operator.
287
+
288
+ $$
289
+ X _ {1} = \sin \left(2 \pi X _ {0} ^ {T} \xi\right) \# \cos \left(2 \pi X _ {0} ^ {T} \xi\right) \# X _ {0}, \tag {21}
290
+ $$
291
+
292
+ where $\#$ denotes the concatenation operator, and $X_{1}$ denotes the feature passed to the next layer. We also leverage using the Fourier feature IQN instead of cosine embedding IQN to reduce crossing quantile error. The remaining process is the same as conventional MLP.
293
+
294
+ # 5 EXPERIMENTS
295
+
296
+ # 5.1 BASELINES AND CRITERION
297
+
298
+ Risk Measures. For the experiments, we are interested in following risk measures.
299
+
300
+ (i) $CV@R$ . considers average over below $\alpha$ 's quantile. The risk measure's density $\phi_{\alpha}^{\mathrm{CV@R}}$ parameterized by $\alpha \in [0,1]$ of is
301
+
302
+ $$
303
+ \phi_ {\alpha} ^ {C V @ R} (p) = \frac {1}{\alpha} \mathbf {1} _ {[ 0, \alpha ]} (p). \tag {22}
304
+ $$
305
+
306
+ (ii) Wang. is a risk measure motivated by areas where one's cost becomes another's benefit, like an option trading [Wang 2002]. The density of Wang risk measure, $\phi_{\alpha}^{\mathrm{wang}}$ , parameterized by $\alpha < 0$ is
307
+
308
+ $$
309
+ \phi_ {\alpha} ^ {w a n g} (p) = \frac {\varphi \left(F _ {\mathcal {N} (0 , 1)} ^ {- 1} (1 - p) + \alpha\right)}{\varphi \left(F _ {\mathcal {N} (0 , 1)} ^ {- 1} (1 - p)\right)}, \tag {23}
310
+ $$
311
+
312
+ where $F_{\mathcal{N}(0,1)}^{-1}$ and $\varphi$ are the quantile and density of standard normal distribution, respectively.
313
+
314
+ Baseline Algorithms. ORAAC (Urpí et al., 2021) is a risk-sensitive variant of BCQ (Fujimoto et al., 2019). It achieves the risk-sensitive offline RL objective by only having slight modifications in the dataset's actions. CODAC (Ma et al., 2021) is a risk-sensitive variant of CQL (Kumar et al., 2020). It achieves a dataset constraint by minimizing KL-divergence between the RL agent's actions and the dataset's actions using the Donsker-Varadhan representation. IQN-TD3+BC is a risk-sensitive variant of the TD3+BC (Fujimoto & Gu, 2021) algorithm, where the IQN-Critic is used. The optimal actor $\pi_{\mathrm{TD3 + BC}}$ in IQN-TD3+BC is defined as
315
+
316
+ $$
317
+ \pi_ {\mathrm {T D} 3 + \mathrm {B C}} = \underset {\pi} {\arg \min } \lambda_ {\mathrm {q}, \text {l e a r n}} H _ {\phi} \left(Z ^ {\pi} (s, a)\right) + \left(a - a _ {\mathcal {D}}\right) ^ {2}. \tag {24}
318
+ $$
319
+
320
+ Here $\lambda_{\mathrm{q. learn}} > 0$ is a scale hyperparameter, $a_{\mathcal{D}}$ is a batch action, same as in Eq.(11).
321
+
322
+ # 5.2 MAIN RESULTS
323
+
324
+ We evaluate MR-IQN on finance and self-driving scenarios comparing with the baselines above. The label Mean is the average of the mean score over seeds and $-H_{\phi}(Z^{\pi})$ is the mean negative risk over seeds. All reported scores are averaged across 5 seeds. Numerical descriptions provided without explicit criteria are the results of comparing the negative risk. We also present the D4RL results, comparing the baselines and 1R2R, in Appendix A.1. The results and analysis about $CV@R(10\%)$ risks are in Appendix A.4, and the dataset details are provided in Appendix B.
325
+
326
+ Table 1: Performance comparison in finance scenarios.
327
+
328
+ <table><tr><td colspan="2">Target Risk Measure</td><td colspan="2">CV@R (50%)</td><td colspan="2">Wang (-0.5)</td></tr><tr><td>Env.</td><td>Algorithm</td><td>Mean</td><td>-Hφ(Zπ)</td><td>Mean</td><td>-Hφ(Zπ)</td></tr><tr><td>Forex</td><td>CODAC</td><td>1577.47 ± 41.52</td><td>249.53 ± 28.33</td><td>1591.76 ± 8.12</td><td>892.34 ± 54.06</td></tr><tr><td>Env.</td><td>ORAAC</td><td>302.37 ± 19.27</td><td>-99.90 ± 0.01</td><td>304.89 ± 38.05</td><td>70.47 ± 17.22</td></tr><tr><td>(High)</td><td>IQN-TD3+BC</td><td>2103.16 ± 103.43</td><td>454.16 ± 11.76</td><td>2181.16 ± 123.41</td><td>1307.52 ± 90.05</td></tr><tr><td></td><td>MR-IQN (ours)</td><td>2537.52 ± 289.57</td><td>556.94 ± 172.92</td><td>2681.40 ± 114.00</td><td>1639.79 ± 57.88</td></tr><tr><td>Stock</td><td>CODAC</td><td>37.67 ± 7.54</td><td>13.98 ± 2.34</td><td>33.43 ± 7.01</td><td>21.89 ± 4.65</td></tr><tr><td>Env.</td><td>ORAAC</td><td>78.48 ± 3.27</td><td>26.07 ± 2.25</td><td>78.57 ± 6.09</td><td>50.97 ± 3.98</td></tr><tr><td>(Low)</td><td>IQN-TD3+BC</td><td>80.49 ± 1.87</td><td>30.92 ± 1.15</td><td>83.10 ± 3.05</td><td>55.55 ± 1.76</td></tr><tr><td></td><td>MR-IQN (ours)</td><td>74.78 ± 2.10</td><td>31.16 ± 1.02</td><td>87.03 ± 2.62</td><td>58.56 ± 1.61</td></tr></table>
329
+
330
+ Finance. To investigate the real-world scenarios, we conduct experiments using the trading log data ranging from 2023-Feb-3rd to 2023-December-1st. The trading environment is based on the Meta-Trader Simulator (Amin, 2021). We evaluate 1000 episodes for each seed to calculate $CV@R$ and Wang negative risk. For the details, see Appendix. Table II depicts the results.
331
+
332
+ In the experiment, MR-IQN shows the highest performance in both Forex and Stock environments. In Forex environment, where uncertainty is high due to high leverage (High), the model risk approach effectively covers tail risk, maintaining high average returns and low risk, compared to the baseline approaches without model risk. IQN-TD3+BC, which is comparable to MR-IQN shows degraded performance $(18.5\% - 11.2\%)$ in Forex, indicating that MR-IQN is particularly useful in handling higher uncertainty and errors. Meanwhile, MR-IQN shows a slightly degraded average compared to ORAAC and IQN-TD3+BC in Stock environment. This indicates that there is a trade-off between conservatism and average performance.
333
+
334
+ Self-Driving. To simulate the self-driving scenario, we utilize the Airsim environment (Shah et al., 2017). In this scenario, RL agents are tasked with driving a quadcopter drone to a designated goal while avoiding obstacles, with wind disturbances affecting the drone's movement. The agents receive rewards based on the cosine of the angle between their movement direction and the goal. We evaluate performance in 100 episodes for each seed to measure negative risk. Table ② depicts the results.
335
+
336
+ MR-IQN outperforms other baselines, showing the highest success rate (87.4%-88.8%) and the lowest collision rate (10.6%-11.6%). CODAC showed a relatively low average of rewards and a higher success rate compared to ORAAC. This implies that CODAC fails to generalize efficient actions and hovers over. The high collision rate of ORAAC implies that it fails to avoid obstacles because of the strict constraint to the batch action.
337
+
338
+ Table 2: Performance comparison in self-driving scenarios
339
+
340
+ <table><tr><td>Risk Measure</td><td>Algorithm</td><td>Mean</td><td>-Hφ(Zπ)</td><td>Success(%)</td><td>Collision(%)</td></tr><tr><td rowspan="4">CV@R (50%)</td><td>CODAC</td><td>43.56 ± 89.45</td><td>-425.72 ± 97.73</td><td>65.0 ± 13.1</td><td>21.4 ± 5.5</td></tr><tr><td>ORAAC</td><td>92.37 ± 40.51</td><td>-88.37 ± 4.20</td><td>23.0 ± 15.7</td><td>68.0 ± 10.2</td></tr><tr><td>IQN-TD3+BC</td><td>411.78 ± 33.10</td><td>265.51 ± 45.25</td><td>81.8 ± 5.6</td><td>14.8 ± 5.6</td></tr><tr><td>MR-IQN(ours)</td><td>431.44 ± 30.41</td><td>290.96 ± 46.95</td><td>88.0 ± 4.6</td><td>11.6 ± 4.9</td></tr><tr><td rowspan="4">Wang (-0.5)</td><td>CODAC</td><td>6.67 ± 1.02</td><td>-2.15 ± 0.75</td><td>52.6 ± 19.3</td><td>31.2 ± 27.6</td></tr><tr><td>ORAAC</td><td>156.22 ± 32.09</td><td>51.73 ± 27.53</td><td>36.2 ± 6.4</td><td>58.4 ± 8.1</td></tr><tr><td>IQN-TD3+BC</td><td>412.98 ± 26.68</td><td>311.20 ± 31.03</td><td>83.8 ± 5.1</td><td>14.4 ± 3.9</td></tr><tr><td>MR-IQN(ours)</td><td>436.17 ± 19.16</td><td>341.26 ± 18.36</td><td>87.4 ± 1.8</td><td>10.6 ± 2.6</td></tr></table>
341
+
342
+ # 5.3 ABLATION STUDY
343
+
344
+ Table 3: Ablation results. $\checkmark$ represents presence and $X$ represents absence. M.R. and F.F. are the abbreviations for model risk and Fourier feature, respectively.
345
+
346
+ <table><tr><td colspan="3">Components</td><td colspan="2">CV@R (50%)</td><td colspan="2">Wang (-0.5)</td></tr><tr><td>M.R.</td><td>F.F.</td><td>TQC</td><td>Mean</td><td>-Hφ(Zπ)</td><td>Mean</td><td>-Hφ(Zπ)</td></tr><tr><td>✓</td><td>✓</td><td>✓</td><td>2537.52 ± 289.57</td><td>556.94 ± 172.92</td><td>2681.40 ± 114.00</td><td>1639.79 ± 57.88</td></tr><tr><td>✓</td><td>✓</td><td>X</td><td>2003.37 ± 214.76</td><td>464.84 ± 57.01</td><td>1975.85 ± 104.49</td><td>1160.65 ± 87.82</td></tr><tr><td>✓</td><td>X</td><td>✓</td><td>2410.83 ± 86.94</td><td>513.02 ± 77.54</td><td>2324.31 ± 146.95</td><td>1376.27 ± 122.96</td></tr><tr><td>✓</td><td>X</td><td>X</td><td>1763.21 ± 278.16</td><td>278.16 ± 94.26</td><td>1607.13 ± 76.54</td><td>872.54 ± 56.23</td></tr><tr><td>X</td><td>✓</td><td>✓</td><td>2103.16 ± 103.43</td><td>454.16 ± 11.76</td><td>2181.16 ± 123.41</td><td>1307.52 ± 90.05</td></tr><tr><td>X</td><td>✓</td><td>X</td><td>1712.79 ± 75.40</td><td>295.10 ± 49.83</td><td>1650.28 ± 51.48</td><td>934.79 ± 30.00</td></tr><tr><td>X</td><td>X</td><td>✓</td><td>2170.68 ± 186.55</td><td>476.23 ± 75.94</td><td>2188.57 ± 134.40</td><td>1297.15 ± 88.15</td></tr><tr><td>X</td><td>X</td><td>X</td><td>1454.30 ± 76.87</td><td>153.84 ± 38.57</td><td>1414.44 ± 40.00</td><td>750.22 ± 37.45</td></tr></table>
347
+
348
+ We also conduct an ablation study in the Forex environment, identifying model risk, Fourier features, and TQC as key contributors to the model's improvement. Table 3 presents the results. MR-IQN achieves an $8.6\% -19.8\%$ performance gain from the Fourier feature and a $19.8\% -41.3\%$ performance gain from TQC. The performance gain from model risk is reported in Section 5.2. Notably, model risk enhances performance when combined with other factors, due to the design of the critic ensemble criterion and the requirement for accurate estimation of $\mu$ and $\sigma$ , as discussed in Section 4.2.
349
+
350
+ Our framework achieves approximately $118.6\% - 262.0\%$ performance gains compared to the naive implementation, which omits the key components. The reason why TQC is introduced to our framework is to construct a target quantile which is similar to $F_{\mathrm{ens}}^{-1}$ . As a result, the calculated model risk tolerance, $\varepsilon$ , becomes more aligned with our intention, i.e., large $\varepsilon$ for high inconsistency and vice versa. However, the performance improvement of TQC without other factors ( $72.9\% - 209.6\%$ ) implies that TQC itself is not a negligible factor.
351
+
352
+ # 6 CONCLUSION
353
+
354
+ We proposed a model risk-sensitive offline RL framework, devising the critic-ensemble criterion to capture model risk effectively. To ensure the precision of model risk calculation, we employed Fourier feature networks, which accurately estimate both the mean and standard deviation—critical components for calculating the model risk. The framework ensures more reliable decision-making in risk-sensitive applications by accounting for potential model errors and striving to make the best decisions despite them. While our framework is limited to spectral risk measures and cannot accommodate those outside this class, such as CMV (Vadori et al., 2020) or $EV@R$ (Ni & Lai, 2022), the broad applicability of spectral risk measures covers many practical real-world problems. Our future work involves extending the framework to partially observable Markov decision processes, including embodied control and decision-making in mission-critical business applications.
355
+
356
+ # ACKNOWLEDGEMENT
357
+
358
+ This work was supported by Institute of Information & communications Technology Planning & Evaluation (IITP) grant funded by the Korea government (MSIT), (RS-2022-II220043 (2022-0-00043), Adaptive Personality for Intelligent Agents, RS-2022-II221045 (2022-0-01045), Self-directed multi-modal Intelligence for solving unknown, open domain problems, RS-2025-02218768, Accelerated Insight Reasoning via Continual Learning, and RS-2019-II190421, Artificial Intelligence Graduate School Program (Sungkyunkwan University)), the National Research Foundation of Korea (NRF) grant funded by the Korea government (MSIT) (No. RS-2023-00213118), IITP-ITRC (Information Technology Research Center) grant funded by the Korea government (MIST) (IITP-2025-RS-2024-00437633, 10%), IITP-ICT Creative Consilience Program grant funded by the Korea government (MSIT) (IITP-2025-RS-2020-II201821, 10%), and by Samsung Electronics.
359
+
360
+ # REFERENCES
361
+
362
+ Alexandre Adam, Mohamed Houkari, and Jean-Paul Laurent. Spectral risk measures and portfolio selection. Journal of Banking & Finance, 32(9):1870-1882, 2008.
363
+ Haghpanah Mohammad Amin. gym-mtsim. https://github.com/AminHP/gym-mtsim, 2021. Accessed: 2024-03-28, version 1.1.0.
364
+ Marc G Bellemare, Will Dabney, and Rémi Munos. A distributional perspective on reinforcement learning. In International conference on machine learning, pp. 449-458. PMLR, 2017.
365
+ Carole Bernard, Silvana M Pesenti, and Steven Vanduffel. Robust distortion risk measures. Mathematical Finance, 2023.
366
+ Julian Bernhard, Stefan Pollok, and Alois Knoll. Addressing inherent uncertainty: Risk-sensitive behavior generation for automated driving using distributional reinforcement learning. In 2019 IEEE Intelligent Vehicles Symposium (IV), pp. 2148-2155. IEEE, 2019.
367
+ Jose Blanchet and Karthyek Murthy. Quantifying distributional model risk via optimal transport. Mathematics of Operations Research, 44(2):565-600, 2019.
368
+ Thomas Breuer and Imre Csiszár. Measuring distribution model risk. Mathematical Finance, 26(2): 395-411, 2016.
369
+ Yinlam Chow, Mohammad Ghavamzadeh, Lucas Janson, and Marco Pavone. Risk-constrained reinforcement learning with percentile risk criteria. The Journal of Machine Learning Research, 18 (1):6070-6120, 2017.
370
+ Rama Cont, Romain Deguest, and Giacomo Scandolo. Robustness and sensitivity analysis of risk measurement procedures. Quantitative finance, 10(6):593-606, 2010.
371
+ Will Dabney, Georg Ostrovski, David Silver, and Rémi Munos. Implicit quantile networks for distributional reinforcement learning. In International conference on machine learning, pp. 1096-1105. PMLR, 2018a.
372
+ Will Dabney, Mark Rowland, Marc Bellemare, and Rémi Munos. Distributional reinforcement learning with quantile regression. In Proceedings of the AAAI conference on artificial intelligence, 2018b.
373
+ Yihan Du, Siwei Wang, and Longbo Huang. Provably efficient risk-sensitive reinforcement learning: Iterated cvar and worst path. arXiv preprint arXiv:2206.02678, 2022.
374
+ Paul Embrechts, Bin Wang, and Ruodu Wang. Aggregation-robustness and model uncertainty of regulatory risk measures. Finance and Stochastics, 19:763-790, 2015.
375
+ Scott Fujimoto and Shixiang Shane Gu. A minimalist approach to offline reinforcement learning. Advances in Neural Information Processing Systems, 34:20132-20145, 2021.
376
+ Scott Fujimoto, Herke Hoof, and David Meger. Addressing function approximation error in actor-critic methods. In International conference on machine learning, pp. 1587-1596. PMLR, 2018.
377
+
378
+ Scott Fujimoto, David Meger, and Doina Precup. Off-policy deep reinforcement learning without exploration. In International conference on machine learning, pp. 2052-2062. PMLR, 2019.
379
+ Paul Glasserman and Xingbo Xu. Robust risk measurement and model risk. Quantitative Finance, 14(1):29-58, 2014.
380
+ Ido Greenberg, Yinlam Chow, Mohammad Ghavamzadeh, and Shie Mannor. Efficient risk-averse reinforcement learning. Advances in Neural Information Processing Systems, 35:32639-32652, 2022.
381
+ Ronald A Howard and James E Matheson. Risk-sensitive markov decision processes. Management science, 18(7):356-369, 1972.
382
+ Sebastian Jaimungal, Silvana M Pesenti, Ye Sheng Wang, and Hariom Tatsat. Robust risk-aware reinforcement learning. SIAM Journal on Financial Mathematics, 13(1):213-226, 2022.
383
+ Dohyeong Kim and Songhwai Oh. Trc: Trust region conditional value at risk for safe reinforcement learning. IEEE Robotics and Automation Letters, 7(2):2621-2628, 2022.
384
+ Roger Koenker. *Quantile regression*, volume 38. Cambridge university press, 2005.
385
+ Steven Kou, Xianhua Peng, and Chris C Heyde. External risk measures and basel accords. Mathematics of Operations Research, 38(3):393-417, 2013.
386
+ Aviral Kumar, Aurick Zhou, George Tucker, and Sergey Levine. Conservative q-learning for offline reinforcement learning. Advances in Neural Information Processing Systems, 33:1179-1191, 2020.
387
+ Arsenii Kuznetsov, Pavel Shvechikov, Alexander Grishin, and Dmitry Vetrov. Controlling overestimation bias with truncated mixture of continuous distributional quantile critics. In International Conference on Machine Learning, pp. 5556-5566. PMLR, 2020.
388
+ Alexander Li and Deepak Pathak. Functional regularization for reinforcement learning via learned fourier features. Advances in Neural Information Processing Systems, 34:19046-19055, 2021.
389
+ Shiau Hong Lim and Ilyas Malik. Distributional reinforcement learning for risk-sensitive policies. Advances in Neural Information Processing Systems, 35:30977-30989, 2022.
390
+ MingYu Lu, Zachary Shahn, Daby Sow, Finale Doshi-Velez, and H Lehman Li-wei. Is deep reinforcement learning ready for practical applications in healthcare? a sensitivity analysis of dueldqn for hemodynamic management in sepsis patients. In AMIA Annual Symposium Proceedings, volume 2020, pp. 773. American Medical Informatics Association, 2020.
391
+ Yecheng Ma, Dinesh Jayaraman, and Osbert Bastani. Conservative offline distributional reinforcement learning. Advances in Neural Information Processing Systems, 34:19235-19247, 2021.
392
+ Oliver Mihatsch and Ralph Neuneier. Risk-sensitive reinforcement learning. Machine learning, 49: 267-290, 2002.
393
+ F.P. Miller, A.F. Vandome, and M.B. John. Inverse Transform Sampling. VDM Publishing, 2010. ISBN 9786131753268. URL https://books.google.co.kr/books?id=OftdXwAACAAJ
394
+ Xinyi Ni and Lifeng Lai. Risk-sensitive reinforcement learning via entropic-var optimization. In 2022 56th Asilomar Conference on Signals, Systems, and Computers, pp. 953-959. IEEE, 2022.
395
+ Silvana M Pesenti, Pietro Millossovich, and Andreas Tsanakas. Robustness regions for measures of risk aggregation. *Dependence Modeling*, 4(1):000010151520160020, 2016.
396
+ Nasim Rahaman, Aristide Baratin, Devansh Arpit, Felix Draxler, Min Lin, Fred Hamprecht, Yoshua Bengio, and Aaron Courville. On the spectral bias of neural networks. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 5301-5310. PMLR, 09-15 Jun 2019. URL https://proceedings.mlr.press/v97/rahaman19a.html.
397
+
398
+ Marc Rigter, Bruno Lacerda, and Nick Hawes. One risk to rule them all: A risk-sensitive perspective on model-based offline reinforcement learning. Advances in Neural Information Processing Systems, 36, 2024.
399
+ Makoto Sato, Hajime Kimura, and Shibenobu Kobayashi. Td algorithm for the variance of return and mean-variance reinforcement learning. Transactions of the Japanese Society for Artificial Intelligence, 16(3):353-362, 2001.
400
+ Peter Seres, Cheng Liu, and Erik-Jan van Kampen. Risk-sensitive distributional reinforcement learning for flight control. IFAC-PapersOnLine, 56(2):2013-2018, 2023.
401
+ Shital Shah, Debadeepta Dey, Chris Lovett, and Ashish Kapoor. Airsim: High-fidelity visual and physical simulation for autonomous vehicles. In Field and Service Robotics, 2017. URL https://arxiv.org/abs/1705.05065.
402
+ Aviv Tamar, Yonatan Glassner, and Shie Mannor. Optimizing the cvar via sampling. In Association for the Advancement of Artificial Intelligence, 2015.
403
+ Matthew Tancik, Pratul Srinivasan, Ben Mildenhall, Sara Fridovich-Keil, Nithin Raghavan, Utkarsh Singhal, Ravi Ramamoorthi, Jonathan Barron, and Ren Ng. Fourier features let networks learn high frequency functions in low dimensional domains. Advances in Neural Information Processing Systems, 33:7537-7547, 2020.
404
+ Denis Tarasov, Alexander Nikulin, Dmitry Akimov, Vladislav Kurenkov, and Sergey Kolesnikov. Corl: Research-oriented deep offline reinforcement learning library. Advances in Neural Information Processing Systems, 36, 2024.
405
+ Núria Armengol Urpi, Sebastian Curi, and Andreas Krause. Risk-averse offline reinforcement learning. arXiv preprint arXiv:2102.05371, 2021.
406
+ Nelson Vadori, Sumitra Ganesh, Prashant Reddy, and Manuela Veloso. Risk-sensitive reinforcement learning: a martingale approach to reward uncertainty. In Proceedings of the First ACM International Conference on AI in Finance, pp. 1-9, 2020.
407
+ Mingfu Wang and Hyejin Ku. Risk-sensitive policies for portfolio management. Expert Systems with Applications, 198:116807, 2022.
408
+ Shaun S. Wang. A universal framework for pricing financial and insurance risks. *ASTIN Bulletin*, 32(2):213-234, 2002. doi: 10.2143/AST.32.2.1027.
409
+ David Williams. Probability with martingales. Cambridge university press, 1991.
410
+ Chengyang Ying, Xinning Zhou, Dong Yan, and Jun Zhu. Towards safe reinforcement learning via constraining conditional value at risk. In ICML 2021 Workshop on Adversarial Machine Learning, 2021.
411
+ Gwangpyo Yoo, Jinwoo Park, and Honguk Woo. Risk-conditioned reinforcement learning: A generalized approach for adapting to varying risk measures. In Proceedings of the AAAI Conference on Artificial Intelligence, pp. 16513-16521, 2024.
412
+ Yifan Zhang, Peilin Zhao, Qingyao Wu, Bin Li, Junzhou Huang, and Mingkui Tan. Cost-sensitive portfolio selection via deep reinforcement learning. IEEE Transactions on Knowledge and Data Engineering, 34(1):236-248, 2020.
413
+
414
+ # APPENDIX
415
+
416
+ # A ADDITIONAL EXPERIMENTS
417
+
418
+ # A.1 D4RL
419
+
420
+ Since D4RL is a standard benchmark for offline RL training, we report the D4RL scores here. We trained MR-IQN using the Wang risk measure with a parameter of $-0.5$ . MR-IQN shows comparable performance (68.59) to the state of the art risk-sensitive offline RL algorithm 1R2R (67.35-67.78) in overall scores and outperforms it when evaluating the average without random dataset (85.44), which is a metric often used in behavior clone based offline RL algorithms (Wang et al., 2023; Lu et al., 2023).
421
+
422
+ Table A: D4RL Mujoco-v2 results (normalized score).
423
+
424
+ <table><tr><td></td><td>Environment</td><td>MR-IQN Wang-0.5</td><td>1R2RWang</td><td>1R2RCV@R</td><td>ORAAC</td><td>CODAC</td><td>TD3+BC</td></tr><tr><td rowspan="3">Random</td><td>HalfCheetah</td><td>20.48 ± 0.91</td><td>35.5</td><td>36.9</td><td>22.4</td><td>31.0</td><td>11.0</td></tr><tr><td>Hopper</td><td>26.47 ± 10.6</td><td>31.8</td><td>30.9</td><td>10.9</td><td>9.2</td><td>8.5</td></tr><tr><td>Walker2d</td><td>7.15 ± 1.43</td><td>8.1</td><td>7.6</td><td>2.4</td><td>12.8</td><td>1.6</td></tr><tr><td rowspan="3">Medium</td><td>HalfCheetah</td><td>61.14 ± 0.75</td><td>75.5</td><td>74.5</td><td>38.5</td><td>62.8</td><td>48.3</td></tr><tr><td>Hopper</td><td>98.84 ± 5.87</td><td>64.6</td><td>80.2</td><td>29.6</td><td>63.9</td><td>59.3</td></tr><tr><td>Walker2d</td><td>89.05 ± 1.24</td><td>83.4</td><td>63.9</td><td>45.5</td><td>84.0</td><td>83.7</td></tr><tr><td rowspan="3">Medium Replay</td><td>HalfCheetah</td><td>46.36 ± 2.19</td><td>65.6</td><td>65.7</td><td>39.3</td><td>53.4</td><td>44.6</td></tr><tr><td>Hopper</td><td>95.08 ± 7.14</td><td>93.2</td><td>92.9</td><td>22.6</td><td>68.8</td><td>60.94</td></tr><tr><td>Walker2d</td><td>81.07 ± 13.93</td><td>88.4</td><td>92.2</td><td>11.1</td><td>73.9</td><td>81.8</td></tr><tr><td rowspan="3">Medium Expert</td><td>HalfCheetah</td><td>78.54 ± 12.00</td><td>94.5</td><td>96.0</td><td>24.4</td><td>76.7</td><td>90.7</td></tr><tr><td>Hopper</td><td>105.62 ± 3.60</td><td>89.6</td><td>81.6</td><td>4.1</td><td>87.6</td><td>98.0</td></tr><tr><td>Walker2d</td><td>113.25 ± 0.36</td><td>78.1</td><td>90.9</td><td>42.8</td><td>112.0</td><td>110.1</td></tr><tr><td colspan="2">Average</td><td>68.59</td><td>67.35</td><td>67.78</td><td>31.83</td><td>61.34</td><td>58.86</td></tr><tr><td colspan="2">Average without Random</td><td>85.44</td><td>81.43</td><td>81.99</td><td>36.08</td><td>75.90</td><td>76.13</td></tr></table>
425
+
426
+ # A.2 BEHAVIOR ANALYSIS
427
+
428
+ ![](images/5337f8f988be8564d0972b45f786e2cdc24ba48cbee679b1fea057c7567855b3.jpg)
429
+ (a) CODAC High
430
+
431
+ ![](images/527f31f3c8f6ae5516114bf6fbf324f638e1e8d784217f498e0680a0f753bb28.jpg)
432
+ (b) IQN TD3+BC High
433
+
434
+ ![](images/8da4f30da70f769cead3dc749f56f5d0ceed4e243abf51006833d8ba2c5966eb.jpg)
435
+ (c) ORAAC High
436
+
437
+ ![](images/eebe6eccd0a917fdd8f896c0593f3d05e4978580f9e8a1f2a1273d658b369f32.jpg)
438
+ (d) MR-IQN (ours) High
439
+
440
+ ![](images/ef7794fe662567b3fe48433ac1efc345a264d5738a0e4de64489d77f1a864857.jpg)
441
+ (e) CODAC Low
442
+
443
+ ![](images/ec1097d84e58f9dc46c82d9db0f4aeb222684c074a68d42a3e79398f586188b9.jpg)
444
+ (f) IQN TD3+BCLow
445
+
446
+ ![](images/2c3153cfe982f25a965a77d12a7cbf8baf91b9624a74a400aac573a5d5f83e17.jpg)
447
+ (g) ORAAC Low
448
+
449
+ ![](images/e6e26d0548f0975cbdfd001c18ade85b3a2f2e0687e16c5d48f2bd7ccd229650.jpg)
450
+ (h) MR-IQN (ours) Low
451
+ Figure A: Risky point mass environment. In the red zone, the agent gets a random reward. Top (a-d) figures depict the behavior of the policies when the variance of reward is high. Bottom (e-h) figures depict the behavior of the policies when the variance of reward is low. The blue lines are the trajectories of policies.
452
+
453
+ To analyze the behavior of risk-sensitive offline RL algorithms, we compare the algorithms in a modified risky point mass environment (Ma et al., 2021). The agent is trained to reach the goal (green points in Figure A). In this environment, there is a red zone, where the agent gets normal white noise in the reward signal in 0.1 probability. We compare two situations: when the variance of the noise signal is high (100) and low (5). Figure A depicts the results.
454
+
455
+ In this environment, MR-IQN (ours) shows the most risk-averse behavior, avoiding the red zone as much as possible, as desired. IQN TD3+BC sometimes fails to avoid the red zone, especially when the variance of the reward signal is low. This difference highlights the conservatism of model risk-sensitive offline RL compared to conventional risk-sensitive offline RL. In contrast, both CODAC and ORAAC consistently fail to avoid the red zone. CODAC's failure is due to the key assumption of strict monotonicity of quantile function (Ma et al., 2021), which does not hold in this environment, coupled with hyperparameter sensitivity inherited from CQL (Tarasov et al., 2024). ORAAC struggles because the strong constraints imposed by the behavior policy make it difficult for the policy to stitch together the desired trajectory.
456
+
457
+ # A.3 NUMBER OF CRITICS
458
+
459
+ ![](images/3b2495bbd609954c0903f25f42647c915d09fc81fc748e172ace3a942e991315.jpg)
460
+ Figure B: Effect of the number of critics (i.e., ensemble size). The environment is Forex and the risk measure is Wang(-0.5).
461
+
462
+ We also investigate how the number of critics affects performance. Figure B shows the results. As demonstrated in TQC Kuznetsov et al. (2020), the performance improvement begins to saturate between 5 and 7 critics for both the mean and risk performance. The observed performance degradation between 3 and 5 critics appears to be an illusion caused by the presence of outliers, as suggested by the large gaps in the error bars.
463
+
464
+ # A.4 TAIL SCORE ANALYSIS
465
+
466
+ Table B: ${CV}@R\left( {{10}\% }\right)$ Performance in finance scenarios
467
+
468
+ <table><tr><td></td><td>Target Risk Measure</td><td>CODAC</td><td>ORAAC</td><td>IQN-TD3+BC</td><td>MR-IQN (ours)</td></tr><tr><td rowspan="3">Stock Env.</td><td>Wang(-0.5)</td><td>3.00 ± 0.91</td><td>7.92 ± 0.86</td><td>8.32 ± 0.71</td><td>10.14 ± 0.55</td></tr><tr><td>CV@R(50%)</td><td>2.71 ± 1.51</td><td>7.85 ± 0.82</td><td>8.33 ± 0.67</td><td>10.06 ± 0.53</td></tr><tr><td>CV@R(10%)</td><td>3.98 ± 0.86</td><td>7.91 ± 0.74</td><td>8.68 ± 0.43</td><td>10.35 ± 0.52</td></tr><tr><td rowspan="3">Forex Env.</td><td>Wang(-0.5)</td><td>-51.27 ± 22.79</td><td>-96.59 ± 1.04</td><td>-27.91 ± 48.02</td><td>9.44 ± 59.11</td></tr><tr><td>CV@R(50%)</td><td>-48.72 ± 25.25</td><td>-100 ± 0.00</td><td>-11.47 ± 28.97</td><td>25.71 ± 32.09</td></tr><tr><td>CV@R(10%)</td><td>-4.35 ± 2.06</td><td>-47.54 ± 20.94</td><td>0.25 ± 34.37</td><td>31.40 ± 36.02</td></tr></table>
469
+
470
+ We further investigated the $CV@R(10\%)$ (negative) risk in financial scenarios. The results are presented in Table B In Stock environment, only CODAC demonstrates a significant improvement in $CV@R(10\%)$ risk, whereas the performance of other algorithms appears to have reached saturation.
471
+
472
+ In Forex environment, all algorithms exhibit consistent behavior, with $CV@R(10\%)$ optimization yielding the highest $CV@R(10\%)$ performance, followed by $CV@R(50\%)$ and $Wang(-0.5)$ optimization criteria, respectively, except for ORRAC, which does not show meaningful $CV@R(10\%)$ performance in either $CV@R(50\%)$ or $Wang(-0.5)$ risks.
473
+
474
+ ![](images/2f88e18b7ba5c723829d51943dbb0fbbc0407b5e0007a15e49ce2b672f41836e.jpg)
475
+ (a) Quantile of risk measures
476
+ Figure C: Visualizing risk measures
477
+
478
+ ![](images/4b8210d3c6c0cb36710c1ae9b3d4bf4d7d20ca90ebc06dec739027a9c07bc022.jpg)
479
+ (b) Projections of risk measures
480
+
481
+ To examine this phenomenon, we investigate how risk measures are distinguishable. We leverage the Wasserstein-2 distance $(D_{W;2})$ to measure distinguishability. The $D_{W;2}$ between $CV@R(50\%)$ and $CV@R(10\%)$ is approximately 0.23, and $D_{W;2}$ between $Wang(-0.5)$ and $CV@R(10\%)$ is approximately 0.40. Therefore, $CV@R(50\%)$ is a more similar risk measure with $CV@R(10\%)$ compared to $Wang(-0.5)$ . This similarity explains the consistent behavior of algorithms. Figure $\boxed{C}$ visualizes the risk measures. Figure $\boxed{C}$ (a) describes the quantile function of risk measures, and Figure $\boxed{C}$ (b) describes the vector projection of risk measures via hat function coefficient by finite element method approximation. We can verify that the previous argument.
482
+
483
+ Note that spectral risk measure is defined as (Eq.3),
484
+
485
+ $$
486
+ H _ {\phi} (Z) = - \int_ {0} ^ {1} F _ {Z} ^ {- 1} (p) \phi (p) d p.
487
+ $$
488
+
489
+ The equation is governed by $\phi$ , and $\phi$ is a probability density function defined on $[0,1]$ . Therefore, it is natural to use Wasserstein distance to measure distinguishability. Meanwhile, the model risk calculates the risk of some function whose $D_{W;2}$ distance between reference distribution is constrained by $\sqrt{\varepsilon}$ as defined in Eq.(9). Therefore, it shows similar behavior to other algorithms.
490
+
491
+ # B EXPERIMENT DETAILS
492
+
493
+ # B.1 DETAILED EXPLANATION OF BASELINES
494
+
495
+ ORAAC policy $\pi_{\mathrm{oraac}}$ is as follows:
496
+
497
+ $$
498
+ \pi_ {\text {o r a a c}} = \pi_ {\mathrm {b c}} (s) + \kappa \pi_ {\text {r i s k}} (s, \pi_ {\mathrm {b c}} (s)) \tag {A}
499
+ $$
500
+
501
+ where $\pi_{\mathrm{bc}}$ is behavior cloning policy implemented using VAE, $\pi_{\mathrm{risk}}$ is the risk-sensitive perturbation policy, and $\kappa \geq 0$ is the modification parameter. We set $\kappa = 0.25$ following Urpf's base implementation.
502
+
503
+ CODAC's critic objective is as follows
504
+
505
+ $$
506
+ \begin{array}{l} Z^{*}_{\text{CODAC}} = \arg \min_{Z}\max_{\pi}\mathcal{L}_{\text{crit.}}(\theta) + \\ \lambda_ {p \sim U [ 0, 1 ]} \underbrace {\left(\underset {a \sim \mathcal {D}} {\mathbb {E}} \left[ F _ {Z} ^ {- 1} (p ; s , a , \theta) \right] - \log \underset {a \sim \pi} {\mathbb {E}} \left[ \exp \left(F _ {Z} ^ {- 1} (p ; s , a , \theta)\right) \right]\right)} _ {\text {K L - p o t e n t i a l b y D o n s k e r - V a r a d h a n R e p r e s e n t a t i o n}}. \tag {B} \\ \end{array}
507
+ $$
508
+
509
+ Table C: Performance of ORAAC and CODAC with/without observation normalization.
510
+
511
+ <table><tr><td colspan="2">Target Risk Measure</td><td colspan="2">CV@R (50%)</td><td colspan="2">Wang (-0.5)</td></tr><tr><td colspan="6">Without Observation Normalization</td></tr><tr><td>Env.</td><td>Algorithm</td><td>Mean</td><td>-Hφ(Zπ)</td><td>Mean</td><td>-Hφ(Zπ)</td></tr><tr><td rowspan="2">Forex</td><td>CODAC</td><td>-0.01 ± 0.04</td><td>-0.03 ± 0.09</td><td>3.63 ± 8.12</td><td>-1.74 ± 3.52</td></tr><tr><td>ORAAC</td><td>302.37 ± 19.27</td><td>-99.90 ± 0.01</td><td>304.89 ± 38.05</td><td>70.47 ± 17.22</td></tr><tr><td rowspan="2">Stock</td><td>CODAC</td><td>6.67 ± 1.02</td><td>-2.15 ± 0.75</td><td>5.89 ± 1.64</td><td>0.48 ± 1.40</td></tr><tr><td>ORAAC</td><td>68.6 ± 13.0</td><td>24.0 ± 3.59</td><td>73.43 ± 3.43</td><td>47.68 ± 2.21</td></tr><tr><td rowspan="2">Airsim</td><td>CODAC</td><td>-4190.24 ± 3073.29</td><td>-7460.17 ± 5227.62</td><td>6.67 ± 1.02</td><td>-2.15 ± 0.75</td></tr><tr><td>ORAAC</td><td>-149.58 ± 64.53</td><td>-431.80 ± 217.92</td><td>68.6 ± 13.0</td><td>24.0 ± 3.59</td></tr><tr><td colspan="6">With Observation Normalization</td></tr><tr><td rowspan="2">Forex</td><td>CODAC</td><td>1577.47 ± 41.52</td><td>249.53 ± 28.33</td><td>1591.76 ± 8.12</td><td>892.34 ± 54.06</td></tr><tr><td>ORAAC</td><td>0.00 ± 0.00</td><td>0.00 ± 0.00</td><td>0.00 ± 0.00</td><td>0.00 ± 0.00</td></tr><tr><td rowspan="2">Stock</td><td>CODAC</td><td>37.67 ± 7.54</td><td>13.98 ± 2.34</td><td>33.43 ± 7.01</td><td>21.89 ± 4.65</td></tr><tr><td>ORAAC</td><td>78.48 ± 3.27</td><td>26.07 ± 2.25</td><td>78.57 ± 6.09</td><td>50.97 ± 3.98</td></tr><tr><td rowspan="2">Airsim</td><td>CODAC</td><td>43.56 ± 89.45</td><td>-425.72 ± 97.73</td><td>-2.40 ± 17.59</td><td>-301.23 ± 109.30</td></tr><tr><td>ORAAC</td><td>92.37 ± 40.51</td><td>-88.37 ± 4.20</td><td>156.22 ± 32.09</td><td>51.73 ± 27.53</td></tr><tr><td colspan="6">Behavior Policy</td></tr><tr><td>Forex</td><td></td><td>191.42</td><td>-99.90</td><td>-</td><td>26.91</td></tr><tr><td>Stock</td><td></td><td>1.072</td><td>-11.67</td><td>-</td><td>-6.85</td></tr><tr><td>Airsim</td><td></td><td>378.93</td><td>78.57</td><td>-</td><td>188.29</td></tr></table>
512
+
513
+ Here $\mathcal{L}_{\mathrm{crit.}}$ is the quantile regression loss with respect to distributional Bellman residuals defined in Eq.(4), and $\lambda > 0$ is constant or lagrangian coefficient. Note that the right most part is equal to learning f-GAN discriminator (Nowozin et al., 2016) with KL-divergence (Nguyen et al., 2010). Therefore, CODAC (and CQL) can be understood as $\mathrm{GAN} + \mathrm{RL}$ .
514
+
515
+ This leads the optimal actor $\pi_{\mathrm{codac}}$ is defined as
516
+
517
+ $$
518
+ \pi_ {\mathrm {c o d a c}} = \underset {\pi} {\arg \min } H _ {\phi} \left(Z _ {\mathrm {C O D A C}} ^ {*}\right) = \underset {\pi} {\arg \min } H _ {\phi} \left(Z ^ {\pi} (s, a)\right), \text {c o n s t r a i n e d} D _ {K L} \left(\pi_ {\mathrm {c o d a c}} \| \pi_ {D}\right) < \epsilon . \tag {C}
519
+ $$
520
+
521
+ for some $\epsilon > 0$ and behavior policy $\pi_{\mathcal{D}}$ in Eq.(7). See Eq.(8) as well.
522
+
523
+ 1R2R (Rigter et al., 2024) is a model-based risk-sensitive offline RL algorithm based on the dual formula for coherent risk measure as Eq. (D).
524
+
525
+ $$
526
+ H _ {\phi} \left(Z ^ {\pi} (s, a)\right) = - \inf \mathbb {E} _ {\mathbb {Q} \in \mathcal {T} (\phi} \left[ Z ^ {\pi} (s, a) \right], \tag {D}
527
+ $$
528
+
529
+ where $\mathcal{T}$ is a subset of probability measure which is absolutely continuous with respect to occupation measure of policy, $\rho^{\pi}$ . The constrains of $\mathcal{T}$ is $\phi$ dependent. For example, for $CV@R_{\alpha}$ risk measure, $\mathcal{T} = \{\mathbb{P} \ll \rho^{\pi} | \frac{d\mathbb{P}}{d\rho^{\pi}} < \frac{1}{\alpha}\}$ where $\ll$ denotes absolute continuity and $\frac{d\mathbb{P}}{d\rho^{\pi}}$ denotes the Radon-Nikodym derivative between $\mathbb{P}$ and $\rho^{\pi}$ .
530
+
531
+ To calculate risk based on Eq.(D), 1R2R samples next states, $\{s_{t + 1}^{(i)}\}_{i = 0}^{N}$ given $s_t,a_t$ , with Gaussian ensemble model. Then, construct empirical quantile function based on
532
+
533
+ $$
534
+ F _ {Z \pi} ^ {- 1} \left(p _ {i}; s, a\right) \approx R \left(s _ {t}, a _ {t}\right) + \gamma V ^ {\pi} \left(s _ {t + 1} ^ {(i)}\right) \tag {E}
535
+ $$
536
+
537
+ where $V^{\pi}(s_{t + 1}^{(1)}) \leq V^{\pi}(s_{t + 1}^{(2)}) \leq \dots \leq V^{\pi}(s_{t + 1}^{(N)})$ and $p_1 = 0, p_2 = \frac{1}{N - 1}, \ldots, p_N = 1$ .
538
+
539
+ According to the risk measured by approximated quantile function in Eq.(E), the synthetic data $(s_t, a_t, R(s, a), s_{t+1})$ is rejected or accepted; i.e., $s_{t+1}$ is resampled according to $\phi$ . Therefore, 1R2R minimizes dynamic risk (time-dependent risk) instead of static risk (time-independent risk). However, 1R2R requires terminal function given observation a priori (Rigter et al. 2023). Therefore, we could not conduct the main experiments with 1R2R.
540
+
541
+ ORAAC and CODAC Tuning: To improve the performance of the baselines (ORAAC and CODAC), we also apply observation normalization. The following tables present baseline performance both with and without observation normalization, and in the main text, we report the better score between them.
542
+
543
+ # B.2 ENVIRONMENT DETAILS
544
+
545
+ Finance. The trading environment is implemented using MT-sim (Amin, 2021). The data ranges from February 3rd to December 1st, 2023. In the Forex environment, the agent trades 'EURUSD' and 'USDJPY' with a leverage of 100, while in the Stock environment, it trades 'QQQ', 'SPY', 'IWM', and 'IYY' with a leverage of 10. The forex data is collected from MetaTrader 4 (Sajedi, 2024), and the stock data from Yahoo Finance (Perlin, 2023).
546
+
547
+ The environment terminates when the agent's assets drop to $0. To increase randomness, trades are initiated at a random interval, and the agent aims to maximize return within this interval. Observations include balance, equity, margin, orders, and features. The features consist of 15-day accumulated price and volume data, including open, close, low, and high prices. For numerical stability, the data is preprocessed using the arcsinh function, achieving logarithmic scaling. Action represents logits for buying, selling, or holding each symbol. The reward is the benefit ratio relative to the initial balance, fixed at$ 50,000.
548
+
549
+ Self-driving. The self-driving environment is implemented using Airsim (Shah et al., 2017). The agent's goal is to pilot a quadcopter drone to the target while avoiding static obstacles with height constraints. Random walk noise distorts the agent's actions to simulate wind conditions, introducing randomness. The environment ends when the drone collides with an object or reaches the goal.
550
+
551
+ The observations provided to the agent include lidar data, previous wind conditions, kinematic information (e.g., orientation, linear velocity), and the goal position. The lidar data has a fixed array shape as it is projected onto a grid in the spherical coordinate system. For each grid cell, the minimal value of radii is taken, capturing the closest detected object in that region. The agent's actions represent the pulse width modification (PWM) values of the motors which corresponds to the RPM of motors. The reward is determined by the cosine similarity between the drone's linear velocity and the goal position. Further, the agent gets 100 reward if it reaches the goal and $-100$ if it collides. Further, the agent receives alive reward of 0.01 when the agent does not collide with anything. To avoid trivial solution, the agent receives height constrain reward when if flies to high; $-\max(\text{current height} - \text{height constrain}, 0)$ .
552
+
553
+ ![](images/46b6676748d4c1c143f6488ddcf710ad242dc63e052fb87d5ef07f0d4016f5d2.jpg)
554
+ (a) Overview of map
555
+ Figure D: Airsim environment
556
+
557
+ ![](images/4c8a2bd630b1ccd55bd27547a254cc6a04496e233c32d3798225d8abd130c451.jpg)
558
+ (b) Example view of Airsim
559
+
560
+ # B.3 HYPERPARAMETER DETAILS
561
+
562
+ Table D lists up the detailed hyperparameters of the experiments.
563
+
564
+ Table D: Hyperparameter settings
565
+
566
+ <table><tr><td>Hyperparameter (Common)</td><td>Finance</td><td>Self-Driving</td><td>D4RL</td></tr><tr><td>learning rate</td><td colspan="3">3 × 10-4</td></tr><tr><td>optimizer</td><td colspan="3">Adam (β1=0.9,β2=0.999)</td></tr><tr><td>discount factor (γ)</td><td>0.99</td><td>0.96</td><td>0.99</td></tr><tr><td>batch size</td><td></td><td>256</td><td></td></tr><tr><td>layer normalization</td><td></td><td>True</td><td></td></tr><tr><td>num. critics</td><td>5</td><td>5</td><td>3</td></tr><tr><td>num. quantiles for critic training</td><td></td><td>16</td><td></td></tr><tr><td>soft update ratio (τ)</td><td></td><td>5 × 10-3</td><td></td></tr><tr><td>IQN num. cosine (Fourier feature dim for p)</td><td></td><td>64</td><td></td></tr><tr><td>IQN embedding dim.</td><td></td><td>64</td><td></td></tr><tr><td>Model</td><td colspan="3">MR(ours) &amp; IQN-TD3+BC</td></tr><tr><td>q-learning scale (λq. learn)</td><td>2.5</td><td>1.0</td><td>5.0</td></tr><tr><td>Fourier feature init. (σff)</td><td></td><td>1 × 10-3</td><td></td></tr><tr><td>Fourier feature dimensions for s, a</td><td></td><td>250</td><td></td></tr><tr><td>TQC drop out per critic</td><td></td><td>3</td><td></td></tr><tr><td>num. quantiles for actor train (N)</td><td></td><td>100</td><td></td></tr><tr><td>policy delay</td><td></td><td>2</td><td></td></tr><tr><td>Model</td><td colspan="3">ORAAC</td></tr><tr><td>num. actions for inference</td><td></td><td>100</td><td></td></tr><tr><td>action distortion scale (κ)</td><td></td><td>0.25</td><td></td></tr><tr><td>VAE KL-divergence coef. (β)</td><td></td><td>0.5</td><td></td></tr><tr><td>Model</td><td colspan="3">CODAC</td></tr><tr><td>KL-Lagrangian</td><td></td><td>True</td><td></td></tr><tr><td>KL-Lagrangian target</td><td></td><td>10</td><td></td></tr><tr><td>entropy coef</td><td></td><td>0.2</td><td></td></tr></table>
567
+
568
+ # C MINOR COMMENTS ABOUT TERMINOLOGY
569
+
570
+ In the actuarial science literature, conditional value at risk $(CV@R)$ , tail value at risk $(TV@R)$ , expected shortfall $(ES)$ , and conditional tail expectation $(CTE)$ are more strictly distinguished. However, in the main text, we use $CV@R$ to mean $TV@R$ , following the ML literature. These terms must be distinguished when the quantile function of a random variable is discontinuous at the confidence level. Because the worst-case quantile function for calculating model risk might also be discontinuous at that level, we acknowledge that our usage actually refers to $TV@R$ rather than $CV@R$ , though we keep using $CV@R$ for consistency with previous ML literature. For details on their differences, see Zhou et al. (2015).
571
+
572
+ # REFERENCES
573
+
574
+ Haghpanah Mohammad Amin. gym-mtsim. https://github.com/AminHP/gym-mtsim, 2021. Accessed: 2024-03-28, version 1.1.0.
575
+ Arsenii Kuznetsov, Pavel Shvechikov, Alexander Grishin, and Dmitry Vetrov. Controlling overestimation bias with truncated mixture of continuous distributional quantile critics. In International Conference on Machine Learning, pp. 5556-5566. PMLR, 2020.
576
+ Cheng Lu, Huayu Chen, Jianfei Chen, Hang Su, Chongxuan Li, and Jun Zhu. Contrastive energy prediction for exact energy-guided diffusion sampling in offline reinforcement learning. In International Conference on Machine Learning, pp. 22825-22855. PMLR, 2023.
577
+ Yecheng Ma, Dinesh Jayaraman, and Osbert Bastani. Conservative offline distributional reinforcement learning. Advances in neural information processing systems, 34:19235-19247, 2021.
578
+ XuanLong Nguyen, Martin J Wainwright, and Michael I Jordan. Estimating divergence functionals and the likelihood ratio by convex risk minimization. IEEE Transactions on Information Theory, 56(11):5847-5861, 2010.
579
+ Sebastian Nowozin, Botond Cseke, and Ryota Tomioka. f-gan: Training generative neural samplers using variational divergence minimization. Advances in Neural Information Processing Systems, 29, 2016.
580
+ Marcelo Perlin. Yahoo finance, 2023. URL https://github.com/ropensci/yfR. Python package version 0.2.38.
581
+ Marc Rigter, Bruno Lacerda, and Nick Hawes. One risk to rule them all: official code, 2023. URL https://github.com/marc-rigter/1R2R.
582
+ Marc Rigter, Bruno Lacerda, and Nick Hawes. One risk to rule them all: A risk-sensitive perspective on model-based offline reinforcement learning. Advances in Neural Information Processing Systems, 36, 2024.
583
+ Reza Sajedi. Meta trader5, 2024. URL https://www.metatrader5.com/en/trading-platform. Python package version 5.0.4200.
584
+ Shital Shah, Debadeepta Dey, Chris Lovett, and Ashish Kapoor. Airsim: High-fidelity visual and physical simulation for autonomous vehicles. In Field and Service Robotics, 2017. URL https://arxiv.org/abs/1705.05065.
585
+ Denis Tarasov, Alexander Nikulin, Dmitry Akimov, Vladislav Kurenkov, and Sergey Kolesnikov. Corl: Research-oriented deep offline reinforcement learning library. Advances in Neural Information Processing Systems, 36, 2024.
586
+ Zhendong Wang, Jonathan J Hunt, and Mingyuan Zhou. Diffusion policies as an expressive policy class for offline reinforcement learning. International Conference on Learning Representations, 2023.
587
+ Xianhua Zhou, Huadong Zhang, and Qingquan Fan. Optimal limited stop-loss reinsurance under var, tvar, and cte risk measures. Mathematical Problems in Engineering, 2015(1):143739, 2015.
2025/Model Risk-sensitive Offline Reinforcement Learning/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d97cdb68fbc6455ea23587e7f1ff2ee313bea968a16ede3ec0b7d5980db0871a
3
+ size 1185584
2025/Model Risk-sensitive Offline Reinforcement Learning/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model merging with SVD to tie the Knots/59dbc8c1-c842-44a6-bd97-3df9c9da9c50_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model merging with SVD to tie the Knots/59dbc8c1-c842-44a6-bd97-3df9c9da9c50_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model merging with SVD to tie the Knots/59dbc8c1-c842-44a6-bd97-3df9c9da9c50_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff35bacf02aa7dfa99cb2ed6e1cc1851cf25ad3eae2caa5b90778f8e183a1c61
3
+ size 12794591
2025/Model merging with SVD to tie the Knots/full.md ADDED
@@ -0,0 +1,362 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MODEL MERGING WITH SVD TO TIE THE KNOTS
2
+
3
+ George Stoica $^{1*}$ Pratik Ramesh $^{1*}$ Boglarka Ecsedi $^{1}$ Leshem Choshen $^{2}$ Judy Hoffman $^{1}$
4
+
5
+ <sup>1</sup>Georgia Tech 2IBM Research, MIT
6
+
7
+ Correspondence emails: {gstoica3, pramesh39}@gatech.edu
8
+
9
+ # ABSTRACT
10
+
11
+ Recent model merging methods demonstrate that the parameters of fully-finetuned models specializing in distinct tasks can be combined into one model capable of solving all tasks without retraining. Yet, this success does not transfer well when merging LoRA finetuned models. We study this phenomenon and observe that the weights of LoRA finetuned models showcase a lower degree of alignment compared to their fully-finetuned counterparts. We hypothesize that improving this alignment is key to obtaining better LoRA model merges, and propose KnOTS to address this problem. KnOTS uses the SVD to jointly transform the weights of different LoRA models into an aligned space, where existing merging methods can be applied. In addition, we introduce a new benchmark that explicitly evaluates whether merged models are general models. Notably, KnOTS consistently improves LoRA merging by up to $4.3\%$ across several vision and language benchmarks, including our new setting. We release our code at: https://github.com/gstoica27/KnOTS.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Model merging (Garipov et al., 2018; Draxler et al., 2018; Wortzman et al., 2022a; Choshen et al., 2022) is an increasingly popular technique that can surprisingly create a single general model by combining weights of task-specific models. This allows creating multi-task models by accumulating skills (Stoica et al., 2024; Ilharco et al., 2023; Yadav et al., 2023; Ortiz-Jimenez et al., 2024), a desirable trait in various scenarios such as recycling models shared on hubs (Choshen et al., 2023), patching model weaknesses (Cai et al., 2023; Zaman et al., 2023) and collaborating to improve models (Don-Yehiya et al., 2023).
16
+
17
+ Model merging approaches have found substantial success when merging models that are full-rank finetuned (i.e., all parameters are tuned with maximum rank, we denote it as FFT) to solve distinct tasks from the same pretrained checkpoint, into one model capable of solving all (Ilharco et al., 2023; Matena & Raffel, 2022; Yadav et al., 2023; Ortiz-Jimenez et al., 2024; Wortsman et al., 2022b). In many cases, performing a linear sum over the finetuned model weights without further training, can achieve strong performance(Wortsman et al., 2022b; Ilharco et al., 2023; Yadav et al., 2023).
18
+
19
+ Interestingly, existing merging approaches do not always transfer well when applied to models finetuned with parameter efficient finetuning (PEFT) strategies (Tang et al., 2024), such as the extremely popular Low-Rank Adaptation (LoRA) (Hu et al., 2022). We probe into this phenomenon ( $\S 3$ ) by comparing the pairwise centered kernel alignment (CKA) (Kornblith et al., 2019) between FFT models and their equivalent LoRA finetuned counterparts. While we observe that FFT models have very high CKA—indicating that the finetuning-updates they apply to the respective pretrained weights (we call these "task-updates") have high alignment, LoRA models exhibit considerably lower CKA. This suggests that the task-updates between different LoRA models process inputs through misaligned subspaces. We hypothesize that aligning these task-updates is crucial to strengthening model merging operations, and propose a data and gradient free approach to do this.
20
+
21
+ Our method, termed KnOTS (Knowledge Orientation Through SVD), builds upon singular value decomposition (SVD) to transform the task-updates of different LoRA models into a shared space, where merging methods can be applied (Fig. 1). Notably, KnOTS is simple and readily slots into
22
+
23
+ ![](images/f2039e0117cdc7626bc272c6237adfa37a6b76bced6fdbb9d730b24371e0f75a.jpg)
24
+ Figure 1: The KnOTS method for merging "task-updates" from an arbitrary layer- $j$ of different models. Each weight-update is denoted by $\Delta W_{j}^{(i)}$ , where $i$ is the task-update of the $i^{th}$ model. KnOTS first concatenates the updates together and applies the SVD, to obtain $U, \Sigma$ and a set of concatenated $V^{(i)}$ matrices that each correspond to a particular task. KnOTS then merges the $V$ 's into a single $V^{(merged)}$ matrix. Finally, KnOTS multiplies the $U, \Sigma$ and $V^{(merged)}$ to obtain a merged-update to be added to the pretrained model.
25
+
26
+ many existing merging methods. KnOTS first concatenates all the task-updates for a layer, and then decomposes the result with the SVD to obtain: $U\Sigma V^T$ (see §4). We observe that in this construction, $U$ consists of vectors that form the orthonormal basis for a shared representation space between all task updates, the non-negative diagonal values in $\Sigma$ represent the scale associated with each basis vector in the aligned space, and $V^T$ is a set of concatenated matrices (one for each task-update) that are all aligned to the common $U$ . KnOTS then applies existing merging methods, such as those of Ilharco et al. (2023); Yadav et al. (2023), to the $V^T$ task-matrices and obtains a $V^{(merged)}$ matrix that is still aligned to the common $U$ . After merging, KnOTS constructs the merged model by multiplying the resulting $U\Sigma V^{(merged)}$ into one matrix at every layer, and adding it to the corresponding parameter matrix from the pretrained model. We validate KnOTS on several model merging settings spanning vision and natural language, demonstrating that KnOTS strengthens existing model merging approaches by up to 4.3% (§ 5).
27
+
28
+ In addition, we introduce a new variant of the popular eight-vision task merging benchmark originally proposed by Ilharco et al. (2023), aimed at explicitly evaluating a merging method's ability to create general models. Specifically, we transform the benchmark to a "joint-evaluation" setting. This consists of evaluating the performance of arbitrary merged models on the union of all inputs and labels across all eight datasets, without providing the model with any information regarding the dataset a particular example comes from. It contrasts to the existing setting where only labels pertaining to the dataset an example stems from are given to the models to classify. We argue that the joint-evaluation setting is a step towards simulating the ability to create general merged models, capable of preserving the union of all skills captured by their base models (§ 5.3). Notably, KnOTS further improves merging performance in this challenging setting.
29
+
30
+ # 2 RELATED WORK
31
+
32
+ Landscape between models. The geometric landscape of non-convex loss functions used to train neural networks remains largely uncharted. However, Draxler et al. (2018); Garipov et al. (2018); Simsek et al. (2021); Frankle & Carbin (2019) reveal that the parameter values of independently trained neural networks can be interpolated without increasing the test loss, a phenomenon known as mode-connectivity. Neyshabur et al. (2020), shows that models are often mode-connected when they are finetuned on the same task from the same pretrained initialization. In parallel, it has become common practice to finetune models using pretrained weights (Dosovitskiy et al., 2021; Huang et al., 2023; Oquab et al., 2024; Hsu et al., 2021; Touvron et al., 2023; Radford et al., 2021). Together with recent discoveries Wortsman et al. (2022b); Matena & Raffel (2022) that even the parameters of models finetuned on different tasks from the same initialization may be merged to create strong multitask models, there has been a surge of model merging approaches for finetuned models.
33
+
34
+ Model merging methods. Several approaches improve robustness or scores by averaging finetuned weights (Choshen et al., 2022; Wortsman et al., 2022b; Rame et al., 2022; 2024). Task arithmetic (TA) (Ilharco et al., 2023) first subtracts the parameter values of the pretrained model from those of the finetuned models, creating a set of "task-vectors." These are then linearly summed to create a merged model, without any gradient calculations or retraining. Ortiz-Jimenez et al. (2024) theoretically grounds TA, by showing that its success is dependent on the task-vectors governing disjoint regions in the pretrained model's function space—a concept known as "weight disentanglement." In practice, they find that the weights of different finetuned models heavily conflict, and propose a finetuning strategy that disentangles finetuned models to merge better with TA. Daheim et al. (2024); Shah et al. (2024) also find that TA-style merging can improve with finetuning and access to large amounts of training data. TIES (Yadav et al., 2023) improves TA by resolving the parameter interference between models when merging. Specifically, it prunes low-magnitude weights and then only averages weights which share the dominant sign. DARE (Yu et al., 2024) further explores this issue by randomly dropping fine-tuned weights and rescaling the remaining ones to create sparse task-vectors.
35
+
36
+ Merging LoRA models. LoRA (Hu et al., 2022) has quickly become a very popular finetuning technique. However, existing merging methods (Ilharco et al., 2023; Yadav et al., 2023; Yu et al., 2024) do not transfer well to merging LoRA models (Tang et al., 2024). Tang et al. (2024) suggest this is due to increased weight-entanglement between the models, and propose to a finetuning method similar to Ortiz-Jimenez et al. (2024) which improve the performance of each merging method. To the best of our knowledge, we present the first framework capable of achieving strong merged LoRA models without finetuning.
37
+
38
+ SVD-based LoRA Approaches. Employing the SVD on LoRA models is not a new idea for purposes other than merging and aligning weights. Meng et al. (2024) initialize the parameters of LoRA models using the SVD of the weights of the corresponding pretrained model, yielding improved finetuning performance. Zhang et al. (2023) use the SVD to improve the gradient updates in parameter efficient finetuning. The popular Hugging Face library (Mangrulkar et al., 2022) includes several merging methods for LoRA models that are suffixed by "-svd" (e.g., "TIES-svd"). These first merge the LoRA parameters of different models according solely to the prefix merging-method (e.g., "TIES"). Afterwards, they use the SVD to decompose the merged parameters back into LoRA weights. KnOTS is unrelated to these approaches. Instead, it significantly improves merging performance by aligning LoRA models with the SVD.
39
+
40
+ # 3 BACKGROUND AND MOTIVATION
41
+
42
+ Problem setting. We study gradient-free multitask model-merging (Ilharco et al., 2023; Stoica et al., 2024; Yadav et al., 2023; Jin et al., 2023). Suppose that we have a set of $n$ models with the same architecture, that have each been finetuned with Low-Rank Adaptation (LoRA) (Hu et al., 2022) on a distinct task (e.g., different image classification problems) from the same pretrained model. Let $\{f^{(1)}, f^{(2)}, \ldots, f^{(n)}\}$ denote the finetuned models and $f^{(pt)}$ be the pretrained model. Model-merging methods fuse the parameters of these finetuned models into a single unified model capable of solving all tasks. We study gradient-free approaches as they are both data-efficient and training-free, making them lightweight tools for merging models on-the-fly (Wortsman et al., 2022a). We study models finetuned with LoRA due to its wide usage and because recent work observes notable challenges when applying existing gradient-free methods on such models (Tang et al., 2024).
43
+
44
+ Model definitions. Let a pre-trained model $f^{(pt)}$ have $l$ layers, each containing weights and an optional bias. Assume all biases are concatenated in respective weights, and let weight of the $j^{th}$ layer be represented as $W_{j}^{(pt)}$ . Let $\theta^{(pt)}$ be the collection of all model weights, such that $\theta^{(pt)} = \{W_1^{(pt)},\dots ,W_j^{(pt)},\dots ,W_l^{(pt)}\}$ . Finetuned models are obtained by applying task-updates to each weight in $\theta^{(pt)}$ . We denote these updates by $\tau^{(i)} = \{\Delta W_1^{(i)},\dots ,\Delta W_j^{(i)},\dots ,\Delta W_l^{(i)}\}$ , where $\Delta W_{j}^{(i)}$ is the update corresponding to the $j^{th}$ layer in the $i^{th}$ model. As LoRA constrains each update to be low-rank, we let all updates have a rank of $r < < \min (I,O)$ , where $I$ and $O$ represent the input and output dimension. Every $\Delta W_{j}^{(i)}\in \mathbb{R}^{O\times I}$ transforms input features $x^{(i)}\in \mathbb{R}^I$ to output features $y^{(i)}\in \mathbb{R}^O$ as follows: $y^{(i)} = \Delta W_{j}^{(i)}x^{(i)}$ . Due to the low-rank constraint, $\Delta W_{j}^{(i)}$ can only act on
45
+
46
+ a subspace of size $r < \min (I,O)$ over $y^{(i)}$ (Hu et al., 2022). Finally, the parameters of $f^{(i)}$ are given by $\theta^{(pt)} + \tau^{(i)} = \{W_1^{(pt)} + \Delta W_1^{(i)},\dots ,W_j^{(pt)} + \Delta W_j^{(i)},\dots ,W_l^{(pt)} + \Delta W_l^{(i)}\}$
47
+
48
+ Merging models. Existing methods merge models by first defining a function (e.g., identity in (Ilharco et al., 2023)) that transforms the task-updates $\{\tau^{(1)},\dots \tau^{(n)}\}$ . Second, each update is uniformly scaled via a unique "scaling coefficient", denoted by $\alpha^{(i)}\geq 0$ . Third, these updates are summed to create a single set of merged updates, which are then added to the pretrained model weights to obtain the final merged model. Optimal values for $\alpha (i)\geq 0$ are selected according to the performance of the merged model on any available data Ilharco et al. (2023); Yadav et al. (2023); Yu et al. (2024). Although LoRA updates factorize into smaller matrices $A$ and $B$ , we utilize the full-matrix representation $\Delta W_{j}^{(i)} = BA$ in all merge operations. We explain this decision in App. A.
49
+
50
+ # 3.1 LORA MODELS ARE DIFFICULT TO MERGE
51
+
52
+ Existing full-rank finetuned (FFT) model merging approaches perform well without additional data, even on different tasks (Ilharco et al., 2023; Yadav et al., 2023). However, Tang et al. (2024) observe that the same merging methods encounter significant challenges when merging LoRA finetuned models, even when these are finetuned on the same tasks. Previous works (Ilharco et al., 2023), Ilharco et al. (2023); Yadav et al. (2023); Tang et al. (2024) use "task-vector orthogonality" as a proxy for understanding when merging is difficult. This consists of flattening the updates $\{\tau^{(1)},\dots \tau^{(n)}\}$ into a vector, and computing the pairwise cosine similarity between them. The intuition is that when the cosine similarity between vectors is near zero (i.e., they are orthogonal), their weights are disentangled and lie in distinct subspaces—enabling them to be merged without interference.
53
+
54
+ Task-vector orthogonality may not reliably measure merge potential. To see why, consider a simple toy example. Let $f^{(1)}(x) = W_2^{(1)}\mathrm{ReLU}(W_1^{(1)}x)$ and $f^{(2)} = W_2^{(2)}\mathrm{ReLU}(W_1^{(2)}x)$ be two classification models that transform inputs $x \in \mathbb{R}$ to some $y^{(1)},y^{(2)} \in \mathbb{R}$ respectively, where $W_{1}^{(1)},W_{2}^{(1)},W_{1}^{(2)},W_{2}^{(2)} \in \mathbb{R}$ . Let $W_{2}^{(1)} = 1$ , $W_{1}^{(1)} = 1$ , $W_{2}^{(2)} = 1$ , and $W_{1}^{(2)} = -1$ , and assume that each weight was initialized with 0. Here, $f^{(1)}$ classifies all $x \in \mathbb{R}^+$ as positive (i.e., $y^{(1)} > 0$ ) and all $x \in \mathbb{R}^{-}$ as negative (i.e., $y^{(2)} \leq 0$ ), while $f^{(2)}$ does the opposite. Calculating the task-vectors of $f^{(1)}$ and $f^{(2)}$ give [1, 1] and [-1, 1] respectively—making them orthogonal. However, it is trivial to see that merging their model weights catastrophically affects the performance of at least one model. Any scaled sum over their weights with an $\alpha^{(i)}$ will preserve one model's predictions while flipping the other's. Despite having orthogonal task-vectors, merging the weights of these models is catastrophic. Thus, additional measures may be helpful to understand when models can be merged.
55
+
56
+ Merging is easier when model layers share similar activations. Entezari et al. (2022); Ainsworth et al. (2023); Jordan et al. (2023); Stoica et al. (2024) extensively show that models whose layers extract similar intermediate activations for the same inputs, are easier to merge—even when trained on distinct tasks (Stoica et al., 2024). This often occurs when the weights across models extract the same kinds of meanings in a similar order from the inputs (Entezari et al., 2022; Stoica et al., 2024), and are thus aligned. We posit that understanding model alignment from this perspective can serve as a helpful tool for understanding the challenges behind merging. One way to measure the possibility of this is using the centered kernel alignment (CKA) measure Kornblith et al. (2019). CKA measures the similarity between the intermediate activations of two models, at each layer. CKA values close to one indicate that model parameters can be transformed to process information similarly—and thus transform inputs in a functionally aligned manner. When CKA is low, the reverse is true.
57
+
58
+ FFT models have very aligned CKA representations. Fig. 2a shows the average pairwise CKAs between the task-updates of the FFT models presented in Ilharco et al. (2023). We observe very high CKA, indicating that the updates between models process information in a way that ensures the intermediate feature activations between their layers are well aligned. This suggests that their updates extract similar information from inputs at each layer, and that merging them is less likely to cause significant disruption—as seen by (Ilharco et al., 2023).
59
+
60
+ LoRA models have considerably less aligned CKA representations. Conducting the same CKA analysis on LoRA variants of the same models from (Ilharco et al., 2023) shows that the models
61
+
62
+ ![](images/832163117c0f3ad82d194a9327039327e558a13814601faefb58fdd356a18e16.jpg)
63
+ (a) Full-rank finetuned model alignments
64
+ (b) LoRA finetuned model alignments
65
+ (c) LoRA finetuned model alignments with KnOTS
66
+ Figure 2: Finetuning strategy impacts representation alignments between models trained on different tasks. The figure shows the average pairwise centered kernel alignment (CKA—Kornblith et al. (2019)) between the outputs solely given by finetuning updates (e.g., a $\Delta W_{j}^{(i)}$ ) across every attention layer, from models finetuned on different tasks with different strategies (defined in §5.2). High CKA indicates that the task-updates of different models are aligned. (a) Full-rank finetuned models exhibit high CKA and alignment.(b) LoRA finetuned models are drastically less aligned. (c) However, they are dramatically more aligned with KnOTS.
67
+
68
+ exhibit dramatically lower average CKA between task-updates (Fig. 2b). This suggests that they are functionally misaligned: from the same inputs each LoRA extracts unrelated features. Entezari et al. (2022); Jordan et al. (2023); Stoica et al. (2024) observe that merging models in these circumstances can yield poor performance. We speculate that this phenomenon may be due to the low-rank constraint imposed on LoRA models. Specifically, each task-update can only act on a subspace of the input and output activation space. Since each LoRA model is finetuned on a different dataset, it must carefully pick the subspace it uses to extract information. Thus, it is unlikely that the task-updates across different models extract the same kind of information, leading to low activation alignment between updates and poor merges.
69
+
70
+ Our hypothesis. Coupling the CKAs of FFT model task-updates with those of LoRA models, we hypothesize that aligning LoRA task-updates is a crucial first step to improving their mergeability, and the performance of existing merging methods. We seek to design such an alignment method without assuming access to data or gradients.
71
+
72
+ # 4 METHOD:KNOTS
73
+
74
+ We propose a data-free and gradient-free method for aligning LoRA models, to improve the performance of existing model merging methods. Our method, termed KnOTS (Knowledge Orientation Through SVD), uses singular value decomposition (SVD) to jointly align the representation spaces between LoRA models (see illustration in Fig. 1).
75
+
76
+ Subspace alignment with the SVD. KnOTS aligns the updates across different LoRA models layer-wise. Thus, it suffices to consider how we align the updates for an arbitrary layer $j$ . Recall that these updates are denoted by: $\Delta W_{j}^{(1)},\ldots ,\Delta W_{j}^{(i)},\ldots ,\Delta W_{j}^{(n)}$ , each extracting different kinds of information. For notational ease, we drop the subscript $j$ for the remainder of this section. Most often SVD is used with square matrices, aligning vectors in them. Instead, we propose to align these updates into a shared space where they can extract similar information, by concatenating the updates across tasks and deconstructing the result with SVD:
77
+
78
+ $$
79
+ \begin{array}{l} S V D \left[ \Delta W ^ {(1)}; \Delta W ^ {(2)}; \dots ; \Delta W ^ {(n)} \right] = U \Sigma V ^ {T} (1) \\ = U \Sigma \left[ V ^ {(1)}; V ^ {(2)}; \dots ; V ^ {(n)} \right] ^ {T} (2) \\ \end{array}
80
+ $$
81
+
82
+ where, $U\in \mathbb{R}^{O\times k}$ $\Sigma \in \mathrm{Diag}(\mathbb{R}^k)$ $\{[V^{(1)}]^T,\ldots ,[V^{(n)}]^T\} \in \mathbb{R}^{k\times I}$ $1\leq k\leq \min (I,O,nr)$ Here, $\Delta W^{(1)} = U\Sigma [V^{(1)}]^T$ . $\Delta W^{(2)} = U\Sigma [V^{(2)}]^T;\dots ;\Delta W^{(n)} = U\Sigma [V^{(n)}]^T$ . With the SVD,
83
+
84
+ each task-update is decomposed into a shared $U\Sigma$ term—defining the orthogonal basis for the activations from all task-updates—along with task specific components, $[V^{(i)}]^T$ . By construction, each $[V^{(i)}]^T$ 's from any task-update acts to transform the same information (given by $U\Sigma$ ) with any input, thereby increasing their alignment. We visualize this effect in Fig. 2c. Specifically, we compute the CKA between the intermediate activations obtained from passing the same inputs through each $[V^{(1)}]^T, \ldots [V^{(n)}]^T$ of our LoRA models, and averaging over all layers to be merged. We observe that the CKAs are significantly higher compared to Fig. 2b, indicating that the task-updates between LoRA models are substantially more aligned under KnOTS.
85
+
86
+ Applying merge methods. In many cases, we can directly apply existing merging methods on the aligned $[V^{(1)}]^T,\ldots [V^{(n)}]^T$ without modifications. Specifically, we can apply some merging function (e.g., weighted sum a-la-(Ilharco et al., 2023)) over these parameters to obtain a single merged $[V^{(merged)}]^T$ . We can then construct the merged update with the remaining SVD components: $\Delta W_{j}^{(merged)} = U\Sigma [V^{(merged)}]^{T}$ , which is finally added to the pre-trained layer weights $W_{j}$ .
87
+
88
+ # 5 EXPERIMENTS AND RESULTS
89
+
90
+ We validate KnOTS across diverse benchmarks spanning both vision and language domains. We first evaluate KnOTS on the popular "per-task" setting across both vision and language tasks (§ 5.2). Here, models finetuned on distinct datasets are merged and then evaluated on each dataset separately. KnOTS consistently improves the capabilities of existing merging methods across all experiments. Second, we study the capabilities of merging methods building general models by introducing a new benchmark (§ 5.3). Despite being very challenging, KnOTS is still capable of uplifting existing merging approaches. Third, we conduct extensive analysis on different facets of KnOTS (§ 5.4).
91
+
92
+ # 5.1 EXPERIMENTAL DETAILS
93
+
94
+ Models. We use ViT-B/32 or ViT-L/16 (Dosovitskiy et al., 2021) for all our vision experiments. These are two variants of the CLIP vision encoder (Radford et al., 2021) that are finetuned separately on a variety of tasks. Our natural language experiments are conducted with LLaMa3-8B model (AI, 2024) across different natural language inference (NLI) tasks. As in (Hu et al., 2022), we only apply LoRA on the weight matrices in the attention layers: namely the key, query, value and output layers. Unless otherwise specified, each LoRA has a rank of 16. Further training details are found in App. D.
95
+
96
+ Merging methods. As discussed in § 3, we restrict our scope to gradient-free merging methods in this work. To the best of our knowledge, there are only four such merging methods for our setting: RegMean (Jin et al., 2023), Task-Arithmetic (TA) (Ilharco et al., 2023), TIES (Yadav et al., 2023), and DARE (Yu et al., 2024). RegMean (Jin et al., 2023) is a merging approach that also aligns the weights of each model. It does this by solving a closed-form locally linear regression problem at every model layer. This results in obtaining a transformation matrix for each models' task-updates, that when applied aligns the updates between models. In contrast, TA, TIES and DARE assume that the task updates between models stemming from a shared pre-trained checkpoint are functionally aligned and directly merge them.
97
+
98
+ TA (Ilharco et al., 2023) merges models finetuned on different tasks with the same pretrained checkpoint by linearly summing their parameters. They apply a summation-weight (termed "scaling coefficient") to the parameters of each model that achieves the best merged model performance over a held-out validation set. Instead of tuning a unique scaling co-efficient for each task-vector which may be expensive and does not scale well, we only tune a single scaling co-efficient for all models as recommended by Ilharco et al. (2023); Yadav et al. (2023). TIES (Yadav et al., 2023) extends TA by reducing noise and conflicts between parameters when merged. It reduces noise by pruning $k$ parameters with the lowest magnitudes, and reduces parameter conflicts by also pruning those that lie in outlying directions—a step called "sign-resolution". TIES then linearly sums the model parameters using the scaling coefficients and $k$ for pruning, that achieve the best merged model over the held-out set. DARE (Yu et al., 2024) reduces noise by randomly pruning parameters following a Bernoulli distribution with probability $p$ . The remaining parameters are then rescaled by $\frac{1}{(1 - p)}$ to account for scale lost from pruned parameters. Afterwards, DARE typically employs sign-resolution of TIES (specified by DARE-TIES). To account for its random pruning step, we run
99
+
100
+ Table 1: Eight models per-task results. We merge eight ViT-B/32 models finetuned with LoRA on different image classification datasets. "Finetuned" refers to the accuracy of each finetuned model on the dataset it was trained on. We report the per-task (including the average) normalized-accuracies across other merging baselines. These describe how close they get to the "Finetuned" accuracy. KnOTS-TIES improves over baselines by up to $4.3\%$ average accuracy.
101
+
102
+ <table><tr><td rowspan="2">Method</td><td colspan="9">Datasets</td></tr><tr><td>Cars</td><td>DTD</td><td>EuroSAT</td><td>GTSRB</td><td>MNIST</td><td>RESISC45</td><td>SUN397</td><td>SVHN</td><td>Avg</td></tr><tr><td colspan="10">Per-Task Absolute Accuracies (%)</td></tr><tr><td>Finetuned</td><td>74.0</td><td>58.3</td><td>99.0</td><td>92.7</td><td>99.3</td><td>88.4</td><td>64.5</td><td>96.2</td><td>84.1</td></tr><tr><td colspan="10">Per-Task Accuracies of Merged Models Normalized Against Finetuned Models (%)</td></tr><tr><td>RegMean</td><td>80.2</td><td>71.3</td><td>37.9</td><td>47.3</td><td>43.1</td><td>70.5</td><td>93.9</td><td>43.0</td><td>60.9</td></tr><tr><td>TA</td><td>82.0</td><td>73.6</td><td>48.8</td><td>42.1</td><td>53.1</td><td>71.5</td><td>97.5</td><td>41.2</td><td>63.7</td></tr><tr><td>TIES</td><td>82.2</td><td>72.8</td><td>50.0</td><td>36.8</td><td>56.8</td><td>69.4</td><td>96.9</td><td>44.6</td><td>63.7</td></tr><tr><td>DARE-TIES</td><td>81.4</td><td>74.5</td><td>50.8</td><td>39.2</td><td>55.0</td><td>70.7</td><td>97.6</td><td>40.1</td><td>63.7</td></tr><tr><td>KnOTS-TIES</td><td>82.7</td><td>73.7</td><td>49.3</td><td>48.9</td><td>68.9</td><td>70.9</td><td>95.5</td><td>53.8</td><td>68.0</td></tr><tr><td>KnOTS-DARE-TIES</td><td>81.8</td><td>75.9</td><td>50.7</td><td>40.3</td><td>53.2</td><td>70.2</td><td>97.9</td><td>41.0</td><td>63.9</td></tr></table>
103
+
104
+ all DARE experiments across three separate seeds, and report the best performance. KnOTS can be coupled with merging methods such as these latter three by applying them directly on aligned $[V^{(i)}]^T$ parameters. Note that we make an exception for methods like TIES (Yadav et al., 2023) that involve magnitude-based model pruning. While model-scale is absent in $[V^{(i)}]^T$ (its row-wise magnitudes are $\leq 1$ by definition), it is retained in $\Sigma$ . Thus, we may apply such operations on $\Sigma [V^{(i)}]^T$ , but merge using the newly pruned $[V^{(i)}]^T$ s. Additionally, we observe that applying KnOTS on TA reduces to performing TA: $\sum_{i=1}^{n} \alpha^{(i)} \Delta W_j^{(i)} = \sum_{i=1}^{n} \alpha_i U \Sigma [V_j^{(i)}]^T = U \Sigma \sum_{i=1}^{n} \alpha_i [V_j^{(i)}]^T$ . Thus, KnOTS on TA can be considered a generalization of TA: KnOTS reduces to the standard merging method when its alignment is not leveraged. We refer to all methods we apply KnOTS to by prefixing their names with KnOTS (e.g., KnOTS on TIES is denoted by KnOTS-TIES). Inspired by the recommendations made by each merging baseline, we tune hyperparameters such as scaling-coefficient, top-K and DARE-pruning-co-efficient as described in C. Note: KnOTS does not require any new hyperparameter to be tuned apart from the ones used by the original merging methods.
105
+
106
+ In some experiments, we add the "Ensemble" as a baseline, which consists of all models used in a particular merging evaluation. The ensemble passes an input in parallel to all models, and predicts its class according to the highest confidence prediction across all models.
107
+
108
+ Metrics. We report the absolute accuracy of all individual finetuned models on their respective datasets, and utilize these for merging. Similar to Ilharco et al. (2023); Yadav et al. (2023), we compare our merging methods via "normalized-accuracy" wherever applicable. This is obtained by dividing the performance of a merged model on a task (e.g., Cars (Krause et al., 2013)) by the performance of the original model finetuned on the task. For instance, the normalized accuracy for a given task-i is computed as $\frac{\text{Accuracy of merged model on task-i}}{\text{Accuracy of finetuned model on task-i}}$ . This metric shows how close the merged model gets to the original finetuned model for each task. Certain experiment settings study different generalization properties and thus have different metrics. For the remainder of this paper, we assume all accuracy measurements are normalized, and define other metrics in their relevant sections.
109
+
110
+ # 5.2 PER-TASK EVALUATIONS ON VISION AND NLP SETTINGS
111
+
112
+ We first compare KnOTS's ability to improve existing merging methods in the popular "per-task" experiment settings (Ilharco et al., 2023; Yadav et al., 2023; Tang et al., 2024). These settings comprise of merging a set of models independently finetuned on different datasets into a single model, and then evaluating it on each dataset independently—using only its examples and labels. This way, the merged model is judged on its ability to preserve the individual skills of each original model.
113
+
114
+ Merging eight ViT-B/32 models finetuned on image classification datasets. We follow the image classification benchmark from Ilharco et al. (2023) and merge models finetuned on eight different datasets: Cars (Krause et al., 2013), DTD (Cimpoi et al., 2014), EuroSAT (Helber et al., 2019),
115
+
116
+ GTSRB Stallkamp et al. (2011), MNIST (LeCun, 1998), RESISC45 (Cheng et al., 2017), SUN397 (Xiao et al., 2016) and SVHN (Netzer et al., 2011). Like Ilharco et al. (2023); Yadav et al. (2023), we report normalized per-task accuracies and their average. Tab. 1 reports merging performances. Interestingly, nearly all merging methods achieve comparable performance. However, applying KnOTS on both TIES and DARE-TIES elevates their respective performances, with KnOTS-TIES strengthening TIES by $4.3\%$ average normalized accuracy. Note, we also compare against a popular gradient-based approach—Fisher weight averaging (Matena & Raffel, 2022) in App. E and achieve considerable gains, though gradient-based merging is not our focus.
117
+
118
+ KnOTS scales to ViT-L/14 models. We also evaluate how KnOTS is affected by merging larger vision models. Specifically, we merge eight ViT-L/14 models finetuned with LoRA on the same datasets as our ViT-B/32 counterparts. We then evaluate the merged model's normalized per-task accuracies over each dataset. Results for several merging methods are summarized in Tab. 2.
119
+
120
+ While performance of all merging methods improve with the larger models, KnOTS notably con
121
+
122
+ sistently outperforms the baselines in both KnOTS-TIES and KnOTS-DARE-TIES. Additionally, KnOTS-TIES is still capable of improving TIES by $3\%$ , showing its ability to maintain performance with scale.
123
+
124
+ Table 2: Normalized per-task avg. image classification results. We merge eight ViT-L/14 models finetuned with LoRA on eight vision datasets. We report the average normalized accuracies against average absolute accuracy of the finetuned models: $92.3\%$ . KnOTS is best.
125
+
126
+ <table><tr><td rowspan="2">TA</td><td rowspan="2">TIES</td><td rowspan="2">DARE-TIES</td><td colspan="2">KnOTS</td></tr><tr><td>TIES</td><td>DARE-TIES</td></tr><tr><td>74.4</td><td>75.2</td><td>74.7</td><td>78.2</td><td>75.6</td></tr></table>
127
+
128
+ KnOTS performs well on LLMs. We also evaluate KnOTS in the NLI setting, by merging six PEFT llama3-8B (AI, 2024) models finetuned on SNLI (Bowman et al., 2015), MNLI (Williams et al., 2018), SICK (Marelli et al., 2014), QNLI, RTE (Wang et al., 2019), and SCITAIL (Khot et al., 2018). Each of these tasks involves performing a 3-way classification to determine whether a given "hypothesis" is true (entailment), false (contradiction) or inconclusive (neutral) compared to a given "premise." QNLI, RTE and SCITAIL
129
+
130
+ only employ two of the three classes, so we simply mask the missing label when finetuning and evaluating on these datasets. Tab. 3 shows the results of merging these models using TA, TIEs, DARE-TIES, KnOTS-TIES and KnOTS-DARE-TIES. Overall, we observe that KnOTS-TIES significantly outperforms baseline merging methods by up to $2.9\%$ average normalized accuracy, and KnOTS-DARE-TIES further improves DARE-TIES by $2\%$ . This demonstrates the power of utilizing KnOTS to align LoRA models even on dramatically larger models (8B parameters), and its robustness across modalities.
131
+
132
+ Table 3: Normalized per-task avg. NLI results. We merge six LLama3-8B models finetuned with LoRA on different NLI datasets. All numbers are normalized against the absolute average per-task accuracy of the individual finetuned models: $92.9\%$ . KnOTS performs best.
133
+
134
+ <table><tr><td rowspan="2">TA</td><td rowspan="2">TIES</td><td rowspan="2">DARE-TIES</td><td colspan="2">KnOTS</td></tr><tr><td>TIES</td><td>DARE-TIES</td></tr><tr><td>90.2</td><td>90.0</td><td>90.9</td><td>92.9</td><td>91.1</td></tr></table>
135
+
136
+ # 5.3 A NEW BENCHMARK TOWARDS BUILDING GENERAL MODELS
137
+
138
+ We further introduce a new experimental setting to the eight vision per-task benchmark in Tab. 1, that we call the "joint-task." This task differs from the "per-task" regime in that it evaluates merged models over the union of all inputs and labels across every vision-task. The joint-task is significantly more challenging than the per-task counterpart as it explicitly examines whether a merged model is a general model: whether it can classify any input to any label.
139
+
140
+ Table 4: Eight models joint-task results. We merge eight ViT-B/32 models finetuned with LoRA on different datasets. We report the joint-task "Union" performances for several merging methods. KnOTS-TIES performs the best.
141
+
142
+ <table><tr><td rowspan="3">Metric</td><td colspan="6">Method</td></tr><tr><td rowspan="2">Ensemble</td><td rowspan="2">TA</td><td rowspan="2">TIES</td><td rowspan="2">DARE-TIES</td><td colspan="2">KnOTS</td></tr><tr><td>TIES</td><td>DARE-TIES</td></tr><tr><td>Hits@1</td><td>40.7</td><td>43.6</td><td>43.6</td><td>44.0</td><td>46.8</td><td>45.2</td></tr><tr><td>Hits@3</td><td>63.1</td><td>65.3</td><td>65.3</td><td>66.4</td><td>68.1</td><td>66.9</td></tr><tr><td>Hits@5</td><td>72.6</td><td>74.0</td><td>73.9</td><td>75.1</td><td>76.3</td><td>75.3</td></tr></table>
143
+
144
+ After aggregating the labels across all eight tasks and removing duplicates (e.g., MNIST (LeCun, 1998) and SVHN (Netzer et al., 2011) have the same labels), we obtain 748 unique labels over which to classify all the images across all datasets. As some labels in one task are hyponyms of those in another (e.g., "islet" in SUN397 (Xiao et al., 2016) and
145
+
146
+ "island" in RESISC45 (Cheng et al., 2017)) making it challenging to distinguish labels, we report performance using "Hits@k." This refers to the number of times the expected label is within the top- $k$ predictions of a model (e.g., Hits@1 is accuracy). Tab. 4 shows the results over the "Union" of all images and labels across all tasks, when merging our ViT-B/32 LoRA models. Please see App. F for performances broken down by dataset. Overall, KnOTS-TIES significantly outperforms every baseline at all Hits@k levels on the extremely challenging "Union" evaluation—by up to $3.2\%$ on Hits@1. Interestingly, we also observe that the ensemble performs particularly poorly in the joint setting. We posit this is due to certain models making over-confidently incorrect predictions on data from tasks they are not finetuned on, a notable issue in ensemble models (Kardan et al., 2021). We argue that the joint-task is an important benchmark for assessing a merged model's generality, and we hope future work expands upon it.
147
+
148
+ # 5.4 ADDITIONAL ANALYSIS & ABLATIONS
149
+
150
+ We also conduct three analysis experiments to understand different facets of KnOTS. We conduct our analysis with KnOTS-TIES as it consistently achieves the best performance across all settings.
151
+
152
+ KnOTS scales better with the number of models. Following Ilharco et al. (2023); Yadav et al. (2023), we evaluate the performance of KnOTS on the eight per-task vision benchmark with our ViT-B/32 models as we increase the number of tasks being merged. Fig. 3 illustrates the same measuring performance with average normalized accuracies of the merged model, where the dots represent the performance of a model evaluated only on the tasks included in the merge, while the bars indicate the $95\%$ confidence intervals based on random subselection of 28 task combinations.
153
+
154
+ Notably, KnOTS-TIES achieves significantly better merging results compared to the baselines, with a performance gap that remains consistently $>4\%$ (for $>2$ tasks being merged), underscoring its robustness as the number of tasks increases.
155
+
156
+ KnOTS is robust to different LoRA ranks. Fig. 4 shows the performance of KnOTS-TIES against TIES (Yadav et al., 2023) in merging our ViT-B/32 models trained at various LoRA ranks {4, 16, 64, 256, 768} on the eight per-task vision benchmark. Note that these ViTs each have a feature dimension of 768, making our LoRA rank 768 setting "full rank". The results consistently demonstrate that KnOTS-TIES outperforms TIES across all rank settings. In the very low rank setting (e.g., rank four), KnOTS improves TIES by $6\%$ (64.6% normalized accuracy vs. $58.6\%$ ). The performance uplift continues with increasing LoRA rank, with KnOTS improving TIES by $4\%$ in the full rank setting. This experiment highlights how KnOTS is both robust and scalable to merging models finetuned on diverse tasks with arbitrary LoRA rank.
157
+
158
+ ![](images/696730e9d9089d8a9fbeb8efa53be1f4654459b0048a3e385bb50245878073bf.jpg)
159
+ Figure 3: KnOTS boosts performance with scale. KnOTS-TIES continues to see gains, outperforming original TIES (Yadav et al., 2023) and Task Arithmetic (TA) (Ilharco et al., 2023) when merging an increasing number of tasks in the per-task evaluation vision setting § 5.2. Performance is the average normalized accuracy with $95\%$ confidence intervals over merging different combinations of the tasks
160
+
161
+ ![](images/0e3e21d7754b599ca14bed46107d3cb16e71598f7bfc94b95f125fb22d9bbffc.jpg)
162
+ Figure 4: KnOTS boosts performance across LoRA ranks. KnOTS-TIES consistently outperforms TIES (Yadav et al., 2023) across varying LoRA ranks in the per-task evaluation vision setting. Performance is reported in terms of average normalized accuracy across eight vision tasks.
163
+
164
+ The way task-updates are concatenated matters. KnOTS concatenates task-updates column-wise before computing the SVD. In this experiment, we investigate the effects of concatenating them
165
+
166
+ row-wise instead. We conduct our analysis using the same vision models from Tab. 1 and merge them with KnOTS-TIES. We observe that applying KnOTS-TIES after concatenating the rows of the task-updates achieves an average normalized accuracy of $65.4\%$ . It performs $2.6\%$ worse than KnOTS-TIES with column-wise task-update concatenation. We posit this may be due to the difference in the deconstructed task-update terms when concatenating them row-wise. Specifically, each update would be denoted by $\Delta W_{j}^{(i)} = U^{(i)}\Sigma V$ , where $\Sigma V$ are shared across all updates with different $U^{(i)}$ . In this way, the shared $\Sigma V$ would act on distinct $U^{(i)}$ containing different information—which in turn may lower alignment. These results suggest that concatenating the updates column-wise is crucial to obtaining strong performance with KnOTS.
167
+
168
+ # 6 CONCLUSION
169
+
170
+ In this paper, we study merging LoRA models sharing the same pretrained checkpoint and finetuned on different tasks without additional finetuning. We find that prior work does not transfer well in this setting, and observe that this is due to parameter misalignment between LoRA models. We introduce KnOTS to tackle this problem by using the singular value decomposition (SVD) to map the parameters of each LoRA model into a shared representation space with aligned elements, over which prior work can be applied to merge the parameters. In addition, we introduce a novel benchmark designed to evaluate whether merged models can be general. Notably, KnOTS improves prior work by up to $4.3\%$ across both vision and language settings, including our new setting.
171
+
172
+ # 7 REPRODUCIBILITY STATEMENT
173
+
174
+ We describe the procedure for finetuning all our models, including compute resources, datasets, and hyperparameter searches in App. D. App. C describes our hyperparameter searches for all merging methods. App. B explains how we calculated our centered kernel alignment (CKA) visualizations in Fig. 2. In addition, App. F provides extensive details on how we created our novel benchmark.
175
+
176
+ # 8 ACKNOWLEDGEMENTS
177
+
178
+ This work was partially sponsored by NSF awards #2403297 and #2144194, an NSF-GRFP, and Google. All views and conclusions expressed in this work are those of the authors and not a reflection of these sources.
179
+
180
+ We would like to thank Simar Kareer for his valuable insights and discussions that contributed to the brainstorming process of this work.
181
+
182
+ # REFERENCES
183
+
184
+ Meta AI. Meta llama 3. https://llama.meta.com/llama3/, 2024.
185
+ Samuel Ainsworth, Jonathan Hayase, and Siddhartha Srinivasa. Git re-basin: Merging models modulo permutation symmetries. In ICLR, 2023.
186
+ Samuel R. Bowman, Gabor Angeli, Christopher Potts, and Christopher D. Manning. A large annotated corpus for learning natural language inference. In EMNLP, 2015.
187
+ Ruisi Cai, Zhenyu Zhang, and Zhangyang Wang. Robust weight signatures: gaining robustness as easy as patching weights? In ICML, 2023.
188
+ Gong Cheng, Junwei Han, and Xiaogiang Lu. Remote sensing image scene classification: Benchmark and state of the art. IEEE, 2017.
189
+ Leshem Choshen, Elad Venezian, Noam Slonim, and Yoav Katz. Fusing finetuned models for better pretraining. arXiv:2204.03044, 2022.
190
+ Leshem Choshen, Elad Venezian, Shachar Don-Yehiya, Noam Slonim, and Yoav Katz. Where to start? analyzing the potential value of intermediate models. In EMNLP, 2023.
191
+
192
+ Mircea Cimpoi, Subhransu Maji, Iasonas Kokkinos, Sammy Mohamed, and Andrea Vedaldi. Describing textures in the wild. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2014.
193
+ Nico Daheim, Thomas Möllenhoff, Edoardo Ponti, Iryna Gurevych, and Mohammad Emtiyaz Khan. Model merging by uncertainty-based gradient matching. In *ICLR*, 2024.
194
+ Shachar Don-Yehiya, Elad Venezian, Colin Raffel, Noam Slonim, and Leshem Choshen. ColD fusion: Collaborative descent for distributed multitask finetuning. In ACL, 2023.
195
+ Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In ICLR, 2021.
196
+ Felix Draxler, Kambis Veschgini, Manfred Salmhofer, and Fred Hamprecht. Essentially no barriers in neural network energy landscape. In ICML, 2018.
197
+ Rahim Entezari, Hanie Sedghi, Olga Saukh, and Behnam Neyshabur. The role of permutation invariance in linear mode connectivity of neural networks. In ICLR, 2022.
198
+ Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In *ICLR*, 2019.
199
+ Timur Garipov, Pavel Izmailov, Dmitrii Podoprikhin, Dmitry P Vetrov, and Andrew G Wilson. Loss surfaces, mode connectivity, and fast ensembling of dnns. NeurIPS, 2018.
200
+ Patrick Helber, Benjamin Bischke, Andreas Dengel, and Damian Borth. Eurosat: A novel dataset and deep learning benchmark for land use and land cover classification. JSTARS, 2019.
201
+ Wei-Ning Hsu, Benjamin Bolte, Yao-Hung Hubert Tsai, Kushal Lakhotia, Ruslan Salakhutdinov, and Abdelrahman Mohamed. Hubert: Self-supervised speech representation learning by masked prediction of hidden units. IEEE/ACM TASLP, 2021.
202
+ Edward J Hu, yelong shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In ICLR, 2022.
203
+ Chengsong Huang, Qian Liu, Bill Yuchen Lin, Tianyu Pang, Chao Du, and Min Lin. Lorahub: Efficient cross-task generalization via dynamic lora composition. arXiv:2307.13269, 2023.
204
+ Gabriel Ilharco, Marco Tulio Ribeiro, Mitchell Wortsman, Ludwig Schmidt, Hannaneh Hajishirzi, and Ali Farhadi. Editing models with task arithmetic. In ICLR, 2023.
205
+ Xisen Jin, Xiang Ren, Daniel Preotiuc-Pietro, and Pengxiang Cheng. Dataless knowledge fusion by merging weights of language models. In ICLR, 2023.
206
+ Keller Jordan, Hanie Sedghi, Olga Saukh, Rahim Entezari, and Behnam Neyshabur. Repair: Renormalizing permuted activations for interpolation repair. In ICLR, 2023.
207
+ Navid Kardan, Ankit Sharma, and Kenneth O Stanley. Towards consistent predictive confidence through fitted ensembles. In IJCNN, 2021.
208
+ Tushar Khot, Ashish Sabharwal, and Peter Clark. Scitail: A textual entailment dataset from science question answering. In AAAI, 2018.
209
+ Simon Kornblith, Mohammad Norouzi, Honglak Lee, and Geoffrey Hinton. Similarity of neural network representations revisited. In ICML, 2019.
210
+ Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3d object representations for fine-grained categorization. In IEEE 3D Representation and Recognition Workshop ICCV, 2013.
211
+ Yann LeCun. The mnist database of handwritten digits. http://yann.lecun.com/exdb/mnist/, 1998.
212
+ Ilya Loshchilov and Frank Hutter. SGDR: Stochastic gradient descent with warm restarts. In *ICLR*, 2017.
213
+
214
+ Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In ICLR, 2019.
215
+ Sourab Mangrulkar, Sylvain Gugger, Lysandre Debut, Younes Belkada, Sayak Paul, and Benjamin Bossan. Peft: State-of-the-art parameter-efficient fine-tuning methods. https://github.com/huggingface/peft, 2022.
216
+ Marco Marelli, Stefano Menini, Marco Baroni, Luisa Bentivogli, Raffaella Bernardi, and Roberto Zamparelli. A SICK cure for the evaluation of compositional distributional semantic models. In Nicoletta Calzolari, Khalid Choukri, Thierry Declerck, Hrafn Loftsson, Bente Maegaard, Joseph Mariani, Asuncion Moreno, Jan Odijk, and Stelios Piperidis (eds.), LREC, 2014.
217
+ Michael Matena and Colin Raffel. Merging models with fisher-weighted averaging. In NeurIPS, 2022.
218
+ Fanxu Meng, Zhaohui Wang, and Muhan Zhang. Pissa: Principal singular values and singular vectors adaptation of large language models. NeurIPS, 2024.
219
+ Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Baolin Wu, Andrew Y Ng, et al. Reading digits in natural images with unsupervised feature learning. In Deep learning and unsupervised feature learning workshop NeurIPS, 2011.
220
+ Behnam Neyshabur, Hanie Sedghi, and Chiyuan Zhang. What is being transferred in transfer learning? NeurIPS, 2020.
221
+ Maxime Aquab, Timothée Darcet, Théo Moutakanni, Huy V. Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel HAZIZA, Francisco Massa, Alaaeldin El-Nouby, Mido Assran, Nicolas Ballas, Wojciech Galuba, Russell Howes, Po-Yao Huang, Shang-Wen Li, Ishan Misra, Michael Rabbat, Vasu Sharma, Gabriel Synnaeve, Hu Xu, Herve Jegou, Julien Mairal, Patrick Labatut, Armand Joulin, and Piotr Bojanowski. DINOv2: Learning robust visual features without supervision. TMLR, 2024.
222
+ Guillermo Ortiz-Jimenez, Alessandro Favero, and Pascal Frossard. Task arithmetic in the tangent space: Improved editing of pre-trained models. NeurIPS, 2024.
223
+ Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. NeurIPS, 2019.
224
+ Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In ICML, 2021.
225
+ Alexandre Rame, Matthieu Kirchmeyer, Thibaud Rahier, Alain Rakotomamonjy, Patrick Gallinari, and Matthieu Cord. Diverse weight averaging for out-of-distribution generalization. NeurIPS, 2022.
226
+ Alexandre Rame, Nino Vieillard, Leonard Hussenot, Robert Dadashi, Geoffrey Cideron, Olivier Bachem, and Johan Ferret. WARM: On the benefits of weight averaged reward models. In ICML, 2024.
227
+ Nils Reimers and Iryna Gurevych. Sentence-bert: Sentence embeddings using siamese bert-networks. In ENLP, 2019.
228
+ Viraj Shah, Nataniel Ruiz, Forrester Cole, Erika Lu, Svetlana Lazebnik, Yuanzhen Li, and Varun Jampani. Ziplora: Any subject in any style by effectively merging loras. In ECCV, 2024.
229
+ Berfin Simsek, François Ged, Arthur Jacot, Francesco Spadaro, Clement Hongler, Wulfram Gerstner, and Johanni Brea. Geometry of the loss landscape in overparameterized neural networks: Symmetries and invariances. In ICML, 2021.
230
+ Johannes Stallkamp, Marc Schlipsing, Jan Salmen, and Christian Igel. The german traffic sign recognition benchmark: a multi-class classification competition. In IJCNN, 2011.
231
+
232
+ George Stoica, Daniel Bolya, Jakob Brandt Bjorner, Pratik Ramesh, Taylor Hearn, and Judy Hoffman. Zipit! merging models from different tasks without training. In ICLR, 2024.
233
+ Anke Tang, Li Shen, Yong Luo, Yibing Zhan, Han Hu, Bo Du, Yixin Chen, and Dacheng Tao. Parameter-efficient multi-task model fusion with partial linearization. In ICLR, 2024.
234
+ Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothee Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. Llama: Open and efficient foundation language models. arXiv:2302.13971, 2023.
235
+ Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. Glue: A multi-task benchmark and analysis platform for natural language understanding. In ICLR, 2019.
236
+ Adina Williams, Nikita Nangia, and Samuel Bowman. A broad-coverage challenge corpus for sentence understanding through inference. In *NAACL*, 2018.
237
+ Mitchell Wortsman, Gabriel Ilharco, Samir Ya Gadre, Rebecca Roelofs, Raphael Gontijo-Lopes, Ari S Morcos, Hongseok Namkoong, Ali Farhadi, Yair Carmon, Simon Kornblith, et al. Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time. In ICML, 2022a.
238
+ Mitchell Wortsman, Gabriel Ilharco, Jong Wook Kim, Mike Li, Simon Kornblith, Rebecca Roelofs, Raphael Gontijo Lopes, Hannaneh Hajishirzi, Ali Farhadi, Hongseok Namkoong, et al. Robust fine-tuning of zero-shot models. In CVPR, 2022b.
239
+ Jianxiong Xiao, Krista A. Ehinger, James Hays, Antonio Torralba, and Aude Oliva. SUN database: Exploring a large collection of scene categories. IJCV, 2016.
240
+ Chen Xu, Weiwei Xu, and Kaili Jing. Fast algorithms for singular value decomposition and the inverse of nearly low-rank matrices. *NSR*, 2023.
241
+ Prateek Yadav, Derek Tam, Leshem Choshen, Colin Raffel, and Mohit Bansal. Ties-merging: resolving interference when merging models. In NeurIPS, 2023.
242
+ Le Yu, Bowen Yu, Haiyang Yu, Fei Huang, and Yongbin Li. Language models are super mario: Absorbing abilities from homologous models as a free lunch. In ICML, 2024.
243
+ Kerem Zaman, Leshem Choshen, and Shashank Srivastava. Fuse to forget: Bias reduction and selective memorization through model fusion. arXiv:2311.07682, 2023.
244
+ Qingru Zhang, Minshuo Chen, Alexander Bukharin, Pengcheng He, Yu Cheng, Weizhu Chen, and Tuo Zhao. Adaptive budget allocation for parameter-efficient fine-tuning. In ICLR, 2023.
245
+
246
+ # A WHICH LORA REPRESENTATION IS BEST FOR MERGING?
247
+
248
+ LoRA is a popular Parameter Efficient Finetuning (PEFT) method that finetunes models by applying low-rank updates to the pretrained parameters. For instance, let $W_{j}^{(i)}, \Delta W_{j}^{(i)} \in \mathbb{R}^{O \times I}$ . With LoRA, each $\Delta W_{j}^{(i)}$ is rank $r << \min(O, I)$ , and can be factorized into two low-rank matrices $A_{j}^{(i)} \in \mathbb{R}^{r \times I}, B_{j}^{(i)} \in \mathbb{R}^{O \times r}$ , with $\Delta W_{j}^{(i)} = B_{j}^{(i)}A_{j}^{(i)}$ . The existence of $A_{j}^{(i)}$ , and $B_{j}^{(i)}$ for each $\Delta W_{j}^{(i)}$ may suggest that merging should be done on them separately, and the results multiplied to achieve the merged-update $\Delta W_{j}^{(m)}$ . However, this immediately leads to issues when applying existing merging methods. For instance, let us apply task-arithmetic (TA) Ilharco et al. (2023) on a single arbitrary layer (e.g., the $j^{th}$ layer) across $f^{(1)}, \ldots, f^{(n)}$ . First, TA merges the factorizations of $\Delta W_{j}^{(1)}, \ldots, \Delta W_{j}^{(n)}$ by computing $\sum_{i=1}^{n}\lambda^{(i)}A_{j}^{(i)}, \sum_{i=1}^{n}\lambda^{(i)}B_{j}^{(i)}$ . Multiplying each to obtain $\Delta W_{j}^{(m)}$ yields,
249
+
250
+ $$
251
+ \begin{array}{l} \Delta W _ {j} ^ {(m)} = \left(\sum_ {i = 1} ^ {n} \lambda^ {(i)} B _ {j} ^ {(i)}\right) \left(\sum_ {i = 1} ^ {n} \lambda^ {(i)} A _ {j} ^ {(i)}\right) (3) \\ = \underbrace {\left(\sum_ {i = 1} ^ {l} \lambda^ {(i)} \lambda^ {(i)} B _ {j} ^ {(i)} A _ {j} ^ {(i)}\right)} _ {\text {P r o d u c t s o f a l i n g f a c t o r i z a t i o n s}} + \underbrace {\left(\sum_ {i \neq k} ^ {l} \lambda^ {(i)} \lambda^ {(k)} B _ {j} ^ {(i)} A _ {j} ^ {(k)}\right)} _ {\text {P r o d u c t s o f m i s a l i n g f a c t o r i z a t i o n s}}. (4) \\ \end{array}
252
+ $$
253
+
254
+ Notably, $\Delta W_{j}^{(m)}$ consists of two terms: one composed of $B_{j}^{(i)}$ and $A_{j}^{(i)}$ matrices from the updates of the same model, and one composed of $B_{j}^{(i)}$ and $A_{j}^{(k)}$ matrices from updates of different models. Unfortunately, there is no guarantee that $B_{j}^{(i)}$ expects the same input representation as the output of $A_{j}^{(k)}$ when $i \neq k$ , and including these terms in the merged model can incur significant drop in model performance Stoica et al. (2024). Similarly, this same issue persists as well when applying Yadav et al. (2023). Thus, we only conduct merging on the original update representations: $\Delta W_{j}^{(i)}$ of each model. This trivially avoids mismatches when applying merging methods.
255
+
256
+ # B COMPUTING CENTERED KERNEL ALIGNMENTS ACROSS TASKS
257
+
258
+ We create the pairwise centered kernel alignment (CKA) (Kornblith et al., 2019) matrices presented in Fig. 2 using models that are finetuned from the same pretrained checkpoint on the different tasks shown in Tab. 1. Each matrix is generated using a set of unlabeled heldout data from all eight datasets. Specifically, this heldout set consists of the validation data of the respective dataset when it exists and otherwise randomly samples $20\%$ of the test set. Note that in situations where we sample $20\%$ of a dataset's test split, we always evaluate any merged model on the remaining $80\%$ of examples. For fair comparison, all CKA plots are created using the same data.
259
+
260
+ Pairwise CKA on full-rank finetuned models. We compute Fig. 2a) as follows. We first take the set of eight full-rank finetuned (FFT) ViT-B/32 (Dosovitskiy et al., 2021) models released by Ilharco et al. (2023), along with their shared pretrained model. We then collect the intermediate outputs of every key, query, value and projection layer across all nine models over all the data from our heldout set. This yields nine different intermediate activations for each layer across all models. We then subtract the activations of the pretrained model from the eight activations of the finetuned models, at every layer. We then compute the CKA (following (Kornblith et al., 2019)) between activations of two different models at every layer, across all model pairs. Finally, we average the results over all layers.
261
+
262
+ Pairwise CKA on LoRA finetuned models. We compute Fig. 2b) as follows. We first take the set of eight LoRA models we merge in in Tab. 1, and extract the intermediate activations over all LoRA layers of each model and over the same data used in our FFT CKA plots. Specifically, these layers are every key, query, value and projection layer of each model. Since LoRA finetuning adds new parameters to a pretrained model, there are no layers from the pretrained model to subtract. Thus, we
263
+
264
+ directly compute CKA over the activations at the same layer across LoRA model pairs, and average over all layers.
265
+
266
+ Pairwise CKA on LoRA finetuned models aligned with KnOTS. We compute Fig. 2c) as follows. This procedure is extremely similar to computing the CKAs for LoRA finetuned models, with one small difference. Specifically, rather than computing the CKAs from the output activations of LoRA layers, we instead calculate the CKA over the outputs of different $[V^{(i)}]^T$ for the same layer of different LoRA models (using the same data again). Afterwards, we average the results across all layers.
267
+
268
+ # C TUNING THE HYPERPARAMETERS FOR DIFFERENT MERGING BASELINES
269
+
270
+ Scaling co-efficient: A single scalar scaling co-efficient is tuned across the range [0.1, 0.2, 0.3,..., 1.0]
271
+
272
+ top- $k$ : Like Yadav et al. (2023), we define top- $k$ the percentage of task-update elements retained when merging. It is tuned across the range [10, 20, 30,..., 100]
273
+
274
+ DARE-pruning co-efficient $(p)$ : [0.99, 0.9, 0.8, ..., 0.1]
275
+
276
+ DARE-Seeds: We evaluated DARE over the following five seeds: [420, 421, 422, 423, 424].
277
+
278
+ For methods such as TIES (Yadav et al., 2023) and DARE (Yu et al., 2024) which involve tuning more than one scaling co-efficient we tune by performing a linear-search by first tuning the scaling coefficient and then the corresponding pruning hyperparameter i.e. top- $k$ for TIES and DARE-pruning co-efficient for DARE. The default value used for TIES top- $k$ is 30 and for the DARE-pruning co-efficient is 0.9 as recommended by their respective baselines.
279
+
280
+ # D TRAINING DETAILS
281
+
282
+ Training Vision models. We make use of the CLIP (Radford et al., 2021) based ViT-B/32 and ViT-L/14 models from Hugging Face (HF). These models are then LoRA fine-tuned using HF's PEFT LoRA library. Across all our experiments we initialize the LoRA layers across the query, key, value and output layer. Note that these are the only learnable layers. We set the LoRA rank to be 16, LoRA alpha to be 16, LoRA dropout to be 0.1 and disable the use of bias parameters. All models are trained using the AdamW (Loshchilov & Hutter, 2019) optimizer, with a cosine learning rate scheduler (Loshchilov & Hutter, 2017) using Cross-Entropy loss.
283
+
284
+ The ViT-B/32 models were fine-tuned on the 8 vision tasks using a standard learning rate of 1e-5, weight decay of 1e-1 and label smoothing set to 0.
285
+
286
+ The ViT-L/14 models were fine-tuned on the 8 vision tasks using a standard learning rate of 3e-4, weight decay of 1e-4 and label smoothing set to 0.
287
+
288
+ Across all our experiments the text encoder in the CLIP-model remains frozen and the text embeddings are obtained by passing the class labels through the text encoder.
289
+
290
+ Training LLMs on NLI tasks. For the setting in § 5.2 we use the LLama-3 8B parameter model. We initialize the model using the "AutoModelForSequenceClassification" model class from Hugging Face's "AutoModel" to classify across 3 classes. The models are LoRA fine-tuned using the PEFT LoRA library. We initialize rank-16 LoRA weights across the weights of the attention layer only i.e. the query, key, value and output layer. The models were trained using AdamW (Loshchilov & Hutter, 2019) optimizer using a linear learning rate scheduler, with a learning rate of 3e-5 and warm steps set to 6% of the total number of training steps. For datasets like QNLI (Wang et al., 2019), RTE (Wang et al., 2019) and SCITAIL (Khot et al., 2018) which only employ two of the three classes, we simply mask the missing label when finetuning and evaluating on these datasets.
291
+
292
+ During merging we only merge the Llama back-bone with the LoRA layers and use task-specific head when evaluating across each dataset. Even for the merged model we use the merged backbone and task-specific head during evaluation.
293
+
294
+ Table A1: Eight models per-task results including Fisher weight averaging. We merge eight ViT-B/32 models finetuned with LoRA on different image classification datasets. "Finetuned" refers to the accuracy of each finetuned model on the dataset it was trained on. We report the per-task (including the average) normalized-accuracies across other merging baselines. These describe how close they get to the "Finetuned" accuracy.
295
+
296
+ <table><tr><td rowspan="2">Method</td><td colspan="9">Datasets</td></tr><tr><td>Cars</td><td>DTD</td><td>EuroSAT</td><td>GTSRB</td><td>MNIST</td><td>RESISC45</td><td>SUN397</td><td>SVHN</td><td>Avg</td></tr><tr><td colspan="10">Per-Task Absolute Accuracies (%)</td></tr><tr><td>Finetuned</td><td>74.0</td><td>58.3</td><td>99.0</td><td>92.7</td><td>99.3</td><td>88.4</td><td>64.5</td><td>96.2</td><td>84.1</td></tr><tr><td colspan="10">Per-Task Accuracies of Merged Models Normalized Against Finetuned Models (%)</td></tr><tr><td>RegMean</td><td>80.2</td><td>71.3</td><td>37.9</td><td>47.3</td><td>43.1</td><td>70.5</td><td>93.9</td><td>43.0</td><td>60.9</td></tr><tr><td>Fisher</td><td>84.5</td><td>72.4</td><td>44.4</td><td>55.8</td><td>47.8</td><td>70.9</td><td>96.1</td><td>39.2</td><td>63.9</td></tr><tr><td>TA</td><td>82.0</td><td>73.6</td><td>48.8</td><td>42.1</td><td>53.1</td><td>71.5</td><td>97.5</td><td>41.2</td><td>63.7</td></tr><tr><td>TIES</td><td>82.2</td><td>72.8</td><td>50.0</td><td>36.8</td><td>56.8</td><td>69.4</td><td>96.9</td><td>44.6</td><td>63.7</td></tr><tr><td>DARE-TIES</td><td>81.4</td><td>74.5</td><td>50.8</td><td>39.2</td><td>55.0</td><td>70.7</td><td>97.6</td><td>40.1</td><td>63.7</td></tr><tr><td>KnOTS-TIES</td><td>82.7</td><td>73.7</td><td>49.3</td><td>48.9</td><td>68.9</td><td>70.9</td><td>95.5</td><td>53.8</td><td>68.0</td></tr><tr><td>KnOTS-DARE-TIES</td><td>81.8</td><td>75.9</td><td>50.7</td><td>40.3</td><td>53.2</td><td>70.2</td><td>97.9</td><td>41.0</td><td>63.9</td></tr></table>
297
+
298
+ Compute resources. All of our experiments were conducted on machines with one Nvidia A40 with 48GB of VRAM, and a CPU that has 8 workers. We trained all our models across these machines, and also applied every merging algorithm in this environment. KnOTS is capable of running entirely on the CPU. We compute the SVD using the Pytorch (Paszke et al., 2019) "torch.linalg.svd" solver. However, we note that more efficient SVD algorithms can easily be employed with our approach, such as the recent Fast SVD (Xu et al., 2023) which is designed for low-rank matrices.
299
+
300
+ Datasets and licenses. This paper uses the following datasets and associated licenses. Cars (Krause et al., 2013) and GTSRB (Stallkamp et al., 2011) both use the Creative Commons License. EuroSAT (Helber et al., 2019) is under the MIT license and MNIST (LeCun, 1998) is under the GNU General Public License. We could not find the licenses of DTD (Cimpoi et al., 2014), RESISC45 (Cheng et al., 2017), SVHN (Netzer et al., 2011) and SUN397 (Xiao et al., 2016).
301
+
302
+ # E COMPARISON WITH A FINETUNING BENCHMARK
303
+
304
+ We also compare KnOTS against the popular finetuning benchmark Fisher Weight Averaging (Matena & Raffel, 2022) in the same setting as Tab. 1. We classify this method as finetuning because it adds learnable parameters to every model that are optimized via gradient descent to obtain the best merged model. We select the best reported Fisher model according to the hyperparameter configuration which achieved the best performance on the same held-out validation data as all methods in this setting. Our hyperparameter search consisted of two ranges. First, the number of examples used to compute the Fisher information matrices: [256, 512, 1024, 2048] (selected from the training data of each dataset). Second, the scaling term to merge model parameters: [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]. The best performing configuration on our held-out validation dataset used a scaling coefficient of 1.0 and required 256 examples to compute the Fisher weights. Tab. A1 summarizes the results. Overall, we observe that while Fisher matches TIES, it is substantially outperformed by KnOTS—a method that doesn't require any training.
305
+
306
+ # F JOINT TASK FULL PERFORMANCES
307
+
308
+ Tab. A2 shows performances for each merging method across all datasets on the Joint-task. Each dataset column shows results on images only from the dataset, but with using the joint labels-set of 748 labels.
309
+
310
+ Finding synonymous labels. After removing duplicates from the joint label space, we are left with 748 total labels. However, a manual search over these labels reveals that some may be synonyms/hyponyms of each other. To get a better idea of how many there are, we encode each label using a
311
+
312
+ Table A2: Eight models joint-task results. We merge eight ViT-B/32 models finetuned with LoRA on different datasets. We report the joint-task performances for several merging methods. KnOTS-TIES improves over baselines by significant margins across across nearly every evaluation, often only trading best performances with the "Ensemble."
313
+
314
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">Metric</td><td colspan="9">Joint-Task Performances (%)</td></tr><tr><td>Cars</td><td>DTD</td><td>EuroSAT</td><td>GTSRB</td><td>MNIST</td><td>RESISC45</td><td>SUN397</td><td>SVHN</td><td>Union</td></tr><tr><td rowspan="3">Ensemble</td><td>Hits@1</td><td>58.5</td><td>41.3</td><td>16.9</td><td>29.5</td><td>35.8</td><td>54.2</td><td>62.4</td><td>25.1</td><td>40.7</td></tr><tr><td>Hits@3</td><td>83.6</td><td>61.4</td><td>31.4</td><td>59.5</td><td>58.0</td><td>78.2</td><td>84.0</td><td>44.3</td><td>63.1</td></tr><tr><td>Hits@5</td><td>91.0</td><td>72.4</td><td>40.0</td><td>73.0</td><td>69.1</td><td>85.9</td><td>89.5</td><td>55.2</td><td>72.6</td></tr><tr><td rowspan="3">TA</td><td>Hits@1</td><td>60.7</td><td>40.7</td><td>15.3</td><td>38.8</td><td>31.8</td><td>59.7</td><td>61.9</td><td>29.2</td><td>43.5</td></tr><tr><td>Hits@3</td><td>84.9</td><td>63.7</td><td>23.0</td><td>66.1</td><td>48.4</td><td>83.6</td><td>83.9</td><td>50.1</td><td>65.2</td></tr><tr><td>Hits@5</td><td>92.0</td><td>74.0</td><td>31.0</td><td>77.9</td><td>55.7</td><td>90.2</td><td>89.9</td><td>61.6</td><td>74.0</td></tr><tr><td rowspan="3">TIES</td><td>Hits@1</td><td>60.4</td><td>39.7</td><td>13.0</td><td>35.0</td><td>33.4</td><td>58.6</td><td>61.3</td><td>32.9</td><td>43.6</td></tr><tr><td>Hits@3</td><td>84.9</td><td>61.9</td><td>21.9</td><td>63.3</td><td>48.2</td><td>82.8</td><td>83.7</td><td>53.6</td><td>65.3</td></tr><tr><td>Hits@5</td><td>92.1</td><td>72.4</td><td>29.0</td><td>75.3</td><td>54.0</td><td>89.4</td><td>89.9</td><td>64.1</td><td>73.9</td></tr><tr><td rowspan="3">DARE-TIES</td><td>Hits@1</td><td>60.8</td><td>39.3</td><td>12.8</td><td>33.7</td><td>34.3</td><td>57.5</td><td>60.4</td><td>35.5</td><td>44.0</td></tr><tr><td>Hits@3</td><td>85.3</td><td>61.4</td><td>18.1</td><td>63.6</td><td>50.2</td><td>82.3</td><td>82.6</td><td>57.8</td><td>66.4</td></tr><tr><td>Hits@5</td><td>92.6</td><td>73.0</td><td>20.9</td><td>74.6</td><td>55.7</td><td>89.0</td><td>89.1</td><td>69.5</td><td>75.1</td></tr><tr><td rowspan="3">KnOTS-TIES</td><td>Hits@1</td><td>61.7</td><td>40.5</td><td>16.2</td><td>44.2</td><td>39.1</td><td>59.0</td><td>60.6</td><td>36.7</td><td>46.8</td></tr><tr><td>Hits@3</td><td>85.8</td><td>63.8</td><td>22.3</td><td>69.0</td><td>52.6</td><td>83.9</td><td>82.8</td><td>58.4</td><td>68.1</td></tr><tr><td>Hits@5</td><td>92.6</td><td>74.5</td><td>31.1</td><td>79.8</td><td>58.4</td><td>90.4</td><td>89.1</td><td>68.5</td><td>76.3</td></tr><tr><td rowspan="3">KnOTS-DARE-TIES</td><td>Hits@1</td><td>60.4</td><td>40.3</td><td>15.9</td><td>41.9</td><td>34.6</td><td>58.4</td><td>60.4</td><td>34.8</td><td>45.2</td></tr><tr><td>Hits@3</td><td>85.0</td><td>63.5</td><td>21.1</td><td>68.4</td><td>50.0</td><td>83.8</td><td>82.4</td><td>56.5</td><td>66.9</td></tr><tr><td>Hits@5</td><td>92.2</td><td>74.5</td><td>26.6</td><td>78.9</td><td>55.9</td><td>90.4</td><td>88.9</td><td>67.4</td><td>75.3</td></tr></table>
315
+
316
+ pretrained "distilbert-base-nli-mean-tokens" model taken from the Sentence Transformers library (Reimers & Gurevych, 2019), and compute the pairwise cosine-similarities between each label. We then take all label pairs with cosine-similarity $\geq 0.8$ to be "synonyms," and reproduce them at the bottom of this section in dictionary form where keys and values are tuples containing "(label, dataset origin)." In total, we find 111 synonyms, leading to an average of 0.15 synonyms per-label and 1.95 synonyms per-labels that have synonyms. Thus, measuring performance on the joint-task using "Hits@k" with $k = \{1,3,5\}$ appears to be a suitable choice.
317
+
318
+ Below we print all synonyms found by our automatic search.
319
+
320
+ ```javascript
321
+ found synonyms $=$ { (lake natural', 'sun397'): [(lake', 'resisc45')], ('forest', 'resisc45'): [ ('tree house', 'sun397'), ('rainforest', 'sun397'), ('forest broadleaf', 'sun397'), ('forest road', 'sun397'), ('forest needleleaf', 'sun397'), ('forest path', 'sun397') ], (athletic field outdoor', 'sun397'): [(ground track field', 'resisc45')], ('lake or sea', 'eurosat'): [(lake', 'resisc45')], ('rainforest', 'sun397'): [(forest', 'resisc45')], ('iceberg', 'sun397'): [(snowberg', 'resisc45')], ('meadow', 'resisc45'): [ ('field wild', 'sun397'), ('park', 'sun397'), ('field cultivated', 'sun397'), ('pasture land', 'eurosat'), ('yard', 'sun397'), ('pasture', 'sun397') ], (pond', 'sun397'): [(lake', 'resisc45')], ('ground track field', 'resisc45'): [ ('athletic field outdoor', 'sun397'), ('track outdoor', 'sun397') ], (desert vegetation', 'sun397'): [(desert', 'resisc45')], ('marsh', 'sun397'): [(wetland, 'resisc45')], ('freeway', 'resisc45'): [(highway', 'sun397')], ('islet', 'sun397'): [(island, 'resisc45')], ('permanent crop land', 'eurosat'): [ ('rectangular farmland', 'resisc45'), ('field cultivated', 'sun397') ], (track outdoor', 'sun397'): [(ground track field', 'resisc45')], ('swamp', 'sun397'): [(wetland, 'resisc45')],
322
+ ```
323
+
324
+ ```javascript
325
+ ('sea ice', 'resisc45'): [(ice shelf', 'sun397'), ('ice floe', 'sun397')], ('desert', 'resisc45'): [(desert vegetation', 'sun397'), ('desert sand', 'sun397')], ('snowberg', 'resisc45'): [(iceberg', 'sun397'), ('mountain snowy', 'sun397'), ('snowfield', 'sun397')], ('railway station', 'resisc45'): [ ('train railway', 'sun397'), ('railroad track', 'sun397'), ('train station platform', 'sun397') ], ('street', 'sun397'): [(commercial area', 'resisc45'), ('intersection', 'resisc45') ], ('rectangular farmland', 'resisc45'): [(permanent crop land', 'eurosat}], ('field wild', 'sun397'): [(meadow', 'resisc45')], ('thermal power station', 'resisc45'): [(electrical substation', 'sun397')], ('lake', 'resisc45'): [(lake natural', 'sun397'), ('lake or sea', 'eurosat'), ('pond', 'sun397') ], ('runway', 'sun397'): [(airplane', 'resisc45'), ('airport', 'resisc45')], ('baseball field', 'sun397'): [(baseball diamond', 'resisc45')], ('industrial area', 'sun397'): [(industrial buildings or commercial buildings', 'eurosat') ], ('ice shelf', 'sun397'): [(sea ice', 'resisc45')], ('airplane', 'resisc45'): [(runway', 'sun397'), ('airplane cabin', 'sun397')], ('park', 'sun397'): [(forest', 'resisc45'), (meadow', 'resisc45')], ('thermal power station', 'resisc45'): [(electrical substation', 'sun397')], ('electrical substation', 'sun397'): [(thermal power station', 'resisc45')], ('field cultivated', 'sun397'): [(meadow', 'resisc45'), ('permanent crop land', 'eurosat'), ('circular farmland', 'resisc45'), ('pasture land', 'eurosat') ], ('patio', 'sun397'): [(terrace', 'resisc45')], ('shopfront', 'sun397'): [(commercial area', 'resisc45')], ('highway', 'sun397'): [(freeway', 'resisc45'), (highway or road, 'eurosat')], ('circular farmland', 'resisc45'): [(field cultivated', sun397'), (pasture land, 'eurosat'), ('pasture', sun397') ], ('residential buildings or homes or apartments', 'eurosat'): [(residential neighborhood', sun397) ], ('pasture land', 'eurosat'): [(meadow', resisc45'), (field cultivated', sun397'), (circular farmland, resisc45'), (yard, sun397'), (pasture, sun397) ], ('desert sand', sun397): [(desert, resisc45)], ('train railway', sun397): [(railway, resisc45)], ('wetland', resisc45): [(marsh, sun397), (swamp, sun397)], ('commercial area', resisc45): [(street, sun397), (shopfront, sun397), (industrial buildings or commercial buildings, 'eurosat') ], ('industrial buildings or commercial buildings', 'eurosat'): [(industrial area, sun397), (commercial area, 'resisc45') ],
326
+ ```
327
+
328
+ ```txt
329
+ ('airport', 'resisc45'): [(airport terminal', 'sun397'), ('runway', 'sun397')],
330
+ ('tennis court outdoor', 'sun397'): [(tennis court', 'resisc45')],
331
+ ('baseball diamond', 'resisc45'): [
332
+ ('baseball field', 'sun397'), ('stadium baseball', 'sun397'),
333
+ ('batters box', 'sun397')
334
+ ],
335
+ ('railway', 'resisc45'): [
336
+ ('train railway', 'sun397'), ('railroad track', 'sun397'),
337
+ ('train station platform', 'sun397')
338
+ ],
339
+ ('highway or road', 'eurosat'): [(highway, 'sun397')],
340
+ ('yard', 'sun397'): [(meadow, 'resisc45'), ('pasture land', 'eurosat'),
341
+ ('railroad track', 'sun397'): [
342
+ ('railway station', 'resisc45'), ('railway', 'resisc45')
343
+ ],
344
+ ('tennis court', 'resisc45'): [
345
+ ('tennis court outdoor', 'sun397'), ('tennis court indoor', 'sun397')
346
+ ],
347
+ ('residential neighborhood', 'sun397'): [
348
+ ('residential buildings or homes or apartments', 'eurosat')
349
+ ],
350
+ ('island', 'resisc45'): [(islet, 'sun397')],
351
+ ('train station platform', 'sun397'): [(railway station, 'resisc45'),
352
+ ('pasture', 'sun397'): [
353
+ ('meadow', 'resisc45'), ('circular farmland', 'resisc45'),
354
+ ('pasture land', 'eurosat')
355
+ ],
356
+ ('terrace', 'resisc45'): [
357
+ ('courtyard', 'sun397'), ('promenade deck', 'sun397'),
358
+ ('pavilion', 'sun397'), ('patio', 'sun397'),
359
+ ('carrousel', 'sun397'), ('balcony exterior', 'sun397'),
360
+ ('veranda', 'sun397')
361
+ ],
362
+ ```
2025/Model merging with SVD to tie the Knots/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f76186932b074a8a9b0ccedabde3a1ed1d35c525fe35c8cdebf06031abb7b623
3
+ size 419865
2025/Model merging with SVD to tie the Knots/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model-Agnostic Knowledge Guided Correction for Improved Neural Surrogate Rollout/ad4c2f01-4f37-441e-a45e-bb12f3d79389_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model-Agnostic Knowledge Guided Correction for Improved Neural Surrogate Rollout/ad4c2f01-4f37-441e-a45e-bb12f3d79389_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model-Agnostic Knowledge Guided Correction for Improved Neural Surrogate Rollout/ad4c2f01-4f37-441e-a45e-bb12f3d79389_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0213aaea4bb4cae80ee1cbab6aaf1e42cae0582e8499e81636bfd85112dfb10
3
+ size 4975261
2025/Model-Agnostic Knowledge Guided Correction for Improved Neural Surrogate Rollout/full.md ADDED
@@ -0,0 +1,368 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MODEL-AGNOSTIC KNOWLEDGE GUIDED CORRECTION FOR IMPROVED NEURAL SURROGATE ROLLOUT
2
+
3
+ Bharat Srikishan $^{1*}$ , Daniel O'Malley $^{2}$ , Mohamed Mehana $^{2}$ , Nicholas Lubbers $^{2}$ , Nikhil Muralidhar $^{1}$
4
+
5
+ <sup>1</sup>Tevens Institute of Technology, <sup>2</sup>Los Alamos National Laboratory {bsrikish, nmurali1}@stevens.edu, {omalled, mzm, nlabbers}@lanl.gov
6
+
7
+ # ABSTRACT
8
+
9
+ Modeling the evolution of physical systems is critical to many applications in science and engineering. As the evolution of these systems is governed by partial differential equations (PDEs), there are a number of computational simulations which resolve these systems with high accuracy. However, as these simulations incur high computational costs, they are infeasible to be employed for large-scale analysis. A popular alternative to simulators are neural network surrogates which are trained in a data-driven manner and are much more computationally efficient. However, these surrogate models suffer from high rollout error when used autoregressively, especially when confronted with training data paucity. Existing work proposes to improve surrogate rollout error by either including physical loss terms directly in the optimization of the model or incorporating computational simulators as 'differentiable layers' in the neural network. Both of these approaches have their challenges, with physical loss functions suffering from slow convergence for stiff PDEs and simulator layers requiring gradients which are not always available, especially in legacy simulators. We propose the Hybrid PDE Predictor with Reinforcement Learning (HyPER) model: a model-agnostic, RL based, cost-aware model which combines a neural surrogate, RL decision model, and a physics simulator (with or without gradients) to reduce surrogate rollout error significantly. In addition to reducing in-distribution rollout error by $47\% - 78\%$ , HyPER learns an intelligent policy that is adaptable to changing physical conditions and resistant to noise corruption. Code available at https://github.com/scailab/HyPER.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Scientific simulations have been the workhorse enabling novel discoveries across many scientific disciplines. However, executing fine-grained simulations of a scientific process of interest is a costly undertaking requiring large computational resources and long execution times. In the past decade, the advent of low-cost, efficient GPU architectures has enabled the re-emergence of a powerful function approximation paradigm called deep learning (DL). These powerful DL models, with the ability to represent highly non-linear functions can be leveraged as surrogates to costly scientific simulations. Recently, the rapid progress of DL has greatly impacted scientific machine learning (SciML) with the development of neural surrogates in numerous application domains. Some highly-impactful applications include protein structure prediction, molecular discovery Schauerl & Denny (2022); Smith et al. (2018) and domains governed by partial differential equations (PDE) Brunton & Kutz (2024); Raissi et al. (2019); Lu et al. (2021b). Neural surrogates have also been successfully employed for modeling fluid dynamics in laminar regimes like modeling blood flow in cardiovascular systems Kissas et al. (2020) and for modeling turbulent Duraisamy et al. (2019) and multi-phase flows Muralidhar et al. (2021); Raj et al. (2023); Siddani et al. (2021).
14
+
15
+ Neural Surrogates are Data Hungry. Although neural surrogates are effective at modeling complex functions, this ability is usually conditioned upon learning from a large trove of representative data. The data-hungry nature of popular neural surrogates like neural operators is well known in
16
+
17
+ existing work (Li et al., 2020; Lu et al., 2021a; Tripura et al., 2024; Howard et al., 2023; Lu et al., 2022). However, many scientific applications suffer from data paucity due to the high cost of the data collection process (i.e., primarily due to high cost of scientific simulations). Hence, neural surrogates employed to model a scientific process of interest, need to address the data paucity bottleneck by learning effectively with a low volume of training data.
18
+
19
+ Rollout Errors in Neural Surrogates. Although computational simulations have been designed for modeling various types of physical systems, those exhibiting transient dynamics are especially challenging to model. Solutions to systems exhibiting transient dynamics are usually
20
+
21
+ obtained by discrete-time evolution of the dynamics. Simulators used to model such systems are invoked autoregressively and thereby encounter numerical instability and error buildup over long estimation horizons. Such error buildup during autoregressive invocation is termed rollout error. Effective techniques have been developed to reduce rollout error of computational simulations and increase their numerical stability over long rollouts. Although autoregressive rollout of neural surrogates is also affected by rollout error, solutions to minimize this error buildup have not been widely investigated. Recently, (Margazoglou & Magri, 2023) has inspected the stability of echo-state networks during autoregressive rollout and List et al. (2024); Carey et al. (2024); Lippe et al. (2024) have characterized rollout errors in more general neural surrogates. However, a systematic solution to alleviate rollout error in neural surrogates for modeling transient dynamics is still lacking.
22
+
23
+ ![](images/aea3df3c903fc690d99d88ad281fef512838851e666ef337d910d29eaf0e6ea8.jpg)
24
+ Figure 1: Cumulative MSE depicting rollout error for a single trajectory of HyPER vs surrogate only methods. x's mark the timesteps during the trajectory where our RL policy calls the simulator.
25
+
26
+ Knowledge-Guided Neural Surrogates. One popular method of addressing errors due to data paucity in neural surrogates is to leverage knowledge of the theoretical model governing the scientific process. Previous efforts have incorporated domain knowledge (as ODEs, PDEs) while training the DL surrogate to develop knowledge-guided learning pipelines (Raissi et al., 2019; Karpatne et al., 2022; Rackauckas et al., 2020; Gao et al., 2021). Most of these approaches incorporate the PDE governing the system dynamics as soft regularizers while training the neural surrogates. A majority of such approaches exhibit slow convergence and catastrophic failures in challenging, stiff PDE conditions (Krishnapriyan et al., 2021; Wang et al., 2022).
27
+
28
+ Hybrid-Modeling All approaches discussed thus far are so-called surrogate-only (SUG) approaches. Here, the computational simulator is employed only as a means of generating data to train the neural surrogate and discarded post the training. SUG approaches employ only the pre-trained neural surrogate during inference. Although SUG provide instantaneous responses relative to computational simulations, they generally have limited generalization ability outside the domain of the training data. An effective complement to SUG approaches are hybrid-modeling approaches (Kurz et al., 2022; Karpatne et al., 2022), that jointly resolve a query by incorporating surrogates in conjunction with computational solvers. Otherwise stated, hybrid-modeling pipelines employ a 'solver-in-the-loop' (Um et al., 2020) approach. In addition to neural surrogates, there exist a number of classical hybrid modeling techniques which combine a full order model (FOM) with a reduced order model (ROM) such as proper orthogonal decomposition (Willcox & Peraire, 2002), dynamic model decomposition (Kutz et al., 2016), and multi-scale methods. While these methods are used to accelerate scientific simulations, they are often limited in expressivity, especially in modeling complex non-linear dynamics. Recent hybrid models (Suh et al., 2023) generally have a static coupling between the components in the model and require a static interaction/transition between the FOM and the ROM, while our method proposes an adaptable and learnable interaction between the neural surrogate and the simulator. Our proposed method allows dynamic integration of an FOM (fine-grained simulator) with ROM (neural surrogate) using reinforcement learning.
29
+
30
+ Knowledge-Guidance with Hybrid-Modeling. Hybrid-modeling approaches are inherently knowledge-guided. A majority of the recent hybrid-modeling approaches are based on directly incorporating PDE solvers as additional layers in the deep learning architecture of neural surro
31
+
32
+ ![](images/66b69cf106f2cabbfb972c8b7b7dd811933904be1d5bef626db9aa0838f4901b.jpg)
33
+ Figure 2: Overview of Hybrid PDE Predictor with RL (HyPER) with example rollout. Here $\pi_{\theta}$ is the decision model, $f_{\phi}$ is the surrogate, and $S$ is the simulator. At $t = 9.0$ in the above trajectory, the decision policy invokes the simulator, correcting the trajectory to reduce rollout error. The effect of this knowledge-guided correction can be observed by a reduction in absolute error (dotted green circle) in the figure.
34
+
35
+ gates (Chen et al., 2018; Belbute-Peres et al., 2020; Donti et al., 2021; Pachalieva et al., 2022). While such approaches address the issues of large errors under data paucity and during rollout, inherent in SUG approaches, they impose the crippling restriction of differentiability on the computational solvers to be incorporated as part of the DL pipeline. Most solvers and computational simulations are NOT differentiable out-of-the-box and hence imposing such differentiability constraints drastically curtails the applicability of current hybrid-modeling approaches.
36
+
37
+ To address the existing challenges with surrogate-only and hybrid modeling approaches, we propose the Hybrid PDE Predictor with RL (HyPER) framework. HyPER is a model-agnostic, simulator-agnostic framework that learns to invoke the costly computational simulator (in a cost-aware manner) as knowledge-guided correction to alleviate the effects of rollout errors in surrogates trained with low volumes of training data. Fig. 2 depicts the proposed HyPER framework. Our contributions are as follows.
38
+
39
+ - HyPER is a first of its kind knowledge-guided correction mechanism that incorporates simulators in the loop without the requirement of the simulators to be differentiable.
40
+ - HyPER is model agnostic (i.e., functions with any neural surrogate, scientific simulator) and trained in a cost-aware manner, to intelligently invoke the simulator to correct the rollout error of the neural surrogates.
41
+ - We demonstrate through rigorous experimentation on in-distribution, out-of-distribution and noisy data that HyPER significantly reduces rollout error relative to SUG approaches by comparing with state-of-the-art neural surrogates.
42
+
43
+ # 2 METHOD
44
+
45
+ # 2.1 PDE PREDICTION
46
+
47
+ We aim to solve PDEs involving spatial dimensions $\pmb{x} = [x_{1}, x_{2}, \dots, x_{m}] \in \mathbb{R}^{m}$ and scalar time $t \in [0, T]$ . These PDEs relate solution function $\pmb{u}(\pmb{x}, t): \mathbb{R}^{m} \times [0, T] \to \mathbb{R}^{n}$ to its partial derivatives over the domain. We assume we have initial conditions $\pmb{u}(\pmb{x}, t = 0)$ and boundary conditions $\pmb{u}_{B}(\pmb{x} = \pmb{x}_{B}, t)$ which define the field values at time 0 and at the boundaries of the domain respectively. These time-dependent PDEs can be generally defined as:
48
+
49
+ $$
50
+ \frac {\partial \boldsymbol {u}}{\partial t} = \mathcal {F} (\boldsymbol {x}, t, \boldsymbol {u}, \frac {\partial \boldsymbol {u}}{\partial \boldsymbol {x}}, \frac {\partial^ {2} \boldsymbol {u}}{\partial \boldsymbol {x} ^ {2}}, \dots) \tag {1}
51
+ $$
52
+
53
+ We focus on autoregressive rollout of these PDEs over time, which can be defined with an function $g$ taking current state and time as inputs and producing the next state:
54
+
55
+ $$
56
+ g (\boldsymbol {u} (\boldsymbol {x}, t), \Delta t) = \boldsymbol {u} (\boldsymbol {x}, t + \Delta t) \tag {2}
57
+ $$
58
+
59
+ Note that the equation above can be applied autoregressively over any number of timesteps to unroll a PDE trajectory. The cumulative error of this autoregressive process is defined as the rollout error, which we aim to minimize.
60
+
61
+ # 2.2 HYPER COMPONENTS
62
+
63
+ Surrogate ML Model For the sake of conciseness, we shorten $\pmb{u}(\pmb{x},t)$ to $\pmb{u}_t$ . We begin with a machine learning model $f_{\phi}(\pmb{u}_t)$ , which we denote as the surrogate. This model can be any deep learning model with parameters $\phi$ that predicts next state $\pmb{u}_{t + 1}$ given starting state and time $\pmb{u}_t$ .
64
+
65
+ **Simulator** We also define a PDE simulator $S(\boldsymbol{u}_t)$ which numerically solves the PDE to find the next state $\boldsymbol{u}_{t+1}$ . Crucially, this simulator is only required to return the next state without any gradient information during training and inference.
66
+
67
+ Decision Model Finally, we have a decision model $d_{\theta}(\pmb{u}_t)$ which takes current state at time $t$ and outputs a next action: either call the surrogate $f_{\phi}$ or the simulator $S$ . In HyPER we implement our decision model as a learned policy $\pi_{\theta}$ which we train using reinforcement learning (RL).
68
+
69
+ We formalize our decision model using a Markov Decision Process (MDP) which is a tuple $(\mathbb{S},\mathbb{A},P,r)$ . Our states $\mathbb{S}$ consist of current state $\pmb{u}$ and current time $t$ . Our action space is binary at each timestep and defined as $a:\{0 = \text{call surrogate}, 1 = \text{call simulator}\}$ . Our reward function for a trajectory of length $T$ is:
70
+
71
+ $$
72
+ R (\boldsymbol {a}) = \sum_ {t = 0} ^ {T - 1} - \mathcal {L} \left(f _ {\phi}, S, \boldsymbol {u} _ {t}, \boldsymbol {u} _ {t + 1}, a _ {t}\right) + b \left(f _ {\phi}, S, \boldsymbol {u} _ {t}\right) - \mathcal {C} (\boldsymbol {a}, \lambda , T) \tag {3}
73
+ $$
74
+
75
+ Here $\mathcal{L}$ represents an error function, $b$ is a baseline function, and $\mathcal{C}$ is a cost function. The baseline function stabilizes the reward values and leads to better policy learning. The baseline function $b$ we use is the mean squared error of randomly calling the simulator the same number of times as our current HyPER policy. Our error function is defined as the mean squared error of either calling the surrogate or simulator according to the policy action:
76
+
77
+ $$
78
+ \mathcal {L} \left(f _ {\phi}, S, \boldsymbol {u} _ {t}, \boldsymbol {u} _ {t + 1}, a _ {t}\right) = \left(\mathcal {G} \left(\boldsymbol {u} _ {t}\right) - \boldsymbol {u} _ {t + 1}\right) ^ {2} \tag {4}
79
+ $$
80
+
81
+ $$
82
+ \mathcal {G} \left(\boldsymbol {u} _ {t}, a _ {t}\right) = \left\{ \begin{array}{l l} f _ {\phi} (\boldsymbol {u} _ {t}) & \text {w h e n} a _ {t} = 0 \\ S (\boldsymbol {u} _ {t}) & \text {w h e n} a _ {t} = 1 \end{array} \right. \tag {5}
83
+ $$
84
+
85
+ $T$ is the length of the trajectory and $\lambda$ is a hyperparameter set by the user to specify what percentage of the trajectory to call the simulator. For example, if $\lambda = 0.5$ then the cost function will penalize the reward if the simulator is not called $50\%$ of the time. Our cost function is defined as the absolute difference between $\lambda$ and the percent of the trajectory that our policy called the simulator:
86
+
87
+ $$
88
+ \mathcal {C} (\boldsymbol {a}, \lambda , T) = \left| \frac {\| \boldsymbol {a} \| _ {1}}{T} - \lambda \right| \tag {6}
89
+ $$
90
+
91
+ Intuitively, reward function 3 optimizes the RL decision model to minimize mean squared error while calling the simulator for $\lambda$ proportion of the trajectory. To learn a policy $\pi_{\theta}(a|\pmb{u}_t)$ we use the REINFORCE policy gradient algorithm (Sutton et al., 1999) training with the update:
92
+
93
+ $$
94
+ \nabla_ {\theta} J (\theta) = \mathbb {E} _ {\pi_ {\theta}} \left[ \sum_ {t = 0} ^ {T - 1} \nabla_ {\theta} \log \pi_ {\theta} \left(a _ {t} \mid \boldsymbol {u} _ {t}\right) \cdot R (\boldsymbol {a}) \right] \tag {7}
95
+ $$
96
+
97
+ For the full training algorithm and details of HyPER see Appendix A.1.
98
+
99
+ # 2.3 EXPERIMENTS
100
+
101
+ 2D Navier Stokes Dataset. We create a 2D incompressible Navier Stokes fluid flow dataset using $\Phi$ Flow (Holl & Thuerey, 2024) and follow the example of Gupta & Brandstetter (2022). We use the Navier-Stokes equations in vector velocity form along with an additional scalar field representing particle concentration:
102
+
103
+ $$
104
+ \frac {\partial \boldsymbol {v}}{\partial t} = - \boldsymbol {v} \cdot \nabla \boldsymbol {v} + \mu \nabla^ {2} \boldsymbol {v} - \nabla p + f \tag {8}
105
+ $$
106
+
107
+ $$
108
+ f = \{0, 0. 5 c \} \tag {9}
109
+ $$
110
+
111
+ $$
112
+ \nabla \cdot \boldsymbol {v} = 0 \tag {10}
113
+ $$
114
+
115
+ $$
116
+ \frac {\partial c}{\partial t} = - \boldsymbol {v} \cdot \nabla c \tag {11}
117
+ $$
118
+
119
+ Eq. 8 comprises a convection term $-\boldsymbol{v} \cdot \nabla \boldsymbol{v}$ , diffusion term $\mu \nabla^2 \boldsymbol{v}$ where $\mu$ indicates kinematic viscosity, a pressure term $\nabla p$ , and external force term $f$ . Eq. 9 defines the buoyant force which is applied in the y-direction. The velocity divergence term Eq. 10 enforces conservation of mass. Eq. 11 models the particle concentration field $c$ that is advected by the velocity vector field $\boldsymbol{v}$ . Note that $c$ influences $\boldsymbol{v}$ through force $f$ and $\boldsymbol{v}$ affects $c$ through Eq. 11, creating complex dynamics between fields. For our experiments, we generate 1,000 trajectories of 20 timesteps with $\Delta t = 1.5s$ at a grid size of 64x64, and diffusion coefficient $\mu = 0.01$ . We set our velocity boundary condition to $\boldsymbol{v} = 0$ (Dirichlet) and our concentration boundary condition to $\partial c / \partial x = 0$ (Neumann). While we simulate all the fields above, our experiments focus on predicting the particle concentration field $c$ . We split our 1000 trajectories into 3 sets: 400 for surrogate training, 400 for RL training, and 200 for testing. Our RL model selects 4 actions at a time, however HyPER puts no restrictions on action selection.
120
+
121
+ Subsurface Flow Dataset. To evaluate HyPER's ability to work with different PDEs and problem scales, we generate a subsurface flow dataset using the Julia-based DPFEHM (Pachalieva et al., 2022) simulator. We use DPFEHM to generate a 2D dataset of subsurface fluid flows modeled by the Richards equation:
122
+
123
+ $$
124
+ \frac {\partial \theta}{\partial t} = \nabla \cdot \mathbf {K} (h) (\nabla h + \nabla z) - T ^ {- 1} \tag {12}
125
+ $$
126
+
127
+ Eq. 12 models fluid flow underground in an unsaturated medium. $\theta$ represents the volumetric fluid content, $\mathbf{K}(h)$ is the unsaturated hydraulic conductivity, $h$ is the pressure, $\nabla z$ is the geodetic head gradient, and $T^{-1}$ is the fluid sink term. We generate 500 trajectories of 100 timesteps each with a grid size of 50x50 and timestep size of 10 seconds. Out of the 500 trajectories, 200 are used for surrogate training, 200 are used for RL training, and 100 are used for testing. We use Dirchlet boundary conditions (0) for volumetric flux on all sides of our domain but inject fluid at the top center of the domain at a rate of $0.01m / s$ . In our experiments, we predict the pressure field $h$ .
128
+
129
+ # 3 RESULTS AND DISCUSSION
130
+
131
+ In this section, we investigate the effectiveness of HyPER to model transient PDE systems efficiently and with minimal rollout error compared to surrogate-only (SUG) rollout. We compare with state-of-the-art neural surrogates including UNet and Fourier Neural Operator (FNO), MPP, and PDE-Refiner. Specifically, we investigate the effectiveness of HyPER rollouts under changing PDE dynamics and in noisy data settings. Further, we also demonstrate the surrogate-agnostic and simulator-agnostic nature of HyPER. Our experiments seek to answer the following research questions:
132
+
133
+ - RQ1: How effective are HyPER rollouts compared to SUG rollouts for transient PDE systems?
134
+ - RQ2: Are HyPER rollouts effective under changed physical conditions?
135
+ - RQ3: Are HyPER rollouts effective under noisy data conditions?
136
+ - RQ4: How crucial is the intelligent decision model for effective HyPER rollouts?
137
+ - RQ5: What is the error/efficiency trade-off between SUG, HyPER, and simulator-only paradigms?
138
+
139
+ # 3.1 RQ1: HYPER ROLLOUTS VS SUG
140
+
141
+ We begin by comparing HyPER to six SUG baselines: UNet, FNO, UNet-Multistep, MPP-ZS, MPP, and PDE-Refiner. All baselines except UNet-Multistep are trained in a one-step-ahead manner i.e., given the current state of the resolved field they are trained to predict the next state. Mean squared error (MSE) loss is used to train all surrogates over the full resolution trajectory. Note that all these baselines except MPP-ZS are trained with the same dataset that HyPER is trained with. For full training details see Appendix A.1 and for baseline details see Appendix A.6.
142
+
143
+ The UNet model is based on the modern UNet architecture in PDEArena (Gupta & Brandstetter, 2022) while the FNO model is built with the neuraloperator library (Kovachki et al., 2021; Li et al.,
144
+
145
+ Table 1: 2D Navier-Stokes results with best results in bold. Notice that HyPER rollout incurs significantly lower rollout (cumulative) error compared to SUG models.
146
+
147
+ <table><tr><td>2D Navier-Stokes</td><td>UNet</td><td>FNO</td><td>UNet-Multistep</td><td>MPP-ZS</td><td>MPP</td><td>PDE-Refiner</td><td>HyPER</td></tr><tr><td>Final MSE</td><td>0.019</td><td>0.053</td><td>0.016</td><td>0.22</td><td>0.036</td><td>0.024</td><td>0.011</td></tr><tr><td>Cumulative MSE</td><td>0.312</td><td>0.882</td><td>0.311</td><td>4.495</td><td>0.747</td><td>0.405</td><td>0.164</td></tr></table>
148
+
149
+ ![](images/fec3ee6b4bd5d640041e5146aa23b82640bafdba3cc8300fba74a54015fb27c3.jpg)
150
+ Figure 3: Predictions and absolute error snapshots of HyPER rollout for two distinct trajectories.
151
+
152
+ ![](images/a511c6910091cabfedf63a9ce731448a2bbe6f31b6e86a22d1641256914f2067.jpg)
153
+
154
+ 2020). UNet-Multistep is trained to specialize for rollout trajectory prediction, i.e. it minimizes MSE for 20-step autoregressive prediction. MPP-ZS (zero-shot) and MPP (McCabe et al., 2023) are large transformer based multi-task models which have been pretrained on a variety of fluid prediction tasks. MPP-ZS is the off-the-shelf pretrained model, while MPP is finetuned on our data. PDE-Refiner (Lippe et al., 2024) is a modern diffusion based model which both predicts the next timestep while adding a multi-step noisig/denoising process and has been shown to reduce rollout error. HyPER utilizes a UNet model that is pretrained on 400 trajectories while the RL model of HyPER is trained on a separate set of 400 trajectories with $\lambda = 0.3$ . All SUG baselines are trained using 800 trajectories (same as HyPER RL plus surrogate dataset) for 200 epochs. Table 1 shows the MSE of the final trajectory state (Final MSE) as well as the aggregated MSE (Cumulative MSE) over all trajectory states in a rollout. Both metrics are calculated as an average across 200 test trajectories for both SUG and HyPER rollouts. HyPER outperforms all baselines significantly, with an average improvement in cumulative rollout error of $68.30\%$ . While UNet-Multistep seems to be the best performing SUG method, because it trains across the full trajectory it learns a smoothed prediction that has poor high frequency detail (suffering from spectral bias) in comparison to UNet (see A.4 for examples). By incorporating the simulator, HyPER yields significantly lower cumulative rollout error while only invoking the simulator during $\sim 30\%$ of the trajectory for knowledge-guided correction of surrogate rollout.
155
+
156
+ In Figure 1 we plot the rollout MSE performance of HyPER versus the surrogate only (SUG) methods for a single sample trajectory. Note that HyPER outperforms both SUG models by a large margin while only invoking the simulator six times in the 20-step trajectory. Also see Figures 3(a) and 3(b) which depict qualitative snapshots from two distinct HyPER rollouts.
157
+
158
+ # 3.2 RQ2: HYPER ROLLOUTS WITH CHANGING PHYSICAL CONDITIONS
159
+
160
+ Pretrained neural surrogates are often confronted with modeling contexts with similar PDE dynamics but varied initial / boundary conditions. Effective rollouts under changing physical conditions is hence a crucial requirement for the effective use of neural surrogates in computational science. To this end, we inspect rollout errors of SUG and HyPER, under changing boundary conditions. Specifically, to test the adaptability of HyPER, we investigate HyPER rollouts with changing boundary conditions in our Navier-Stokes experiment. We generate a separate Navier-Stokes dataset which follows the same initial conditions of our previous experiment, but comprises a different velocity
161
+
162
+ boundary condition at the top boundary of the domain. Specifically, the velocity at the top boundary of the domain is increased from 0.0 to $0.5\mathrm{m / s}$ (imposing an intermittent external forcing effect causing the fluid to escape from the top of the domain) for four intermediate time-steps of the trajectory (timesteps 12-16). Following this, the boundary condition is reverted back to 0.0 for the rest of the trajectory. This results in the fluid escaping out of the top during these time steps changing the PDE dynamics significantly.
163
+
164
+ Table 2: Results depict rollout error for 2D Navier-Stokes with changing boundary conditions. Notice that HyPER accumulates lower rollout error compared to SUG approaches.
165
+
166
+ <table><tr><td>Changing Boundary</td><td>UNet-P</td><td>FNO-P</td><td>UNet</td><td>FNO</td><td>HyPER</td></tr><tr><td>Final MSE</td><td>0.362</td><td>0.412</td><td>0.014</td><td>0.027</td><td>0.027</td></tr><tr><td>Cumulative MSE</td><td>1.84</td><td>2.538</td><td>0.92</td><td>0.969</td><td>0.527</td></tr></table>
167
+
168
+ In this case, surrogates UNet-P and FNO-P are not re-trained with the changed boundary condition and hence show poor performance accumulating significant rollout error. UNet and FNO are trained on the changing boundary data (the same dataset as HyPER), but still suffer from poor rollout error. We train our HyPER RL policy with a pretrained surrogate (not trained on to the changed boundary setting) and a simulator (fully aware of the changed boundary condition). The RL policy of HyPER is trained with 400 of these changed trajectories to learn the optimal policy of (frugally) invoking the simulator to apply knowledge-guided correction to reduce surrogate rollout errors. As shown in Table 2, HyPER reduces cumulative error in this scenario by $71.36\%$ and $79.20\%$ relative to UNet-P and FNO-P rollout errors respectively. Even when compared to surrogates trained on the changing boundary data UNet and FNO, HyPER reduces rollout error by $42.72\%$ and $45.61\%$ respectively. In Figure 4a we demonstrate that HyPER has much lower rollout error than the UNet-P and FNO-P models. Figure 4b shows sample qualitative predictions of HyPER and SUG rollouts under the changing boundary scenario of interest, to further reinforce our point. As illustrated, our model prediction is much closer to the ground truth after the boundary condition has changed and fluid has escaped the box owing to the appropriately invoked knowledge-guided correction by the learned RL policy in response to increasing surrogate rollout error. Fig. 4a shows the significantly lower rollout error for HyPER rollout relative to UNet-P and FNO-P models.
169
+
170
+ ![](images/c261ddf599481c639dc2f18defd418bdc16100b0139b9acbc800946a788f91b2.jpg)
171
+ Figure 4: Predictions and absolute error of HyPER vs UNet and FNO for a single trajectory and timestep. Fig. 4a shows the rollout error accumulation over the trajectory with 'x' marking the times the simulator is called. Fig. 4b shows the resolved system state for a the same trajectory at a single timestep. Fig. 4b(i) shows the ground truth field while Fig. 4b(ii)-(iv) indicate the result of UNet, FNO and HyPER rollouts respectively. Fig. 4b(v)-(vii) depict the corresponding absolute errors. We notice that only HyPER rollouts capture the correct characteristics relative to the ground truth owing to the knowledge-guided correction while SUG models are unable to faithfully resolve the trajectory under changing physical conditions.
172
+
173
+ # 3.3 RQ3: HYPER ROLLOUTS WITH NOISY DATA
174
+
175
+ Neural surrogates, in addition to being data hungry and accumulating rollout error, have also been known to exhibit catastrophic failures in challenging PDE conditions (e.g., stiff PDEs) Krishnapriyan et al. (2021). As neural surrogates are a crucial part of HyPER rollouts, it is imperative
176
+
177
+ Table 3: Results depicting rollout error for the 2D-Navier-Stokes experiment, with random Gaussian noise added to inputs, at timesteps 12-16. $\sigma^2$ is the scale of the noise. The percentage reduction of cumulative MSE rollout error by HyPER, over the best performing SUG model is in parentheses.
178
+
179
+ <table><tr><td rowspan="2">Experiment</td><td colspan="5">Cumulative MSE</td></tr><tr><td>UNet-P</td><td>FNO-P</td><td>UNet</td><td>FNO</td><td>HyPER</td></tr><tr><td>Unimodal σ2= 1.0</td><td>2.931</td><td>2.523</td><td>1.61</td><td>1.713</td><td>1.291 (19.81%)</td></tr><tr><td>Unimodal σ2= 0.75</td><td>1.746</td><td>1.916</td><td>1.013</td><td>1.291</td><td>0.8 (21.03%)</td></tr><tr><td>Unimodal σ2= 0.5</td><td>1.009</td><td>1.487</td><td>0.642</td><td>1.137</td><td>0.49 (23.68%)</td></tr><tr><td>Unimodal σ2= 0.25</td><td>0.612</td><td>1.246</td><td>0.519</td><td>0.862</td><td>0.26 (49.90%)</td></tr></table>
180
+
181
+ to investigate whether HyPER is capable of adapting to such failures by invoking the knowledge-guided correction (i.e., the simulator) to minimize the propagation (and accumulation) of such local failures over the remaining trajectory rollout. Further, another crucial property to investigate is the robustness of the intelligent decision mechanism in HyPER, to noisy, low-quality surrogate predictions. To jointly investigate both goals, we consider a simple (contrived) context with noisy inputs supplied to the HyPER RL policy. This additive noise, injected at specific steps to corrupt the surrogate output in the trajectory, serves to mimic low-quality surrogate predictions. Hence, experiments with such noisy inputs help characterize the ability of HyPER to adapt to sudden local changes during rollout (like catastrophic surrogate failure) in addition to demonstrating its ability for robust decision-making under noisy data conditions.
182
+
183
+ To carry out this investigation, we add random Gaussian noise with mean 0 at four separate variance $(\sigma^2)$ scales at fixed timesteps of our trajectory. The UNet-P and FNO-P surrogate models are never trained with this noisy data and therefore perform poorly when encountering it. The UNet and FNO models are trained with the noisy data and show improvement. We train the RL policy of HyPER with a small set (400) of these noisy trajectories while keeping our surrogate model static (using the UNet-P model). We test two different noise corruption scenarios added to a 20 step trajectory rollout. (i) unimodal noise: a case where noise is added at timesteps [12-16] and (ii) bimodal noise: a more sophisticated case where noise is added at two different time windows of [2-4] and [15-16]. The unimodal noise results are presented in Table 3, where we see that HyPER rollouts outperform state-of-the-art SUG approaches. In this case we notice a reduction in cumulative MSE by $19.81\% - 49.90\%$ across the four noise scales. Note that HyPER achieves this significant reduction in rollout error while using the un-specialized UNet-P surrogate, demonstrating that HyPER succeeds in adapting pretrained models to noisy data.
184
+
185
+ # 3.4 RQ4: INVESTIGATING HYPER ROLLOUTS VS. RANDOM POLICY ROLLOUTS
186
+
187
+ To evaluate whether HyPER learns an effective RL policy, we compare it to a Random Policy baseline. This baseline is designed to invoke the simulator the same number of times as the HyPER RL policy for a particular rollout, but with uniform random probability over each timestep. By comparing the HyPER policy rollout to a Random Policy rollout with the same budget, we show that HyPER learns a superior performing policy in our experimental scenarios.
188
+
189
+ Table 4: HyPER versus a random policy which calls the simulator the same number of times.
190
+
191
+ <table><tr><td rowspan="2">Experiment</td><td colspan="2">Final MSE</td><td colspan="2">Cumulative MSE</td><td>Cumulative Wins %</td></tr><tr><td>Random Policy</td><td>HyPER</td><td>Random Policy</td><td>HyPER</td><td>HyPER</td></tr><tr><td>Noise Free</td><td>0.011</td><td>0.011</td><td>0.186</td><td>0.164</td><td>57.00%</td></tr><tr><td>Bimodal σ2= 1.0</td><td>0.121</td><td>0.07</td><td>2.443</td><td>1.706</td><td>73.00%</td></tr><tr><td>Bimodal σ2= 0.75</td><td>0.055</td><td>0.025</td><td>1.305</td><td>0.739</td><td>84.50%</td></tr><tr><td>Bimodal σ2= 0.5</td><td>0.037</td><td>0.027</td><td>0.891</td><td>0.683</td><td>67.00%</td></tr><tr><td>Bimodal σ2= 0.25</td><td>0.022</td><td>0.019</td><td>0.495</td><td>0.424</td><td>61.00%</td></tr><tr><td>Changing Boundary</td><td>0.149</td><td>0.027</td><td>0.865</td><td>0.527</td><td>80.50%</td></tr></table>
192
+
193
+ We summarize these results in Table 4, which also shows the percentage of trajectories over which HyPER reduces MSE compared to Random Policy (Cumulative Wins%). A 'win' is characterized by a HyPER rollout that yields a lower cumulative MSE than the corresponding Random Policy rollout. In the 'Noise Free' trajectories, HyPER only wins for $57\%$ of the trajectories because the MSEs at each timestep in the Noise Free case have low variance, so a uniform Random Policy performs fairly well. However, in the bimodal noise scales (with fast and large rollout error accumulation), precise invocation of the simulator for knowledge-guided correction is imperative to prevent error accumulation. Hence, we see HyPER owing to its intelligent (RL-based) decision policy, has a higher percentage of wins $(\approx 70\%)$ and significantly lower cumulative MSE at higher noise scales. We also see the strength of HyPER's learned policy when considering the changing boundary condition experiment which has a $80.50\%$ win rate over the Random Policy and reduces cumulative MSE by $39.08\%$ . This result demonstrates the effectiveness of HyPER in realistic physical scenarios and noisy conditions.
194
+
195
+ # 3.5 RQ5: COST VERSUS ACCURACY TRADE-OFF
196
+
197
+ ![](images/916ab9a1618d970e079c8a7fbde433be64f4e2044bc9683ebc08e14d41f5bc59.jpg)
198
+ (a)
199
+
200
+ ![](images/505b64e5d7729b6c02d25e90f7b22386046646211eb5c214292dbbb5f56e7f47.jpg)
201
+ (b)
202
+ Figure 5: Figure 5(a) shows the average time of PDE prediction of a full trajectory for each method. Figure 5(b) illustrates the error per unit time (lower is better) for each method. We do not show the Sim-Only case here as we assume error is effectively zero for the simulator.
203
+
204
+ A natural question is how much of a cost we pay in wall clock time when utilizing HyPER compared to baselines? We evaluate this by measuring the average time of each method on our 200 test trajectories and show results in Figure 5(a). While the wall clock time of SUG methods is lower than HyPER, our method has much lower rollout error, which we illustrate in Figure 5(b). Here we show the error per unit time (lower is better) and we see that HyPER has lower rollout error per second by a large margin in comparison to the baselines (note this plot is on a log scale). While calling the simulator incurs a time cost, the user can specify the $\lambda$ parameter to adjust to their requirements allowing HyPER to be flexible in varying settings.
205
+
206
+ # 3.6 SURROGATE-AGNOSTIC AND SIMULATOR-AGNOSTIC DESIGN OF HYPER
207
+
208
+ To demonstrate the model-agnostic capability of HyPER, we train it on the subsurface flow task (dataset details in Sec. 2.3), comprising longer (i.e., 100 step) trajectories. In this case, we train HyPER using the Julia simulator DPFEHM, which simulates underground fluid flow in porous media. As we see in Table 5, HyPER outperforms both SUG baselines by a cumulative MSE per timestep
209
+
210
+ Table 5: 2D Subsurface flow experiment results for a 100 timestep trajectory.
211
+
212
+ <table><tr><td rowspan="2">Experiment</td><td colspan="2">Cumulative MSE</td><td>per timestep</td></tr><tr><td>UNet-P</td><td>FNO-P</td><td>HyPER</td></tr><tr><td>Subsurface</td><td>4.345</td><td>10.938</td><td>0.271</td></tr></table>
213
+
214
+ reduction of $93.76\%$ and $97.52\%$ . The integration of a distinct Julia-based simulator in a scenario with larger physical scales and times, shows that HyPER is surrogate and simulator agnostic and can perform well and reduce rollout error in multiple problem settings.
215
+
216
+ # 4 RELATED WORK
217
+
218
+ SUG approaches circumvent the use of computational simulations during inference and only employ simulations to generate training data. The U-Net (Ronneberger et al., 2015) model is a popular approach owing to its ability to capture spatial and temporal dynamics at multiple scales. This model has recently (Gupta & Brandstetter, 2022) demonstrated state of the art performance on various fluid dynamics benchmarks. Operator learning (Kovachki et al., 2021) approaches that learn function families of PDEs rather than single PDE instances have also been investigated to be effective neural surrogates. Two notable operator learning models are the deep operator network (Lu et al., 2021a) and the Fourier neural operator (FNO) (Li et al., 2020) models. Multiple investigations have been carried out employing operator learning techniques including extending them to multi-resolution (Howard et al., 2023; Lu et al., 2022) settings. Recently Takamoto et al. (2022) have also demonstrated that FNOs yield state-of-the-art results on benchmark tasks.
219
+
220
+ Knowledge-guided SUG approaches like the popular Physics-informed neural network (PINN) (Raissi et al., 2019; Jagtap & Karniadakis, 2020; Cuomo et al., 2022) have also been effectively employed for improved generalization. A related paradigm of Universal Differential Equations (Rackauckas et al., 2020) utilizes data-driven surrogates to estimate focused sub-components of governing equations for better process modeling. Such approaches assume end-to-end gradient based training in a physics-informed manner and are known to converge slowly and to trivial solutions under data paucity and stiff PDE conditions Krishnapriyan et al. (2021) owing to catastrophic gradient imbalance Wang et al. (2021) between data-driven and physics-guided loss terms.
221
+
222
+ SUG for Transient PDE Dynamics. All SUG approaches struggle to model transient PDE systems in an autoregressive manner and incur rollout error (Carey et al., 2024). In the work of Lippe et al. (2024), it is demonstrated how the spectral bias of traditional neural surrogates leads to significant error accumulation and they propose an initial refinement solution inspired by the process in diffusion modeling. Separately, List et al. (2024) have conducted a characterization of SUG rollout error and comment about the significant improvement obtainable by incorporating simulators in-the-loop.
223
+
224
+ Hybrid-modeling for Transient PDE Dynamics. Hybrid-modeling approaches retain the simulation and resolve each query employing the neural surrogate and the simulator 'in-the-loop'. One recent example is Zhang et al. (2022) which selects between a simulator and a surrogate (in a predefined rule-based manner) to resolve a PDE trajectory. In their work, the simulator and surrogate are each invoked a pre-fixed number of times. In contract, HyPER learns a dynamic policy, capable of adapting to scenarios such as changing boundary conditions. Another major drawback with many such approaches (Chen et al., 2018; Belbute-Peres et al., 2020; Um et al., 2020; Donti et al., 2021; Pachalieva et al., 2022) is the requirement of simulators to be differentiable as they are mostly employed as additional layers in the neural network architecture, to be trained end-to-end with the neural surrogates.
225
+
226
+ # 5 CONCLUSION AND FUTURE WORK
227
+
228
+ This work presents a first of its kind knowledge-guided correction mechanism to reduce rollout errors in neural surrogates that model transient PDE systems. Our proposed method Hybrid PDE Predictor with RL (HyPER) learns a reinforcement learning based cost-aware control policy to parsimoniously invoke (costly) simulation steps to correct erroneous surrogate predictions. In contrast to existing approaches that employ simulators 'in-the-loop' with neural surrogates, HyPER does not impose any differentiability restrictions on the computational simulations. Further, HyPER is surrogate and simulator agnostic and is applicable to any neural surrogate and off-the-shelf simulator capable of resolving transient PDE systems.
229
+
230
+ We have demonstrated the effectiveness of our proposed HyPER model in traditional in-distribution rollouts, under changing physical conditions and under noisy data conditions. Overall HyPER yields significant improvements of cumulative rollout error over state-of-the-art surrogate-only approaches with an average $68.30\%$ improvement for in-distribution rollouts, $75.28\%$ improvement for rollouts under changing physical conditions and $28.61\%$ improvement for rollouts under noisy data conditions. In the future, we will investigate more sophisticated actor-critic based RL policies based to further improve the sample efficiency of HyPER. We will also explore extensions of HyPER to more challenging problems in multi-physics contexts as well as multi-phase flows.
231
+
232
+ # ACKNOWLEDGMENTS
233
+
234
+ DO gratefully acknowledges support from the Department of Energy, Office of Science, Office of Basic Energy Sciences, Geoscience Research program under Award Number LANLECA1.
235
+
236
+ # REFERENCES
237
+
238
+ Filipe De Avila Belbute-Peres, Thomas Economon, and Zico Kolter. Combining differentiable pdesolvers and graph neural networks for fluid flow prediction. In international conference on machine learning, pp. 2402-2411. PMLR, 2020.
239
+ Steven L Brunton and J Nathan Kutz. Promising directions of machine learning for partial differential equations. Nature Computational Science, 4(7):483-494, 2024.
240
+ N Carey, L Zanisi, S Pamela, V Gopakumar, J Omotani, J Buchanan, and J Brandstetter. Data efficiency and long term prediction capabilities for neural operator surrogate models of core and edge plasma codes. arXiv preprint arXiv:2402.08561, 2024.
241
+ Ricky TQ Chen, Yulia Rubanova, Jesse Bettencourt, and David K Duvenaud. Neural ordinary differential equations. Advances in neural information processing systems, 31, 2018.
242
+ Salvatore Cuomo, Vincenzo Schiano Di Cola, Fabio Giampaolo, Gianluigi Rozza, Maziar Raissi, and Francesco Piccialli. Scientific machine learning through physics-informed neural networks: Where we are and what's next. Journal of Scientific Computing, 92(3):88, 2022.
243
+ Priya L Donti, David Rolnick, and J Zico Kolter. Dc3: A learning method for optimization with hard constraints. arXiv preprint arXiv:2104.12225, 2021.
244
+ Karthik Duraisamy, Gianluca Iaccarino, and Heng Xiao. Turbulence modeling in the age of data. Annual review of fluid mechanics, 51(1):357-377, 2019.
245
+ Han Gao, Luning Sun, and Jian-Xun Wang. Phygeonet: Physics-informed geometry-adaptive convolutional neural networks for solving parameterized steady-state pdes on irregular domain. Journal of Computational Physics, 428:110079, 2021.
246
+ Jayesh K Gupta and Johannes Brandstetter. Towards multi-spatiotemporal-scale generalized pde modeling. arXiv preprint arXiv:2209.15616, 2022.
247
+ Philipp Holl and Nils Thuerey. $\Phi_{\mathrm{flow}}$ (PhiFlow): Differentiable simulations for pytorch, tensorflow and jax. In International Conference on Machine Learning. PMLR, 2024.
248
+ Amanda A Howard, Mauro Perego, George Em Karniadakis, and Panos Stinis. Multifidelity deep operator networks for data-driven and physics-informed problems. Journal of Computational Physics, 493:112462, 2023.
249
+ Ameya D Jagtap and George Em Karniadakis. Extended physics-informed neural networks (xpinns): A generalized space-time domain decomposition based deep learning framework for nonlinear partial differential equations. Communications in Computational Physics, 28(5), 2020.
250
+ Anuj Karpatne, Ramakrishnan Kannan, and Vipin Kumar. Knowledge Guided Machine Learning: Accelerating Discovery Using Scientific Knowledge and Data. CRC Press, 2022.
251
+ Georgios Kissas, Yibo Yang, Eileen Hwuang, Walter R Witschey, John A Detre, and Paris Perdikaris. Machine learning in cardiovascular flows modeling: Predicting arterial blood pressure from non-invasive 4d flow mri data using physics-informed neural networks. Computer Methods in Applied Mechanics and Engineering, 358:112623, 2020.
252
+ Nikola B. Kovachki, Zongyi Li, Burigede Liu, Kamyar Azizzadenesheli, Kaushik Bhattacharya, Andrew M. Stuart, and Anima Anandkumar. Neural operator: Learning maps between function spaces. CoRR, abs/2108.08481, 2021.
253
+ Aditi Krishnapriyan, Amir Gholami, Shandian Zhe, Robert Kirby, and Michael W Mahoney. Characterizing possible failure modes in physics-informed neural networks. Advances in neural information processing systems, 34:26548-26560, 2021.
254
+
255
+ Stefan Kurz, Herbert De Gersem, Armin Gaetzka, Andreas Klaedtke, Melvin Liebsch, Dimitrios Loukrezis, Stephan Russenschuck, and Manuel Schmidt. Hybrid modeling: towards the next level of scientific computing in engineering. Journal of Mathematics in Industry, 12(1):8, 2022.
256
+ J Nathan Kutz, Steven L Brunton, Bingni W Brunton, and Joshua L Proctor. Dynamic mode decomposition: data-driven modeling of complex systems. SIAM, 2016.
257
+ Zongyi Li, Nikola Kovachki, Kamyar Azizzadenesheli, Burigede Liu, Kaushik Bhattacharya, Andrew Stuart, and Anima Anandkumar. Fourier neural operator for parametric partial differential equations. arXiv preprint arXiv:2010.08895, 2020.
258
+ Phillip Lippe, Bas Veeling, Paris Perdikaris, Richard Turner, and Johannes Brandstetter. Pde-refiner: Achieving accurate long rollouts with neural pde solvers. Advances in Neural Information Processing Systems, 36, 2024.
259
+ Bjoern List, Li-Wei Chen, Kartik Bali, and Nils Thuerey. How temporal unrolling supports neural physics simulators. arXiv preprint arXiv:2402.12971, 2024.
260
+ Lu Lu, Pengzhan Jin, Guofei Pang, Zhongqiang Zhang, and George Em Karniadakis. Learning nonlinear operators via deeponet based on the universal approximation theorem of operators. Nature machine intelligence, 3(3):218-229, 2021a.
261
+ Lu Lu, Xuhui Meng, Zhiping Mao, and George Em Karniadakis. Deepxde: A deep learning library for solving differential equations. SIAM review, 63(1):208-228, 2021b.
262
+ Lu Lu, Raphaël Pestourie, Steven G Johnson, and Giuseppe Romano. Multifidelity deep neural operators for efficient learning of partial differential equations with application to fast inverse design of nanoscale heat transport. Physical Review Research, 4(2):023210, 2022.
263
+ Georgios Margazoglou and Luca Magri. Stability analysis of chaotic systems from data. Nonlinear Dynamics, 111(9):8799-8819, 2023.
264
+ Michael McCabe, Bruno Regaldo-Saint Blancard, Liam Holden Parker, Ruben Ohana, Miles Cranmer, Alberto Bietti, Michael Eickenberg, Siavash Golkar, Geraud Krawezik, Francois Lanusse, et al. Multiple physics pretraining for physical surrogate models. arXiv preprint arXiv:2310.02994, 2023.
265
+ Nikhil Muralidhar, Jie Bu, Ze Cao, Neil Raj, Naren Ramakrishnan, Danesh Tafti, and Anuj Karpatne. Phyflow: Physics-guided deep learning for generating interpretable 3d flow fields. In 2021 IEEE International Conference on Data Mining (ICDM), pp. 1246-1251. IEEE, 2021.
266
+ Aleksandra Pachalieva, Daniel O'Malley, Dylan Robert Harp, and Hari Viswanathan. Physics-informed machine learning with differentiable programming for heterogeneous underground reservoir pressure management. *Scientific Reports*, 12(1):18734, 2022.
267
+ Christopher Rackauckas, Yingbo Ma, Julius Martensen, Collin Warner, Kirill Zubov, Rohit Supekar, Dominic Skinner, Ali Ramadan, and Alan Edelman. Universal differential equations for scientific machine learning. arXiv preprint arXiv:2001.04385, 2020.
268
+ Maziar Raissi, Paris Perdikaris, and George E Karniadakis. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational physics, 378:686-707, 2019.
269
+ Neil Ashwin Raj, Danesh Tafti, and Nikhil Muralidhar. Comparison of reduced order models based on dynamic mode decomposition and deep learning for predicting chaotic flow in a random arrangement of cylinders. Physics of Fluids, 35(7), 2023.
270
+ Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In Medical image computing and computer-assisted intervention-MICCAI 2015: 18th international conference, Munich, Germany, October 5-9, 2015, proceedings, part III 18, pp. 234-241. Springer, 2015.
271
+
272
+ Michael Schauperl and Rajiah Aldrin Denny. Ai-based protein structure prediction in drug discovery: Impacts and challenges. Journal of Chemical Information and Modeling, 62(13):3142-3156, 2022.
273
+ Bhargav Siddani, S Balachandar, William C Moore, Yunchao Yang, and Ruogu Fang. Machine learning for physics-informed generation of dispersed multiphase flow using generative adversarial networks. Theoretical and Computational Fluid Dynamics, 35:807-830, 2021.
274
+ Justin S Smith, Adrian E Roitberg, and Alexandr Isayev. Transforming computational drug discovery with machine learning and ai, 2018.
275
+ Seung Won Suh, Seung Whan Chung, Peer-Timo Bremer, and Youngsoo Choi. Accelerating flow simulations using online dynamic mode decomposition. arXiv preprint arXiv:2311.18715, 2023.
276
+ Richard S Sutton, David McAllester, Satinder Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. Advances in neural information processing systems, 12, 1999.
277
+ Makoto Takamoto, Timothy Praditia, Raphael Leiteritz, Daniel MacKinlay, Francesco Alesiani, Dirk Pflüger, and Mathias Niepert. Pdebench: An extensive benchmark for scientific machine learning. Advances in Neural Information Processing Systems, 35:1596-1611, 2022.
278
+ Tapas Tripura, Akshay Thakur, and Souvik Chakraborty. Multi-fidelity wavelet neural operator surrogate model for time-independent and time-dependent reliability analysis. *Probabilistic Engineering Mechanics*, 77:103672, 2024.
279
+ Kiwon Um, Robert Brand, Yun Raymond Fei, Philipp Holl, and Nils Thuerey. Solver-in-the-loop: Learning from differentiable physics to interact with iterative pde-solvers. Advances in Neural Information Processing Systems, 33:6111-6122, 2020.
280
+ Sifan Wang, Yujun Teng, and Paris Perdikaris. Understanding and mitigating gradient flow pathologies in physics-informed neural networks. SIAM Journal on Scientific Computing, 43(5):A3055-A3081, 2021.
281
+ Sifan Wang, Xinling Yu, and Paris Perdikaris. When and why pinns fail to train: A neural tangent kernel perspective. Journal of Computational Physics, 449:110768, 2022.
282
+ Karen Willcox and Jaime Peraire. Balanced model reduction via the proper orthogonal decomposition. AIAA journal, 40(11):2323-2330, 2002.
283
+ Enrui Zhang, Adar Kahana, Eli Turkel, Rishikesh Ranade, Jay Pathak, and George Em Karniadakis. A hybrid iterative numerical transferable solver (hints) for pdes based on deep operator network and relaxation methods. arXiv preprint arXiv:2208.13273, pp. 198, 2022.
284
+
285
+ # A APPENDIX
286
+
287
+ # A.1 HYPER TRAINING PROCEDURE
288
+
289
+ Below we detail the RL training procedure of HyPER.
290
+
291
+ # Algorithm 1 HyPER Training Algorithm
292
+
293
+ <table><tr><td colspan="3">Require: Dataset: D, Pretrained Surrogate Model: fφ, Simulator: S, Decision Model: dθ, Trajectory length: τ, Simulator proportion hyperparameter: λ, Learning rate: η, Error function (MSE in our case): ℓ, Cost function: c</td></tr><tr><td>1: for u, z ∈ D do</td><td colspan="2">For every trajectory in dataset, get field u and conditional features z</td></tr><tr><td>2: k ← 0</td><td></td><td>▷ Initialize number of simulator calls</td></tr><tr><td>3: Rd ← []</td><td></td><td>▷ Initialize decision model rewards list</td></tr><tr><td>4: Rb ← []</td><td></td><td>▷ Initialize baseline rewards list</td></tr><tr><td>5: L ← []</td><td></td><td>▷ List to store log probabilities of each action</td></tr><tr><td>6: u(x, -1) ← 0</td><td></td><td>▷ Set initial field prediction to 0</td></tr><tr><td>7: for t ∈ [0, τ] do</td><td></td><td>▷ For every time-step in trajectory</td></tr><tr><td>8: p ← dθ(ˆu(x, t-1), z, t)</td><td></td><td>▷ Get RL model probabilities for next action</td></tr><tr><td>9: a ~ Bernoulli(p)</td><td></td><td>▷ Sample next action</td></tr><tr><td>10: L += a log(p) + (1-a) log(1-p)</td><td></td><td>▷ Store log probability of action</td></tr><tr><td>11: if a = 0 then</td><td></td><td></td></tr><tr><td>12: u(x, t) ← fφ(ˆu(x, t-1), t)</td><td></td><td>▷ Call surrogate for next step prediction</td></tr><tr><td>13: else if a = 1 then</td><td></td><td></td></tr><tr><td>14: u(x, t) ← S(ˆu(x, t-1), t)</td><td></td><td>▷ Call simulator for next step prediction</td></tr><tr><td>15: k += 1</td><td></td><td>▷ Track number of times simulator called</td></tr><tr><td>16: end if</td><td></td><td></td></tr><tr><td>17: Rd += -ℓ(ˆu(x, t), u(x, t)) - c(λ, k, τ)</td><td></td><td>▷ Store policy reward based on MSE and cost function</td></tr><tr><td>18: end for</td><td></td><td></td></tr><tr><td>19: I ~ UniformWithoutReplacement([0, τ], k)</td><td></td><td>▷ Sample k times between [0, τ] without replacement, this list will contain the time-steps at which the random baseline will call the simulator</td></tr><tr><td>20: for t ∈ [0, τ] do</td><td></td><td>▷ Run random baseline for trajectory</td></tr><tr><td>21: if t∉ I then</td><td></td><td></td></tr><tr><td>22: u(x, t) ← fφ(ˆu(x, t-1), t)</td><td></td><td>▷ Call surrogate for next step prediction</td></tr><tr><td>23: else if t ∈ I then</td><td></td><td></td></tr><tr><td>24: u(x, t) ← S(ˆu(x, t-1), t)</td><td></td><td>▷ Call simulator for next step prediction</td></tr><tr><td>25: end if</td><td></td><td></td></tr><tr><td>26: Rb += -ℓ(ˆu(x, t), u(x, t)) - c(λ, k, τ)</td><td></td><td>▷ Store baseline reward using MSE and cost function</td></tr><tr><td>27: end for</td><td></td><td></td></tr><tr><td>28: ∇θJ ← -∇θL · StopGradient(Rd - Rb)</td><td></td><td>▷ Calculate policy gradient, this is done element-wise and then summed</td></tr><tr><td>29: θ ← θ - η∇θJ</td><td></td><td>▷ Update RL decision model parameters</td></tr><tr><td>30: end for</td><td></td><td></td></tr></table>
294
+
295
+ # A.2 RQ3: HYPER ROLLOUTS WITH NOISY DATA: BIMODAL NOISE EXPERIMENTS
296
+
297
+ Table 6 depicts the performance of HyPER in the bimodal noise case. We notice results similar to the unimodal noise case, with a reduction in cumulative MSE error of $41.46\% - 65.24\%$ . We believe this improved performance in a more complex noise distribution is a result of our RL policy learning the more complex error distribution while the SUG methods accumulate larger error over two different noise windows.
298
+
299
+ Table 6: Results depicting rollout error for the 2D-Navier-Stokes experiment with random Gaussian noise added at timesteps 2-4, 15-16. $\sigma^2$ is the scale of the noise. The percentage reduction of cumulative MSE rollout error by HyPER, over the best performing SUG model is in parentheses.
300
+
301
+ <table><tr><td rowspan="2">Experiment</td><td colspan="3">Final MSE</td><td colspan="3">Cumulative MSE</td></tr><tr><td>UNet-P</td><td>FNO-P</td><td>HyPER</td><td>UNet-P</td><td>FNO-P</td><td>HyPER</td></tr><tr><td>Bimodal σ2= 1.0</td><td>0.844</td><td>0.097</td><td>0.07</td><td>6.648</td><td>2.914</td><td>1.706 (41.46%)</td></tr><tr><td>Bimodal σ2= 0.75</td><td>0.25</td><td>0.079</td><td>0.025</td><td>3.436</td><td>2.126</td><td>0.739 (65.24%)</td></tr><tr><td>Bimodal σ2= 0.5</td><td>0.087</td><td>0.07</td><td>0.027</td><td>1.942</td><td>1.576</td><td>0.683 (56.67%)</td></tr><tr><td>Bimodal σ2= 0.25</td><td>0.046</td><td>0.068</td><td>0.019</td><td>1.095</td><td>1.266</td><td>0.424 (61.28%)</td></tr></table>
302
+
303
+ ![](images/efa41e0c55282d04607e8adb0cda5fc6f41fd39e424761585dbbeb26514b05d1.jpg)
304
+ Figure 6: Average Cumulative MSE over all test trajectories of HyPER vs. UNet and FNO.
305
+
306
+ # A.3 HYPER AVERAGE PERFORMANCE
307
+
308
+ Figure 6 shows the average rollout error of HyPER versus UNet and FNO methods for all 200 Navier-Stokes test trajectories. This demonstrates that HyPER is effective in reducing rollout error significantly over a large set of unseen test trajectories.
309
+
310
+ # A.4 UNET-MULTISTEP PREDICTION QUALITY
311
+
312
+ In Figure 7 below we show five different sample predictions of UNet versus UNet-Multistep. Our investigations revealed that in comparison to UNet, all UNet-Multistep predictions look "smoothed". Essentially we found that while UNet-Multistep had reasonably low MSE, it failed to capture high frequency detail and suffered from spectral bias. Thus, UNet was chosen as our surrogate model in HyPER across all experiments because it showed comparable cumulative MSE to UNet-Multistep (Table 1).
313
+
314
+ # A.5 HYPER VERSUS UNET PREDICTION
315
+
316
+ We contrast the predictions and errors of a HyPER rollout and UNet rollout in Figure 8. Notice that at $t = \{16.5s, 21.0s\}$ , UNet suffers from spectral bias and has high error on the plume edges where high frequency detail is required. We see that HyPER successfully mitigates this spectral bias error by incorporating the simulator, thereby significantly reducing rollout (cumulative) error over the full trajectory.
317
+
318
+ ![](images/0d2aa0db678113e06da7c8b1b98762be89a8e33ddcf97150c7a904ebed520ef2.jpg)
319
+ Figure 7: Sample predictions of UNet vs UNet-Multistep on five different noise free trajectories. Note that UNet-Multistep predictions suffer from spectral bias and have poor high frequency detail.
320
+
321
+ # A.6 MODEL ARCHITECTURES AND PARAMETERS
322
+
323
+ # A.6.1 MODEL TRAINING DETAILS
324
+
325
+ We build and train all our neural surrogate models using the PyTorch library on a single Nvidia RTX A6000 GPU. The $\Phi$ Flow simulator used in the Navier-Stokes experiment runs on the same GPU. The DPFEHM Julia simulator runs using multi-threading on an Intel(R) Xeon(R) Platinum 8358 CPU @ 2.60GHz.
326
+
327
+ The UNet, FNO, UNet-Multistep, MPP, and PDE-Refiner baselines are trained with same number of samples as HyPER for the sake of fair comparison. The UNet-P and FNO-P baseline models are trained with a smaller dataset of 400 trajectories which are separate from the 400 trajectories HyPER's RL policy is trained with. All baselines are trained for 200 epochs.
328
+
329
+ ![](images/c71c13a354f13520bc8bf0f8ae848471a02c95331716ac0f5732754d5ff826e0.jpg)
330
+ Figure 8: Sample trajectory predictions and absolute errors of HyPER vs UNet. At various timesteps including $t = 21.0s$ , we see that UNet has high error on the edges of the plume where high frequency behavior is present while HyPER successfully reduces this error.
331
+
332
+ We only train the HyPER RL ResNet model for 30 epochs to demonstrate that HyPER does not require extensive training to outperform the baselines.
333
+
334
+ Table 7: Model training times and datasets for SUG methods and HyPER.
335
+
336
+ <table><tr><td>Model</td><td>Training Time (Hours)</td><td>Epochs</td><td>Dataset Size (# Trajectories)</td></tr><tr><td>UNet-P</td><td>1.46</td><td>200</td><td>400</td></tr><tr><td>FNO-P</td><td>0.55</td><td>200</td><td>400</td></tr><tr><td>UNet</td><td>3.29</td><td>200</td><td>800</td></tr><tr><td>FNO</td><td>2.02</td><td>200.</td><td>800</td></tr><tr><td>UNet-Multistep</td><td>4.10</td><td>200</td><td>800</td></tr><tr><td>MPP</td><td>9.58</td><td>200</td><td>800</td></tr><tr><td>PDE-Refiner</td><td>3.66</td><td>200</td><td>800</td></tr><tr><td>HyPER</td><td>5.21</td><td>30</td><td>400</td></tr></table>
337
+
338
+ # A.6.2 MODEL PARAMETERS
339
+
340
+ Our UNet model is built on top of the PDEArena modern UNet architecture with wide residual blocks and training parameters in Table 8.
341
+
342
+ Table 8: UNet parameters.
343
+
344
+ <table><tr><td>Parameter</td><td>Value</td></tr><tr><td>Model Size (# parameters)</td><td>12,295,233</td></tr><tr><td>Hidden Channels</td><td>64</td></tr><tr><td>Activation Function</td><td>GELU</td></tr><tr><td>Channel Multipliers</td><td>[1, 2, 2]</td></tr><tr><td>Num Residual Blocks Per Channel</td><td>2</td></tr><tr><td>Sinusoidal Time Embedding</td><td>Yes</td></tr><tr><td>Learning Rate</td><td>1e-4</td></tr><tr><td>Optimizer</td><td>Adam</td></tr><tr><td>Loss Function</td><td>MSE</td></tr><tr><td>Epochs</td><td>200</td></tr></table>
345
+
346
+ Our FNO model is built using the neuraloperator library and is constructed to have a similar number of parameters as our UNet for a fair comparison. See Table 9 for details.
347
+
348
+ Table 9: FNO parameters.
349
+
350
+ <table><tr><td>Parameter</td><td>Value</td></tr><tr><td>Model Size (# parameters)</td><td>12,437,057</td></tr><tr><td>Number of Fourier Modes</td><td>27</td></tr><tr><td>Hidden Channels</td><td>64</td></tr><tr><td>Lifting Channels</td><td>256</td></tr><tr><td>Projection Channels</td><td>256</td></tr><tr><td>Learning Rate</td><td>1e-5</td></tr><tr><td>Optimizer</td><td>Adam</td></tr><tr><td>Loss Function</td><td>MSE</td></tr><tr><td>Epochs</td><td>200</td></tr></table>
351
+
352
+ The HyPER RL model is a lightly modified version of the ResNet34 model from the Torchvision library. See Table 10 for parameters.
353
+
354
+ The Multiple Physics Pretrained model (MPP) is adapted from MPP github. Note that we train this model for 200 epochs while UNet and FNO are only trained for 50. See Table 11 for details.
355
+
356
+ Table 10: RL ResNet parameters.
357
+
358
+ <table><tr><td>Parameter</td><td>Value</td></tr><tr><td>Model Size (# parameters)</td><td>11,751,300</td></tr><tr><td>Number of Layers</td><td>[3, 4, 6, 3]</td></tr><tr><td>Hidden Channels</td><td>64</td></tr><tr><td>Sinusoidal. Time Embedding</td><td>Yes</td></tr><tr><td>Activation Function</td><td>ReLU</td></tr><tr><td>Learning Rate</td><td>1e-5</td></tr><tr><td>Optimizer</td><td>Adam</td></tr><tr><td>Reward Function</td><td>Equation 3</td></tr><tr><td>Epochs</td><td>30</td></tr></table>
359
+
360
+ Table 11: Multiple Physics Pretraining parameters.
361
+
362
+ <table><tr><td>Parameter</td><td>Value</td></tr><tr><td>Model Size (# parameters)</td><td>28,979,436</td></tr><tr><td>Patch Size</td><td>16x16</td></tr><tr><td>Embedding Dimension</td><td>384</td></tr><tr><td>Number of Axial Attention Heads</td><td>6</td></tr><tr><td>Number of Transformer Blocks</td><td>12</td></tr><tr><td>Epochs</td><td>200</td></tr></table>
363
+
364
+ The PDE-Refiner model was adapted from PDE-Refiner to work with our UNet model. Note that we train this model for 200 epochs while UNet and FNO are only trained for 50. See Table 12 for details.
365
+
366
+ Table 12: PDE-Refiner parameters.
367
+
368
+ <table><tr><td>Parameter</td><td>Value</td></tr><tr><td>Model Size (# parameters)</td><td>12,378,241</td></tr><tr><td>Number of Refinement/Denoising Steps</td><td>3</td></tr><tr><td>Minimum Noise Scale</td><td>4e-7</td></tr><tr><td>Hidden Channels</td><td>64</td></tr><tr><td>Activation Function</td><td>GELU</td></tr><tr><td>Channel Multipliers</td><td>[1, 2, 2]</td></tr><tr><td>Num Residual Blocks Per Channel</td><td>2</td></tr><tr><td>Sinusoidal Time Embedding</td><td>Yes</td></tr><tr><td>Learning Rate</td><td>1e-4</td></tr><tr><td>Optimizer</td><td>Adam</td></tr><tr><td>Loss Function</td><td>MSE</td></tr><tr><td>Epochs</td><td>200</td></tr></table>
2025/Model-Agnostic Knowledge Guided Correction for Improved Neural Surrogate Rollout/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6c9af60ad769fb818956f083d69cf7fe572497acc7aa2ed1bb63e32eaeb59ac
3
+ size 1105105
2025/Model-Agnostic Knowledge Guided Correction for Improved Neural Surrogate Rollout/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model-Free Offline Reinforcement Learning with Enhanced Robustness/b27ad8de-fb07-40a0-89a8-4c0214ea2a3c_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model-Free Offline Reinforcement Learning with Enhanced Robustness/b27ad8de-fb07-40a0-89a8-4c0214ea2a3c_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model-Free Offline Reinforcement Learning with Enhanced Robustness/b27ad8de-fb07-40a0-89a8-4c0214ea2a3c_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a336bb025cbee1b1e4a3a46149a845d40b313daaa8473fba83ad85efbe332cc0
3
+ size 1866657
2025/Model-Free Offline Reinforcement Learning with Enhanced Robustness/full.md ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model-Free Offline Reinforcement Learning with Enhanced Robustness/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82a7bd979418c9642c46f0b466ed43889f217308d662984a29710da389faa9ce
3
+ size 2736754
2025/Model-Free Offline Reinforcement Learning with Enhanced Robustness/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model-agnostic meta-learners for estimating heterogeneous treatment effects over time/e9287bb5-ea91-46f9-a22c-1f96933276eb_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model-agnostic meta-learners for estimating heterogeneous treatment effects over time/e9287bb5-ea91-46f9-a22c-1f96933276eb_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model-agnostic meta-learners for estimating heterogeneous treatment effects over time/e9287bb5-ea91-46f9-a22c-1f96933276eb_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:683cf4e63c72ab549b96028603ed3af8664edf637ee39bbe3baab93cc113dee5
3
+ size 630569
2025/Model-agnostic meta-learners for estimating heterogeneous treatment effects over time/full.md ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model-agnostic meta-learners for estimating heterogeneous treatment effects over time/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cd9f0a745de39813d39d6559f8af132395a4f51c48ea53de4666e43fac1ce13
3
+ size 1777650
2025/Model-agnostic meta-learners for estimating heterogeneous treatment effects over time/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2025/Model-based Offline Reinforcement Learning with Lower Expectile Q-Learning/b31c21a6-dff9-4395-87fd-94f52fc2cefa_content_list.json ADDED
The diff for this file is too large to render. See raw diff