potentialpaper

HDPO: Aligning Large Language Models to Software Architecture via Hierarchical Preference Optimization

Import ICLR 2027 submission cWV3cyGi3x: 3 notes

@openreview[bot] · 2026-11-22 21:25 UTC · 64c3f85eee6b

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,19 @@
+{
+ "layout": 5,
+ "identifiers": [
+ {
+ "scheme": "openreview",
+ "value": "cWV3cyGi3x"
+ }
+ ],
+ "title": "HDPO: Aligning Large Language Models to Software Architecture via Hierarchical Preference Optimization",
+ "authors": [],
+ "abstract": "Large Language Models struggle with \\textbf{software evolution} in complex repositories, often taking a ``Semantic Shortcut'' that ignores architectural hierarchy. We introduce \\textbf{Hierarchical Direct Preference Optimization (HDPO)}, a novel alignment framework that enforces structural consistency by decomposing feature generation into a rigorous three-tier mapping of \\textit{Modules}, \\textit{Tasks}, and \\textit{Files}. Across major open-source ecosystems (e.g., Django, Kafka, Kubernetes), HDPO achieves an average structural accuracy of 40.3\\%, drastically outperforming Step-SFT (14.7\\%), Step-Weighted-SFT (16.5\\%), and Step-DPO (19.0\\%). Similarly, regarding Average Weighted Impact across these ecosystems, HDPO (51.0\\%) decisively outperforms Step-DPO (25.0\\%), Step-Weighted-SFT (22.3\\%), and Step-SFT (20.7\\%).",
+ "year": 2027,
+ "venue": "ICLR 2027 (under review)",
+ "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://potentialpaper.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://potentialpaper.com/schemas/authorPlugins.json"] },
+ { id = "check-jsonschema", name = "venue files", files = '^venue\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/venue.json"] },
+ { id = "check-jsonschema", name = "topic files", files = '^topic\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/topic.json"] },
+ { id = "check-jsonschema", name = "organisation files", files = '^org\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/org.json"] },
+ { id = "check-jsonschema", name = "link files", files = '^links/[^/]+\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/link.json"] },
+ { id = "check-jsonschema", name = "version files", files = '^versions/[^/]+\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/version.json"] },
+ { id = "check-jsonschema", name = "picture files", files = '^thumbnail\.json$', args = ["--schemafile", "https://potentialpaper.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/cwv3cygi3x/forms.json added

+++ b/reviews/openreview/cwv3cygi3x/forms.json
@@ -0,0 +1,183 @@
+{
+ "schema": "forms/1",
+ "forms": {
+ "Meta_Review": {
+ "label": "Meta-review",
+ "fields": [
+ {
+ "key": "metareview",
+ "label": "Meta-review",
+ "type": "text"
+ },
+ {
+ "key": "summary",
+ "label": "Summary",
+ "type": "text"
+ },
+ {
+ "key": "additional_comments_on_reviewer_discussion",
+ "label": "Reviewer discussion",
+ "type": "text"
+ },
+ {
+ "key": "recommendation",
+ "label": "Recommendation",
+ "type": "choice"
+ }
+ ]
+ },
+ "Decision": {
+ "label": "Decision",
+ "fields": [
+ {
+ "key": "title",
+ "label": "Title",
+ "hidden": true
+ },
+ {
+ "key": "decision",
+ "label": "Decision",
+ "type": "choice"
+ },
+ {
+ "key": "comment",
+ "label": "Comment",
+ "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",
+ "soundness",
+ "presentation",
+ "informativeness"
+ ],
+ "fields": [
+ {
+ "key": "rating",
+ "label": "Rating",
+ "type": "score",
+ "min": 1,
+ "max": 4
+ },
+ {
+ "key": "confidence",
+ "label": "Confidence",
+ "type": "score",
+ "min": 1,
+ "max": 4
+ },
+ {
+ "key": "soundness",
+ "label": "Soundness",
+ "type": "score",
+ "min": 1,
+ "max": 3
+ },
+ {
+ "key": "presentation",
+ "label": "Presentation",
+ "type": "score",
+ "min": 1,
+ "max": 3
+ },
+ {
+ "key": "informativeness",
+ "label": "Informativeness",
+ "type": "score",
+ "min": 1,
+ "max": 3
+ },
+ {
+ "key": "paper_summary",
+ "label": "Summary",
+ "type": "text"
+ },
+ {
+ "key": "critical_strengths",
+ "label": "Strengths",
+ "type": "text"
+ },
+ {
+ "key": "critical_weaknesses",
+ "label": "Weaknesses",
+ "type": "text"
+ },
+ {
+ "key": "questions_for_authors",
+ "label": "Questions for the authors",
+ "type": "text"
+ },
+ {
+ "key": "flag_for_ethics_review",
+ "label": "Flag for ethics review",
+ "type": "choice",
+ "omitWhen": [
+ "No",
+ "No ethics review needed."
+ ]
+ },
+ {
+ "key": "details_of_ethics_concerns",
+ "label": "Ethics concerns",
+ "type": "text"
+ }
+ ]
+ }
+ },
+ "url": "https://openreview.net/group?id=ICLR.cc%2F2027%2FConference",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/cwv3cygi3x/notes/eq9aa6fsdi.json added

+++ b/reviews/openreview/cwv3cygi3x/notes/eq9aa6fsdi.json
@@ -0,0 +1,24 @@
+{
+ "schema": "review/1",
+ "id": "eQ9AA6FsDi",
+ "replyTo": null,
+ "kind": "review",
+ "invitation": "Official_Review",
+ "signature": "Reviewer 7a14",
+ "content": {
+ "paper_summary": "The paper proposes HDPO for generating hierarchical software-evolution plans consisting of modules, implementation tasks, and file paths. HDPO modifies DPO by assigning larger weights to high-level module and task tokens. Training data are reconstructed from historical pull requests and commits, with synthetic rationales and hard-negative trajectories. Experiments on approximately 2,500 requests from one proprietary and three open-source repositories report substantial gains over SFT, weighted SFT, DPO, retrieval, and frontier-model baselines.",
+ "presentation": 1,
+ "informativeness": 2,
+ "soundness": 2,
+ "critical_strengths": "1.The paper targets repository-level architectural planning rather than isolated code generation, and the module-task-file hierarchy provides a useful evaluation decomposition.\n2.HDPO is evaluated across four distinct repositories with several relevant baselines, weight ablations, temporal splits, and human-audited LLM judgments. The reported gains over Step-DPO are large and consistent.",
+ "critical_weaknesses": "1.The justification for the 4:2:1 weighting is insufficiently clear. Although the paper reports that 4:2:1 performs best among several configurations, it is unclear how this ratio was initially determined and whether it generalizes beyond the selected validation set and repositories. More systematic sensitivity analysis is needed.\n2.The evaluation may overlook valid alternative plans. Module and file predictions are scored by exact match against historical patches, although multiple architectural plans may correctly implement the same feature. Human evaluation of non-matching predictions would strengthen the conclusions.",
+ "questions_for_authors": "1. How was the 4:2:1 weighting ratio determined? Was it motivated by measured layer-wise gradients or selected through validation-set search?\n2. How sensitive is HDPO to nearby weight configurations, and does 4:2:1 remain optimal across different repositories?\n3.How many exact-match failures correspond to valid alternative module or file plans according to human experts?\n4.Does Weighted Impact correlate with actual implementation effort or development-time reduction, rather than only historical resolution duration?",
+ "flag_for_ethics_review": "No",
+ "rating": 2,
+ "confidence": 1
+ },
+ "createdAt": "2026-10-20T16:33:56.493Z",
+ "modifiedAt": "2026-11-06T12:39:47.254Z",
+ "url": "https://openreview.net/forum?id=cWV3cyGi3x&noteId=eQ9AA6FsDi",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/cwv3cygi3x/notes/jwm8dkfzth.json added

+++ b/reviews/openreview/cwv3cygi3x/notes/jwm8dkfzth.json
@@ -0,0 +1,24 @@
+{
+ "schema": "review/1",
+ "id": "jWM8DKfzth",
+ "replyTo": null,
+ "kind": "review",
+ "invitation": "Official_Review",
+ "signature": "Reviewer N17n",
+ "content": {
+ "paper_summary": "The paper “HDPO: Aligning Large Language Models to Software Architecture via Hierarchical Preference Optimization” presents a variant of DPO that introduces token weights, based on architectural relationships. Tokens that describe the relationship on module levels have a weight of 4, on the task level a weight of 2, and on the file level a weight of 1. Based on a dataset that is collected for one proprietary system and three open-source systems, the authors align a Mistral-7B model using this approach and compare this with standard DPO, SFT, and SFT with the same weighting for the CE loss. The results show that HDPO yields the best performance.",
+ "presentation": 2,
+ "informativeness": 2,
+ "soundness": 1,
+ "critical_strengths": "1)\tThe approach seems to work well, though this was only demonstrated with a single, relatively small, LLM. Still, the gap to the other tuning approaches shows that this worked well in this setting. \n2)\tThe data set creation and overall descriptions of the method are very good and it is easy to follow how the model is trained.",
+ "critical_weaknesses": "1)\tI am honestly not sure *what* is being predicted, based on the description in the paper. What is the input into the post-trained LLM and how is the expected output defined? My guess is that the output are modules and files related to some problem. But maybe it is also tests that should be executed. I guess the root cause of this problem is that I am not sure what the “experiments” are. This makes the actual contribution and also rigor of the experiments hard to judge for me. \n2)\tThe novelty of weighted DPO approaches is unclear. Since I only broadly follow the post-training literature, I could not name a specific approach prior to this review. But since using a weighted loss function is something fairly common and straightforward when dealing with biases between different aspects in the evaluation, I considered it likely that there already is work on this. With a shallow 2-minute search, I already found three papers that all seem to induce weights on tokens using different approaches: \n-\thttps://openreview.net/forum?id=oF6e2WwxX0\n-\thttps://arxiv.org/pdf/2602.21346\n-\thttps://papers.ssrn.com/sol3/papers.cfm?abstract_id=7149198\nI strongly suspect that a more thorough search would reveal more. Therefore, the novelty of the general method unclear and needs to be established based on a more thorough discussion of the literature on DPO variants. Note that the use of this method for architecture alignment would still be new, but this would nevertheless have a major impact.",
+ "questions_for_authors": "1)\tWhat exactly is the task, i.e., what are the inputs, the expected outputs, and what is the exact role of the LLM-as-a-judge approach that is only mentioned in the appendix?\n2)\tHow does this work compare to other weighting modifications of post-training methods, ideally not only DPO, but also weighted RLHF and GRPO.",
+ "flag_for_ethics_review": "No",
+ "rating": 2,
+ "confidence": 2
+ },
+ "createdAt": "2026-10-21T18:06:24.211Z",
+ "modifiedAt": "2026-11-06T12:39:45.446Z",
+ "url": "https://openreview.net/forum?id=cWV3cyGi3x&noteId=jWM8DKfzth",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/cwv3cygi3x/notes/s0ag0buk64.json added

+++ b/reviews/openreview/cwv3cygi3x/notes/s0ag0buk64.json
@@ -0,0 +1,24 @@
+{
+ "schema": "review/1",
+ "id": "S0aG0bUK64",
+ "replyTo": null,
+ "kind": "review",
+ "invitation": "Official_Review",
+ "signature": "Reviewer 39Zm",
+ "content": {
+ "paper_summary": "This paper targets cross-module feature planning in large repositories, arguing that the bottleneck is scoping what to change across modules, not code quality. Given a feature request, the model outputs three layers: affected modules, an ordered task plan, and file paths. The proposed HDPO weights DPO token log-ratios by layer, 4:2:1 for modules, tasks, and files, and adds a complexity curriculum. Training data come from merged PRs in a proprietary Ads monorepo plus Django, Kafka, and Kubernetes. On Mistral-7B, HDPO reports 40.3% end-to-end accuracy on the open-source repositories versus 19.0% for Step-DPO, and higher duration-weighted Weighted Impact.",
+ "presentation": 2,
+ "informativeness": 1,
+ "soundness": 1,
+ "critical_strengths": "1. **A real and underexplored problem.** Code LLMs mostly optimize local correctness. Scoping changes across modules in large repositories is a practical bottleneck that current benchmarks ignore.\n2. **Realistic data source.** Ground truth comes from merged pull requests in real repositories, with a temporal split to limit leakage.",
+ "critical_weaknesses": "1. **Limited novelty.** The method just multiplies DPO token log-ratios by fixed layer weights. Similar weighted or hierarchical DPO methods, such as HiPO, CHiP, and HPL, are not cited. The Step-DPO baseline is mislabeled as unweighted DPO.\n2. **Implausible results.** Nearly all three-run means are integers or end in .5. Within each domain, Gemini-3.1 equals Gemini-2.5 plus a near-constant offset. Raw per-run outputs are needed.\n3. **Outdated backbone and baselines.** Only Mistral-7B-v0.2 from 2023 is used. There is no comparison with modern models such as Qwen3.5 or with code agents such as SWE-agent.",
+ "questions_for_authors": "1. **Verifiability.** Please release per-run predictions and the open-source splits, and explain why three-run means are almost all integers and why the two Gemini models differ by a near-constant offset.\n2. **Stronger comparisons.** Please compare against segment-weighted DPO such as HiPO, and report results with a modern backbone such as Qwen3.5.",
+ "flag_for_ethics_review": "No",
+ "rating": 1,
+ "confidence": 2
+ },
+ "createdAt": "2026-10-22T04:07:05.453Z",
+ "modifiedAt": "2026-11-06T12:39:43.953Z",
+ "url": "https://openreview.net/forum?id=cWV3cyGi3x&noteId=S0aG0bUK64",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/cwv3cygi3x/submission.json added

+++ b/reviews/openreview/cwv3cygi3x/submission.json
@@ -0,0 +1,23 @@
+{
+ "schema": "submission/1",
+ "id": "cWV3cyGi3x",
+ "venue": {
+ "id": "ICLR.cc/2027/Conference",
+ "name": "ICLR 2027",
+ "url": "https://openreview.net/group?id=ICLR.cc%2F2027%2FConference"
+ },
+ "number": 57468,
+ "keywords": [
+ "Hierarchical Planning",
+ "Direct Preference Optimization (DPO)",
+ "LLM Alignment",
+ "Software Evolution",
+ "Reinforcement Learning",
+ "Code Generation",
+ "Structural Hallucination",
+ "Developer Productivity",
+ "Industrial Software Engineering"
+ ],
+ "url": "https://openreview.net/forum?id=cWV3cyGi3x",
+ "license": "CC-BY-4.0"
+}

versions/v_uinmaitx.json added

+++ b/versions/v_uinmaitx.json
@@ -0,0 +1,21 @@
+{
+ "date": "2026-09-19",
+ "kind": "submitted",
+ "label": "ICLR 2027",
+ "submissions": [
+ {
+ "venue": "ICLR 2027",
+ "status": "under_review",
+ "number": 57468,
+ "url": "https://openreview.net/forum?id=cWV3cyGi3x",
+ "reviews": "openreview/cwv3cygi3x",
+ "evidence": [
+ "https://openreview.net/forum?id=cWV3cyGi3x"
+ ]
+ }
+ ],
+ "url": "https://openreview.net/forum?id=cWV3cyGi3x",
+ "evidence": [
+ "https://openreview.net/forum?id=cWV3cyGi3x"
+ ]
+}