π π -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 Property Tester [Rubinfeld Sudan 96, Goldreich Goldwasser Ron 98] [Parnas Ron Rubinfeld 06] YES YES Accept with Accept with probability β₯ π/π probability β₯ π/π π 1 π Donβt care π 2 Close to YES Donβt care Far from Far from Reject with Reject with ο³ ο³ YES YES probability 2/3 probability 2/3 Equivalent to tolerant testing: estimating distance to the property. Two objects are at distance π = they differ in an π fraction of places 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
π΄ π -Testing and Tolerant π΄ π -Testing Tolerant Property Tester Property Tester YES YES Accept with Accept with probability β₯ π/π probability β₯ π/π π 1 π Donβt care π 2 Close to YES Donβt care Far from Far from Reject with Reject with ο³ ο³ YES YES probability 2/3 probability 2/3 πβπ π Functions π, π: πΈ β [0,1] are at distance π if π π = = π . π π 7
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 (1,1,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
Monotonicity Testers: Running Time π π π π 0 π Ξ log π 1 Ξ β [0,1] π» π π» [ErgΓΌn Kannan Kumar Rubinfeld Viswanathan 00, Fischer 04] π π π π Ξ π β log π O π» π log π» π β [0,1] π» 1 1 Ξ© π» π log π» π for π = 2 [Chakrabarty Seshadhri 13] nonadaptive 1-sided error 18
Monotonicity Testers: Running Time π π π π 0 π Ξ 1 1 Ξ β {0,1} π» π π» π π Ξ π π» β log 3 π O π» π log π» π π π π» 1 1 Ξ© π» π log π» π for π = 2 β {0,1} [Dodis Goldreich Lehman R Samorodnitsky 99] nonadaptive 1-sided error 1 Ξ for constant π π» π adaptive 1-sided error 19
π 1 -Testing of Monotonicity 20
Monotonicity: Reduction to Boolean Functions Given π: πΈ β [0,1], a Boolean threshold function π (π) : πΈ β {0,1} π (π) π¦ = 1 if π π¦ β₯ π’ 0 otherwise π (π) π¦ 1 π (π) π¦ ππ β’ Decomposition: π π¦ = 0 1 π β’ M = class of monotone functions 0 π π¦ Characterization Theorem 1 π 1 π (π) , π ππ π 1 π, π = 0 21
Characterization Theorem: One Direction 1 π 1 π (π) , π ππ π 1 π, π β€ 0 β’ βπ’ β 0,1 , let π π’ =closest monotone (Boolean) function to π (π) . 1 π π’ ππ . Then π is monotone, since π π’ are monotone. β’ Let π = 0 π 1 π, π β€ π β π 1 Because π is monotone 1 π (π) ππ β 0 1 π π’ ππ = 0 Decomposition & definition of π 1 1 (π (π) βπ π’ )ππ = 0 1 1 π (π) β π π’ 1 ππ β€ 0 Triangle inequality 1 π 1 π (π) , π ππ = 0 Definition of π π’ 22
Monotonicity: Using Characterization Theorem Characterization Theorem 1 π 1 π (π) , π ππ π 1 π, π = 0 We use Characterization Theorem to get monotonicity π 1 -testers and tolerant testers from standard property testers for Boolean functions. 23
π 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
Recommend
More recommend