How to add attributes to the comment form tag?

Use this function rather than comment_form()

function validate_comment_form(){
    ob_start();
    comment_form();
    echo str_replace('<form','<form attribute="value" ',ob_get_clean());
}