potentialpaper

Refactoring Code Through Library Design

Import NeurIPS 2026 submission dOkgsUfJSn: 6 notes

@openreview[bot] · 2026-11-22 17:58 UTC · 841151eb7f5d

Evidence

.gitattributes added

+++ b/.gitattributes
@@ -0,0 +1,10 @@
+# PDFs and pictures are kept with Git LFS (https://git-lfs.com). With it installed (`git lfs install`),
+# a clone has the files, and `git add` of one stores a pointer. This file is the same on every page.
+/.potentialpaper/*.pdf filter=lfs diff=lfs merge=lfs -text
+/versions/*.pdf filter=lfs diff=lfs merge=lfs -text
+/thumbnail.png filter=lfs diff=lfs merge=lfs -text
+/thumbnail.jpg filter=lfs diff=lfs merge=lfs -text
+/thumbnail.jpeg filter=lfs diff=lfs merge=lfs -text
+/thumbnail.gif filter=lfs diff=lfs merge=lfs -text
+/thumbnail.webp filter=lfs diff=lfs merge=lfs -text
+/thumbnail.avif filter=lfs diff=lfs merge=lfs -text

.potentialpaper/metadata.json added

+++ b/.potentialpaper/metadata.json
@@ -0,0 +1,25 @@
+{
+ "layout": 5,
+ "identifiers": [
+ {
+ "scheme": "openreview",
+ "value": "dOkgsUfJSn"
+ }
+ ],
+ "title": "Refactoring Code Through Library Design",
+ "authors": [
+ "Žiga Kovačič",
+ "Justin T Chiu",
+ "Celine Lee",
+ "Wenting Zhao",
+ "Kevin Ellis"
+ ],
+ "abstract": "Maintainable and general software allows developers to build robust applications efficiently, yet achieving these qualities often requires refactoring specialized solutions into reusable components. This challenge becomes particularly relevant as code agents are increasingly used to solve isolated one-off programming problems. We investigate code agents' capacity to refactor code in ways that support consolidation and reusability. We first investigate what makes a good refactoring, finding via simulation results and a human study that proxies of program size, such as Minimum Description Length, better predict preferable refactorings than extant software engineering metrics, such as Maintainability Index. We then present \\textsc{Librarian}, a method that combines divide-and-conquer with sample-and-rerank to generate reusable libraries.\n We compare \\textsc{Librarian} to state-of-the-art library generation methods, and study it on real-world Python programs.",
+ "year": 2026,
+ "venue": "NeurIPS 2026",
+ "source": "openreview",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}

community/10-tl-dr.md added

+++ b/community/10-tl-dr.md

community/20-summary.md added

+++ b/community/20-summary.md

community/30-why-it-matters.md added

+++ b/community/30-why-it-matters.md

community/40-critique.md added

+++ b/community/40-critique.md

community/50-errata.md added

+++ b/community/50-errata.md

community/60-reproductions.md added

+++ b/community/60-reproductions.md

community/70-follow-ups.md added

+++ b/community/70-follow-ups.md

owners/10-tl-dr.md added

+++ b/owners/10-tl-dr.md

owners/20-overview.md added

+++ b/owners/20-overview.md

owners/30-results.md added

+++ b/owners/30-results.md

owners/40-demos.md added

+++ b/owners/40-demos.md

owners/50-code-and-data.md added

+++ b/owners/50-code-and-data.md

owners/60-talks.md added

+++ b/owners/60-talks.md

prek.toml added

+++ b/prek.toml
@@ -0,0 +1,36 @@
+# Checks run before each commit, with prek (https://prek.j178.dev): `prek install` once in this clone.
+# The site checks every push again; these catch mistakes before you commit. The same on every page.
+
+[[repos]]
+repo = "builtin"
+hooks = [
+ { id = "check-json" },
+ { id = "pretty-format-json", args = ["--autofix", "--no-sort-keys", "--no-ensure-ascii"], exclude = '^demos/' },
+ { id = "end-of-file-fixer", exclude = '^demos/' },
+ { id = "trailing-whitespace", args = ["--markdown-linebreak-ext=md"], exclude = '^demos/' },
+ { id = "check-case-conflict" },
+ { id = "check-illegal-windows-names" },
+ { id = "check-added-large-files", args = ["--maxkb=256"], exclude = '^demos/' },
+]
+
+# Each JSON file against its schema (https://papers.potentialhedge.com/schemas/).
+[[repos]]
+repo = "https://github.com/python-jsonschema/check-jsonschema"
+rev = "0.39.0"
+hooks = [
+ { id = "check-jsonschema", name = "author section plugins files", files = '^owners/plugins\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/authorPlugins.json"] },
+ { id = "check-jsonschema", name = "venue files", files = '^venue\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/venue.json"] },
+ { id = "check-jsonschema", name = "topic files", files = '^topic\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/topic.json"] },
+ { id = "check-jsonschema", name = "organisation files", files = '^org\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/org.json"] },
+ { id = "check-jsonschema", name = "link files", files = '^links/[^/]+\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/link.json"] },
+ { id = "check-jsonschema", name = "version files", files = '^versions/[^/]+\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/version.json"] },
+ { id = "check-jsonschema", name = "picture files", files = '^thumbnail\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/thumbnail.json"] },
+]
+
+# Sections formatted the way the web editor formats them.
+[[repos]]
+repo = "https://github.com/rbubley/mirrors-prettier"
+rev = "v3.9.9"
+hooks = [
+ { id = "prettier", files = '^(owners|community)/.*\.md$' },
+]

reviews/openreview/dokgsufjsn/forms.json added

+++ b/reviews/openreview/dokgsufjsn/forms.json
@@ -0,0 +1,227 @@
+{
+ "schema": "forms/1",
+ "forms": {
+ "Meta_Review": {
+ "label": "Meta-review",
+ "fields": [
+ {
+ "key": "metareview",
+ "label": "Meta-review",
+ "type": "text"
+ }
+ ]
+ },
+ "Decision": {
+ "label": "Decision",
+ "fields": [
+ {
+ "key": "title",
+ "label": "Title",
+ "hidden": true
+ },
+ {
+ "key": "decision",
+ "label": "Decision",
+ "type": "choice"
+ },
+ {
+ "key": "comment",
+ "label": "Comment",
+ "type": "text"
+ },
+ {
+ "key": "metareview",
+ "label": "Meta-review",
+ "type": "text"
+ },
+ {
+ "key": "final_justification",
+ "label": "Final justification",
+ "type": "text"
+ }
+ ]
+ },
+ "Official_Comment": {
+ "label": "Comment",
+ "fields": [
+ {
+ "key": "title",
+ "label": "Title",
+ "type": "choice"
+ },
+ {
+ "key": "comment",
+ "label": "Comment",
+ "type": "text"
+ }
+ ]
+ },
+ "Public_Comment": {
+ "label": "Public comment",
+ "fields": [
+ {
+ "key": "title",
+ "label": "Title",
+ "type": "choice"
+ },
+ {
+ "key": "comment",
+ "label": "Comment",
+ "type": "text"
+ }
+ ]
+ },
+ "Withdrawal": {
+ "label": "Withdrawal",
+ "fields": [
+ {
+ "key": "withdrawal_confirmation",
+ "label": "Confirmation",
+ "hidden": true
+ }
+ ]
+ },
+ "Desk_Rejection": {
+ "label": "Desk rejection",
+ "fields": [
+ {
+ "key": "desk_reject_comments",
+ "label": "Reason",
+ "type": "text"
+ }
+ ]
+ },
+ "Official_Review": {
+ "label": "Official review",
+ "summary": [
+ "rating",
+ "confidence",
+ "quality",
+ "clarity",
+ "significance",
+ "originality"
+ ],
+ "fields": [
+ {
+ "key": "rating",
+ "label": "Rating",
+ "type": "score",
+ "min": 1,
+ "max": 6
+ },
+ {
+ "key": "confidence",
+ "label": "Confidence",
+ "type": "score",
+ "min": 1,
+ "max": 5
+ },
+ {
+ "key": "quality",
+ "label": "Quality",
+ "type": "score",
+ "min": 1,
+ "max": 4
+ },
+ {
+ "key": "clarity",
+ "label": "Clarity",
+ "type": "score",
+ "min": 1,
+ "max": 4
+ },
+ {
+ "key": "significance",
+ "label": "Significance",
+ "type": "score",
+ "min": 1,
+ "max": 4
+ },
+ {
+ "key": "originality",
+ "label": "Originality",
+ "type": "score",
+ "min": 1,
+ "max": 4
+ },
+ {
+ "key": "contribution_type",
+ "label": "Contribution type",
+ "type": "choice"
+ },
+ {
+ "key": "summary",
+ "label": "Summary",
+ "type": "text"
+ },
+ {
+ "key": "strengths_and_weaknesses",
+ "label": "Strengths and weaknesses",
+ "type": "text"
+ },
+ {
+ "key": "questions",
+ "label": "Questions",
+ "type": "text"
+ },
+ {
+ "key": "limitations",
+ "label": "Limitations",
+ "type": "text"
+ },
+ {
+ "key": "final_justification",
+ "label": "Final justification",
+ "type": "text"
+ },
+ {
+ "key": "paper_formatting_concerns",
+ "label": "Formatting concerns",
+ "type": "text"
+ },
+ {
+ "key": "ethical_concerns",
+ "label": "Ethical concerns",
+ "type": "choice"
+ },
+ {
+ "key": "code_of_conduct_acknowledgement",
+ "label": "Code of conduct",
+ "hidden": true
+ },
+ {
+ "key": "responsible_reviewing_acknowledgement",
+ "label": "Responsible reviewing",
+ "hidden": true
+ }
+ ]
+ },
+ "Rebuttal": {
+ "label": "Rebuttal",
+ "fields": [
+ {
+ "key": "rebuttal",
+ "label": "Rebuttal",
+ "type": "text"
+ }
+ ]
+ },
+ "Ethics_Review": {
+ "label": "Ethics review",
+ "fields": [
+ {
+ "key": "scope_of_ethics_concerns",
+ "label": "Scope",
+ "type": "choice"
+ },
+ {
+ "key": "ethics_review",
+ "label": "Ethics review",
+ "type": "text"
+ }
+ ]
+ }
+ },
+ "url": "https://openreview.net/group?id=NeurIPS.cc%2F2026%2FConference",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/dokgsufjsn/notes/29m0fvx5ay.json added

+++ b/reviews/openreview/dokgsufjsn/notes/29m0fvx5ay.json
@@ -0,0 +1,19 @@
+{
+ "schema": "review/1",
+ "id": "29m0FVX5ay",
+ "replyTo": null,
+ "kind": "decision",
+ "invitation": "Decision",
+ "signature": "Program Chairs",
+ "content": {
+ "title": "Paper Decision",
+ "decision": "Accept (poster)",
+ "comment": "",
+ "metareview": "The reviewers agree that the paper addresses an important and timely problem: enabling code agents to refactor collections of programs into reusable libraries rather than producing isolated one-off solutions. Several reviewers viewed the comparison of different refactoring objectives as the paper's most novel conceptual contribution, and appreciated the attempt to extend library learning beyond toy DSLs to real Python repositories.\n\nHowever, the reviewers have raised a number of issues that are critical to the paper's central claims: 1. MDL may not be shown to outperform token count. 2. The gains are not properly attributed. 3. Potential reference-model contamination. Some other minor issues include the statistical and reporting issues as well as the “real-world” evidence being too limited and partly circular.\n******************\nAfter the rebuttal, the central finding is adjusted from MDL specifically to the broader observation that compression-style objectives may outperform traditional software-engineering metrics, while LIBRARIAN remains a relatively straightforward combination of clustering and sample-and-rerank.",
+ "final_justification": "The paper lies right on the borderline of acceptance. I'm leaning towards acceptance, given the support of the reviewers who engaged in the rebutall discussion."
+ },
+ "createdAt": "2026-09-24T11:22:22.453Z",
+ "modifiedAt": "2026-11-18T14:56:08.480Z",
+ "url": "https://openreview.net/forum?id=dOkgsUfJSn&noteId=29m0FVX5ay",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/dokgsufjsn/notes/dz4kd4faqi.json added

+++ b/reviews/openreview/dokgsufjsn/notes/dz4kd4faqi.json
@@ -0,0 +1,32 @@
+{
+ "schema": "review/1",
+ "id": "dZ4kd4FAQI",
+ "replyTo": null,
+ "kind": "review",
+ "invitation": "Official_Review",
+ "signature": "Reviewer ycjB",
+ "content": {
+ "summary": "This paper investigates the problem of automatic code refactoring. They have 4 primary contributions:\n1) MiniCode, a new collection of code refactoring benchmarks.\n2) A refactoring method called LIBRARIAN, which has a plug in for a scoring function for refactorings.\n3) Evaluate how scoring functions (token count, MDL, cyclomatic complexity, maintainability index) work as plug-ins for LIBRARIAN by evaluating the refactorings produced using natural metrics of code re-use (including on hold-out files) and human quality assessment. They found that MDL (measured by a langauge model) is the best objective.\n4) Evaluation of Librarian on benchamrks and real-world datasets (huggingface Transformers and Diffusers libraries): \"the first time library learning has been successfully applied to real-world software projects\".",
+ "contribution_type": "concept_feasibility",
+ "strengths_and_weaknesses": "I've updated the contribution type to match the author's: \"Concept & Feasibility\". I've reconsidered the paper under these criteria and I think my overall assessment stays essentially the same. To me, the essential contribution is identifying that compression-style evaluations (MDL and token count) may predict code reuse and human preferences better than traditional software engineering metrics (maintainability index; cyclomatic complexity). The demonstration on real HuggingFace code can be seen as a solid feasibility demonstration for a \"Concept & Feasibility\" contribution. My initial review flagged the small number of such realistic demonstrations as a weakness, but with the change of contribution type, this is a smaller deal. \n\nReviewers LH6k and Z4hs made a good observation that the current evidence supports MDL ≥ token count but does not separate the two. The authors indicate they will adjust their claims accordingly.\n---\n\n\nStrengths:\n- Addresses a very important problem in a domain of practical relevance, as opposed to prior work focused on simpler settings, e.g., lambda-calculus, as opposed to full scale Python code bases.\n- The evaluation of different re-ranking scores for refactoring quality was well done, with 3 different approaches to validate (in-sample code re-use, out-of-sample code re-use, and human evaluation).\n- Interesting findings (e.g., strong evidence for MDL being a a good proxy assessor for library / refactoring quality; o4-mini beats claude code on small tasks; Librarian can improve over Claude code)\n\nWeaknesses:\n- There are not a lot of tasks in the most interesting/realistic category of tasks (the transformers and diffuser tasks); most tasks are small/competition code; how well the MDL metric generalizes to other realistic tasks is still TBD.\n- 2 of the 3 independent evaluations for refactorings (i.e., used to evaluate the scoring functions) are a priori very related to the scoring functions: code reuse is basically about MDL and token length. The 3rd eval, human eval, is independent, but only applied on the smaller tasks. Maybe you could introduce an LLM evaluator posing as a human (after assessing for correlation to human eval, etc).\n- some methods descriptions are hard to parse.",
+ "quality": 3,
+ "clarity": 3,
+ "significance": 3,
+ "originality": 4,
+ "questions": "- I think the text around equation (2) is too brief and hard to parse. Maybe expand \"sample K candidates\" to \"sample K candidate refactorings\", or explicitly define the SAMPLE_K operator.\n- Line 178: \"while MDL can encourage comments that increase the likelihood of subsequent code\" -- I think \"can\" is doing a lot of work here. 1) I think a lot is dependent on the density of comments in the code the. model is trained on and 2) I'm very skeptical that code with a comment with have lower MDL than same code without the comment. Would be very interesting to see an example of this.\n- Line 157: repetition: \"set of set of\"",
+ "limitations": "Yes - quite a good job identifying limitations.",
+ "rating": 5,
+ "confidence": 3,
+ "ethical_concerns": [
+ "NO or VERY MINOR ethics concerns only"
+ ],
+ "paper_formatting_concerns": "All good.",
+ "code_of_conduct_acknowledgement": "Yes",
+ "responsible_reviewing_acknowledgement": "Yes",
+ "final_justification": "My recommendation remains at 5, even under the change to \"Concept & Feasibility\" for contribution type.\n\nResolved in discussion:\n1. My question on MDL: the authors' constructed example and their restatement are satisfactory.\n2. Attribution of gains to the method rather than extra test-time compute (raised by LH6k and AC): addressed by the compute-matched Claude Code baseline (though curious for reviewer LH6k's take).\n\nUnresolved or partially resolved:\n1. MDL is not shown to outperform token count (Reviewers LH6k and Z4hs). Z4hs's reference-LM contamination point makes this even stronger: MDL scores on HuggingFace tasks come from models that were likely trained on that very code, affecting the MDL-specific result, but not the token count result. I weight this lightly, so long as the authors state their claims accordingly. I think the broader point that compression-style proxies (including simple token count) beat classical SE metrics is interesting in any case.\n\n2. My original weakness #2 seems unresolved to me: two of the three evaluations used to judge the scoring functions (in-sample and held-out code reuse) are very related to the compression-style scoring functions themselves. The third evaluation, the human study, was only applied on the smaller tasks. The authors' response (that reuse is measured on held-out files) seems to address a concern about overfitting, but I'm mainly saying the deck seems stacked to prefer MDL/token length from the choice of evaluations. I weight this moderately: I think it does reduce the strength of evidence that compression proxies are better, and I still think my original suggestion (an LLM evaluator that could scale independent judgment to the realistic tasks) would be worth investigating. As a Concept & Feasibility paper, my recommendation doesn't change."
+ },
+ "createdAt": "2026-06-26T20:42:08.344Z",
+ "modifiedAt": "2026-11-18T13:40:53.076Z",
+ "url": "https://openreview.net/forum?id=dOkgsUfJSn&noteId=dZ4kd4FAQI",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/dokgsufjsn/notes/ewftlkcokm.json added

+++ b/reviews/openreview/dokgsufjsn/notes/ewftlkcokm.json
@@ -0,0 +1,31 @@
+{
+ "schema": "review/1",
+ "id": "EwftLKCoKm",
+ "replyTo": null,
+ "kind": "review",
+ "invitation": "Official_Review",
+ "signature": "Reviewer Z4hs",
+ "content": {
+ "summary": "The paper studies library-design refactoring: given a set of N related files (a \"task\"), produce a shared library L of common abstractions and rewrite the files to use it, while preserving\n correctness (the original unit/integration tests still pass). It makes two moves.\n\n (1) What objective captures a \"good\" refactoring? It compares compression-style objectives — token count and Minimum Description Length (MDL), the latter defined as the negative log-probability of\n the library and refactored programs under a reference language model (Qwen-2.5-3B) — against classical software-engineering metrics (Cyclomatic Complexity, Maintainability Index). Via a\n simulation (running the proposed method under each objective and measuring proxies of library reuse) and a human study (14 participants, 129 pairwise judgments, Bradley–Terry analysis), it argues\n that compression-based metrics, and MDL in particular, align better with reusable libraries and with human preference than CC/MI.\n\n (2) LIBRARIAN. A method combining clustering (divide-and-conquer over the task's files) with sample-and-rerank (sample K candidate refactorings from a backend LLM/agent, keep the test-passing one\n that minimizes the MDL loss). LIBRARIAN is compared to REGAL on the Logo and Date program-synthesis benchmarks (improving downstream pass rate, notably ~+20 points on Logo) and applied to a small\n curated set of real-world HuggingFace Transformers/Diffusers model files (8 tasks total), where it lowers MDL roughly in line with human refactoring and yields more reused library functions than a\n single-pass coding-agent prompt. A U-statistic argument for the Best@k estimator is given in an appendix. The tasks (CodeContests, Transformers, Diffusers, Logo, Date) are assembled into a\n benchmark (\"MiniCode,\" named only in the appendices).",
+ "contribution_type": "general",
+ "strengths_and_weaknesses": "Strengths\n\n - Timely, well-motivated problem. Framing \"refactoring into reusable libraries\" as the unit of study — and connecting it to the rise of code agents that solve one-off problems myopically — is\n genuinely interesting and forward-looking. The work sits at a useful intersection of program synthesis / library learning and practical software engineering.\n - The objective-comparison study is the most original part. Asking which objective captures a good refactoring, and pitting compression-style objectives (tokens, MDL) against classical SE metrics\n (MI, CC), is a clean, novel question. The (admittedly small) finding that classical SE metrics like Maintainability Index align worse with human preference than a compression proxy is interesting\n and somewhat counter-intuitive.\n - Scaling library learning beyond DSLs. Prior library learning (DreamCoder, Stitch/Babble, LILO, Trove, REGAL) is largely confined to λ-calculus / DSLs and small programs. Demonstrating the\n pipeline on real Python from HuggingFace Transformers/Diffusers is a real step, appropriate for a Concept-and-Feasibility contribution.\n - Sensible architecture. Clustering (divide-and-conquer) + sample-and-rerank is a reasonable way to fit large tasks into limited LLM context, and the clustering-coherence analysis (Appendix I) is\n a nice supporting touch.\n - Honesty and some rigor. The cost (~30 min/refactoring) is disclosed, an IRB-approved human study is run, and the Best@k estimator is given a correct U-statistic unbiasedness argument (Appendix\n G).\n\n Weaknesses\n \n W1 — The headline claim (\"MDL captures good refactorings\") is not established over the trivial tokens baseline. The novelty hinges on MDL specifically, but: (a) the human study cannot distinguish\n MDL from tokens (MDL-vs-Tokens preference = 0.56, error bars overlap 0.5 → not significant; only MDL-vs-MI = 0.67 is significant); (b) the in-distribution simulation shows \"little difference\n between MDL and tokens\" (the authors' own words); and (c) the entire case for MDL > tokens rests on held-out-source generalization with effect sizes the paper itself calls \"small.\" Since tokens is\n dramatically simpler and needs no reference LM, the paper needs a powered, direct MDL-vs-tokens comparison to justify its central thesis. As presented, a skeptical reader would adopt tokens. The\n \"Perl golf\" corner case and the Bayesian/MAP argument are qualitative.\n\n W2 — Likely reference-LM contamination undermines the real-world MDL claims (not discussed). MDL is −log p_LM(L) − Σ log p_LM(ρ'_n | L) under Qwen-2.5-3B, which was almost certainly trained on the\n public HuggingFace Transformers/Diffusers source. So \"MDL-minimizing\" HF refactorings may be regressing toward the LM's memorized canonical HF code. This plausibly explains why LIBRARIAN \"matches\n human coders\" on MDL — it may be matching code the LM already memorized. The cross-LM 84.2% agreement does not address contamination, since Llama/DeepSeek/Mistral were likely all trained on HF\n too. This confound directly threatens the interpretability of the flagship real-world result and is not acknowledged anywhere.\n\n W3 — Real-world evaluation is small, curated, and intrinsic-only. The real-world headline rests on 8 tasks total (Transformers: 15 files / 3 tasks; Diffusers: 17 files / 5 tasks), with Transformer\n files \"manually chose[n]\" (Appendix C) → selection bias. Evaluation is intrinsic: MDL reduction and library-reuse counts. But reuse is essentially the optimization target, so \"MDL-optimized\n libraries have higher reuse\" is partly circular — the objective rewards compression/reuse and the proxy measures reuse. There is no independent criterion (human judgment, downstream\n maintainability, functional benefit) showing the HF libraries are actually better rather than merely smaller and test-passing. This contradicts the paper's own Section 6 thesis that size alone is\n insufficient.\n\n W4 — No ablation attributes the gains. LIBRARIAN bundles clustering, tuple grouping, sample-and-rerank, the MDL rerank, and an incremental variant (Appendix A). For the REGAL comparison (Table 3)\n the authors \"keep their setup the same and only augment training using sample + MDL rerank,\" so the ~+20-point Logo gain could come from MDL, from sample-and-rerank, from clustering, or simply\n from added test-time compute (K samples). No ablation isolates these (e.g., sample-and-rerank with token-rerank vs MDL-rerank; with/without clustering). Without attribution, the conceptual claim\n that MDL is what matters is not supported by the strongest empirical win in the paper.\n\n W5 — Statistics are confusingly reported and partly questionable. Appendix F writes \"MDL significantly outperforming MI (p = 0.67, 95% CI [0.56, 0.78]).\" 0.67 is a Bradley–Terry preference \n probability, not a p-value; writing \"p = 0.67 ... significantly\" invites the opposite reading. The \"75% consensus-based filtering\" discards minority responses on high-consensus comparisons — i.e.,\n it filters data using the very preference being estimated, which can bias the estimate and inflate apparent significance (the unfiltered MDL-vs-MI result being significant is reassuring, but the\n procedure should be justified, not assumed correct). With 129 judgments from 14 participants (~9 each), within-participant clustering is not modeled (no random effects), so the CIs are likely\n optimistic.\n\n W6 — \"Correct\" = existing tests pass, and several claims over-reach. Passing a test suite is not semantic equivalence; a refactoring can change behavior on untested configs / dtypes / devices /\n numerical edge cases — a real risk in production ML code, acknowledged only in passing. The claim \"the first time library learning has been successfully applied to real-world software projects\"\n (Contribution 4) is strong relative to N=8 hand-selected tasks, and sits in tension with the checklist's cautious \"we have carefully avoided any claims that we do repository-level refactoring.\"\n\n W7 — Polish / internal-consistency issues that should not exist in a submission.\n - Checklist Q3 (Theory assumptions and proofs): Answer N/A with Justification [TODO] — yet the paper has a proposition + proof (Appendix G), so the answer is both incomplete and arguably wrong.\n Checklist Q11 (Safeguards): Justification [TODO].\n - Appendix C: \"with larger K we discover better libraries ??\" — broken \\ref.\n - Footnotes 3 and 5 claim \"o4-mini outperformed coding agents such as Codex and ClaudeCode (Appendix K),\" but Appendix K (Table 5) contains only {original, sonnet 3.7, sonnet 4, codex-mini} —\n there is no o4-mini, Claude Code, or Codex row, so the table does not substantiate the claim.\n - The benchmark is named \"MiniCode\" only in the appendices/Table 4, never introduced in the main text, weakening the \"benchmark\" contribution.\n - Figures 2/3/5/7 are dense, multi-panel, and near-illegible (cryptic \"+24.0%\", \"TOKEN→MI\", \"Above 0: …\" annotations with under-explaining captions). Figure 3 carries the central\n MDL-vs-tokens-generalization argument and is the hardest to read.",
+ "quality": 2,
+ "clarity": 2,
+ "significance": 3,
+ "originality": 1,
+ "questions": "1. Reference-LM contamination (most important). Were Qwen-2.5-3B / Llama-3.2-3B / DeepSeek-Coder / Mistral plausibly trained on the public HuggingFace Transformers and Diffusers source? If so, how\n do you rule out that \"MDL-minimizing\" HF refactorings are regressing toward the LM's memorized canonical HF code — the most likely explanation for LIBRARIAN \"matching human coders\" on MDL? A\n convincing control (e.g., MDL scored by a reference LM demonstrably not trained on these repos, or evaluation on post-training-cutoff / private code) would substantially raise my score.\n 2. MDL vs tokens. Your own human study (0.56, n.s.) and in-distribution simulation cannot separate MDL from the much simpler tokens objective; the case rests on small-effect held-out\n generalization. Can you provide a powered, direct MDL-vs-tokens comparison with effect sizes and CIs, ideally on held-out HF sources? If MDL cannot be shown to beat tokens, why not adopt tokens\n (no reference LM, no contamination concern)? Cleanly establishing MDL > tokens would raise my score.\n 3. Attribution / ablation for the REGAL gains. Is the Logo (+~20 pt) / Date improvement due to MDL, sample-and-rerank, clustering, or simply added test-time compute (K samples)? Please ablate —\n e.g., REGAL + sample-and-rerank with token-rerank vs MDL-rerank, and with vs without clustering. Isolating the source is necessary to credit the conceptual MDL claim (and to fix the related broken\n \"??\" reference in Appendix C).\n 4. Statistics. Please (a) clarify the \"p = 0.67\" notation (this reads as a Bradley–Terry preference probability, not a p-value); (b) justify the 75% consensus filtering — which discards data based\n on the measured preference — and report the unfiltered estimates and CIs for all three comparisons; and (c) account for within-participant clustering (14 participants, 129 judgments) via random\n effects.\n 5. Real-world scope, correctness, and consistency. (a) Given \"correct\" = existing tests pass, how do you address that test suites under-specify semantics (untested\n configs/dtypes/devices/numerics)? (b) Given N=8 hand-selected tasks, can you temper or better support the \"first time library learning successfully applied to real-world software\" claim (e.g.,\n more tasks, or random rather than manual file selection)? (c) Please reconcile footnotes 3/5 with Appendix K: Table 5 contains no o4-mini, Claude Code, or Codex row, so it does not support\n \"o4-mini outperformed Codex and ClaudeCode.\" (d) Please resolve the [TODO] checklist entries (Q3, Q11) and the N/A answer to the theory-proofs item given Appendix G.",
+ "limitations": "Partially. The paper has an explicit Limitations section (per-refactoring cost ~30 min; reliance on existing tests; clustering cannot split files; compression may not predict reusability on unseen\n programs) — credit for being upfront, and the authors should not be penalized for honesty. However, the most consequential limitations are missing and should be added (this pre-empts reviewer\n concern rather than inviting it): (a) reference-LM contamination of the MDL distribution on public HF code (W2); (b) the small, hand-selected real-world sample and resulting selection bias (W3);\n (c) sensitivity to the reference LM (the reported 84.2% cross-LM agreement implies ~16% of best-refactoring choices flip with the scorer); (d) tests-pass ≠ semantic equivalence (W6); and (e) the\n weak/insignificant MDL-vs-tokens separation (W1). The negative-societal-impact discussion (checklist Q10 = No) is acceptable for this work.",
+ "rating": 2,
+ "confidence": 4,
+ "ethical_concerns": [
+ "NO or VERY MINOR ethics concerns only"
+ ],
+ "paper_formatting_concerns": "- NeurIPS Paper Checklist contains unfilled template placeholders: Q3 (Theory assumptions/proofs) Justification = [TODO] with Answer N/A despite a proof in Appendix G; Q11 (Safeguards)\n Justification = [TODO].\n - Broken cross-reference \"??\" in Appendix C (larger-K ablation sentence).\n - Footnotes 3 and 5 cite Appendix K for an o4-mini-vs-coding-agents comparison that Appendix K (Table 5) does not contain (it lists original / sonnet 3.7 / sonnet 4 / codex-mini only).\n - Benchmark \"MiniCode\" is named only in the appendices, not in the main text where it is contributed.\n - Anonymity: the appendix discloses IRB review/approval and an author-performed refactoring baseline; code is stated as released \"but not yet anonymized\" (checklist Q5 = No). At submission,\n anonymized assets/links are expected.\n - Main text appears within page limits; several empirical figures (2/3/5/7) are too dense/small to read at print size.",
+ "code_of_conduct_acknowledgement": "Yes",
+ "responsible_reviewing_acknowledgement": "Yes"
+ },
+ "createdAt": "2026-06-20T14:12:37.414Z",
+ "modifiedAt": "2026-11-18T13:40:56.959Z",
+ "url": "https://openreview.net/forum?id=dOkgsUfJSn&noteId=EwftLKCoKm",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/dokgsufjsn/notes/q1rtefequa.json added

+++ b/reviews/openreview/dokgsufjsn/notes/q1rtefequa.json
@@ -0,0 +1,31 @@
+{
+ "schema": "review/1",
+ "id": "q1RteFeqUa",
+ "replyTo": null,
+ "kind": "review",
+ "invitation": "Official_Review",
+ "signature": "Reviewer LH6k",
+ "content": {
+ "summary": "The paper studies automated refactoring of related source files into a reusable library. The proposed method, LIBRARIAN, clusters related files, samples multiple candidate refactorings with coding agents, filters them by tests, and reranks them using a refactoring objective. The main empirical point is that MDL under a reference language model is a better objective for library refactoring than token count, Maintainability Index, or Cyclomatic Complexity.\n\nI think the paper asks a good question. The objective function for refactoring is not obvious, and the comparison between MDL, token count, and classical software engineering metrics is useful. That said, I am not fully convinced that the evidence supports the stronger claims about real-world library learning or about MDL being clearly better than simpler compression objectives.",
+ "contribution_type": "general",
+ "strengths_and_weaknesses": "Strengths:\n\nThe problem is timely. Coding agents are often good at producing one-off solutions, but consolidating those solutions into reusable abstractions is a real issue. I like that the paper focuses on refactoring quality rather than only functional correctness.\n\nThe comparison of objectives is the most interesting part of the submission. It is not obvious whether MDL, token count, MI, or CC should be preferred for this setting. The paper gives a plausible argument that language-model MDL can capture naturalness in a way that raw token count cannot. The obfuscation example is a clean illustration of this point.\n\nThe paper also tries to move library learning beyond toy DSLs and program synthesis benchmarks. Applying these ideas to Python code from Transformers and Diffusers is a useful step, even if I think the evaluation is still too small to justify the broadest claims.\n\nThe use of sample-and-rerank is simple but sensible. The authors also make a reasonable effort to report best@k behavior and to separate different objectives.\n\nWeaknesses:\n\nMy main concern is that the real-world evaluation is quite small. The paper repeatedly frames the result as a move to real-world software, but the HuggingFace experiments cover only a small number of files and clusters. This is a useful demonstration, but it does not establish repository-scale refactoring or show that the abstractions would be accepted by maintainers.\n\nThe human study is underpowered. It uses 129 judgments from 14 participants, and the clearest statistically supported result appears to be MDL over Maintainability Index. The MDL versus token count comparison, which is central to the paper’s story, is much less convincing. The paper should state this more carefully.\n\nThe algorithmic novelty is modest. The core pipeline is clustering plus sample-and-rerank with a chosen objective. This is a reasonable engineering design, but much of the gain may come from test-time compute, coding-agent quality, and correctness filtering rather than from the proposed objective itself.\n\nThe comparison to REGAL is not fully controlled. LIBRARIAN uses multiple samples and reranking, while the prior method appears to be evaluated under a different sampling budget. A matched-budget REGAL-style baseline, or a direct coding-agent baseline with the same number of samples and the same filtering, would make the result much more convincing.\n\nThere is also a possible circularity in the MDL objective. Candidate refactorings are produced by LLM-based agents and then ranked by likelihood under another LLM. This may reward code that is familiar to the reference model rather than code that is actually easier to maintain or reuse. The cross-model agreement analysis helps, but it still leaves a nontrivial fraction of cases where rankings change.\n\nFinally, the paper needs more cleanup. There are inconsistencies in the reported model and agent setup, several typos and formatting artifacts, and unfinished checklist items. These issues make the experimental setup harder to trust.",
+ "quality": 2,
+ "clarity": 3,
+ "significance": 3,
+ "originality": 3,
+ "questions": "1. Can the authors evaluate REGAL or a REGAL-style method with the same sample budget and backend model as LIBRARIAN?\n2. How much of the improvement comes from the MDL objective rather than from simply sampling more candidates and filtering by tests?\n3. Can the authors report a direct baseline where Claude Code or another coding agent gets the same number of attempts, with the same test filtering, but without the LIBRARIAN clustering and MDL reranking?\n4. How sensitive are the final rankings to the reference model, tokenizer, and context formatting used for MDL?\n5. Can the authors provide the unfiltered human-study results, inter-annotator agreement, and the exact statistical test used for each pairwise comparison?\n6. For the HuggingFace examples, were the generated abstractions reviewed by experienced maintainers, or tested on future edit/reuse tasks? Passing tests is useful, but it does not by itself show maintainability.\n7. Does the best@k estimator include invalid candidates, or is it only computed after conditioning on valid candidates?",
+ "limitations": "The authors mention some limitations, but I think the main limitations should be stated more directly.\n\nFirst, the real-world evaluation is small. It is better described as a proof of concept on selected real files than as evidence of repository-scale refactoring.\n\nSecond, correctness is measured by existing tests. This is reasonable, but it does not guarantee behavioral equivalence, API compatibility, readability, or maintainability. Refactoring quality is especially hard to judge from tests alone.\n\nThird, the MDL objective may be biased toward code that is likely under the reference model. This is not necessarily the same as code that human maintainers would prefer.\n\nFourth, the human evaluation is too small to fully support the MDL versus token-count story. It mainly supports the weaker claim that MDL is better than MI in this setup.\n\nFifth, the paper does not fully isolate algorithmic contribution from inference-time compute. A matched-budget baseline is needed.",
+ "rating": 3,
+ "confidence": 3,
+ "ethical_concerns": [
+ "NO or VERY MINOR ethics concerns only"
+ ],
+ "paper_formatting_concerns": "The paper has several presentation and reproducibility issues that should be fixed. There are typos and formatting artifacts in the figures and text. The checklist contains unfinished TODO entries. The LLM usage checklist answer is also odd, since LLMs are central to the method. The experimental setup should consistently state which models and agents were used in each experiment.",
+ "code_of_conduct_acknowledgement": "Yes",
+ "responsible_reviewing_acknowledgement": "Yes"
+ },
+ "createdAt": "2026-06-25T22:26:20.855Z",
+ "modifiedAt": "2026-11-18T13:40:54.280Z",
+ "url": "https://openreview.net/forum?id=dOkgsUfJSn&noteId=q1RteFeqUa",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/dokgsufjsn/notes/vfindq6stx.json added

+++ b/reviews/openreview/dokgsufjsn/notes/vfindq6stx.json
@@ -0,0 +1,31 @@
+{
+ "schema": "review/1",
+ "id": "vFiNDQ6StX",
+ "replyTo": null,
+ "kind": "review",
+ "invitation": "Official_Review",
+ "signature": "Reviewer p5Du",
+ "content": {
+ "summary": "The paper proposes LIBRARIAN, a method that cobines divide and conquer with sample and rerank method to generate reusable library. This paper studies in great detail, the coding agents capacity to refactor code that is reusable and consolidated. The authors also investigate various metrics to quantify what a good refactoring means. The empirical experiments provided in the paper goes beyond past work that is limited to small scale files instead the authors have scaled to more real world use case like huggingface transformers and diffusers library, In algorithm LIBRARIAN, extends REGAL in terms of clustring, which essentially summarize the files using LLM and then cluster the summary to get more semantically aligned clustering. The methods takes in the files $\\rho_i; \\forall i \\in [N]$, LIBRARIAN returns the library $\\mathcal{L}$ and refactored files $\\rho'_i; \\forall i \\in [N]$. Overall the paper is easy to read, empirical evaluations are satisfactory and are extended to real world and relatively large scale source code.",
+ "contribution_type": "concept_feasibility",
+ "strengths_and_weaknesses": "strengths\n\n- The paper is well written and motivates a real world usecase of code refactoring\n- The authors have extended their experiments to real world and large scale repositories like huggingface transformer and diffusers library. The refactoring quality is properly quantified and demonstrated in the main paper. \n- The empirical gains are considerable compared to the closest competition REGEL\n\nweaknesses\n\n- Although the paper extends its experiments to large scale and real world code, it still uses 15, 17 files for transformers and diffusers respectively, I am wondering how would LIBRARIAN performs if it is extended to more files from the respective repos\n- In the related works section, the works could be elaborated in more detail to provide more insights",
+ "quality": 3,
+ "clarity": 3,
+ "significance": 3,
+ "originality": 3,
+ "questions": "The clustering techniques seems to be an important factor in LIBRARIAN, can authors provide more insights on what other clustering techniques can be used apart from clustering based on summary by an LLM, is the LLM finetuned for providing code summaries especially for transformers and diffusers ?",
+ "limitations": "yes",
+ "rating": 5,
+ "confidence": 4,
+ "ethical_concerns": [
+ "NO or VERY MINOR ethics concerns only"
+ ],
+ "paper_formatting_concerns": "None",
+ "code_of_conduct_acknowledgement": "Yes",
+ "responsible_reviewing_acknowledgement": "Yes"
+ },
+ "createdAt": "2026-06-21T08:57:27.873Z",
+ "modifiedAt": "2026-11-18T13:40:55.665Z",
+ "url": "https://openreview.net/forum?id=dOkgsUfJSn&noteId=vFiNDQ6StX",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/dokgsufjsn/notes/z4conrd9dg.json added

+++ b/reviews/openreview/dokgsufjsn/notes/z4conrd9dg.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "Z4COnrd9Dg",
+ "replyTo": null,
+ "kind": "meta_review",
+ "invitation": "Meta_Review",
+ "signature": "Area Chair Hkq4",
+ "content": {
+ "metareview": "The reviewers agree that the paper addresses an important and timely problem: enabling code agents to refactor collections of programs into reusable libraries rather than producing isolated one-off solutions. Several reviewers viewed the comparison of different refactoring objectives as the paper's most novel conceptual contribution, and appreciated the attempt to extend library learning beyond toy DSLs to real Python repositories.\n\nHowever, the reviewers have raised a number of issues that are critical to the paper's central claims: 1. MDL may not be shown to outperform token count. 2. The gains are not properly attributed. 3. Potential reference-model contamination. Some other minor issues include the statistical and reporting issues as well as the “real-world” evidence being too limited and partly circular.\n******************\nAfter the rebuttal, the central finding is adjusted from MDL specifically to the broader observation that compression-style objectives may outperform traditional software-engineering metrics, while LIBRARIAN remains a relatively straightforward combination of clustering and sample-and-rerank."
+ },
+ "createdAt": "2026-07-23T04:22:52.219Z",
+ "modifiedAt": "2026-11-18T15:22:27.186Z",
+ "url": "https://openreview.net/forum?id=dOkgsUfJSn&noteId=Z4COnrd9Dg",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/dokgsufjsn/submission.json added

+++ b/reviews/openreview/dokgsufjsn/submission.json
@@ -0,0 +1,12 @@
+{
+ "schema": "submission/1",
+ "id": "dOkgsUfJSn",
+ "venue": {
+ "id": "NeurIPS.cc/2026/Conference",
+ "name": "NeurIPS 2026",
+ "url": "https://openreview.net/group?id=NeurIPS.cc%2F2026%2FConference"
+ },
+ "number": 18878,
+ "url": "https://openreview.net/forum?id=dOkgsUfJSn",
+ "license": "CC-BY-4.0"
+}

versions/v_v5t77y3m.json added

+++ b/versions/v_v5t77y3m.json
@@ -0,0 +1,22 @@
+{
+ "date": "2026-05-03",
+ "kind": "submitted",
+ "label": "NeurIPS 2026",
+ "submissions": [
+ {
+ "venue": "NeurIPS 2026",
+ "status": "accepted",
+ "decision": "Accept (poster)",
+ "number": 18878,
+ "url": "https://openreview.net/forum?id=dOkgsUfJSn",
+ "reviews": "openreview/dokgsufjsn",
+ "evidence": [
+ "https://openreview.net/forum?id=dOkgsUfJSn"
+ ]
+ }
+ ],
+ "url": "https://openreview.net/forum?id=dOkgsUfJSn",
+ "evidence": [
+ "https://openreview.net/forum?id=dOkgsUfJSn"
+ ]
+}