1
-Testing Sofya Raskhodnikova Penn State University, visiting - - PowerPoint PPT Presentation
-Testing Sofya Raskhodnikova Penn State University, visiting - - PowerPoint PPT Presentation
-Testing Sofya Raskhodnikova Penn State University, visiting Boston University and Harvard Joint work with Piotr Berman (Penn State), Grigory Yaroslavtsev (Penn State Brown) 1 Property Testing Models Tolerant Property Tester
2
Tolerant Property Tester [Parnas Ron Rubinfeld 06]
Far from YES
YES
Reject with probability 2/3 Donβt care Accept with probability β₯ π/π
ο³
Property Testing Models
Equivalent to tolerant testing: estimating distance to the property. Two objects are at distance π = they differ in an π fraction of places
Property Tester [Rubinfeld Sudan 96,
Goldreich Goldwasser Ron 98]
Close to YES
Far from YES
YES
Reject with probability 2/3 Donβt care Accept with probability β₯ π/π
ο³
π π1 π2
Why Hamming Distance?
- Nice probabilistic interpretation
β probability that two functions differ on a random point in the domain
- Natural measure for
β algebraic properties (linearity, low degree) β properties of graphs and other combinatorial objects
- Motivated by applications to probabilistically checkable
proofs (PCPs)
- It is equivalent to other natural distances for
β properties of Boolean functions
3
Which stocks grew steadily?
Data from http://finance.google.com
ππ-Testing
for properties of real-valued data
Use ππ-metrics to Measure Distances
- Functions π, π: πΈ β 0,1 over (finite) domain πΈ
- For π β₯ 1
ππ π, π = π β π
π = π¦βπΈ
π π¦ β π π¦
π 1/π
π0 π, π = π β π
0 =
π¦ β πΈ: π π¦ β π π¦
- ππ π, π =
π βπ π 1 π
6
7
Tolerant Property Tester
Far from YES
YES
Reject with probability 2/3 Donβt care Accept with probability β₯ π/π
ο³
π΄π-Testing and Tolerant π΄π-Testing
Property Tester
Close to YES
Far from YES
YES
Reject with probability 2/3 Donβt care Accept with probability β₯ π/π
ο³
π π1 π2
Functions π, π: πΈ β [0,1] are at distance π if ππ =
πβπ π π π
= π.
New ππ-Testing Model for Real-Valued Data
- Generalizes standard π0-testing
- For π > 0 still have a nice probabilistic interpretation:
distance ππ π, π = π π β π π
1/π
- Compatible with existing PAC-style learning models
(preprocessing for model selection)
- For Boolean functions, π0 π, π = ππ π, π π.
8
Our Contributions
- 1. Relationships between ππ-testing models
- 2. Algorithms
β ππ-testers for π β₯ 1
- monotonicity, Lipschitz, convexity
β Tolerant ππ-tester for π β₯ 1
- monotonicity in 1D (aka sortedness)
οΆOur ππ-testers beat lower bounds for π0-testers οΆSimple algorithms backed up by involved analysis οΆUniformly sampled (or easy to sample) data suffices
- 3. Nearly tight lower bounds
9
Implications for π΄π-Testing
Some techniques/observations/results carry over to π0-testing
β Improvement on Levinβs work investment strategy Gives improvements in run time of testers for
- Connectivity of bounded-degree graphs [Goldreich Ron 02]
- Properties of images [R 03]
- Multiple-input problems [Goldreich 13]
β First example of monotonicity testing problem where adaptivity helps β Improvements to π0-testers for Boolean functions
10
Relationships between ππ-Testing Models
Relationships Between ππ-Testing Models
π·π(πΈ,π») = complexity of ππ-testing property πΈ with distance parameter π»
- e.g., query or time complexity
- for general or restricted (e.g., nonadaptive) tests
For all properties πΈ
- ππ-testing is no harder than Hamming testing
π·π(πΈ,π») β€ π·π(πΈ,π»)
- ππ-testing for π > 1 is close in complexity to ππ-testing
π·π(πΈ,π») β€ π·π(πΈ,π») β€ π·π(πΈ,π»π)
12
Relationships Between ππ-Testing Models
π·π(πΈ,π») = complexity of ππ-testing property πΈ with distance parameter π»
- e.g., query or time complexity
- for general or restricted (e.g., nonadaptive) tests
For properties of Boolean functions π: πΈ β 0,1
- ππ-testing is equivalent to Hamming testing
π·π(πΈ,π») = π·π(πΈ,Ξ΅)
- ππ-testing for π > 1 is equivalent to ππ-testing
with appropriate distance parameter
π·π(πΈ,π») = π·π(πΈ,π»π)
13
Relationships: Tolerant ππ-Testing Models
π·π(πΈ,π»π, π»π) = complexity of tolerant ππ-testing property πΈ with distance parameters π1, π2
- E.g., query or time complexity
- for general or restricted (e.g., nonadaptive) tests
For all properties πΈ
- No obvious relationship between tolerant ππ-testing
and tolerant Hamming testing
- ππ-testing for π > 1 is close in complexity to ππ-testing
π·π(πΈ,π»π
π, Ξ΅2) β€ π·π(πΈ,π»π, π»π) β€ π·π(πΈ,π»π, π»π π)
14
Relationships: Tolerant ππ-Testing Models
π·π(πΈ,π»π, π»π) = complexity of tolerant ππ-testing property πΈ with distance parameters π1, π2
- E.g., query or time complexity
- for general or restricted (e.g., nonadaptive) tests
For properties of Boolean functions π: πΈ β 0,1
- ππ-testing is equivalent to Hamming testing
π·π(πΈ,π»π, π»π) = π·π(πΈ,π»π, π»π)
- ππ-testing for π > 1 is equivalent to ππ-testing
with appropriate distance parameters d
π·π(πΈ,π»π, π»π) = π·π(πΈ,π»π
π, π»π π)
15
ππ£π πππ‘π£ππ’π‘
Property: Monotonicity
Monotonicity
- Domain D=[π]π (vertices of π-dim hypercube)
- A function π: πΈ β R is monotone
if increasing a coordinate of π¦ does not decrease π π¦ .
- Special case π = 1
π: [π] β R is monotone β π 1 , β¦ π(π) is sorted. One of the most studied properties in property testing
[ErgΓΌn Kannan Kumar Rubinfeld Viswanathan , Goldreich Goldwasser Lehman Ron, Dodis Goldreich Lehman R Ron Samorodnitsky, Batu Rubinfeld White, Fischer Lehman Newman R Rubinfeld Samorodnitsky, Fischer, Halevy Kushilevitz, Bhattacharyya Grigorescu Jung R Woodruff, ..., Chakrabarty Seshadhri, Blais R Yaroslavtsev, Chakrabarty Dixit Jha Seshadhri]
17
(1,1,1) (π, π, π)
Monotonicity Testers: Running Time
18
π π0 ππ π β [0,1]
Ξ log π π»
[ErgΓΌn Kannan Kumar Rubinfeld Viswanathan 00, Fischer 04]
Ξ 1 π»π
π π β [0,1]
Ξ π β log π π»
[Chakrabarty Seshadhri 13]
O
π π»π log π π»π
Ξ©
1 π»π log 1 π»π for π = 2
nonadaptive 1-sided error
Monotonicity Testers: Running Time
19
π π0 ππ π β {0,1}
Ξ 1 π» Ξ 1 π»π
π π β {0,1}
Ξ π π» β log3 π π»
[Dodis Goldreich Lehman R Samorodnitsky 99]
O
π π»π log π π»π
Ξ©
1 π»π log 1 π»π for π = 2
nonadaptive 1-sided error Ξ
1 π»π
for constant π adaptive 1-sided error
20
π1-Testing of Monotonicity
Monotonicity: Reduction to Boolean Functions
Given π: πΈ β [0,1], a Boolean threshold function π(π): πΈ β {0,1} π(π) π¦ = 1 if π π¦ β₯ π’ 0 otherwise
- Decomposition: π π¦ =
1 π(π) π¦ ππ
- M = class of monotone functions
Characterization Theorem
π1 π, π = 0
1π1 π(π), π ππ
21
1 π(π) π¦ π π π¦
Characterization Theorem: One Direction
- βπ’ β 0,1 , let ππ’=closest monotone (Boolean) function to π(π).
- Let π = 0
1ππ’ππ. Then π is monotone, since ππ’ are monotone.
22
π1 π, π β€ π β π 1 =
1π(π)ππ β 0 1ππ’ππ 1
=
1(π(π)βππ’)ππ 1
β€ 0
1 π(π) β ππ’ 1ππ
= 0
1π1 π(π), π ππ
Because π is monotone Decomposition & definition of π Triangle inequality Definition of ππ’
π1 π, π β€ 0
1π1 π(π), π ππ
Monotonicity: Using Characterization Theorem
We use Characterization Theorem to get monotonicity π1-testers and tolerant testers from standard property testers for Boolean functions.
23
Characterization Theorem
π1 π, π = 0
1π1 π(π), π ππ
π1-Testers from Testers for Boolean Ranges
A nonadaptive, 1-sided error π0-test for monotonicity of π: πΈ β {0,1} is also an π1-test for monotonicity of π: πΈ β [0,1]. Proof:
- A violation (π¦, π§):
- A nonadaptive, 1-sided error test queries a random set π β πΈ
and rejects iff π contains a violation.
- If π: πΈ β [0,1] is monotone, π will not contain a violation.
- If π1 π, π β₯ π then βπβ: π0 π(πβ), π β₯ π»
- W.p. β₯ 2/3, set π contains a violation (π¦, π§) for π(πβ)
π(πβ) π¦ = 1, π(πβ) π§ = 0 β π π¦ > π π§
24
π(π) π(π) >
Monotonicity Testers: Running Time
25
π π0 ππ π β [0,1]
Ξ log π π»
[ErgΓΌn Kannan Kumar Rubinfeld Viswanathan 00, Fischer 04]
Ξ 1 π»π
π π β [0,1]
Ξ π β log π π»
[Chakrabarty Seshadhri 13]
O
π π»π log π π»π
Ξ©
1 π»π log 1 π»π for π = 2
nonadaptive 1-sided error
Distance Approximation and Tolerant Testing
26
π π0 π1 π β [0,1]
polylog π β π πΊ
π· π/πΊ [Saks Seshadhri 10]
Ξ π πΊπ Approximating π΄π-distance to monotonicity Β±πΊ π. π. β₯ π/π
- Time complexity of tolerant π1-testing for monotonicity is
O π»π (π»π β π»π)π .
π1-Testers for Other Properties
Via combinatorial characterization of π1-distance to the property
- Lipschitz property π: π π β [0,1]:
Ξ
π π (tight)
Via (implicit) proper learning: approximate in π1 up to error π, test approximation on a random π(1/π)-sample
- Convexity π: π π β [0,1]:
O πβπ
2 +
1 π (tight for π β€ 2)
- Submodularity π: 0,1 π β 0,1
2
π 1
π + ππππ§
1 π log π [Feldman Vondrak 13]
Open Problems
- Our π1-tester for monotonicity is nonadaptive, but we
show that adaptivity helps for Boolean range. Is there a better adaptive tester?
- All our algorithms for ππ-testing for π β₯ 1 were
- btained directly from π1-testers.
Can one design better algorithms by working directly with ππ-distances?
- We designed tolerant tester only for monotonicity
(d=1,2). Tolerant testers for higher dimensions? Other properties?
28