Add files using upload-large-folder tool
Browse files- CITATION.cff +50 -0
- LICENSE +201 -0
- README.md +128 -0
- citation.bib +16 -0
- tasks/activeprune-al-unlabeled-pool-pruning/README.md +5 -0
- tasks/activeprune-al-unlabeled-pool-pruning/instruction.md +110 -0
- tasks/activeprune-al-unlabeled-pool-pruning/task.toml +57 -0
- tasks/budgeted-imputation-mcar50/README.md +5 -0
- tasks/budgeted-imputation-mcar50/instruction.md +77 -0
- tasks/budgeted-imputation-mcar50/task.toml +52 -0
- tasks/carps-star-discrepancy-subset-select/README.md +5 -0
- tasks/carps-star-discrepancy-subset-select/instruction.md +63 -0
- tasks/carps-star-discrepancy-subset-select/task.toml +53 -0
- tasks/causalrivers-heldout-station-graph-auroc/README.md +5 -0
- tasks/causalrivers-heldout-station-graph-auroc/instruction.md +82 -0
- tasks/causalrivers-heldout-station-graph-auroc/task.toml +59 -0
- tasks/coreset-selection-group-robust-waterbirds/README.md +5 -0
- tasks/coreset-selection-group-robust-waterbirds/instruction.md +79 -0
- tasks/coreset-selection-group-robust-waterbirds/task.toml +57 -0
- tasks/cpu-decoder-graph-executor/README.md +5 -0
- tasks/cpu-decoder-graph-executor/instruction.md +109 -0
- tasks/cpu-decoder-graph-executor/task.toml +57 -0
- tasks/fast-adv-budgeted-pgd50-robust-cifar10/README.md +5 -0
- tasks/fast-adv-budgeted-pgd50-robust-cifar10/instruction.md +44 -0
- tasks/fast-adv-budgeted-pgd50-robust-cifar10/task.toml +48 -0
- tasks/fastergcg-candidate-token-rank-ccc/README.md +5 -0
- tasks/fastergcg-candidate-token-rank-ccc/instruction.md +74 -0
- tasks/fastergcg-candidate-token-rank-ccc/task.toml +46 -0
- tasks/grpo-rl-halfcheetah-advantage-estimator/README.md +5 -0
- tasks/grpo-rl-halfcheetah-advantage-estimator/instruction.md +114 -0
- tasks/grpo-rl-halfcheetah-advantage-estimator/task.toml +65 -0
- tasks/label-efficient-risk-estimator/README.md +5 -0
- tasks/label-efficient-risk-estimator/instruction.md +105 -0
- tasks/label-efficient-risk-estimator/task.toml +56 -0
- tasks/reppo-reliable-onpolicy-control-trainer/README.md +5 -0
- tasks/reppo-reliable-onpolicy-control-trainer/instruction.md +146 -0
- tasks/reppo-reliable-onpolicy-control-trainer/task.toml +60 -0
- tasks/sae-sparse-dict-nmse-frontier/README.md +5 -0
- tasks/sae-sparse-dict-nmse-frontier/instruction.md +89 -0
- tasks/sae-sparse-dict-nmse-frontier/task.toml +46 -0
- tasks/shortest-valid-ci-l2-ece/README.md +5 -0
- tasks/shortest-valid-ci-l2-ece/instruction.md +110 -0
- tasks/shortest-valid-ci-l2-ece/task.toml +56 -0
- tasks/svdquant-w4a4-psnr/instruction.md +45 -0
- tasks/ties-merging-clip-vitl14-eight-task-merge/README.md +5 -0
- tasks/ties-merging-clip-vitl14-eight-task-merge/instruction.md +83 -0
- tasks/ties-merging-clip-vitl14-eight-task-merge/task.toml +45 -0
- tasks/vas-maskless-deployment-feasibility/README.md +5 -0
- tasks/vas-maskless-deployment-feasibility/instruction.md +106 -0
- tasks/vas-maskless-deployment-feasibility/task.toml +57 -0
CITATION.cff
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cff-version: 1.2.0
|
| 2 |
+
message: If you use AutoResearchExam in your research, please cite this work.
|
| 3 |
+
title: AutoResearchExam
|
| 4 |
+
authors:
|
| 5 |
+
- given-names: Anirudha
|
| 6 |
+
family-names: Ramesh
|
| 7 |
+
- given-names: Siddartha
|
| 8 |
+
family-names: Devic
|
| 9 |
+
- given-names: Shivank
|
| 10 |
+
family-names: Garg
|
| 11 |
+
- given-names: Advait
|
| 12 |
+
family-names: Parulekar
|
| 13 |
+
- given-names: Drish
|
| 14 |
+
family-names: Mahnot
|
| 15 |
+
- given-names: Shreyas
|
| 16 |
+
family-names: Pimpalgaonkar
|
| 17 |
+
- given-names: Vishnu
|
| 18 |
+
family-names: Suresh
|
| 19 |
+
- given-names: Alex
|
| 20 |
+
family-names: Dimakis
|
| 21 |
+
- given-names: Maheswaran
|
| 22 |
+
family-names: Sathiamoorthy
|
| 23 |
+
date-released: '2026-09-09'
|
| 24 |
+
url: https://benchmarks.bespokelabs.ai/autoresearchexam/
|
| 25 |
+
repository-code: https://github.com/bespokelabsai/AutoResearchExam
|
| 26 |
+
preferred-citation:
|
| 27 |
+
type: generic
|
| 28 |
+
title: AutoResearchExam
|
| 29 |
+
authors:
|
| 30 |
+
- given-names: Anirudha
|
| 31 |
+
family-names: Ramesh
|
| 32 |
+
- given-names: Siddartha
|
| 33 |
+
family-names: Devic
|
| 34 |
+
- given-names: Shivank
|
| 35 |
+
family-names: Garg
|
| 36 |
+
- given-names: Advait
|
| 37 |
+
family-names: Parulekar
|
| 38 |
+
- given-names: Drish
|
| 39 |
+
family-names: Mahnot
|
| 40 |
+
- given-names: Shreyas
|
| 41 |
+
family-names: Pimpalgaonkar
|
| 42 |
+
- given-names: Vishnu
|
| 43 |
+
family-names: Suresh
|
| 44 |
+
- given-names: Alex
|
| 45 |
+
family-names: Dimakis
|
| 46 |
+
- given-names: Maheswaran
|
| 47 |
+
family-names: Sathiamoorthy
|
| 48 |
+
year: 2026
|
| 49 |
+
month: 9
|
| 50 |
+
url: https://benchmarks.bespokelabs.ai/autoresearchexam/
|
LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright [yyyy] [name of copyright owner]
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
README.md
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# AutoResearchExam
|
| 2 |
+
|
| 3 |
+
This repository contains the 29 tasks from [AutoResearchExam](https://benchmarks.bespokelabs.ai/autoresearchexam/).
|
| 4 |
+
|
| 5 |
+
## Task areas
|
| 6 |
+
|
| 7 |
+
```mermaid
|
| 8 |
+
pie showData
|
| 9 |
+
title Tasks by research area
|
| 10 |
+
"Model training" : 8
|
| 11 |
+
"Algorithms and optimization" : 6
|
| 12 |
+
"Data engineering and curation" : 6
|
| 13 |
+
"Systems and efficiency" : 4
|
| 14 |
+
"Evaluation, calibration, and robustness" : 3
|
| 15 |
+
"AI safety and alignment" : 1
|
| 16 |
+
"Interpretability" : 1
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
<details>
|
| 20 |
+
<summary>View tasks by area →</summary>
|
| 21 |
+
|
| 22 |
+
### Model training
|
| 23 |
+
|
| 24 |
+
#### Representation learning
|
| 25 |
+
|
| 26 |
+
- [Compact encoding for a column with many categories](./tasks/hicard-latent-encoder)
|
| 27 |
+
- [Compact item embeddings for recommendations](./tasks/sparse-elsa-item-embeddings-8nnz)
|
| 28 |
+
- [Short binary codes for image search](./tasks/mlh-coco-16bit-hash-head-map5000)
|
| 29 |
+
|
| 30 |
+
#### Reinforcement learning
|
| 31 |
+
|
| 32 |
+
- [Advantage estimation for policy training](./tasks/grpo-rl-halfcheetah-advantage-estimator)
|
| 33 |
+
- [Reliable control policy trainer](./tasks/reppo-reliable-onpolicy-control-trainer)
|
| 34 |
+
|
| 35 |
+
#### Predictive modeling
|
| 36 |
+
|
| 37 |
+
- [Predict valid actions for a game policy](./tasks/vas-maskless-deployment-feasibility)
|
| 38 |
+
- [Rank employee access requests from ID codes](./tasks/dctabeval-aeac-pooled-cat-statistics)
|
| 39 |
+
|
| 40 |
+
#### Model merging and distillation
|
| 41 |
+
|
| 42 |
+
- [Eight domain vision model merging](./tasks/ties-merging-clip-vitl14-eight-task-merge)
|
| 43 |
+
|
| 44 |
+
### Algorithms and optimization
|
| 45 |
+
|
| 46 |
+
#### Statistical methods
|
| 47 |
+
|
| 48 |
+
- [Estimate uncertainty in a streaming optimizer](./tasks/sketched-newton-cov-estimator)
|
| 49 |
+
- [Estimate individual treatment effects](./tasks/causalpfn-cate-pehe-ihdp-surfaceb)
|
| 50 |
+
- [Recover river flow links](./tasks/causalrivers-heldout-station-graph-auroc)
|
| 51 |
+
|
| 52 |
+
#### Constrained optimization
|
| 53 |
+
|
| 54 |
+
- [Dual market budgeted classification](./tasks/budgeted-covtype-dual-market-open)
|
| 55 |
+
- [MILP branching policy](./tasks/tgat-milp-branching-node-count)
|
| 56 |
+
- [Online chance constrained policy](./tasks/sopcc-online-chance-constrained-policy)
|
| 57 |
+
|
| 58 |
+
### Data engineering and curation
|
| 59 |
+
|
| 60 |
+
#### Imputation
|
| 61 |
+
|
| 62 |
+
- [Budgeted imputation](./tasks/budgeted-imputation-mcar50)
|
| 63 |
+
- [Sparse panel imputation](./tasks/act-tensor-sparse-panel-imputation-r2)
|
| 64 |
+
|
| 65 |
+
#### Data selection
|
| 66 |
+
|
| 67 |
+
- [Unlabeled pool pruning](./tasks/activeprune-al-unlabeled-pool-pruning)
|
| 68 |
+
- [Low discrepancy subset selection](./tasks/carps-star-discrepancy-subset-select)
|
| 69 |
+
- [Group robust coreset selection](./tasks/coreset-selection-group-robust-waterbirds)
|
| 70 |
+
- [Pretraining token budget selection](./tasks/less-is-more-pretrain-token-budget-selector)
|
| 71 |
+
|
| 72 |
+
### Systems and efficiency
|
| 73 |
+
|
| 74 |
+
#### Inference
|
| 75 |
+
|
| 76 |
+
- [CPU language model decoding](./tasks/cpu-llm-decode-throughput)
|
| 77 |
+
- [CPU decoder graph execution](./tasks/cpu-decoder-graph-executor)
|
| 78 |
+
- [Video diffusion transformer caching](./tasks/fastercache-budgeted-video-dit-cache-policy)
|
| 79 |
+
|
| 80 |
+
#### Compression
|
| 81 |
+
|
| 82 |
+
- [SVDQuant PixArt Sigma quantization](./tasks/svdquant-w4a4-psnr)
|
| 83 |
+
|
| 84 |
+
### Evaluation, calibration, and robustness
|
| 85 |
+
|
| 86 |
+
#### Metric estimation
|
| 87 |
+
|
| 88 |
+
- [Shortest valid confidence interval](./tasks/shortest-valid-ci-l2-ece)
|
| 89 |
+
- [Label efficient risk estimation](./tasks/label-efficient-risk-estimator)
|
| 90 |
+
|
| 91 |
+
#### Robustness
|
| 92 |
+
|
| 93 |
+
- [Adversarially robust CIFAR 10 training](./tasks/fast-adv-budgeted-pgd50-robust-cifar10)
|
| 94 |
+
|
| 95 |
+
### AI safety and alignment
|
| 96 |
+
|
| 97 |
+
- [Candidate token loss ranker](./tasks/fastergcg-candidate-token-rank-ccc)
|
| 98 |
+
|
| 99 |
+
### Interpretability
|
| 100 |
+
|
| 101 |
+
- [Sparse dictionary coding](./tasks/sae-sparse-dict-nmse-frontier)
|
| 102 |
+
|
| 103 |
+
</details>
|
| 104 |
+
|
| 105 |
+
The AutoResearchExam Harness will be open sourced shortly.
|
| 106 |
+
|
| 107 |
+
## Citation
|
| 108 |
+
|
| 109 |
+
If you use AutoResearchExam in your research, please cite:
|
| 110 |
+
|
| 111 |
+
```bibtex
|
| 112 |
+
@misc{ramesh2026autoresearchexam,
|
| 113 |
+
author = {Ramesh, Anirudha and
|
| 114 |
+
Devic, Siddartha and
|
| 115 |
+
Garg, Shivank and
|
| 116 |
+
Parulekar, Advait and
|
| 117 |
+
Mahnot, Drish and
|
| 118 |
+
Pimpalgaonkar, Shreyas and
|
| 119 |
+
Suresh, Vishnu and
|
| 120 |
+
Dimakis, Alex and
|
| 121 |
+
Sathiamoorthy, Maheswaran},
|
| 122 |
+
title = {{AutoResearchExam}},
|
| 123 |
+
year = {2026},
|
| 124 |
+
month = sep,
|
| 125 |
+
url = {https://benchmarks.bespokelabs.ai/autoresearchexam/},
|
| 126 |
+
note = {Published September 9, 2026}
|
| 127 |
+
}
|
| 128 |
+
```
|
citation.bib
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@misc{ramesh2026autoresearchexam,
|
| 2 |
+
author = {Ramesh, Anirudha and
|
| 3 |
+
Devic, Siddartha and
|
| 4 |
+
Garg, Shivank and
|
| 5 |
+
Parulekar, Advait and
|
| 6 |
+
Mahnot, Drish and
|
| 7 |
+
Pimpalgaonkar, Shreyas and
|
| 8 |
+
Suresh, Vishnu and
|
| 9 |
+
Dimakis, Alex and
|
| 10 |
+
Sathiamoorthy, Maheswaran},
|
| 11 |
+
title = {{AutoResearchExam}},
|
| 12 |
+
year = {2026},
|
| 13 |
+
month = sep,
|
| 14 |
+
url = {https://benchmarks.bespokelabs.ai/autoresearchexam/},
|
| 15 |
+
note = {Published September 9, 2026}
|
| 16 |
+
}
|
tasks/activeprune-al-unlabeled-pool-pruning/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Selecting Useful Documents for Active Learning
|
| 2 |
+
|
| 3 |
+
*Category: Data engineering and curation. Subcategory: Data selection.*
|
| 4 |
+
|
| 5 |
+
The agent must help train a positive-versus-negative sentiment classifier using labels for at most 625 of 12,500 documents. Before each of five rounds, the agent narrows the remaining documents to at most 3,125 candidates but does not choose which 125 receive labels. In the first round, the system selects 125 candidates randomly; later, it selects those the current classifier finds most uncertain, meaning its positive and negative predictions are closest to 50–50. The agent can remove irrelevant or repetitive documents while preserving useful, varied examples, adapting its filtering as labels arrive. It is evaluated on separate unseen documents using macro-F1, which gives equal importance to performance on positive and negative sentiment.
|
tasks/activeprune-al-unlabeled-pool-pruning/instruction.md
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Unlabeled-pool pruning for active learning
|
| 2 |
+
|
| 3 |
+
An active-learning loop trains a binary sentiment classifier over a large unlabeled pool of
|
| 4 |
+
documents. Each round, before the acquisition function runs, your code picks which subset of
|
| 5 |
+
the still-unlabeled documents the acquisition function is allowed to consider. Everything else
|
| 6 |
+
about the loop is fixed and already built for you.
|
| 7 |
+
|
| 8 |
+
Write `/app/output/prune.py`. Your goal is to push the mean final-iteration macro-F1 as high as
|
| 9 |
+
possible.
|
| 10 |
+
|
| 11 |
+
Target metric: the mean final-iteration macro-F1 (in percent) on the hidden grading pools'
|
| 12 |
+
evaluation sets, averaged over 24 seeded end-to-end runs.
|
| 13 |
+
|
| 14 |
+
## The loop, per run
|
| 15 |
+
|
| 16 |
+
1. `prune` is called and returns at most 3125 pool indices (25% of the 12500-document pool).
|
| 17 |
+
2. The acquisition function picks 125 of the returned documents and reveals their stored
|
| 18 |
+
labels. On iteration 0 there is no model yet, so it picks the 125 uniformly at random from
|
| 19 |
+
what you returned. After that, it takes the 125 documents the current model is least
|
| 20 |
+
confident about, breaking ties by ascending pool index. If you return fewer than 125
|
| 21 |
+
indices, only that many documents get labelled that round.
|
| 22 |
+
3. The classifier (multinomial logistic regression, `C=1.0`, `lbfgs`, `max_iter=1000`, over
|
| 23 |
+
fixed 128-dimensional frozen text features) is refit from scratch on every label acquired so
|
| 24 |
+
far, then scored on a held-out evaluation set.
|
| 25 |
+
|
| 26 |
+
There are five iterations, so 625 labels at most. The graded number is the arithmetic mean,
|
| 27 |
+
over 24 seeded end-to-end runs, of the macro-F1 in percent the classifier reaches on the
|
| 28 |
+
evaluation set after the fifth iteration. Grading uses pools built by the same procedure as the
|
| 29 |
+
ones you're given, but from disjoint source documents you've never seen.
|
| 30 |
+
|
| 31 |
+
## The entry point
|
| 32 |
+
|
| 33 |
+
`/app/output/prune.py` must define, at module top level:
|
| 34 |
+
|
| 35 |
+
```python
|
| 36 |
+
def prune(pool_texts, available, labeled_indices, labeled_labels,
|
| 37 |
+
keep, iteration, rng_seed) -> list[int]
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
- `pool_texts` - the whole pool as a `list[str]` of raw documents, length 12500. The same object
|
| 41 |
+
is passed on every call within a run.
|
| 42 |
+
- `available` - `list[int]`, the pool indices not yet labelled.
|
| 43 |
+
- `labeled_indices`, `labeled_labels` - `list[int]`, what's been labelled so far in this run and
|
| 44 |
+
the labels that came back. Both empty on iteration 0.
|
| 45 |
+
- `keep` - `3125`, the largest selection allowed.
|
| 46 |
+
- `iteration` - `0` to `4`.
|
| 47 |
+
- `rng_seed` - this run's seed. Use it if you want your own randomness to be reproducible.
|
| 48 |
+
|
| 49 |
+
The return value must be a `list`, `tuple`, or 1-D integer numpy array of distinct ints, every
|
| 50 |
+
one present in `available`, with length between `1` and `keep` inclusive. Returning fewer than
|
| 51 |
+
`keep` (pruning harder) is allowed. Order doesn't matter: the simulator sorts the indices and
|
| 52 |
+
treats the result as a set.
|
| 53 |
+
|
| 54 |
+
The module is imported once per run in a fresh process, so module-level state persists across
|
| 55 |
+
that run's five calls but is discarded before the next run starts.
|
| 56 |
+
|
| 57 |
+
## Budgets and hard limits
|
| 58 |
+
|
| 59 |
+
- Module import: 60 s per run. Each `prune` call: 20 s of wall clock.
|
| 60 |
+
- 4 GiB of address space per run. Threading libraries are pinned to one thread; the grading
|
| 61 |
+
container has 8 vCPUs, 14 GiB of RAM, no GPU, and no network.
|
| 62 |
+
- The 24 runs are independent. Your module gets a read-only copy of the deliverable directory.
|
| 63 |
+
The only writable path is the private scratch directory named by `TMPDIR` (also `HOME`),
|
| 64 |
+
which is deleted when the run ends. `/tmp`, `/var/tmp`, and `/dev/shm` are not writable.
|
| 65 |
+
Nothing you write during scoring survives into another run.
|
| 66 |
+
- Anything else scores 0: no `/app/output/prune.py`, an empty one, an import error, a wrong
|
| 67 |
+
function name or arity, an exception, a blown budget, a return value of the wrong type or
|
| 68 |
+
dtype, a duplicate index, an index not in `available`, or a length of 0 or above `keep`. A
|
| 69 |
+
single failing run invalidates the whole submission.
|
| 70 |
+
- A submission containing a symlink or hard link anywhere under `/app/output` is rejected and
|
| 71 |
+
scores 0.
|
| 72 |
+
|
| 73 |
+
## What crosses to the grader
|
| 74 |
+
|
| 75 |
+
- Only `/app/output/` travels, in its entirety. Every module, model, vocabulary, threshold
|
| 76 |
+
table, cached statistic, and data file your `prune` loads at grade time must live inside that
|
| 77 |
+
directory; nothing you write anywhere else survives.
|
| 78 |
+
- Packages available at grade time: `numpy`, `scipy`, `scikit-learn`, `joblib`,
|
| 79 |
+
`threadpoolctl`, and the standard library.
|
| 80 |
+
- Absent when you're scored: `/app/data/`, `/app/harness/`, and `/app/run_dev.py`. Do not
|
| 81 |
+
import from them at grade time.
|
| 82 |
+
- Your `prune` receives raw text only. The frozen feature matrices belong to the simulator, not
|
| 83 |
+
to you.
|
| 84 |
+
|
| 85 |
+
## What you are given
|
| 86 |
+
|
| 87 |
+
- `/app/data/pool_{a,b,c}.jsonl.gz` - three development pools, one JSON object per line with
|
| 88 |
+
`text` and the `label` the oracle would return for it. 12500 lines each.
|
| 89 |
+
- `/app/data/pool_{a,b,c}_X.npy` - the frozen 128-d features for each pool, `float32`, shape
|
| 90 |
+
`(12500, 128)`; `/app/data/pool_{a,b,c}_y.npy` - the same labels as `int8`.
|
| 91 |
+
- `/app/data/dev_eval.jsonl.gz`, `/app/data/dev_eval_y.npy`, `/app/data/eval_a_X.npy`,
|
| 92 |
+
`/app/data/eval_b_X.npy`, `/app/data/eval_c_X.npy` - a development evaluation slice of 2500
|
| 93 |
+
held-out labelled documents and its features under each pool's feature map.
|
| 94 |
+
- `/app/harness/al_loop.py` - the simulator, byte-identical to the one that scores you, plus the
|
| 95 |
+
process isolation and budget enforcement it runs under.
|
| 96 |
+
- `/app/run_dev.py` - runs the loop end to end on the development pools with your pruner and
|
| 97 |
+
prints per-pool and overall means:
|
| 98 |
+
|
| 99 |
+
```
|
| 100 |
+
python3 /app/run_dev.py --draws a,b,c --seeds 0-11
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
The simulator, the acquisition function, the classifier, and the evaluation are all fixed. The
|
| 104 |
+
grader uses its own copies, so editing anything under `/app/harness/` changes nothing about how
|
| 105 |
+
you're scored.
|
| 106 |
+
|
| 107 |
+
## Scoring
|
| 108 |
+
|
| 109 |
+
A mean final-iteration macro-F1 of 77.9 percent or lower scores 0. Above that floor, every
|
| 110 |
+
improvement receives a higher score.
|
tasks/activeprune-al-unlabeled-pool-pruning/task.toml
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.4"
|
| 2 |
+
artifacts = [ "/app/output",]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "bespokelabs/activeprune-al-unlabeled-pool-pruning"
|
| 6 |
+
version = "1.0.0"
|
| 7 |
+
description = ""
|
| 8 |
+
keywords = [ "autoresearch", "machine-learning", "benchmark",]
|
| 9 |
+
[[task.authors]]
|
| 10 |
+
name = "Bespoke Labs"
|
| 11 |
+
|
| 12 |
+
[metadata]
|
| 13 |
+
category = "Machine Learning and AI"
|
| 14 |
+
subcategory = "Data Engineering and Curation"
|
| 15 |
+
task_objective = [ "Implement", "Optimize",]
|
| 16 |
+
artifact_type = [ "Single script or program",]
|
| 17 |
+
expert_time_estimate_hours = 4.0
|
| 18 |
+
|
| 19 |
+
[verifier]
|
| 20 |
+
timeout_sec = 1800.0
|
| 21 |
+
environment_mode = "separate"
|
| 22 |
+
collect = []
|
| 23 |
+
|
| 24 |
+
[verifier.env]
|
| 25 |
+
|
| 26 |
+
[verifier.environment]
|
| 27 |
+
network_mode = "no-network"
|
| 28 |
+
build_timeout_sec = 3600.0
|
| 29 |
+
os = "linux"
|
| 30 |
+
cpus = 8
|
| 31 |
+
memory_mb = 14336
|
| 32 |
+
storage_mb = 153600
|
| 33 |
+
gpus = 0
|
| 34 |
+
mcp_servers = []
|
| 35 |
+
|
| 36 |
+
[verifier.environment.env]
|
| 37 |
+
|
| 38 |
+
[agent]
|
| 39 |
+
network_mode = "allowlist"
|
| 40 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 41 |
+
timeout_sec = 14400.0
|
| 42 |
+
user = "agent"
|
| 43 |
+
|
| 44 |
+
[environment]
|
| 45 |
+
network_mode = "allowlist"
|
| 46 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 47 |
+
build_timeout_sec = 3600.0
|
| 48 |
+
os = "linux"
|
| 49 |
+
cpus = 8
|
| 50 |
+
memory_mb = 14336
|
| 51 |
+
storage_mb = 153600
|
| 52 |
+
gpus = 0
|
| 53 |
+
mcp_servers = []
|
| 54 |
+
|
| 55 |
+
[environment.env]
|
| 56 |
+
|
| 57 |
+
[solution.env]
|
tasks/budgeted-imputation-mcar50/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# High throughput data imputation
|
| 2 |
+
|
| 3 |
+
*Category: Data engineering and curation. Subcategory: Imputation.*
|
| 4 |
+
|
| 5 |
+
The task consists of several incomplete numeric training and evaluation tables with up to 42 columns and 10,000 training rows. Half of the values are hidden at random. The objective is to fill in the missing values in evaluation tables within a 30 second time limit. Different datasets can contain different patterns between columns, so the method must find useful patterns without seeing any complete table. One may start by filling each missing value with its column mean or a prediction from the other columns. Further gains may come from repeated prediction and methods that learn shared structure across rows and columns.
|
tasks/budgeted-imputation-mcar50/instruction.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Recovering missing values under 50% missingness, on a fixed CPU budget
|
| 2 |
+
|
| 3 |
+
Fill in the missing values in unseen numeric tables as accurately as possible.
|
| 4 |
+
Each value is missing independently with 50% probability, and each call has a 30 second
|
| 5 |
+
wall clock limit.
|
| 6 |
+
|
| 7 |
+
Write an imputer at `/app/output/impute.py`.
|
| 8 |
+
|
| 9 |
+
## Submission format
|
| 10 |
+
|
| 11 |
+
- File: `/app/output/impute.py`.
|
| 12 |
+
- It must define exactly this function:
|
| 13 |
+
|
| 14 |
+
```python
|
| 15 |
+
def impute(X_train: np.ndarray, X_eval: np.ndarray, seed: int) -> np.ndarray
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
- One call handles one dataset.
|
| 19 |
+
- `X_train`: shape `(n_train, d)`, dtype float64.
|
| 20 |
+
- `X_eval`: shape `(n_eval, d)`, dtype float64.
|
| 21 |
+
- `X_train` and `X_eval` are row-disjoint samples from the same numeric tabular dataset.
|
| 22 |
+
- Both matrices have `np.nan` at their missing entries.
|
| 23 |
+
- Missingness is MCAR at a rate of 0.50, drawn independently for each matrix.
|
| 24 |
+
- Features were transformed to a normal output distribution by a quantile transform fitted on the incomplete training matrix.
|
| 25 |
+
- `seed`: an integer you may use for any randomness you need.
|
| 26 |
+
- Nothing in the two matrices reveals the true value of a missing entry.
|
| 27 |
+
|
| 28 |
+
Return value:
|
| 29 |
+
|
| 30 |
+
- The completed evaluation matrix.
|
| 31 |
+
- Must be a `numpy.float64` array, or something `numpy.asarray` can convert to one.
|
| 32 |
+
- Shape `(n_eval, d)`, with row `i` and column `j` aligned to row `i` and column `j` of `X_eval`.
|
| 33 |
+
- Every entry must be finite: no `nan`, no `+inf`/`-inf`.
|
| 34 |
+
- Only entries that were missing in `X_eval` are scored.
|
| 35 |
+
- A return value with the wrong shape or dtype, or containing a `nan` or an infinity, invalidates the call (see "Execution and budget" for the consequence).
|
| 36 |
+
|
| 37 |
+
## Metric
|
| 38 |
+
|
| 39 |
+
- Target metric: imputation $R^2$, computed on hidden evaluation datasets not included in this container (see "Execution and budget").
|
| 40 |
+
- For each call and feature $j$, over that feature's masked evaluation entries:
|
| 41 |
+
|
| 42 |
+
$$R^2_j = 1 - \frac{\sum_{\text{masked}} (\text{true} - \text{returned})^2}{\sum_{\text{masked}} (\text{true} - \overline{\text{true}})^2}$$
|
| 43 |
+
|
| 44 |
+
- $\overline{\text{true}}$ is the mean of the true values over the same masked entries.
|
| 45 |
+
- Skip features with fewer than two masked entries, or where the masked true values' sum of squared deviations from their mean is at most 1e-12.
|
| 46 |
+
- Call score: unweighted mean of $R^2_j$ over the remaining features. $R^2$ can be negative.
|
| 47 |
+
- Reported metric: that score averaged unweighted, first over several independent mask draws per dataset, then over all evaluation datasets.
|
| 48 |
+
- Filling every missing entry with the mean of that column's observed training values scores 0.
|
| 49 |
+
- Anything strictly better scores strictly higher, with no ceiling, so keep pushing the metric up.
|
| 50 |
+
|
| 51 |
+
## Execution and budget
|
| 52 |
+
|
| 53 |
+
- Each call runs in a fresh process that imports your module and passes it matrices from a tabular dataset not present in this container.
|
| 54 |
+
- Time budget: 30 seconds of wall clock per call, covering interpreter start-up, importing your module, and the `impute` call together.
|
| 55 |
+
- The process is SIGKILLed at 30 seconds.
|
| 56 |
+
- These threading env vars are fixed to `1` in that process: `OMP_NUM_THREADS`, `MKL_NUM_THREADS`, `OPENBLAS_NUM_THREADS`, `NUMEXPR_NUM_THREADS`, `VECLIB_MAXIMUM_THREADS`.
|
| 57 |
+
- A call that overruns the budget, raises an error, or returns something the contract above rejects scores 0 (the column-mean score) for that call.
|
| 58 |
+
- Each call gets a fresh working directory, `HOME`, and `TMPDIR`. Anything it leaves elsewhere is removed before the next call starts, so nothing survives between calls.
|
| 59 |
+
- The 30 seconds are per call and cannot be banked or carried over.
|
| 60 |
+
- Evaluation matrix sizes: `n_train` up to 10000, `n_eval` up to 2500, `d` up to 42 (as low as 3 on some datasets).
|
| 61 |
+
|
| 62 |
+
## What is here
|
| 63 |
+
|
| 64 |
+
- `/app/data/dev/`: six complete numeric tabular datasets as `.npz` files, plus `manifest.json` describing each one. These are development material only; none is an evaluation dataset.
|
| 65 |
+
- `/app/cellspec.py`: provides `build_cell(X, seed, n_train, n_eval)`, which builds `(X_train, X_eval, X_eval_true, mask_eval)` from a complete matrix using the row split, MCAR masks, and quantile transform described above. Also provides `imputation_r2(pred, true, mask)`, the metric function. The evaluation harness uses this same file to build its cells.
|
| 66 |
+
- `/app/cellrunner.py`: loads one call's inputs, imports `impute.py`, and saves what it returns. The evaluation harness runs this same file.
|
| 67 |
+
- `/app/devkit.py`: runs `/app/output/impute.py` over the development panel under the same 30-second budget and prints per-draw, per-dataset, and panel scores. Run `python3 /app/devkit.py --list` to show the panel.
|
| 68 |
+
- `/app/output/impute.py` currently contains column-mean imputation.
|
| 69 |
+
|
| 70 |
+
## Constraints
|
| 71 |
+
|
| 72 |
+
- Only `/app/output/` is collected for evaluation.
|
| 73 |
+
- Anything your module imports or loads at evaluation time must live under `/app/output/`.
|
| 74 |
+
- Limits under `/app/output/`: at most 2000 files and 512 MB total.
|
| 75 |
+
- Symbolic links under `/app/output/` are not copied.
|
| 76 |
+
- No network access.
|
| 77 |
+
- Container resources: 8 CPUs, 14 GB memory, 0 GPUs.
|
tasks/budgeted-imputation-mcar50/task.toml
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.4"
|
| 2 |
+
artifacts = [ "/app/output",]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "bespokelabs/budgeted-imputation-mcar50"
|
| 6 |
+
version = "1.0.0"
|
| 7 |
+
description = ""
|
| 8 |
+
keywords = [ "autoresearch", "machine-learning", "benchmark",]
|
| 9 |
+
[[task.authors]]
|
| 10 |
+
name = "Bespoke Labs"
|
| 11 |
+
|
| 12 |
+
[metadata]
|
| 13 |
+
category = "Machine Learning and AI"
|
| 14 |
+
subcategory = "Feature engineering"
|
| 15 |
+
task_objective = [ "Implement", "Optimize",]
|
| 16 |
+
artifact_type = [ "Single script or program",]
|
| 17 |
+
expert_time_estimate_hours = 4.0
|
| 18 |
+
|
| 19 |
+
[verifier]
|
| 20 |
+
timeout_sec = 1800.0
|
| 21 |
+
environment_mode = "separate"
|
| 22 |
+
collect = []
|
| 23 |
+
|
| 24 |
+
[verifier.env]
|
| 25 |
+
|
| 26 |
+
[verifier.environment]
|
| 27 |
+
network_mode = "no-network"
|
| 28 |
+
build_timeout_sec = 600.0
|
| 29 |
+
os = "linux"
|
| 30 |
+
mcp_servers = []
|
| 31 |
+
|
| 32 |
+
[verifier.environment.env]
|
| 33 |
+
|
| 34 |
+
[agent]
|
| 35 |
+
network_mode = "allowlist"
|
| 36 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 37 |
+
timeout_sec = 14400.0
|
| 38 |
+
|
| 39 |
+
[environment]
|
| 40 |
+
network_mode = "allowlist"
|
| 41 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 42 |
+
build_timeout_sec = 3600.0
|
| 43 |
+
os = "linux"
|
| 44 |
+
cpus = 8
|
| 45 |
+
memory_mb = 14336
|
| 46 |
+
storage_mb = 153600
|
| 47 |
+
gpus = 0
|
| 48 |
+
mcp_servers = []
|
| 49 |
+
|
| 50 |
+
[environment.env]
|
| 51 |
+
|
| 52 |
+
[solution.env]
|
tasks/carps-star-discrepancy-subset-select/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Select points that cover a cube evenly
|
| 2 |
+
|
| 3 |
+
*Category: Data engineering and curation. Subcategory: Data selection.*
|
| 4 |
+
|
| 5 |
+
The agent receives between 800 and 4,000 candidate points inside a three-dimensional cube and must directly select exactly 30, 50, or 65 of them within ten seconds. The goal is to distribute the selected points evenly throughout the cube. Evenness is measured using star discrepancy: for every rectangular region extending from the cube’s origin, the evaluator compares the region’s share of the cube’s volume with the share of selected points it contains. For example, a region occupying one quarter of the cube should contain roughly one quarter of the selected points. The largest mismatch across all such regions is the discrepancy. The agent may use spatial grids, greedy selection, local point swaps, random restarts, or fast approximations of this worst mismatch. It is evaluated on unseen point clouds using mean exact star discrepancy; lower is better, and a random subset is the baseline.
|
tasks/carps-star-discrepancy-subset-select/instruction.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Low-discrepancy subset selection
|
| 2 |
+
|
| 3 |
+
You get a cloud of `n` points in the unit cube `[0,1]^3` and a subset size `k`. Return the `k`
|
| 4 |
+
points that fill the cube most evenly, in the L-infinity star discrepancy sense.
|
| 5 |
+
|
| 6 |
+
For a set `P` of `k` points, the star discrepancy is:
|
| 7 |
+
|
| 8 |
+
$$d^*(P) = \sup_{q \in [0,1]^3} \left| \frac{\#\{p \in P : p < q\}}{k} - q_1 q_2 q_3 \right|$$
|
| 9 |
+
|
| 10 |
+
This is the worst gap, over every box `[0,q)` anchored at the origin, between the fraction of `P`
|
| 11 |
+
inside the box and the box's volume. Lower is better.
|
| 12 |
+
|
| 13 |
+
## Submission format
|
| 14 |
+
|
| 15 |
+
Write `/app/output/select_subset.py`, defining exactly one entry point:
|
| 16 |
+
|
| 17 |
+
```python
|
| 18 |
+
select(points, k, seed, time_budget_s) -> sequence of k ints
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
- `points`: C-contiguous float64 array, shape `(n, 3)`, values in `[0, 1]`, `800 <= n <= 4000`.
|
| 22 |
+
- `k`: int, one of `30`, `50`, `65`; always `k < n`.
|
| 23 |
+
- `seed`: int. Use it for any randomness so a call is reproducible.
|
| 24 |
+
- `time_budget_s`: float, `10.0` at grade time. `select` must return within it.
|
| 25 |
+
- Return value: any iterable of exactly `k` distinct integer indices into `points`, each in
|
| 26 |
+
`[0, n)`. Values can be Python ints, numpy integers, or floats with an integral value.
|
| 27 |
+
|
| 28 |
+
## Data notes
|
| 29 |
+
|
| 30 |
+
- Example clouds live in `/app/data/examples/`.
|
| 31 |
+
- `/app/data/examples/manifest.json` lists each cloud's file name, `n`, and `k`.
|
| 32 |
+
- Grading uses sealed clouds drawn the same way; your code sees them for the first time at grade
|
| 33 |
+
time.
|
| 34 |
+
|
| 35 |
+
## Metric and scoring
|
| 36 |
+
|
| 37 |
+
- `select` is called once per (cloud, seed) pair.
|
| 38 |
+
- You're scored on the mean exact `d*` of the returned subsets across the whole panel.
|
| 39 |
+
- A subset no better than an unguided, uniformly random `k`-subset scores zero.
|
| 40 |
+
- Lower discrepancy always scores higher, with no cutoff where further improvement stops
|
| 41 |
+
counting.
|
| 42 |
+
|
| 43 |
+
## Execution environment
|
| 44 |
+
|
| 45 |
+
- Grading runs in a separate environment from this one, and only `/app/output` carries over. So
|
| 46 |
+
your solution must be fully self-contained there: if `select_subset.py` imports a helper module
|
| 47 |
+
you wrote, that module must also live under `/app/output`.
|
| 48 |
+
- Each call runs in a fresh process pinned to a single CPU.
|
| 49 |
+
- `/app/output` is mounted read-only at grade time. A scratch working directory is provided and
|
| 50 |
+
deleted after each call, so nothing written during one call is visible to any other.
|
| 51 |
+
- The process is SIGKILLed `time_budget_s + 5` seconds after it starts. Interpreter startup and
|
| 52 |
+
importing your module count against that extra 5 seconds.
|
| 53 |
+
- Available packages: the Python standard library, numpy, and scipy. No network access.
|
| 54 |
+
- `/app/output` is writable now; everything else is read-only.
|
| 55 |
+
- Everything under `/app/output` must be a regular file. A symbolic or hard link anywhere in that
|
| 56 |
+
tree makes the whole submission unscoreable.
|
| 57 |
+
|
| 58 |
+
## Invalid submissions
|
| 59 |
+
|
| 60 |
+
- If a call is killed, raises, or returns anything other than exactly `k` distinct in-range
|
| 61 |
+
integral indices, that cloud is scored as if no subset had been selected, the worst credit
|
| 62 |
+
available.
|
| 63 |
+
- If your module fails to import, you score zero overall.
|
tasks/carps-star-discrepancy-subset-select/task.toml
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.4"
|
| 2 |
+
artifacts = [ "/app/output",]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "bespokelabs/carps-star-discrepancy-subset-select"
|
| 6 |
+
version = "1.0.0"
|
| 7 |
+
description = ""
|
| 8 |
+
keywords = [ "autoresearch", "machine-learning", "benchmark",]
|
| 9 |
+
[[task.authors]]
|
| 10 |
+
name = "Bespoke Labs"
|
| 11 |
+
|
| 12 |
+
[metadata]
|
| 13 |
+
category = "Model Training and ML Infrastructure"
|
| 14 |
+
subcategory = "Evaluation infrastructure"
|
| 15 |
+
task_objective = [ "Implement", "Optimize",]
|
| 16 |
+
artifact_type = [ "Single script or program",]
|
| 17 |
+
expert_time_estimate_hours = 3.0
|
| 18 |
+
|
| 19 |
+
[verifier]
|
| 20 |
+
timeout_sec = 1200.0
|
| 21 |
+
environment_mode = "separate"
|
| 22 |
+
collect = []
|
| 23 |
+
|
| 24 |
+
[verifier.env]
|
| 25 |
+
|
| 26 |
+
[verifier.environment]
|
| 27 |
+
network_mode = "no-network"
|
| 28 |
+
build_timeout_sec = 600.0
|
| 29 |
+
os = "linux"
|
| 30 |
+
mcp_servers = []
|
| 31 |
+
|
| 32 |
+
[verifier.environment.env]
|
| 33 |
+
|
| 34 |
+
[agent]
|
| 35 |
+
network_mode = "allowlist"
|
| 36 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 37 |
+
timeout_sec = 14400.0
|
| 38 |
+
user = "agent"
|
| 39 |
+
|
| 40 |
+
[environment]
|
| 41 |
+
network_mode = "allowlist"
|
| 42 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 43 |
+
build_timeout_sec = 3600.0
|
| 44 |
+
os = "linux"
|
| 45 |
+
cpus = 8
|
| 46 |
+
memory_mb = 14336
|
| 47 |
+
storage_mb = 153600
|
| 48 |
+
gpus = 0
|
| 49 |
+
mcp_servers = []
|
| 50 |
+
|
| 51 |
+
[environment.env]
|
| 52 |
+
|
| 53 |
+
[solution.env]
|
tasks/causalrivers-heldout-station-graph-auroc/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Recovering River Networks from Flow Measurements
|
| 2 |
+
|
| 3 |
+
*Category: Algorithms and optimization. Subcategory: Statistical methods.*
|
| 4 |
+
|
| 5 |
+
The agent must infer how five river-monitoring stations are connected using five years of discharge measurements recorded every 15 minutes. A directed connection from station A to station B means water passes from A to B without another monitored station between them. The station names, locations, and ordering are hidden, so the agent must assign a likelihood score to each of the 20 possible directed connections. A useful signal is that a change in flow upstream may appear downstream after a delay, although shared seasons can make unrelated stations move together, while missing or faulty readings add noise. The agent may clean the data, remove seasonal patterns, measure delayed relationships, test whether a connection remains after accounting for other stations, and enforce a consistent overall river graph. It is evaluated on 500 unseen five-station networks using AUROC, which measures how reliably true connections rank above false ones; higher is better.
|
tasks/causalrivers-heldout-station-graph-auroc/instruction.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Directed edge scores for river gauge subgraphs
|
| 2 |
+
|
| 3 |
+
A river gauge network is a directed graph over discharge measuring stations. An edge `i -> j`
|
| 4 |
+
means water measured at station `i` flows onward to station `j`, with no gauged station in
|
| 5 |
+
between. Given five years of discharge data from five stations at a time, score how likely each
|
| 6 |
+
ordered pair is to be such an edge.
|
| 7 |
+
|
| 8 |
+
## Submission format
|
| 9 |
+
|
| 10 |
+
- Write `/app/output/predict.py` defining a function `score_edges(series, freq_minutes) ->
|
| 11 |
+
numpy.ndarray`.
|
| 12 |
+
- `series`: a C-contiguous `float32` array of shape `(175296, 5)`, 15-minute samples from
|
| 13 |
+
2019-01-01 00:00 to 2023-12-31 23:45, raw discharge in $m^3/s$.
|
| 14 |
+
- Missing measurements are `NaN` (a few per cent overall, ranging from 0% to 66% for an
|
| 15 |
+
individual station). A handful of readings are physically impossible negatives.
|
| 16 |
+
- `freq_minutes` is the int `15`.
|
| 17 |
+
- The column order of `series` is a random permutation of the five stations. No identifier,
|
| 18 |
+
coordinate, river name, or other ordering hint is passed.
|
| 19 |
+
- Return a `(5, 5)` array of real numbers. Entry `(i, j)` scores the hypothesis "column `i` is
|
| 20 |
+
directly upstream of column `j`" - higher means more likely.
|
| 21 |
+
- Every off-diagonal entry must be finite. The diagonal is ignored. Only the ranking induced by
|
| 22 |
+
the 20 off-diagonal entries is read, so any scale or offset works.
|
| 23 |
+
|
| 24 |
+
## Metric
|
| 25 |
+
|
| 26 |
+
- Each graded sample is a connected 5-node induced subgraph of a held-out gauge network.
|
| 27 |
+
- Its 20 off-diagonal scores are ranked against the true directed edges of that subgraph, using
|
| 28 |
+
a tie-aware AUROC (self-links excluded, so a constant matrix scores 0.5).
|
| 29 |
+
- The task metric is the unweighted mean of that AUROC over the graded samples.
|
| 30 |
+
- Objective: maximize. Higher is strictly better, with no threshold or cutoff past which further
|
| 31 |
+
improvement stops counting.
|
| 32 |
+
- A submission no better than cheap heuristic baselines earns 0 reward; reward rises strictly
|
| 33 |
+
with the metric above that.
|
| 34 |
+
|
| 35 |
+
## Packages
|
| 36 |
+
|
| 37 |
+
numpy, pandas, scipy, scikit-learn, statsmodels, networkx and torch (CPU build) are installed
|
| 38 |
+
and importable in both the development and the graded environment. No other packages and no
|
| 39 |
+
network access are available.
|
| 40 |
+
|
| 41 |
+
## Development data
|
| 42 |
+
|
| 43 |
+
`/app/data` holds two labelled gauge networks. Their stations are disjoint from each other and
|
| 44 |
+
from the graded stations, and each region is gauged by a different set of agencies.
|
| 45 |
+
|
| 46 |
+
| file | contents |
|
| 47 |
+
| --- | --- |
|
| 48 |
+
| `/app/data/dev_a_series.npy` | float32 `(175296, 494)`, same time axis, units and defects as `series` |
|
| 49 |
+
| `/app/data/dev_a_edges.csv` | `cause,effect` - column indices of the 490 true directed edges of region a |
|
| 50 |
+
| `/app/data/dev_b_series.npy` | float32 `(175296, 259)` |
|
| 51 |
+
| `/app/data/dev_b_edges.csv` | the 200 true directed edges of region b |
|
| 52 |
+
|
| 53 |
+
- Each edge list is the induced graph over the stations of its own region: a pair absent from
|
| 54 |
+
the list has no edge between those two stations.
|
| 55 |
+
- `/app/dev_data.py` has loaders.
|
| 56 |
+
- Nothing in this container describes the graded stations.
|
| 57 |
+
|
| 58 |
+
## Graded run
|
| 59 |
+
|
| 60 |
+
- 500 samples per graded run, in groups of at most 40. Each group runs in a fresh process that
|
| 61 |
+
imports `/app/output/predict.py` once, then calls `score_edges` once per sample in that group.
|
| 62 |
+
Nothing kept in module state or on disk carries across groups.
|
| 63 |
+
- The whole graded run (every import plus every call) must finish inside 1200 s of wall clock.
|
| 64 |
+
Overrunning that scores 0.
|
| 65 |
+
- Hardware: 8 vCPUs, 14 GB RAM, 0 GPUs, no network. `OMP_NUM_THREADS`, `MKL_NUM_THREADS`,
|
| 66 |
+
`OPENBLAS_NUM_THREADS` and `NUMEXPR_NUM_THREADS` are all `1` in the graded process, and
|
| 67 |
+
`torch.set_num_threads(1)` is called before your module is imported.
|
| 68 |
+
- Grading runs in a separate environment from this one: `/app/output` is the only artifact that
|
| 69 |
+
crosses over, so the solution must be self-contained inside it. Nothing else in this
|
| 70 |
+
container - files elsewhere, installed state, anything not under `/app/output` - is available
|
| 71 |
+
when grading runs.
|
| 72 |
+
- `/app/output` is copied to a directory the graded process can read but not write, and its
|
| 73 |
+
contents must total at most 50 MB.
|
| 74 |
+
- Modules and data files shipped next to `predict.py` can be imported and read normally; that
|
| 75 |
+
directory is on `sys.path`. Symbolic links are not carried across the copy.
|
| 76 |
+
- The only writable location during grading is `$TMPDIR`, which is empty at the start of every
|
| 77 |
+
group.
|
| 78 |
+
- Scoring 0 for the whole run: a missing, empty or unimportable `predict.py`, a missing or
|
| 79 |
+
non-callable `score_edges`, a group process that dies, or an overrun time budget.
|
| 80 |
+
- Scoring 0.0 for a single sample: a call that raises, or that returns anything other than a
|
| 81 |
+
`(5, 5)` matrix with finite off-diagonal entries.
|
| 82 |
+
- No network access is available at any point, in either environment.
|
tasks/causalrivers-heldout-station-graph-auroc/task.toml
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.4"
|
| 2 |
+
artifacts = [ "/app/output",]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "bespokelabs/causalrivers-heldout-station-graph-auroc"
|
| 6 |
+
version = "1.0.0"
|
| 7 |
+
description = ""
|
| 8 |
+
keywords = [ "autoresearch", "machine-learning", "benchmark",]
|
| 9 |
+
[[task.authors]]
|
| 10 |
+
name = "Bespoke Labs"
|
| 11 |
+
|
| 12 |
+
[metadata]
|
| 13 |
+
category = "Machine Learning and AI"
|
| 14 |
+
subcategory = "Model inference and prediction"
|
| 15 |
+
task_objective = [ "Implement", "Optimize",]
|
| 16 |
+
artifact_type = [ "Single script or program",]
|
| 17 |
+
expert_time_estimate_hours = 6.0
|
| 18 |
+
metric_name = "Mean per-subgraph AUROC of directed-edge scores over a sealed panel of connected 5-node gauge subgraphs"
|
| 19 |
+
objective = "maximize"
|
| 20 |
+
|
| 21 |
+
[verifier]
|
| 22 |
+
timeout_sec = 2700.0
|
| 23 |
+
environment_mode = "separate"
|
| 24 |
+
collect = []
|
| 25 |
+
|
| 26 |
+
[verifier.env]
|
| 27 |
+
|
| 28 |
+
[verifier.environment]
|
| 29 |
+
network_mode = "no-network"
|
| 30 |
+
build_timeout_sec = 3600.0
|
| 31 |
+
os = "linux"
|
| 32 |
+
cpus = 8
|
| 33 |
+
memory_mb = 14336
|
| 34 |
+
storage_mb = 153600
|
| 35 |
+
gpus = 0
|
| 36 |
+
mcp_servers = []
|
| 37 |
+
|
| 38 |
+
[verifier.environment.env]
|
| 39 |
+
|
| 40 |
+
[agent]
|
| 41 |
+
network_mode = "allowlist"
|
| 42 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 43 |
+
timeout_sec = 14400.0
|
| 44 |
+
user = "agent"
|
| 45 |
+
|
| 46 |
+
[environment]
|
| 47 |
+
network_mode = "allowlist"
|
| 48 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 49 |
+
build_timeout_sec = 3600.0
|
| 50 |
+
os = "linux"
|
| 51 |
+
cpus = 8
|
| 52 |
+
memory_mb = 14336
|
| 53 |
+
storage_mb = 153600
|
| 54 |
+
gpus = 0
|
| 55 |
+
mcp_servers = []
|
| 56 |
+
|
| 57 |
+
[environment.env]
|
| 58 |
+
|
| 59 |
+
[solution.env]
|
tasks/coreset-selection-group-robust-waterbirds/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Selecting Bird Images Across Hidden Background Groups
|
| 2 |
+
|
| 3 |
+
*Category: Data engineering and curation. Subcategory: Data selection.*
|
| 4 |
+
|
| 5 |
+
The agent must choose 240 bird images from a pool of roughly 2,000 to train a fixed classifier that distinguishes two bird classes. It sees each image’s 512-dimensional numerical representation and bird label, but not its background type. This matters because bird class and background are strongly correlated: for example, most waterbirds may appear over water, so a classifier can learn the background instead of the bird and then fail on a waterbird photographed on land. The agent must select exactly 120 examples from each bird class, while trying to include both common and rare background combinations. It may use clustering, diversity selection, class-prediction errors, or low-confidence examples to infer the hidden groups. A fixed logistic-regression classifier is then trained only on the selected images. Evaluation covers 35 runs on unseen pools and measures accuracy on the weakest of the four bird-class-and-background groups; higher is better.
|
tasks/coreset-selection-group-robust-waterbirds/instruction.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Coreset selection against an unlabeled slice
|
| 2 |
+
|
| 3 |
+
You're given embeddings for a pool of bird photos, produced once by a frozen image backbone.
|
| 4 |
+
Each embedding is 512-dimensional. Your job is to pick 240 of these rows to form the training
|
| 5 |
+
set for a fixed downstream classifier.
|
| 6 |
+
|
| 7 |
+
The classifier is scored on a held-out evaluation set split into four slices: the two class
|
| 8 |
+
labels crossed with a binary attribute. That attribute is never disclosed and never labeled
|
| 9 |
+
anywhere in the material you're given.
|
| 10 |
+
|
| 11 |
+
## Data provided
|
| 12 |
+
|
| 13 |
+
| path | contents |
|
| 14 |
+
|---|---|
|
| 15 |
+
| `/app/data/dev_pool_features.npy` | `float32`, shape `(2397, 512)`, development pool embeddings, not L2-normalized |
|
| 16 |
+
| `/app/data/dev_pool_labels.npy` | `int64` in `{0, 1}`, shape `(2397,)`, row-aligned to the features |
|
| 17 |
+
| `/app/data/dev_draws.npy` | `int64`, shape `(4, 2038)`, four subsamples of the development pool, drawn by the same stratified procedure used for the pools you'll be graded on |
|
| 18 |
+
|
| 19 |
+
These files are read-only. You may only write to `/app/output/`.
|
| 20 |
+
|
| 21 |
+
## Deliverable
|
| 22 |
+
|
| 23 |
+
Write `/app/output/selector.py`, with exactly one entry point:
|
| 24 |
+
|
| 25 |
+
```python
|
| 26 |
+
def select_coreset(features, labels, budget, seed):
|
| 27 |
+
...
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
Contract:
|
| 31 |
+
|
| 32 |
+
- `features`: `float32` array of shape `(N, 512)`, embeddings of a graded pool you've never
|
| 33 |
+
seen, from the same backbone as the development pool. `N` is roughly 2000.
|
| 34 |
+
- `labels`: `int64` array of shape `(N,)`, values in `{0, 1}`, row-aligned to `features`.
|
| 35 |
+
- `budget`: `int`, always `240`.
|
| 36 |
+
- `seed`: `int`, yours to use for any randomness of your own.
|
| 37 |
+
- Returns: an `int64` array of shape `(240,)` with **unique** indices in `[0, N)`, of which
|
| 38 |
+
**exactly 120 have label 0 and exactly 120 have label 1**.
|
| 39 |
+
|
| 40 |
+
Helper modules can live beside `selector.py` in `/app/output/`. Everything in that directory
|
| 41 |
+
travels with the entry point at grading time, so anything your entry point loads at call time
|
| 42 |
+
needs to be there too.
|
| 43 |
+
|
| 44 |
+
## Runtime constraints
|
| 45 |
+
|
| 46 |
+
- Your function is called once per graded pool draw, with 150 seconds of wall-clock time per
|
| 47 |
+
call.
|
| 48 |
+
- Runs as an unprivileged user: no network, no access to the evaluation set, no attribute
|
| 49 |
+
labels.
|
| 50 |
+
- Runs with `OMP_NUM_THREADS=1`, on a machine with 8 CPUs, 14336 MB of memory, and 0 GPUs.
|
| 51 |
+
- Available packages: `numpy`, `scipy`, `scikit-learn`. Nothing else is added at grading time.
|
| 52 |
+
- A call that raises an exception, exceeds the time budget, or returns anything that violates
|
| 53 |
+
the contract above scores zero for the whole submission.
|
| 54 |
+
- A missing or unimportable `/app/output/selector.py` also scores zero for the whole
|
| 55 |
+
submission.
|
| 56 |
+
|
| 57 |
+
## The fixed downstream classifier
|
| 58 |
+
|
| 59 |
+
You cannot change it, and it is not shipped to you. On each graded pool draw, it:
|
| 60 |
+
|
| 61 |
+
- Trains only on your selected rows.
|
| 62 |
+
- Standardizes those rows by their own per-dimension mean and standard deviation, flooring any
|
| 63 |
+
standard deviation below `1e-6` to `1e-6` before dividing.
|
| 64 |
+
- Fits a two-class multinomial logistic regression from a seeded initialization: weights drawn
|
| 65 |
+
i.i.d. from a zero-mean normal distribution with standard deviation `0.01`, biases starting
|
| 66 |
+
at zero.
|
| 67 |
+
- Trains for 100 epochs of mini-batch SGD: batch size 32, learning rate 0.05, momentum 0.9,
|
| 68 |
+
weight decay 1e-4, data shuffled each epoch.
|
| 69 |
+
- Applies the trained classifier to the evaluation embeddings.
|
| 70 |
+
|
| 71 |
+
## Metric
|
| 72 |
+
|
| 73 |
+
- Each run's score is the classifier's accuracy, in percent, on the weakest of the four slices
|
| 74 |
+
described above.
|
| 75 |
+
- The submission's score is the mean of that worst-slice accuracy over 7 x 5 = 35 runs (seven
|
| 76 |
+
graded pool draws, five pinned classifier seeds), in percent.
|
| 77 |
+
- Above a floor set a small margin above the trivial baselines, higher is strictly better, with
|
| 78 |
+
no ceiling where further improvement stops mattering.
|
| 79 |
+
- A uniform random class-balanced draw scores zero, as does any selection up to that floor.
|
tasks/coreset-selection-group-robust-waterbirds/task.toml
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.4"
|
| 2 |
+
artifacts = [ "/app/output",]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "bespokelabs/coreset-selection-group-robust-waterbirds"
|
| 6 |
+
version = "1.0.0"
|
| 7 |
+
description = ""
|
| 8 |
+
keywords = [ "autoresearch", "machine-learning", "benchmark",]
|
| 9 |
+
[[task.authors]]
|
| 10 |
+
name = "Bespoke Labs"
|
| 11 |
+
|
| 12 |
+
[metadata]
|
| 13 |
+
category = "Model Training and ML Infrastructure"
|
| 14 |
+
subcategory = "Data loading and training pipelines"
|
| 15 |
+
task_objective = [ "Implement", "Optimize",]
|
| 16 |
+
artifact_type = [ "Single script or program",]
|
| 17 |
+
expert_time_estimate_hours = 4.0
|
| 18 |
+
|
| 19 |
+
[verifier]
|
| 20 |
+
timeout_sec = 2400.0
|
| 21 |
+
environment_mode = "separate"
|
| 22 |
+
collect = []
|
| 23 |
+
|
| 24 |
+
[verifier.env]
|
| 25 |
+
|
| 26 |
+
[verifier.environment]
|
| 27 |
+
network_mode = "no-network"
|
| 28 |
+
build_timeout_sec = 3600.0
|
| 29 |
+
os = "linux"
|
| 30 |
+
cpus = 8
|
| 31 |
+
memory_mb = 14336
|
| 32 |
+
storage_mb = 153600
|
| 33 |
+
gpus = 0
|
| 34 |
+
mcp_servers = []
|
| 35 |
+
|
| 36 |
+
[verifier.environment.env]
|
| 37 |
+
|
| 38 |
+
[agent]
|
| 39 |
+
network_mode = "allowlist"
|
| 40 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 41 |
+
timeout_sec = 14400.0
|
| 42 |
+
user = "agent"
|
| 43 |
+
|
| 44 |
+
[environment]
|
| 45 |
+
network_mode = "allowlist"
|
| 46 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 47 |
+
build_timeout_sec = 3600.0
|
| 48 |
+
os = "linux"
|
| 49 |
+
cpus = 8
|
| 50 |
+
memory_mb = 14336
|
| 51 |
+
storage_mb = 153600
|
| 52 |
+
gpus = 0
|
| 53 |
+
mcp_servers = []
|
| 54 |
+
|
| 55 |
+
[environment.env]
|
| 56 |
+
|
| 57 |
+
[solution.env]
|
tasks/cpu-decoder-graph-executor/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Accelerating transformer decoder graphs on CPUs
|
| 2 |
+
|
| 3 |
+
*Category: Systems and efficiency. Subcategory: Inference.*
|
| 4 |
+
|
| 5 |
+
The agent must build a CPU executor for transformer decoder graphs that produces nearly the same hidden states as a fixed reference implementation but runs faster. For each graph and set of weights, it returns a function that will process many new input sequences using those same weights. The graph specifies the decoder's operations, including normalization, attention, position encoding, and feed-forward layers; the agent may change how those operations are scheduled or combined, but it cannot omit required computation, and every output must remain within strict numerical error limits. It may precompute values derived from fixed weights, fuse neighboring operations, reuse memory buffers, call efficient matrix routines, and specialize separate paths for single-token and multi-token inputs. The evaluator times both executors head-to-head on unseen graph shapes. The score is the geometric mean of the reference runtime divided by the submitted runtime, so larger speedups are better; one inaccurate instance makes the submission score zero.
|
tasks/cpu-decoder-graph-executor/instruction.md
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# A faster executor for transformer-decoder compute graphs
|
| 2 |
+
|
| 3 |
+
`/app/reference_executor.py` runs transformer-decoder compute graphs on CPU. Write an
|
| 4 |
+
executor that computes the same thing faster.
|
| 5 |
+
|
| 6 |
+
## Submission format
|
| 7 |
+
|
| 8 |
+
- Deliverable: `/app/output/executor.py`, plus any helper modules placed beside it in
|
| 9 |
+
`/app/output/`.
|
| 10 |
+
- Only `/app/output/` is collected and graded. Everything else under `/app` is reference
|
| 11 |
+
material. Grading happens in a separate environment, so your submission must be
|
| 12 |
+
self-contained inside `/app/output/`. Other paths, running processes, and environment
|
| 13 |
+
state do not carry over.
|
| 14 |
+
- It must expose exactly one entry point:
|
| 15 |
+
|
| 16 |
+
```python
|
| 17 |
+
build_executor(graph_spec: dict,
|
| 18 |
+
weights: dict[str, numpy.ndarray],
|
| 19 |
+
n_workers: int) -> Callable[[numpy.ndarray], numpy.ndarray]
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
- The returned callable takes `x` of shape `(T, d_model)`, dtype float32, and returns the
|
| 23 |
+
final hidden states of shape `(T, d_model)`, dtype float32.
|
| 24 |
+
- It will be called many times with different inputs but the same weights.
|
| 25 |
+
|
| 26 |
+
## Data notes
|
| 27 |
+
|
| 28 |
+
- `graph_spec` describes a decoder stack. It contains `n_layers`, `d_model`, `d_ff`,
|
| 29 |
+
`n_heads`, `n_kv_heads`, `head_dim`, `T`, `rms_eps`, a per-layer list of nodes, and a
|
| 30 |
+
final node. Each node has an operation, named inputs, an output name, and a weight name.
|
| 31 |
+
- `weights` maps every weight name in the spec to a C-contiguous float32 array, plus
|
| 32 |
+
`rope_cos`, `rope_sin` and `attn_mask`.
|
| 33 |
+
- `n_workers` is `8`.
|
| 34 |
+
|
| 35 |
+
`/app/reference_executor.py` defines what a correct forward pass is: its module docstring
|
| 36 |
+
states the semantics of every node type, and its code is the tie-breaker if anything is
|
| 37 |
+
ambiguous. Read it. `/app/graph_spec.py` builds instances and their weights from an
|
| 38 |
+
integer seed.
|
| 39 |
+
|
| 40 |
+
## Correctness
|
| 41 |
+
|
| 42 |
+
For every call, output `y` is compared against the reference's `y_ref` on the same input.
|
| 43 |
+
Both bounds must hold:
|
| 44 |
+
|
| 45 |
+
$$\max(|y - y_{ref}|) \le 10^{-3}$$
|
| 46 |
+
|
| 47 |
+
$$\frac{\lVert y - y_{ref} \rVert_F}{\lVert y_{ref} \rVert_F} \le 10^{-3}$$
|
| 48 |
+
|
| 49 |
+
- Reassociating a reduction (changing accumulation order) is fine; dropping work is not.
|
| 50 |
+
- A single instance that violates either bound scores the whole submission 0.
|
| 51 |
+
|
| 52 |
+
## How you are measured
|
| 53 |
+
|
| 54 |
+
- Your executor and the reference are built for the same instance in two separate
|
| 55 |
+
processes, then timed head to head.
|
| 56 |
+
- The two are called alternately with a fresh input each repetition. Whichever one isn't
|
| 57 |
+
being called is suspended so it can't consume cycles, and which one goes first
|
| 58 |
+
alternates between repetitions.
|
| 59 |
+
- 3 warmup repetitions are discarded.
|
| 60 |
+
- Instance time = fastest of 15 timed repetitions.
|
| 61 |
+
- Instance speedup = `reference_time / your_time`.
|
| 62 |
+
- Score = geometric mean of the per-instance speedups over a sealed set of instances,
|
| 63 |
+
built from seeds you've never seen, drawn from the ranges below.
|
| 64 |
+
- Maximize this geometric-mean speedup on the sealed set. An executor that just delegates
|
| 65 |
+
to the reference scores zero; any larger speedup scores higher, with no ceiling where
|
| 66 |
+
further improvement stops counting.
|
| 67 |
+
|
| 68 |
+
The sealed instances use the same generator and ranges as the public ones:
|
| 69 |
+
|
| 70 |
+
| | |
|
| 71 |
+
|---|---|
|
| 72 |
+
| `d_model` | 192, 256 or 384 |
|
| 73 |
+
| `d_ff / d_model` | 2.6875 or 4.0, rounded to a multiple of 32 |
|
| 74 |
+
| `n_layers` | 16 or 32 |
|
| 75 |
+
| `n_heads` | 4 or 8, `head_dim = d_model // n_heads` |
|
| 76 |
+
| `n_kv_heads` | `n_heads`, `n_heads // 2` or `n_heads // 4` |
|
| 77 |
+
| `T` | 1, 8 or 32, with 1 drawn half the time |
|
| 78 |
+
|
| 79 |
+
## Budget and environment
|
| 80 |
+
|
| 81 |
+
- `build_executor` must return within **20 seconds** per instance. Each call to the returned
|
| 82 |
+
callable must finish within **120 seconds**. Time spent in `build_executor` is not included
|
| 83 |
+
in the runtime metric.
|
| 84 |
+
- The container has **8 CPUs**, **14 GiB** of memory, **0 GPUs** and no network. Each
|
| 85 |
+
executor process is pinned to 8 CPUs and starts with
|
| 86 |
+
`OPENBLAS_NUM_THREADS=OMP_NUM_THREADS=MKL_NUM_THREADS=NUMEXPR_NUM_THREADS=8`. The only
|
| 87 |
+
third-party Python packages installed are `numpy` and `threadpoolctl`.
|
| 88 |
+
- Threads are yours to use, and so are helper processes, but the harness suspends your
|
| 89 |
+
whole process tree whenever the reference is on the clock, and a process that detaches
|
| 90 |
+
from that tree stays suspended for good.
|
| 91 |
+
|
| 92 |
+
## Developing
|
| 93 |
+
|
| 94 |
+
`python3 /app/bench.py` measures whatever is in `/app/output/` against the reference on
|
| 95 |
+
the 16 public instances (seeds 0-15). It uses the same protocol, tolerances, and worker
|
| 96 |
+
budget as the sealed run. It prints per-instance times, ratios, equivalence errors, and
|
| 97 |
+
the geometric mean. `python3 /app/bench.py --seeds 0,4,9` restricts it to those seeds.
|
| 98 |
+
Public instances are for development only; nothing about them is graded.
|
| 99 |
+
|
| 100 |
+
A submission scores 0 if any of the following holds:
|
| 101 |
+
|
| 102 |
+
- `/app/output/executor.py` is missing.
|
| 103 |
+
- It fails to import.
|
| 104 |
+
- It has the wrong signature.
|
| 105 |
+
- It raises.
|
| 106 |
+
- It exceeds a budget.
|
| 107 |
+
- It returns the wrong shape or dtype.
|
| 108 |
+
- It returns values that are not finite.
|
| 109 |
+
- It violates either equivalence bound on any instance.
|
tasks/cpu-decoder-graph-executor/task.toml
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.4"
|
| 2 |
+
artifacts = [ "/app/output",]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "bespokelabs/cpu-decoder-graph-executor"
|
| 6 |
+
version = "1.0.0"
|
| 7 |
+
description = ""
|
| 8 |
+
keywords = [ "autoresearch", "machine-learning", "benchmark",]
|
| 9 |
+
[[task.authors]]
|
| 10 |
+
name = "Bespoke Labs"
|
| 11 |
+
|
| 12 |
+
[metadata]
|
| 13 |
+
category = "Model Training and ML Infrastructure"
|
| 14 |
+
subcategory = "Systems and Efficiency"
|
| 15 |
+
task_objective = [ "Optimize", "Implement",]
|
| 16 |
+
artifact_type = [ "Single script or program", "Codebase",]
|
| 17 |
+
expert_time_estimate_hours = 4.0
|
| 18 |
+
|
| 19 |
+
[verifier]
|
| 20 |
+
timeout_sec = 1800.0
|
| 21 |
+
environment_mode = "separate"
|
| 22 |
+
collect = []
|
| 23 |
+
|
| 24 |
+
[verifier.env]
|
| 25 |
+
|
| 26 |
+
[verifier.environment]
|
| 27 |
+
network_mode = "no-network"
|
| 28 |
+
build_timeout_sec = 3600.0
|
| 29 |
+
os = "linux"
|
| 30 |
+
cpus = 8
|
| 31 |
+
memory_mb = 14336
|
| 32 |
+
storage_mb = 153600
|
| 33 |
+
gpus = 0
|
| 34 |
+
mcp_servers = []
|
| 35 |
+
|
| 36 |
+
[verifier.environment.env]
|
| 37 |
+
|
| 38 |
+
[agent]
|
| 39 |
+
network_mode = "allowlist"
|
| 40 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 41 |
+
timeout_sec = 14400.0
|
| 42 |
+
user = "agent"
|
| 43 |
+
|
| 44 |
+
[environment]
|
| 45 |
+
network_mode = "allowlist"
|
| 46 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 47 |
+
build_timeout_sec = 3600.0
|
| 48 |
+
os = "linux"
|
| 49 |
+
cpus = 8
|
| 50 |
+
memory_mb = 14336
|
| 51 |
+
storage_mb = 153600
|
| 52 |
+
gpus = 0
|
| 53 |
+
mcp_servers = []
|
| 54 |
+
|
| 55 |
+
[environment.env]
|
| 56 |
+
|
| 57 |
+
[solution.env]
|
tasks/fast-adv-budgeted-pgd50-robust-cifar10/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Training a Robust Image Classifier in Three Minutes
|
| 2 |
+
|
| 3 |
+
*Category: Evaluation, calibration, and robustness. Subcategory: Robustness.*
|
| 4 |
+
|
| 5 |
+
The agent must write a training program that fits a fixed PreActResNet18 image classifier on 50,000 CIFAR-10 images and saves its weights within 180 seconds. The objective is not ordinary accuracy, but resistance to adversarial examples: test images whose pixels are repeatedly adjusted by tiny amounts to make the classifier choose the wrong class. The fixed evaluator applies a strong 50-step PGD attack, with ten attempts per image and a maximum pixel change of 8/255, then measures how many unseen images remain correctly classified. The agent may use adversarial training, where similarly attacked images are generated during training, along with efficient data augmentation, mixed-precision computation, learning-rate schedules, and a switch from cheap one-step attacks to stronger multi-step attacks. The main trade-off is attack quality versus the number of training updates possible in three minutes. Performance is measured by robust accuracy after the fixed attack; higher is better, while clean accuracy does not affect the score.
|
tasks/fast-adv-budgeted-pgd50-robust-cifar10/instruction.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Train an adversarially robust CIFAR 10 model
|
| 2 |
+
|
| 3 |
+
Train a `PreActResNet18` within 180 seconds. The grader attacks the trained model and measures how many unseen CIFAR 10 images remain correctly classified.
|
| 4 |
+
|
| 5 |
+
## Deliverable
|
| 6 |
+
|
| 7 |
+
Write `/app/output/train.py`. It must be a single Python file no larger than 102,400 bytes.
|
| 8 |
+
|
| 9 |
+
The grader runs:
|
| 10 |
+
|
| 11 |
+
```text
|
| 12 |
+
python train.py --data /app/data/cifar10_train.npz --out <scratch>/model.pt
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
Your program must save a PyTorch `state_dict` at the `--out` path. The file must be no larger than 200 MiB. The grader loads it into its own `PreActResNet18()` using `strict=True`. It grades the latest complete checkpoint present when the 180 second limit ends.
|
| 16 |
+
|
| 17 |
+
Only `/app/output/train.py` moves to the grading environment. The grader places `preact_resnet.py` beside it before running the program.
|
| 18 |
+
|
| 19 |
+
## Training data
|
| 20 |
+
|
| 21 |
+
`/app/data/cifar10_train.npz` contains the CIFAR 10 training split:
|
| 22 |
+
|
| 23 |
+
* `images`: `uint8` with shape `(50000, 32, 32, 3)` in RGB order.
|
| 24 |
+
* `labels`: `int64` with shape `(50000,)` and values from `0` to `9`.
|
| 25 |
+
|
| 26 |
+
You may choose how to form a validation set from this data. The unseen evaluation images are not available during training.
|
| 27 |
+
|
| 28 |
+
## Scoring
|
| 29 |
+
|
| 30 |
+
The target metric is robust accuracy under a fixed PGD 50 attack with perturbation size `8/255`. Higher is better.
|
| 31 |
+
|
| 32 |
+
The attack uses 50 steps, step size `2/255`, and 10 random restarts. Images use CIFAR 10 channel means `(0.4914, 0.4822, 0.4465)` and standard deviations `(0.2471, 0.2435, 0.2616)`. The attack runs in float32 and uses a fixed random seed.
|
| 33 |
+
|
| 34 |
+
Before the attack, the grader divides logits by `T = max(1, s / 20)`, where `s` is their mean standard deviation across clean evaluation images. This leaves clean predictions unchanged and prevents logit scaling from weakening the attack.
|
| 35 |
+
|
| 36 |
+
The score reported during research iterations uses a validation half of the CIFAR 10 test split. The final score uses a separate hidden half. Clean accuracy is recorded but does not affect the reward.
|
| 37 |
+
|
| 38 |
+
Every increase in robust accuracy receives a higher reward. A missing or invalid checkpoint, incompatible state dictionary, nonfinite weights, input independent model, crash, or timeout receives zero.
|
| 39 |
+
|
| 40 |
+
## Runtime
|
| 41 |
+
|
| 42 |
+
The full program, including imports, data loading, training, and checkpoint writing, has 180 seconds of wall clock time.
|
| 43 |
+
|
| 44 |
+
The environment has one H100 GPU, 4 physical CPU cores, 16,384 MiB of memory, and no general internet access. PyTorch 2.10 with CUDA 12.8 is installed.
|
tasks/fast-adv-budgeted-pgd50-robust-cifar10/task.toml
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.4"
|
| 2 |
+
artifacts = [ "/app/output",]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "bespokelabs/fast-adv-budgeted-pgd50-robust-cifar10"
|
| 6 |
+
version = "1.0.0"
|
| 7 |
+
description = ""
|
| 8 |
+
keywords = [ "autoresearch", "machine-learning", "benchmark",]
|
| 9 |
+
[[task.authors]]
|
| 10 |
+
name = "Bespoke Labs"
|
| 11 |
+
|
| 12 |
+
[metadata]
|
| 13 |
+
category = "Model Training and ML Infrastructure"
|
| 14 |
+
subcategory = "Training loops"
|
| 15 |
+
task_objective = [ "Implement", "Optimize", "Secure or harden",]
|
| 16 |
+
artifact_type = [ "Single script or program", "Generated output artifact",]
|
| 17 |
+
expert_time_estimate_hours = 4.0
|
| 18 |
+
metric_name = "PGD-50 robust accuracy (percent) on the sealed 10,000-image CIFAR-10 test split at eps=8/255"
|
| 19 |
+
metric_objective = "maximize"
|
| 20 |
+
|
| 21 |
+
[verifier]
|
| 22 |
+
network_mode = "no-network"
|
| 23 |
+
timeout_sec = 7200.0
|
| 24 |
+
environment_mode = "separate"
|
| 25 |
+
collect = []
|
| 26 |
+
|
| 27 |
+
[verifier.env]
|
| 28 |
+
|
| 29 |
+
[agent]
|
| 30 |
+
network_mode = "allowlist"
|
| 31 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 32 |
+
timeout_sec = 21600.0
|
| 33 |
+
|
| 34 |
+
[environment]
|
| 35 |
+
network_mode = "allowlist"
|
| 36 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 37 |
+
build_timeout_sec = 14400.0
|
| 38 |
+
os = "linux"
|
| 39 |
+
cpus = 4
|
| 40 |
+
memory_mb = 16384
|
| 41 |
+
storage_mb = 307200
|
| 42 |
+
gpus = 1
|
| 43 |
+
gpu_types = [ "H100",]
|
| 44 |
+
mcp_servers = []
|
| 45 |
+
|
| 46 |
+
[environment.env]
|
| 47 |
+
|
| 48 |
+
[solution.env]
|
tasks/fastergcg-candidate-token-rank-ccc/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Ranking adversarial token replacements without model evaluations
|
| 2 |
+
|
| 3 |
+
*Category: AI safety and alignment.*
|
| 4 |
+
|
| 5 |
+
An automated red-team optimizer modifies a prompt one position at a time to move a language model toward a predefined test response. At each search step, the optimizer has already chosen the position and generated 64 candidate replacement tokens. For example, it might consider replacing `Explain` with `Describe`, `Show`, or `Reveal`. Normally, it would run the full language model on all 64 modified prompts and measure which replacement reduces the target loss most. The agent's only job is to predict that ordering without access to the model: it receives the current prompt and target, the 64 candidates, gradient values, current loss, and token embeddings, then returns one score per candidate. It does not choose the position, generate candidates, or apply the final replacement. It may combine gradient scores with embedding differences, context, learned token-specific priors, or a trained ranker. Evaluation covers 80 unseen search steps and measures how closely its ordering matches the ordering from actual model runs; higher agreement is better.
|
tasks/fastergcg-candidate-token-rank-ccc/instruction.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Rank token substitutions by true loss reduction
|
| 2 |
+
|
| 3 |
+
A prompt optimizer selects 64 possible token replacements using the gradient of its target loss. It would normally run the model once for every candidate to find which replacements help.
|
| 4 |
+
|
| 5 |
+
Build a ranker that predicts the same ordering without running the model at grade time. For each optimization snapshot, your ranker receives the gradient, candidate tokens, prompt tokens, current loss, and embedding matrix. It returns one score for each candidate.
|
| 6 |
+
|
| 7 |
+
## Deliverable
|
| 8 |
+
|
| 9 |
+
Write `/app/output/ranker.py`. It must define:
|
| 10 |
+
|
| 11 |
+
```python
|
| 12 |
+
def rank(features: dict) -> numpy.ndarray:
|
| 13 |
+
...
|
| 14 |
+
```
|
| 15 |
+
|
| 16 |
+
The grader imports `ranker.py` as the module `ranker` and calls `rank(features)` once per snapshot. You may add helper modules, weights, tables, or configuration files under `/app/output/`.
|
| 17 |
+
|
| 18 |
+
Only `/app/output/` is copied to the grading environment. Everything your ranker needs must be inside that directory. Use regular files and directories. Do not use symbolic links, hard links, or special files.
|
| 19 |
+
|
| 20 |
+
## Input
|
| 21 |
+
|
| 22 |
+
`features` is a new dictionary for each snapshot with these keys:
|
| 23 |
+
|
| 24 |
+
* `grad_row`: A `float32` array with shape `(32000,)`. Entry `j` is the gradient for vocabulary token `j`.
|
| 25 |
+
* `candidate_ids`: An `int64` array with shape `(64,)`. The ids are distinct, sorted, and drawn from the printable ASCII token set.
|
| 26 |
+
* `current_token_id`: The current token id as an integer from `0` to `31999`.
|
| 27 |
+
* `current_loss`: The current positive finite target loss.
|
| 28 |
+
* `prefix_ids`: A nonempty list of token ids before the position being changed.
|
| 29 |
+
* `post_ids`: A nonempty list of token ids between that position and the target.
|
| 30 |
+
* `target_ids`: A nonempty list of target token ids.
|
| 31 |
+
* `step`: The optimizer step. It is one of `10, 20, ..., 100`.
|
| 32 |
+
* `embedding_matrix`: A read only `float32` array with shape `(32000, 4096)`.
|
| 33 |
+
|
| 34 |
+
## Output
|
| 35 |
+
|
| 36 |
+
Return 64 finite real numbers with shape `(64,)`. A NumPy array, list, or tuple is accepted.
|
| 37 |
+
|
| 38 |
+
Output position `i` must score `features["candidate_ids"][i]`. Do not return token ids, indices, or a sorted array. Lower scores mean that a candidate is predicted to reduce the loss more. Only the ordering matters. Ties are resolved by the original candidate order.
|
| 39 |
+
|
| 40 |
+
For candidate `i`, the true value is:
|
| 41 |
+
|
| 42 |
+
```text
|
| 43 |
+
loss after replacing the current token with candidate i minus current_loss
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
A negative value means the replacement helps.
|
| 47 |
+
|
| 48 |
+
## Scoring
|
| 49 |
+
|
| 50 |
+
The grader compares your predicted ordering with the true loss change ordering on unseen optimization snapshots. The metric is pooled rank concordance correlation, or `pooled_rank_ccc`. Higher is better.
|
| 51 |
+
|
| 52 |
+
Leaving candidates in their given order defines the zero reward baseline. Ranking candidates by their value in `grad_row` earns a small positive reward. Better rank agreement earns a higher reward, with no upper cutoff where improvements stop counting.
|
| 53 |
+
|
| 54 |
+
If one call raises an exception or returns an invalid value, that snapshot uses the given candidate order. A missing entry point, invalid submitted tree, process crash, or timeout scores zero for the full run.
|
| 55 |
+
|
| 56 |
+
## Runtime
|
| 57 |
+
|
| 58 |
+
The full grading run imports your module and calls `rank` 80 times. It must finish within 300 seconds. The grader uses one CPU thread, 32 GiB of memory, no GPU, and no network.
|
| 59 |
+
|
| 60 |
+
The model weights are not available at grade time. The embedding matrix is passed in `features`. The Vicuna tokenizer is available at `/opt/assets/vicuna-tokenizer/` if needed.
|
| 61 |
+
|
| 62 |
+
## Development files
|
| 63 |
+
|
| 64 |
+
You may use these files while building the ranker:
|
| 65 |
+
|
| 66 |
+
* `/app/gcg_states.py` creates labeled development snapshots.
|
| 67 |
+
* `/app/data/dev_behaviors.csv` contains 100 development behaviors.
|
| 68 |
+
* `/app/data/token_allowlist.npy` contains the allowed printable ASCII token ids.
|
| 69 |
+
* `/app/example_ranker.py` is a minimal working example.
|
| 70 |
+
* `/app/work/` is scratch space.
|
| 71 |
+
|
| 72 |
+
These files do not move to the grading environment. Copy anything your ranker needs into `/app/output/`.
|
| 73 |
+
|
| 74 |
+
The development environment has one H100 GPU, 4 physical CPU cores, 32 GiB of memory, and no general internet access. NumPy, SciPy, scikit learn, PyTorch, and Transformers are installed.
|
tasks/fastergcg-candidate-token-rank-ccc/task.toml
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.4"
|
| 2 |
+
artifacts = [ "/app/output",]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "bespokelabs/fastergcg-candidate-token-rank-ccc"
|
| 6 |
+
version = "1.0.0"
|
| 7 |
+
description = ""
|
| 8 |
+
keywords = [ "autoresearch", "machine-learning", "benchmark",]
|
| 9 |
+
[[task.authors]]
|
| 10 |
+
name = "Bespoke Labs"
|
| 11 |
+
|
| 12 |
+
[metadata]
|
| 13 |
+
category = "Machine Learning and AI"
|
| 14 |
+
subcategory = "Interpretability and model inspection"
|
| 15 |
+
task_objective = [ "Implement", "Optimize", "Analyze",]
|
| 16 |
+
artifact_type = [ "Single script or program",]
|
| 17 |
+
expert_time_estimate_hours = 6.0
|
| 18 |
+
|
| 19 |
+
[verifier]
|
| 20 |
+
network_mode = "no-network"
|
| 21 |
+
timeout_sec = 7200.0
|
| 22 |
+
environment_mode = "separate"
|
| 23 |
+
collect = []
|
| 24 |
+
|
| 25 |
+
[verifier.env]
|
| 26 |
+
|
| 27 |
+
[agent]
|
| 28 |
+
network_mode = "allowlist"
|
| 29 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 30 |
+
timeout_sec = 21600.0
|
| 31 |
+
|
| 32 |
+
[environment]
|
| 33 |
+
network_mode = "allowlist"
|
| 34 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 35 |
+
build_timeout_sec = 10800.0
|
| 36 |
+
os = "linux"
|
| 37 |
+
cpus = 4
|
| 38 |
+
memory_mb = 32768
|
| 39 |
+
storage_mb = 307200
|
| 40 |
+
gpus = 1
|
| 41 |
+
gpu_types = [ "H100",]
|
| 42 |
+
mcp_servers = []
|
| 43 |
+
|
| 44 |
+
[environment.env]
|
| 45 |
+
|
| 46 |
+
[solution.env]
|
tasks/grpo-rl-halfcheetah-advantage-estimator/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Estimating action advantages for HalfCheetah policy training
|
| 2 |
+
|
| 3 |
+
*Category: Model training. Subcategory: Reinforcement learning.*
|
| 4 |
+
|
| 5 |
+
The agent must estimate how much each action helped a simulated HalfCheetah robot so a fixed PPO training program can learn a strong running policy. After every rollout, the agent receives observations, actions, rewards, episode endings, and the resulting next observations, then returns one advantage value per action. An advantage says whether an action performed better or worse than expected; PPO uses positive values to make an action more likely and negative values to discourage it. The agent controls only these estimates, not the policy, optimizer, or simulator, but it may retain state across rollouts. It can use discounted returns, generalized advantage estimation, a learned value baseline, recent-rollout replay, or time-dependent corrections to assign credit when rewards reflect many earlier actions. Evaluation trains 12 policies from hidden seeds and tests each for 20 episodes. The score is the mean raw episode return across all 240 evaluations; higher is better.
|
tasks/grpo-rl-halfcheetah-advantage-estimator/instruction.md
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Advantage estimation for a frozen PPO-clip harness
|
| 2 |
+
|
| 3 |
+
Design the advantage values used by a fixed PPO training program in Gymnasium's
|
| 4 |
+
`HalfCheetah-v4` environment. Your goal is to maximize the trained policy's average episode return
|
| 5 |
+
across hidden training and evaluation seeds.
|
| 6 |
+
|
| 7 |
+
The only part you control is the advantage assigned to each action in each rollout. An advantage
|
| 8 |
+
says whether an action produced a better or worse outcome than expected. PPO uses these values to
|
| 9 |
+
update the policy.
|
| 10 |
+
|
| 11 |
+
The program collects 128 steps from 8 environments at a time. It runs 4 training epochs per
|
| 12 |
+
iteration. Each epoch uses 4 batches of 256 transitions. Training ends after 976 iterations, or
|
| 13 |
+
999,424 environment steps.
|
| 14 |
+
|
| 15 |
+
The program trains only the policy. It does not normalize, clip, or rescale the advantages that
|
| 16 |
+
you return. Your array is passed directly to the training loss.
|
| 17 |
+
|
| 18 |
+
## Deliverable
|
| 19 |
+
|
| 20 |
+
Write `/app/output/advantage.py`, defining `class AdvantageEstimator` with two methods:
|
| 21 |
+
|
| 22 |
+
```python
|
| 23 |
+
class AdvantageEstimator:
|
| 24 |
+
def __init__(self, obs_dim, act_dim, num_envs, num_steps, total_iterations):
|
| 25 |
+
...
|
| 26 |
+
|
| 27 |
+
def estimate(self, rollout) -> numpy.ndarray:
|
| 28 |
+
...
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
The grader calls your code as follows:
|
| 32 |
+
|
| 33 |
+
- `__init__` runs once per training run, before any environment interaction, with all five values
|
| 34 |
+
passed as keyword arguments: `obs_dim=17`, `act_dim=6`, `num_envs=8`, `num_steps=128`,
|
| 35 |
+
`total_iterations=976`.
|
| 36 |
+
- `estimate` runs once per iteration and must return a C-contiguous `float32` array of shape
|
| 37 |
+
`(num_steps, num_envs)` that is finite everywhere.
|
| 38 |
+
- The instance persists for the whole training run, so it can carry and fit its own state,
|
| 39 |
+
including its own networks and optimizers, using the arrays it is handed.
|
| 40 |
+
- Only `/app/output/` carries over into the graded run, and it must be fully self-contained there.
|
| 41 |
+
`advantage.py` can import sibling modules and read data files from that directory, but nothing
|
| 42 |
+
outside `/app/output/` is available when it is graded.
|
| 43 |
+
|
| 44 |
+
`rollout` is a `dict` of freshly allocated numpy arrays:
|
| 45 |
+
|
| 46 |
+
| key | shape | dtype | meaning |
|
| 47 |
+
|---|---|---|---|
|
| 48 |
+
| `obs` | `(T, N, obs_dim)` | `float32` | the observation the policy acted on at step `t` in env `n`, after the harness's running whitening and clipping |
|
| 49 |
+
| `next_obs` | `(T, N, obs_dim)` | `float32` | the observation that step produced, whitened the same way. Where an episode ended at `t` this is that episode's final observation, not the first observation of the next one |
|
| 50 |
+
| `actions` | `(T, N, act_dim)` | `float32` | the action taken |
|
| 51 |
+
| `logprobs` | `(T, N)` | `float32` | its log-probability under the policy that took it |
|
| 52 |
+
| `rewards` | `(T, N)` | `float32` | the reward the harness optimises: the environment reward after the harness's running scaling and clipping |
|
| 53 |
+
| `terminations` | `(T, N)` | `bool` | the environment reported termination at that step |
|
| 54 |
+
| `truncations` | `(T, N)` | `bool` | the environment reported truncation at that step |
|
| 55 |
+
| `iteration` | - | `int` | 0-based index of this iteration |
|
| 56 |
+
|
| 57 |
+
## Scoring
|
| 58 |
+
|
| 59 |
+
The grader trains a policy with your estimator and measures its average episode return. It uses
|
| 60 |
+
the environment's raw reward before any scaling by the training program.
|
| 61 |
+
|
| 62 |
+
- Twelve training runs are executed, one per hidden training seed.
|
| 63 |
+
- Each trained stochastic policy is rolled out for 20 evaluation episodes of 1000 steps, on
|
| 64 |
+
environments built from hidden evaluation seeds. These seeds are not present in this container
|
| 65 |
+
and differ from any seed you use locally.
|
| 66 |
+
- The metric is the arithmetic mean of all 240 episode returns.
|
| 67 |
+
- Higher is better. Every improvement counts.
|
| 68 |
+
- An estimator no better than a trivial one scores zero.
|
| 69 |
+
|
| 70 |
+
During an iterated research run, the intermediate grader uses separate hidden training and
|
| 71 |
+
evaluation seeds. It measures the same outcome with six training runs, so its score is noisier
|
| 72 |
+
than the final score.
|
| 73 |
+
|
| 74 |
+
## Hard constraints
|
| 75 |
+
|
| 76 |
+
The submission scores zero if any of these conditions occurs:
|
| 77 |
+
|
| 78 |
+
- `/app/output/advantage.py` is missing or empty, or defines no `AdvantageEstimator`
|
| 79 |
+
- `__init__` or `estimate` raises, or `estimate` returns anything other than a finite,
|
| 80 |
+
C-contiguous `float32` array of shape `(128, 8)`
|
| 81 |
+
- a graded training run does not finish within 1500 seconds of wall clock (it is SIGKILLed at that
|
| 82 |
+
point)
|
| 83 |
+
- the estimator process imports `gymnasium`, `mujoco`, or any other simulator package, constructs
|
| 84 |
+
an environment, or spawns a child process
|
| 85 |
+
- any one of the twelve graded training runs fails for any reason above
|
| 86 |
+
|
| 87 |
+
The estimator runs in its own process and receives nothing but the arrays above. It cannot reach
|
| 88 |
+
the policy, the optimizer, the environments, or their random state.
|
| 89 |
+
|
| 90 |
+
## Environment
|
| 91 |
+
|
| 92 |
+
- 8 CPU cores, 14336 MB memory, 0 GPUs, no network access.
|
| 93 |
+
- Installed packages are `torch` with CPU support, `numpy`, `gymnasium`, and `mujoco`.
|
| 94 |
+
- The training program uses one PyTorch thread. The estimator process uses two threads through
|
| 95 |
+
`OMP_NUM_THREADS=2` and `torch.set_num_threads(2)`.
|
| 96 |
+
- A full 976 iteration run with a cheap estimator takes about four minutes on an idle machine.
|
| 97 |
+
|
| 98 |
+
`/app/harness/` is read-only and is restored from a pristine copy before grading. Run it yourself
|
| 99 |
+
with any seeds you like:
|
| 100 |
+
|
| 101 |
+
```
|
| 102 |
+
python3 /app/harness/train.py --seed 0 --submission /app/output \
|
| 103 |
+
--ckpt /app/runs/s0/policy.pt --log /app/runs/s0/log.json
|
| 104 |
+
python3 /app/harness/eval_policy.py --ckpt /app/runs/s0/policy.pt --seeds 101,102,103,104,105
|
| 105 |
+
```
|
| 106 |
+
|
| 107 |
+
`train.py` exit codes:
|
| 108 |
+
|
| 109 |
+
- `0`: completed run
|
| 110 |
+
- `2`: the estimator broke its contract
|
| 111 |
+
- `3`: the run hit the wall-clock cap
|
| 112 |
+
- `4`: it reached outside the arrays it was given
|
| 113 |
+
|
| 114 |
+
`--log` records the raw episodic returns seen during training.
|
tasks/grpo-rl-halfcheetah-advantage-estimator/task.toml
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.4"
|
| 2 |
+
artifacts = [ "/app/output",]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "bespokelabs/grpo-rl-halfcheetah-advantage-estimator"
|
| 6 |
+
version = "1.0.0"
|
| 7 |
+
description = ""
|
| 8 |
+
keywords = [ "autoresearch", "machine-learning", "benchmark",]
|
| 9 |
+
[[task.authors]]
|
| 10 |
+
name = "Bespoke Labs"
|
| 11 |
+
|
| 12 |
+
[metadata]
|
| 13 |
+
name = "advantage-estimation-half-cheetah"
|
| 14 |
+
task_slug = "grpo-rl-halfcheetah-advantage-estimator"
|
| 15 |
+
expert_time_estimate_hours = 4.0
|
| 16 |
+
title = "Advantage estimation for a frozen PPO-clip harness on HalfCheetah-v4 at a 1M-step budget"
|
| 17 |
+
category = "Model Training and ML Infrastructure"
|
| 18 |
+
subcategory = "Reinforcement learning"
|
| 19 |
+
task_objective = [ "Implement", "Optimize",]
|
| 20 |
+
artifact_type = [ "Single script or program",]
|
| 21 |
+
metric_name = "Mean undiscounted episodic return on HalfCheetah-v4 after a fixed 999,424-environment-step training run of the frozen PPO-clip harness, averaged over 240 held-out evaluation episodes (12 sealed training seeds x 20 sealed evaluation seeds), in raw environment reward"
|
| 22 |
+
objective = "maximize"
|
| 23 |
+
reward_map = "rational_squash"
|
| 24 |
+
open_ended = true
|
| 25 |
+
graded_deliverable = "/app/output/advantage.py"
|
| 26 |
+
|
| 27 |
+
[verifier]
|
| 28 |
+
timeout_sec = 15000.0
|
| 29 |
+
environment_mode = "separate"
|
| 30 |
+
collect = []
|
| 31 |
+
|
| 32 |
+
[verifier.env]
|
| 33 |
+
|
| 34 |
+
[verifier.environment]
|
| 35 |
+
network_mode = "no-network"
|
| 36 |
+
build_timeout_sec = 3600.0
|
| 37 |
+
os = "linux"
|
| 38 |
+
cpus = 8
|
| 39 |
+
memory_mb = 14336
|
| 40 |
+
storage_mb = 153600
|
| 41 |
+
gpus = 0
|
| 42 |
+
mcp_servers = []
|
| 43 |
+
|
| 44 |
+
[verifier.environment.env]
|
| 45 |
+
|
| 46 |
+
[agent]
|
| 47 |
+
network_mode = "allowlist"
|
| 48 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 49 |
+
timeout_sec = 14400.0
|
| 50 |
+
user = "agent"
|
| 51 |
+
|
| 52 |
+
[environment]
|
| 53 |
+
network_mode = "allowlist"
|
| 54 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 55 |
+
build_timeout_sec = 3600.0
|
| 56 |
+
os = "linux"
|
| 57 |
+
cpus = 8
|
| 58 |
+
memory_mb = 14336
|
| 59 |
+
storage_mb = 153600
|
| 60 |
+
gpus = 0
|
| 61 |
+
mcp_servers = []
|
| 62 |
+
|
| 63 |
+
[environment.env]
|
| 64 |
+
|
| 65 |
+
[solution.env]
|
tasks/label-efficient-risk-estimator/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Estimating model performance without all labels
|
| 2 |
+
|
| 3 |
+
*Category: Evaluation, calibration, and robustness. Subcategory: Metric estimation.*
|
| 4 |
+
|
| 5 |
+
The task requires the agent to estimate the average loss of a target classifier on 2,000 test samples. It has the target classifier’s predicted probabilities for every sample but may request true labels for only up to 400 of them. The agent also has a cheaper classifier’s predictions for all 2,000 samples, which may help identify more difficult regions of the dataset. A basic approach selects examples randomly and averages their observed losses. Better approaches may select more informative examples and use the cheaper predictions to reduce noise without biasing the estimate.
|
tasks/label-efficient-risk-estimator/instruction.md
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Label-efficient risk estimation
|
| 2 |
+
|
| 3 |
+
A classifier `f` assigns a probability distribution over `C` classes to each of `N = 2000`
|
| 4 |
+
unlabelled pool examples. Its risk on that pool is
|
| 5 |
+
|
| 6 |
+
$$
|
| 7 |
+
R = \frac{1}{N} \sum_i -\log \text{target\_probs}[i, y_i]
|
| 8 |
+
$$
|
| 9 |
+
|
| 10 |
+
where `y_i` is the true (unknown) class of example `i`. You may buy at most `M` of these
|
| 11 |
+
labels, one at a time, choosing each next example after seeing every label you've already
|
| 12 |
+
bought. Your job is to estimate `R`.
|
| 13 |
+
|
| 14 |
+
You're also given, for the same pool and row order, the predictive distributions of a second,
|
| 15 |
+
cheaper classifier over the same `C` classes. You aren't told how good it is, and that varies
|
| 16 |
+
from pool to pool.
|
| 17 |
+
|
| 18 |
+
## Deliverable
|
| 19 |
+
|
| 20 |
+
Write `/app/output/estimator.py`, defining a class named exactly `Estimator`:
|
| 21 |
+
|
| 22 |
+
```python
|
| 23 |
+
class Estimator:
|
| 24 |
+
def __init__(self, pool: dict, budget: int, rng: numpy.random.Generator) -> None: ...
|
| 25 |
+
def next_index(self) -> int: ...
|
| 26 |
+
def observe(self, index: int, label: int) -> None: ...
|
| 27 |
+
def estimate(self) -> float: ...
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
`pool` has exactly these keys:
|
| 31 |
+
|
| 32 |
+
| key | type |
|
| 33 |
+
| --- | --- |
|
| 34 |
+
| `target_probs` | C-contiguous `float64` ndarray, shape `(n_pool, n_classes)`, rows sum to 1 |
|
| 35 |
+
| `surrogate_probs` | C-contiguous `float64` ndarray, shape `(n_pool, n_classes)`, rows sum to 1 |
|
| 36 |
+
| `n_pool` | `int`, always 2000 |
|
| 37 |
+
| `n_classes` | `int`, always 2 |
|
| 38 |
+
|
| 39 |
+
Requirements:
|
| 40 |
+
- Helper modules can live anywhere under `/app/output/`, as long as they're importable from
|
| 41 |
+
`estimator.py`.
|
| 42 |
+
- Allowed packages: `numpy`, `scipy`. Nothing else is installed, and there's no network access.
|
| 43 |
+
- Grading runs in a separate environment from this one. Only the contents of `/app/output`
|
| 44 |
+
cross over, so your solution must be fully self-contained there.
|
| 45 |
+
|
| 46 |
+
The harness, not your code, drives the loop: it calls `next_index()` exactly `budget` times,
|
| 47 |
+
and right after each call it calls `observe(index, label)` with the true class of the row you
|
| 48 |
+
named. Naming a row you've already bought is legal and still uses up one unit of budget. After
|
| 49 |
+
the last `observe`, `estimate()` is called once.
|
| 50 |
+
|
| 51 |
+
## How it's scored
|
| 52 |
+
|
| 53 |
+
- One *cell* is one held-out pool paired with one label budget `M`, where `M` is one of
|
| 54 |
+
`{50, 100, 200, 400}`.
|
| 55 |
+
- Every cell is replayed over 4000 pinned seeds.
|
| 56 |
+
- For each seed, the harness builds a fresh `Estimator` and records the squared error
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
(\text{estimate}() - R)^2
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+
against the exact pool risk `R`, which it knows and you don't.
|
| 63 |
+
- A cell's score is
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
\text{score} = \frac{\text{median over the 4000 seeds of your squared error}}{\text{median over the SAME 4000 seeds of the squared error of the reference}}
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
- The reference draws its `M` rows uniformly at random, without replacement, from the same
|
| 70 |
+
`rng` seed you're given, and returns the plain mean of their `-log target_probs[i, y_i]`.
|
| 71 |
+
- The graded metric is the **median of the cell scores** across every held-out cell.
|
| 72 |
+
- **Lower is better.** Matching the reference scores zero; every value strictly below the
|
| 73 |
+
reference scores strictly higher, with no cutoff where further reduction stops counting. Push
|
| 74 |
+
it as low as you can.
|
| 75 |
+
|
| 76 |
+
The held-out pools span several source corpora, classifier pairs, and calibration regimes,
|
| 77 |
+
including pools where the target classifier is accurate and well-calibrated and pools where
|
| 78 |
+
it's badly miscalibrated. No single fixed design wins on all of them.
|
| 79 |
+
|
| 80 |
+
## Development data
|
| 81 |
+
|
| 82 |
+
`/app/data/dev/` holds twelve labelled pools you can use however you like. Each
|
| 83 |
+
`/app/data/dev/<pool_id>/` contains:
|
| 84 |
+
|
| 85 |
+
- `target_probs.npy` - `float64` `(2000, n_classes)`
|
| 86 |
+
- `surrogate_probs.npy` - `float64` `(2000, n_classes)`
|
| 87 |
+
- `labels.npy` - `int64` `(2000,)`, values in `[0, n_classes)`
|
| 88 |
+
- `meta.json` - `{"pool_id", "n_pool", "n_classes"}`
|
| 89 |
+
|
| 90 |
+
The held-out pools come from disjoint shards of the same corpora and are never shipped to you.
|
| 91 |
+
|
| 92 |
+
## Execution contract
|
| 93 |
+
|
| 94 |
+
- Your module runs as an unprivileged user with **no writable directory**, including
|
| 95 |
+
`/app/output`. It's re-executed from source for **every seed**, so no state survives from one
|
| 96 |
+
seed to the next: do per-pool precomputation in `__init__`, not at module scope. The pool row
|
| 97 |
+
order is re-randomised on every seed, so row indices mean nothing across seeds.
|
| 98 |
+
- `/app/output` must hold at most 2000 files totalling at most 256 MB.
|
| 99 |
+
- Wall clock limits: **5 seconds per seed**, and **900 seconds for a whole cell** (all 4000
|
| 100 |
+
seeds of one pool-budget pair). A cell runs with one CPU core available to it.
|
| 101 |
+
- Any of the following makes that seed score the worst-case squared error: an exception, a
|
| 102 |
+
`next_index()` outside `[0, n_pool)`, a non-finite `estimate()`, or exceeding the per-seed
|
| 103 |
+
clock. Exceeding the per-cell clock, or trying to obtain more than `budget` labels in a seed,
|
| 104 |
+
scores the worst case for the whole cell.
|
| 105 |
+
- A missing, empty, or unimportable `/app/output/estimator.py` scores zero.
|
tasks/label-efficient-risk-estimator/task.toml
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.4"
|
| 2 |
+
artifacts = [ "/app/output",]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "bespokelabs/label-efficient-risk-estimator"
|
| 6 |
+
version = "1.0.0"
|
| 7 |
+
description = ""
|
| 8 |
+
keywords = [ "autoresearch", "machine-learning", "benchmark",]
|
| 9 |
+
[[task.authors]]
|
| 10 |
+
name = "Bespoke Labs"
|
| 11 |
+
|
| 12 |
+
[metadata]
|
| 13 |
+
category = "Machine Learning and AI"
|
| 14 |
+
subcategory = "Evaluation, Calibration, and Robustness"
|
| 15 |
+
task_objective = [ "Implement", "Optimize",]
|
| 16 |
+
artifact_type = [ "Single script or program",]
|
| 17 |
+
expert_time_estimate_hours = 4.0
|
| 18 |
+
|
| 19 |
+
[verifier]
|
| 20 |
+
timeout_sec = 2700.0
|
| 21 |
+
environment_mode = "separate"
|
| 22 |
+
collect = []
|
| 23 |
+
|
| 24 |
+
[verifier.env]
|
| 25 |
+
|
| 26 |
+
[verifier.environment]
|
| 27 |
+
network_mode = "no-network"
|
| 28 |
+
build_timeout_sec = 3600.0
|
| 29 |
+
os = "linux"
|
| 30 |
+
cpus = 8
|
| 31 |
+
memory_mb = 14336
|
| 32 |
+
storage_mb = 153600
|
| 33 |
+
gpus = 0
|
| 34 |
+
mcp_servers = []
|
| 35 |
+
|
| 36 |
+
[verifier.environment.env]
|
| 37 |
+
|
| 38 |
+
[agent]
|
| 39 |
+
network_mode = "allowlist"
|
| 40 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 41 |
+
timeout_sec = 14400.0
|
| 42 |
+
|
| 43 |
+
[environment]
|
| 44 |
+
network_mode = "allowlist"
|
| 45 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 46 |
+
build_timeout_sec = 3600.0
|
| 47 |
+
os = "linux"
|
| 48 |
+
cpus = 8
|
| 49 |
+
memory_mb = 14336
|
| 50 |
+
storage_mb = 153600
|
| 51 |
+
gpus = 0
|
| 52 |
+
mcp_servers = []
|
| 53 |
+
|
| 54 |
+
[environment.env]
|
| 55 |
+
|
| 56 |
+
[solution.env]
|
tasks/reppo-reliable-onpolicy-control-trainer/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Training reliable control policies under tight budgets
|
| 2 |
+
|
| 3 |
+
*Category: Model training. Subcategory: Reinforcement learning.*
|
| 4 |
+
|
| 5 |
+
The agent must train a controller from scratch for each of six unseen physical-control tasks, such as balancing a pendulum or moving a robotic arm, using at most 400,000 environment interactions and 45 CPU-seconds. Every task presents eight observation values and accepts two continuous actions, but hidden rotations and permutations prevent the trainer from relying on fixed meanings for those coordinates. The agent controls the entire training procedure and periodically reports the deterministic policy that the evaluator should test. It may use stable on-policy reinforcement learning, improved value estimates, system identification followed by an analytic controller, or safeguards that preserve the best policy found so far. Success requires more than briefly reaching a high return: the policy must achieve at least 90% of a task-specific reference level at each of the final ten checkpoints. Evaluation covers 72 independent runs across six environments and twelve hidden seeds. The score is the fraction of runs meeting this reliability condition; higher is better.
|
tasks/reppo-reliable-onpolicy-control-trainer/instruction.md
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Train control policies that hit a performance bar on every seed and hold it
|
| 2 |
+
|
| 3 |
+
Write a reinforcement-learning training procedure at `/app/solution/trainer.py`. The score is
|
| 4 |
+
the **reliable-success fraction**. It is the fraction of runs whose policy reaches 90% of a
|
| 5 |
+
reference level and stays there for the last ten evaluation checkpoints.
|
| 6 |
+
|
| 7 |
+
The grader runs your procedure from scratch 72 times. It uses six unseen continuous-control
|
| 8 |
+
environments with twelve sealed random seeds each. Each run gets 400,000 environment
|
| 9 |
+
interactions and 45 CPU-seconds. Nothing carries over between runs. Push the reliable-success
|
| 10 |
+
fraction as high as you can. Higher is always better. A procedure that does no learning scores 0.
|
| 11 |
+
|
| 12 |
+
## The deliverable
|
| 13 |
+
|
| 14 |
+
`/app/solution/trainer.py` must define, at module level:
|
| 15 |
+
|
| 16 |
+
```python
|
| 17 |
+
def train(env, seed, budget, report) -> None
|
| 18 |
+
```
|
| 19 |
+
|
| 20 |
+
`env` is a vectorised environment handle owned by the harness:
|
| 21 |
+
|
| 22 |
+
| member | meaning |
|
| 23 |
+
| --- | --- |
|
| 24 |
+
| `env.reset()` | `np.ndarray (env.n_envs, env.obs_dim)` float32 |
|
| 25 |
+
| `env.step(actions)` | `(obs, reward, done)`; `actions` must be `(env.n_envs, env.act_dim)` and coerce to float32 with every entry in `[-1, 1]` |
|
| 26 |
+
| `env.n_envs` | 64 |
|
| 27 |
+
| `env.obs_dim` | 8 |
|
| 28 |
+
| `env.act_dim` | 2 |
|
| 29 |
+
| `env.max_episode_steps` | 100 |
|
| 30 |
+
|
| 31 |
+
Episodes have a fixed length: `done` is true only on an episode's final step, and the batch
|
| 32 |
+
auto-resets on the next `step`. Once the interaction budget is spent, `env.step` raises
|
| 33 |
+
`RuntimeError`.
|
| 34 |
+
|
| 35 |
+
`seed` is the run's integer seed. `budget` carries `budget.total_env_steps` (400000),
|
| 36 |
+
`budget.cpu_seconds` (45.0), and `budget.n_checkpoints` (40).
|
| 37 |
+
|
| 38 |
+
`report(policy_fn)` hands the harness the deterministic policy it should evaluate from then
|
| 39 |
+
on. `policy_fn` maps `np.ndarray (B, 8)` float32 to `(B, 2)` with every entry in `[-1, 1]`,
|
| 40 |
+
and must have no side effects, since the harness calls it on evaluation states that never
|
| 41 |
+
touch your training environment. Call `report` as often as you like; only the most recently
|
| 42 |
+
reported policy is evaluated.
|
| 43 |
+
|
| 44 |
+
Actions from `policy_fn` and from `env.step` are read as float32: any array whose values
|
| 45 |
+
convert exactly to float32 and whose size is `B * 2` is accepted, regardless of dtype or
|
| 46 |
+
memory order. Values are then clipped into `[-1, 1]` with a float32 tolerance of `1e-4`, so
|
| 47 |
+
rounding at the boundary costs nothing; going further outside ends the run.
|
| 48 |
+
|
| 49 |
+
You may add helper modules under `/app/solution/`. That directory is everything that reaches
|
| 50 |
+
the grader, so anything your trainer imports or loads must live inside it, subject to:
|
| 51 |
+
|
| 52 |
+
- no symbolic or hard links
|
| 53 |
+
- at most 2000 files
|
| 54 |
+
- at most 64 MB total
|
| 55 |
+
|
| 56 |
+
## How a run is scored
|
| 57 |
+
|
| 58 |
+
The harness evaluates at 40 checkpoints, one every 10,000 environment steps. At checkpoint
|
| 59 |
+
`k` it runs the most recently reported `policy_fn` on that environment's 32 fixed evaluation
|
| 60 |
+
initial states, one full 100-step episode each, and records the mean undiscounted return
|
| 61 |
+
`R_k`. This evaluation does not consume your interaction budget.
|
| 62 |
+
|
| 63 |
+
`R_k` is normalised against two per-environment constants:
|
| 64 |
+
|
| 65 |
+
$$s_k = \mathrm{clip}\left(\frac{R_k - R_{\text{rand}}}{R_{\text{ref}} - R_{\text{rand}}}, 0, 1\right)$$
|
| 66 |
+
|
| 67 |
+
`R_rand` is the return of uniform-random actions and `R_ref` is a fixed reference level. The
|
| 68 |
+
constants for the graded environments are not disclosed.
|
| 69 |
+
|
| 70 |
+
A run is **reliably performant** when $s_k \geq 0.9$ at all of the last ten checkpoints, i.e.
|
| 71 |
+
over the final 100,000 environment steps of the run. The metric is the fraction of the 72
|
| 72 |
+
runs that are reliably performant.
|
| 73 |
+
|
| 74 |
+
A checkpoint reached before your first `report` call scores $s_k = 0$, and so does every
|
| 75 |
+
checkpoint after a run has been ended by the harness. If `train` returns early, the remaining
|
| 76 |
+
checkpoints are evaluated with the policy you reported last.
|
| 77 |
+
|
| 78 |
+
Each run gets a private, empty working directory as its current directory and as `TMPDIR` and
|
| 79 |
+
`HOME`. Nothing written there survives the run. `/app/solution` is read-only while your
|
| 80 |
+
trainer executes, and no other path is writable, so the 72 runs are independent and cannot
|
| 81 |
+
pass state to one another. POSIX shared memory (`/dev/shm`) is also not writable inside a
|
| 82 |
+
graded run, so `multiprocessing` primitives that need it are unavailable. Threads and
|
| 83 |
+
`subprocess` work. The CPU meter sums every process your run creates. Each run executes under
|
| 84 |
+
its own uid, and System V IPC, POSIX message queues, socket binding, ptrace and kernel keyrings
|
| 85 |
+
are refused with `EPERM` inside a graded run.
|
| 86 |
+
|
| 87 |
+
## What ends a run
|
| 88 |
+
|
| 89 |
+
Each of the following stops the run at that point, so every checkpoint from then on scores
|
| 90 |
+
$s_k = 0$:
|
| 91 |
+
|
| 92 |
+
- spending more than 45 CPU-seconds. The meter covers every process your run creates, including
|
| 93 |
+
helper processes and the work your `policy_fn` does answering evaluation queries, and it
|
| 94 |
+
starts when `train` is entered; interpreter and library import time is not charged.
|
| 95 |
+
- taking more than 150 seconds of wall-clock time.
|
| 96 |
+
- returning an action array of the wrong size, containing a non-finite value, or with an
|
| 97 |
+
entry outside `[-1, 1]`.
|
| 98 |
+
- raising an exception out of `train` or out of `policy_fn`.
|
| 99 |
+
|
| 100 |
+
A deliverable that is missing, empty, unparseable, or that does not define a module-level
|
| 101 |
+
`train` taking four positional arguments scores 0 outright.
|
| 102 |
+
|
| 103 |
+
## The environments
|
| 104 |
+
|
| 105 |
+
`/app/envs.py` holds all six families, with their disclosed parameter ranges and dynamics:
|
| 106 |
+
|
| 107 |
+
- a 2-D double integrator
|
| 108 |
+
- an inverted-pendulum balance task
|
| 109 |
+
- a pendulum swing-up
|
| 110 |
+
- a cart-pole swing-up
|
| 111 |
+
- a planar two-link reacher
|
| 112 |
+
- a pendulum swing-up with a one- or two-step actuation delay
|
| 113 |
+
|
| 114 |
+
Every family is presented through the same 8-dimensional observation and 2-dimensional action
|
| 115 |
+
interface: families that drive one actuator ignore the second action component, and families
|
| 116 |
+
with fewer than eight state features occupy a subspace of the observation.
|
| 117 |
+
|
| 118 |
+
Each environment also carries two transforms drawn with its own parameter seed: a fixed
|
| 119 |
+
orthogonal rotation applied to the observation vector, and a fixed signed permutation applied
|
| 120 |
+
to the action vector before the dynamics see it. The graded environments use parameter draws,
|
| 121 |
+
transforms, evaluation states, and seeds that you do not have.
|
| 122 |
+
|
| 123 |
+
## Iterating locally
|
| 124 |
+
|
| 125 |
+
`/app/public_panel.json` holds six public environments, one draw from each family, with their
|
| 126 |
+
own `R_rand` and `R_ref` constants and three public seeds. These are not the graded ones.
|
| 127 |
+
|
| 128 |
+
```
|
| 129 |
+
python3 /app/run_public.py
|
| 130 |
+
python3 /app/run_public.py --envs env2 --seeds 0 --workers 4
|
| 131 |
+
```
|
| 132 |
+
|
| 133 |
+
It prints, per run, the mean evaluation return at each of the 40 checkpoints together with
|
| 134 |
+
that environment's `R_rand` and `R_ref`, so you can apply the normalisation above yourself.
|
| 135 |
+
|
| 136 |
+
`/app/panel.py` and `/app/child_main.py` are the same harness the grader runs, including the
|
| 137 |
+
meters and the evaluation protocol. `/app/envs.py`, `/app/panel.py`, `/app/child_main.py`,
|
| 138 |
+
`/app/run_public.py`, and `/app/public_panel.json` are inputs; only `/app/solution/` is yours
|
| 139 |
+
to change.
|
| 140 |
+
|
| 141 |
+
## The machine
|
| 142 |
+
|
| 143 |
+
- 8 CPU cores, 14 GB of RAM, no GPU, no network
|
| 144 |
+
- packages installed: `numpy`, and a CPU build of `torch`
|
| 145 |
+
- one thread per process (`OMP_NUM_THREADS=1`); extra threads will not buy you compute
|
| 146 |
+
- the 72 graded runs are executed 8 at a time
|
tasks/reppo-reliable-onpolicy-control-trainer/task.toml
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.4"
|
| 2 |
+
artifacts = [ "/app/solution",]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "bespokelabs/reppo-reliable-onpolicy-control-trainer"
|
| 6 |
+
version = "1.0.0"
|
| 7 |
+
description = ""
|
| 8 |
+
keywords = [ "autoresearch", "machine-learning", "benchmark",]
|
| 9 |
+
[[task.authors]]
|
| 10 |
+
name = "Bespoke Labs"
|
| 11 |
+
|
| 12 |
+
[metadata]
|
| 13 |
+
task_slug = "reppo-reliable-onpolicy-control-trainer"
|
| 14 |
+
category = "Model Training and ML Infrastructure"
|
| 15 |
+
subcategory = "Model Training and Alignment"
|
| 16 |
+
metric_name = "reliable_success_fraction"
|
| 17 |
+
objective = "maximize"
|
| 18 |
+
graded_deliverable = "/app/solution/trainer.py"
|
| 19 |
+
device = "cpu"
|
| 20 |
+
expert_time_estimate_hours = 12.0
|
| 21 |
+
|
| 22 |
+
[verifier]
|
| 23 |
+
timeout_sec = 2400.0
|
| 24 |
+
environment_mode = "separate"
|
| 25 |
+
collect = []
|
| 26 |
+
|
| 27 |
+
[verifier.env]
|
| 28 |
+
|
| 29 |
+
[verifier.environment]
|
| 30 |
+
network_mode = "no-network"
|
| 31 |
+
build_timeout_sec = 3600.0
|
| 32 |
+
os = "linux"
|
| 33 |
+
cpus = 8
|
| 34 |
+
memory_mb = 14336
|
| 35 |
+
storage_mb = 153600
|
| 36 |
+
gpus = 0
|
| 37 |
+
mcp_servers = []
|
| 38 |
+
|
| 39 |
+
[verifier.environment.env]
|
| 40 |
+
|
| 41 |
+
[agent]
|
| 42 |
+
network_mode = "allowlist"
|
| 43 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 44 |
+
timeout_sec = 14400.0
|
| 45 |
+
user = "agent"
|
| 46 |
+
|
| 47 |
+
[environment]
|
| 48 |
+
network_mode = "allowlist"
|
| 49 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 50 |
+
build_timeout_sec = 3600.0
|
| 51 |
+
os = "linux"
|
| 52 |
+
cpus = 8
|
| 53 |
+
memory_mb = 14336
|
| 54 |
+
storage_mb = 153600
|
| 55 |
+
gpus = 0
|
| 56 |
+
mcp_servers = []
|
| 57 |
+
|
| 58 |
+
[environment.env]
|
| 59 |
+
|
| 60 |
+
[solution.env]
|
tasks/sae-sparse-dict-nmse-frontier/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Sparse Coding of Language Model Activations
|
| 2 |
+
|
| 3 |
+
*Category: Interpretability.*
|
| 4 |
+
|
| 5 |
+
The task is to reconstruct activation vectors from the eighth block of GPT-2 small while representing each vector with only a small number of learned components. An activation vector is an internal 768-number representation produced when the language model processes text. The agent submits up to 8,192 fixed 768-dimensional dictionary vectors and an encoder that selects and weights a few of them for each activation. The grader reconstructs an activation by adding the selected dictionary vectors, each multiplied by its assigned weight. The encoder may use a different set of vectors for every activation, but the average number of selected vectors across all evaluated activations may not exceed 32. Solutions may train a sparse autoencoder, improve which dictionary vectors the encoder selects, refit the selected weights with least squares, and replace dictionary vectors that are rarely used. The final objective is to minimize normalized mean squared reconstruction error on 1,048,576 held-out activations. Lower error is better.
|
tasks/sae-sparse-dict-nmse-frontier/instruction.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Sparse coding of GPT-2 activations
|
| 2 |
+
|
| 3 |
+
Build a sparse dictionary that reconstructs GPT-2 small layer 8 residual stream activations.
|
| 4 |
+
|
| 5 |
+
## Goal
|
| 6 |
+
|
| 7 |
+
The grader measures normalized reconstruction error on 1,048,576 hidden activations:
|
| 8 |
+
|
| 9 |
+
$$
|
| 10 |
+
\frac{\sum_i \lVert x_i-\hat{x}_i\rVert^2}
|
| 11 |
+
{\sum_i \lVert x_i-\bar{x}\rVert^2}.
|
| 12 |
+
$$
|
| 13 |
+
|
| 14 |
+
Lower is better. The numerator and denominator are pooled across the full hidden set before division.
|
| 15 |
+
|
| 16 |
+
Reconstructing every activation with one fixed vector earns zero reward. A method no better than the best 32 dimensional linear code earns very little.
|
| 17 |
+
|
| 18 |
+
The average number of active dictionary entries may not exceed 32 per activation. The dictionary may contain at most 8,192 entries.
|
| 19 |
+
|
| 20 |
+
## Deliverable
|
| 21 |
+
|
| 22 |
+
Create these two files:
|
| 23 |
+
|
| 24 |
+
- `/app/output/dictionary.pt`
|
| 25 |
+
- `/app/output/encoder.py`
|
| 26 |
+
|
| 27 |
+
Only files under `/app/output` are submitted.
|
| 28 |
+
|
| 29 |
+
### Dictionary
|
| 30 |
+
|
| 31 |
+
Save `dictionary.pt` with `torch.save`. It must be a plain dictionary of tensors with:
|
| 32 |
+
|
| 33 |
+
- `W_dec`: a finite `float32` CPU tensor with shape `[768, n]`, where `1 <= n <= 8192`.
|
| 34 |
+
- `b_pre`: a finite `float32` CPU tensor with shape `[768]`.
|
| 35 |
+
|
| 36 |
+
Column `j` of `W_dec` is dictionary entry `j`. The grader reconstructs each activation as:
|
| 37 |
+
|
| 38 |
+
$$
|
| 39 |
+
\hat{x}=b_{\mathrm{pre}}+\sum_j \mathrm{val}_j W_{\mathrm{dec}}[:,\mathrm{idx}_j].
|
| 40 |
+
$$
|
| 41 |
+
|
| 42 |
+
### Encoder
|
| 43 |
+
|
| 44 |
+
`encoder.py` must define:
|
| 45 |
+
|
| 46 |
+
```python
|
| 47 |
+
def load(device: str) -> object:
|
| 48 |
+
...
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
The returned object must define:
|
| 52 |
+
|
| 53 |
+
```python
|
| 54 |
+
def encode(x: torch.Tensor) -> tuple[torch.Tensor, torch.Tensor]:
|
| 55 |
+
...
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
The grader calls `load("cuda")` once. Each `encode` call receives a `float32` tensor with shape `[8192, 768]` on the GPU.
|
| 59 |
+
|
| 60 |
+
Return `(idx, val)`:
|
| 61 |
+
|
| 62 |
+
- `idx` has shape `[8192, K]`, integer dtype, and values from `0` to `n - 1`.
|
| 63 |
+
- `val` has the same shape, floating point dtype, and finite values.
|
| 64 |
+
- `K` may be between 0 and 8,192 and may change between calls.
|
| 65 |
+
- Entries with value exactly zero are inactive and do not count toward the sparsity budget.
|
| 66 |
+
- A row may not name the same dictionary entry twice.
|
| 67 |
+
|
| 68 |
+
## Data
|
| 69 |
+
|
| 70 |
+
`/app/extract_acts.py` shows how activations are created. It splits documents into non-overlapping 64 token windows, runs GPT-2 small in float32, reads the residual stream after block 8, centers each token across its 768 channels, and normalizes it to unit length.
|
| 71 |
+
|
| 72 |
+
Development data is available at:
|
| 73 |
+
|
| 74 |
+
- `/app/data/openwebtext/plain_text/train-00000-of-00080.parquet`
|
| 75 |
+
- `/app/data/openwebtext/plain_text/train-00001-of-00080.parquet`
|
| 76 |
+
|
| 77 |
+
The hidden activations use a different OpenWebText shard and the same extraction code.
|
| 78 |
+
|
| 79 |
+
## Grading and limits
|
| 80 |
+
|
| 81 |
+
The grader calls `encode` 128 times, in fixed order, for 1,048,576 activations total. It reconstructs in float32 and accumulates the error sums in float64.
|
| 82 |
+
|
| 83 |
+
Importing `encoder.py`, loading the encoder, and all encoding calls share a 900 second limit. The whole grading run has a 1,500 second limit.
|
| 84 |
+
|
| 85 |
+
`/app/output` may contain at most 20,000 files and directories. It may not contain symbolic links, hard links, or special files. Load bundled files relative to `encoder.py`, since the grader copies the output directory before running it.
|
| 86 |
+
|
| 87 |
+
The grading machine has one NVIDIA H100 80 GB GPU, 4 physical CPU cores, 32 GiB RAM, and about 300 GB disk. The process has no internet access and runs with one CPU thread. PyTorch, Transformers, NumPy, SciPy, and PyArrow are installed. The pinned GPT-2 checkpoint is available at `/opt/assets/gpt2`.
|
| 88 |
+
|
| 89 |
+
Any malformed output, exception, timeout, non-finite value, file contract violation, or resource limit violation receives zero reward.
|
tasks/sae-sparse-dict-nmse-frontier/task.toml
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.4"
|
| 2 |
+
artifacts = [ "/app/output",]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "bespokelabs/sae-sparse-dict-nmse-frontier"
|
| 6 |
+
version = "1.0.0"
|
| 7 |
+
description = ""
|
| 8 |
+
keywords = [ "autoresearch", "machine-learning", "benchmark",]
|
| 9 |
+
[[task.authors]]
|
| 10 |
+
name = "Bespoke Labs"
|
| 11 |
+
|
| 12 |
+
[metadata]
|
| 13 |
+
category = "Machine Learning and AI"
|
| 14 |
+
subcategory = "Unsupervised and representation learning"
|
| 15 |
+
task_objective = [ "Optimize", "Implement",]
|
| 16 |
+
artifact_type = [ "Single script or program", "Generated output artifact",]
|
| 17 |
+
expert_time_estimate_hours = 6.0
|
| 18 |
+
|
| 19 |
+
[verifier]
|
| 20 |
+
network_mode = "no-network"
|
| 21 |
+
timeout_sec = 7200.0
|
| 22 |
+
environment_mode = "separate"
|
| 23 |
+
collect = []
|
| 24 |
+
|
| 25 |
+
[verifier.env]
|
| 26 |
+
|
| 27 |
+
[agent]
|
| 28 |
+
network_mode = "allowlist"
|
| 29 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 30 |
+
timeout_sec = 21600.0
|
| 31 |
+
|
| 32 |
+
[environment]
|
| 33 |
+
network_mode = "allowlist"
|
| 34 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 35 |
+
build_timeout_sec = 10800.0
|
| 36 |
+
os = "linux"
|
| 37 |
+
cpus = 4
|
| 38 |
+
memory_mb = 32768
|
| 39 |
+
storage_mb = 307200
|
| 40 |
+
gpus = 1
|
| 41 |
+
gpu_types = [ "H100",]
|
| 42 |
+
mcp_servers = []
|
| 43 |
+
|
| 44 |
+
[environment.env]
|
| 45 |
+
|
| 46 |
+
[solution.env]
|
tasks/shortest-valid-ci-l2-ece/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Tight confidence intervals for prediction uncertainty estimation
|
| 2 |
+
|
| 3 |
+
*Category: Evaluation, calibration, and robustness. Subcategory: Metric estimation.*
|
| 4 |
+
|
| 5 |
+
The task provides labels and class probabilities from classifiers with 2 to 50 classes, and samples of 200 to 10,000 rows. The agent is tasked with returning a short confidence interval for _squared calibration error_ among the one to three most likely classes. This interval is a range for how closely the stated chances match the observed results, and the interval itself must include the _true_ error in at least some fraction of repeated samples. Sampling noise changes with the class count and the shape of the probabilities, so a narrow interval can miss the true error in some settings. One may start with a standard range based on the sample size and the observed error. Further gains may come from better estimates of sampling noise and ranges that use the most likely probabilities.
|
tasks/shortest-valid-ci-l2-ece/instruction.md
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Shortest valid confidence interval for the squared l2 calibration error
|
| 2 |
+
|
| 3 |
+
Given predicted class probabilities and their true labels, return a confidence interval for the
|
| 4 |
+
squared calibration error defined below. The interval should be as short as possible while still
|
| 5 |
+
covering the true value in at least 88% of repeated samples.
|
| 6 |
+
|
| 7 |
+
## Submission
|
| 8 |
+
|
| 9 |
+
- File: `/app/output/interval.py`, plus any helper module it imports. Nothing outside
|
| 10 |
+
`/app/output` reaches the grader.
|
| 11 |
+
- It must expose:
|
| 12 |
+
|
| 13 |
+
```python
|
| 14 |
+
def ece2_interval(Z, Y, k, alpha, rng) -> tuple[float, float]:
|
| 15 |
+
...
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
- The function must return a `1 - alpha` confidence interval for the squared top-1-to-k l2
|
| 19 |
+
expected calibration error of the predictions in `Z`.
|
| 20 |
+
- Return `(lo, hi)`: two finite floats with `0.0 <= lo <= hi <= k`.
|
| 21 |
+
|
| 22 |
+
## The estimand
|
| 23 |
+
|
| 24 |
+
For a K-class predictor, let `Z` hold predicted probability vectors and let `r_1, ..., r_k` be
|
| 25 |
+
the classes with the k largest entries of a row, so `Z_(1:k)` are those entries in
|
| 26 |
+
non-increasing order and `Y_{r_(1:k)}` the matching label indicators. With the expectation over
|
| 27 |
+
the joint law of the row and its label,
|
| 28 |
+
|
| 29 |
+
$$
|
| 30 |
+
\mathrm{ECE}^2_{1:k} = \mathbb{E} \left\| \mathbb{E}\left[ Y_{r_{(1:k)}} - Z_{(1:k)} \,\middle|\, Z_{(1:k)} \right] \right\|_2^2
|
| 31 |
+
$$
|
| 32 |
+
|
| 33 |
+
This is zero exactly when the top-k predicted probabilities are calibrated, and it lies in
|
| 34 |
+
`[0, k]`.
|
| 35 |
+
|
| 36 |
+
## Arguments and return
|
| 37 |
+
|
| 38 |
+
| name | contract |
|
| 39 |
+
|---|---|
|
| 40 |
+
| `Z` | C-contiguous `float64` array, shape `(n, K)`, rows are probability vectors summing to 1 |
|
| 41 |
+
| `Y` | `int64` array, shape `(n,)`, realised class indices in `[0, K)` |
|
| 42 |
+
| `k` | `int` in `{1, 2, 3}`, always `k < K` |
|
| 43 |
+
| `alpha` | `0.10` |
|
| 44 |
+
| `rng` | a freshly seeded `numpy.random.Generator`, one per call |
|
| 45 |
+
|
| 46 |
+
- A call counts as a non-covering interval of length `k` if it raises, returns an invalid value,
|
| 47 |
+
or runs for more than 2.0 seconds.
|
| 48 |
+
- `rng` is the only random number generator supplied by the grader. The grader draws the same
|
| 49 |
+
data each time. Seed any other source of randomness so repeated grading gives the same result.
|
| 50 |
+
|
| 51 |
+
## How it is scored
|
| 52 |
+
|
| 53 |
+
- Your routine runs against a sealed panel of data-generating settings that is not in this
|
| 54 |
+
container.
|
| 55 |
+
- Each setting is graded over `R = 2000` seeded replications. Each replication is an independent
|
| 56 |
+
draw of `(Z, Y)` with its own true `ECE^2_{1:k}`. The grader calls your routine once for each
|
| 57 |
+
replication in a fresh process.
|
| 58 |
+
- For setting `s` with `k = k_s`:
|
| 59 |
+
- `coverage_s` = fraction of the 2000 replications whose interval contains that
|
| 60 |
+
replication's true `ECE^2_{1:k}`
|
| 61 |
+
- `relative_length_s = mean(hi - lo) / k_s`
|
| 62 |
+
- score:
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
\text{score}_s =
|
| 66 |
+
\begin{cases}
|
| 67 |
+
\text{relative\_length}_s & \text{if } \text{coverage}_s \ge 0.88 \\
|
| 68 |
+
1.0 & \text{otherwise}
|
| 69 |
+
\end{cases}
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
- The grader reports the unweighted mean of `score_s` over all settings as `metric`.
|
| 73 |
+
|
| 74 |
+
Lower is better. The interval `(0.0, k)` always covers the true value, but it gives a metric of
|
| 75 |
+
`1.0` and earns zero credit. Every metric below `1.0` earns more credit as it decreases.
|
| 76 |
+
|
| 77 |
+
## The sealed panel
|
| 78 |
+
|
| 79 |
+
Settings are drawn from the generator in `/app/panel.py`. Across the panel:
|
| 80 |
+
|
| 81 |
+
* `K` is in `{2, 3, 5, 10, 50}`, `k` in `{1, 2, 3}` with `k < K`, `n` in `{200, 500, 2000, 10000}`.
|
| 82 |
+
* The distribution of `Z` mixes a uniform distribution on the simplex with a Dirichlet or
|
| 83 |
+
logit-normal distribution. The density of `Z_(1:k)` is bounded away from zero on
|
| 84 |
+
`{z_1 >= ... >= z_k >= 0, k/K <= sum z <= 1}`.
|
| 85 |
+
* The calibration curve is a smooth per-rank over- or under-statement of the predicted
|
| 86 |
+
probability, and labels depend on a row only through its top-k entries.
|
| 87 |
+
* Each setting carries a fixed 41-point grid of true squared calibration errors, and every
|
| 88 |
+
replication draws one of them, so the true value **varies between replications of the same
|
| 89 |
+
setting**. Some settings include exactly calibrated replications; others reach a squared
|
| 90 |
+
error of order 0.1.
|
| 91 |
+
|
| 92 |
+
## Data notes
|
| 93 |
+
|
| 94 |
+
* `/app/panel.py` is the generator the grader uses. `draw_replication(spec, theta, rng)`
|
| 95 |
+
returns `(Z, Y)` for a setting `spec` whose true `ECE^2_{1:k}` is exactly `theta`.
|
| 96 |
+
`theta_for(spec, rng)` picks a replication's `theta` from the setting's grid.
|
| 97 |
+
`estimate_a(spec, n_draws, seed)` and `sigma0_sq(K, k)` are the same Monte-Carlo helpers used
|
| 98 |
+
to build the panel.
|
| 99 |
+
* `/app/data/dev_panel.json` holds 24 development settings, drawn three independent times from
|
| 100 |
+
that same generator, each with its `A`, its `theta_grid`, and the rest of its parameters. Use
|
| 101 |
+
it to generate replications with known true values and measure coverage and length yourself.
|
| 102 |
+
The three draws differ, so a choice tuned to one need not work for another.
|
| 103 |
+
|
| 104 |
+
## Packages and environment
|
| 105 |
+
|
| 106 |
+
* `python3` with `numpy` and `scipy` is available.
|
| 107 |
+
* There is no network.
|
| 108 |
+
* Each grade-time process serves at most one replication per setting and is destroyed
|
| 109 |
+
afterward, with no writable location surviving it, so nothing carries over from one call to
|
| 110 |
+
the next.
|
tasks/shortest-valid-ci-l2-ece/task.toml
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.4"
|
| 2 |
+
artifacts = [ "/app/output",]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "bespokelabs/shortest-valid-ci-l2-ece"
|
| 6 |
+
version = "1.0.0"
|
| 7 |
+
description = ""
|
| 8 |
+
keywords = [ "autoresearch", "machine-learning", "benchmark",]
|
| 9 |
+
[[task.authors]]
|
| 10 |
+
name = "Bespoke Labs"
|
| 11 |
+
|
| 12 |
+
[metadata]
|
| 13 |
+
category = "Machine Learning and AI"
|
| 14 |
+
subcategory = "Model evaluation and benchmarking"
|
| 15 |
+
task_objective = [ "Implement", "Optimize",]
|
| 16 |
+
artifact_type = [ "Single script or program",]
|
| 17 |
+
expert_time_estimate_hours = 6.0
|
| 18 |
+
|
| 19 |
+
[verifier]
|
| 20 |
+
timeout_sec = 1800.0
|
| 21 |
+
environment_mode = "separate"
|
| 22 |
+
collect = []
|
| 23 |
+
|
| 24 |
+
[verifier.env]
|
| 25 |
+
|
| 26 |
+
[verifier.environment]
|
| 27 |
+
network_mode = "no-network"
|
| 28 |
+
build_timeout_sec = 3600.0
|
| 29 |
+
os = "linux"
|
| 30 |
+
cpus = 8
|
| 31 |
+
memory_mb = 14336
|
| 32 |
+
storage_mb = 153600
|
| 33 |
+
gpus = 0
|
| 34 |
+
mcp_servers = []
|
| 35 |
+
|
| 36 |
+
[verifier.environment.env]
|
| 37 |
+
|
| 38 |
+
[agent]
|
| 39 |
+
network_mode = "allowlist"
|
| 40 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 41 |
+
timeout_sec = 21600.0
|
| 42 |
+
|
| 43 |
+
[environment]
|
| 44 |
+
network_mode = "allowlist"
|
| 45 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 46 |
+
build_timeout_sec = 3600.0
|
| 47 |
+
os = "linux"
|
| 48 |
+
cpus = 8
|
| 49 |
+
memory_mb = 14336
|
| 50 |
+
storage_mb = 153600
|
| 51 |
+
gpus = 0
|
| 52 |
+
mcp_servers = []
|
| 53 |
+
|
| 54 |
+
[environment.env]
|
| 55 |
+
|
| 56 |
+
[solution.env]
|
tasks/svdquant-w4a4-psnr/instruction.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Improve W4A4 PixArt Sigma image quality
|
| 2 |
+
|
| 3 |
+
Improve the image quality of a W4A4 quantized PixArt Sigma model. Write your solution to `/app/output/quantize.py`. This must be the only file you create or modify.
|
| 4 |
+
|
| 5 |
+
The file must define `quantize_model(pipe, rank=32) -> None`. The grader passes in a fresh FP16 `diffusers.PixArtSigmaPipeline` loaded from `/opt/pixart-sigma`. `rank` must be an integer from `0` to `32`. You may use the calibration prompts in `/app/data/calibration_prompts.jsonl`.
|
| 6 |
+
|
| 7 |
+
## Required module format
|
| 8 |
+
|
| 9 |
+
Replace every `torch.nn.Linear` in `pipe.transformer` in place. Register these tensors in the order shown. Do not register any other tensor parameters or buffers.
|
| 10 |
+
|
| 11 |
+
* `qweight`: `torch.int8` with shape `(out_features, in_features)`. Values must be from `-7` to `7`.
|
| 12 |
+
* `scales`: `torch.float16` with shape `(out_features, ceil(in_features / 64))`. Values must be finite and positive.
|
| 13 |
+
* `l1`: `torch.float16` with shape `(in_features, r)`. Values must be finite.
|
| 14 |
+
* `l2`: `torch.float16` with shape `(r, out_features)`. Values must be finite. `r` must be from `0` to `rank`, and `rank` must be from `0` to `32`.
|
| 15 |
+
* `smooth`: `torch.float16` with shape `(in_features,)`. Values must be finite and positive.
|
| 16 |
+
* `bias`: Include this exactly when the original layer has a bias. It must be finite `torch.float16` with shape `(out_features,)`.
|
| 17 |
+
|
| 18 |
+
Do not keep the original weight. `quantize_model` must return `None`.
|
| 19 |
+
|
| 20 |
+
## Required computation
|
| 21 |
+
|
| 22 |
+
Use symmetric groupwise INT4 quantization over groups of 64 input channels. A shorter final group is allowed. Each layer must compute:
|
| 23 |
+
|
| 24 |
+
```text
|
| 25 |
+
x_s = x / smooth
|
| 26 |
+
output = Q4(x_s) @ dequantize(qweight, scales).T
|
| 27 |
+
+ (x_s @ l1) @ l2
|
| 28 |
+
+ bias
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
Quantize each input row and group using `max(abs(group)) / 7`. Round with PyTorch's default round to even rule, clip values to `-7` to `7`, and use a scale of `1` for an all zero group. Multiply each stored code by its group scale when dequantizing the residual weight.
|
| 32 |
+
|
| 33 |
+
Run the computation in FP16. You may calculate scales in FP32.
|
| 34 |
+
|
| 35 |
+
## Scoring
|
| 36 |
+
|
| 37 |
+
The grader compares images from your quantized model with images from the original FP16 model on unseen prompts. The score is mean PSNR in dB. Higher is better.
|
| 38 |
+
|
| 39 |
+
A basic round to nearest W4A4 model defines the zero reward baseline. Scores above that baseline receive higher rewards. Invalid or nonrunning submissions receive zero.
|
| 40 |
+
|
| 41 |
+
## Runtime
|
| 42 |
+
|
| 43 |
+
Importing your file, loading the model, running `quantize_model`, checking the replacement modules, and saving their tensor state must finish within 900 seconds.
|
| 44 |
+
|
| 45 |
+
The environment has one H100 GPU, 4 physical CPU cores, 32,768 MiB of memory, and no internet access. The grader runs separately and receives only `/app/output/quantize.py`, so the solution must be self contained.
|
tasks/ties-merging-clip-vitl14-eight-task-merge/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Merging Several CLIP ViTs for Zero-Shot Classification
|
| 2 |
+
|
| 3 |
+
*Category: Model training. Subcategory: Model merging and distillation.*
|
| 4 |
+
|
| 5 |
+
We have a pretrained CLIP ViT L 14 vision encoder and eight copies fine tuned on different image classification datasets. The objective is to merge their weights into one frozen encoder. The resulting encoder is evaluated as a zero-shot classifier over the original datasets; the final score is the unweighted average of accuracy on all eight datasets. One may start by averaging the eight fine tuned model weights. Because the datasets are provided, it is also possible to fine tune the aggregate model on individual datasets.
|
tasks/ties-merging-clip-vitl14-eight-task-merge/instruction.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Merge eight vision models into one encoder
|
| 2 |
+
|
| 3 |
+
Create one CLIP ViT-L/14 vision encoder that performs well across eight image classification datasets.
|
| 4 |
+
|
| 5 |
+
## Goal
|
| 6 |
+
|
| 7 |
+
You receive one pretrained vision encoder and eight copies fine-tuned on:
|
| 8 |
+
|
| 9 |
+
`sun397`, `cars`, `resisc45`, `eurosat`, `svhn`, `gtsrb`, `mnist`, and `dtd`.
|
| 10 |
+
|
| 11 |
+
Return one state dictionary for the same architecture. The result is used as a single frozen encoder on all eight datasets. It may not route by dataset or keep separate model branches.
|
| 12 |
+
|
| 13 |
+
The metric is mean top-1 accuracy across the eight hidden evaluation sets. Each dataset has equal weight. Higher is better.
|
| 14 |
+
|
| 15 |
+
A mean accuracy of 65.23 percent or lower receives zero reward. This is the pretrained model baseline. Above that floor, reward increases with accuracy.
|
| 16 |
+
|
| 17 |
+
## Assets
|
| 18 |
+
|
| 19 |
+
Model weights are stored as safetensors:
|
| 20 |
+
|
| 21 |
+
- Pretrained model: `/opt/assets/pretrained/model.safetensors`
|
| 22 |
+
- Fine-tuned models: `/opt/assets/{task}/model.safetensors`
|
| 23 |
+
|
| 24 |
+
All models have the same 391 keys and tensor shapes.
|
| 25 |
+
|
| 26 |
+
## Deliverable
|
| 27 |
+
|
| 28 |
+
Write `/app/output/merge.py`. It must define:
|
| 29 |
+
|
| 30 |
+
```python
|
| 31 |
+
def merge(
|
| 32 |
+
pretrained: dict[str, torch.Tensor],
|
| 33 |
+
experts: dict[str, dict[str, torch.Tensor]],
|
| 34 |
+
unlabeled_dir: str,
|
| 35 |
+
device: str,
|
| 36 |
+
) -> dict[str, torch.Tensor]:
|
| 37 |
+
...
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
The grader calls `merge` once with positional arguments.
|
| 41 |
+
|
| 42 |
+
- `pretrained` is the pretrained state dictionary. Its values are float32 CPU tensors.
|
| 43 |
+
- `experts` maps each of the eight task names to its fine-tuned state dictionary.
|
| 44 |
+
- `unlabeled_dir` contains `unlabeled_dir/{task}/images.npy`. Each file is a `uint8` array with shape `[N, 3, 224, 224]`.
|
| 45 |
+
- `device` is `"cuda"`.
|
| 46 |
+
|
| 47 |
+
Return a dictionary with exactly the same keys and shapes as `pretrained`. Every value must be convertible to a finite float32 tensor. Float32 CPU tensors are the safest form.
|
| 48 |
+
|
| 49 |
+
Only files under `/app/output` are submitted. You may include helper modules or data there. Do not use symbolic links, hard links, special files, or more than 20,000 files. Load bundled files relative to `merge.py` because the grader copies the output directory before running it.
|
| 50 |
+
|
| 51 |
+
## Evaluation
|
| 52 |
+
|
| 53 |
+
For each dataset, the grader loads your returned weights into `CLIPVisionModel`. It applies the frozen CLIP visual projection and the dataset's frozen zero-shot classification head. It then computes top-1 accuracy on hidden labeled images.
|
| 54 |
+
|
| 55 |
+
The heads and projection are available at `/opt/assets/heads.pt`. Hidden labels are not available to your code. The images passed through `unlabeled_dir` are the same images used for scoring, but they have no labels and their order has no meaning.
|
| 56 |
+
|
| 57 |
+
`merge` must return within 1,200 seconds. The full scoring process has a 1,800 second limit. A missing file, import error, exception, timeout, wrong key or shape, non-finite value, or invalid submitted tree receives zero reward.
|
| 58 |
+
|
| 59 |
+
## Development data
|
| 60 |
+
|
| 61 |
+
Use:
|
| 62 |
+
|
| 63 |
+
- `/app/data/dev/{task}/images.npy`
|
| 64 |
+
- `/app/data/dev/{task}/labels.npy`
|
| 65 |
+
- `/app/data/dev/{task}/classes.json`
|
| 66 |
+
- `/app/data/dev_unlabeled/{task}/images.npy`
|
| 67 |
+
- `/app/eval_dev.py`
|
| 68 |
+
|
| 69 |
+
Run:
|
| 70 |
+
|
| 71 |
+
```bash
|
| 72 |
+
/usr/bin/python3 /app/eval_dev.py
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
The development and hidden rows are separate halves of the same test splits. Pixel-exact duplicates were removed from the hidden half.
|
| 76 |
+
|
| 77 |
+
## Environment
|
| 78 |
+
|
| 79 |
+
The grading machine has one NVIDIA H100 80 GB GPU, 8 physical CPU cores, 64 GiB RAM, a 300 GB disk, and no internet access. PyTorch, Transformers, Datasets, Safetensors, NumPy, and Pillow are installed.
|
| 80 |
+
|
| 81 |
+
The input state dictionaries use about 11 GB of host memory before `merge` starts. The output tree is read-only during grading. Write temporary files to the process working directory.
|
| 82 |
+
|
| 83 |
+
CPU library threads default to one. Random seeds and deterministic settings are fixed. TF32 is disabled. The hidden evaluation uses the same settings on every run.
|
tasks/ties-merging-clip-vitl14-eight-task-merge/task.toml
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.4"
|
| 2 |
+
artifacts = [ "/app/output",]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "bespokelabs/ties-merging-clip-vitl14-eight-task-merge"
|
| 6 |
+
version = "1.0.0"
|
| 7 |
+
description = ""
|
| 8 |
+
keywords = [ "autoresearch", "machine-learning", "benchmark",]
|
| 9 |
+
[[task.authors]]
|
| 10 |
+
name = "Bespoke Labs"
|
| 11 |
+
|
| 12 |
+
[metadata]
|
| 13 |
+
category = "Machine Learning and AI"
|
| 14 |
+
subcategory = "Computer vision"
|
| 15 |
+
task_objective = [ "Implement", "Optimize",]
|
| 16 |
+
artifact_type = [ "Single script or program", "Generated output artifact",]
|
| 17 |
+
expert_time_estimate_hours = 6.0
|
| 18 |
+
|
| 19 |
+
[verifier]
|
| 20 |
+
timeout_sec = 7200.0
|
| 21 |
+
environment_mode = "separate"
|
| 22 |
+
collect = []
|
| 23 |
+
|
| 24 |
+
[verifier.env]
|
| 25 |
+
|
| 26 |
+
[agent]
|
| 27 |
+
network_mode = "allowlist"
|
| 28 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 29 |
+
timeout_sec = 21600.0
|
| 30 |
+
|
| 31 |
+
[environment]
|
| 32 |
+
network_mode = "allowlist"
|
| 33 |
+
allowed_hosts = [ "deb.debian.org", "security.debian.org", "archive.ubuntu.com", "security.ubuntu.com", "developer.download.nvidia.com", "packages.cloud.google.com", "raw.githubusercontent.com", "nodejs.org", "registry.npmjs.org", "downloads.claude.ai", "api.openai.com", "api.anthropic.com",]
|
| 34 |
+
build_timeout_sec = 14400.0
|
| 35 |
+
os = "linux"
|
| 36 |
+
cpus = 8
|
| 37 |
+
memory_mb = 65536
|
| 38 |
+
storage_mb = 307200
|
| 39 |
+
gpus = 1
|
| 40 |
+
gpu_types = [ "H100",]
|
| 41 |
+
mcp_servers = []
|
| 42 |
+
|
| 43 |
+
[environment.env]
|
| 44 |
+
|
| 45 |
+
[solution.env]
|
tasks/vas-maskless-deployment-feasibility/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Guiding a frozen MDP policy with a validity mask
|
| 2 |
+
|
| 3 |
+
*Category: Model training. Subcategory: Predictive modeling.*
|
| 4 |
+
|
| 5 |
+
We want to play MiniDungeon - a game featuring a player interacting with a small deterministic grid-world. MiniDungeon consists of a 14×14 tile grid stacked to have 5 floors, with 24 discrete possible actions (move, mine, craft, drink, descend, rest, …) and 27 weighted achievements that determine the reward for an episode. The policy sees only a 514-value observation vector consisting of a 5×5 tile window centered on the current position of a player, plus 14 inventory and status counters. At each state of the game, some subset of the 24 actions are valid, but the player is not told which actions are valid outright. The task provides 1.1 million recorded steps from a frozen policy. The objective is to predict the validity of the actions given an observation in such a way that masking the frozen policy accordingly results in maximum reward. One may start by training a separate validity predictor for each action. Further gains may come from sharing spatial patterns across actions and changing decision thresholds for unfamiliar states.
|
tasks/vas-maskless-deployment-feasibility/instruction.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Supply the validity mask a mask-trained policy acts under
|
| 2 |
+
|
| 3 |
+
MiniDungeon is a procedurally generated dungeon crawler with 24 discrete actions. Before each
|
| 4 |
+
choice, the policy needs a Boolean mask that marks which actions the environment will accept.
|
| 5 |
+
During training, the policy received the true mask and ignored invalid actions by setting their
|
| 6 |
+
logits to `-inf`. That mask is not available at deployment. Build a predictor to replace it.
|
| 7 |
+
|
| 8 |
+
## Submission requirements
|
| 9 |
+
|
| 10 |
+
Ship `/app/output/predictor.py` defining `class MaskPredictor` with exactly these three
|
| 11 |
+
entry points:
|
| 12 |
+
|
| 13 |
+
```python
|
| 14 |
+
class MaskPredictor:
|
| 15 |
+
def __init__(self, artifacts_dir: str): ...
|
| 16 |
+
def reset(self, first_obs: np.ndarray) -> None: ...
|
| 17 |
+
def predict(self, obs: np.ndarray) -> np.ndarray: ...
|
| 18 |
+
```
|
| 19 |
+
|
| 20 |
+
- `predict` must return a `numpy` array of `dtype=bool` and shape `(24,)`. `True` leaves that
|
| 21 |
+
action available to the policy; `False` forces its logit to `-inf`.
|
| 22 |
+
- `obs` is a C-contiguous `float32` array of shape `(514,)`, the same vector the frozen policy
|
| 23 |
+
consumes, and the only input you get.
|
| 24 |
+
- `artifacts_dir` is the directory `predictor.py` was loaded from, so anything you save next to
|
| 25 |
+
it is available to `__init__`.
|
| 26 |
+
- Only `/app/output/` is writable, and only what is under it carries over to the evaluation run:
|
| 27 |
+
`predictor.py` plus every weight, table, or config it loads.
|
| 28 |
+
- Your deliverable directory is placed first on `sys.path`, so it may ship helper modules, but it
|
| 29 |
+
must not depend on anything you leave elsewhere.
|
| 30 |
+
- There is no network.
|
| 31 |
+
|
| 32 |
+
## Scoring
|
| 33 |
+
|
| 34 |
+
The reference policy is deployed on a sealed set of held-out MiniDungeon maps you have never
|
| 35 |
+
seen, one episode per map, 500 steps each. Each episode calls `reset` with the episode's first
|
| 36 |
+
observation, then `predict` once per step; the first `predict` call of an episode receives that
|
| 37 |
+
same first observation. At every step your mask is applied to the policy's logits, an action is
|
| 38 |
+
sampled from the resulting distribution with a pinned RNG stream, and the environment is stepped.
|
| 39 |
+
Rewards are per-step achievement rewards, tiered 1 / 3 / 5 / 8, with a theoretical maximum of 98
|
| 40 |
+
in one episode.
|
| 41 |
+
|
| 42 |
+
- Metric: mean episode return over the sealed episodes.
|
| 43 |
+
- Direction: maximize. Higher is strictly better, with no cutoff at which further improvement
|
| 44 |
+
stops mattering.
|
| 45 |
+
- Baseline: a trivial predictor (a constant mask, or one that ignores the observation) earns 0.
|
| 46 |
+
Anything worse also earns 0.
|
| 47 |
+
- Determinism: the maps, the environment, and the action-sampling stream are all pinned, and
|
| 48 |
+
`OMP_NUM_THREADS=1`, so a fixed submission gets the same score every time.
|
| 49 |
+
|
| 50 |
+
## What you are given
|
| 51 |
+
|
| 52 |
+
Every path listed here is read-only, and all of them are present at grade time with
|
| 53 |
+
byte-identical content at the same paths.
|
| 54 |
+
|
| 55 |
+
- `/app/policy_weights.npz` and `/app/reference_policy.py`: the frozen policy.
|
| 56 |
+
`ReferencePolicy` loads the weights and exposes `logits(obs) -> (24,) float32`,
|
| 57 |
+
`logits_batch(obs) -> (N, 24)`, and `masked_probs(obs, mask) -> (24,) float32`. This is the same
|
| 58 |
+
code and the same weights the evaluation harness uses to produce the logits your mask is
|
| 59 |
+
applied to.
|
| 60 |
+
- `/app/mdobs.py`: the observation encoder, and the authoritative description of the 514-d
|
| 61 |
+
layout: 500 dims of a 5x5 tile view centered on the player (per tile, 16 one-hot block channels
|
| 62 |
+
then 4 mob/item flag bits, tile-major, row-major), followed by 14 inventory and status dims.
|
| 63 |
+
Its `build_obs_batch(crop_block, crop_flags, extras_raw)` is the function that produced every
|
| 64 |
+
observation you will ever be given.
|
| 65 |
+
- `/app/data/train_traj.npz` and `/app/data/val_traj.npz`: trajectory banks recorded by rolling
|
| 66 |
+
the frozen policy out on visible maps, 964843 and 121752 steps respectively, disjoint from
|
| 67 |
+
each other and from the evaluation maps. Both hold:
|
| 68 |
+
|
| 69 |
+
| key | dtype, shape | meaning |
|
| 70 |
+
| --- | --- | --- |
|
| 71 |
+
| `crop_block` | uint8 `(N, 25)` | per-tile block id of the 5x5 view |
|
| 72 |
+
| `crop_flags` | uint8 `(N, 25)` | per-tile flag bits of the 5x5 view |
|
| 73 |
+
| `extras_raw` | uint16 `(N, 12)` | the raw inventory/status counters |
|
| 74 |
+
| `valid` | bool `(N, 24)` | the oracle's validity mask at that state |
|
| 75 |
+
| `mask_used` | bool `(N, 24)` | the mask the policy actually acted under at that state |
|
| 76 |
+
| `action` | uint8 `(N,)` | the action sampled |
|
| 77 |
+
| `reward` | uint8 `(N,)` | the reward that step produced |
|
| 78 |
+
| `episode` | uint16 `(N,)` | episode index; rows are in step order within an episode |
|
| 79 |
+
| `episode_seed` | int64 `(E,)` | the map seed of each episode |
|
| 80 |
+
|
| 81 |
+
- Pass the first three arrays for a set of rows through `build_obs_batch` to get the exact
|
| 82 |
+
`(N, 514)` float32 observations.
|
| 83 |
+
- `mask_used` equals `valid` on some episodes and is a corrupted version of it on others.
|
| 84 |
+
- The MiniDungeon implementation itself (its map generator, transition function, and validity
|
| 85 |
+
rules) is not provided, and there is no simulator you can step.
|
| 86 |
+
|
| 87 |
+
## Budgets and failure
|
| 88 |
+
|
| 89 |
+
- `__init__` must return within **600 seconds** of wall clock. Exceeding it, raising, or
|
| 90 |
+
failing to import scores 0 for the whole submission.
|
| 91 |
+
- Per episode, the cumulative wall clock spent inside `reset` plus all `predict` calls for that
|
| 92 |
+
episode must stay under **2.0 seconds**, an average of 4 ms per step. Exceeding it ends that
|
| 93 |
+
episode, keeps the return accumulated so far, and then **terminates the predictor process, so
|
| 94 |
+
every remaining episode contributes 0**.
|
| 95 |
+
- The whole evaluation run is capped at **1500 seconds**; episodes not reached contribute 0.
|
| 96 |
+
- A `predict` call that raises, or returns anything that is not a bool array of shape `(24,)`,
|
| 97 |
+
ends that episode and keeps the return accumulated so far; the process keeps running and the
|
| 98 |
+
next episode starts normally. If the predictor process dies on its own, every remaining episode
|
| 99 |
+
contributes 0.
|
| 100 |
+
- An all-`False` mask is replaced by a forced no-op for that step.
|
| 101 |
+
|
| 102 |
+
## Environment
|
| 103 |
+
|
| 104 |
+
- Installed packages: `numpy`, `scipy`, `scikit-learn`, CPU `torch`.
|
| 105 |
+
- Hardware: 8 CPUs, no GPU, 14 GB of memory.
|
| 106 |
+
- No network access.
|
tasks/vas-maskless-deployment-feasibility/task.toml
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.4"
|
| 2 |
+
artifacts = [ "/app/output",]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "bespokelabs/vas-maskless-deployment-feasibility"
|
| 6 |
+
version = "1.0.0"
|
| 7 |
+
description = ""
|
| 8 |
+
keywords = [ "autoresearch", "machine-learning", "benchmark",]
|
| 9 |
+
[[task.authors]]
|
| 10 |
+
name = "Bespoke Labs"
|
| 11 |
+
|
| 12 |
+
[metadata]
|
| 13 |
+
category = "Model Training and ML Infrastructure"
|
| 14 |
+
subcategory = "Reinforcement learning"
|
| 15 |
+
task_objective = [ "Implement", "Optimize",]
|
| 16 |
+
artifact_type = [ "Single script or program", "Generated output artifact",]
|
| 17 |
+
expert_time_estimate_hours = 3.0
|
| 18 |
+
|
| 19 |
+
[verifier]
|
| 20 |
+
timeout_sec = 2400.0
|
| 21 |
+
environment_mode = "separate"
|
| 22 |
+
collect = []
|
| 23 |
+
|
| 24 |
+
[verifier.env]
|
| 25 |
+
|
| 26 |
+
[verifier.environment]
|
| 27 |
+
network_mode = "no-network"
|
| 28 |
+
build_timeout_sec = 3600.0
|
| 29 |
+
os = "linux"
|
| 30 |
+
cpus = 8
|
| 31 |
+
memory_mb = 14336
|
| 32 |
+
storage_mb = 153600
|
| 33 |
+
gpus = 0
|
| 34 |
+
mcp_servers = []
|
| 35 |
+
|
| 36 |
+
[verifier.environment.env]
|
| 37 |
+
|
| 38 |
+
[agent]
|
| 39 |
+
network_mode = "allowlist"
|
| 40 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 41 |
+
timeout_sec = 14400.0
|
| 42 |
+
user = "agent"
|
| 43 |
+
|
| 44 |
+
[environment]
|
| 45 |
+
network_mode = "allowlist"
|
| 46 |
+
allowed_hosts = [ "api.openai.com", "api.anthropic.com",]
|
| 47 |
+
build_timeout_sec = 3600.0
|
| 48 |
+
os = "linux"
|
| 49 |
+
cpus = 8
|
| 50 |
+
memory_mb = 14336
|
| 51 |
+
storage_mb = 153600
|
| 52 |
+
gpus = 0
|
| 53 |
+
mcp_servers = []
|
| 54 |
+
|
| 55 |
+
[environment.env]
|
| 56 |
+
|
| 57 |
+
[solution.env]
|