- The paper presents TaxSolver, an optimization framework that formulates tax reform as a constrained piecewise linear problem.
- It demonstrates recovery and reform of complex tax codes while accommodating behavioral responses and stringent policy constraints.
- Empirical case studies, including a Dutch system simulation, validate reductions in marginal tax pressure and rule simplification.
Introduction and Motivation
Optimal taxation theory delineates the conditions under which income tax systems maximize social welfare, subject to behavioral and informational constraints. However, the operationalization of these ideals within actual tax codes is hindered by multifaceted practical constraints—administrative, political, and distributional. The paper "Implementing Optimal Taxation: A Constrained Optimization Framework for Tax Reform" (2508.03708) presents a framework that parametrizes the entire statutory tax code as a set of piecewise linear mappings, thus transforming the problem of tax reform into an explicit, constrained optimization task.
Crucially, this approach enables policymakers to encode diverse constraints—including bounds on marginal tax rates, limits on income swings, and demands of revenue neutrality or simplicity—directly into the formulation, affording both rigorous tractability and policy transparency. The framework does not attempt to characterize the abstract shape of the optimal tax function itself, but rather optimizes over the actual rules, brackets, and benefits that comprise the statutory system.
A tax code is decomposed into collections of additive, piecewise linear tax rules. Each rule is a function mapping relevant inputs (e.g., taxable income, household characteristics) and possibly individual features to both absolute and marginal tax pressures. Bracketed schemes, benefits, and deductibles are all represented in this canonical form. The additivity and piecewise linearity of subcomponents allow the aggregation into a single-system representation per tax group:
fk(xi)=xi∈xi∑r∑fr(xi,ϕr,k,αr,k)+Zr,k
where the cutoffs ϕr,k and rates αr,k are variables over which the optimization is performed, subject to explicit support constraints.
Tax design is then posed as the search for an alternative parameter vector A⋆ (and possibly a new support Φ⋆), which adheres to a permissible constraint set C (e.g., convex polytope defined by upper/lower bounds on marginal rates, income stability requirements per individual, global revenue constraints, or even political constraints such as no change to a designated rule).
The framework can use linear or mixed-integer optimization as dictated by the structure of the constraints and objective, achieving exact recoverability of the status quo for “tight” constraints, or producing families of implementable reforms under “looser” conditions.
Case Studies and Empirical Implementation
The practical flexibility of the framework is demonstrated through both stylized and realistic reconstructions.
A simple progressive tax scheme is used to illustrate exact recovery under “tight” constraints (i.e., requiring all taxpayers' net burdens to remain unchanged) and systematized generation of new rate schedules when objectives or constraints are relaxed (e.g., guaranteeing a minimum increase in net income for low earners, allowing bounded decreases for others).
Figure 2: Income and tax liability distributions for a toy system, demonstrating exact recovery of rates under tight constraints and reform rates under relaxed constraints.
With additional real-world-like features such as health care benefits and child benefits, the recovery extends unaltered. The introduction of marginal pressure caps, maintenance of select rules, or the handling of benefit phase-out modifications is accommodated by direct adjustment of constraints and optimizer variables.
Heterogeneous Tax Groups and Rule-Set Complexity
In more complex systems, group heterogeneity based on partnership status, labor market position, or parental status is modeled via group-specific rates and supports. The framework can adjust the granularity of tax groups and selectively remove brackets/rules to enforce system simplification or harmonization, again by constraint manipulation.
Figure 1: Recovery and reform of a system with multiple tax groups, demonstrating the flexibility to enforce distributional and administrative objectives directly.
Behavioral Responses and Dynamic Adaptation
Taxable income elasticities, representing behavioral adjustment to marginal rates, are incorporated directly into the optimization’s functional constraints. This leads to non-linear, but numerically tractable, system formulations solved either via quadratic programming or iterative fixed-point updating.
Figure 3: Marginal rate schedules as a function of assumed elasticities, showing the optimality-induced flattening of rate progressions for higher behavioral responsiveness.
The results verify that ceteris paribus, greater assumed elasticities force less aggressive rate schedules in the upper brackets to avoid predicted revenue losses from behavioral shifts.
The methodology is fully deployed on a simulation of the Dutch tax code, leveraging a large, representative microdata sample and the full complexity of the real statutory system. The optimization is tasked with smoothing excessive marginal rate “spikes,” reducing system complexity, and safeguarding lower/middle-income households from adverse welfare shocks—all under explicit constraints on revenue neutrality. It is shown that substantial improvements (significant reductions in maximum marginal pressure) can be jointly achieved with major simplifications in operational rules, given appropriate relaxations.
Figure 4: Dutch system application. (Top left) Extreme marginal tax spikes in the status quo; (top right) trade-off between rate caps, revenue, and system complexity; (bottom row) examples of smoothed marginal schedules after reform.
Numerical and Structural Properties
The piecewise-linearization of all rules ensures that the majority of the optimization problems are tractable with commercial solvers (Gurobi, etc.). For exact recovery and linear constraints/objectives, global optimality is assured. When group sizes, supports, or behavioral extensions generate large or non-linear problem scales, heuristic primal-dual or iterative approaches are applied. Importantly, infeasibility guarantees are explicit: no solution is returned if the constraint system is contradictory.
Strong empirical claims include:
- Recovery of the real-world system is exact when starting from sufficiently granular data and “tight” constraints.
- Systematic rate capping and group harmonization can jointly decrease marginal pressure and rule complexity, while maintaining revenue within strict tolerances, as exemplified in the Dutch case.
- Explicit integration of behavioral elasticities modifies the optimal shape of the rate schedule in a way analytically predicted by public economics, but computationally realized at the level of statutory code parameters.
- Open-source implementation (TaxSolver) allows for immediate policy experimentation, with deployment already observed in practical governmental reform processes.
Implications and Future Directions
The direct optimization of actual statutory parameters, rather than only evaluating theoretical schedules or ex post reforms, enables rigorous, transparent, and implementable policy design. The framework bridges a key gap between optimal tax theory and “real-world” constraints, making explicit the feasibility or impossibility of meeting competing policy objectives.
Practical implications include vastly accelerated model cycles for reform—complete families of compliant tax systems can be generated, compared, and certified in a single optimization, rather than requiring months of ad hoc legislative negotiation.
Theoretically, the approach creates new opportunities for the structural estimation of social welfare weights, the analysis of political constraints as explicit feasibility sets, and the integration of data-driven behavioral modeling. Future AI developments may focus on coupling this approach with agent-based or reinforcement learning simulations for endogenously updating behavioral elasticities and preferences.
Conclusion
This paper introduces a versatile, computationally rigorous framework for implementing optimal tax reforms in realistic settings. By formalizing the entire tax code as a constrained piecewise linear system and deploying mature optimization methods, the authors bridge the crucial gap between normative taxation theory and practical policy. The framework’s demonstrable capacity to recover, reform, and simplify complex real-world codes—while enforcing detailed practical and political constraints—marks a notable advance in the computational public economics toolkit. The open-source TaxSolver implementation ensures broad accessibility and immediate policy relevance, with substantial potential for both further academic development and applied institutional impact.