Behavior Learning (BL): Learning Hierarchical Optimization Structures from Data
Organizations: Xiamen University · University of Tübingen · Xi’an Jiaotong University
Abstract
Inspired by behavioral science, we propose Behavior Learning (BL), a novel general-purpose machine learning framework that learns interpretable and identifiable optimization structures from data, ranging from single optimization problems to hierarchical compositions. It unifies predictive performance, intrinsic interpretability, and identifiability, with broad applicability to scientific domains involving optimization. BL parameterizes a compositional utility function built from intrinsically interpretable modular blocks, which induces a data distribution for prediction and generation. Each block represents and can be written in symbolic form as a utility maximization problem (UMP), a foundational paradigm in behavioral science and a universal framework of optimization. BL supports architectures ranging from a single UMP to hierarchical compositions, the latter modeling hierarchical optimization structures. Its smooth and monotone variant (IBL) guarantees identifiability. Theoretically, we establish the universal approximation property of BL, and analyze the M-estimation properties of IBL. Empirically, BL demonstrates strong predictive performance, intrinsic interpretability and scalability to high-dimensional data. Code: https://github.com/MoonYLiang/Behavior-Learning ; install via pip install blnetwork.
Figures & tables
| Model | MNIST | Fashion-MNIST | ||
|---|---|---|---|---|
| ECE | NLL | ECE | NLL | |
| E-MLP (depth=1) | 0.02 0.00 | 0.20 0.02 | 0.08 0.00 | 0.74 0.01 |
| BL (depth=1) | 0.02 0.00 | 0.26 0.01 | 0.05 0.00 | 0.36 0.01 |
| E-MLP (depth=2) | 0.02 0.00 | 0.23 0.02 | 0.09 0.00 | 0.89 0.03 |
| BL (depth=2) | 0.02 0.00 | 0.16 0.01 | 0.07 0.00 | 0.44 0.01 |
| E-MLP (depth=3) | 0.02 0.00 | 0.16 0.02 | 0.09 0.00 | 0.85 0.04 |
| Model | MNIST | FashionMNIST | AG News | Yelp |
|---|---|---|---|---|
| E-MLP (depth=1) | 100.59 0.29 | 73.57 1.20 | 14.69 0.40 | 179.37 0.73 |
| BL (depth=1) | 110.63 3.34 | 96.52 2.90 | 17.20 0.06 | 181.07 1.80 |
| E-MLP (depth=2) | 102.64 0.26 | 78.25 0.28 | 15.76 0.06 | 179.22 0.66 |
| BL (depth=2) | 122.85 3.95 | 114.43 3.72 | 21.78 0.08 | 180.38 1.44 |
| E-MLP (depth=3) | 104.52 0.30 | 85.57 1.19 | 16.95 0.05 | 178.99 1.42 |
| BL (depth=3) | 140.17 4.42 | 130.03 4.96 | 26.29 0.24 | 180.36 0.91 |
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
| Name | Size | #Features | Task type | Field |
|---|---|---|---|---|
| German Credit | 1,000 | 20 | Binary cls. | Finance |
| Adult Income | 48,842 | 14 | Binary cls. | Economics |
| COMPAS (two-years) | 5,278 | 13 | Binary cls. | Law & Society |
| Bank Marketing | 45,211 | 16 | Binary cls. | Marketing |
| Planning Relax | 182 | 12 | Binary cls. | Psychology |
| EEG Eye State | 14,980 | 14 | Binary cls. | Neuroscience |
| Methodological Family | Model Name |
|---|---|
| Neural networks | Standard MLP |
| Neural Additive Model (NAM) | |
| TabNet | |
| Linear regressors | ElasticNet |
| Logistic Regression | |
| Polynomial Logistic Regression |
| Model | Parameter | Search space |
|---|---|---|
| BL(Single) | learning_rate | {1e , 1e } |
| batch_size | {64, 128, 256, 512} | |
| max_grad_norm | {1.0, 2.0, 5.0} |
| Model | Parameter | Search space |
|---|---|---|
| BL(Shallow) | learning_rate | LogUniform{5e , 5e } |
| batch_size | {64, 128, 256, 512} | |
| n_layers | UniformInt{1, 3} | |
| n_first_layer | {24, 30, 36, 40} | |
| n_middle_layer | {8, 6, 4} | |
| n_last_layer | {2, 4, 6} |
| Model | Parameter | Search space |
|---|---|---|
| MLP | learning_rate | LogUniform{1e , 1e } |
| batch_size | {32, 64, 128, 256} | |
| n_layers | UniformInt{2, 4} | |
| hidden_size | UniformInt{32, 256} | |
| weight_decay | LogUniform{1e , 1e } | |
| NAM | learning_rate | LogUniform{1e , 1e } |
| Variable | Description |
|---|---|
| CRIM | Per-capita crime rate by town |
| ZN | Proportion of residential land zoned for lots over 25,000 sq.ft. |
| INDUS | Proportion of non-retail business acres per town |
| CHAS | Charles River dummy variable (=1 if tract bounds river) |
| NOX | Nitric oxide concentration (parts per 10 million) |
| RM | Average number of rooms per dwelling |
| Layer | Block | Representative preference |
| Layer 1 | Location-Sensitive Buyer | Values river access, transport accessibility, and neighborhood amenities. |
| Risk-Sensitive Buyer | Averse to local disamenities such as pollution and environmental risk. | |
| Economic-Sensitive Buyer | Sensitive to school quality and neighborhood socio-economic composition. | |
| Zoning-Contrast Buyer | Responds to zoning and land-use patterns that shape local housing supply. | |
| Affordability-Preferring Buyer | Strongly prefers more affordable housing and dislikes high prices. | |
| Layer 2 | Integrated Location–Economic Buyer | Jointly evaluates location and socio-economic attributes in an integrated way. |
| Layer / Block | Representative reference |
|---|---|
| Layer 1: Location-Sensitive Buyer | Gibbons & Machin (2005) |
| Layer 1: Risk-Sensitive Buyer | Chay & Greenstone (2005) |
| Layer 1: Economic-Sensitive Buyer | Black (1999) |
| Layer 1: Zoning-Contrast Buyer | Glaeser & Gyourko (2002) |
| Layer 1: Affordability-Preferring Buyer | McFadden (1977) |
| Layer 2: Integrated Location–Economic Buyer | Bayer et al. (2007) |
| Model | MNIST | Fashion-MNIST | ||
|---|---|---|---|---|
| AUPR | FPR@95 | AUPR | FPR@95 | |
| E-MLP (depth=1) | 89.37 1.52 | 35.57 5.87 | 91.35 1.25 | 28.24 4.37 |
| BL (depth=1) | 91.57 2.39 | 47.81 11.29 | 91.79 0.90 | 38.86 2.57 |
| E-MLP (depth=2) | 91.52 1.27 | 28.89 2.85 | 86.19 2.27 | 47.72 4.79 |
| BL (depth=2) | 91.20 1.22 | 52.71 18.66 | 89.30 2.47 | 42.65 9.53 |
| E-MLP (depth=3) | 90.04 1.89 | 31.92 5.76 | 84.30 1.50 | 54.49 2.74 |
| Dataset | Model | # Parameters |
|---|---|---|
| MNIST & FashionMNIST | E-MLP (depth=1) | 203,530 |
| BL (depth=1) | 208,384 | |
| E-MLP (depth=2) | 235,146 | |
| BL (depth=2) | 219,264 | |
| E-MLP (depth=3) | 238,314 | |
| BL (depth=3) | 221,684 |
| Block 11 | Block 12 | |||||
|---|---|---|---|---|---|---|
| Variable | ||||||
| 1.003 | 0.997 | 0.999 | 0.997 | 1.003 | 1.000 | |
| per capita crime rate (CRIM) | 0.21 | 0.14 | 0.03 | 0.12 | 0.09 | 0.25 |
| residential land proportion (ZN) | 0.23 | -0.04 | -0.27 | 0.25 | 0.00 | 0.09 |
| non-retail business acreage (INDUS) | -0.06 | 0.21 | 0.25 | 0.16 | 0.22 | 0.27 |
| Charles River dummy (CHAS) | 0.25 | 0.04 | -0.24 | -0.12 | -0.20 | -0.23 |
| Variable | |||||
|---|---|---|---|---|---|
| 1.000 | 0.998 | 1.003 | 1.002 | 1.000 | |
| per capita crime rate (CRIM) | 0.21 | 0.12 | 0.17 | -0.09 | 0.06 |
| residential land proportion (ZN) | 0.23 | 0.25 | -0.07 | -0.22 | -0.16 |
| non-retail business acreage (INDUS) | -0.06 | 0.16 | 0.16 | 0.23 | -0.14 |
| Charles River dummy (CHAS) | 0.25 | -0.12 | -0.22 | -0.05 | -0.01 |
| nitric oxide concentration (NOX) | -0.06 | 0.16 | -0.14 | 0.24 | 0.16 |
| Block 21 | Block 22 | Block 23 | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Variable | |||||||||
| 1.000 | 1.000 | 1.000 | 0.999 | 1.003 | 1.002 | 1.001 | 1.002 | 0.999 | |
| Block 11 output ( ) | 0.28 | 0.06 | -0.20 | -0.31 | 0.24 | 0.18 | -0.29 | -0.08 | 0.22 |
| Block 12 output ( ) | 0.21 | -0.11 | -0.09 | -0.44 | 0.12 | -0.22 | 0.15 | -0.22 | 0.20 |
| Block 13 output ( ) | -0.40 | 0.18 | -0.44 | -0.36 | -0.01 | -0.09 | -0.13 | -0.14 | 0.32 |
| Block 14 output ( ) | -0.27 | -0.17 | 0.30 | 0.33 | -0.34 | -0.26 | 0.28 | -0.42 | -0.34 |
Interpretable ML
Interpretable machine learning develops models and explanations that make predictions, evidence, and decision processes understandable to people.
See all 306 papers