Proceedings

Count-Based Frequency Estimation with Bounded Memory

Download BibTeX Cite

Proceedings of the Twenty-Fourth International Joint Conference on Artificial Intelligence. Special Track on Machine Learning. Pages 3337-3343.

© 2015 International Joint Conferences on Artificial Intelligence

Abstract

Count-based estimators are a fundamental building block of a number of powerful sequential prediction algorithms, including Context Tree Weighting and Prediction by Partial Matching. Keeping exact counts, however, typically results in a high memory overhead. In particular, when dealing with large alphabets the memory requirements of count-based estimators often become prohibitive. In this paper we propose three novel ideas for approximating count-based estimators using bounded memory. Our first contribution, of independent interest, is an extension of reservoir sampling for sampling distinct symbols from a stream of unknown length, which we call K-distinct reservoir sampling. We combine this sampling scheme with a state-of-the-art count-based estimator for memoryless sources, the Sparse Adaptive Dirichlet (SAD) estimator. The resulting algorithm, the Budget SAD, naturally guarantees a limit on its memory usage. We finally demonstrate the broader use of K-distinct reservoir sampling in nonparametric estimation by using it to restrict the branching factor of the Context Tree Weighting algorithm. We demonstrate the usefulness of our algorithms with empirical results on two sequential, large-alphabet prediction problems.

  1. [Aji and McEliece, 2000] Srinivas M. Aji and Robert J. McEliece. The generalized distributive law. IEEE Trans- actions on Information Theory, 46(2):325-343, 2000.
  2. [Bellemare et al., 2013] Marc G. Bellemare, Joel Veness, and Michael Bowling. Bayesian learning of recursively factored environments. In Proceedings of the Thirtieth In- ternational Conference on Machine Learning, 2013.
  3. [Cavallanti et al., 2007] Giovanni Cavallanti, Nicoló Cesa- Bianchi, and Claudio Gentile. Tracking the best hyper- plane with a simple budget perceptron. Machine Learning, 69(2-3):143-167, 2007.
  4. [Charikar et al., 2004] Moses Charikar, Kevin Chen, and Martin Farach-Colton. Finding frequent items in data streams. Theoretical Computer Science, 312(1):3-15, 2004.
  5. [Cleary and Witten, 1984] John G. Cleary and Ian Witten. Data compression using adaptive coding and partial string matching. IEEE Transactions on Communications, 32(4):396-402, 1984.
  6. [Cover and Thomas, 1991] Thomas M. Cover and Joy A. Thomas. Elements of information theory. John Wiley & Sons, 1991.
  7. [Dekel et al., 2008] Ofer Dekel, Shai Shalev-Shwartz, and Yoram Singer. The Forgetron: A kernel-based perceptron on a budget. SIAM Journal on Computing, 37(5):1342- 1372, 2008.
  8. [Demaine et al., 2002] Erik D. Demaine, Alejandro López- Ortiz, and J. Ian Munro. Frequency estimation of internet packet streams with limited space. In Proceedings of the Tenth Annual European Symposium on Algorithms, pages 348-360, 2002.
  9. [Farias et al., 2010] Vivek F. Farias, Ciamac C. Moallemi, Benjamin Van Roy, and Tsachy Weissman. Universal re- inforcement learning. IEEE Transactions on Information Theory, 56(5):2441-2454, 2010.
  10. [Friedman and Singer, 1999] Nir Friedman and Yoram Singer. Efficient Bayesian Parameter Estimation in Large Discrete Domains. Advances in Neural Information Processing Systems 11, 11:417, 1999.
  11. [Gale and Church, 1990] William Gale and Kenneth W. Church. Poor estimates of context are worse than none. In Proceedings of the Workshop on Speech and Natural Language, pages 283-287, 1990.
  12. [Gibbons and Matias, 1998] Phillip B. Gibbons and Yossi Matias. New sampling-based summary statistics for im- proving approximate query answers. In Proceedings of the ACM SIGMOD, volume 27, pages 331-342, 1998.
  13. [Gibbons, 2001] Phillip B. Gibbons. Distinct sampling for highly-accurate answers to distinct values queries and event reports. In Proceedings of the International Con- ference on Very Large Databases, 2001.
  14. [Hutter, 2013] Marcus Hutter. Sparse adaptive dirichlet- multinomial-like processes. In COLT, 2013.
  15. [Katz, 1987] Slava M. Katz. Estimation of probabilities from sparse data for the language model component of a speech recognizer. IEEE Transactions on Acoustics, Speech, and Signal Processing, 35(3):400-401, 1987.
  16. [Knuth, 1981] Donald E. Knuth. The Art of computer Pro- gramming, Volume 2: Seminumerical Algorithms, 2nd Edition. Addison-Wesley, 1981.
  17. [Krichevsky and Trofimov, 1981] R. Krichevsky and V. Trofimov. The performance of universal coding. IEEE Transactions on Information Theory, 27:199-207, 1981.
  18. [Lu and Lu, 2011] Chi-Jen Lu and Wei-Fu Lu. Making on- line decisions with bounded memory. In Algorithmic Learning Theory, pages 249-261, 2011.
  19. [Mahoney, 2011] Matt Mahoney. Large text compression benchmark, 2011. [Online; accessed 01-February-2015].
  20. [Manku and Motwani, 2002] Gurmeet Singh Manku and Ra- jeev Motwani. Approximate frequency counts over data streams. In Proceedings of the 28th International Confer- ence on Very Large Databases, pages 346-357, 2002.
  21. [Metwally et al., 2005] Ahmed Metwally, Divyakant Agrawal, and Amr El Abbadi. Efficient computation of frequent and top-k elements in data streams. In Proceedings of the International Conference on Database Technology, pages 398-412, 2005.
  22. [Orabona et al., 2008] Francesco Orabona, Joseph Keshet, and Barbara Caputo. The projectron: a bounded kernel- based perceptron. In Proceedings of the 25th international conference on Machine learning, pages 720-727. ACM, 2008.
  23. [Orlitsky et al., 2003] Alon Orlitsky, Narayana P. San- thanam, and Junan Zhang. Always good turing: Asymp- totically optimal probability estimation. In Proceedings of the 44th Anual Symposium on Foundations of Computer Science, 2003.
  24. [Teh, 2006] Yee Whye Teh. A hierarchical bayesian lan- guage model based on pitman-yor processes. In Proceed- ings of the 21st International Conference on Computa- tional Linguistics, pages 985-992, 2006.
  25. [Tjalkens et al., 1993] Tj. J Tjalkens, Y.M. Shtarkov, and F.M.J. Willems. Context tree weighting: Multi-alphabet sources. In 14th Symposium on Information Theory in the Benelux, pages 128-135, 1993.
  26. [Tziortziotis et al., 2014] Nikolaos Tziortziotis, Christos Dimitrakakis, and Konstantinos Blekas. Cover tree bayesian reinforcement learning. The Journal of Machine Learning Research, 15(1):2313-2335, 2014.
  27. [Veness and Hutter, 2012] Joel Veness and Marcus Hutter. Sparse sequential Dirichlet coding. ArXiv e-prints, 2012.
  28. [Veness et al., 2012] Joel Veness, Kee Siong Ng, Marcus Hutter, and Michael H. Bowling. Context tree switching. In Data Compression Conference (DCC), pages 327-336, 2012. [Wikipedia, 2015] Wikipedia. Campbell's soup cans, 2015. [Online; accessed 01-February-2015].
  29. [Willems et al., 1995] Frans M. Willems, Yuri M. Shtarkov, and Tjalling J. Tjalkens. The context tree weighting method: Basic properties. IEEE Transactions on Infor- mation Theory, 41:653-664, 1995.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards