Pith. sign in

REVIEW 3 cited by

ReGAL: Refactoring Programs to Discover Generalizable Abstractions

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2401.16467 v2 pith:CQAMZETI submitted 2024-01-29 cs.SE cs.AIcs.CLcs.LGcs.PL

classification cs.SEcs.AIcs.CLcs.LGcs.PL
keywords regalprogramsabstractionscodeaccuracydatedomainsexecution
verification ladder T0 review T1 audit T2 compute T3 formal

Signed reviews

No signed human review yet.

0 comments
read the original abstract

While large language models (LLMs) are increasingly being used for program synthesis, they lack the global view needed to develop useful abstractions; they generally predict programs one at a time, often repeating the same functionality. Generating redundant code from scratch is both inefficient and error-prone. To address this, we propose Refactoring for Generalizable Abstraction Learning (ReGAL), a gradient-free method for learning a library of reusable functions via code refactorization, i.e., restructuring code without changing its execution output. ReGAL learns from a small set of existing programs, iteratively verifying and refining its abstractions via execution. We find that the shared function libraries discovered by ReGAL make programs easier to predict across diverse domains. On five datasets -- LOGO graphics generation, Date reasoning, TextCraft (a Minecraft-based text-game) MATH, and TabMWP -- both open-source and proprietary LLMs improve in accuracy when predicting programs with ReGAL functions. For CodeLlama-13B, ReGAL results in absolute accuracy increases of 11.5% on LOGO, 26.1% on date understanding, and 8.1% on TextCraft, outperforming GPT-3.5 in two of three domains. Our analysis reveals ReGAL's abstractions encapsulate frequently-used subroutines as well as environment dynamics.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 3 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Better, Faster, Stronger: Programmatic Skill Learning Best Reduces Agent Cost

    cs.CL 2026-08 conditional novelty 6.0 of 10

    SpeedRunner, a coding agent that refactors past agent trajectories into executable skill libraries, reduces inference cost by up to 8x while matching or improving task performance across three embodied environments.

  2. PACE: Primitive-Aware Code Evolution for Automated Algorithm Design

    cs.SE 2026-08 conditional novelty 6.0 of 10

    PACE decouples reusable code components from host algorithms in LLM-based evolution, preserving them across generations, and reports stronger results than prior AAD methods on four tasks.

  3. A Compute-Matched Re-Evaluation of TroVE on MATH

    cs.PL 2025-07 conditional novelty 5.0 of 10

    After matching computational budget, TroVE's toolbox mechanism yields only a marginal, statistically non-significant 1% accuracy gain over a plain sampling baseline on MATH.

Pith tools