OzTianlu commited on
Commit
5622e30
·
verified ·
1 Parent(s): 9dcb0f8

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +347 -3
README.md CHANGED
@@ -1,3 +1,347 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Quantitative Mapping of Computational Boundaries
2
+
3
+ [![Paper](https://img.shields.io/badge/Paper-PDF-red)](computational_boundary_paper.pdf)
4
+ [![DOI](https://img.shields.io/badge/DOI-10.57967/hf/7067-blue)](https://doi.org/10.57967/hf/7067)
5
+ [![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
6
+
7
+ **A Statistical Field Theory Approach to Phase Transitions in NP-Hard Problems**
8
+
9
+ **Author:** Zixi Li (Oz Lee)
10
+ **Affiliation:** Noesis Lab (Independent Research Group)
11
+ **Contact:** lizx93@mail2.sysu.edu.cn
12
+
13
+ ---
14
+
15
+ ## Overview
16
+
17
+ Classical computability theory tells us that computational boundaries **exist** (halting problem, P vs NP), but it doesn't answer: **where exactly are these boundaries?**
18
+
19
+ This paper presents the first **quantitative mapping** of computational phase transitions through Monte Carlo experiments on 22,000 constraint satisfaction instances. We discover universal laws governing the solvability boundary and extend this framework to natural language via pure NLP semantics.
20
+
21
+ ### Key Question
22
+
23
+ For a problem of size $L$ with constraint density $d$, what is the probability $\mu(L,d)$ of finding a solution?
24
+
25
+ **Traditional answer:** "NP-hard ⇒ exponentially hard" (asymptotic)
26
+
27
+ **Our answer:** $\mu(L,d) = \frac{1}{2}(1 - \text{erf}((d - d_c(L))/\sigma))$ where $d_c(L) = -0.0809\ln(L) + 0.501$ (exact formula)
28
+
29
+ ---
30
+
31
+ ## Main Contributions
32
+
33
+ ### 1. Three Universal Laws
34
+
35
+ We discover three fundamental laws governing computational boundaries:
36
+
37
+ **Logarithmic Scaling Law:**
38
+ ```
39
+ d_c(L) = -0.0809 ln(L) + 0.501
40
+ ```
41
+ with MSE ∼ 10⁻³² (machine precision!)
42
+
43
+ **Universal Phase Transition Kernel:**
44
+ ```
45
+ K(x) = 1/2 (1 - erf(x/σ))
46
+ ```
47
+ with universal constant σ = 0.1007
48
+
49
+ **Self-Constraint Theory:**
50
+ ```
51
+ C = 1 - λ_min/λ_max
52
+ ```
53
+ Constraint strength emerges from eigenvalue spectrum of word embedding covariance—no heuristic rules needed!
54
+
55
+ ### 2. Complete Prediction Formula
56
+
57
+ Combining all discoveries:
58
+
59
+ ```
60
+ μ(L,d) = 1/2 (1 - erf((d - d_c(L))/0.1007))
61
+ where d_c(L) = -0.0809 ln(L) + 0.501
62
+ ```
63
+
64
+ This formula predicts solvability probability for any problem instance.
65
+
66
+ ### 3. Natural Language Extension
67
+
68
+ We extend the framework to arbitrary problems described in natural language:
69
+
70
+ ```
71
+ μ(I,C) = 1/2 (1 - erf((C - C_c(I))/σ))
72
+ where:
73
+ I = information complexity (from text)
74
+ C = self-constraint strength (from embeddings)
75
+ C_c(I) = -0.0809 I + 0.501
76
+ ```
77
+
78
+ ---
79
+
80
+ ## Methodology: The Pea Experiment
81
+
82
+ We propose a **Monte Carlo boundary mapping** approach inspired by area estimation:
83
+
84
+ 1. **Throw peas randomly** across parameter space (L, d)
85
+ 2. For each point, sample N problem instances
86
+ 3. Run solver and record success/failure
87
+ 4. Estimate μ(L,d) = successes/N
88
+ 5. Map the entire solvability landscape
89
+
90
+ **Total experiments:** 22,000 samples
91
+ **Problem sizes:** L ∈ {8, 12, 16, 24, 32, 48, 64, 96, 128, 192, 256}
92
+ **Constraint densities:** d ∈ [0.005, 0.4]
93
+
94
+ ---
95
+
96
+ ## Key Results
97
+
98
+ ### Phase Transition Discovery
99
+
100
+ ![Phase Diagram](phase_diagram.png)
101
+
102
+ Sharp transitions observed with:
103
+ - Transition width Δd ≈ 0.1
104
+ - Low density (d < 0.05): μ = 0.996 ± 0.012
105
+ - High density (d > 0.3): μ = 0.278 ± 0.102
106
+ - Transition amplitude: Δμ ≈ 0.72
107
+
108
+ ### Universal Kernel Collapse
109
+
110
+ ![Universal Kernel](universal_kernel_analysis.png)
111
+
112
+ All phase transition curves collapse onto a single kernel when aligned:
113
+ - Standard deviation after alignment: σ = 0.029
114
+ - Reconstruction MSE = 0.0057
115
+ - Best fit: Error function (cumulative Gaussian)
116
+
117
+ ### Natural Language Predictions
118
+
119
+ | Problem | I | C_self | C_c | μ | Prediction |
120
+ |---------|---|--------|-----|---|------------|
121
+ | Sort array of numbers | 1.54 | 0.09 | 0.38 | 1.00 | ✓ Trivial |
122
+ | Hamiltonian cycle in graph | 1.82 | 0.24 | 0.35 | 0.94 | ✓ Easy |
123
+ | Sudoku with 40 givens | 2.03 | 0.35 | 0.34 | 0.41 | ✓ Hard |
124
+ | TSP + 5 required edges | 2.53 | 0.39 | 0.30 | 0.10 | ✓ Intractable |
125
+
126
+ Predictions match human intuition without running any solver!
127
+
128
+ ---
129
+
130
+ ## Theoretical Impact
131
+
132
+ ### Connections Across Disciplines
133
+
134
+ This work reveals deep connections between:
135
+
136
+ - **Computation:** Phase transitions in solvability
137
+ - **Information Theory:** Shannon entropy and constraint budgets
138
+ - **Statistical Physics:** Landau phase transition theory
139
+ - **Geometry:** Spectral properties of embedding spaces
140
+
141
+ ### Paradigm Shift
142
+
143
+ | Traditional Complexity | Our Approach |
144
+ |------------------------|--------------|
145
+ | Constructive proofs | Monte Carlo sampling |
146
+ | Asymptotic bounds | Exact μ values |
147
+ | Discrete classes (P, NP) | Continuous phase diagram |
148
+ | O(·) notation | Machine precision MSE |
149
+
150
+ ### Philosophical Implications
151
+
152
+ Computability is:
153
+ - Not **binary** but **probabilistic** (μ ∈ [0,1])
154
+ - Not **qualitative** but **quantitative** (exact formulas)
155
+ - Not **symbolic** but **geometric** (embedding properties)
156
+
157
+ ---
158
+
159
+ ## Repository Contents
160
+
161
+ ```
162
+ .
163
+ ├── computational_boundary_paper.pdf # Full paper
164
+ ├── computational_boundary_paper.tex # LaTeX source
165
+ ├── README.md # This file
166
+ ├── phase_diagram.png # Phase transition visualization
167
+ ├── universal_kernel_analysis.png # Universal kernel collapse
168
+ ├── critical_boundary_mu50.png # Critical boundary curve
169
+ ├── multi_threshold_boundaries.png # Multiple threshold analysis
170
+ ├── tsp_phase_diagram.png # TSP cross-validation
171
+ └── solvability_predictor_guide.png # Prediction framework
172
+ ```
173
+
174
+ ---
175
+
176
+ ## Citation
177
+
178
+ If you use this work in your research, please cite:
179
+
180
+ ```bibtex
181
+ @misc{oz_lee_2025,
182
+ author = { Oz Lee },
183
+ title = { Quantitative_Mapping_of_Computational_Boundaries (Revision 9dcb0f8) },
184
+ year = 2025,
185
+ url = { https://huggingface.co/datasets/OzTianlu/Quantitative_Mapping_of_Computational_Boundaries },
186
+ doi = { 10.57967/hf/7067 },
187
+ publisher = { Hugging Face }
188
+ }
189
+ ```
190
+
191
+ ---
192
+
193
+ ## Key Findings Summary
194
+
195
+ ### 1. Logarithmic Scaling (Machine Precision)
196
+
197
+ Comparison of different scaling models:
198
+
199
+ | Model | Formula | MSE |
200
+ |-------|---------|-----|
201
+ | Power law | d = 0.722 L⁻⁰·³⁹¹ | 1.53×10⁻⁴ |
202
+ | Exponential | d = 0.287 e⁻⁰·⁰⁰⁸⁷ᴸ | 3.17×10⁻⁴ |
203
+ | **Logarithmic** | **d = -0.0809 ln(L) + 0.501** | **2.62×10⁻³²** |
204
+ | Linear | d = -0.00151 L + 0.275 | 6.45×10⁻⁴ |
205
+
206
+ The logarithmic model achieves **machine precision**—unprecedented in complexity theory!
207
+
208
+ ### 2. Self-Constraint Theory
209
+
210
+ Traditional keyword-based methods vs. our approach:
211
+
212
+ | Feature | Keyword Method | Self-Constraint |
213
+ |---------|----------------|-----------------|
214
+ | Keyword list | Required | ✓ Not needed |
215
+ | Domain dependence | Strong | ✓ None |
216
+ | Math foundation | Empirical | ✓ Spectral analysis |
217
+ | Physical meaning | Weak | ✓ Strong (eigenvalues) |
218
+ | Interpretability | Low | ✓ High (geometric) |
219
+
220
+ **Core insight:** Constraints are not linguistic features—they are **geometric properties** of semantic embedding spaces.
221
+
222
+ ### 3. Information-Constraint Phase Diagram
223
+
224
+ Universal scaling law:
225
+ ```
226
+ ∂C_c/∂I = -0.0809
227
+ ```
228
+
229
+ **Interpretation:** Each additional bit of information reduces constraint tolerance by 8.09%.
230
+
231
+ ---
232
+
233
+ ## Applications
234
+
235
+ ### 1. Algorithm Selection
236
+ Predict problem difficulty before running any solver—choose appropriate algorithm based on μ prediction.
237
+
238
+ ### 2. Constraint Generation
239
+ Design problem instances with target difficulty by controlling (L, d) parameters.
240
+
241
+ ### 3. Complexity Estimation
242
+ Estimate computational cost from natural language problem descriptions.
243
+
244
+ ### 4. Educational Tools
245
+ Visualize computational phase transitions for teaching complexity theory.
246
+
247
+ ---
248
+
249
+ ## Future Directions
250
+
251
+ ### Theory
252
+ - Derive α, β, σ from first principles
253
+ - Prove asymptotic properties of logarithmic law
254
+ - Classify other NP problems into universality classes
255
+ - Explore quantum computation phase transitions
256
+
257
+ ### Experiments
258
+ - More problem types (SAT, graph coloring, knapsack)
259
+ - Different solvers (SMT, DPLL, genetic algorithms)
260
+ - Industrial real-world instances
261
+ - Large-scale parallelization
262
+
263
+ ### Applications
264
+ - Automated algorithm selection systems
265
+ - Intelligent constraint generation
266
+ - Complexity estimation APIs
267
+ - Interactive educational software
268
+
269
+ ---
270
+
271
+ ## Limitations
272
+
273
+ 1. **Model dependence:** NLP predictions rely on sentence-transformers/all-MiniLM-L6-v2
274
+ 2. **Solver baseline:** Only tested backtracking (other algorithms may differ)
275
+ 3. **Problem scope:** Mainly constraint satisfaction (need more problem types)
276
+ 4. **Small-size effects:** Discrete artifacts for L < 16
277
+ 5. **Language:** Only validated on English text
278
+
279
+ ---
280
+
281
+ ## Technical Details
282
+
283
+ ### Benchmark Problem: OpenXOR
284
+
285
+ A minimal NP-hard problem with:
286
+ - **Search space:** 2ⁿ (exponential)
287
+ - **Solution density:** ≈ 2⁻ᵏ for k checkpoints
288
+ - **Minimal DSL:** Only 2 operations (XOR, NOP)
289
+ - **No confounds:** Pure constraint satisfaction
290
+
291
+ ### Self-Constraint Computation
292
+
293
+ For problem text T with words {w₁, ..., wₙ}:
294
+
295
+ 1. Get embeddings: V = [v₁, ..., vₙ] ∈ ℝⁿˣᵈ
296
+ 2. Compute covariance: Σ = Cov(V)
297
+ 3. Eigenvalue decomposition: Σ = Σᵢ λᵢ uᵢuᵢᵀ
298
+ 4. Extract constraint: C = 1 - λ_min/λ_max
299
+
300
+ **Physical intuition:**
301
+ - λ_min ≈ λ_max (isotropic) ⇒ unconstrained (C ≈ 0)
302
+ - λ_min ≪ λ_max (compressed) ⇒ constrained (C ≈ 1)
303
+
304
+ ### Information Complexity
305
+
306
+ ```
307
+ I = ln(n+1) × (1 + ln(1 + σ²_sem)) × r_unique
308
+ ```
309
+
310
+ where:
311
+ - ln(n+1) = word count (problem size)
312
+ - σ²_sem = semantic diversity
313
+ - r_unique = unique word ratio (information density)
314
+
315
+ ---
316
+
317
+ ## Acknowledgments
318
+
319
+ We thank the "pea experiment" inspiration from Monte Carlo area estimation. This work demonstrates the power of statistical methods in theoretical computer science.
320
+
321
+ ---
322
+
323
+ ## License
324
+
325
+ MIT License - See LICENSE file for details
326
+
327
+ ---
328
+
329
+ ## Contact
330
+
331
+ For questions, collaborations, or discussions:
332
+
333
+ **Zixi Li (Oz Lee)**
334
+ Email: lizx93@mail2.sysu.edu.cn
335
+ Affiliation: Noesis Lab (Independent Research Group)
336
+
337
+ ---
338
+
339
+ ## Related Work
340
+
341
+ - **The Incompleteness of Reasoning:** [HuggingFace Dataset](https://huggingface.co/datasets/OzTianlu/The_Incompleteness_of_Reasoning)
342
+ - Previous work on computational boundaries and reasoning limits
343
+
344
+ ---
345
+
346
+ **Last Updated:** January 2025
347
+ **Version:** Revision 9dcb0f8