Faster Shellsort with Reinforcement Learning
Update NeurIPS 2026 submission Ym8pFbqtzJ: 9 notes
@openreview[bot] · 2026-11-24 15:52 UTC · e9fb87c7cee8 ·
reviews/openreview/ym8pfbqtzj/notes/0zntimpdvi.json added
+++ b/reviews/openreview/ym8pfbqtzj/notes/0zntimpdvi.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "0znTimPDVi",+ "replyTo": "wr230sxp6d",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer BtjL - Part [3/3]",+ "comment": "### W1: Adding families is enumeration rather than genuine generalization.\n\nThe paper targets a different form of generalization than zero-shot transfer to arbitrary unseen structures. Genuine generalization in our setting is achieved through the deployment process: the policy learns the recurring structure of a stable distribution from representative samples and applies that specialization to future inputs from the same distribution. So the relevant question is therefore whether the method can specialize to the structure the deployment actually encounters. Our experiments show that the answer is yes.\n\nThe 13 families are not meant to enumerate every real workload. They serve as structural probes spanning qualitatively different kinds of disorder, such as random, local, reversed, block-structured, periodic, bitonic, and duplicate-heavy inputs. A deployment only needs representative data from its own distribution; nevertheless, we find that our model is also **capable of covering a variety of families cheaply**. Table R2 showed that performance on the already-covered families is preserved as the training set expands; we now examine whether the newly added families are learned successfully as well.\n\n**Table R3: the six Appendix C distributions, unseen vs. trained (improvement on the best classical\nsequence).**\n\n|family|unseen (App. C)|trained, N=256|trained, N=4,096|\n|-|-|-|-|\n|rotated|+144.9%|-27.1%|-24.2%|\n|sqrt_sorted|+35.2%|-57.7%|-49.7%|\n|mostly_equal|+4.2%|-29.4%|-33.6%|\n|zipf|+10.9%|-0.4%|-4.9%|\n|organ_reversed|-10.2%|-10.3%|-14.2%|\n|anti_shellsort|+10.8%|+8.7%|+2.7%|\n\nThe 7-family policy wins on 1 of the 6 Appendix C distributions when they are unseen, but after training on them, 4 more of the 6 beat the best classical sequence, at both scales. `anti_shellsort` is the one remaining loss, at +8.7% (N=256) and +2.7% (N=4096). It is adversarially constructed, injecting inversions at exactly Sedgewick's gap distances. Training narrows the gap but does not close it, and it narrows further with N.\n\nAs Tables R2 and R3 show, a single model can be trained to cover additional families at small capacity cost, while providing strong performance on the original and new families.\n\nPreliminary analysis indicates that the policy reuses a small number of recurring schedule regimes rather than learning one distinct strategy per family: the 13 families still fall into roughly the same dense, aggressive, and minimal regimes identified in Table 4. Although we do not use this to establish generalization to unseen structures, it suggests that coverage can expand without the number of distinct strategies growing one-for-one with the number of families. That is the flexibility the method offers: not automatic handling of unseen structures, but the ability to absorb the structures a deployment needs at a measured and, in these experiments, small cost.\n\n### W2: Independent policies are trained per N; could a single policy generalize across N?\n\nA single policy shared across N is not demonstrated, and we will not claim it.\n\nWhat we can say is that the formulation is already scale-relative by construction: inversion *rates*\nrather than counts, previous gap normalized by N, passes remaining normalized by the budget, and\nreward normalized by N log2 N. The learned behaviour is correspondingly consistent across sizes.\nSchedules lengthen with N, but the ordering across families is preserved at every size, with the\nflat-spectrum families `random` and `many_duplicates` receiving the most passes at every N and\n`sawtooth` the fewest (Table 8). Table R1 shows identical hyperparameters converging at all 8\nsizes.\n\nWhat prevents literal weight sharing is concrete: the state has ⌈log₂N⌉+3 dimensions and the\ncandidate set 27–74 entries, so both the input and the action dimension change with N. Padding\nto a fixed maximum, or a size-conditioned encoder with a shared action parameterization, is a\npromising extension for future work.\n\nOur intended deployment setting, as we also clarified\nin our response to Reviewer FkKJ, is one with a stable target distribution, where the policy is trained for the sizes that system sorts.\n\n### Changes for the final version\n\nAll three studies above will be added to the final version. The single policy shared across N will be included as future work."+ },+ "createdAt": "2026-07-29T08:16:37.646Z",+ "modifiedAt": "2026-11-19T16:58:43.413Z",+ "url": "https://openreview.net/forum?id=Ym8pFbqtzJ¬eId=0znTimPDVi",+ "license": "CC-BY-4.0"+}
reviews/openreview/ym8pfbqtzj/notes/0zvuq3jwfo.json added
+++ b/reviews/openreview/ym8pfbqtzj/notes/0zvuq3jwfo.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "0ZVUQ3JwFo",+ "replyTo": "wr230sxp6d",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer BtjL - Part [2/3]",+ "comment": "### Q3: How many families can be added while still outperforming the baseline?\n\nDoes one policy get worse at the families it already covers as it is\nasked to hold more? At N=256, we fix a core of four families, train on that core plus 0, 3, 6 or 9 additional families, and\nalways evaluate on the same core four. The additions are nested rather than independently resampled, so comparisons across training-set sizes are not confounded by arbitrary differences between unrelated random subsets. The additions are drawn from an expanded universe of\n13, the paper's 7 plus the six Appendix C distributions. We ran this with three cores, 10 seeds each. Core **A** was chosen deliberately, one family per strategy regime in Table 4: `random`,\n`reversed`, `nearly_sorted`, `interleaved`. Core **B** was sampled uniformly at random from the\n13, as a check that the result does not depend on a deliberate choice; the draw gave\n`organ_reversed`, `random`, `rotated` and `sqrt_sorted`. Core **C** is core B with `rotated`\nreplaced by `pipe_organ`, a deliberate substitution we made after seeing core B's result, to test\nwhether the cost there was specific to `rotated`.\n\n**Table R2: cost of covering additional families (mean improvement on the best classical sequence\nover the four core families, 10 seeds).**\n\n|trained on|core A|core B|core C|\n|-|-|-|-|\n|core only (4 families)|-15.41%|-25.66%|-20.15%|\n|core + 3 (7 families)|-15.51%|-24.99%|-20.12%|\n|core + 6 (10 families)|-15.34%|-23.26%|-19.58%|\n|core + 9 (13 families)|-15.14%|-22.97%|-19.44%|\n|drift|**+0.27** (SE 0.29)|**+2.69** (SE 0.46)|**+0.71** (SE 0.15)|\n\nNine additional families cost +0.27 points on core A, which its standard error of 0.29 makes\nindistinguishable from zero, and +0.71 on core C, against margins of -15% and -20% respectively.\nOn core B the cost is +2.69 points, and **`rotated` accounts for +7.59 of it\non its own**; the other three members contribute +1.73, +1.35 and +0.10. Replacing `rotated` with\n`pipe_organ` and changing nothing else removes about three quarters of that cost, which is what\ncore C establishes.\n\n`rotated` is the family Appendix C identifies as our hardest case, and even after nine other\nfamilies are added alongside it, it still beats the best classical sequence by 24.7%.\n\nSo the cost of covering more families is well under a point per nine families in the ordinary\ncase, with one structurally distinctive family accounting for the rest. Individual families do\nmove: on core A `interleaved` loses 2.69 points while `reversed` gains 1.78, and the mean is flat\nbecause those cancel. On all three cores the evaluated families still beat the best classical\nsequence by more than 15% while one network covers 13 families.\n\nHaving one policy cover multiple structures at once is a stricter test than deployment requires; a system with\na stable target distribution trains on that distribution alone, so it doesn't face this constraint. We\nmeasured the harder all-at-once case because it is what establishes that a single policy can cover many families."+ },+ "createdAt": "2026-07-29T08:16:13.137Z",+ "modifiedAt": "2026-11-19T16:58:43.394Z",+ "url": "https://openreview.net/forum?id=Ym8pFbqtzJ¬eId=0ZVUQ3JwFo",+ "license": "CC-BY-4.0"+}
reviews/openreview/ym8pfbqtzj/notes/5semkbtwnp.json added
+++ b/reviews/openreview/ym8pfbqtzj/notes/5semkbtwnp.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "5SeMKBtWnP",+ "replyTo": "GeEdXWVyN3",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer hpsu - Part [1/2]",+ "comment": "We thank the reviewer, and particularly for W2. The sequential adaptivity vs. cheap deployment tension you raise sharpened our own framing, and we have separated\nthe two paths explicitly below.\n\n### W1 + W2: Sequential adaptivity and cheap deployment are in contention.\n\nThey serve different roles, and we should have separated them explicitly. There are three operating points:\n\n- **Stable, homogeneous target distribution.** Run the policy offline, compile its schedule into\n the sort routine, ship a static Shellsort with zero runtime overhead. This is our intended deployment setting (as we also clarified in our response to Reviewer FkKJ).\n- **Heterogeneous or unstable stream.** A one-shot fingerprint-conditioned classifier selecting among extracted schedules, at -9.0% to -10.1% vs. Sedgewick (Table R4 below), the cheapest being a\n single decision tree, and none of them requiring oracle information. The classifier is essentially the distilled version of the policy.\n- **Running the full policy per sort.** The extreme configuration that demonstrates the overhead if not reusing gap sequences, and we use that result to suggest against this deployment.\n\nOur intended deployment setting is a stable target distribution. Once the policy is trained on representative inputs, then the resulting sequence can be extracted and compiled in place of the standard Shellsort gaps. The deployed artifact is therefore an ordinary static Shellsort, with no fingerprint computation or neural inference at runtime; the only difference is that the gap sequence is specialised to the workload, and the policy simply serves as an offline mechanism for discovering that schedule.\n\nBecause the target distribution is stable, the extracted schedule continues to match the input distribution seen at deployment, so the comparison-count benefit persists completely without rerunning the policy. The policy is used only to discover the right schedule for that workload; once the schedule is compiled, the model can be discarded. The one-shot classifiers are included in the paper to isolate how much of that schedule's quality can be recovered from the input fingerprint/spectrum and how much requires sequential adaptation. The RL policy learns more from the sequential gap selection process, thus achieving additional margin.\n\nTherefore, in our intended deployment, both sequential adaptivity (gaps selected by RL policy with max gain) and cheap deployment (with stable distribution) will be achieved in tandem, and that is the exact goal of this paper.\n\n### W1: The introduction and abstract do not convey the overhead.\n\nThe practical deployment we are targeting does *not* include running the full policy per sort, but rather uses the policy offline to discover the specialized gap schedule for a stable target distribution. Once the gap schedule is extracted from the policy and deployed, there is *no additional overhead at runtime* compared to ordinary Shellsort. We will make this distinction clearer in the abstract and introduction.\n\n### Q1: The fixed-sequence comparison is not compared head-to-head against the one-shot classifiers in Table 9, and we cannot rely on an oracle.\n\nAgreed that an oracle cannot be assumed, and one clarification is worth making: of the adaptive\nbaselines in Table 9, only the Lookup row uses oracle family information. The random forest (-10.1%),\nXGBoost (-9.8%) and decision tree (-9.0%) all classify from the observed fingerprint alone.\n\nThe comparison the reviewer asks for was split across Tables 3 and 9, which use different\nevaluation arrays. We therefore re-ran all methods on the same held-out N=256 arrays, 30 per\nfamily, against the same Sedgewick baseline:\n\n**Table R4: head-to-head matched comparison with N=256 (merging ablation #7 into Table 9).**\n\n| method | comparisons | vs. Sedgewick | oracle? |\n|---|---|---|---|\n| Sedgewick | 1,964 | 0.0% | - |\n| One global fixed sequence (from ablation #7) | 1,913 | -2.6% | n/a |\n| Decision tree | 1,787 | -9.0% | no |\n| XGBoost | 1,771 | -9.8% | no |\n| Random forest | 1,766 | -10.1% | no |\n| Oracle family lookup | 1,726 | -12.1% | yes |\n| Full sequential RL policy | 1,677 | **-14.6%** | no |\n\nThe main takeaway is that one global learned sequence is beaten by every fingerprint-conditioned classifier, which is the\ncleanest statement that the gain comes from conditioning on the input. In the final version we will present this as a\nsingle table."+ },+ "createdAt": "2026-07-29T08:26:18.697Z",+ "modifiedAt": "2026-11-19T16:58:43.362Z",+ "url": "https://openreview.net/forum?id=Ym8pFbqtzJ¬eId=5SeMKBtWnP",+ "license": "CC-BY-4.0"+}
reviews/openreview/ym8pfbqtzj/notes/ntabm6smgp.json added
+++ b/reviews/openreview/ym8pfbqtzj/notes/ntabm6smgp.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "ntABM6smGp",+ "replyTo": "QgkVCh1EIe",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer hpsu",+ "content": {+ "comment": "Thanks to the authors. W3, Q1 and Q2 are resolved from my side, and the compiled-schedule framing does address the runtime-overhead objection. I accept that for a fixed sequence, fewer comparisons mean less sorting work. My concern is rather the magnitude: subtracting the overhead column from the policy column in Table 5 gives sorting time alone, and at N=16,384 that is 1.98 − 1.43 = 0.55 ms against Sedgewick's 0.592 ms, roughly −7% against a −16.3% comparison gain (please correct me if I am misreading this). I consider that a small improvement, and it should be conveyed more clearly given that the 15–16% comparison metric is bolded in the abstract. I am keeping my score at 4: the framing and analysis behind the method are a real contribution, but the practical significance is modest, and that is already reflected in my score."+ },+ "createdAt": "2026-08-03T13:02:19.979Z",+ "modifiedAt": "2026-11-19T16:58:43.420Z",+ "url": "https://openreview.net/forum?id=Ym8pFbqtzJ¬eId=ntABM6smGp",+ "license": "CC-BY-4.0"+}
reviews/openreview/ym8pfbqtzj/notes/qgkvch1eie.json added
+++ b/reviews/openreview/ym8pfbqtzj/notes/qgkvch1eie.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "QgkVCh1EIe",+ "replyTo": "5SeMKBtWnP",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer hpsu - Part [2/2]",+ "comment": "### W3: Per-family generation parameters are not specified.\n\nThe reviewer is right that these determine each family's disorder spectrum, and they should have\nbeen in the paper. Taken from our generators:\n\n**Table R5: input family construction.**\n\n| family | parameters |\n|---|---|\n| random | none (uniform random permutation) |\n| nearly_sorted | `frac = 0.05` (5% of positions randomly permuted) |\n| reversed | `swap_frac = 0.02`, `window = 8` (local swaps on a descending array) |\n| interleaved | `num_blocks ∈ {3,4,5,6,8}`, **resampled per array** |\n| pipe_organ | `peak ~ U[0.35N, 0.65N]`, **resampled per array** |\n| sawtooth | `teeth ∈ {4,6,8,10}`, **resampled per array** |\n| many_duplicates | `unique_frac = 0.1` (~10 copies per distinct value) |\n\nThree families resample a structural parameter per array, so each is a mixture over those values\nrather than a single fixed structure. We will add a more in-depth appendix table in the final version.\n\n### Q2: What distributions do the motivating applications actually see, and does our mixture capture them?\n\nWe take this in two parts, since the reviewer asks both whether the mixture is representative and\nwhether a real workload would be a better test.\n\nOn the first: we intend the thirteen families to serve as structural probes rather than literal models of any\nparticular application. They isolate flat-spectrum randomness, local perturbation, global reversal,\nblock structure, periodic structure, bitonic structure, and repeated values. Setting the structure\nis what makes the central claim checkable, because the spectrum can be computed exactly and tested\nagainst the schedule the policy selects.\n\nMore importantly, the mixture of training families need not capture what any particular embedded system sees: for a stable target distribution the policy trains on that distribution and we compile its schedule for it (see our response to Reviewer FkKJ). Our method only requires that the workload's structure is stable enough to train against, not that we anticipated its structure in advance.\n\nOn whether real systems have the stable input distributions the compiled path assumes: the premise\nthat real input data is not uniformly random is the foundation of the adaptive sorting literature\nthe paper already cites. Estivill-Castro and Wood's survey [1] catalogues measures of presortedness\nprecisely because real inputs carry structure, and Timsort [2] is deployed as a default library sort\non the empirical observation that real data contains runs.\n\nA concrete and documented instance of a system that sorts the same distribution repeatedly is\nmolecular dynamics. LAMMPS [3] spatially re-sorts the atom array during every simulation run\n(`atom_modify sort`, every 1000 timesteps by default) to improve cache locality, with a reported\nspeed-up of up to 3–4x [4]. Between two such sorts the atoms have moved a bounded distance set by the\ntimestep and temperature, so each sort receives a nearly-sorted array whose disorder distribution\nis fixed by the physics of the simulation and does not change over the run. The same sort is\nexecuted thousands of times against the same distribution, which is exactly the amortization\nregime the compiled path assumes: the one-time schedule-extraction cost is negligible, and the\nshipped artifact is a static Shellsort.\n\nThe embedded systems cited in Section 1 have this property for a different reason. A bootloader\nsorts the same kinds of structures at every boot, so its input distribution is fixed by the firmware\nrather than by a varying workload.\n\nOn scope: the contribution is the MDP formulation, the spectrum-schedule relationship it\nestablishes for Shellsort, and the criterion in §7 identifying which other algorithms the\nformulation applies to. We demonstrate this relationship on families whose structure we set. Applying the formulation to a measured real\nworkload is a different kind of result, showing what the method delivers on one system rather than\nestablishing the relationship. That is a study in its own right, and the natural next one.\n\n### Changes for the final version\n\n1. Abstract and Section 1: state the compiled-versus-adaptive distinction up front.\n2. Merge ablation #7 into Table 9 as a single matched head-to-head (Table R4).\n3. New appendix with the generation parameters of Table R5.\n\nWe are glad to expand on any of these during the discussion period.\n\n**References**\n\n[1] Vladimir Estivill-Castro and Derick Wood. A survey of adaptive sorting algorithms. ACM Computing\nSurveys, 24(4):441–476, 1992.\n\n[2] Tim Peters. Timsort, 2002. https://bugs.python.org/file4451/timsort.txt\n\n[3] Thompson et al. LAMMPS: a flexible simulation tool for particle-based materials modeling at the\natomic, meso, and continuum scales. Computer Physics Communications, 271:108171, 2022.\n\n[4] Meloni, Rosati and Colombo. Efficient particle labeling in atomistic simulations. Journal of\nChemical Physics, 126:121102, 2007."+ },+ "createdAt": "2026-07-29T08:30:40.452Z",+ "modifiedAt": "2026-11-19T16:58:43.396Z",+ "url": "https://openreview.net/forum?id=Ym8pFbqtzJ¬eId=QgkVCh1EIe",+ "license": "CC-BY-4.0"+}
reviews/openreview/ym8pfbqtzj/notes/swxfyrarno.json modified
+++ b/reviews/openreview/ym8pfbqtzj/notes/swxfyrarno.json@@ -5,11 +5,12 @@"kind": "meta_review","invitation": "Meta_Review","signature": "Area Chair d2Ar","content": {- "metareview": "The reviewers agree that the paper presents a well-motivated application of reinforcement learning to adaptive Shellsort gap selection, with a clear formulation, thorough experimental evaluation, and honest discussion of its limitations. They particularly appreciate the comprehensive ablations, statistical rigor, and evidence supporting the benefits of sequential adaptive policies. The primary concerns relate to scalability, generalization beyond the training distributions, practical deployment overhead, and the limited methodological novelty. While these issues should be discussed more explicitly in the final version, they do not outweigh the paper's overall contribution. Therefore, I recommend weak acceptance."+ "metareview": "The reviewers agree that the paper presents a well-motivated application of reinforcement learning to adaptive Shellsort gap selection, with a clear formulation, thorough experimental evaluation, and honest discussion of its limitations. They particularly appreciate the comprehensive ablations, statistical rigor, and evidence supporting the benefits of sequential adaptive policies. The primary concerns relate to scalability, generalization beyond the training distributions, practical deployment overhead, and the limited methodological novelty. While these issues should be discussed more explicitly in the final version, they do not outweigh the paper's overall contribution. Therefore, I recommend weak acceptance.",+ "final_justification": "Two out of three reviewers have confirmed their positive ratings after the authors' rebuttal. For the other reviewer, I have found that the authors' rebuttal could address their concerns. Given the overall author response and discussion with reviewers, I keep my weak acceptance recommendation."},"createdAt": "2026-07-23T04:32:19.606Z",- "modifiedAt": "2026-11-18T15:23:02.780Z",+ "modifiedAt": "2026-11-19T05:01:51.739Z","url": "https://openreview.net/forum?id=Ym8pFbqtzJ¬eId=SwxfYrarNo","license": "CC-BY-4.0"}
reviews/openreview/ym8pfbqtzj/notes/wgemn1vemb.json added
+++ b/reviews/openreview/ym8pfbqtzj/notes/wgemn1vemb.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "WgEMn1VEmB",+ "replyTo": "x1AXhYS2ja",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer FkKJ - Part [2/2]",+ "comment": "**W1: Limited novelty (a standard PPO policy applied to gap selection).**\n\nPPO is standard, and deliberately so: we use a conventional training method precisely so that the experiments isolate the formulation rather than the optimizer. Four of the paper's findings are statements about Shellsort rather than about PPO:\n\n- **Ciura's sequence emerges as a special case (§5.4).** Trained only on uniform-random input, 30\n of 30 seeds converge to a dense, Ciura-shaped schedule, statistically tied with Ciura on its own\n input class (MWU p = 0.29).\n- **Identical disorder spectra can require different schedules (§5.3).** Pipe-organ inputs are\n statistically indistinguishable from uniform random on the spectrum, yet the schedule that suits\n them differs sharply. We know of no prior statement of this.\n- **The gain comes from adaptivity (Ablation #7, Table 3).** Replacing the policy with one global\n learned sequence reduces the margin vs Sedgewick from −15.6% to −0.9%.\n- **Spectrum statistics predict schedule statistics (§5.2).** Total disorder energy predicts pass\n count (r = 0.60); the spectrum centroid predicts log₂ of the largest gap (r = 0.65). The\n fingerprint measures a property of the input that predicts the schedule, which is more than an\n encoding chosen to make learning work.\n\nTaken together these establish a principle that applies beyond Shellsort, and it is **carried by\nthe MDP formulation**, not by the choice of learning algorithm. The state is the input's disorder\nspectrum, which follows from the multi-scale view rather than from feature engineering: if a pass\nat gap *h* removes disorder at length scale *h*, the state must measure disorder at each length\nscale. The action selects the next gap, and PPO is a standard solver for that MDP. The formulation\nis what makes input-conditional schedule discovery tractable, and Section 1 lists it among our\ncontributions.\n\nSection 7 states the principle as a test: when an algorithm's parameter encodes a length scale,\nschedule it against the input's disorder spectrum. Multigrid cycle schedules for elliptic PDEs,\nwavelet thresholds and hierarchical Monte Carlo all satisfy that test, and the test is determinate\nenough to exclude algorithms whose parameters carry no scale. We take the formulation, the account\nof Shellsort it produced, and the criterion for where it applies elsewhere, to be the\ncontribution.\n\n**Paper formatting:** the rotated page is Table 8, which exceeds the portrait text width. We will\nreformat it to fit in the revision so that no page requires rotation.\n\n**On clarity:** other than the items discussed here, if you can identify the specific passages that were unclear, we will revise them\nduring this discussion period."+ },+ "createdAt": "2026-07-29T08:37:37.882Z",+ "modifiedAt": "2026-11-19T16:58:43.288Z",+ "url": "https://openreview.net/forum?id=Ym8pFbqtzJ¬eId=WgEMn1VEmB",+ "license": "CC-BY-4.0"+}
reviews/openreview/ym8pfbqtzj/notes/wr230sxp6d.json added
+++ b/reviews/openreview/ym8pfbqtzj/notes/wr230sxp6d.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "wr230sxp6d",+ "replyTo": "5nK7hyWELF",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer BtjL - Part [1/3]",+ "comment": "We thank the reviewer for a careful reading, and particularly for the observation that the\nrestricted-training experiments are informative. That is the design we extended here.\n\nWe ran three new studies during the discussion period: a convergence sweep across all 8 array sizes (**Table R1**, Q1–Q2), a 13-family scaling study (**Table R2**, Q3) and an unseen-versus-trained family coverage test (**Table R3**, Q3/W1).\n\n### Q1 and Q2: action-space growth and convergence\n\nWe answer these together, since the sweep varies the action space along with N.\n\nWe trained with the paper's exact configuration at all 8 array sizes, 5 seeds\nper size, evaluating greedily every 50 updates on fixed held-out set. \"First 95% checkpoint\"\nis the earliest checkpoint whose mean improvement reaches 95% of the best observed at that size.\n\n**Table R1: convergence and action-space size across N (5 seeds, improvement vs. Sedgewick).**\n\n|N|candidate gaps|step 250|step 500|first 95% checkpoint|\n|-|-|-|-|-|\n|128|27|-13.7 ± 0.4%|-13.7 ± 0.2%|150|\n|256|34|-14.0 ± 0.6%|-14.4 ± 0.3%|150|\n|512|41|-14.0 ± 0.8%|-13.9 ± 1.1%|150|\n|1,024|47|-14.0 ± 0.4%|-14.3 ± 0.5%|200|\n|2,048|54|-14.7 ± 0.2%|-15.0 ± 0.2%|200|\n|4,096|60|-14.4 ± 0.2%|-14.9 ± 0.2%|250|\n|8,192|67|-15.4 ± 0.3%|-15.8 ± 0.4%|200|\n|16,384|74|-15.0 ± 0.3%|-15.5 ± 0.2%|250|\n\n**500 updates is sufficient at every N tested, and not necessary.** No size needs more than 250 updates to\nreach 95% of its best value, and halving the budget costs at most +0.5 percentage points anywhere;\nin the paper we held 500 uniform across N for simplicity. The budget does grow with N, but mildly:\n150 updates at the 3 smallest sizes and 200 to 250 at the 5 largest, over a 128x range in array size.\n\nOn Q1 specifically, the paper Table 1 shows that training remains stable across our tested N range, which is opposite to the concern. The candidate set grows 2.7x (27 → 74 gaps) from N=128 to N=16,384, and over that range:\n\n- the margin vs. Sedgewick **improves**, -14.8% to -16.3%, and Table R1 shows the same trend at 5 seeds;\n- across-seed standard deviation in comparisons **halves** as a fraction of the mean, 0.43% to 0.21%;\n- Appendix E shows the geometric candidate set matching the full N/2 action space at N=4,096 (-15.8% for both) at half the training cost, so the discretization reduces cost rather than contributing to the gain.\n\nIf the larger action space were straining exploration we would expect the margin to decay and seed\nvariance to grow with N. Neither occurs."+ },+ "createdAt": "2026-07-29T08:14:24.089Z",+ "modifiedAt": "2026-11-19T16:58:43.399Z",+ "url": "https://openreview.net/forum?id=Ym8pFbqtzJ¬eId=wr230sxp6d",+ "license": "CC-BY-4.0"+}
reviews/openreview/ym8pfbqtzj/notes/x1axhys2ja.json added
+++ b/reviews/openreview/ym8pfbqtzj/notes/x1axhys2ja.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "x1AXhYS2ja",+ "replyTo": "kx4pWgfCxI",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer FkKJ - Part [1/2]",+ "comment": "Thank you for the review. We address the wall-clock question first, since it is your main concern.\n\n**Q: Does the method provide actual end-to-end wall-clock speedups, rather than only reducing\ncomparison counts? (also W2)**\n\nThe answer depends on which artifact is deployed, and we should have made this clearer.\n\nThe overhead reported in Appendix B is measured with the policy running on every sort and **no gap\nschedule reused between sorts**, so the full inference cost is charged to every array. That is the\nmost expensive configuration, and it is not what we propose shipping at these array sizes.\n\nAny reuse of a schedule reduces that cost. Appendix B already proposes the mitigation: distill the\npolicy into a small classifier that reads the same fingerprint and selects among its learned\nschedules. Table 9 measures it: three such classifiers reach −8.7% to −9.3% vs Sedgewick, against\n−14.8% for the full policy, and the cheapest of them is a single decision tree.\n\n**The deployment we intend is a stable target distribution** (§1, “Deployment”), where stability can be established empirically rather than inferred from the disorder spectrum alone. This procedure does not assume that a practitioner can name the distribution, or that inputs with similar spectra must share a schedule. Instead, one trains the policy on representative inputs, evaluates it on held-out inputs from the same workload, and checks whether the selected schedules concentrate around a consistent sequence that preserves the comparison-count advantage, just as §5.4 examines the stability of the schedules recovered on random inputs. Stability is therefore a testable property of the workload-policy pair, not a structural assumption made in advance. When that check succeeds, the sequence can be extracted offline and compiled into the sort routine in place of the existing static gaps. The shipped artifact is then a static Shellsort: the standard sorting loop, using our gap constants rather than a classical sequence’s, with no fingerprint computation or neural inference at runtime. Given a fixed sequence, execution and per-comparison cost are identical regardless of how that sequence was obtained. For this artifact, fewer comparisons therefore mean less sorting work, not merely an improvement in a theoretical proxy.\n\nThe schedule-finding cost is offline and one-time, which is how every baseline in our comparison\nwas produced: Ciura's sequence came from an expensive empirical search, Sedgewick's from\ntheoretical derivation, Tokuda's from formula fitting. None of those search costs are charged to\ntheir runtime, and the schedule our method emits competes with Ciura's on identical terms.\n\nOn realistic workloads: the settings Section 1 motivates are systems that sort structurally\nsimilar inputs repeatedly, where the one-time extraction cost is amortized over the system's\nservice life and the shipped artifact carries no neural component. Our response to Reviewer hpsu\n(Q2) gives documented examples, including a molecular dynamics code that spatially re-sorts its\nparticle array on a fixed schedule throughout every simulation run.\n\nWe will state this distinction explicitly in the abstract and Section 1 rather than leaving it to\nAppendix B."+ },+ "createdAt": "2026-07-29T08:37:01.556Z",+ "modifiedAt": "2026-11-19T16:58:43.293Z",+ "url": "https://openreview.net/forum?id=Ym8pFbqtzJ¬eId=x1AXhYS2ja",+ "license": "CC-BY-4.0"+}