Papers
Topics
Authors
Recent
Search
2000 character limit reached

MACRO: Higher-Level Abstractions in Research

Updated 15 July 2026
  • MACRO is a multifaceted term defining structured higher-level abstractions, ranging from extended RL actions to compressed text schemes.
  • Techniques leveraging macros, such as open-loop sequences and latent embedding, reduce complexity and boost performance in varied domains.
  • Applications span reinforcement learning, LLM-based planning, VLSI design, and statistical coverage, demonstrating improved efficiency and structural clarity.

“MACRO” is a polysemous technical term that denotes several distinct but structurally related ideas in current research. In reinforcement learning and planning, a macro action is an open-loop sequence of primitive actions executed as a single decision; in statistics, macro-coverage is the unweighted average of class-conditional coverages; in electronic design automation, macro placement concerns the positioning of large blocks; and in several recent systems papers “MACRO” or “Macro” is the name of a concrete framework or method rather than a generic abstraction (Chang et al., 2019, Bhattacharyya et al., 26 Jun 2026, Shi et al., 11 Nov 2025). Across these usages, the term typically signals a level of organization above the primitive token, action, class instance, or component.

1. Temporal abstraction in reinforcement learning and planning

In reinforcement learning, a macro action is formally an open-loop sequence of kk primitive actions,

m=(a1,a2,,ak),aiA,m = (a_{1}, a_{2}, \dots, a_{k}),\quad a_i \in \mathcal{A},

and the resulting decision process is naturally modeled as a semi-Markov decision process with tuple (S,M,pssm,rsm)(S,M,p^m_{ss'},r^m_s), where M=A{m}M=\mathcal{A}\cup\{m\}, pssm=Pr(st+m=sst=s,mt=m)p^m_{ss'}=\Pr(s_{t+|m|}=s' \mid s_t=s, m_t=m), and rsm=E[τ=0m1rt+τst=s,mt=m]r^m_s=E[\sum_{\tau=0}^{|m|-1} r_{t+\tau} \mid s_t=s, m_t=m] (Chang et al., 2019). Chang et al. used this formulation to analyze two properties of learned macros: reusability, where a macro generated along with one RL method can be reused by another RL method, and transferability, where a macro derived in one reward layout improves learning in related environments with different reward settings. In Atari 2600, adding the derived macro sped up learning in all eight evaluated games, and in ViZDoom My_Way_Home the reported reduction in mean frames to goal widened from 21.5% in Dense to 44.8% in SuperSparse, a result presented as evidence that transferability strengthens as rewards become sparser (Chang et al., 2019).

A different line of work treats macro actions as elements of a learned latent space. FaMARL learns a disentangled, low-dimensional embedding of variable-length action sequences from expert demonstrations by first segmenting demonstrations into macro-action chunks, then training a sequence VAE, FAVAE, with a β\beta-VAE-style objective and per-ladder capacity terms, and finally replacing the primitive-action policy with a latent-action policy inside PPO (Kim et al., 2019). During execution, the agent samples ztπψ(ztst)z_t \sim \pi_\psi(z_t\mid s_t), decodes a sequence of primitive actions, trims the sequence using the learned action_off flag, applies the sequence open-loop, and treats the accumulated reward over the trimmed sequence as a single macro-step (Kim et al., 2019). On ContinuousWorld, with β=50\beta=50 and 3-ladder FAVAE, FaMARL in Maze converged rapidly within 200k\approx 200\,k steps, whereas PPO with primitive actions and FiGAR failed to solve the task. On RobotHand, FaMARL with m=(a1,a2,,ak),aiA,m = (a_{1}, a_{2}, \dots, a_{k}),\quad a_i \in \mathcal{A},0 was reported as the only method to succeed on both sparse-reward Reaching and dense-reward BallPlacing, and it shortened its chosen macro-action length when time penalties were present (Kim et al., 2019).

Macro learning has also been integrated into online planning under partial observability. MAGIC learns a macro-action generator and critic offline, then uses the learned generator online to produce situation-aware macro-actions conditioned on a particle belief and an environment context vector while planning with DESPOT (Lee et al., 2020). Macro-actions are parameterized by low-dimensional variables such as cubic Bézier control points or turn-and-go parameters, and the planner backs up over a small generated macro set m=(a1,a2,,ak),aiA,m = (a_{1}, a_{2}, \dots, a_{k}),\quad a_i \in \mathcal{A},1 rather than over primitive actions. Reported cumulative rewards were 54.1 on Light-Dark, 58.6 on Crowd-Driving, and 87.9 on Puck-Push, outperforming primitive-action DESPOT, handcrafted macros, and POMCPOW on all three tasks (Lee et al., 2020).

In classical STRIPS-style AI planning, Macro-FF treats a macro-operator as a compiled sequence of operators with induced preconditions and effects, and learns such operators either from static domain structure or from solution plans (Botea et al., 2011). The system combines analysis, generation, filtering and ranking, and planning-time use of selected macros. On IPC-style benchmarks, the combined system increased coverage in several domains, for example from 24 to 36 solved instances in Promela Optical Telegraph and from 25 to 36 in Satellite (Botea et al., 2011). These results support the longstanding planning view that macros reduce effective search depth and can alter heuristic behavior, but the literature also records standard limitations: open-loop execution prevents mid-macro feedback in FaMARL, and Macro-FF’s static compilation route is limited in domains where suitable structural information cannot be extracted (Kim et al., 2019, Botea et al., 2011).

2. Hierarchical macro reasoning in LLM agents

Recent work on LLM agents uses “macro” to denote structured planning above token-level action generation. HiMAC defines a macro-policy

m=(a1,a2,,ak),aiA,m = (a_{1}, a_{2}, \dots, a_{k}),\quad a_i \in \mathcal{A},2

where the blueprint m=(a1,a2,,ak),aiA,m = (a_{1}, a_{2}, \dots, a_{k}),\quad a_i \in \mathcal{A},3 is a sequence of free-form sub-goal tokens, and a micro-policy that emits atomic actions conditioned on the active sub-goal and can output a special <sub_done> token to advance to the next sub-goal (Jin et al., 1 Mar 2026). The same instruction-tuned LLM parameters are shared between macro and micro levels, but optimization alternates between a planner phase and an executor phase. Credit assignment is critic-free: at each level the method computes a group-relative advantage m=(a1,a2,,ak),aiA,m = (a_{1}, a_{2}, \dots, a_{k}),\quad a_i \in \mathcal{A},4 over sampled blueprints or trajectories, and the two phases are trained with clipped surrogate objectives while gradients are restricted to disjoint token spans (Jin et al., 1 Mar 2026). On ALFWorld, WebShop, and Sokoban, HiMAC was reported to outperform GiGPO and GRPO baselines. For example, ALFWorld overall success reached 89.9% for the 1.5B backbone and 92.1% for the 7B backbone, while WebShop success reached 83.4% and 84.1%, and Sokoban success on the 7B VLM reached 87.5% (Jin et al., 1 Mar 2026).

MACRO-LLM addresses a different but related problem: spatiotemporal partial observability in distributed LLM-powered agents (Chen et al., 14 Jan 2026). Its architecture has three modules. CoProposer generates candidate actions and verifies them through predictive rollouts over a short horizon; Negotiator exchanges mean-field statistical features rather than full observations and resolves conflicts through confidence weighting; and Introspector analyzes reward drops and updates strategy by generating a textual “semantic gradient” (Chen et al., 14 Jan 2026). The system is evaluated on cooperative adaptive cruise control and pandemic control. In the catch-up scenario of CACC, MACRO-LLM achieved RMSE-Headway of 1.212 m and SD-Headway of 0.455 m; in the New York pandemic-control topology it reported normalized infection 0.005, peak infection 0.003, death 0.000, and pandemic duration 33 days (Chen et al., 14 Jan 2026). Here, “MACRO” is an acronym, but the architecture still embodies a macro-level coordination layer above local reactive behavior.

3. Macros as program and source-level abstractions

In program synthesis and procedural modeling, a macro is a function added to a domain-specific language whose body unrolls into a fixed sequence of existing commands. ShapeMOD operates on imperative, statement-based 3D shape programs and searches for macros that reduce both the number of function calls and the number of free parameters exposed across a dataset (Jones et al., 2021). Its objective penalizes library size and rewards compact refactorings, and its discovery algorithm alternates a proposal phase, which mines abstracted programs from clusters of similar instances, with an integration phase, which retains only macros that improve the objective after refactoring. On chairs, the reported objective m=(a1,a2,,ak),aiA,m = (a_{1}, a_{2}, \dots, a_{k}),\quad a_i \in \mathcal{A},5 fell from 411 with no macros to 260 with ShapeMOD, while the total library size was 17 functions rather than the 36 of a baseline macro set (Jones et al., 2021). Downstream gains were also reported: for the chair program VAE, %fool increased from 21.2 to 25.6 and Fréchet Distance fell from 17.8 to 16.7; for point-cloud-to-program induction, Chamfer Distance improved from 44.2 to 41.7 and rootedness from 93.7% to 96.9% (Jones et al., 2021). A user study with 38 programmers found faster convergence in interactive editing and ease ratings of approximately 4.1 versus approximately 3.2 (Jones et al., 2021).

At the source-language level, C macros constitute a different abstraction class. The Maki framework analyzes macro portability by decomposing macro behavior into 26 boolean properties spanning interface-equivalent, scope-adapting, callsite-context-altering, and metaprogramming behaviors (Pappas et al., 2024). The implementation combines preprocessor callbacks, AST extraction, and property aggregation over invocations. Evaluated on 21 real-world C programs with 86,199 macro definitions, Maki reported that 37% of macros were interface-equivalent on average, compared with 19% for prior work, and achieved precision 0.95, recall 0.93, and m=(a1,a2,,ak),aiA,m = (a_{1}, a_{2}, \dots, a_{k}),\quad a_i \in \mathcal{A},6 on a hand-labeled sample of 383 macros (Pappas et al., 2024). In the Linux kernel, 41% of 57,896 analyzed macros were classified as interface-equivalent, and patches transforming eleven macros were submitted, with nine accepted by maintainers (Pappas et al., 2024). The contrast with ShapeMOD is instructive: ShapeMOD invents new high-level operators inside a DSL, whereas Maki classifies existing preprocessor abstractions to determine whether they can be preserved during translation.

4. Macro placement and spatial optimization

In VLSI floorplanning, “macro” denotes a large physical block whose placement strongly affects wirelength, congestion, timing, and routability. Rem=(a1,a2,,ak),aiA,m = (a_{1}, a_{2}, \dots, a_{k}),\quad a_i \in \mathcal{A},7MaP addresses this setting through a recursive pipeline that combines multi-level macro grouping, PPA-aware cell clustering, mixed-size placement prototyping with DREAMPlace, angle-based analytical optimization on an ellipse, and packing-tree-based relocating (Shi et al., 11 Nov 2025). The unified connection matrix is defined as

m=(a1,a2,,ak),aiA,m = (a_{1}, a_{2}, \dots, a_{k}),\quad a_i \in \mathcal{A},8

combining wirelength and RTL-dataflow affinity, and ABPlace optimizes macro angles on an ellipse while balancing connection cost and overlap penalty (Shi et al., 11 Nov 2025). The relocating stage then packs one macro group at a time into chip corners using B*-trees and an expertise-inspired cost function containing displacement, connection, periphery, bounding-box, I/O, and notch penalties. Across seven Nangate45 designs, Rem=(a1,a2,,ak),aiA,m = (a_{1}, a_{2}, \dots, a_{k}),\quad a_i \in \mathcal{A},9MaP reported up to 22.22% and average 10.26% improvement in WNS, up to 97.91% and average 33.97% improvement in TNS, power reductions of up to 3%, DRC-violation reductions of up to 20%, and runtime gains of 10–40% relative to Hier-RTLMP (Shi et al., 11 Nov 2025).

DAS-MP also targets macro placement, but emphasizes enhanced dataflow awareness derived not only from macro–macro links but also from standard-cell clusters (Zhao et al., 22 May 2025). Its loss includes direct macro–cell terms, one-hop indirect macro–macro terms induced by shared cell clusters, and two-hop macro–cell–cell terms, all expressed through weighted HPWL. Two fine-tuning stages follow the initial simulated-annealing placement: a congestion optimization that normalizes two-hop penalties by a macro-area factor, and a flipping decision that computes vector forces from macro–macro, macro–cell, and macro–cell–cell relations to choose orientations (Zhao et al., 22 May 2025). On seven OpenROAD benchmarks, DAS-MP reported an average 7.9% HPWL improvement relative to RTL-MP, an 82.5% reduction in congestion overflow, 36.97% improvement in WNS, 59.44% improvement in TNS, and runtime overhead below 1.5% of total placement time (Zhao et al., 22 May 2025).

A different spatial use appears in close-up novel view synthesis. MACRO, “Training-free Multi-plane Attention for Closeup Render Optimization,” addresses the scale gap between close-up target views and training-set references in 3D Gaussian splatting pipelines (Hodos et al., 4 Jul 2026). The method clusters the close-up depth map into (S,M,pssm,rsm)(S,M,p^m_{ss'},r^m_s)0 planes by K-means on reciprocal depth, computes a scale factor (S,M,pssm,rsm)(S,M,p^m_{ss'},r^m_s)1 for each reference view and plane, crops and resizes reference regions in image space before VAE encoding, and applies a depth-aware attention mask so each close-up token attends only to scale-matched reference tokens (Hodos et al., 4 Jul 2026). On DL3DV-Closeup, MACRO achieved PSNR 16.37, SSIM 0.519, LPIPS 0.321, DreamSim 0.099, and DINO 0.145; on MobileClose-10 it achieved PSNR 15.67, SSIM 0.450, LPIPS 0.480, DreamSim 0.116, and DINO 0.124, outperforming the listed 3DGS and diffusion-based baselines on perceptual metrics (Hodos et al., 4 Jul 2026). Here the acronym again names a concrete system, but the operational idea remains macro-level: depth-partitioned alignment above raw token attention.

5. Macro as aggregate scale and coverage objective

In conformal prediction, macro-coverage is defined as

(S,M,pssm,rsm)(S,M,p^m_{ss'},r^m_s)2

an intermediate criterion between marginal coverage and class-conditional coverage (Bhattacharyya et al., 26 Jun 2026). The generalized form aggregates coverage over arbitrary class groupings through a grouping function (S,M,pssm,rsm)(S,M,p^m_{ss'},r^m_s)3 and weights (S,M,pssm,rsm)(S,M,p^m_{ss'},r^m_s)4, and label-weighted conformal calibration constructs a weighted empirical mixture of groupwise score distributions to obtain a finite-sample guarantee of at least (S,M,pssm,rsm)(S,M,p^m_{ss'},r^m_s)5 conditional on group counts (Bhattacharyya et al., 26 Jun 2026). Empirically, on Pl@ntNet-300K and iNaturalist 2018, standard conformal was reported to miss the target macro-coverage in long-tail settings, while classwise conformal overshot the target with very large prediction sets. Label-weighted conformal achieved approximately the target macro-coverage, for example approximately 0.90 at (S,M,pssm,rsm)(S,M,p^m_{ss'},r^m_s)6, with average set sizes of approximately 2–4 labels rather than greater than 50 (Bhattacharyya et al., 26 Jun 2026).

In controlled leader–follower dynamics, “macro” denotes a continuum description obtained from particle systems through mean-field limits. The paper on micro-macro and macro-macro limits derives first a hybrid particle–fluid model and then a fully continuum two-fluid PDE system for leaders and followers, with convergence measured in bounded-Lipschitz duals and (S,M,pssm,rsm)(S,M,p^m_{ss'},r^m_s)7-Wasserstein distance and controlled by modulated-energy estimates (Albi et al., 6 Aug 2025). The limiting leader momentum equation contains drift toward a target (S,M,pssm,rsm)(S,M,p^m_{ss'},r^m_s)8, attraction to the followers’ center of mass, and linear damping, and one-dimensional tests showed empirical error decay of order (S,M,pssm,rsm)(S,M,p^m_{ss'},r^m_s)9 and M=A{m}M=\mathcal{A}\cup\{m\}0 as follower and leader populations increase (Albi et al., 6 Aug 2025).

Macroeconomic and energy-system uses are similarly aggregate in scale. MoMaT organizes monetary systems into micro, meso, and macro levels, with the macro level covering GDP sharing and money issuance, and focuses on “debt vortices” rather than circulation of money (Menéndez et al., 26 Jun 2025). The Bill of Exchange is modeled as the unifying contractual instrument linking micro obligations, meso liquidity, and macro money, and the software specification proposes modules such as Agent, BillOfExchange, Bank, CentralBank, and Ledger together with invariant checks account.assets + account.equity == account.liabilities and globalAssets == globalLiabilities (Menéndez et al., 26 Jun 2025). MacroEnergy.jl, by contrast, is an open-source multi-sector capacity-expansion framework whose four sector-agnostic primitives are edges, nodes, storage elements, and transformations (Macdonald et al., 24 Oct 2025). It uses JuMP, supports decomposition through companion packages, and the accompanying examples include a seven-node, 8760-hour U.S. electricity and hydrogen network solved in under 10 minutes on a single node with CPLEX, as well as a sector-coupled test with 50 locations, 5 sectors, 10 years, and 8760 operational hours solved in parallel with a 4× speed-up versus a monolithic solve (Macdonald et al., 24 Oct 2025).

In quantum information, “micro-macro” labels entanglement between a qubit and macroscopically distinct states of a mesoscopic system. Mirkamali and Cory define distinctness by

M=A{m}M=\mathcal{A}\cup\{m\}1

show that symmetric micro-macro entangled states are the most robust to single-particle noise, and derive that the loss of bipartite entanglement under single-spin measurement or loss is second order in normalized distinctness, with average entropy or negativity behaving as M=A{m}M=\mathcal{A}\cup\{m\}2 or M=A{m}M=\mathcal{A}\cup\{m\}3 (Mirkamali et al., 2024). The GHZ-limit M=A{m}M=\mathcal{A}\cup\{m\}4 loses all entanglement after one spin measurement or loss, but the paper identifies a regime in which the state remains both robust and macroscopic (Mirkamali et al., 2024).

6. Macro schemes in compression and repetitive text processing

In text compression, a macro scheme is a partition of a string into phrases represented by textual substitutions. A bidirectional macro scheme for M=A{m}M=\mathcal{A}\cup\{m\}5 partitions the string into phrases M=A{m}M=\mathcal{A}\cup\{m\}6, where M=A{m}M=\mathcal{A}\cup\{m\}7 denotes an explicit literal and M=A{m}M=\mathcal{A}\cup\{m\}8 denotes copying from another position followed by the last character M=A{m}M=\mathcal{A}\cup\{m\}9 (Russo et al., 2020). Unlike Lempel–Ziv schemes, which require pssm=Pr(st+m=sst=s,mt=m)p^m_{ss'}=\Pr(s_{t+|m|}=s' \mid s_t=s, m_t=m)0, bidirectional schemes allow both forward and backward pointers. This increased flexibility can be exponentially better on highly repetitive texts, but the decision problem of finding a valid scheme with at most pssm=Pr(st+m=sst=s,mt=m)p^m_{ss'}=\Pr(s_{t+|m|}=s' \mid s_t=s, m_t=m)1 phrases is NP-complete (Russo et al., 2020).

Russo et al. propose a simulated-annealing heuristic whose state is a valid scheme pssm=Pr(st+m=sst=s,mt=m)p^m_{ss'}=\Pr(s_{t+|m|}=s' \mid s_t=s, m_t=m)2, energy is the phrase count pssm=Pr(st+m=sst=s,mt=m)p^m_{ss'}=\Pr(s_{t+|m|}=s' \mid s_t=s, m_t=m)3, and local moves attempt phrase merges followed by random source selection, with cycle-breaking splits when needed (Russo et al., 2020). Efficient implementation uses a suffix array for occurrence enumeration and a Link-Cut Tree over the decoding forest for dynamic cycle detection. The paper also proves that when no two consecutive phrases can be merged because every concatenation is unique, the resulting local minimum is a 2-approximation of the optimum (Russo et al., 2020). Experimentally, simulated annealing matched the optimum on Fibonacci strings, drastically outperformed Lempel–Ziv on Thue–Morse strings, and achieved near-optimal behavior on random protected strings, with representative phrase counts such as pssm=Pr(st+m=sst=s,mt=m)p^m_{ss'}=\Pr(s_{t+|m|}=s' \mid s_t=s, m_t=m)4 and pssm=Pr(st+m=sst=s,mt=m)p^m_{ss'}=\Pr(s_{t+|m|}=s' \mid s_t=s, m_t=m)5 on Fibonacci pssm=Pr(st+m=sst=s,mt=m)p^m_{ss'}=\Pr(s_{t+|m|}=s' \mid s_t=s, m_t=m)6 and pssm=Pr(st+m=sst=s,mt=m)p^m_{ss'}=\Pr(s_{t+|m|}=s' \mid s_t=s, m_t=m)7 and pssm=Pr(st+m=sst=s,mt=m)p^m_{ss'}=\Pr(s_{t+|m|}=s' \mid s_t=s, m_t=m)8 on a random protected string of length approximately 5000 (Russo et al., 2020).

Taken together, these literatures suggest that “macro” functions as a marker of higher-level structure: a temporally extended action in sequential decision-making, a grouped evaluation criterion in statistical validity, a continuum or sectoral aggregation in dynamical and economic models, a large block in physical design, or a compressed phrase in textual substitution. The term is therefore not a single concept but a family of abstractions that reduce primitive complexity by introducing structure at a larger scale.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to MACRO.